connect to oracle Server via Jdbc
hello
im trying to connect oracle server in another Computer but i get Exception
here is my code :
public PersonDa()
{
try {
Class.forName("oracle.jdbc.driver.DriverManager");
connection = DriverManager.getConnection("oracle.jdbc:thin:192. 168.32.1:1521:orcl", "SYSTEM", "123456");
} catch (Exception e)
{
e.printStackTrace();
}
}
Re: connect to oracle Server via Jdbc
Quote:
but i get Exception
Care to share what that may be, lest you wish us to guess?
Re: connect to oracle Server via Jdbc
Hello.
Try to get one simple working oracle JDBC program by visiting some online JDBC tutorials.
And compare that code with what you have written. Of course, compare just the core logic - obtaining connection, executing statement, etc.
You should be able to find out the errors.
Syed.