srvctl stop listener: command syntax and example
Stops the specified Listener or Listeners.
Syntax:
srvctl stop listener -n node_name [-l listener_name_list]
Example:
An example of this command is:
srvctl stop listener -n node01
srvctl stop listener -n node01
srvctl modify instance command syntax and example
The srvctl modify instance command is used to modify an instance configuration in the OCR (Oracle cluster registry).
Used to modify the configuration for a database instance from its current node to another node or
changes the dependency between and ASM instance and a database instance.
Used to modify the configuration for a database instance from its current node to another node or
changes the dependency between and ASM instance and a database instance.
Syntax:
srvctl modify instance -d db_unique_name -i inst_name {-n node_name | -s asm_instance_name | -r}
-d database name (unique name)
-i database instance name.
-n Node name.
-s asm_instance_name: name of the ASM instance (dependency to database instance).
-r : Remove ASM instance dependency from database instance.
-i database instance name.
-n Node name.
-s asm_instance_name: name of the ASM instance (dependency to database instance).
-r : Remove ASM instance dependency from database instance.
Examples
An example of this command to relocate a database instance is:
srvctl modify instance -d crm -i crm1 -n my_new_node
The following example of this command establishes a dependency between an ASM instance and a database instance:
srvctl modify instance -d crm -i crm1 -s asm1
srvctl modify database syntax and example
The srvctl modify database command is used to modify a database configurations in the OCR (Oracle cluster registry).
The OCR is the repository used by the CRS (cluster readu services) processes to run a database in RAC environment.
The OCR is the repository used by the CRS (cluster readu services) processes to run a database in RAC environment.
Syntax:
srvctl modify database -d db_unique_name [-n db_name] [-o oracle_home] [-m domain_name]
[-p spfile] [-r {PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY}] [-s start_options] [-y {AUTOMATIC | MANUAL}]
-d database name (unique name)
-n db_name: database name if different from unique name
-o oracle_home:Oracle home
-m domain_name: Domain name of the database
-p spfile: server parameter file
-r role [PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY]: Role of the database
-s start_options:Startup options for the database.
-y Management policy for the database, either automatic or manual.
-h
srvctl modify database -d db_unique_name [-n db_name] [-o oracle_home] [-m domain_name]
[-p spfile] [-r {PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY}] [-s start_options] [-y {AUTOMATIC | MANUAL}]
-d database name (unique name)
-n db_name: database name if different from unique name
-o oracle_home:Oracle home
-m domain_name: Domain name of the database
-p spfile: server parameter file
-r role [PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY]: Role of the database
-s start_options:Startup options for the database.
-y Management policy for the database, either automatic or manual.
-h
Example:
srvctl modify database -d mndb -r logical_standby
This command makes the database mndb a LOGICAL_STANDBY database.
srvctl modify database -d mndb -r physical_standby
This command makes the database mndb a PHYSICAL_STANDBY database.
srvctl stop asm: command syntax and example
Stops ASM instances
Syntax:
Syntax:
srvctl stop asm -n node_name [-i inst_name] [-o stop_options] [-c connect_str | -q]
-n node_name:Node name.
-i inst_name:ASM instance name.
-o stop_options:Options for shutdown command, for example, normal, transactional, immediate, or abort.
-c connect_string:Connect string where the default is forward slash (/).
-q Query connect string from standard input.
-h Display help.
-i inst_name:ASM instance name.
-o stop_options:Options for shutdown command, for example, normal, transactional, immediate, or abort.
-c connect_string:Connect string where the default is forward slash (/).
-q Query connect string from standard input.
-h Display help.
Example:
An example of this command is:
srvctl stop asm -n node01 -i asm1
srvctl stop nodeapps: command syntax and example
Stops the node-level applications
Syntax:
srvctl stop nodeapps -n node_name
The only option for this command is the -n option, which specifies the node name.
Example:
An example of this command is:
srvctl stop nodeapps -n node01
No comments:
Post a Comment