Home > Oracle Rac > Administering Instances using srvctl

Administering Instances using srvctl

Starting an Instance

srvctl start instance -d <name> -i “<inst_name_list>” [-o <start_options>] [-c <connect_str> | -q]

where start_options include the following:
nomount
mount
open (the default)

For example, to start an instance named NESE52TS1, use
[oracle@nesdbts01 oracle]$ srvctl start instance -d NESE52TS -i NESE52TS1

if you need to start ,multiple instances
[oracle@nesdbts01 oracle]$ srvctl start instance -d NESE52TS -i “NESE52TS1,NESE52TS2”

Stopping an Instance

srvctl stop instance -d <name> -i “<inst_name_list>” [-o <stop_options>] [-c <connect_str> | -q]
where stop_options include:
normal
transactional
immediate (the default)
abort
 
For example, to stop an instance named NESE52TS1, use
[oracle@nesdbts01 oracle]$ srvctl stop instance -d NESE52TS -i NESE52TS1

Checking the Status of an Instance

srvctl status instance -d <name> -i “<inst_name_list>” [-f] [-v] [-S <level>]

For example to check the status of an instance called NESE52TS1 in a database called NESE52TS

[oracle@nesdbts01 oracle]$ srvctl status instance -d NESE52TS -i NESE52TS
Instance NESE52TS1 is running on node nesdbts01

If you need to check multiple instances

[oracle@nesdbts01 oracle]$ srvctl status instance -d NESE52TS -i “NESE52TS1,NESE52TS2”
Instance NESE52TS1 is running on node nesdbts01
Instance NESE52TS2 is not running on node nesdbts02

Adding a New Instance Configuration

To add an instance to a database  use

srvctl add instance -d <name> -i <inst_name> -n <node_name>
You must specify a database name, an instance name, and a node name,

for example:
[oracle@nesdbts01 oracle]$ srvctl add instance -d NESe52TS -i NESE52TS3 -n nesdbts03
Modifying an Existing Instance Configuration

To move an instance to another node

srvctl modify instance -d <name> -i <inst_name> -n <node_name>

For Example if instance NESE52TS3 is running on node nesdbts03 and you wish to move it to nesdbts04 
using the following

[oracle@nesdbts01 oracle]$ srvctl modify instance -d NESE52TS -i NESE52TS3 -n nesdbts04
Removing an Existing Instance Configuration

remove an instance from a database using the following syntax:
srvctl remove instance -d <name> -i <inst_name> [-f]

For example

[oracle@nesdbts01 oracle]$ srvctl remove instance -d NESE52TS -i NESE52TS3
Remove instance NESE52TS3 from the database NESE52TS? (y/[n]) y

Disabling an Instance

to disable an instance, so that it will not be started automatically use

srvctl disable instance -d <name> -i “<inst_name_list>”

For example to disable instance NESE52TS3 in a database called NESE52TS, use

[oracle@nesdbts01 oracle]$ srvctl disable instance -d NESE52TS -i NESE52TS3

to specify a list of instances:

[oracle@nesdbts01 oracle]$ srvctl disable instance -d NESE52TS -i “NESE52TS3,NESE52TS1”
Enabling an Instance

to enable an instance, so that it can be started automatically use

srvctl enable instance -d <name> -i “<inst_name_list>”

For Example to enables instance NESE52TS3 in a database called NESE52TS, use

[oracle@nesdbts01 oracle]$ srvctl enable instance -d NESE52TS -i NESE52TS3

to specify a list of instances:

[oracle@nesdbts01 oracle]$ srvctl enable instance -d NESE52TS -i “NESE52TS3,NESE52TS4”

Add the ASM instance dependency to the appropriate database instance

srvctl modify instance -d <database name> -i <instance name> -s <ASM instance name>

Advertisements
Categories: Oracle Rac
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: