Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
ljupce gligorov
Greenhorn
+ Follow
1
Posts
1
Threads
0
Cows
since Apr 11, 2009
Merit badge:
grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
Ranch Hand Scavenger Hunt
Number Posts (1/100)
Number Threads Started (1/100)
Number Cows Received (0/5)
Number Likes Received (0/10)
Number Likes Granted (0/20)
Set bumper stickers in profile (0/3)
Report a post to the moderators (0/1)
Edit a wiki page (0/1)
Create a post with an image (0/2)
Greenhorn Scavenger Hunt
First Post
Number Posts (1/10)
Number Threads Started (1/10)
Number Likes Received (0/3)
Number Likes Granted (0/3)
Set bumper stickers in profile (0/1)
Set signature in profile
Search for a post/thread (0/3)
Set a watch on a thread
Save thread as a bookmark
Create a post with an image (0/1)
Recent posts by ljupce gligorov
Oracle.JDBC Connection Problem
Hello to everyone, I'm writing for first time at this forum.
I have problem with my oracle Db connection.
In my project libraries I've loaded ojdbc14.jar.
I got 2 oracle errors.Please help.
public class OracleDriverLoader { /** * @param args the command line arguments */ public static void main(String[] args) { Connection conn = null; try { Class.forName("oracle.jdbc.OracleDriver"); System.out.println("Oracle driver is loaded"); conn = DriverManager.getConnection("jdbc:oracle:thin:ljupce/ljupce@localhost:1521:XE"); System.out.println("Connected with: @localhost:1521:XE"); Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("select sysdate from dual"); while(rs.next()) System.out.println(rs.getString(1)); stmt.close(); conn.close(); }catch (Exception e) { System.err.println("Error: "+e.getMessage()); e.printStackTrace(); } } } run: Oracle driver is loaded Error: ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:283) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:278) at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:785) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:362) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414) at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:207) at OracleDriverLoader.main(OracleDriverLoader.java:26) BUILD SUCCESSFUL (total time: 2 seconds)
show more
14 years ago
JDBC and Relational Databases