Protocol Violation Error (ORA-17401)

Hi everyone,
I was problem while run cfm page, for 4 weeks ago, the ColdFusion stop in error Protocol Violation Error - ORA-17401.
I'm using JDBC Oracle connector version 1.6 with Oracle 11 g.
Where the error show, the server stop communication from Oracle and returns only restart the CF Service, other servers dont stop communication.
I have 4 servers with 4 processors Quad-Core, 32 GB RAM and 1 TB HD, with Windows 2008 and IIS 7.5.
The ColdFusion is update level 11.
Any answers?

It is seen when Oracle.getSystemProperties fail to bring in Data from Oracle Server. At that time every property is returned as null, so protocol violation occurs. It occurs and Oracle Can't close Connection as said by the first thread.
Solution is to avoid too many requests at same time but use some long queue mechanism and timings.

Similar Messages

  • Protocol violation Error with 17401 error code

    Hi,
    When we are trying to call stored procedure with below syntax we are getting "com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation" error with error code 17401 in local IRAD application and also in deployed application of WAS.
    call schemaName.truncate_table('table_name', 'DROP STORAGE')
    If I comment this procedure call in the Java code and execute, then next SQL staments following this call will be executed successfully. Below are some of the trails that I have already done and getting same error
    1. Dowloaded latest ojdbc.jar as per Oracle Database 10g 10.2.0.4.0 version
    2. Kept the minimum number of connections value as ZERO in WAS admin.
    Let me know if you know any solution for this
    Thanks
    Basavaraj

    Hi,
    It takes around 10 seconds from the time I started this batch job
    Below is the code, in the below code getStatement() method gets the SQLStatement object with below procedure call
    call odsacct.truncate_table(?, 'DROP STORAGE')
    SQLStatement sqlStmt = getStatement(CONFIG_FILE, DAOConstants.TRUNCATE_DATA_DEST);
              CallableStatement callableStmt = null;
              try {
                   callableStmt = conn.prepareCall(sqlStmt.getSql());
                   // set the in param
                   callableStmt.setString(1, insertTable);
                   callableStmt.executeUpdate();
              catch(SQLException e) {
                   System.out.println("Error Code .. Basava..."+e.getErrorCode());
                   e.printStackTrace();
                   throw new Exception("Error Deleting Data in the Destination Table: ", e);
              finally {
                   close(null, null, callableStmt);
    Below is the exception stack trace
    [4/20/11 15:11:35:991 EDT] 00000026 SystemOut O [Executing Job : AcctSearchLoaderWeeklyJob
    [4/20/11 15:11:37:116 EDT] 00000026 SystemOut O ******ADNAServiceProperties loaded successfully******
    [4/20/11 15:11:37:116 EDT] 00000026 SystemOut O [Account Search Data one time full data load started...
    [4/20/11 15:11:37:460 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:37 EDT 2011] : Current Active Table: ODSACCT.ACCT_SEARCH_A
    [4/20/11 15:11:38:725 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:38 EDT 2011] : Number of Records in ODSACCT.ACCT_SEARCH_A table is 537352
    [4/20/11 15:11:38:725 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:38 EDT 2011] : Active Table Record Count is ... 537352
    [4/20/11 15:11:38:725 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:38 EDT 2011] : Truncate data from... ODSACCT.ACCT_SEARCH_B
    [4/20/11 15:11:39:741 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.39_0.txt
    [4/20/11 15:11:39:772 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.39_0.txt
    [4/20/11 15:11:39:788 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.39_1.txt
    [4/20/11 15:11:39:819 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.39_1.txt
    [4/20/11 15:11:39:819 EDT] 00000026 ConnectionEve A J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adapter for resource jdbc/adna_prod_ds. The exception which was received is com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation:java.sql.SQLException: Protocol violation
    [4/20/11 15:11:39:819 EDT] 00000026 SystemOut O Error Code .. Basava...17401
    [4/20/11 15:11:39:835 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:39 EDT 2011] : Exception Occured while loading ACCT_SEARCH_B : party id is null
    [4/20/11 15:11:39:835 EDT] 00000026 SystemOut O [Account Search Data full data load failed.
    [4/20/11 15:11:39:819 EDT] 00000026 SystemErr R com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapExceptionHelper(GenericDataStoreHelper.java:523)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapException(GenericDataStoreHelper.java:578)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcUtil.mapException(WSJdbcUtil.java:903)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:626)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:601)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.loadAccountSearchTable(AccountSearchLoaderDAO.java:92)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoad(ADNAJobSchedulerAction.java:417)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoadJob(ADNAJobSchedulerAction.java:348)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at java.lang.reflect.Method.invoke(Method.java:615)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    [4/20/11 15:11:40:569 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_0.txt
    [4/20/11 15:11:40:585 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_0.txt
    [4/20/11 15:11:40:600 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_1.txt
    [4/20/11 15:11:40:600 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_1.txt
    [4/20/11 15:11:40:632 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_2.txt
    [4/20/11 15:11:40:647 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_2.txt
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R java.lang.Exception: Error Deleting Data in the Destination Table:
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:606)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.loadAccountSearchTable(AccountSearchLoaderDAO.java:92)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoad(ADNAJobSchedulerAction.java:417)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoadJob(ADNAJobSchedulerAction.java:348)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at java.lang.reflect.Method.invoke(Method.java:615)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R Caused by: com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
         at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapExceptionHelper(GenericDataStoreHelper.java:523)
         at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapException(GenericDataStoreHelper.java:578)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcUtil.mapException(WSJdbcUtil.java:903)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:626)
         at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:601)
         at com.starwood.adna.dao.AccountSearchLoaderDAO.loadAccountSearchTable(AccountSearchLoaderDAO.java:92)
         at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoad(ADNAJobSchedulerAction.java:417)
         at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoadJob(ADNAJobSchedulerAction.java:348)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    ---- Begin backtrace for Nested Throwables
    java.sql.SQLException: Protocol violation
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
         at oracle.jdbc.driver.DatabaseError.check_error(DatabaseError.java:885)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:640)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:180)
         at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:783)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2960)
         at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4124)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.pmiExecuteUpdate(WSJdbcPreparedStatement.java:948)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:615)
         at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:601)
         at com.starwood.adna.dao.AccountSearchLoaderDAO.loadAccountSearchTable(AccountSearchLoaderDAO.java:92)
         at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoad(ADNAJobSchedulerAction.java:417)
         at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoadJob(ADNAJobSchedulerAction.java:348)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapExceptionHelper(GenericDataStoreHelper.java:523)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapException(GenericDataStoreHelper.java:578)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcUtil.mapException(WSJdbcUtil.java:903)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:626)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:601)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      ... 33 more
    Thanks
    Basavaraj G.M

  • Protocol violation error, errorcode 17401

    Hi,
    I am running my CF application in jboss container, using
    Oracle 10g database with jdbc connection. When cfm page runs, while
    executing database query through cfquery tag, i got the error
    saying "Protocol Violation, Error Executing Database Query,
    Errorcode 17401". I could not find out the problem.
    Kindly help me in this regard.
    Advance thanks.

    Hi,
    I am running my CF application in jboss container, using
    Oracle 10g database with jdbc connection. When cfm page runs, while
    executing database query through cfquery tag, i got the error
    saying "Protocol Violation, Error Executing Database Query,
    Errorcode 17401". I could not find out the problem.
    Kindly help me in this regard.
    Advance thanks.

  • Protocol Violation No. ORA-17401

    Hi,
    Dear friends,I implemented servlets with JSDK2.0. These servlets work in Apache WebServer1.3 and Apache JServ1.1.1. Oracle8i is used to manage system data base. When the servlets retrieve data from Oracle8i, the error message "java.sql.SQLException:Protocol Violation" takes place randomly. In this case, Oracle8i cannot be accessed. How to work out the problem?Do you meet this problem?

    This problem usually occurs when a large amount of data is transfered.
    Another reason for thie problem to occur is
    if you have used setDefaultRowPrefetch
    for the connection.
    Please use the latest jdbc driver (8.1.6),
    where most of these problems are solved.

  • How to resolve error: protocol violation (error code:17401)

    I am using jdbc to access the database oracle 8.1.7 on windows, and when I access two lines of a table, no errors occured.But when I access all lines of the table, an error occured:
    java.sql.SQLException: N%74P-Ri
    what is the problem ?
    My program is really very simple,as follows:
    import java.lang.*;
    import java.io.*;
    import java.sql.*;
    import java.net.URL;
    import oracle.jdbc.driver.*;
    public class mytest {   
    public static void main (String args[]) {
    String str4="",str5="",str7="",str8="",str10="",str11="",str13="";
    String str14="",str16="",str17="",str24="";
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@172.20.1.41:1521:szxx","dev2002","dev2002");
    Statement stmt=conn.createStatement();
    String sql="select GSJB0004,GSJB0005,GSJB0007,GSJB0008,GSJB0010,GSJB0011,GSJB0013,GSJB0014,GSJB0016,GSJB0017,GSJB0024 from FRM_GSJBGK where GSJB0008='shanghai'";
    ResultSet rs=stmt.executeQuery(sql);
    int i=1;
    while (rs.next()) {
    str4=rs.getString("GSJB0004");
    str5=rs.getString("GSJB0005");
    str7=rs.getString("GSJB0007");
    str8=rs.getString("GSJB0008");
    str10=rs.getString("GSJB0010");
    str11=rs.getString("GSJB0011");
    str13=rs.getString("GSJB0013");
    str14=rs.getString("GSJB0014");
    str16=rs.getString("GSJB0016");
    str17=rs.getString("GSJB0017");
    str24=rs.getString("GSJB0024");
    System.out.println("*******");
    System.out.println(i);
    System.out.println(str4+"|"+str5+"|"+str7+"|"+str8+"|"+str10+"|"+str11+"|"+str13+"|"+str14+"|"+str16+"|"+str17+"|"+str24);
    i++;
    catch (SQLException e) {
    System.err.println(e.getErrorCode());
    e.printStackTrace();
    catch (Exception e) {
    System.err.println("mytest():"+e.getMessage());
    all the fields such as GSJB0004 is varchar2, the largest is about 90.
    any suggestions is welcome!
    Thank you!
    my e-mail is :[email protected]

    I am not sure what's the problem. But I would do the following
    try to connect to database using sql*plus, run this sql statement there, see if it works.
    try to find out which call failed exactly.
    Try to get a new version of jdbc driver, for example, classes12.zip from oracle site. Make sure it is in your classes path.
    Regards,
    jim

  • Protocol adapter error ora-12560

    I have windoow 98 se ops.I have installed 8.1.7 client(as administrator option).Installation worked fine, but it didn't give me option to create default database.When i try to connect from SQL/plus,I get protocol adapter error ora-12560.Please help.
    jatin

    Yes, the XP firewall is running. During the Oracle instalation it poped up twice, but I selected 'Unblock'. I can't turn it off because it is running using the domain settings, but I can add exceptions (programs or ports). Port 1521, tnsping or sqlplus are not blocked and there is an option 'Display a notification when Windows Firewall blocks a program' witch is checked.

  • Protocol violation error in jdbc connection

    Hi all
    I am facing a problem with jdbc connection to oracle DB.
    My code works sometimes, and sometimes it throws one (or more) of the following SQLExceptions:
    protocol violation
    Bigger type length than Maximum.
    The same code works in munerous locations with numerous DBs.
    Th DB version is 10.2.0.4
    and I downloaded the latest ojdbc14.jar driver
    I would appreciate any assistance
    Thanks
    Ron

    Hi
    Thanks for replying
    I looked at the error code and the object types, but it fails when calling next in the result set.
    And I did not set the object types at that point
    The object type is set only after running get functions (For example resultSet.getInt())
    Also, the same code works in many other locations and even in that environment it succeeds sometimes.
    Also, sometimes it fails only with the Protocol violation error and sometimes with both errors.
    Any ideas?

  • Protocol violation error on Oracle...

    Hi,
    I know many people have posted this kind of problem..but I am still pretty confused as to what's going on.
    Basically, the situation is this: I have a bean file which accesses oracle database and it does an update on a certain table with a long field, i don't know if that causes the problem. It only occurs after some queries that succeed. I also do this with a prepared statement and it involoves a huge amount of data. The select statements on the same data always succeeds.
    I get a 'oracle protocol violation error', seems random;
    The version of Oracle jdbcdriver (classes12.zip)is 8.1.7:
    Oracle Server : 8.1.7

    One of the developers came up with the analysis
    that the protcol violation occurs when you try to
    close a PreparedStatement/Cursor that is already closed .
    The "protocol violation' is message that is thrown
    when Oracle cant throw a more specific message.
    Can somebody confirm this? Do i need to close a prepared statement anyway?

  • TNS-12560: TNS:protocol adapter error, ORA-12535: TNS:operation timed out

    I installed Oracle 9i (9.2.0.1.0) on a Windows XP machine (the machine is in a domain). There were no errors during the instalation, but I have problems connecting from the same machine using the sid. Here are some examples from a command promt:
    D:\>tnsping orcl9i
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 31-OCT-20
    08 17:43:22
    Copyright (c) 1997 Oracle Corporation.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = timisoara01)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = orcl9i)))
    TNS-12560: TNS:protocol adapter error
    D:\>sqlplus "sys/pass@orcl9i as sysdba"
    SQL*Plus: Release 9.2.0.1.0 - Production on Fri Oct 31 17:54:54 2008
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    ERROR:
    ORA-12535: TNS:operation timed out
    Enter user-name:If I don't use the sid I can connect:
    D:\>sqlplus "sys/pass as sysdba"
    SQL*Plus: Release 9.2.0.1.0 - Production on Fri Oct 31 18:05:46 2008
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL>If I go to services I see that the service is running: OracleServiceORCL9I Started.
    Thx.

    Yes, the XP firewall is running. During the Oracle instalation it poped up twice, but I selected 'Unblock'. I can't turn it off because it is running using the domain settings, but I can add exceptions (programs or ports). Port 1521, tnsping or sqlplus are not blocked and there is an option 'Display a notification when Windows Firewall blocks a program' witch is checked.

  • Protocol violation error???

    Hi Everyone,
    I am using Jdev 11.1.1.5.0.
    I have developed one ADF application with 3 pages which is working fine in J developer.
    Later i deployed this application into clients web logic server and got one link to open this application.
    BUt when i open the application first page is coming correctly which is search page with 3 LOVs and when i click on Submit button it will navigate to second page where we show results in different tables
    but here i am getting the below error in popup window:
    Error:
    Messages for this page are listed below.
    Error     
    Protocol violation: [6, 7, 3]
    Error     
    Protocol violation: [194]
    Error     
    Protocol violation: [2]
    Error     
    Protocol violation: [44]
    Sometimes it works fine but sometimes it gives this error if more than one user access the link of ADF application.
    What is this error about???
    any clues or suggestions???
    Thanks...

    Hi,
    See
    PROTOCOL VIOLATION JAVA ERROR ORACLE 11g

  • ORA-00001 Unique constraint Violation Error

    We are upgrading our NW BW 7.01 java server to 7.3 and during the Downtime phase of the Installer, while running the Offline Migration, we are getting an error "EP-KM-BC: Unique Constraint Violation error: ORA-000001".  Unknown Object# (12xxxxxx) does not exist. We have one CI and two DI. Any help would be greatly appreciated.

    Hi Anil,
    You need to clear the data from the table
    1. SHD_AP_PROPVALUE
    2. SHD_KMC_AP_PROP
    3. SHD_AP_MC
    Repeat the phase and also follow the sapnote
    1873288 - RUN_OFFLINE_MIGRATION phase fails during SAP NetWeaver migration
    Also paste the logs of RUN_OFFLINE_MIGRATION phase.
    With Regards
    Ashutosh Chaturvedi

  • Unable to create database due to ORA-12560, TNS protocol adapter error

    Hello,
    I'm trying to create an 8.1.7.0 database on a W2k server, but it is failing because as soon as svrmgrl is launched, I get an ORA-12560, TNS: protocol adapter error:
    D:\oracle\db_creation_scripts>D:\oracle\ora81\bin\svrmgrl @D:\oracle\db_creation_scripts\mterm62run.sql
    Oracle Server Manager Release 3.1.7.0.0 - Production
    Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved.
    ORA-12560: TNS:protocol adapter errorEcho ON
    SVRMGR> connect INTERNAL/manager
    ORA-12560: TNS:protocol adapter error
    SVRMGR> startup nomount pfile="D:\oracle\admin\mterm62\pfile\initmterm62.ora"
    LCC-00161: Message 161 not found; product=RDBMS; facility=MGR
    My ORACLE_HOME, ORACLE_SID, and TNS_ADMIN environmental variables are correctly set, and I'm able to tnsping the listener.
    I've enabled tracing, and my client trace file is:
    --- TRACE CONFIGURATION INFORMATION FOLLOWS ---
    New trace stream is d:\trace\client_trace.log_2084_9.trc
    New trace level is 6
    --- TRACE CONFIGURATION INFORMATION ENDS ---
    --- PARAMETER SOURCE INFORMATION FOLLOWS ---
    Attempted load of system pfile source d:\oracle\ora81\network\admin\sqlnet.ora
    Parameter source loaded successfully
    Attempted load of local pfile source D:\oracle\db_creation_scripts\sqlnet.ora
    Parameter source was not loaded
    -> PARAMETER TABLE LOAD RESULTS FOLLOW <-
    Successful parameter table load
    -> PARAMETER TABLE HAS THE FOLLOWING CONTENTS <-
    TRACE_DIRECTORY_SERVER = d:\trace
    TRACE_DIRECTORY_CLIENT = d:\trace
    NAMES.DIRECTORY_PATH = (TNSNAMES, HOSTNAME)
    SQLNET.CRYPTO_SEED = 4fhfguweotcadsfdsafjkdsfqp5f201p45mxskdlfdasf
    TRACE_FILE_CLIENT = client_trace.log
    TRACE_FILE_SERVER = server_trace.log
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    TRACE_UNIQUE_CLIENT = on
    TRACE_LEVEL_CLIENT = ADMIN
    TRACE_LEVEL_SERVER = ADMIN
    --- PARAMETER SOURCE INFORMATION ENDS ---
    --- LOG CONFIGURATION INFORMATION FOLLOWS ---
    Log stream will be "D:\oracle\db_creation_scripts\sqlnet.log"
    Log stream validation not requested
    --- LOG CONFIGURATION INFORMATION ENDS ---
    nigini: entry
    nigini: Count in NI global area now: 1
    nigini: Count in NI global area now: 1
    nrigbi: entry
    nrigbni: entry
    nrigbni: Unable to get data from navigation file tnsnav.ora
    nrigbni: exit
    nrigbi: exit
    nigini: exit
    niqname: Hst is already an NVstring.
    niqname: Inserting CID.
    niotns: entry
    niotns: niotns: setting up interrupt handler...
    niotns: Not trying to enable dead connection detection.
    niotns: Calling address: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleMTERM62)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')))(CONNECT_DATA=(SID=MTERM62)(CID=(PROGRAM=D:\oracle\ora81\bin\SVRMGRL.EXE)(HOST=SERV0354)(USER=tarisa))))
    nsmal: 140 bytes at 0x12493f0
    nscall: connecting...
    nladini: entry
    nladini: exit
    nladget: entry
    nladget: exit
    nlpcaini: entry
    nlpcaini: prg =
    nlpcaini: arg[0] =
    nlpcaini: arg[1] =
    nlpcaini: exit
    nsmal: 420 bytes at 0x12542f0
    nsmal: 1712 bytes at 0x12572f0
    nsopen: opening transport...
    ntpcon: entry
    ntpcon: toc = 1
    sntpcall: entry
    snlpcss: entry
    ntpcon: exit
    nserror: nsres: id=0, op=65, ns=12560, ns2=0; nt[0]=530, nt[1]=2, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
    nsopen: unable to open transport
    nsmfr: 1712 bytes at 0x12572f0
    nsmfr: 420 bytes at 0x12542f0
    nladget: entry
    nladget: exit
    nsmfr: 140 bytes at 0x12493f0
    nladtrm: entry
    nladtrm: exit
    nioqper: error from nscall
    nioqper: nr err code: 0
    nioqper: ns main err code: 12560
    nioqper: ns (2) err code: 0
    nioqper: nt main err code: 530
    nioqper: nt (2) err code: 2
    nioqper: nt OS err code: 0
    niomapnserror: entry
    niqme: entry
    niqme: reporting NS-12560 error as ORA-12560
    niqme: exit
    niomapnserror: returning error 12560
    niomapnserror: exit
    niotns: Couldn't connect, returning 12560
    niotns: exit
    nigtrm: Count in the NI global area is now 0
    nnfgdei: entry
    nrigbd: entry
    nrigbd: exit
    nigtrm: Count in the NL global area is now 0
    My tnsnames, listener and sqlnet.ora files are very simple:
    ## BEGIN TNSNAMES.ORA
    # TNSNAMES.ORA Network Configuration File: D:\oracle\ora81\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    MTERM62 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.3.1.75)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = mterm62)
    (INSTANCE_NAME = mterm62)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.3.1.75)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = mterm62)
    (PRESENTATION = http://admin)
    # LISTENER.ORA Network Configuration File: D:\oracle\ora81\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = serv0354)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_DESC =
    (ORACLE_HOME = D:\oracle\ora81)
    (SID_NAME = mterm62)
    TRACE_LEVEL_LISTENER = ADMIN
    # SQLNET.ORA Network Configuration File: D:\oracle\ora81\NETWORK\ADMIN\sqlnet.ora
    # Generated by Oracle configuration tools.
    TRACE_DIRECTORY_CLIENT = d:\trace
    TRACE_UNIQUE_CLIENT = on
    TRACE_DIRECTORY_SERVER = d:\trace
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    TRACE_FILE_CLIENT = client_trace.log
    TRACE_FILE_SERVER = server_trace.log
    TRACE_LEVEL_CLIENT = ADMIN
    TRACE_LEVEL_SERVER = ADMIN
    NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME)
    SQLNET.CRYPTO_SEED = 4fhfguweotcadsfdsafjkdsfqp5f201p45mxskdlfdasf
    Does anyone have any ideas what else I can check. I'm a Unix person, not a Windows person, which is making it even more complicated. If I was on Unix, I'd just blow everything away and start again from scratch, but since I'm not sure how to remove all traces from the registry, etc., I don't want to try that on this machine. There was already one other database created, but it's not goign to be used.
    Any help would be greatly appreciated.
    regards,
    Tarisa.

    hi,
    thanks for the info. the problem, as it turns out, was that I was connected to the db server via a terminal service (Microsoft Management Console), which for some reason caused probelms with TNS. After I connected directly to the machine using VNC, I was able to create the database with no problems. strange but true.
    regards,
    Tarisa.

  • (Error) ORA-00001: unique constraint (WHSE_DBA.PK_DELPHI_TRANS_FACT) violat

    I have a stored proc which runs every night. The stored proc is giving a unique constraint violation.
    (Error) ORA-00001: unique constraint (WHSE_DBA.PK_DELPHI_TRANS_FACT) violated.
    Any idea about how to debug this.

    I want to create an error table on the stored proc shown below. I know I have to add something in the exceptions. Can anyone give me the commands and where to add it.
    CREATE OR REPLACE PROCEDURE WHSE_DBA.DM_LD_DELPHI_TRANS_FACT
    IS
    -- VARIABLE DECLARATIONS
    LAST_LOAD_DATE                   DATE;
    INSERTCOUNT                 NUMBER:=0;
    -- LOGGING VARIABLES AND CONSTANTS
    TARGETTABLE                 CONSTANT VARCHAR2(20):='DELPHI_TRANS_FACT';
    MSGUNKNOWNERR               CONSTANT VARCHAR2(20):='Error';
    NBRIGNOREERR                CONSTANT NUMBER:=12541;
    DEFDATE                     CONSTANT DATE:='01-OCT-2006';
    ERRDESCRIPTION              VARCHAR2(255);
    V_DELPHI_TRANS_TOTAL            NUMBER;
    V_DELPHI_TRANS_FACT_TOTAL   NUMBER;
    BEGIN
    -- LOOK UP LAST LOADED RECORD
    SELECT NVL(MAX(SNAPSHOT_DATE),DEFDATE)
    INTO LAST_LOAD_DATE
    FROM DELPHI_TRANS_FACT;
    -- * LOAD ALL DIMENSION TABLES
    -- BUDGET_YR_DIMENSION
    INSERT INTO BUDGET_YR_DIMENSION (BUDGET_YEAR, SNAPSHOT_DATE)
    (SELECT DISTINCT BUD_YR, SYSDATE
    FROM DELPHI_TRANS OUTER
    WHERE NOT EXISTS
    (SELECT 1
    FROM BUDGET_YR_DIMENSION
    WHERE BUDGET_YEAR=OUTER.BUD_YR));
    -- EFF_DATE_DIMENSION
    INSERT INTO EFF_DATE_DIMENSION (PAID_FIS_YEAR, PAID_QTR, EFFECTIVE_DATE, SNAPSHOT_DATE)
    (SELECT DISTINCT CVT_DATE_TO_FISCAL_YEAR(EFF_DT), PD_QTR, EFF_DT, SYSDATE
    FROM DELPHI_TRANS OUTER
    WHERE NOT EXISTS
    (SELECT 1
    FROM EFF_DATE_DIMENSION
    WHERE EFFECTIVE_DATE=OUTER.EFF_DT));
    -- PROC_DATE_DIMENSION
    INSERT INTO PROC_DATE_DIMENSION (PROCESS_DATE, SNAPSHOT_DATE)
    (SELECT DISTINCT PROC_DT, SYSDATE
    FROM DELPHI_TRANS OUTER
    WHERE NOT EXISTS
    (SELECT 1
    FROM PROC_DATE_DIMENSION
    WHERE PROCESS_DATE=OUTER.PROC_DT));
    -- ORG_DIMENSION
    INSERT INTO ORG_DIMENSION (ORG,COST_CTR,SNAPSHOT_DATE)
    (SELECT DISTINCT ORG, CC_CD, SYSDATE
    FROM DELPHI_TRANS OUTER
    WHERE NOT EXISTS
    (SELECT 1
    FROM ORG_DIMENSION
    WHERE ORG=OUTER.ORG));
    -- BPAC DIMENSION
    INSERT INTO BPAC_DIMENSION (BPAC, AFC_CD, PE_CODE, SNAPSHOT_DATE)
    (SELECT DISTINCT BPAC, AFC_CD, PE, SYSDATE
    FROM DELPHI_TRANS OUTER
    WHERE NOT EXISTS
    (SELECT 1
    FROM BPAC_DIMENSION
    WHERE BPAC=OUTER.BPAC));
    -- FUND DIMENSION
    INSERT INTO FUND_DIMENSION (FUND,APPROP_CD,LIM_CD,SNAPSHOT_DATE)
    (SELECT DISTINCT FUND, APPROP_CD, APPLIM_CD, SYSDATE
    FROM DELPHI_TRANS OUTER
    WHERE NOT EXISTS
    (SELECT 1
    FROM FUND_DIMENSION
    WHERE FUND=OUTER.FUND));
    -- OBJ_CD_DIMENSION
    INSERT INTO OBJ_CD_DIMENSION (OBJ_CD,SNAPSHOT_DATE)
    (SELECT DISTINCT OC_CD, SYSDATE
    FROM DELPHI_TRANS OUTER
    WHERE NOT EXISTS
    (SELECT 1
    FROM OBJ_CD_DIMENSION
    WHERE OBJ_CD=OUTER.OC_CD));
    -- GLA DIMENSION
    INSERT INTO GLA_DIMENSION (GLA_CD,SNAPSHOT_DATE)
    (SELECT DISTINCT GLA, SYSDATE FROM DELPHI_TRANS OUTER
    WHERE NOT EXISTS
    (SELECT 1
    FROM GLA_DIMENSION
    WHERE GLA_CD=OUTER.GLA));
    -- PROJECT_TASK_DIMENSION
    INSERT INTO PROJECT_TASK_DIMENSION (PROJECT_NO,TASK_NO,SNAPSHOT_DATE)
    (SELECT DISTINCT PROJ_NBR, TASK_NBR, SYSDATE FROM DELPHI_TRANS OUTER
    WHERE NOT EXISTS
    (SELECT 1
    FROM PROJECT_TASK_DIMENSION
    WHERE PROJECT_NO=OUTER.PROJ_NBR
      AND TASK_NO=OUTER.TASK_NBR));
    -- TRANS_DESC_DIMENSION
    INSERT INTO TRANS_DESC_DIMENSION (DESCRIPTION,SNAPSHOT_DATE)
    (SELECT DISTINCT DESCR, SYSDATE FROM DELPHI_TRANS OUTER
    WHERE NOT EXISTS
    (SELECT 1
    FROM TRANS_DESC_DIMENSION
    WHERE DESCRIPTION=OUTER.DESCR
    AND OUTER.DESCR IS NOT NULL));
    -- SUPPLIER_DIMENSION
    INSERT INTO SUPPLIER_DIMENSION (SUPPLIER_NAME, SNAPSHOT_DATE)
    (SELECT DISTINCT VENDOR_NAME, SYSDATE FROM DELPHI_TRANS OUTER
    WHERE NOT EXISTS
    (SELECT 1
    FROM SUPPLIER_DIMENSION
    WHERE SUPPLIER_NAME=OUTER.VENDOR_NAME));
    -- DELPHI_INV_DIMENSION
    INSERT INTO DELPHI_INV_DIMENSION (INVOICE_NO, SNAPSHOT_DATE)
    (SELECT DISTINCT INV_NO, SYSDATE FROM DELPHI_TRANS OUTER
    WHERE NOT EXISTS
    (SELECT 1
    FROM DELPHI_INV_DIMENSION
    WHERE INVOICE_NO=OUTER.INV_NO));
    -- DELPHI_PO_DIMENSION
    INSERT INTO DELPHI_PO_DIMENSION (PO_NO, SNAPSHOT_DATE)
    (SELECT DISTINCT PO_NO, SYSDATE FROM DELPHI_TRANS OUTER
    WHERE NOT EXISTS
    (SELECT 1
    FROM DELPHI_PO_DIMENSION
    WHERE PO_NO=OUTER.PO_NO));
    -- TEMPORARILY DISABLE KEY FOR FASTER LOADING
    DB_MISC.PRO_EXE_DDL('ALTER TABLE DELPHI_TRANS_FACT DISABLE CONSTRAINT PK_DELPH_TRANS_FACT');
        -- MOVE DATA INTO TABLE
         INSERT INTO DELPHI_TRANS_FACT (BPAC_KEY, ORG_KEY, FUND_KEY, OBJ_CD_KEY, GLA_KEY,
         EFF_DATE_KEY, PROC_DATE_KEY, PROJECT_TASK_KEY, BUDGET_YR_KEY, DELPHI_TRANS_DESC_KEY,
         BALANCE, COMMIT_AMT, UDO_AMT, AEU_AMT, AEP_AMT, OBLIGATION_AMT, SNAPSHOT_DATE,
         SUPPLIER_KEY, DELPHI_INV_KEY, DELPHI_PO_KEY)
         (SELECT BPAC_KEY, ORG_KEY, FUND_KEY, OBJ_CD_KEY, GLA_KEY, EFF_DATE_KEY, PROC_DATE_KEY,
         PROJECT_TASK_KEY, BUDGET_YR_KEY, TRANS_DESC_KEY, SUM(BAL), SUM(COMMIT_AMT), SUM(UDO_AMT),
         SUM(AEU_AMT), SUM(AEP_AMT), SUM(OBLIGATION_AMT), MAX(SYSDATE), SUPPLIER_KEY, DELPHI_INV_KEY,
         DELPHI_PO_KEY
         FROM BPAC_DIMENSION, ORG_DIMENSION, FUND_DIMENSION, OBJ_CD_DIMENSION, GLA_DIMENSION,
        EFF_DATE_DIMENSION, PROC_DATE_DIMENSION, PROJECT_TASK_DIMENSION, BUDGET_YR_DIMENSION,
         TRANS_DESC_DIMENSION, DELPHI_TRANS,     SUPPLIER_DIMENSION, DELPHI_INV_DIMENSION, DELPHI_PO_DIMENSION
         WHERE DELPHI_TRANS.SNAPSHOT_DATE>LAST_LOAD_DATE
         -- JOIN WITH BPAC_DIMENSION
        AND DELPHI_TRANS.BPAC=BPAC_DIMENSION.BPAC
         -- JOIN WITH ORG_DIMENSION
         AND DELPHI_TRANS.ORG = ORG_DIMENSION.ORG
         -- JOIN WITH FUND_DIMENSION
         AND DELPHI_TRANS.FUND = FUND_DIMENSION.FUND
         -- JOIN WITH OBJ_CD_DIMENSION
         AND DELPHI_TRANS.OC_CD=OBJ_CD_DIMENSION.OBJ_CD
         -- JOIN WITH GLA_DIMENSION
         AND  DELPHI_TRANS.GLA=GLA_DIMENSION.GLA_CD
         -- JOIN WITH EFF_DATE_DIMENSION
         AND DELPHI_TRANS.EFF_DT=EFF_DATE_DIMENSION.EFFECTIVE_DATE
         -- JOIN WITH PROC_DATE_DIMENSION
         AND DELPHI_TRANS.PROC_DT=PROC_DATE_DIMENSION.PROCESS_DATE
         -- JOIN WITH PROJECT_TASK_DIMENSION
         AND (DELPHI_TRANS.PROJ_NBR=PROJECT_TASK_DIMENSION.PROJECT_NO
         AND DELPHI_TRANS.TASK_NBR=PROJECT_TASK_DIMENSION.TASK_NO)
         -- JOIN WITH BUDGET_YR_DIMENSION
         AND DELPHI_TRANS.BUD_YR=BUDGET_YR_DIMENSION.BUDGET_YEAR          
         -- JOIN WITH  TRANS_DESC_DIMENSION
         AND DELPHI_TRANS.DESCR=TRANS_DESC_DIMENSION.DESCRIPTION
         -- JOIN WITH SUPPLIER_DIMENSION
         AND DELPHI_TRANS.VENDOR_NAME=SUPPLIER_DIMENSION.SUPPLIER_NAME
         -- JOIN WITH DELPHI_PO_DIMENSION
         AND DELPHI_TRANS.PO_NO=DELPHI_PO_DIMENSION.PO_NO
         -- JOIN WITH DELPHI_INV_DIMENSION
         AND DELPHI_TRANS.INV_NO=DELPHI_INV_DIMENSION.INVOICE_NO
         GROUP BY BPAC_KEY, ORG_KEY, FUND_KEY, OBJ_CD_KEY, GLA_KEY, EFF_DATE_KEY, PROC_DATE_KEY,
         PROJECT_TASK_KEY, BUDGET_YR_KEY,TRANS_DESC_KEY, SUPPLIER_KEY, DELPHI_INV_KEY, DELPHI_PO_KEY);
    -- COUNT AFFECTED RECORDS
    INSERTCOUNT:=0+SQL%ROWCOUNT;
    -- RE-ENABLE KEY CONSTRAINT
    DB_MISC.PRO_EXE_DDL('ALTER TABLE DELPHI_TRANS_FACT ENABLE VALIDATE CONSTRAINT PK_DELPH_TRANS_FACT');
    -- STORE RESULTS OF OPERATION
    IF INSERTCOUNT>0 THEN
      DB_MISC.LOGFAILURE_EX('none', 'none', INSERTCOUNT||' new records loaded successfully.', TARGETTABLE, 'DM_LD_DELPHI_TRANS_FACT', FALSE);
    END IF;
    --- COMPARE BALANCE TOTAL FROM DELPHI_TRANS TABLE AND DELPHI_TRANS_FACT TABLE
    SELECT SUM(BAL) INTO V_DELPHI_TRANS_TOTAL
    FROM DELPHI_TRANS ;
    SELECT SUM(BALANCE) INTO V_DELPHI_TRANS_FACT_TOTAL
    FROM DELPHI_TRANS_FACT ; 
    VALIDATE_LOAD(V_DELPHI_TRANS_TOTAL,V_DELPHI_TRANS_FACT_TOTAL); 
    -- EXCEPTION HANDLING ROUTINES * * * * * * * * * * * * * * * * * * * * * *
    EXCEPTION
        WHEN OTHERS THEN
          ROLLBACK;
          IF SQLCODE!=NBRIGNOREERR THEN
            ERRDESCRIPTION:=SQLERRM;
            -- CALL ROUTINE TO PROCESS ERROR
            DB_MISC.LOGFAILURE_EX('none', 'none', ERRDESCRIPTION, TARGETTABLE, 'DM_LD_DELPHI_TRANS_FACT', TRUE);
            COMMIT;
          END IF;
    -- END EXCEPTION HANDLING ROUTINES * * * * * * * * * * * * * * * * * * * * * *
    END

  • ORA-12560 TNS protocol Adapter error in 11g (11.1.0.6)

    Hello All,
    I have Oracle 11g installed on my machine and when i tried to log in to sql plus i got the error below:
    ORA-12560 TNS protocol Adapter error
    By setting the ORACLE_SID = orcl by browsing to the bin directory of Oracle Installation the above error disappaears and i am able to log in from sql plus.
    My intention is to create a db backup for which i am trying to use the exp command...this time the same error appears.
    Also the solution of setting the ORACLE_SID is cumbersome..everytimt i want to use sql plus i need to go in and set the ORACLE_SID.
    Can anybody please help me out find a good solution for this?
    Any help would be appreciated friends.....
    Thanks in Advance!!!!!
    Regards.
    Alicia

    Also the solution of setting the ORACLE_SID is cumbersome..everytimt i want to use sql plus i need to go in and set the ORACLE_SID.
    Can anybody please help me out find a good solution for this?The solution depends on your (not specified) operating system...
    Anyway, if you have more than one database it's normal that you have to set ORACLE_SID, if not how can Oracle know which database you want to access to ?
    You can create batch files, one per database, or you can use connection strings, e.g. sqlplus username/password@<DB>.

  • ORA-12560: TNS:protocol adapter error in Oracle Forms...

    Hi, I installed Oracle developer suite to use for Oracle forms but am getting "ORA-12560: TNS:protocol adapter error" when trying to run a form. The database is running locally on my PC.
    I've run the command line to see if hostname matches up with the "HOST= " in the ".../network/admin/listener.ora " file match, they do. What can I try next? I did have Oracle 10gXE installed, which I have now removed. I'm including my tnsnames and listener file content:
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = frankenputer)(PORT = 1522))
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = frankenputer)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = frankenputer)(PORT = 1522))
    Thanks in advance for any help!

    Of course you found another one. Each .and every Oracle database client home (such as developer, app server) has one.
    Don't just change the port - the tnsnames.ora in the dev home does not point to a database service. It only points to an extproc [external procedure called by a database]. You need to put a database service entry into that file similar to the one in the database home. (Easiest solution - copy the tnsnames.ora from db home ... after you've made a backup)
    And please don't tell me you are using Developer 6i - a simple Google search would verify that the networking is incompatible.

Maybe you are looking for