Oracle® Real Application Clusters Installation Guide 11g Release 2 (11.2) for Microsoft Windows x64 (64-Bit) Part Number E25666-03 |
|
|
PDF · Mobi · ePub |
Oracle Enterprise Manager Configuration Assistant (EMCA) provides a command-line interface for configuring Database Control. This appendix contains the following topics:
See Also:
Section 6.7, "Managing Database Control Using EMCA" for more information using EMCAThis section contains topics that relate to using the EMCA command-line interface.
The primary method for configuring an existing Oracle Database 11g release 2 (11.2) database to be managed with Oracle Enterprise Manager Database Control is to use DBCA, but EMCA can be used if a nongraphical user interface is preferred.
Caution:
During the database configuration using EMCA, the database is unavailable and users cannot connect to the database or perform operations on the database.This section contains information about how to use the EMCA command-line interface.
Every EMCA command can be used in Oracle RAC environments, and certain commands are applicable only in cluster setups. To perform cluster commands using EMCA, use the -cluster
flag that is available in almost every EMCA operational mode.
EMCA commands are of the form:
emca [operation] [mode] [flags] [parameters]
For information about the current cluster configuration, you can run the following command:
emca -displayConfig dbcontrol –cluster
Depending upon the parameters you include on the EMCA command line, EMCA prompts you for additional information required to configure Database Control.
Each EMCA command can include optional parameters to specify the additional information required by EMCA. Parameters used with EMCA are of the form [-parameterName
parameterValue
]. Multiple parameters can be used in combination at the command line. Table G-1 lists the optional parameters that can be used with EMCA.
Note:
You can view a list of the available parameters by enteringemca -help
at the command line.Table G-1 EMCA Optional Command-Line Parameters
Parameter | Description |
---|---|
|
The path of an input file that lists parameters for EMCA to use while performing its configuration operation. For more information, see Section 6.6.2, "Using EMCA in Silent Mode With an Input File.". |
|
Database system identifier. |
|
Port number for the listener servicing the database. |
|
Database Oracle home, as an absolute path. |
|
Oracle home from where the listener is running. If the listener is running from an Oracle home other than the one on which the database is running, then the parameter LISTENER_OH must be specified. |
|
Host computer user name (for automatic backup). |
|
Host computer user password (for automatic backup). |
|
Schedule in the form of "HH:MM" (for daily automatic backups). |
|
E-mail address for notifications. |
|
Outgoing mail server, or Simple Mail Transfer Protocol (SMTP) server, for notifications. |
|
Oracle Automatic Storage Management (Oracle ASM) home. |
|
System identifier for Oracle ASM instance. |
|
Port number for the listener servicing the Oracle ASM instance. |
|
User role for connecting to the Oracle ASM instance. |
|
User name for connecting to the Oracle ASM instance. |
|
Password for connecting to the Oracle ASM instance. |
|
Password for DBSNMP user. |
|
Password for SYSMAN user. |
|
Password for SYS user. |
|
Oracle home of the database with Oracle Enterprise Manager configuration to be upgraded or restored. |
|
The port you use to display the Database Control console in your web browser. For more information, see Section 6.7.3, "Changing the Ports Used by Database Control.". |
|
The Oracle Management Agent port for Database Control. For more information, see Section 6.7.3, "Changing the Ports Used by Database Control.". |
|
The RMI port for Database Control. For more information, see Section 6.7.3, "Changing the Ports Used by Database Control.". |
|
The JMS port for Database Control. For more information, see Section 6.7.3, "Changing the Ports Used by Database Control.". |
|
Cluster name (for cluster databases). |
|
Database unique name (for cluster databases). |
|
Database service name (for cluster databases). |
|
Node from which Database Control console is to be run (for cluster databases). For more information, see Section 6.7.1, "Changing the Database Control Implementation for Your Oracle RAC Database.". |
|
Comma-separated list of nodes for agent-only configurations, uploading data to |
To see a list of EMCA options, start EMCA using any of the following commands:
emca -h emca --h emca -help emca --help
These commands display the Help message for the EMCA utility. These help
commands also list the command arguments described in Table G-2, and the optional parameters described in Table G-1.
This section describes the commands available with the EMCA utility.
Command | Description |
---|---|
Configures Oracle Enterprise Manager for a new cluster instance of a database or Oracle ASM storage. |
|
Configures Oracle Enterprise Manager for a new cluster instance of a database or Oracle ASM storage. |
|
Configures both Database Control and central agent management for a database. |
|
Configures central agent management for a database or an Oracle ASM instance. |
|
Configures Database Control for a database. |
|
Deconfigures both Database Control and central agent management for a database. |
|
Deconfigures central agent management for a database or an Oracle ASM instance. |
|
Deconfigures Database Control for a database. |
|
Deconfigures Oracle Enterprise Manager for a specific instance of a cluster database or Oracle ASM storage. |
|
Deconfigures Oracle Enterprise Manager for a node getting deleted. |
|
Displays information about the current deployment configuration of Database Control in a cluster environment. |
|
Reconfigures the Database Control deployment for a cluster database. |
|
Explicitly reassigns Database Control ports. |
|
Restores the current release of Oracle Enterprise Manager configuration to an earlier release. |
|
Upgrades the configuration of an release version of Oracle Enterprise Manager to the current release. |
|
Prints the release information associated with EMCA. |
Use this command to configure Oracle Enterprise Manager for a new cluster instance of a database or Oracle ASM.
There are two forms for this command, depending on whether you are adding an Oracle database instance or an Oracle ASM instance:
emca -addInst db [-silent] [parameters] emca -addInst asm [-silent] [parameters]
Parameter | Description |
---|---|
|
Performs the operation for a database (including cluster databases). Use this option for databases that use Oracle ASM to store the data files. If a database is using Oracle ASM, then all the EMCA configuration commands (except for |
|
Performs the operation for an Oracle ASM-only instance (including cluster Oracle ASM instances). |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|
Use this command to configure Oracle Enterprise Manager for a new cluster instance of a database or Oracle ASM.
For more information, see Section 6.3, "Understanding EMCA and Enterprise Manager Control with Oracle RAC."
Parameter | Description |
---|---|
|
Performs the operation for a database (including cluster databases). Use this option for databases that use Oracle ASM to store the data files. If a database is using Oracle ASM, then all the EMCA configuration commands (except for |
|
Performs the operation for an Oracle ASM-only instance (including cluster Oracle ASM instances). |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|
This command is discussed further in Section 6.7.2, "Updating Database Control Configuration When Adding and Removing Nodes."
Use this command to configure both Database Control and Oracle Management Agent for a database. Options include creating (or re-creating) the Database Control repository, configuring automatic backups, and performing these operations on a cluster database.
This operation configures the database so that it can be centrally managed by the Oracle Enterprise Manager 10g Grid Control console. To use this option, you must have previously installed the Oracle Management Service component of Oracle Enterprise Manager on a network host. In addition, the Oracle Management Agent must be installed on the host where you run the database.
emca -config all db [-repos (create | recreate)] [-cluster] [-silent]
[-backup] [parameters]
Table G-5 config all db Options
Parameter | Description |
---|---|
|
Creates a new Oracle Management Repository. |
|
Deletes the current Oracle Management Repository and then re-creates a new one. |
|
Performs the operation for a cluster database or Oracle ASM instance. |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|
Use this command to configure the Management Agent for a database or an Oracle ASM instance. Options include performing this operation on a cluster environment.
This operation configures the database so that it can be centrally managed by the Oracle Enterprise Manager 10g Grid Control console. To use this option, you must have previously installed the Oracle Management Service component of Oracle Enterprise Manager on a network host. In addition, the Oracle Management Agent must be installed on the host where you run the database.
Table G-6 config centralAgent Options
Parameter | Description |
---|---|
|
Performs the operation for a database (including cluster databases). Use this option for databases that use Oracle ASM to store the data files. If a database is using Oracle ASM, then all the EMCA configuration commands (except for |
|
Performs the operation for an Oracle ASM-only instance (including cluster Oracle ASM instances). |
|
Performs the operation for a cluster database or Oracle ASM instance. |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|
Use this command to configure Oracle Enterprise Manager Database Control for a database. Options include creating (or re-creating) the Oracle Management Repository, configuring automatic backups, and performing these operations on a cluster database.
emca -config dbcontrol db [-repos (create | recreate)] [-cluster] [-silent]
[-backup] [parameters]
Table G-7 config dbcontrol Options
Parameter | Description |
---|---|
|
Creates a new Management Repository. |
|
Deletes the current Management Repository and then creates a new one. |
|
Performs the operation for a cluster database or Oracle ASM instance. |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|
Configures automatic backup for a database. EMCA prompts for daily automatic backup options. The default Oracle Enterprise Manager settings are used to back up the database files. If you use this option, then EMCA uses the value of the |
|
To configure the Database Control console for single-instance database using Oracle ASM, run the following command to configure the Database Control console and automatically detect the Oracle ASM instance:
emca -config dbcontrol db -repos create
Enter the following command to configure Database Control so it performs automatic daily backups of your database:
emca -config dbcontrol db -backup
Deconfigures both Database Control and the Oracle Management Agent for a database. Options include deleting the Oracle Management Repository and performing these operations on a cluster database.
Table G-8 deconfig all db Options
Parameter | Description |
---|---|
|
Deletes the current Management Repository. |
|
Performs the operation for a cluster database or Oracle ASM instance |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|
Use this command to deconfigure the Oracle Management Agent for a database or an Oracle ASM instance. Options include performing this operation on a cluster environment.
For example, you might use this command to remove the Management Agent configuration from a database you are planning to delete. In such a scenario, remove the Management Agent configuration before physically deleting the database. This operation does not remove the actual database or its data files.
Table G-9 deconfig centralAgent Options
Parameter | Description |
---|---|
|
Performs the operation for a database (including cluster databases). Use this option for databases that use Oracle ASM to store the data files. If a database is using Oracle ASM, then all the EMCA configuration commands (except for |
|
Performs the operation for an Oracle ASM-only instance (including cluster Oracle ASM instances). |
|
Performs the operation for a cluster database or Oracle ASM instance. |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|
If you are planning to delete the testdb
database, then you would use a command similar to the following to remove the Management Agent configuration before physically deleting the database:
emca -deconfig centralAgent db -ORACLE_HOME C:\app\oracle\10.2\db1 -SID testdb
Use this command to deconfigure Database Control for a database. Options include deleting the Oracle Management Repository and performing these operations on a cluster database.
This operation does not remove the actual database or its data files
Table G-10 deconfig dbcontrol db Options
Parameter | Description |
---|---|
|
Deletes the current Management Repository. |
|
Performs the operation for a cluster database or Oracle ASM instance. |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|
If you are planning to delete the testdb
database, then you would use a command similar to the following to remove the Database Control configuration before physically deleting the database:
emca -deconfig dbcontrol db -repos drop -ORACLE_HOME C:\app\oracle\10.2\db1 -SID testdb
Use this command to deconfigure Oracle Enterprise Manager for a specific instance of a cluster database or Oracle ASM.
Parameter | Description |
---|---|
|
Performs the operation for a database (including cluster databases). Use this option for databases that use Oracle ASM to store the data files. If a database is using Oracle ASM, then all the EMCA configuration commands (except for |
|
Performs the operation for an Oracle ASM-only instance (including cluster Oracle ASM instances). |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|
Use this command to deconfigure Oracle Enterprise Manager for a node being deleted. For more information, see Section 6.3, "Understanding EMCA and Enterprise Manager Control with Oracle RAC.".
Parameter | Description |
---|---|
|
Performs the operation for a database (including cluster databases). Use this option for databases that use Oracle ASM to store the data files. If a database is using Oracle ASM, then all the EMCA configuration commands (except for |
|
Performs the operation for an Oracle ASM-only instance (including cluster Oracle ASM instances). |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|
This command is discussed further in Section 6.7.2, "Updating Database Control Configuration When Adding and Removing Nodes.".
Use this command to display information about the current deployment configuration of Database Control in a cluster environment. This command must be used with the -cluster
option.
Table G-13 displayConfig dbcontrol Options
Parameter | Description |
---|---|
|
Performs the operation for a cluster database or Oracle ASM instance. |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|
Use this command to reconfigure Database Control deployment for a cluster database. This command must be used with the -cluster
option.
Table G-14 reconfig dbcontrol Options
Parameter | Description |
---|---|
|
Performs the operation for a cluster database or Oracle ASM instance. |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|
This command is discussed further in Section 6.7.1, "Changing the Database Control Implementation for Your Oracle RAC Database.".
Use this command to explicitly reassign Database Control ports. Options include performing this operation on a cluster environment.
This command is discussed further inSection 6.7.3, "Changing the Ports Used by Database Control.".
Use this command to restore the current release of Oracle Enterprise Manager configuration to an earlier release. This is the inverse of the -upgrade
command. Executing this command reverses any changes that resulted from an -upgrade
operation. This operation can be performed for database, Oracle ASM, or database and Oracle ASM instances simultaneously.
Parameter | Description |
---|---|
|
Performs the operation for a database (including cluster databases). |
|
Performs the operation for an Oracle ASM-only instance (including cluster Oracle ASM instances). |
|
Performs the restore operation for a database and an Oracle ASM instance. Restoring an Oracle ASM instance does not require restoring the database instances it services. Therefore, the Oracle Enterprise Manager configuration can be restored separately for a database and its respective Oracle ASM instance. |
|
Performs the operation for a cluster database or Oracle ASM instance. |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|
Use this command to upgrade the configuration of an earlier release of Oracle Enterprise Manager to the current release. This operation can be performed for database, Oracle ASM, or database and Oracle ASM instances simultaneously.
This command does not upgrade the actual database or Oracle ASM instances, nor does it upgrade the Oracle Enterprise Manager software. Instead, it upgrades the configuration files for the specified instance so that they are compatible with the current release of the Oracle Enterprise Manager software. EMCA attempts to upgrade all instances of the specified database or Oracle ASM target on the host, across all Oracle homes (because it is likely that certain target properties, such as listener port or Oracle home, have changed).
Parameter | Description |
---|---|
|
Performs the operation for a database (including cluster databases). |
|
Performs the operation for an Oracle ASM-only instance (including cluster Oracle ASM instances). |
|
Performs the upgrade operation for a database and an Oracle ASM instance. Upgrading an Oracle ASM instance does not require upgrading the database instances it services. Therefore, the Oracle Enterprise Manager configuration can be upgraded separately for a database and its respective Oracle ASM instance. |
|
Performs the operation for a cluster database or Oracle ASM instance. |
|
Performs the operation without prompting for additional information. If this mode is specified, then all the required parameters must be entered at the command line or specified in an input file using the |
|