찾다
데이터 베이스MySQL 튜토리얼oracleRAC无备份情况恢复ocr和olr

最大的悲剧莫过于数据库坏了备份没了。让我想起了前几年流行的一句话:最大的悲剧是人活着,钱没了。总之备份重于一切。 情景介绍: 在11G中ocr的asm磁盘组被用户不小心删了且所有备份都误删,olr呢也损坏了。至此悲剧重演。 恢复过程:(其实就是使用root.

  最大的悲剧莫过于数据库坏了备份没了。让我想起了前几年流行的一句话:“最大的悲剧是人活着,钱没了”。总之备份重于一切。

  情景介绍:

  在11G中ocr的asm磁盘组被用户不小心删了且所有备份都误删,olr呢也损坏了。至此悲剧重演。

  恢复过程:(其实就是使用root.sh重建ocr的过程,重建之后可能需要重新注册相关资源如listener or database 实例等!)

  1、清空所有节点cluster配置信息:(11G中存在rootcrs.sh脚本,该脚本默认存在于$GRID_HOME/crs/install)。

  注,该脚本需要在root下执行,否则会有错误提示

?

1

2

3

4

5

6

[grid@rac-one install]$ ./rootcrs.pl

You must be logged in as root to run this script.

Log in as root and rerun this script.

2014-04-01 17:08:12: Not running as authorized user

Insufficient privileges to execute this script.

root or administrative privileges needed to run the script.

  了解该脚本的功能可以查看-help。如升级、回退、重新配置等待》

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

[root@rac-two install]# ./rootcrs.pl  -help

Usage:

      rootcrs.pl [-verbose] [-upgrade [-force] | -patch]

                 [-paramfile ]

                 [-deconfig [-deinstall] [-keepdg] [-force] [-lastnode]]

                 [-downgrade -oldcrshome -version [-force] [-lastnode]] 

                 [-unlock [-crshome ] [-nocrsstop]]

                 [-init]

 

      Options:

       -verbose    Run this script in verbose mode

       -upgrade    Oracle HA is being upgraded from previous version

       -patch      Oracle HA is being upgraded to a patch version

       -paramfile  Complete path of file specifying HA parameter values

       -lastnode   Force the node this script is executing on to be considered

                   as the last node of deconfiguration or downgrade, and perform

                   actions associated with deconfiguring or downgrading the

                   last node

       -downgrade  Downgrade the clusterware

       -version    For use with downgrade; special handling is required if

                   downgrading to 9i. This is the old crs version in the format

                   A.B.C.D.E (e.g 11.1.0.6.0).

       -deconfig   Remove Oracle Clusterware to allow it to be uninstalled or reinstalled

       -force      Force the execution of steps in delete or dwongrade that cannot

                   be verified to be safe

       -deinstall  Reset the permissions on CRS home during de-configuration

       -keepdg     Keep existing diskgroups during de-configuration

       -unlock     Unlock CRS home

       -crshome    Complete path of crs home. Use with unlock option

       -oldcrshome For use with downgrade. Complete path of the old crs home

       -nocrsstop  used with unlock option to reset permissions on an inactive grid home

       -init       Reset the permissions of all files and directories under CRS home

 

 

      If neither -upgrade nor -patch is supplied, a new install is performed

 

      To see the full manpage for this program, execute:

        perldoc rootcrs.pl

 

[root@rac-two install]#

  在root下清除所有节点cluster 信息:

  节点2:

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

[grid@rac-one install]$ su

Password:

[root@rac-one install]# ./rootcrs.pl -deconfig -force

Using configuration parameter file: ./crsconfig_params

Network exists: 1/192.168.4.0/255.255.255.0/eth0, type static

VIP exists: /rac-one-vip/192.168.4.113/192.168.4.0/255.255.255.0/eth0, hosting node rac-one

VIP exists: /rac-two-vip/192.168.4.114/192.168.4.0/255.255.255.0/eth0, hosting node rac-two

GSD exists

ONS exists: Local port 6100, remote port 6200, EM port 2016

CRS-2673: Attempting to stop 'ora.registry.acfs' on 'rac-one'

CRS-2677: Stop of 'ora.registry.acfs' on 'rac-one' succeeded

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac-one'

CRS-2673: Attempting to stop 'ora.crsd' on 'rac-one'

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac-one'

CRS-2673: Attempting to stop 'ora.oc4j' on 'rac-one'

CRS-2673: Attempting to stop 'ora.GIDG.dg' on 'rac-one'

CRS-2673: Attempting to stop 'ora.DATADG.dg' on 'rac-one'

CRS-2677: Stop of 'ora.DATADG.dg' on 'rac-one' succeeded

CRS-2677: Stop of 'ora.GIDG.dg' on 'rac-one' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'rac-one'

CRS-2677: Stop of 'ora.oc4j' on 'rac-one' succeeded

CRS-2672: Attempting to start 'ora.oc4j' on 'rac-two'

CRS-2677: Stop of 'ora.asm' on 'rac-one' succeeded

CRS-2676: Start of 'ora.oc4j' on 'rac-two' succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac-one' has completed

CRS-2677: Stop of 'ora.crsd' on 'rac-one' succeeded

CRS-2673: Attempting to stop 'ora.crf' on 'rac-one'

CRS-2673: Attempting to stop 'ora.ctssd' on 'rac-one'

CRS-2673: Attempting to stop 'ora.evmd' on 'rac-one'

CRS-2673: Attempting to stop 'ora.asm' on 'rac-one'

CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac-one'

CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac-one'

CRS-2677: Stop of 'ora.crf' on 'rac-one' succeeded

CRS-2677: Stop of 'ora.evmd' on 'rac-one' succeeded

CRS-2677: Stop of 'ora.mdnsd' on 'rac-one' succeeded

CRS-2677: Stop of 'ora.ctssd' on 'rac-one' succeeded

CRS-2677: Stop of 'ora.asm' on 'rac-one' succeeded

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac-one'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac-one' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'rac-one'

CRS-2677: Stop of 'ora.cssd' on 'rac-one' succeeded

CRS-2673: Attempting to stop 'ora.gipcd' on 'rac-one'

CRS-2677: Stop of 'ora.drivers.acfs' on 'rac-one' succeeded

CRS-2677: Stop of 'ora.gipcd' on 'rac-one' succeeded

CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac-one'

CRS-2677: Stop of 'ora.gpnpd' on 'rac-one' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac-one' has completed

CRS-4133: Oracle High Availability Services has been stopped.

Removing Trace File Analyzer

Successfully deconfigured Oracle clusterware stack on this node

[root@rac-one install]#

  节点1,因为我的RAC是双节点的,那么在清除最后一个使用lastnode参数:

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

[grid@rac-two crs]$ cd install/

[grid@rac-two install]$ su

Password:

[root@rac-two install]# ./rootcrs.pl -deconfig -force -lastnode

Using configuration parameter file: ./crsconfig_params

CRS resources for listeners are still configured

Network exists: 1/192.168.4.0/255.255.255.0/eth0, type static

VIP exists: /rac-two-vip/192.168.4.114/192.168.4.0/255.255.255.0/eth0, hosting node rac-two

GSD exists

ONS exists: Local port 6100, remote port 6200, EM port 2016

CRS-2673: Attempting to stop 'ora.registry.acfs' on 'rac-two'

CRS-2677: Stop of 'ora.registry.acfs' on 'rac-two' succeeded

CRS-2673: Attempting to stop 'ora.crsd' on 'rac-two'

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac-two'

CRS-2673: Attempting to stop 'ora.oc4j' on 'rac-two'

CRS-2673: Attempting to stop 'ora.GIDG.dg' on 'rac-two'

CRS-2673: Attempting to stop 'ora.DATADG.dg' on 'rac-two'

CRS-2677: Stop of 'ora.DATADG.dg' on 'rac-two' succeeded

CRS-2677: Stop of 'ora.oc4j' on 'rac-two' succeeded

CRS-2677: Stop of 'ora.GIDG.dg' on 'rac-two' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'rac-two'

CRS-2677: Stop of 'ora.asm' on 'rac-two' succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac-two' has completed

CRS-2677: Stop of 'ora.crsd' on 'rac-two' succeeded

CRS-2673: Attempting to stop 'ora.ctssd' on 'rac-two'

CRS-2673: Attempting to stop 'ora.evmd' on 'rac-two'

CRS-2673: Attempting to stop 'ora.asm' on 'rac-two'

CRS-2677: Stop of 'ora.evmd' on 'rac-two' succeeded

CRS-2677: Stop of 'ora.asm' on 'rac-two' succeeded

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac-two'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac-two' succeeded

CRS-2677: Stop of 'ora.ctssd' on 'rac-two' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'rac-two'

CRS-2677: Stop of 'ora.cssd' on 'rac-two' succeeded

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac-two'

CRS-2676: Start of 'ora.cssdmonitor' on 'rac-two' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'rac-two'

CRS-2672: Attempting to start 'ora.diskmon' on 'rac-two'

CRS-2676: Start of 'ora.diskmon' on 'rac-two' succeeded

CRS-2676: Start of 'ora.cssd' on 'rac-two' succeeded

CRS-4611: Successful deletion of voting disk +GIDG.

ASM de-configuration trace file location: /tmp/asmcadc_clean2014-04-01_05-14-52-PM.log

ASM Clean Configuration START

ASM Clean Configuration END

 

ASM with SID +ASM1 deleted successfully. Check /tmp/asmcadc_clean2014-04-01_05-14-52-PM.log for details.

 

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac-two'

CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac-two'

CRS-2673: Attempting to stop 'ora.ctssd' on 'rac-two'

CRS-2673: Attempting to stop 'ora.asm' on 'rac-two'

CRS-2677: Stop of 'ora.mdnsd' on 'rac-two' succeeded

CRS-2677: Stop of 'ora.ctssd' on 'rac-two' succeeded

CRS-2677: Stop of 'ora.asm' on 'rac-two' succeeded

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac-two'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac-two' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'rac-two'

CRS-2677: Stop of 'ora.cssd' on 'rac-two' succeeded

CRS-2673: Attempting to stop 'ora.crf' on 'rac-two'

CRS-2677: Stop of 'ora.crf' on 'rac-two' succeeded

CRS-2673: Attempting to stop 'ora.gipcd' on 'rac-two'

CRS-2677: Stop of 'ora.gipcd' on 'rac-two' succeeded

CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac-two'

CRS-2677: Stop of 'ora.gpnpd' on 'rac-two' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac-two' has completed

CRS-4133: Oracle High Availability Services has been stopped.

Removing Trace File Analyzer

Successfully deconfigured Oracle clusterware stack on this node

[root@rac-two install]#

  二、重建ocr和olr,使用root.sh脚本完成重建,其实这就是在安装RAC中执行的脚本,默认位置为:$GRID_HOME/;

  eg:

  节点1:

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

[root@rac-two grid]# ./root.sh

Performing root user operation for Oracle 11g

 

The following environment variables are set as:

    ORACLE_OWNER= grid

    ORACLE_HOME=  /u01/app/11.2.0/grid

 

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

 

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params

User ignored Prerequisites during installation

Installing Trace File Analyzer

CRS-2672: Attempting to start 'ora.mdnsd' on 'rac-two'

CRS-2676: Start of 'ora.mdnsd' on 'rac-two' succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'rac-two'

CRS-2676: Start of 'ora.gpnpd' on 'rac-two' succeeded

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac-two'

CRS-2672: Attempting to start 'ora.gipcd' on 'rac-two'

CRS-2676: Start of 'ora.cssdmonitor' on 'rac-two' succeeded

CRS-2676: Start of 'ora.gipcd' on 'rac-two' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'rac-two'

CRS-2672: Attempting to start 'ora.diskmon' on 'rac-two'

CRS-2676: Start of 'ora.diskmon' on 'rac-two' succeeded

CRS-2676: Start of 'ora.cssd' on 'rac-two' succeeded

 

ASM created and started successfully.

 

Disk Group GIDG created successfully.

 

clscfg: -install mode specified

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

Successful addition of voting disk 498646ba39604f86bf697c9748a67697.

Successful addition of voting disk 2e1bd16f9e6d4f36bf93550dc8268725.

Successful addition of voting disk 3fbd31a0b2634feabfa1115a504cbbe6.

Successfully replaced voting disk group with +GIDG.

CRS-4266: Voting file(s) successfully replaced

##  STATE    File Universal Id                File Name Disk group

--  -----    -----------------                --------- ---------

 1. ONLINE   498646ba39604f86bf697c9748a67697 (/dev/asm-diske) [GIDG]

 2. ONLINE   2e1bd16f9e6d4f36bf93550dc8268725 (/dev/asm-diskd) [GIDG]

 3. ONLINE   3fbd31a0b2634feabfa1115a504cbbe6 (/dev/asm-diskf) [GIDG]

Located 3 voting disk(s).

CRS-2672: Attempting to start 'ora.asm' on 'rac-two'

CRS-2676: Start of 'ora.asm' on 'rac-two' succeeded

CRS-2672: Attempting to start 'ora.GIDG.dg' on 'rac-two'

CRS-2676: Start of 'ora.GIDG.dg' on 'rac-two' succeeded

Preparing packages for installation...

cvuqdisk-1.0.9-1

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

[root@rac-two grid]#

  另外注意,如果asm磁盘损坏了那么需要重新修复磁盘,然后会自动重新创建之前的diskgroup.

  至此olr和ocr创建成功

  节点2:

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

[root@rac-one grid]# ./root.sh

Performing root user operation for Oracle 11g

 

The following environment variables are set as:

    ORACLE_OWNER= grid

    ORACLE_HOME=  /u01/app/11.2.0/grid

 

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

 

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params

User ignored Prerequisites during installation

Installing Trace File Analyzer

OLR initialization - successful

Adding Clusterware entries to upstart

CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac-two, number 1, and is terminating

An active cluster was found during exclusive startup, restarting to join the cluster

Preparing packages for installation...

cvuqdisk-1.0.9-1

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

[root@rac-one grid]#

  3、检查资源信息:

  现在呢开始使用srvctl和crsctl工具,这是oracle RAC 经常使用的,另外还有一个工具是oifcfg配置网卡信息等。不在 介绍了。

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

[root@rac-one bin]# ./crsctl check crs

CRS-4638: Oracle High Availability Services is online

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

[root@rac-one bin]# ./crsctl stat res -t

--------------------------------------------------------------------------------

성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
InnoDB Redo Logs 및 Undo Logs의 역할을 설명하십시오.InnoDB Redo Logs 및 Undo Logs의 역할을 설명하십시오.Apr 15, 2025 am 12:16 AM

InnoDB는 Redologs 및 Undologs를 사용하여 데이터 일관성과 신뢰성을 보장합니다. 1. Redologs는 사고 복구 및 거래 지속성을 보장하기 위해 데이터 페이지 수정을 기록합니다. 2. 결점은 원래 데이터 값을 기록하고 트랜잭션 롤백 및 MVCC를 지원합니다.

설명 출력 (유형, 키, 행, 추가)에서 찾아야 할 주요 메트릭은 무엇입니까?설명 출력 (유형, 키, 행, 추가)에서 찾아야 할 주요 메트릭은 무엇입니까?Apr 15, 2025 am 12:15 AM

설명 명령에 대한 주요 메트릭에는 유형, 키, 행 및 추가가 포함됩니다. 1) 유형은 쿼리의 액세스 유형을 반영합니다. 값이 높을수록 Const와 같은 효율이 높아집니다. 2) 키는 사용 된 인덱스를 표시하고 NULL은 인덱스가 없음을 나타냅니다. 3) 행은 스캔 한 행의 수를 추정하여 쿼리 성능에 영향을 미칩니다. 4) Extra는 최적화해야한다는 Filesort 프롬프트 사용과 같은 추가 정보를 제공합니다.

