Oracle® Application Server Quick Administration Guide
10g Release 2 (10.1.2) B14126-02 |
|
Previous |
Next |
Distributed Configuration Management is a management framework that enables you to manage the configurations of multiple instances. Distributed Configuration Management (DCM) features enable you to:
Keep multiple configurations synchronized
Archive and restore versions of configurations
Export and import configurations between instances
Table B-1 describes the key DCM commands and illustrates their usage.
Table B-1 DCM Commands and Usage
DCM Commands | Type | Syntax | Description and Example |
---|---|---|---|
|
Configuration Management |
|
Creates a managed cluster.
|
|
Configuration Management |
|
Creates a new OC4J instance belonging to the local application server instance. You cannot specify another instance with the –i option. The command operates locally. Example:
|
|
Configuration Management |
|
Copies the file-based repository information to the location specified. Use the –force option to overwrite an existing file. If you do not use the Example:
|
|
Configuration Management |
|
Returns the file-based repository identifier of the farm to which the instance belongs. If the instance is a standalone instance, this command returns the repository identifier for the instance. If the standalone instance is to be used to establish a new distributed file-based repository, use the returned repository identifier to initialize the repository host with joinFarm and the –r option. Example:
|
|
Configuration Management |
|
Moves a file-based repository from one instance to another, based on a saved file from the exportRepository command. The repository may be restored to any instance in the farm. If the current instance is not hosting a repository, dcmctl prompts for confirmation of the action, unless the –force option is used. Example:
|
|
Configuration Management |
|
Adds an application server instance to the managed OracleAS Cluster specified with the –cl option. By default, this command uses the local instance. Specify a different instance with the –i option. Example:
|
|
Configuration Management |
|
With the –r option and a repository ID, associates an instance with the named file-based repository. The repository_ID is a hostname and port. Example:
|
|
Configuration Management |
|
Removes an application server instance from its managed OracleAS Cluster. By default, this command uses the local instance. Specify a different instance with the –i option. Example:
|
|
Configuration Management |
|
Removes an application server instance from a farm. This command affects only the relationship between DCM and a repository, and has no impact on other components. Example:
|
|
Configuration Management |
|
With no options, this command lists the application server instances that belong to the same farm as the local instance, but are not part of a cluster. With the –cl option, it lists only the instances that are part of the specified cluster. Example:
|
|
Configuration Management |
|
Resynchronizes the instance configuration files with the contents of the DCM repository. This command takes all data from the repository that is not yet propagated and writes it out to the configuration files for the specified instance. It updates the Oracle HTTP Server, OC4J, and OPMN configuration files, as well as targets.xml. Example:
|
|
Configuration Management |
|
Starts the dcmctl shell, and, optionally, executes the commands in a named file. Example:
|
|
Configuration Management |
|
Updates the DCM repository with the information in local configuration files. With no arguments, this command updates all DCM managed components, configuration files, as well as targets.xml. Example:
|
|
Configuration Management |
|
Returns the name of the cluster that contains the named instance. If no instance is specified, it returns the name of the cluster that contains the local instance. Example:
|
|
Configuration Management |
|
Returns the farm name, farm type (database or distributed file-based repository), the hosting instance, and the host name. Example:
|
|
Archive |
|
When configuration information is stored in the DCM repository, it is recognized as one of the following two types of information:
Example:
|
|
Archive |
|
Creates an archive of the named instance or cluster. If you do not specify a cluster or instance, the current instance is archived.
|
|
Archive |
|
Exports an archive from the repository to a file. Then, you can import the file to the same repository or to a different repository. Example:
|
|
Archive |
|
Imports the named archive file to the current repository. Use Example:
|
|
Application |
|
Deploys the J2EE application to the local application server instance. Example:
|
|
Application |
|
Redeploys a J2EE application (WAR or EAR file) to the local application server instance. Example:
|
|
Application |
|
Undeploys the named application in the named OC4J instance. Example:
|
|
dcmctl Properties |
|
Displays the status of the last dcmctl command that performed an asynchronous operation (as opposed to a command that returned information). Use this command to get the status of a previous command that timed out. Example:
|
|
Configuration Management |
|
Returns the state of all components. Example:
|