Oracle Training Oracle Support
Oracle Training
SQL Tuning Consulting
Oracle Tuning Consulting
Data Warehouse Consulting
Oracle Project Management
Oracle Security Assessment
Unix Consulting
Burleson Books
Burleson Articles
Burleson Web Courses
Burleson Qualifications
Oracle Internals Magazine
Oracle Links
Oracle Monitoring
Remote Support Benefits
Remote Plans & Prices
Our Automation Strategy
What We Monitor
Oracle Apps Support
Print Our Brochure
Contact Us (e-mail)
Oracle Job Opportunities
Oracle Consulting Prices
 

Free Oracle Tips


 
HTML Text AOL
 
 

Server Control Utility

October 21,  2003
Don Burleson

 

To manage the RAC database and its instances, Oracle has provided a new utility called the Server Control Utility (SRVCTL). This replaces the earlier utility ‘opsctl’ which was used in the parallel server.

 

The Server Control Utility is a single point of control between the Oracle Intelligent agent and each node in the RAC system. The SRVCTL communicates with the global daemon service (GSD) and resides on each of the nodes. The SRVCTL gathers information from the database and instances and acts as an intermediary between nodes and the Oracle Intelligent agent.

 

When you use the SRVCTL to perform configuration operations on your cluster, the SRVCTL stores configuration data in the Server Management (SRVM) configuration repository. The SRVM includes all the components of Enterprise Manager such as the Intelligent Agent, the Server Control Utility (SRVCTL), and the Global Services Daemon. Thus, the SRVCTL is one of the SRVM Instance Management Utilities. The SRVCTL uses SQL*Plus internally to perform stop and start activities on each node.

 

For the SRVCTL to function, the Global Services Daemon (GSD) should be running on the node. The SRVCTL performs mainly two types of administrative tasks: Cluster Database Tasks and Cluster Database Configuration Tasks.

 

SRVCTL Cluster Database tasks include:

·        Starts and stops cluster databases.

·        Starts and stops cluster database instances.

·        Starts and stops listeners associated with a cluster database instance.

·        Obtains the status of a cluster database instance.

·        Obtains the status of listeners associated with a cluster database.

 

 SRVCTL Cluster Database Configuration tasks include:

·        Adds and deletes cluster database configuration information.

·        Adds an instance to, or deletes an instance from a cluster database.

·        Renames an instance name within a cluster database configuration.

·        Moves instances in a cluster database configuration.

·        Sets and unsets the environment variable for an instance in a cluster database configuration.

·        Sets and unsets the environment variable for an entire cluster in a cluster database configuration.

To manage the RAC environment, first you need to build a configuration profile and optionally save it. You can build the configuration by commands such as add and setenv. It is a good practice to build configuration profiles and export them to ASCII files.

 

SRVCTL syntax has the following components:

 

> srvctl verb noun options

 

Where:

·        srvctl is the SRVCTL command.

·        verb is an action word such as start, stop, or remove.

·        noun is an object upon which SRVCTL performs the action verb, such as a database or instance. Alternatively, you can use abbreviations, which in this case are db and inst respectively.

·        options extends the use of preceding verb-noun combinations.

To see the online command syntax and options for each SRVCTL command, enter:

 

> srvctl verb noun -h

 

The table below shows the common srvctl verbs.

 

Verb

Description

add

Add a database or instance

config

Lists the configuration for the database or instance

Getenv

Lists the environment variables in the SRVM configuration

Modify

Modifies the instance configuration

remove

Removes the database or instance

Setenv

Sets the environment variable in the SRVM configuration

Start

Starts the database or instance

Status

Status of the database or instance

Stop

Stops the database or instance

Unsetenv

Sets the environment variable in the SRVM configuration to unspecified

 

The next table shows the common srvctl nouns.

 

Noun

Abbreviation

Description

database

db

Operation refers to objects for the database

instance

Inst

Operation refers to objects for the instances

 

Finally, here are the common srvctl command options.

 

Option

Meaning

-d

Database name

-h

Print Usage

-i

Comma-separated list of instance names

-n

Node names or comma-separated node list

 


 

If you like Oracle tuning, check out my latest book
"Oracle Tuning: The Definitive Reference". 

It's 980 pages of hard-core tuning insights, tips and scripts, and you can buy it direct from the publisher for 30%-off. 

 

 
 

 

 

   

Copyright © 1996 -  2009 by Burleson Enterprises, Inc. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.