Hi All ,
I am using Oracle 11 G and i have a java clause which is used to connect the another DB and pull the data. Below is My JDBC Syntax
public static void query(String usr, String pssw, String hostname, String port, String DB, String InitialDate) throws Exception
{
Class.forName("oracle.jdbc.OracleDriver");
String url = "jdbc:oracle:thin:@//" + hostname + ":" + port +"/" + DB;
Connection connIW = DriverManager.getConnection(url, usr,pssw);
try {
Statement stmt = connIW.createStatement();
Now i am getting
ORA-29532:
Java call terminated by uncaught Java exception: java.sql.SQLException:
ORA-01017: invalid username/password; logon denied
But i can able to connetc with Sql developer using the same user name , Password , HOST , port and DB Service name .
Could some one help me to resolve the issue.
Regards,
San.