Three JDBC methods for WebLogic to access Oracle

Source: Internet
Author: User
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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.