SRVCTL 명령어
DB CAFE
thumb_up 추천메뉴 바로가기
- DBA { Oracle DBA 명령어 > DBA 초급 과정 > DBA 고급 과정 }
- 튜닝 { 오라클 튜닝 목록 }
- 모델링 { 데이터 모델링 가이드 }
목차
1 svrctl 명령어[편집]
1.1 DB 시작 / 종료[편집]
1.1.1 DB start[편집]
emoji_objects SYNTAX - START DB
srvctl start database -d db_name [-o start_options] where start_option is nomount/mount/open(default)
srvctl start database -d PRODB -o nomount
srvctl start database -d PRODB -o mount
srvctl start database -d PRODB -o open
1.1.2 DB stop[편집]
emoji_objects SYNTAX - STOP DB
srvctl stop database -d db_name [-o stop_options] where stop_options is normal/immediate(default)/transactional/abort
srvctl stop database -d PRODB -o normal
srvctl stop database -d PRODB -o immediate
srvctl stop database -d PRODB -o transactional
srvctl stop database -d PRODB -o abort
1.1.3 DB remove[편집]
emoji_objects SYNTAX
srvctl remove database -d db_unique_name [-f] [-y] [-v]
srvctl remove database -d PRODB -f -y
1.1.4 DB add[편집]
emoji_objects SYNTAX - ADDING DB SERVICE
srvctl add database -d db_unique_name -o ORACLE_HOME [-p spfile]
srvctl add database -d PRODB -o /u01/app/oracle/product/12.1.0.2/dbhome_1 -p +DATA/PRODDB/parameterfile/spfilePRODB.ora
1.2 DB 인스턴스 추가 / 제거[편집]
1.2.1 DB 인스턴스 remove[편집]
emoji_objects SYNTAX - REMOVING INSTANCE
srvctl remove instance -d DB_UNIQUE_NAME -i INSTANCE_NAME
srvctl remove instance -d PRODB - I PRODB1
1.2.2 DB 인스턴스 add[편집]
emoji_objects SYNTAX - ADDING INSTANCE
srvctl add instance –d db_unique_name –i inst_name -n node_name
srvctl add instance -d PRODB - i PRODB1 -n rachost1
1.2.3 DB 인스턴스 stop[편집]
emoji_objects SYNTAX - STOPPING INSTANCE
srvctl stop instance -d db_unique_name [-i "instance_name_list"]} [-o stop_options] [-f]
srvctl stop instance -d PRODB -i PRODB1
1.2.4 DB 인스턴스 start[편집]
emoji_objects SYNTAX - START INSTANCE
srvctl start instance -d db_unique_name [-i "instance_name_list"} [-o start_options]
srvctl start instance -d PRODB -i PRODB1