- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- JDBC - ORACLE ERROR
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
тАО07-18-2002 05:12 AM
тАО07-18-2002 05:12 AM
I am new to this discussion and new to oracle as such. I downloaded the oracle9i (trial version) from the oracle website. And after a little struggle, I got oracle running and I was able to query through sqlPlus and JDBC program.
For some reason, oracle did not work suddenly, so i re-installed it and again it works. But now my JDBC is not able to connect to the database.
I am able to connect to the database using sqlplus username developer1 and password developer1. but when i try the following using java:
connection = DriverManager.getConnection
("jdbc:oracle:thin:@marcanthony:1521:dev1","developer1","developer1");
and compile it, i get the following error:
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
at oracle.jdbc.driver.OracleConnection.
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at Jdbctest1.main(Jdbctest1.java:21)
Any help?
Thanks.
p
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 05:21 AM
тАО07-18-2002 05:21 AM
Re: JDBC - ORACLE ERROR
make sure listener.ora hostname is the
same as defined for db connector config
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 05:43 AM
тАО07-18-2002 05:43 AM
Re: JDBC - ORACLE ERROR
and db connector config? It may be very trivial, but I am very new to this. Also, I have atatched my very simple java program that uses JDBC to connect to oracle. I am able to connect to the database and query using sqlplus but not through my program which was working earlier.
Thanks.
-p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 05:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 06:04 AM
тАО07-18-2002 06:04 AM
Re: JDBC - ORACLE ERROR
Also.check if the network configuration is ok for that machine, maybe there are problems in resolving the host name
steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 06:09 AM
тАО07-18-2002 06:09 AM
Re: JDBC - ORACLE ERROR
If you are new
http://www.ifs.uni-linz.ac.at/ifs/teaching/java/sqlj/doc/faq.html
Step By Step trouble shooting.
steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 06:15 AM
тАО07-18-2002 06:15 AM
Re: JDBC - ORACLE ERROR
Thanks for the continuos help
-p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 06:22 AM
тАО07-18-2002 06:22 AM
Re: JDBC - ORACLE ERROR
SQLException: The network adapter could not establish the connection"
is what I am getting and its there in the link. Thanks a million. I shall try as per provided and shall see.
Thanks again.
-p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 06:26 AM
тАО07-18-2002 06:26 AM
Re: JDBC - ORACLE ERROR
Enter user-name: developer1
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
when i connect to sqlplus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 06:45 AM
тАО07-18-2002 06:45 AM
Re: JDBC - ORACLE ERROR
-p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 07:18 AM
тАО07-18-2002 07:18 AM