It return ORA-01017: invalid username/password; logon denied when call java via plsql wrapper
I wrote a most simple java code which contains jdbc connection, then ran it IN JAVA COMMAND WINDDOW by OS user oracle which is the db admin user, it WORKED WELL.
Then, I create a PLSQL wrapper procedure for this java code and call this Plsql precode , It returned Ora-01017 error.
Could you please provide me some hint to get the root cause and resolve it? Any help will appreciated.
The steps:
1. The java code:
import java.sql.Connection;
import java.sql.DriverManager;
public class Test {
public static void main(String[] args){
Connection conn = null;
System.out.println("begin");
try {