Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Accessing a specific schema with JDBC

360544Oct 25 2002
My database has several schemas and I'm trying to access a specific schema using the following code snipet:

Class driverClass = Class("oracle.jdbc.driver.OracleDriver");
Connection jdbcConnection = Drivermanager.getConnection("jdbc:oracle:thin:@datastore:1527:dbname","username","password");
IDatabaseConnection connection = new DatabaseConnection(jdbcConnection);

Is there a way to access schema mike27 on dbname? I keep getting the schema pointed to by the public synonyms.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2002
Added on Oct 25 2002
0 comments
477 views