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!

JDBC API - To get the current catalog/schema of the database

697330Jul 6 2010 — edited Oct 15 2014
Is there any JDBC API to get the current catalog/schema of the database. The solution needs to be generic so that it can be applied across databases..

For example,
- for Oracle i need to get the current schema of the session
- for SQL Server i need to get the current catalog and schema for the session
....
...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2013
Added on Jul 6 2010
7 comments
3,573 views