문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
dbms:oracle:admin:oracleracmanage [2008/04/14 13:16] joang77 |
dbms:oracle:admin:oracleracmanage [2010/05/21 19:08] (현재) starlits |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Oracle RAC Management ====== | ====== Oracle RAC Management ====== | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
===== srvctl ===== | ===== srvctl ===== | ||
- | === srvctl === | + | - Syntax : <color blue>**srvctl command object [options]**</ |
- | * Syntax : srvctl command object [options] | + | |
- | | + | |
+ | ===== srvctl command ===== | ||
^ command | ^ command | ||
|srvctl add|node applications, | |srvctl add|node applications, | ||
줄 26: | 줄 19: | ||
|srvctl setenv and unsetenv|node applications, | |srvctl setenv and unsetenv|node applications, | ||
- | * SRVCTL Objects | + | ===== SRVCTL Objects |
^ Object Noun Name ^ Abbreviation | ^ Object Noun Name ^ Abbreviation | ||
- | |asm|asm|ASM instances에서 add, configure, enable, start, obtain the status of, stop, disable, and remove명령어 사용| | + | |asm |asm |**ASM instances**에서 add, configure, enable, start, obtain the status of, stop, disable, and remove명령어 사용| |
- | |database|db|databases에서 add, configure, modify, manage environment variables for, enable, start, obtain the status of, stop, disable, and remove 명령어 사용| | + | |database |db |**databases**에서 add, configure, modify, manage environment variables for, enable, start, obtain the status of, stop, disable, and remove 명령어 사용| |
- | |instance|inst|database instances에서 add, configure, modify, manage environment variables for, enable, start, obtain the status of, stop, and remove 명령어 사용| | + | |instance |inst |**database instances**에서 add, configure, modify, manage environment variables for, enable, start, obtain the status of, stop, and remove 명령어 사용| |
- | |nodeapps|no abbreviation|node applications에서 add, configure, modify, manage environment variables for, start, obtain the status of, stop, and remove 명령어 사용| | + | |nodeapps |no abbreviation |**node applications**에서 add, configure, modify, manage environment variables for, start, obtain the status of, stop, and remove 명령어 사용| |
- | |service|serv|cluster database에서 서비스를 add, configure, modify, manage environment variables for, enable, start, obtain the status of, relocate, disable, stop, and remove 할 수 있는 명령어 사용| | + | |service |serv |**cluster database**에서 서비스를 add, configure, modify, manage environment variables for, enable, start, obtain the status of, relocate, disable, stop, and remove 할 수 있는 명령어 사용| |
- | + | ||
- | * Option은 10g manual 참고([[http:// | + | |
+ | ===== SRVCTL Option ===== | ||
+ | - Option은 10g manual 참고([[http:// | ||
+ | ^ Option | ||
+ | |-d db_unique_name|database의 유일한 이름| | ||
+ | |-i inst_name|instance 이름| | ||
+ | |-a|추가적인 attributes| | ||
+ | |-t|Display sample TNS entries| | ||
+ | |-s service_name|service 이릌| | ||
+ | |-n node_name|Node 이름| | ||
+ | |-a|VIP 구성| | ||
+ | |-g|GSD 구성| | ||
+ | |-s|ONS 구성| | ||
+ | |-l|Listener구성| | ||
+ | |-o start_options|startup할 때 "open, mount, or nomount" | ||
+ | |-c connect_str|접속할 때 권한 지정(default: | ||
+ | |-q|Prompt for user credentials connect string from standard input(database) \\ Query connect string from standard input(instance)| | ||
+ | |-h|도움말을 보여줌| | ||
+ | |-f force|서비스를 강제로 중단; \\ 모든 세션이 transactionally하게 SRVCTL과 연결이 끊겨서 \\ 다른 인스턴스로 서비스가 재연결되어 세션의 서비스가 제공됨| | ||
+ | |-f|비활성화된 applications 포함| | ||
+ | |-v|Verbose output| | ||
- | === srvctl 예제(시작·종료) === | ||
+ | ===== SRVCTL Example ===== | ||
- RAC 전체를 기동한다. < | - RAC 전체를 기동한다. < | ||
# srvctl start database -d SOAF | # srvctl start database -d SOAF | ||
줄 75: | 줄 86: | ||
# srvctl config nodeapps -n rac1 | # srvctl config nodeapps -n rac1 | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
===== crsctl ===== | ===== crsctl ===== | ||
+ | - 동시에 여러 개의 cluster components 상태를 확인 가능하며, | ||
+ | - root계정에서 실행 | ||
+ | - 아래 명령을 trace할 때 : crsctl trace check css | ||
+ | - 자세한 내용은 10g manual참고([[http:// | ||
+ | |||
+ | ===== crsctl command ===== | ||
+ | ^ Command | ||
+ | |crsctl check crs|CRS stack의 실행 여부 확인| | ||
+ | |crsctl check cssd|CSS의 실행 여부 확인| | ||
+ | |crsctl check crsd|CRS의 실행 여부 확인| | ||
+ | |crsctl check evmd|EVM의 실행 여부 확인| | ||
+ | |crsctl set css < | ||
+ | |crsctl get css < | ||
+ | |crsctl unset css < | ||
+ | |crsctl query css votedisk|CSS가 사용하는 voting disks의 목록 보여줌| | ||
+ | |crsctl add css votedisk < | ||
+ | |crsctl delete css votedisk < | ||
+ | |crsctl enable | ||
+ | |crsctl disable crs|startup할 때 모든 CRS daemons 비활성화| | ||
+ | |crsctl start crs|모든 CRS daemons 시작| | ||
+ | |crsctl stop crs|모든 CRS daemons 중단. cluster에서는 CRS resources이 중단됨| | ||
+ | |crsctl start resources|CRS resources 시작| | ||
+ | |crsctl stop resources|CRS resources 중단| | ||
+ | |crsctl debug statedump evm|dumps state info for evm objects| | ||
+ | |crsctl debug statedump crs|dumps state info for crs objects| | ||
+ | |crsctl debug statedump css|dumps state info for css objects| | ||
+ | |crsctl debug log css [module: | ||
+ | |crsctl debug trace css|dumps CSS in-memory tracing cache| | ||
+ | |crsctl debug log crs [module: | ||
+ | |crsctl debug trace crs|dumps CRS in-memory tracing cache| | ||
+ | |crsctl debug log evm [module: | ||
+ | |crsctl debug trace evm|dumps EVM in-memory tracing cache| | ||
+ | |crsctl debug log res < | ||
+ | |crsctl query crs softwareversion [< | ||
+ | |crsctl query crs activeversion|CRS software 운영 버전을 보여줌| | ||
+ | |crsctl lsmodules css|debugging 가능한 CSS modules의 목록을 보여줌| | ||
+ | |crsctl lsmodules crs|debugging 가능한 CRS modules의 목록을 보여줌| | ||
+ | |crsctl lsmodules evm|debugging 가능한 EVM modules의 목록을 보여줌| | ||
===== ASM ===== | ===== ASM ===== | ||
- | - ASM디스크 확인 < | + | - ASM디스크 확인 < |
- | SQL> | + | select d.name, a.path, a.state |
+ | from v$asm_disk a, v$asm_diskgroup d | ||
+ | where a.group_number=d.group_number; | ||
</ | </ | ||