설명에서 임시 상태를 사용하고 피하는 방법은 무엇입니까?설명에서 임시 상태를 사용하고 피하는 방법은 무엇입니까?Apr 15, 2025 am 12:14 AM

Temporary를 사용하면 MySQL 쿼리에 임시 테이블을 생성해야 할 필요성이 있으며, 이는 별개의, 그룹 비 또는 비 인덱스 열을 사용하여 순서대로 발견됩니다. 인덱스 발생을 피하고 쿼리를 다시 작성하고 쿼리 성능을 향상시킬 수 있습니다. 구체적으로, 설명 출력에 사용되는 경우, MySQL은 쿼리를 처리하기 위해 임시 테이블을 만들어야 함을 의미합니다. 이것은 일반적으로 다음과 같은 경우에 발생합니다. 1) 별개 또는 그룹을 사용할 때 중복 제거 또는 그룹화; 2) OrderBy가 비 인덱스 열이 포함되어있을 때 정렬하십시오. 3) 복잡한 하위 쿼리 또는 조인 작업을 사용하십시오. 최적화 방법은 다음과 같습니다. 1) Orderby 및 GroupB

다른 SQL 트랜잭션 격리 수준 (커밋되지 않은 읽기, 읽기, 커밋 가능한 읽기, 반복 가능한 읽기, 시리얼이즈 가능) 및 MySQL/innoDB에서의 의미를 설명하십시오.다른 SQL 트랜잭션 격리 수준 (커밋되지 않은 읽기, 읽기, 커밋 가능한 읽기, 반복 가능한 읽기, 시리얼이즈 가능) 및 MySQL/innoDB에서의 의미를 설명하십시오.Apr 15, 2025 am 12:11 AM

