Error with Connection to Oracle with Wallet , JDBC, and UNIX

Hello - our application has been getting this error periodically while connecting to an oracle database using OCI JDBC drivers.
caused by: java.sql.SQLException: ORA-28759: failure to open file
at oracle.jdbc.driver.DatabaseError.throwsSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:681)
at oracle.jdbc.driver.T2CConennection.logon(T2CConnection.java :362)
at oracle.jdbc.driver.PhysicalConnection.<init>
at oracle.jdbc.driver.T2CConnection.<init>
at oracle.jdbc.driver.T2CDriverExtension.getConnection
at oracle.jdbc.driver.OracleDriver.connect
at java.sql.DriverManager.getConnection
at java.sql.DriverManager.getConnection
Once we get this error we keep getting it and are unable to get a connection until we restart it. the file it has the issue with is the cwallet.sso, which I figured out by turning on tracing. The file is there and it gets the connection originally - but for some reason periodically we lose access to that file. But when we get the error the file is there and when we restart the process it's perfectly fine.
The only way we have been able to replicate this error is by create a sameple JAVA app which just keeps opening connections to the database with the wallet without closing the connections. Everytime we hit the 50th connection that error appears and it's unable to get another connection. If we close the connections everytime it's alright.
It's not a limit on the amount of connections to oracle because we have no limit set. The best explaination we can find is that unix has some sort of limit on how many concurrent accesses to that file can be done within one process. We have been unable to figure out that limit. We tried playing around with the file descriptor limits to see if it gets more or less then 50, but no luck.
If anyone has any other suggestions it would be greatly appreciated - we are stuck right now.
Thanks!

No suggestions?

