- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- jdbc issue using OCI8 driver
Operating System - HP-UX
1752679
Members
5426
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2002 04:38 PM
тАО06-27-2002 04:38 PM
jdbc issue using OCI8 driver
Hi,
I have a problem on HP-UX 11i connecting to an Oracle 8.1.7.2 database. The client can connect using the Oracle jdbc thin client but not the OCI8 client. The error message is "java.sql.SQLException: ORA-12154: TNS:could not resolve service name". However I can do a 'tnsping SID' and sqlplus to the database. Any ideas/suggestions would be appreciated.
I have a problem on HP-UX 11i connecting to an Oracle 8.1.7.2 database. The client can connect using the Oracle jdbc thin client but not the OCI8 client. The error message is "java.sql.SQLException: ORA-12154: TNS:could not resolve service name". However I can do a 'tnsping SID' and sqlplus to the database. Any ideas/suggestions would be appreciated.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2002 04:18 AM
тАО06-28-2002 04:18 AM
Re: jdbc issue using OCI8 driver
I suspect that there is something wrong with the connect string in the java program. If I'm not mistaken, the connect string for the OCI8 driver is different from the connect string for the JDBC Thin driver. I think I would try putting some debug statements in the Java code to ensure the proper connect string is being passed to the driver. Another option would be to turn on SQL*Net (Net8) client tracing. The trace file would show you exactly what connect string is being passed. Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2002 01:27 PM
тАО06-28-2002 01:27 PM
Re: jdbc issue using OCI8 driver
Brian,
thanks for your response. I found the issue was with the way the driver was registered.
Needs to be
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
which is different than for the thin driver.
Thanks,
thanks for your response. I found the issue was with the way the driver was registered.
Needs to be
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
which is different than for the thin driver.
Thanks,
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP