pw dbconfig
The pw dbconfig commands allow you to modify database-related configuration information.
pw dbconfig list
The pw dbconfig list command lists the existing database server configuration.
Syntax for pw dbconfig list command
pw dbconfig set
You can use the pw dbconfig set command to configure Infrastructure Management in a new database environment. For example, you can use the command to change the database connection from a standalone Oracle to Oracle RAC, to change the existing Oracle database to a new Oracle database, or to change the SAP SQL Anywhere database credentials in disaster recovery.
SAP SQL Anywhere database:
Oracle database:
Oracle RAC:
Recommended (SCAN IP):
Optional:
pw dbconfig setall command
The pw dbconfig setall command enables you to change both the Infrastructure Management password and the Infrastructure Management database password at the same time for both main and report users.
Syntax:
Command | Description |
---|---|
pw dbconfig setall <configuration> | Updates both the Infrastructure Management and the Infrastructure Management database related password configuration information. |
pw dbconfig setall -username username -password newpass -oldpassword oldpass | Updates the Infrastructure Management user name and password. |
pw dbconfig setall -repusername repusername -reppassword repnewpass -repoldpassword repoldpass | Updates the Infrastructure Management report user name and password. |
pw dbconfig setall -username username -password newpass -oldpassword oldpass -repusername repuser -reppassword repnewpass -repoldpassword repoldpass | Updates both the Infrastructure Management user name and password as well as the report user name and password. |
pw dbconfig set configuration command options
Option | Description |
---|---|
-database Oracle | Sybase | Defines the database as either an Oracle database or a SAP SQL Anywhere database. |
-type Standalone | RAC | Configures the database to be either a standalone database or an Oracle RAC configuration. The RAC option is supported only for an Oracle database. |
-host [databaseHostName | IPaddress]:listeningPort | Defines the host name or host IP address and the port where the database server is running. |
-sid sid | Defines the database name. |
-servicename service | Defines the Oracle service name. |
-username userName | Defines the username for the database account. |
-password password | Specifies the password for the database account. |
-rachosts [hostName:port],[hostName:port], ... | The host names and port numbers for each of the Oracle RAC hosts. |
-repusername [OracleReportUserName] | Name of the Oracle report user. |
-reppassword [OracleReportUserPassword] | Password of the Oracle report user. |