This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes Oracle 10g Connection Settings Required Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Oracle 10g Connection Settings Required" Watch "Oracle 10g Connection Settings Required" New topic
Author

Oracle 10g Connection Settings Required

Gaurav Dighe
Greenhorn

Joined: Jun 25, 2009
Posts: 21

Hi,
I have installed Oracle 10g in my Laptop.
Global Database Name: orcl
System Identifier(SID): orcl
UsrName: scott
Password: tiger

I have installed Netbeans 6.9 . i have added odbc14 in libraries of Netbeans and in Drivers of Netbeans. I have also created Environment variable for the same. Whn i am trying to establish new database connection using this Oracle thin Driver, i am getting error: Unable to add conection. Connection refused.

Driver Name: Oracle Thin(with SID)
host: localhost
port: 1521
SID: orcl
User Name: scott
Password: tiger




Please help...

Thanks & Regards,
Gaurav Dighe
chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1127
    
    7

Can you connect to the same DB account using SQL*Plus? It may be that the account has not been enabled after installation, or the TNS listener is not running.

Here's some stuff about Oracle 10g JDBC settings.


ex-Oracle bloke
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Oracle 10g Connection Settings Required
 
Similar Threads
how to know the url is whether correct or not
Network Adapter Problem
getconnection() --> SQLException
Accessing Database
Oracle Toplink Workbench - ORA-12505, TNS:listener error