Similar Messages

  • Error while connecting to Oracle db using jdbc

    When I try to execute a java class which has to access data in
    the Oracle db using Jdbc connection, get an error --
    Appln- pathname/filename is attempting to call the OCI function
    (opinit) this function does not exist in ORA72.DLL.
    Exit this appln ? Yes or No
    Both oracle db & java are on the same PC.Would like to know what
    can be done to rectify this.
    Thanks.
    null

    The OCI driver 7.3 requires the 7.3 OCI to be installed (this is
    part of the client required support files or RSF). The particular
    call in question wasn't added to the OCI untill 7.3 so it
    wouldn't exist in the 7.2 OCI library.
    null

  • Problem with connecting ipad 2 with crestron cp2e...help plss its urgent... I hv a ipad 2 with mobile pro g connected with cp2e. when i pressed any button in ipad its connet with cp2e but after 4-5 sec one error comes (warning wifi was powered off while t

    problem with connecting ipad 2 with crestron cp2e...help plss its urgent...
    I hv a ipad 2 with mobile pro g connected with cp2e. when i pressed any button in ipad its connet with cp2e but after 4-5 sec one error comes (warning wifi was powered off while the device was in auto -lock(sleep)press connect to reconnect) when i pressed again its connected with cp2e. i am using netgear wireless access point . i also has been changed access point as well as updated ipad firmware bt problem is as it is .. pls help.

    Hi have you solved the issue ?
    Cause I have the same problem.
    Tnx

  • I can't open swf files for schoolwork. Installed VCL, Flip4Mac and Adobe flash and shockwave players. Can get white screen with connection erro message with adobe flash player. Help me!

    i can't open swf files for schoolwork. Installed VCL, Flip4Mac and Adobe flash and shockwave players. Can get white screen with connection erro message with adobe flash player. Help me!

    Apple dropped playback support for .swf formats in QuickTime almost ten years ago.
    Adobe Flash Player is the only way to view them.

  • Error when connecting an oracle DB with Integration gateway

    I followed the steps from the blog How to connect an Oracle DB with Integration Gateway in SMP3 and the ojdbc was deployed successfully to SMP. Still, i'm getting "Driver class oracle.jdbc.driver.OracleDriver not found" error message when i try to test my connection. The first difference i saw when completing these steps was that I'm using SMP3 SP05, could this be the issue?

    Joao D Franco Net
    Could you share below information:
    Can you cross check if deployed driver are OSGi enabled? Refer this.
    Can you share screenshot of the destination settings and error ?
    note: The blog you followed is referring to SP03 (1st GA of SMP3)..You should not have any problem in connecting to Oracle DB being on any SP.
    Regards,
    JK

  • Error in connecting to Oracle webcenter DB with Endeca

    Hi,
    I gave the passthrough values and the rest of the details in the developer studio. However, on running baseline, I am getting the below error:
    Apr 15, 2013 5:22:23 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
    WARNING: Could not find properties file in classpath; defaults will be used.
    Apr 15, 2013 5:22:23 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
    WARNING: outputDataDir ..\incoming not writable
    Apr 15, 2013 5:22:24 PM com.endeca.edf.adapter.AdapterRunner run
    SEVERE: Failed to open connection to: jdbc:oracle:<host>:<port>/<dbname>.
    com.endeca.edf.adapter.plugins.JdbcAdapterException: Failed to open connection to: jdbc:oracle:<host>:<port>/<dbname>.
    +     at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:201)+
    +     at com.endeca.edf.adapter.plugins.JdbcAdapter.execute(JdbcAdapter.java:94)+
    +     at com.endeca.edf.adapter.AdapterRunner.run(AdapterRunner.java:168)+
    +     at com.endeca.edf.adapter.AdapterRunner.main(AdapterRunner.java:43)+
    Caused by: java.sql.SQLException: Invalid Oracle URL specified
    +     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:423)+
    +     at java.sql.DriverManager.getConnection(DriverManager.java:582)+
    +     at java.sql.DriverManager.getConnection(DriverManager.java:154)+
    +     at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:188)+
    +     ... 3 more+
    Getting invalid oracle url for jdbc:oracle:<host>:<port>/<dbname>. Please suggest correct url for connecting to oracle db.
    Thanks.

    Hi,
    I found out that the db bundled with webcenter sites is HSQL. So, I performed the same steps using hsql jar but getting the below error:
    Apr 16, 2013 2:18:09 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
    WARNING: Could not find properties file in classpath; defaults will be used.
    Apr 16, 2013 2:18:09 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
    WARNING: outputDataDir ..\incoming not writable
    Apr 16, 2013 2:18:11 PM com.endeca.edf.adapter.AdapterRunner run
    SEVERE: Failed to open connection to: jdbc:hsqldb:hsql://<host>:<port>.
    com.endeca.edf.adapter.plugins.JdbcAdapterException: Failed to open connection to: jdbc:hsqldb:hsql://<host>:<port>.
         at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:201)
         at com.endeca.edf.adapter.plugins.JdbcAdapter.execute(JdbcAdapter.java:94)
         at com.endeca.edf.adapter.AdapterRunner.run(AdapterRunner.java:168)
         at com.endeca.edf.adapter.AdapterRunner.main(AdapterRunner.java:43)
    Caused by: java.sql.SQLException: socket creation error
         at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
         at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
         at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
         at org.hsqldb.jdbcDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:154)
         at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:188)
         ... 3 more
    Getting Socket creation error :( Can u pls help in connecting to hsql db? Probably my DB_URL is also wrong, not sure of the correct parameter. I have given :
    jdbc:hsqldb:hsql://<host>:<port>
    Also, 1 more surprising thing is that even though hsql db is working from webcenter sites explorer, in services, there is no hsql service visibile.

  • I met an error when connect to oracle db with tag sql:DataSource

    When I use the jstl tag <sql:DataSource> connect to oracle db ,I met an error as :
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
    My Source code as follow:
    <sql:setDataSource var="dataSource" driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@192.168.1.220:1521:gzserver" scope="request" user="lnmisscall" password="lnmcadmin"/>
    <sql:query dataSource="{$dataSource}" var="data">
    I am sure the connection information are right (I can connecte to the db with them in jsp & java bean) , and I have put the oracle's jdbc driver under the tomcat/common/lib folder,
    Please help me to fit it ,thanks.

    Sabrina,
    Its all dependent on the application and whether its 32-bit or 64-bit.  For example, SSRS reporting services 2008 R2 is a 64-bit application, so load the 64-bit oracle client there for report execution.  Report builder is a 32-bit client application,
    assuming its running on a different machine, so load the 32-bit oracle client on any user computers using RB 3.0 and working with Oracle.  If the computers are one in the same, then do as the post above says, load both...

  • How do I connect to Oracle with JDBC using "dedicated processor".

    Because of performance problems we want to try to connect to
    oracle using dedicated processor. We can do this from SQL Plus,
    does anybody know what we need to set up in order to utilize
    this from JDBC?

    Which Java runtime error? (stack trace?)

  • Problem with connect to oracle by jdbc

    hi,
    First time i try to connect to the oracle db 10.2.0* EE in java and its problem. I use eclipse 3.4, jre1.5.0_17, driver ojdbc14.jar (dedicated to this oracle ver and jre).
    package connect;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class JDBC_Conn {
            void polaczenie_z_baza() throws SQLException {
                try {
                    Class.forName("oracle.jdbc.driver.OracleDriver");  
                    System.out.println("connected");      
                } catch (Exception e) {
                    System.out.println("not connected");
                Connection polaczenie=DriverManager.getConnection("jdbc:oracle:thin:@3.123.123.321:1521:RI3","user","pass");
    public static void main(String[] args){
         JDBC_Conn b = new JDBC_Conn();
            try {
                    b.polaczenie_z_baza();
            } catch (SQLException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
    }and after run in console i see: "connected" but after 2 seconds i see error:
    java.sql.SQLException: Wyj&#261;tek we-wy: The Network Adapter could not establish the connection
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:439)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at connect.JDBC_Conn.polaczenie_z_baza(JDBC_Conn.java:18)
         at connect.JDBC_Conn.main(JDBC_Conn.java:24)This is important that i can login to the database by pl/sql developer using tnsnames.ora like this:
    CIF2 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 3.123.123.321)(PORT = 1521))
        (CONNECT_DATA =
          (SID = RI3)
      )but when im logging by plsql developer i need to enter the name of database "DWH" too, another i cant login. The same when i log by sql plus, i need to enter the: user@DWH.
    So please tell me could i add to this string:
    "jdbc:oracle:thin:@3.123.123.321:1521:RI3","user","pass"
    the DWH database? where i should to put it?
    i try a lot of cases and cant login
    thanks for help

    i put:
    String url = "jdbc:oracle:thin:"+user+"/"+pass+"@blahblahblah:blah:blah";
                    System.out.println( url );
                    Connection con = DriverManager.getConnection( url );and i have:
    not connected
    jdbc:oracle:thin:user/password@blahblahblah:blah:blah
    java.sql.SQLException: Wyj&#261;tek we-wy: Invalid number format for port number
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:439)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at connect.JDBC_Conn.polaczenie_z_baza(JDBC_Conn.java:27)
         at connect.JDBC_Conn.main(JDBC_Conn.java:37)the pass and user name i put corectly..
    is it possible that DBA did some restrict to access DB?
    Edited by: pawelwtorek on 2009-03-19 16:59

  • Trying to simply connect to Oracle with VBscript/ASP - and I cannot.

    This is rather embarrassing. I am pretty fluent with ASP and VBscript, and I have written many a web application connecting to Microsoft SQL Server. Now I have a need to connect to an Oracle database, and I'm beating my head against the wall.
    1) Web server is Windows Server 2003 SP1
    2) Using ASP (not ASP.NET) & VBscript
    3) I have installed the Oracle drivers on the server - it is version 10g
    4) The administrator of the Oracle database to which I want to connect has created a username and password for me to use from within my code
    5) Here is the code I am trying to run:
    Set objConn = Server.CreateObject("ADODB.Connection")
    objConn.Open "Provider=MSDAORA;Data Source=XXXXXXX;User Id=YYYYYYY;Password=ZZZZZZZ;"
    That's it. 2 lines of code just trying to establish a connection. Using the user name and password provided to me by the administrator, and for Data Source I am using the IP address of the Oracle server (like I have done in the past when connecting to SQL Server). I receive the following error message when viewing this in a browser:
    Microsoft OLE DB Provider for Oracle error '80004005'
    ORA-12154: TNS:could not resolve the connect identifier specified
    Evidently, the Data Source I am using is not correct, but I was provided no other information from the admin. This is the first time any of us have tried to connect to Oracle using ASP/VBScript, so the administrator isn't sure what I need to do ... any help would be so appreciated.

    Hello,
    I got mine to work by setting up an ODBC System DSN and connecting to it. I think this bypasses the Microsoft driver, which might be what's causing the problem.
    Set Db = Server.CreateObject("ADODB.Connection")
    Db.Open "DSN=TEST;User ID=userid;Password=password;"
    Good luck, I've found it requires a lot of persistence...
    Al
    Springfield, MO

  • Error in connecting the database with context.xml resource

    Dear everyone,
    i am trying to connect the application with database...
    i have a table with employee id, name...
    i have given context xml and established connection..
    but i am getting error as
    * " Element type "Resource" must be followed by either attribute specifications, ">" or "/>"."
    * "The context.xml file seems to be broken. Check whether it is well-formed and valid."
    anyone please give ur suggestions....

    the error that i received now was...
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 34 in the jsp file: /index.jsp
    Context cannot be resolved to a type
    31:        int i=0;
    32:       
    33:       
    34:        Context ctx = new InitialContext();
    35:        DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/employee");
    36:       
    37:        try
    An error occurred at line: 34 in the jsp file: /index.jsp
    InitialContext cannot be resolved to a type
    31:        int i=0;
    32:       
    33:       
    34:        Context ctx = new InitialContext();
    35:        DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/employee");
    36:       
    37:        try
    An error occurred at line: 35 in the jsp file: /index.jsp
    DataSource cannot be resolved to a type
    32:       
    33:       
    34:        Context ctx = new InitialContext();
    35:        DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/employee");
    36:       
    37:        try
    38:         {
    An error occurred at line: 35 in the jsp file: /index.jsp
    DataSource cannot be resolved to a type
    32:       
    33:       
    34:        Context ctx = new InitialContext();
    35:        DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/employee");
    36:       
    37:        try
    38:         {
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.

  • I can not establish a connection to Oracle with an application in win 7

    I have an application in VB6 that connects to an Oracle Database 10g with Oracle native ole db but win7 can not make the connection with a standard user, only makes the connection to a user with administrator permissions. The error that shows the application's rubbish eg @, H, etc.. only rare characters.
    Edited by: gualja on 11/01/2013 04:13 PM

    Did you try adding the user in administrator group and running your programm, even doing so is giving you same error?
    Can you connect to sqlplus as non admin user and fire sql commands
    start>run>sqlplus (if you have more than one installation, run from your oracle_home/bin)
    connect as the non admin user and run sql
    if the "User Account Control is enabled", try disabling

  • Error when connect to SAP with JCo Connector on linux

    Dear all,
    Please, i need help. i was tray to connect to SAP with SAP JCo on linux ubuntu, but i have an error.
    this is the error :
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM  GWHOST=myhost, GWSERV=sapgw00, ASHOST=myhost, SYSNR=00
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       hostname 'avatar-bumi' unknown
    TIME        Thu Feb 14 15:25:48 2008
    RELEASE     640
    COMPONENT   NI (network interface)
    VERSION     37
    RC          -2
    MODULE      niuxi_mt.c
    LINE        388
    DETAIL      NiPGetHostByName2: hostname 'avatar-bumi' not found
    SYSTEM CALL gethostbyname_r
    ERRNO       110
    ERRNO TEXT  Connection timed out
    COUNT
            at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
            at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1125)
            at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)
            at sapjco.Main.main(Main.java:34)
    Exception in thread "main" com.sap.mw.jco.JCO$Exception: (121) JCO_ERROR_NULL_HANDLE: Invalid rfc_handle = NULL encountered
            at com.sap.mw.jco.rfc.MiddlewareRFC.nativeGetAttributes(Native Method)
            at com.sap.mw.jco.rfc.MiddlewareRFC$Client.getAttributes(MiddlewareRFC.java:1233)
            at com.sap.mw.jco.JCO$Client.getAttributesInternal(JCO.java:2940)
            at com.sap.mw.jco.JCO$Client.getAttributes(JCO.java:2994)
            at sapjco.Main.main(Main.java:38)
    How to resolve this error....
    Regards,
    Lisa
    Edited by: Lisa Yanti on Feb 14, 2008 9:35 AM

    I was resolve this error by my self.
    We can handle this error with registering our current IP and host name on /etc/hosts.
    example:
    content of /etc/hosts:
    127.0.0.1 localhost
    127.0.1.1 myhost.workgroup
    The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    added the ip and host name to be like this configuration
    127.0.0.1 localhost
    127.0.1.1 myhost.workgroup
    172.20.17.74 myhost
    The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts

  • Error while connecting to Oracle in Linux

    I wrote a JAVA program to test the connection with Oracle. It worked in NT environment, but it did not in Linux Environment. I got the error message: "IO exception: The Network Adapter could not establish the connection."
    Here is JAVA code:
    import java.sql.*;
    class Employee1
    public static void main (String args [])
    throws SQLException
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@203.149.143.1:1521:ora1",
    "dxhub", "manager");
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select user_id from user_info");
    while (rset.next ())
    System.out.println (rset.getString ("user_id"));
    catch(Exception e)
    System.out.println(e.getMessage());
    I think there is nothing wrong with JAVA code. There must be something wrong in the Linux environment. I appreciate your help if someone can give me a little advice.
    Tony
    null

    I wrote a JAVA program to test the connection with
    Oracle. It worked in NT environment, but it did not
    in Linux Environment. I got the error message: "IO
    exception: The Network Adapter could not establish
    the connection."
    Here is JAVA code:
    import java.sql.*;
    class Employee1
    public static void main (String args [])
    throws SQLException
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn =
    DriverManager.getConnection
    n ("jdbc:oracle:thin:@203.149.143.1:1521:ora1",
    "dxhub", "manager");
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select user_id
    d from user_info");
    while (rset.next ())
    System.out.println (rset.getString ("user_id"));
    catch(Exception e)
    System.out.println(e.getMessage());
    I think there is nothing wrong with JAVA code. There
    must be something wrong in the Linux environment. I
    appreciate your help if someone can give me a little
    advice.
    Tony
    nullDid you ever find an answer to this, I'm having the same problem. My application works under windows, but doesn't under linux.
    Lonnie

  • Error in connection to oracle using java

    hi ,
    i am tring to make a connection to oracle database using java with this code
    public class DataBase {
    public DataBase(){
    Connection connection = null;
    try {
    // Load the JDBC driver
    String driverName = "oracle.jdbc.dirver.OracleDriver";
    Class.forName(driverName);
    // Create a connection to the database
    String serverName = "http://localhost:7777";
    String portNumber = "1521";
    String sid = "ora9i";
    String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
    String username = "scott";
    String password = "tiger";
    connection = DriverManager.getConnection(url, username, password);
    } catch (ClassNotFoundException e) {
    JOptionPane.showMessageDialog(null,"Coud not find the database driver ");
    // Could not find the database driver
    } catch (SQLException e) {
    JOptionPane.showMessageDialog(null,"Coud not connect to the database ");
    // Could not connect to the database
    public static void main(String[] args) {
    new DataBase();
    i always got the compilation error Coud not find the database driver
    i am using oracle9i and jdk1.5.0_04 and my classpath is C:\oracle\ora92\jdbc\lib\ojdbc14.zip;C:\oracle\ora92\jdbc\lib\orai18n.zip
    i am realy stuck with this so any one can help me with this probelm
    thanks alot,

    thanks for your reply,
    yes i changed the server name and i verified the location of the JDBC driver file(s) on my computer. any way i solved my problem.
    you know there was a misunderstanding in what you mean by classpath, i thought that i have to change the classpath from control panel>system>advance>enviroment variable
    and then select classpaht and edit it. i was doing this but this is didn't work.
    then i don't know why i did that
    i went to java program and select my project,right click on it and then select properties>java build path and then select "add external Jars" button and then i simply choose them and add them to my project. and finaly it worked.
    thanks alot

Maybe you are looking for

  • Report on inbound delivery

    hi gurus, is there any standanrd report avl in SAP for to  view these are the deliveries which are still incomplete wrt plant /vendor/material etc.? i found one but i that all deliveries shown. regards, sujit

  • Simple Decode Function

    Gurus, Please help me with a decode function. doknlbc can be null or not equal bnuinfc in some occasions. select dokkeyi, decode(doknlbc,null,'no emp_id',bnuinfc) as emp_id from dok, bnu where doknlbc = bnunamc and dokkeyi in (6545,6525); Result DOKK

  • My iOS 6 AppStore app doesn't shown update badges when there are updates

    Hi guys~ I am using iPhone5 with iOS 6.1.2 without jailbroken. My AppStore app doesn't show any badges when there are updates available. Anybody have the same problem? Thank you so much!

  • Severe pixellation PAL DVD format, Premier Elements 11

    Hi I am facing severe pixellation problem on a moving object, when rendered in Elements 11. The source was Sony mini DV captured as AVI through Premier and then rendered as PAL DVD output. Strangely, this shows up when the disc is played on DVD playe

  • HP 15-n274sa AMD A10 4655m running at 90c-100c on idle.

    Hi there. I am a responsible Laptop owner and I usually install a resource monitor like HW Monitor or Speccy. I found out that my CPU is running right near the maximum of 90c to 100c on idle. This is a bran new laptop. This laptop is unfit for purpos