Configuring a Oracle Database Connection From the Command Line

You can configure the database connection by opening a command window as an Administrator and running dbconfig.exe.

The following are default location for dbconfig.exe:

Use the following command line parameters with dbconfig.exe:

Parameter

Description

-a<Alias Name>

Where <Alias Name> is any valid Alias Name value.

-s<Driver type>

The following are valid values for <Driver type>: Oracle, MSSQL, or PrCSdrv. Driver Type values are case-sensitive.

-d<Database Name>

Specify the Oracle tnsname or Ezconnect string. Specify the Ezconnect string as <//ServerName>, representing the server name, or as <//IP Address:PORT/ServiceName>, representing the IP address, port, and service name.

For a Compression Server, specify <CompressionServerDatabase Name><@HostName> or <CompressionServerDatabase Name><@IPaddress><:Port[http]>.

-u<Database pubuser name>

Where <Database pubuser name> is the valid pubuser name.

-w<Database pubuser's password>

Where <Database pubuser's password> is the valid pubuser's password.

-b<Public Group ID>

Optional. A valid value is any integer. The default is 1.

Notes:

Examples

The following examples create or modify the oracle alias (myOraAlias).

dbconfig -amyOraAlias -upubuser -wpubuser -sORACLE -d//10.140.179.3:1521/xe

The following example creates or modifies the compression server alias (myCSAlias):

dbconfig -amyCSAlias -upubuser -wpubuser -sPrCSdrv -dMyCompressionServer@10.140.162.174:5555[http]

where:

Related Topics

Running Database Configuration After Installation



Legal Notices
Copyright © 1999, 2016, Oracle and/or its affiliates. All rights reserved.

Last Published Tuesday, August 02, 2016