This is what i have followed according to previous posted suggestions about the topic:
"connect to oracle8.1.7 database thru weblogic6.1 and
EJB using a Oracle driver"
I use a oci jDriver for Oracle:
Can anybody tell me where is the problem "java.sql.SQLException: ORA-24327: need explicit attach before authenticating a u
ser - (SCOTT/********@oracle)" comes from (after try whole afternoon and night, i really exhausted)
Thank you very much
my running results:
===============================================
C:\>set path="" and set classpath=""
C:\>cd bea
C:\bea>
java utils.dbping ORACLE SCOTT TIGER ORXML
'java' is not recognized as an internal or external command,
operable program or batch file.
C:\bea>java utils.dbping ORACLE SCOTT TIGER oracle
'java' is not recognized as an internal or external command,
operable program or batch file.
C:\bea>set path=c:\j2sdk1.4.0\bin;
C:\bea>java utils.dbping ORACLE SCOTT TIGER oracle
Exception in
thread "main" java.lang.NoClassDefFoundError: utils/dbping
C:\bea>set classpath=c:\bea\wlserver6.1\lib\weblogic.jar;
C:\bea>java utils.dbping ORACLE SCOTT TIGER oracle
Starting Loading jDriver/Oracle .....
Error encountered:
java.sql.SQLException: System.loadLibrary(weblogicoci37) threw java.lang.Unsati
fiedLinkError: no weblogicoci37 in java.library.path
at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:226)
at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at utils.dbping.main(dbping.java:167)
C:\bea>set path=%path%c:\bea\wlserver6.1\bin\oci816_8;
C:\bea>java utils.dbping ORACLE SCOTT TIGER oracle
Starting Loading jDriver/Oracle .....
Error encountered:
java.sql.SQLException: System.loadLibrary(weblogicoci37) threw java.lang.Unsati
fiedLinkError: C:\bea\wlserver6.1\bin\oci816_8\weblogicoci37.dll: Can't find de
endent libraries
at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:226)
at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at utils.dbping.main(dbping.java:167)
C:\bea>set path=%path%c:\Oracle\Ora81\bin;
C:\bea>java utils.dbping ORACLE SCOTT TIGER oracle
Starting Loading jDriver/Oracle .....
---------- LOGIN ERROR CODE: 24327
Error encountered:
java.sql.SQLException: ORA-24327: need explicit attach before authenticating a
ser - (SCOTT/********@myservername)
at weblogic.db.oci.OciConnection.getLDAException(OciConnection.java:161
at weblogic.jdbc.oci.Driver.connect(Driver.java:112)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at utils.dbping.main(dbping.java:167)
========================================