Can not reconncet to jdbc as different user, Help me please.

Some one help me please.
I want to reconnect to jdbc as different user, but my program can not work. My source code as below :
public String connect(String MCH1)
{ApplicationModule  MYAM =Configuration.createRootApplicationModule
("mypackage3.Mypackage3Module","Mypackage3ModuleLocal");
    Transaction  myTrans = MYAM.getTransaction();
    String URL="jdbc:oracle:thin@charie";
    String user ="MCH1";
    String password ="MCH1";
//   myTrans.disconnect();
//   myTrans.disconnect(false);
//   myTrans.disconnect(true);
    myTrans.connect(URL,user,password);
    if(!(myTrans.isConnected()))
    { System.out.println("Completed Connection");
      lberrmsg.setText("Completed Connection");}
else {System.out.println("Incompleted Connection");
      lberrmsg.setText("Incompleted Connection");}
The first time, I tried to do not disconnect the current connection, after run I had encounter the error message
as oracle.jbo.AlreadyConnectedException: JBO-25201: Already connected to a database.
The next time and later time , I tried to disconnect the current connection by default
myTrans.disconnect();
myTrans.disconnect(false);
myTrans.disconnect(true);
after run I had encount[i]Long postings are being truncated to ~1 kB at this time.

Hi Hussein,
ran adpatch and got the same error
i will try the note.
Thanks,
Enter the password for your 'SYSTEM' ORACLE schema:
...Unable to connect.
AutoPatch error:
The following ORACLE error:
ORA-01017: invalid username/password; logon denied
occurred while executing the SQL statement:
CONNECT SYSTEM/*****
AutoPatch error:
Unable to connect to 'SYSTEM'; password may be invalid.

Similar Messages

Maybe you are looking for

  • Unable to change Value  From M to S in p2011 for Orgini field

    dear freinds,              I have uploaded data using the F<M HR_INFOTYPE_OPERATION for infotype 2011 . However i am not able change the value for Origin(defaulted as M) ......as this field is greyed out . As such when i am trying to pass another val

  • Additional field in PR & PO

    Hi My client has a scenario where Purchase requisition  quantity will be altered due to some reasons & user would like to mention the reason in a new field in the delivery schedule tab. Again In po also additional field is required to enter reason in

  • How to compile a servlet

    I am trying to compile a servlet using the import javax.servlet.*; import javax.servlet.http.*; packages. But the only thing I keep getting is : BasicServlet.java:1: package javax.servlet does not exist import javax.servlet.*; ^ BasicServlet.java:2:

  • October 4th update erased user settings

    Yesterday's update messed up a lot of my user settings and god knows what happened behind the scene which are not so visible. here is the detail, after coming back from the restart; 1. I had go through the set up assistant all over again,  icloud log

  • Help regarding drop table information

    hello all, i want to know is there any data dictionary present who maintainted the droped table history with terminal number so i can easily know who dropped perticular table . any help appriciated Message was edited by: Pankaj M