MySQL/InnoDB는 4 개의 트랜잭션 격리 수준을 지원합니다. Readuncommitted, ReadCommitted, ReturableRead 및 Serializable. 1. READUCMITTED는 커밋되지 않은 데이터를 읽을 수 있으므로 더러운 판독 값을 유발할 수 있습니다. 2. ReadCommitted는 더러운 읽기를 피하지만 반복 할 수없는 독서가 발생할 수 있습니다. 3. RepeatableRead는 더러운 읽기와 반복 할 수없는 독서를 피하는 기본 레벨이지만 팬텀 독서가 발생할 수 있습니다. 4. 직렬화 가능한 것은 모든 동시성 문제를 피하지만 동시성을 줄입니다. 적절한 격리 수준을 선택하려면 균형 잡힌 데이터 일관성 및 성능 요구 사항이 필요합니다.

MySQL 대 기타 데이터베이스 : 옵션 비교MySQL 대 기타 데이터베이스 : 옵션 비교Apr 15, 2025 am 12:08 AM

MySQL은 웹 응용 프로그램 및 컨텐츠 관리 시스템에 적합하며 오픈 소스, 고성능 및 사용 편의성에 인기가 있습니다. 1) PostgreSQL과 비교하여 MySQL은 간단한 쿼리 및 높은 동시 읽기 작업에서 더 잘 수행합니다. 2) Oracle과 비교할 때 MySQL은 오픈 소스와 저렴한 비용으로 인해 중소 기업에서 더 인기가 있습니다. 3) Microsoft SQL Server와 비교하여 MySQL은 크로스 플랫폼 응용 프로그램에 더 적합합니다. 4) MongoDB와 달리 MySQL은 구조화 된 데이터 및 트랜잭션 처리에 더 적합합니다.

