Oracle 7 Database connection : driver ?
I used classes12.zip for connection to Oracle 8.
But this doesn't work for oracle 7.
Error
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:210)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
Is this a driver problem ?
What is that i need to do for connectioning to Oracle 7 server at remotely.
Error
java.sql.SQLException: Io exception: The Network
Adapter could not establish the connection
Is this a driver problem ?It does not appear like a driver problem.
It could be:
a. A network problem
b. A configuration problem (something to do with TNSNAMES.ORA)
c. An incorrect hostname or port being used in your code (which you have not posted)
d. Something that I am not aware of.
Are you able to connect to the instance using SQL-Plus?
Message was edited by:
aniseed
Similar Messages
-
While creating MViews in oracle 9i database connecting to table in an orac
Hi all,.
While creating MViews in oracle 9i database connecting to table in an oracle 11g database....
Eg : create materilized view testmview as select * from testtable@db_linkname
ORA-03113: end-of-file on communication channel
any idea
Regards,
ShijuThere would be a trace file written on the 11g database server. Please review the trace file.
Your 9.2 environment must be running 9.2.0.4 or higher. The 9.2.0.4 is the minimum patchset level required for it to be supported connecting to an 11g (11.1 or 11.2) database.
See "Client / Server / Interoperability Support Between Different Oracle Versions [ID 207303.1]" on support.oracle.com
Hemant K Chitale -
Error in Oracle Lite Database connection
Hi,
I have installed the Oracle Application server 10.1.3.1.0 on my laptop (basic installation).
I tried to define a database connection in the JDeveloper connection navigator to the Oracle lite database. When I test the connection I got an error:
"Internal Error:Invalid Connect String".
I have defined in the connection tab of the Edit database connection in the following way:
Driver class: oracle.lite.poljdbc.POLJDBCDriver
Library: OLite
Classpath: C:\product\10.1.3.1\OracleAS_1\bpel\lib\olite40.jar
URL: jdbc:polite4@localhost:100:orabpel
Could anyone tell me which user and password I should define for the oracle lite database which is delivered with Oracle Application server 10.1.3.1.0?Hi,
Did you start the SOA suite on your workstation?
If so, can you reach the BPEL Console
if so, check via Enterprise Manager the connect string in the OC4J instance of BPEL (oc4j_soa -> administartion -> JDBC > conenctions, or data-sources.xml)
Copy the connect string into your OLite config if it works -
Programm change in Oracle ADF database connection
Hello!
Our company uses an application implemented in Oracle Forms. We have about 2500 users. Each user works with a database using Oracle c your login / password.
We want to migrate to Oracle ADF. But the concept of Oracle ADF - under a single user connection.
But the position of the database administrators - do not use OracleInternetDirectory (LDAP), does not create users in WebLogic. :(
In our company, users are created in the database Oracle. Users are database role.
Our idea is to send in an application ADF user name and password. Safety is solved at the database level.
Can I do this:
1. When the application starts to change the ADF database connection to a user username / password?
2. Can there be problems in the future?
3. Are there any examples?
Please help
Vasily (sorry for bad english)/
Edited by: user10711272 on 16-Jan-2012 08:43Hi,
You can create a custom authentication provider in WLS that uses a JAAS Login Module that attempts to connect to the database for authentication pupose. The application itself would run with a JDBC Data Source, so that you only use the database account to authenticate the user and get his/her database roles as authorization groups. I have a sample for this on my to-do list but so far hadn't the time to get to it. So yes, you don't need OID or LDAp to manage users but could keep going using the database
Frank -
Regarding working with oracle spatial database connections
sir/madem,
i am an engg student, my final year project on inserting data into oracle spatial database through java /jsp , i am working with oracle spatial database 10g/11g,
i want know how to insert/retrive/ manuplute the spatial data into oracle spatial databse for 10g/11g, through java programing,
the syntax for connection of oracle spatial database 10g/11g, needed,
i have less time to finish my project
i hope u help me
thank u
kasim
([[email protected]|mailto:[email protected]])For database access from Java, you will use JDBC.
For the specifics of the oracle spatial database, you'll have to check the documentation/forum of Oracle.
* [How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html]
* [JDBC Tutorial|http://java.sun.com/docs/books/tutorial/jdbc/index.html] -
Oracle 11G + Database Connection taking too much Time
Hi ,
I am using Oracle 11G . When i try to connect to oracle database
sqlplus system/impetus@database
it takes too much time ( more than 1 min )
I am not getting why this is happening ?
Before some day it was working fine but suddenly the problem occurred.. Is this issue is related to log files generated by oracle or memory related issue ( sga and pga)..
Any Help please ?Darn! /tmp/capture.log does not contain what I expected it to contain.
So a different approach is needed.
issue the following command:
script /tmp/capture.log
#now you are in a new shell & issue the next 3 lines
strace sqlplus system/impetus@database
exit
Ctrl-d (Control D)
now issue the following commands.
ls -l /tmp/capture.log
wc -l /tmp/capture.log
Post the results from 2 commands above back here -
Issue with Oracle 10g database connectivity
Hi,
Oracle 10g Express edition is been installed in my machine at the location C:\Oracle10g.
When i tried to connect the same from toad it is working fine.
Visual studio-2008 is been installed in machine at loc C:\Program files(x86)\
Problem I am facing is unable to connect Oracle 10g from vb.net application.I am connecting usig Oracle Provider for OLE DB but the program directly coming to exception block
with out connecting to database.
My OS is Windows7 and I am thinking oracle 10g Express will not support completely to this OS.Please suggest me to resolve this issue and comapatable Oracle DB for the same.
Edited by: 1909 on Apr 25, 2011 12:17 AMHi,
Try uninstalling and installing VS at the path which does not include brackets. Have a look at my thread.
Re: Database engine setup for 10.2.0.5
Thanks,
Jignesh -
Oracle 11g database Connection & Response are very slow
I have an ORACLE 11g R2 on lRed Hat Enterprise Linux Server release 5.3 (Tikanga).
initially it was working fine.
Now a days while attempting to connect into the database from network using @service_name
it takes a lot of time to establish the connection and even it gets connected the query response time is very high.
on the other hand if I connect from the native database machine's terminal without @service_name it works fine & the response time is convincing. But even from the native database machine's terminal with @service_name it is giving me the same pain.
can any body help me how to fix this.
Thanks in advance..
Arkeshthanks for the reply & Query
Alert Log entry do look like this
ORACLE_BASE from environment = /u01/app/oracle
Thu Apr 22 07:29:10 2010
ALTER DATABASE MOUNT
Successful mount of redo thread 1, with mount id 4283520006
Database mounted in Exclusive Mode
Lost write protection disabled
Completed: ALTER DATABASE MOUNT
Thu Apr 22 07:29:15 2010
ALTER DATABASE OPEN
Beginning crash recovery of 1 threads
parallel recovery started with 7 processes
Started redo scan
Completed redo scan
read 15 KB redo, 23 data blocks need recovery
Started redo application at
Thread 1: logseq 449, block 8217
Recovery of Online Redo Log: Thread 1 Group 2 Seq 449 Reading mem 0
Mem# 0: /u01/app/oracle/oradata/ultimus/redo02.log
Completed redo application of 0.01MB
Completed crash recovery at
Thread 1: logseq 449, block 8248, scn 10502937
23 data blocks read, 23 data blocks written, 15 redo k-bytes read
Thread 1 advanced to log sequence 450 (thread open)
Thread 1 opened at log sequence 450
Current log# 3 seq# 450 mem# 0: /u01/app/oracle/oradata/ultimus/redo03.log
Successful open of redo thread 1
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
SMON: enabling cache recovery
Successfully onlined Undo Tablespace 2.
Verifying file header compatibility for 11g tablespace encryption..
Verifying 11g file header compatibility for tablespace encryption completed
SMON: enabling tx recovery
Database Characterset is WE8MSWIN1252
No Resource Manager plan active
replication_dependency_tracking turned off (no async multimaster replication found)
Starting background process QMNC
Thu Apr 22 07:29:18 2010
QMNC started with pid=27, OS id=3611
Completed: ALTER DATABASE OPEN
Thu Apr 22 07:29:20 2010
db_recovery_file_dest_size of 10240 MB is 0.00% used. This is a
user-specified limit on the amount of space that will be used by this
database for recovery-related files, and does not reflect the amount of
space available in the underlying filesystem or ASM diskgroup.
Thu Apr 22 07:29:20 2010
Starting background process CJQ0
Thu Apr 22 07:29:20 2010
CJQ0 started with pid=28, OS id=3817
Thu Apr 22 07:34:18 2010
Starting background process SMCO
Thu Apr 22 07:34:18 2010
SMCO started with pid=19, OS id=3861
Thu Apr 22 07:59:23 2010
Thread 1 advanced to log sequence 451 (LGWR switch)
Current log# 1 seq# 451 mem# 0: /u01/app/oracle/oradata/ultimus/redo01.log
Thu Apr 22 10:09:23 2010
DM00 started with pid=34, OS id=6272, job ULTIMUS.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:09:25 2010
DW00 started with pid=35, OS id=6274, wid=1, job ULTIMUS.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:11:20 2010
Thread 1 cannot allocate new log, sequence 452
Private strand flush not complete
Current log# 1 seq# 451 mem# 0: /u01/app/oracle/oradata/ultimus/redo01.log
Thread 1 advanced to log sequence 452 (LGWR switch)
Current log# 2 seq# 452 mem# 0: /u01/app/oracle/oradata/ultimus/redo02.log
Thu Apr 22 10:13:28 2010
DM00 started with pid=45, OS id=6395, job ULTIMUSISL.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:13:29 2010
DW00 started with pid=46, OS id=6397, wid=1, job ULTIMUSISL.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:14:29 2010
Thread 1 cannot allocate new log, sequence 453
Private strand flush not complete
Current log# 2 seq# 452 mem# 0: /u01/app/oracle/oradata/ultimus/redo02.log
Thread 1 advanced to log sequence 453 (LGWR switch)
Current log# 3 seq# 453 mem# 0: /u01/app/oracle/oradata/ultimus/redo03.log
Thu Apr 22 10:15:40 2010
DM00 started with pid=43, OS id=6432, job IULTIMUS.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:15:41 2010
DW00 started with pid=45, OS id=6434, wid=1, job IULTIMUS.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:16:38 2010
DM00 started with pid=45, OS id=6450, job ULTIMUSEXT.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:16:38 2010
DW00 started with pid=46, OS id=6452, wid=1, job ULTIMUSEXT.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:26:18 2010
Fatal NI connect error 12537, connecting to:
(LOCAL=NO)
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
Time: 22-APR-2010 10:26:18
Tracing not turned on.
Tns error struct:
ns main err code: 12537
TNS-12537: TNS:connection closed
ns secondary err code: 12560
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
opiodr aborting process unknown ospid (6587) as a result of ORA-609 -
Oracle 8i Database Connection Error
Hello
I have installed Oracle8i Enterprise on WinNT
4.0.However I am unable to connect to the
database thru' SQLPlus and I am getting the above error "TNS COULD NOT RESOLVE SERVICE NAME".I also checked the same thru' Net8i
assistant and tried testing of connection to database which has been created under my name
"Sumit" .I am therefore unable to connect to the database and getting similar errors ORA-12541 and sometimes ORA-01034.Please help me out.The login user name I am using is "scott"
password "tiger" and hoststring is "Sumit".
ThanksDear Sudip,
Thanks a lot for responding to my message ..I had lost hope of
receiving a response.Sudip,I tried connecting throu' Net8 configuration
as "SYSTEM" and password "MANAGER" but couldnt connect thro'.Although
I must mention that I could log on to SQLPLUS as INTERNAL/ORACLE after
which I gave the STARTUP command .The Oracle instance got started
however it also gave me an error ORA-00205 "error in identifying
controlfile, check alert log for more info".Now I tried to create a
SCOTT/TIGER schema but the script does not run and I get the following
error
SP2-0310: unable to open file "OraHome81\RDBMS\ADMIN\SCOTT.SQL"
and the same with "Sumit\RDBMS\ADMIN\SCOTT.SQL" .I am neither able to
create a table as it gives "database not open error" .
Sudip there is another aspect which I would like to bring to your
attention .It is that in the Control panel,when I click the server icon
it gives me "not enough server memory to process this command".
Also when I click the Services icon and try to start the
OraHome81Management server it gives me "the system could not find the
environment option that was entered" and is unable to start and with
the OraHome81TNSListener it gives me "the process terminated
unexpectedly " error and is unable to start either.
Now I wonder where the problem could lie !.Could it be with the OS
--WinNt and if so what could be the way to rectify it.Please help if
you can or alternatively if you know about any other forum where this
problem can be addressed..Thanks again..REGARDS
Sumit -
hi
when I coonect to database in Java, I got error message:
connection failedIo exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
Cheers, HelenERR=12505 resolves to an Oracle error:
TNS-12505 TNS:listener could not resolve SID given in connect descriptor
Cause: The SID in CONNECT_DATA was not found in the listener's tables.
Action: Check to make sure that the SID specified is correct. The SIDs that are currently registered with the listener can be obtained by typing "LSNRCTL SERVICES listener_name". These SIDs correspond to SID_NAMEs in TNSNAMES.ORA, or DB_NAMES in the INIT.ORA file. -
Locating user tables in an Oracle 11g database
Excuse my ignorance on this subject
But our company has an Oracle 11g database that drives one of our business applications. I am not an oracle admin and there is very little documentation on the application itself, however the application seems to have its own set of explicit login (username and password) credentials so I am guessing they are hashed somewhere in the database tables.
My question would be – are there any default oracle tables where user credentials would typically be? or tips on tracking down where the password hashes may be? Or can this differ from application to application? Any tips welcome. Apologies for the naivity of the question. My goal is to identify which database accounts can query the table the hashes are in, as we have some users who can access the database for data analysis purposes - but I dont want them to have access to the table.user599292 wrote:
EdStevens wrote:
user599292 wrote:
Excuse my ignorance on this subject
But our company has an Oracle 11g database that drives one of our business applications. I am not an oracle admin and there is very little documentation on the application itself, however the application seems to have its own set of explicit login (username and password) credentials so I am guessing they are hashed somewhere in the database tables.
My question would be – are there any default oracle tables where user credentials would typically be? or tips on tracking down where the password hashes may be? Or can this differ from application to application? Any tips welcome. Apologies for the naivity of the question. My goal is to identify which database accounts can query the table the hashes are in, as we have some users who can access the database for data analysis purposes - but I dont want them to have access to the table.The information relative to the user accounts is revealed in the view DBA_USERS, which normal users should not have a need to see. However, the passwords are stored in a true hash. It cannot be used directly, and cannot be reversed. So being able to see the hashed password does not in itself constitute a security risk.
When a user is being authenticated, the procedure that oracle uses is NOT to 'decrypt' the stored password to see if it matches the password presented by the user. Rather, the password presented by the user is hashed, and that hash value is compared against the stored value.My concern was if they could extract those password hash values, there are many free password crackers where if they run dictionary values against those hash values and if any match they then have some passwords to gain perhaps elevated access in the application.Such a method would have to assume a password, know how oracle 'salts' the password, hash the result, then compare to the hashed values from the table. If you employ even a modicum of password complexity enforcement, I doubt that your developers are going to have access to the kind of computing capacity that would be required to get a positive result within your lifetime.
You need to do three things
First and foremost, adhere to the principle of 'least privilege'. Do not grant a user account any privileges that are not required for that account to complete it's business task. That includes access to any tables or views. Be wary of any "--ANY---" privileges.
Second, use the password complexity function to enforce a reasonable level of password complexity.
Third, Set the user's profile to expire the pasword after 'x' number of days and prevent the reuse of a password until after 'y' iterations. -
** 911 ** Cannot connect to oracle 9i database No suitable Driver
All:
Any help rendered would be appreciated. (jdk 1.4.2_06, Tomcat 4.0,
Oracle DB 9i Windows XP)
I have a web app (Jasper report tool) and I cannot connect to a Oracle 9i database.
1)error received: "Apr 2, 2007 2:05:15 PM com.entDB.Enterprise_db connectToDatabase SEVERE: Function connectToDatabase() - Cannot load the driver, reason:java.sql.SQLException: No suitable driverCheck classpath for driver java.sql.SQLException: No suitable driver
2)CLASSPATH SETTING = C:\tomcat\common\lib\ojdbc14.jar
3)Source code:
protected boolean connectToDatabase() {
try {
// I tried this !!! Class.forName("oracle.jdbc.driver.OracleDriver");
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
con = DriverManager.getConnection("URL,USER,PASSWORD ");
return true;
}catch (SQLException e) {
logger.error("Function connectToDatabase() - Cannot load the driver, reason:" + e.toString() + "Check classpath for driver ", e);
return false;
4.I placed a copy of the jar file in TOMCAT common lib, and server lib.
I have tried various solutions listed at different web sites without success. Has anyone had similiar problems? Can anyone assist?
thanks ......
******* Confused *********I used 911 because It is an emergency for me (I am
under a deadline) . You might want to read this: Urgent Questions
URL, PASSWORD, USER are strings
declared in another section of code.Yes, but in the code you posted the variable names are all inside double quotes? -
Hi,
This is Sathish, I am trying to create a report and retrieve data through stored procedure using ODBC Connection. When connecting to the Stored Procedure it is showing Database Connection Error 42000:[Microsoft][ODBC driver for oracle] Syntax error or access violation' Error.
CRXI R2, Oracle 9i.
What do i do to solve this issue.
Regards,
SathishHi Satish
It could be an issue with the driver.
You can try with the OLEDB n Oracle native connection to test if the issue persists.
Also you can refer to the [Troubleshooting Database Connectivity for Crystal Reports|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e&overridelayout=true]
Hope this helps!!
Regards
Sourashree -
Installing JDBC driver to connect to Oracle 8i Database from Weblogic 10.3
I want to connect to Oracle 8i database from weblogic 10.3 application server. I found a classes12. zip file on Oracle.com to use as driver for the same.
I am also connecting Oracle 9i database from the app server. Now if i replace the classes12. jar from the lib folder won't it disallow me to connect to the Oracle 9i database.
2ndly the claases12.zip file i found from the site is for jdk 1.2 will it create any problems. Please let me know
Kindly let me know what is the standard procedure to install a new driver in Weblogic 10.3.I tried to install weblogic 10.3 using jdk 1.5.07 but. it is not supported. Moreover from the sites also i found that it's only the application wars and ears compiled in jdk 1.5 need not be recompiled in 1.6. But no reference of jdk 1.5 is there.
I tried to use thin client from the code and connect to Oracle 7i
i got the following exception.
java.lang.ArrayIndexOutOfBoundsException: 4
at oracle.jdbc.driver.T4C8TTIdty.marshal(T4C8TTIdty.java:465)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:329)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
490)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:202)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:33)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at com.omantel.finacc.DAO.DatabaseConnection.getUBCCConnection(DatabaseC
onnection.java:372)
at com.omantel.finacc.java.DMADAO.getUBCLAmount(DMADAO.java:411)
at jsp_servlet.__receiptentry._jspService(__receiptentry.java:1198)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3498)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
<Apr 22, 2009 3:36:47 PM GMT+04:00> <Error> <HTTP> <BEA-101017> <[weblogic.servl
et.internal.WebAppServletContext@553afb - appName: 'DMA', name: '/DMA', context-
path: '/DMA', spec-version: 'null'] Root cause of ServletException.
com.omantel.finacc.exception.AppException: 4
at com.omantel.finacc.exception.ExceptionHandler.handleException(Excepti
onHandler.java:43)
at com.omantel.finacc.java.DMADAO.getUBCLAmount(DMADAO.java:428)
at jsp_servlet.__receiptentry._jspService(__receiptentry.java:1198)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3498)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
java.lang.ArrayIndexOutOfBoundsException: 4
at oracle.jdbc.driver.T4C8TTIdty.marshal(T4C8TTIdty.java:465)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:329)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
490)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:202)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:33)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at com.omantel.finacc.DAO.DatabaseConnection.getUBCCConnection(DatabaseC
onnection.java:372)
at com.omantel.finacc.java.DMADAO.getUBCLAmount(DMADAO.java:411)
at jsp_servlet.__receiptentry._jspService(__receiptentry.java:1198)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3498)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
> -
Database Connection problem (JSP, Oracle & Tomcat 5.5)
I am trying connect to Oracle 8 database through JSP and the webserver is Tomcat5.5. The classes.jar file is in the Tomcat5.5\common\lib directory and the path has also been set to mentioned directory. But I am getting exceptions. The code and the error are given below.
Need help at the earliest.
Thanks in advance.
CODE
Class.forName ("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@insrs013:1521:GCR","BILLING_USER", "BILLING_USER");
PreparedStatement pstmt = null;
ResultSet rs = null;
pstmt = con.prepareStatement("INSERT INTO PROJECTIP(PROJECTID, PROJECTSERVERNAME, SERVERIP) VALUES(?,?,?)");
ERROR
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: oracle.jdbc.driver.OracleDriver
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.test.ServerIPDataSave_jsp._jspService(org.apache.jsp.test.ServerIPDataSave_jsp:137)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1338)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:127)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
java.lang.ClassLoader.loadClassInternal(Unknown Source)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)
org.apache.jsp.test.ServerIPDataSave_jsp._jspService(org.apache.jsp.test.ServerIPDataSave_jsp:71)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Hope is only the love of life.hi,
FIrst make one thing clear. By classes.jar you mean either classes111.jar or classes12.jar.Right?If not,please check tht.
Also,u needn't set any classpaths for Tomcat.
Regards,
Viswanath.
Maybe you are looking for
-
Hi People, Sender SFTP Adapter needs to pick file based on time parameter viz: File_20140412. Tried with EJB AttributeMapper - But it comes into picture after execution. Can anyone suggest a solution? Only Delete mode is available - Also let me know
-
How to change your security questions
Hello, so today i was trying to download songs and it asked for my security questions, but sadlyi have fogotten the answers i put down fo r them. I was wondering if there is a way for you to change your answers/questions? please help!
-
How do I reset thinkpad x201 log in passphrase?
I have gone into BIOs setup utility and "Using Passphrase" is greyed out -meaning I cannot change the passphrase or disable it. I've also tried to take out the battery and backup battery. It changed nothing. Help please!
-
Dear Experts, I have a problem. I have developed one report and format is: Plant Material Unrestricted Qty Unrestricted Value Blocked Qty Blocked Value ANK1 700026 2.000 NOS
-
How does "SoftReference" and "WeakReference" work?
Hello, everybody! I want to design a cache with "SoftReference" the cache is just like: int length = 1024; Object[] cacheObjects = new Object[length+1]; cacheObjects[value.hashCode() & length] = new SoftReference(value);I hope the "value" and soft re