The connection pool for accessing the Oracle database in WebLogic can be configured in three JDBC methods.
Set up the connection pool in the Weblogic console and modify the startweblogic. CMD file.
The connection pool for accessing the Oracle database in WebLogic can be configured in three JDBC modes.
Set up the connection pool in the Weblogic console according to the following configuration and modify the startweblogic. CMD file.
1. WebLogic jdriver
Attribute: Value
URL: JDBC: WebLogic: Oracle
Driver classes: weblogic. JDBC. OCI. Driver
Properties (Key = value): User = Xixi
Password = haha
Server = your_tnsname
Oracle client to be installed
Your_tnsname is the local service name configured in the Oracle client pointing to the Oracle server
Add the PATH variable to startweblogic. cmd. inoci817_8
2. Thin method of oracle JDBC
Attribute: Value
URL: JDBC: oracle: thin: @ 193.0.0.5: 1521: ora8
Driver classes: Oracle. JDBC. Driver. oracledriver
Properties (Key = value): User = Xixi
Password = haha
DLL = ocijdbc8
Protocol = thin
You do not need to install the Oracle client. ora8 is the SID of the database to connect.
Add the PATH variable in startweblogic. CMD to. inoci817_8 and classpathto $oracle_homejdbclibclasses12.zipor classes111.zip to locate the oracle JDBC class.
3. Oracle JDBC oci8 Mode
Attribute: Value
URL: JDBC: oracle: oci8: @ your_tns
Driver classes: Oracle. JDBC. Driver. oracledriver
Properties (Key = value): User = Xixi
Password = haha
DLL = ocijdbc8
Protocol = oci8