MySQL Index Cardinality는 쿼리 성능에 어떤 영향을 미칩니 까?MySQL Index Cardinality는 쿼리 성능에 어떤 영향을 미칩니 까?Apr 14, 2025 am 12:18 AM

MySQL Index Cardinality는 쿼리 성능에 중대한 영향을 미칩니다. 1. 높은 카디널리티 인덱스는 데이터 범위를보다 효과적으로 좁히고 쿼리 효율성을 향상시킬 수 있습니다. 2. 낮은 카디널리티 인덱스는 전체 테이블 스캔으로 이어질 수 있으며 쿼리 성능을 줄일 수 있습니다. 3. 관절 지수에서는 쿼리를 최적화하기 위해 높은 카디널리티 시퀀스를 앞에 놓아야합니다.

MySQL : 신규 사용자를위한 리소스 및 튜토리얼MySQL : 신규 사용자를위한 리소스 및 튜토리얼Apr 14, 2025 am 12:16 AM

MySQL 학습 경로에는 기본 지식, 핵심 개념, 사용 예제 및 최적화 기술이 포함됩니다. 1) 테이블, 행, 열 및 SQL 쿼리와 같은 기본 개념을 이해합니다. 2) MySQL의 정의, 작업 원칙 및 장점을 배우십시오. 3) 인덱스 및 저장 절차와 같은 기본 CRUD 작업 및 고급 사용량을 마스터합니다. 4) 인덱스의 합리적 사용 및 최적화 쿼리와 같은 일반적인 오류 디버깅 및 성능 최적화 제안에 익숙합니다. 이 단계를 통해 MySQL의 사용 및 최적화를 완전히 파악할 수 있습니다.

