Introduce srvctl command
来源:互联网 发布:nba比尔数据 编辑:程序博客网 时间:2024/05/19 11:20
1)SRVCTL is used to manage the following resources (components):
Component Abbreviation Descriptionasm asm Oracle ASM instancedatabase db Database instancediskgroup dg Oracle ASM disk groupfilesystem filesystem Oracle ASM file systemhome home Oracle home or Oracle Clusterware homelistener lsnr Oracle Net listenerservice serv Database serviceons, eons ons, eons Oracle Notification Services (ONS)
Command Descriptionadd Adds a component to the Oracle Restart configuration.config Displays the Oracle Restart configuration for a component.disable Disables management by Oracle Restart for a component.enable Reenables management by Oracle Restart for a component.getenv Displays environment variables in the Oracle Restart configuration for a database, Oracle ASM instance, or listener.modify Modifies the Oracle Restart configuration for a component.remove Removes a component from the Oracle Restart configuration.setenv Sets environment variables in the Oracle Restart configuration for a database, Oracle ASM instance, or listener.start Starts the specified component.status Displays the running status of the specified component.stop Stops the specified component.unsetenv Unsets environment variables in the Oracle Restart configuration for a database, Oracle ASM instance, or listener.
Here are a matrix of commands/ object combination:
srvctl add
srvctl modify
srvctl remove
instance
database
service
nodeapps
The OCR is modified.
srvctl relocate
service
You can reallocate a service from one named instance to another named instance.
srvctl start
srvctl stop
srvctl status
instance
database
service
asm
nodeapps
srvctl disable
srvctl enable
instance
database
service
asm
enable = when the server restart the resource must be restarted
disable = when the server restart the resource must NOT be restarted
(perhaps we are working for some maintenance tasks)
srvctl config
database
service
asm
nodeapps
Lists configuration information from the OCR (Oracle Cluster Registry).
srvctl getenv
srvctl setenv
srvctl unsetenv
instance
database
service
nodeapps
srvctl getenv = displays the environment variables stored in the OCR for target.
srvctl setenv = allows these variables to be set
srvctl unsetenv = llows these variables to be unset
The most SRVCTL commands are:
srvctl start database -d DBname
srvctl stop database -d DBname
If you don't know the DBname you might run select name from v$database;
srvctl start instance -d DBname -i INSTANCEname
srvctl stop instance -d DBname -i INSTANCEname
srvctl start instance -d DBname -i INSTANCEname
srvctl stop instance -d DBname -i INSTANCEname
srvctl status database -d DBname
srvctl status instance-d DBname -i INSTANCEname
srvctl status nodeapps-n NODEname
srvctl enable database -d DBname
srvctl disable database -d DBname
srvctl enable instance-d DBname -i INSTANCEname
srvctl disable instance-d DBname -i INSTANCEname
srvctl config database -d DBname -> to get some information about the database from OCR.
srvctl getenv nodeaps
ATTENTION:
The following commands are deprecated in Oracle Clusterware 11g release 2 (11.2):
crs_stat
crs_register
crs_unregister
crs_start
crs_stop
crs_getperm
crs_profile
crs_relocate
crs_setperm
crsctl check crsd
crsctl check cssd
crsctl check evmd
crsctl debug log
crsctl set css votedisk
crsctl start resources
crsctl stop resources
Note That:
referred link:http://www.in-oracle.com/Oracle-DBA/RAC/SRVCTL.php
- Introduce srvctl command
- Linux Command introduce
- introduce
- Introduce
- introduce
- srvctl常用命令
- OCM_Session7_0_which srvctl
- srvctl常用命令
- SpringFrameWork Introduce
- Introduce IOC
- Introduce VC
- Introduce Clearcase
- iaSolution Introduce
- Introduce RESTful
- Introduce yourself
- drawRect introduce
- Introduce myself
- 按键精灵Introduce
- PLS_INTEGER
- Activity之onActivityResult
- 数据库设计<many-to-one>和<one-to-many>双向映射
- 运算符重载函数作为类成员函数和有友元函数
- 黑马程序员——IO流
- Introduce srvctl command
- 如何在PPT中插入压缩包
- LCA向RMQ转化
- 覆盖
- LLE算法与实现
- VirtualBox使用教程图解
- make介绍与使用
- 跟工作环境相关的一些问题
- Google Code Jam 2012 Qualification Round