If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > Connecting java and oracle--error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-11-10, 02:13
punithap punithap is offline
Registered User
 
Join Date: Jun 2009
Posts: 1
Connecting java and oracle--error

I have installed oracle9i and now am trying to connect java to the database i have created.
i have created DSN and Test was successful.
But while executing the program i get error as java.sql.SQLException: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle
on SQL_HANDLE_ENV failed

and in my java program i have given

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbcdbc:mca","m ca","mca");
stmt=con.createStatement();

how to solve this plse help....its very urgent
Reply With Quote
  #2 (permalink)  
Old 03-12-10, 14:31
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,451
Why don't you use the Oracle JDBC driver to connect to the Oracle database?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On