JAVA OCI Driver in 9.2.0.4

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oxmard

    JAVA OCI Driver in 9.2.0.4

    Is this still being supported? I was wanting to use it instead of the thin
    driver so that I could pass just the connection aliaes (tnsnames). I am
    understanding to use the thin driver one must:
    try {

    // register the Oracle JDBC drivers
    DriverManager.r egisterDriver(
    new oracle.jdbc.Ora cleDriver()
    );

    // create a Connection object, and connect to the database
    // as store_user using the Oracle JDBC Thin driver
    myConnection = DriverManager.g etConnection(
    "jdbc:oracle:th in:@localhost:1 521:ORCL",
    "store_user ",
    "store_password "
    );

    But I did not see any examples on using the OCI to connect to a database
    using the connect aliaes.

    Could I have one and where is it documented at?

    Thanks


Working...