Friday, May 11, 2012

Add a component to the Oracle Restart configuration with SRVCTL


When you add a component to the Oracle Restart configuration with SRVCTL, you can specify optional configuration settings for the component.
To add a component to the Oracle Restart configuration with SRVCTL:
  1. Prepare to run SRVCTL as described in "Preparing to Run SRVCTL".
  2. Enter the following command:
    srvctl add object options
    
    where object is one of the components listed in Table 4-8. See the SRVCTL add command for available options for each component.


Example 4-1 Adding a Database
This example adds a database with a DB_UNIQUE_NAME of dbcrm. The mandatory -o option specifies the Oracle home location.
srvctl add database -d dbcrm -o /u01/app/oracle/product/11.2.0/dbhome_1

Example 4-2 Adding a Database Service
For the database with the DB_UNIQUE_NAME of dbcrm, this example both creates a new database service named crmbatch and adds it to the Oracle Restart configuration.
srvctl add service -d dbcrm -s crmbatch

Example 4-3 Adding the Default Listener
This example adds the default listener to the Oracle Restart configuration.
srvctl add listener

No comments: