PL/SQL (MOSC)

MOSC Banner

It return ORA-01017: invalid username/password; logon denied when call java via plsql wrapper

edited Jan 23, 2020 10:43AM in PL/SQL (MOSC) 18 commentsAnswered

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 {

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center