실제 MySQL : 예 및 사용 사례실제 MySQL : 예 및 사용 사례Apr 14, 2025 am 12:15 AM

MySQL의 실제 응용 프로그램에는 기본 데이터베이스 설계 및 복잡한 쿼리 최적화가 포함됩니다. 1) 기본 사용 : 사용자 정보 삽입, 쿼리, 업데이트 및 삭제와 같은 사용자 데이터를 저장하고 관리하는 데 사용됩니다. 2) 고급 사용 : 전자 상거래 플랫폼의 주문 및 재고 관리와 같은 복잡한 비즈니스 로직을 처리합니다. 3) 성능 최적화 : 인덱스, 파티션 테이블 및 쿼리 캐시를 사용하여 합리적으로 성능을 향상시킵니다.

See all articles

핫 AI 도구

Undresser.AI Undress

Undresser.AI Undress

사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover

AI Clothes Remover

사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool

Undress AI Tool

무료로 이미지를 벗다

Clothoff.io

Clothoff.io

AI 옷 제거제

AI Hentai Generator

AI Hentai Generator

AI Hentai를 무료로 생성하십시오.

인기 기사

R.E.P.O. 에너지 결정과 그들이하는 일 (노란색 크리스탈)
4 몇 주 전By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 최고의 그래픽 설정
3 몇 주 전By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 아무도들을 수없는 경우 오디오를 수정하는 방법
4 몇 주 전By尊渡假赌尊渡假赌尊渡假赌
WWE 2K25 : Myrise에서 모든 것을 잠금 해제하는 방법
1 몇 달 전By尊渡假赌尊渡假赌尊渡假赌

뜨거운 도구

SublimeText3 영어 버전

SublimeText3 영어 버전

권장 사항: Win 버전, 코드 프롬프트 지원!

안전한 시험 브라우저

안전한 시험 브라우저

안전한 시험 브라우저는 온라인 시험을 안전하게 치르기 위한 보안 브라우저 환경입니다. 이 소프트웨어는 모든 컴퓨터를 안전한 워크스테이션으로 바꿔줍니다. 이는 모든 유틸리티에 대한 액세스를 제어하고 학생들이 승인되지 않은 리소스를 사용하는 것을 방지합니다.

ZendStudio 13.5.1 맥

ZendStudio 13.5.1 맥

강력한 PHP 통합 개발 환경

Dreamweaver Mac版

Dreamweaver Mac版

시각적 웹 개발 도구

드림위버 CS6

드림위버 CS6

시각적 웹 개발 도구