Database connection problem in Oracle 8.1.6

Hi,
I have a program which was written in C++ and Pro*C for UNIX. I didn't use runtime context for database connection.The program runs ok under Oracle 8.0.4. When compiled and run under Oracle 8.1.6 I got a "libc internal error - _rmutex_unlock not held" error. This error occurs only when "EXEC SQL CONNECT :loginName " is called.
I wonder if we always have to create a runtime context for connection under Oracle 8.1.6 ?
Thanks in advance for your help.
Harry

I had the same symptom from a multithreaded C++ application
until I added the -mt option to the CC command when linking.
You are supposed to use it for compiling, too.
Louis Warshawsky
Computer Associates

Similar Messages

  • 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.

  • Database connection problem in oracle sql developer kit?

    Status : Failure -Test failed: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

    Hi,
    You have to check the service_name in the tnsnames.ora file located in the oracle installed folder.
    Check one more whether the services are up or not.
    Regards,
    VG

  • Connection problem to Oracle 11.1.0 on Windows Professional XP (SP2)

    Hello
    I've recently performed default installations for 3 Oracle Databases, into seperate homes on a newly formatted Windows
    Professional XP (SP2) standalone laptop. For all databases Oracle 10.2.0 (rover), Oracle XE (xe) and Oracle 11.1.0 (fido) I
    installed APEX and they worked perfectly.
    I then installed my Wireless O2 Broadband for my internet which uses DHCP
    I am unable to connect to my databases with the wireless broadband connected. I then bring down all databases and turn
    off/disable the Broadband,then restart all databases.
    Using commands
    Set ORACLE_SID=ROVER
    sqlplus system/rover@rover
    Set ORACLE_SID=XE
    sqlplus system/xe@xe
    Set ORACLE_SID=FIDO
    sqlplus system/fido@fido
    Connections are successfull apart from the Oracle 11.1.0 (fido) database with error
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Can anybody identify my connection problem to Oracle 11.1.0 (fido) database by reviewing my listener.ora, tnsnames.ora and
    other configuration files below.
    Many thanks in advance
    Regards
    Ade
    tnsping results
    ===============
    C:\>tnsping rover
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localho
    t)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = rover)))
    OK (10 msec)
    C:\>tnsping xe
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = bascilic
    o)(PORT = 1522)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (30 msec)
    C:\>tnsping fido
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
    t)(PORT = 1523)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = fido)))
    OK (20 msec)
    lsnrctl stat - results
    ======================
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1523)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.1.0.7.0 - Production
    Start Date 17-OCT-2009 15:54:12
    Uptime 0 days 0 hr. 32 min. 11 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\11.1.0\db_fido\network\admin\listener.ora
    Listener Log File c:\oracle\product\11.1.0\diag\tnslsnr\bascilico\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1523ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bascilico)(PORT=1523)))
    The listener supports no services
    The command completed successfully
    General configuration - Environment variables
    =============================================
    PATH =
    C:\oracle\product\11.1.0\db_fido\bin;C:\oracle\product\10.2.0\db_rover\bin;C:\oracle\oraclexe\app\oracle\product\10.2.0\serve
    r\bin;C:\oracle\ohs\bin;C:\oracle\ohs\jlib;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI
    Technologies\ATI Control Panel
    TNS_ADMIN = C:\oracle\tns
    C:\oracle\tns\tnsnames.ora
    ==========================
    ROVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rover)
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bascilico)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    FIDO =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1523))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = fido)
    Oracle 10.2.0 listener.ora
    ==========================
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_rover)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    Oracle 10.2.0 tnsnames.ora
    ==========================
    ROVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rover)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Oracle XE listener.ora
    ======================
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oracle\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = bascilico)(PORT = 1522))
    DEFAULT_SERVICE_LISTENER = (XE)
    Oracle XE tnsnames.ora
    ======================
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bascilico)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    Oracle 11.1.0 listener.ora
    ==========================
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1523))
    Oracle 11.1.0 tnsnames.ora
    ==========================
    LISTENER_FIDO =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1523))
    FIDO =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1523))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = fido)
    )

    For static registration you need to update the 3 listener.ora files.
    Exemple:
    SID_LIST_LISTENER_FIDO =
      (SID_LIST =
        (SID_DESC
          (ORACLE_HOME = <Oracle Home path>)
          (SID_NAME=FIDO)
    )

  • Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem

    Hi,
    I failed to connect Tomcat 5.0.24 with Postgresql
    7.4.2. The files created by me and the changes i had
    made in the existing files are rates.jsp,
    conversionDAO.java, web.xml and server.xml. The error
    message on the top of the rest of it was "The value of
    useBean class attribute converter.conversionDAO is
    invalid". So far I found out that the coding for
    database connectivity purpose in conversionDAO.java
    cause the error. Another thing is Postgresql jdbc
    driver is required to set in the CLASSPATH for the
    java file to access the Postgresql database. I don't
    know where should I put it in Tomcat for web
    application. Anyway, I put it in
    $CATALINA_HOME/shared/lib according the book i
    refered. I do the database connectivity coding refer
    to the Tomcat Kick Start book from Sams Publishing.
    Below are the coding involved, please show me the
    mistake i had made. Thank you.
    ----server.xml----
    <Context path="/database"
    docBase="${catalina.home}/webapps/database" debug="0"
    reload="true">
    <ResourceParams name="jdbc/conversion">
    <parameter>
    <name>username</name>
    <value>myusername</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>mypassword</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>org.postgresql.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:postgresql://localhost/conversion</value>
    </parameter>
    </ResourceParams>
    </Context>
    ----web.xml----
    <servlet>
    <servlet-name>conversionDAO</servlet-name>
    <servlet-class>converters.conversionDAO</servlet-class>
    </servlet>
    <resource-ref>
    <res-ref-name>jdbc/conversion</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    ----conversionDAO.java----
    public conversionDAO() throws SQLException,
    NamingException
    Context init = new InitialContext();
    Context ctx = (Context)
    init.lookup("java:comp/env");
    DataSource ds = (DataSource)
    ctx.lookup("jdbc/conversion");
    con = ds.getConnection();
    select = con.prepareStatement(
    "SELECT rate FROM Exchange WHERE src= ? AND dst =

    Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem (cont.)
    Errors log
    2004-06-06 01:07:53 StandardContext[servlets-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[servlets-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:59 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-06-06 01:08:00 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:01 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /rates/rates.jsp(5,0) The value for the useBean class attribute converters.conversionDAO is invalid.
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:141)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217)
         at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    ----more----

  • Database connection problem when i try store the values in JTable

    Hi Sir,
    I have a database connection problem when i try to store the data's in a JTable.I think the problem is with in the database connection.I have used 3 vectors here.The database which i have used is
    Access.Where the program is compiling well.But when i run it only the first column heading is printed and error message showing that
    "Invalid Cursor State".I need to solve this problem.pls. do help me.
    I will provide u with the code.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.util.*;
    import java.sql.*;
    public class DataBaseVector extends JPanel
    //Container contentPane=getContentPane();
    JScrollBar jsb = new JScrollBar(JScrollBar.HORIZONTAL);
    JScrollBar jsb1 = new JScrollBar(JScrollBar.VERTICAL);
    Image i1;
    String url="jdbc:odbc:Ananth";
    Vector col=new Vector();
    Vector rows=new Vector();
    Vector rdata=new Vector();
    Connection conn;
    public DataBaseVector()
    //super("JTable With ScrollBars");
    this.setLayout(new BorderLayout());
    UIManager.put("ScrollBar.track",Color.red);
    UIManager.put("ScrollBar.thumb",Color.blue);
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    conn=DriverManager.getConnection(url); // Is there any problem here?
    Statement st=conn.createStatement();
    ResultSet rs=st.executeQuery("Select * from AccountMaster");
    // rs is the result set obtained
    ResultSetMetaData rsmd=rs.getMetaData();
    int cols=rsmd.getColumnCount();
    for(int i=1;i<=cols;i++)
    col.addElement(rsmd.getColumnName(i));
    rdata.addElement(rs.getString(i));
    rows.addElement(rdata);
    }catch(Exception e)
         System.out.println("The Error Message was:"+e.getMessage());
    JTable jt=new JTable(rows,col);
    int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
    int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
    JScrollPane jsp=new JScrollPane(jt,v,h);
    this.add(jsp,BorderLayout.CENTER);
    this.add(jsb, BorderLayout.SOUTH);
    this.add(jsb1, BorderLayout.EAST);
    public static void main(String args[])
    JFrame jf=new JFrame();
    JPanel frame=new DataBaseVector();
    jf.getContentPane().add(frame);
    jf.setSize(800,600);
    jf.setVisible(true);
    Thanx,
    m.ananthu

    The problem is ResultSet.next() is not called.
    Try this and modify the table creation as you need.
    ResultSetMetaData rsmd=rs.getMetaData();
    int cols=rsmd.getColumnCount();
         while(rs.next()) {
              for(int i=1;i<=cols;i++)
                        col.addElement(rsmd.getColumnName(i));
                        rdata.addElement(rs.getString(i));
              rows.addElement(rdata);
    Hope this helps

  • Database Connection Problem in Oracle9i Lite Web-to-Go

    Hi
    I am having problem in the Database Connectivity. I am using the OracleDriver class for the connection and have defined the DataSource in the struts-config.xml as
    <data-sources>
    <data-source>
    <set-property property="driverClass"
    value="oracle.jdbc.driver.OracleDriver" />
    <set-property property="url"
    value="jdbc:oracle:thin:@192.50.200.201:1521:WEBTOGO.WORLD" />
    <set-property property="maxCount"
    value="5"/>
    <set-property property="minCount"
    value="1"/>
    <set-property property="user"
    value="master"/>
    <set-property property="password"
    value="ramchow"/>
    </data-source>
    </data-sources>
    But when I am trying to do any database transaction it is throwing the following exception..
    log9: [ERROR] ActionServlet - -Initializing application data source org.apache.s
    truts.action.DATA_SOURCE <java.sql.SQLException: Io exception: Connection refuse
    d(DESCRIPTION=(TMP=)(VSNNUM=153093120)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505
    )(EMFI=4))))>java.sql.SQLException: Io exception: Connection refused(DESCRIPTION
    =(TMP=)(VSNNUM=153093120)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:335)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:361)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:442)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
    at org.apache.struts.legacy.GenericDataSource.createConnection(GenericDa
    taSource.java:805)
    at org.apache.struts.legacy.GenericDataSource.open(GenericDataSource.jav
    a:741)
    at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionSe
    rvlet.java:1085)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at oracle.lite.web.JupServlet.createInstance(JupServlet.java:349)
    at oracle.lite.web.JupServlet.getServlet(JupServlet.java:322)
    at oracle.lite.web.JupServlet.service(JupServlet.java:216)
    at oracle.lite.web.AppServletHandler.handle(AppServletHandler.java:297)
    at oracle.lite.web.JupApplication.service(JupApplication.java:550)
    at oracle.lite.web.JupHandler.handle(JupHandler.java:109)
    at oracle.lite.web.HTTPServer.process(HTTPServer.java:306)
    at oracle.lite.web.HTTPServer.handleRequest(HTTPServer.java:162)
    at oracle.lite.web.JupServer.handle(JupServer.java:310)
    at oracle.lite.web.SocketListener.process(SocketListener.java:172)
    at oracle.lite.web.SocketListener$ReqHandler.run(SocketListener.java:226
    log9: javax.servlet.UnavailableException: Initializing application data source o
    rg.apache.struts.action.DATA_SOURCE
    log9: at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionSe
    rvlet.java:1091)
    log9: at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
    log9: at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    log9: at oracle.lite.web.JupServlet.createInstance(JupServlet.java:349)
    log9: at oracle.lite.web.JupServlet.getServlet(JupServlet.java:322)
    log9: at oracle.lite.web.JupServlet.service(JupServlet.java:216)
    log9: at oracle.lite.web.AppServletHandler.handle(AppServletHandler.java:297)
    log9: at oracle.lite.web.JupApplication.service(JupApplication.java:550)
    log9: at oracle.lite.web.JupHandler.handle(JupHandler.java:109)
    log9: at oracle.lite.web.HTTPServer.process(HTTPServer.java:306)
    log9: at oracle.lite.web.HTTPServer.handleRequest(HTTPServer.java:162)
    log9: at oracle.lite.web.JupServer.handle(JupServer.java:310)
    log9: at oracle.lite.web.SocketListener.process(SocketListener.java:172)
    log9: at oracle.lite.web.SocketListener$ReqHandler.run(SocketListener.java:226.
    Can anybody guide me what can be the problem asap.
    regards
    ramchow

    Ramesh,
    This looks like it might be a Java class mismatch error. Do you have multiple versions of Java installed on your machine? If so, you may want to keep one version and remove the rest.
    If you're already running just one version, you may want to check the registry and classpath for references to multiple Java versions, or version that no longer exist.
    Please let me know if you have additional questions.
    Junius

  • Too many inactive database connections (c#, webapp, Oracle)

    <br /><p> </p><p>I have a web application that uses the CrystalDecisions.Web.CrystalReportViewer to display my reports. </p><p>The application opens a connection to an Oracle database with SetDatabaseLogon(). </p><p>I have not yet implemented anything to free the connections when they&#39;re not needed anymore. I read in the  </p><p> Crystal help that the best place to call ReportDocument.Close() is in the Page_Unload method.</p><p>The problem is that my reports have dynamic cascading  parameters that make the page reload (ie Page_Unload -> Page_Load) several times. </p><p> </p><p>I can eventually call  ReportDocument.Close() in a Global.asax method, like Session_End(), but I&#39;m not sure it is optimal, as my report object is not known in this scope and I have extra code to write to handle this.</p><p> </p><p>Is there a better way to manage database connection ? </p><p>Can anyone provide a working sample ?</p><p>thanks </p>

    <p>I&#39;m not aware of a better way.  Your connections are definately being held up because you are not closing the Report.  Possibly you could put a conditional ReportDocument.close() call in your unload method.  You would need to check to make sure that the document was available and that you weren&#39;t loading parameters.  I&#39;m sure that this would work. </p><p>Rob Horne</p><p><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

  • Sun One application server connection problem for Oracle DB

    On our project in live environments we have six Sun One application servers that have been configured to connect to RAC Oracle database using OCI drivers. ( JDBC thick driver)
    Sun one application server : Version 7.0.0
    Oracle Database : Version 9.2.0.4.0
    Following are two scenarios where Sun one server receives an error while attempting to perform any DML operations onto the database e.g. when you will try to send a insert/update msg through sun One.
    Case 1: - If the Oracle package/procedure/function is compiled using �Alter package/function/procedure....� command
    problem
    Any attempt to perform a DML operation using RMI calls though Sun one application server with already established oracle connection will fail.
    Sun One application server needs to be bounced to get an up-to-date state of the package.
    Case 2: If the Oracle package/procedure/function is compiled using �Create or Replace package/function/procedure....� command
    problem
    First attempt to perform any DML operation using RMI calls though Sun one application server with already established oracle connection will always fail. Any subsequent attempts will be successful.
    We are using JDBC OCI think drivers. I tried flushing Shared pool at the Oracle side but it didn't help. For some reason Sun One seems to Cache the session information for already establised connections with Oracle database. As its live system we don't want any outage. i.e we know bouncing oracle app server will solve the problem.
    So just wondering is there way/workaround to make aware the already estlised connection from sun one appserver to Oracle DB about changed packages/proceduress in the DB?
    Any thoughts on this would be much appreciated.
    txns
    Ravi

    Forgot one thing: when I use remote debugging , it works.

  • Database connectivity problem with instant client.

    Guys,
    I've installed the Oracle instant client basic and ODBC files in my system.
    But when I create a system DSN and test the connectivity my database connectivity,it fails with
    ORA-12637:Packet receive failed error
    My TNSNAMES reads below:
    ONDSP101.DIGITALINDIASW.NET =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = namesrv1.xy.zz.com)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ONDSP101)
    and my SQLNET as below:
    AUTOMATIC_IPC = OFF
    TRACE_LEVEL_CLIENT = ON
    SQLNET.INBOUND_CONNECT_TIMEOUT=20
    NAMES.DEFAULT_DOMAIN = na.pg.com
    NAME.DEFAULT_ZONE = na.pg.com
    SQLNET.CRYPTO_SEED = "kdg:9yv2$-plo*u6b2x!"
    NAMES.DIRECTORY_PATH = (ONAMES,TNSNAMES)
    NAMES.PREFERRED_SERVERS =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = TCP.xy.zz.com)
    (PROTOCOL = TCP)
    (Host = namesrv1.xy.zz.com)
    (Port = 1522)
    (ADDRESS =
    (COMMUNITY = TCP.xy.zz.com)
    (PROTOCOL = TCP)
    (Host = namesrv2.xy.zz.com)
    (Port = 1522)
    I've placed my TNSNAMES and SQLNET file in the same folder having the instant client files and I've set my TNSADMIN,LD_LIBRARY_PATH and PATH environmental variable to the folder location.
    Note:I'm able to connect to the database using SQLplus.
    Thanks,
    Bhagat

    12637, 00000, "Packet receive failed"
    // *Cause:  A process was unable to receive a packet from another process.
    // Possible causes are:
    // 1. The other process was terminated.
    // 2. The machine on which the other process is running went down.
    // 3. Some other communications error occurred.
    // *Action: If the cause is not obvious, contact Oracle Customer Support.
    These days I very seldom use ODBC for Oracle - most recently it was simply to get Enterprise Architect to "talk" to Oracle. I never used it for my client applications (unlike in the fast distant past), so what I know about ODBC is seriously outdated.
    Even so, a few comments. :-)
    Have you tried creating a user DSN, in case a system DSN somehow works different environment wise?
    The above error description sounds like the original TCP connection was successful (i.e. it is not a host unknown or not reachable error). Subsequent packets seem to fails.
    To confirm, run the listener on namesrv1.xy.zz.com with logging enabled and have a look at the listener.log - does it show a connection being accepted/handled from your PC when you use the ODBC DSN?
    Have you tried the Oracle ODBC drivers? When getting EA connected I had problems (also with Instant Client) and Microsoft ODBC driver for Oracle. Downloaded and installed the Oracle ODBC driver and it worked just fine first time around.
    PS. You should raise this topic on the Instant Client Forum instead.

  • Database Connection Problem on Linux

    I have recently installed Oracle Database on a linux server. The app server that accesses db is JBoss.
    Always, I end up seeing an error "java.sql.SQLException: No more data to read from socket".
    To verify if the problem is with JBoss, I have written a simple stand alone java class to access the db, and ended up with the same error.
    Can anybody help me out ??
    -Aswin.

    This error most likely occurs in applications that
    use a database connections pool. When the application
    checked out a connection that has been timed out or
    has been staled, and used it to connect to the
    database, this error occurs.
    Could also be a result of connection timeout.Yeah! may be it is the result of connection timeout, but I am sure it cannot be realted to connection pool, because to verify if there were any configuration problems on JBoss, we have written a simple java class that directly accesses the database.
    If it is because of connection timeout, how do i fix it ??

  • Database connection problem SQL Error: 20, SQLState: 61000

    we are doing stress test on our new web site that uses vaadin framework and hibernate. Our application/web server is apache tomcat and maximum thread number is adjusted to 750.
    we are using jmeter for stress test and when we send 500 user scenario (approximately 15 - 20 database connection per user) in 30 seconds
    we are encountered the following error:
    *14:43:10,502 WARN JDBCExceptionReporter:233 - SQL Error: 20, SQLState: 61000*
    *14:43:10,503 ERROR JDBCExceptionReporter:234 - The Network Adapter could not establish the connection*
    but if we send 500 user in 45 seconds there is no problem, jmeter test is completed with 100% success. even if we send 900 user in 120 or 180 second it is OK.
    it seems that there is a DB related parameter that we could not handle properly or maybe operating system limitation (windows 2008 R2).
    any help will be appreciated. thanks in advance.
    gokhan
    Edited by: gokhangulgezen on May 31, 2011 6:38 AM

    It's the DBMS. Oracle particularly can react this way when there are too many connection requests
    coming in, whether from multiple threads at once, or even from one thread in a tight loop. I do
    not know if there's a way to moderate/adjust this. I typically recommend using connection-pooling,
    and to do as much as possible to populate the pool before there is application load.
    Joe

  • Database connection problem java.lang.ArrayIndexOutOfBoundsException

    Hi,
    I am using Interstage server 7 and Oracle 11g for upgradation of project, application compilation is fine, but when I run the application its giving database connection exception.
    Full stack trace like below. JDK version is 1.3. can anybody tell me what may be the problem?
    2010-11-22 15:16:42 - ConnectionPool()
    java.lang.ArrayIndexOutOfBoundsException
         at oracle.security.o3logon.C1.r(C1)
         at oracle.security.o3logon.C1.l(C1)
         at oracle.security.o3logon.C0.c(C0)
         at oracle.security.o3logon.O3LoginClientHelper.getEPasswd(O3LoginClientHelper)
         at oracle.jdbc.ttc7.O3log.<init>(O3log.java:291)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:257)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:307)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:172)
         at jp.tt.framework.db.DBConnection.getConnection(DBConnection.java:65)
         at jp.tt.framework.db.DBConnection.getConnection(DBConnection.java:88)
         at jp.tt.framework.db.ConnectionPool.<init>(ConnectionPool.java:38)
         at jp.tt.framework.BaseCommon.<clinit>(BaseCommon.java:217)
         at jp.tt.framework.core.Crypt.getInstance(Crypt.java:79)
         at org.apache.jsp.menu_jsp._jspService(menu_jsp.java:53)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:309)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:239)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:362)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:511)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:270)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:412)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:301)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2515)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:249)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:184)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:370)
         at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:137)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:232)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:646)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:436)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:806)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:479)
    Thanks in advance
    Manjunath
    Edited by: 814259 on 2010/11/21 23:47
    Edited by: 814259 on 2010/11/21 23:49

    Thank you for the replies
    The problem got solved. Problem was older version of Oracle driver was placed in WEB-INF/lib and a directory called lbrary(we created it) above WEB-INF, we were placed newer version of driver in oracle's jdbc/lib directory and specified that path in classpath. But by default the older version was prioritized and used by application so we were getting the exception mentioned. When we deleted older version of driver everything got working. This explation may help for those who have similar type of problems.
    Thanks

  • Database Connection Problem via a Windows Form

    I am having a problem getting a database connection using a windows form. The strange thing is I can use the same connection string in the sister web application and the database connection works perfectly fine.
    I am using:
    .NET 1.1
    ODP.NET 9.2.0.700
    Oracle 9i PatchSet 11
    Here is an example of the connection string:
    _oraConnStringMain = "Data Source=mydb;User Id=myid;Password=mypass"
    The error is: "ORA-12154: TNS:could not resolve service name" and remember the same connection string and implementation is the web application works fine.
    Offending code:
              public bool ValidateOracleConnection(string connectionString)
                   bool _success = false;
                   OracleConnection oraConn = new OracleConnection(connectionString);
                   try
                        oraConn.Open();
                        _success = true;
                   catch (Exception ex)
                        MessageBox.Show(ex.Message.ToString(), "MYAPP", MessageBoxButtons.OK,
                             MessageBoxIcon.Information);
                        _success = false;
                   return _success;
    Any ideas?

    Hi Steven,
    My only WAG is that a different sqlnet.ora or tnsnames.ora might be used for the two different apps. Search your machine for both files. Are they only in the OH\network\admin directory?
    You may want to run a client side sqlnet trace of both apps, and compare them. It should tell you what tnsnames.ora file it's using, and may give a clue as to why the difference.
    Hope that helps,
    Greg

  • Client side connection problems with Oracle

    Hello,
    I'm using JUnit to test my code and am having client connection problems.
    Weblogic server 6.1sp2, oracle 8.1.7, win 2000
    I create an oracle user on the fly (with a dynamic name) and then need to connect
    so I'm getting a direct connection, rather than using a connection pool.
    it works fine when run through the container, but when run through JUnit I get the
    following error:
    java.sql.SQLException: The pool driver only works within the WebLogic server, it
    cannot be called directly in a client. Use the t3 driver.
    So i changed the code to:
    driver = (Driver)Class.
         forName("weblogic.jdbc.t3.Driver").newInstance();
    from:
    driver = (Driver)Class.
         forName("weblogic.jdbc.oci.Driver").newInstance();
    and now i get this error:
    java.sql.SQLException: No suitable driver
    Any ideas??
    Thanks!
    Sara

    Hi Sara,
    You may want to look at Cactus framework. This is a JUnit extension
    for serverside tests. You won't need to care about server/client
    configuration:
    http://jakarta.apache.org/cactus/index.html
    Regards,
    Slava Imeshev
    "Sara Chieco" <[email protected]> wrote in message
    news:3cf7b9ad$[email protected]..
    >
    Hi Sree,
    Actually, I also have a connection pool, so I am getting connections tothe database
    both using the pool (for the static user) and directly for the dynamicusers.
    >
    Here's the code in the config.xml:
    <JDBCConnectionPool CapacityIncrement="2"
    DriverName="weblogic.jdbc.oci.Driver" InitialCapacity="6"LoginDelaySeconds="1" MaxCapacity="60"
    Name="pics"
    Properties="weblogic.oci.cacheRows=500;user=**;password=**;defaultRowPrefetc
    h=500;server=nmctest"
    RefreshMinutes="10" ShrinkPeriodMinutes="15"
    ShrinkingEnabled="true" Targets="nmc2Server"
    TestTableName="dual" URL="jdbc:weblogic:oracle"/>
    <JDBCTxDataSource EnableTwoPhaseCommit="false"
    JNDIName="weblogic.jdbc.jts.pics" Name="pics" PoolName="pics"Targets="nmc2Server"/>
    >
    And if I change the above DriverName to weblogic.jdbc.pool.Driver the poolno longer
    works, and the direct connection (attempted with weblogic.jdbc.oci.Driver)does not
    work either.
    Thanks for your help!
    Sara

Maybe you are looking for