SunQuest
           Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old January 10th, 2005, 12:08 AM
evehatesyellow evehatesyellow is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 8 evehatesyellow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
can't connect to database

i try to connect to the database but failed.

i wrote this:
dbJDBCDriver = "oracle.jdbc.driver.OracleDriver";
dbURL = "jdbc: oracle:thin: @bigcpu025:1521:TSH1";
dbUser = "sys";
dbPwd = "database";

But i get this error:
* Start loading driver: oracle.jdbc.driver.OracleDriver
* Start connection to: jdbc: oracle:thin: @bigcpu025:1521:TSH1
* dbUser,dbPwd: oracle.jdbc.driver.OracleDriver


*An Exception has occurred... Database access failed! java.sql.SQLException: ORA-28009: connection to sys should be as sysdba or sysoper

*An Exception has occurred... Something happened on the way to heaven (ie, main) java.lang.NullPointerException

*DEBUG> main says bye!

If i do this:
dbJDBCDriver = "oracle.jdbc.driver.OracleDriver";
dbURL = "jdbc: oracle:thin: @bigcpu025:1521:TSH1";
dbUser = "sysdba";
dbPwd = "database";
i get this error:

* Start loading driver: oracle.jdbc.driver.OracleDriver
* Start connection to: jdbc: oracle:thin:@bigcpu025:1521:TSH1
* dbUser,dbPwd: oracle.jdbc.driver.OracleDriver

*An Exception has occurred... Database access failed! java.sql.SQLException: ORA-01017: invalid username/password; logon denied

*An Exception has occurred... Something happened on the way to heaven (ie, main) java.lang.NullPointerException

*DEBUG> main says bye!

i'm not sure what's the problem here.

Reply With Quote
  #2  
Old January 10th, 2005, 02:25 PM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,307 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 28 m 57 sec
Reputation Power: 48
28009 - connect sys/password is not allowed
You have to connect like this using a connect as -
connect sys/password as sysdba

But sysdba has to be allowed create process on the instance yoyu are using.

Reply With Quote
  #3  
Old January 19th, 2005, 04:51 AM
Paul Izzo Paul Izzo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 14 Paul Izzo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 25 sec
Reputation Power: 0
Talking Check also that your using the correct driver

I had a problem like this once with a web application server. It turned out that I was calling the wrong JDBC driver. Make sure if your using the thin driver, and if so that it uses "Classes12.jar"

Take a look at ...\Oracle9\jdbc\readme.txt what your version of Oracle is capable of.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > can't connect to database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway