Time out occurred while waiting for memory resources

Team,
I am have Microsoft SQL Server 2008 SP1( 10.0.2734.0) 64bit with application being SCCM 2007
I am getting below error in SQL error log ::
Error 8645: Severity 17, state 1
A time out occurred while waiting for memory resources to execute the query in resource pool ‘internal’. Re-run the query.
At first glance, i thought that it is issue of query not getting enough memory.
Searched on google but could not get way to resolve it or issue creating factor.
Chetan

Well,
Upgrade is what client is not willing to go for as of now.
They have rebooted the server and as of now, their SCCM application is working fine ( Not sure how reboot has solve the issue). We are not getting the above mentioned error also in SQL Log.
Looks like, rebooting server has cleared the memory jam.
Chetan
Restarting sql server service cleared buffer cache and any such query holding or requesting more memory so issue disappeared.  You just delayed the issue not solved it. Next time dont reboot find out the cause . If you want to check whether your SQL
Server requires more memory have a look at below counters in link
http://social.technet.microsoft.com/wiki/contents/articles/22316.sql-server-memory-and-troubleshooting.aspx#How_to_test_that_your_SQL_server_is_facing_memory_crunch
If your say to business about what are drawbacks on running unsupported version I am sure they will apply SP3. There are loads of fixes and its quite possible your error may be related to any such fixed issue.
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles

Similar Messages

  • Time Out Error while waiting for response from DB Procedure

    Hi Gurus,
    We are encountering a problem in our production environment. The system is implemented using AIA foundation pack 2.5 on SOA suite 10.1.3.4.
    We have a BPEL process A which calls an ESB Service which inturn calls BPEL Process B. In process B, we have a DB procedure call which waits for a response from
    a DB procedure. The procedure doesn't reply on time and Process B remains in waiting state to get the response from DB Procedure wherein Process A errors out by showing as "Timed Out Error".
    This issue is intermittent and we have already increased transaction-time outs in transaction-manager.xml to 7200 and ejb-orion-jar.xml to 3600.
    When we encountered this problem, we found out that there are too many connections open and when we bounced the server, everything was restored to nornal but as it is a production env. we can't do it over and over again.
    We have 2 nodes each having max connections as 100 and min. as 0.
    Is there a limit to max no. of connections or can we do something in DB side to ensure that it doesn't happen again ?
    Please suggest.
    Thanks,
    Vikas Manchanda

    Hi Anuj,
    I don't think it is a problem with connection reaching to max numbers because this issue is coming on very intermittent basis.we don't have any other processes using
    the same connection pool and this issue is coming even when there is no load on the server. This is recent trace from the production environment. Also i don't have any thing called "abandoned-connection-pool" in my data-sources.xml.
    <2011-07-07 13:09:16,101> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "delivery": Waiting for response has timed out. The conversation id is null. Please check the process instance for detail.
    com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is null. Please check the process instance for detail.
    at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:109)
    at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
    at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
    at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    at DeliveryBean_RemoteProxy_4bin6i8.request(Unknown Source)
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processNormalOperation(SOAPRequestProvider.java:451)
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:274)
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:120)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:956)
    at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:466)
    at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
    at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:194)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:400)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:414)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is null. Please check the process instance for detail.
    at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyType(DeliveryHandler.java:576)
    at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(DeliveryHandler.java:465)
    at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHandler.java:134)
    at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java)
    Please suggest.
    Thanks,
    Vikas Manchanda

  • Timed Out Error while waiting for response from DB Procedure

    Hi Gurus,
    We are encountering a problem in our production environment. The system is implemented using AIA foundation pack 2.5 on SOA suite 10.1.3.4.
    We have a BPEL process A which calls an ESB Service which inturn calls BPEL Process B. In process B, we have a DB procedure call which waits for a response from
    a DB procedure. The procedure doesn't reply on time and Process B remains in waiting state to get the response from DB Procedure wherein Process A errors out by showing as "Timed Out Error".
    This issue is intermittent and we have already increased transaction-time outs in transaction-manager.xml to 7200 and ejb-orion-jar.xml to 3600.
    When we encountered this problem, we found out that there are too many connections open and when we bounced the server, everything was restored to nornal but as it is a production env. we can't do it over and over again.
    We have 2 nodes each having max connections as 100 and min. as 0.
    Is there a limit to max no. of connections or can we do something in DB side to ensure that it doesn't happen again ?
    Please suggest.
    Thanks,
    Vikas Manchanda

    Hi Gurus,
    We are encountering a problem in our production environment. The system is implemented using AIA foundation pack 2.5 on SOA suite 10.1.3.4.
    We have a BPEL process A which calls an ESB Service which inturn calls BPEL Process B. In process B, we have a DB procedure call which waits for a response from
    a DB procedure. The procedure doesn't reply on time and Process B remains in waiting state to get the response from DB Procedure wherein Process A errors out by showing as "Timed Out Error".
    This issue is intermittent and we have already increased transaction-time outs in transaction-manager.xml to 7200 and ejb-orion-jar.xml to 3600.
    When we encountered this problem, we found out that there are too many connections open and when we bounced the server, everything was restored to nornal but as it is a production env. we can't do it over and over again.
    We have 2 nodes each having max connections as 100 and min. as 0.
    Is there a limit to max no. of connections or can we do something in DB side to ensure that it doesn't happen again ?
    Please suggest.
    Thanks,
    Vikas Manchanda

  • JBO-28102 A request was timed out while waiting for a resource to be return

    Hello
    We need desparate help in solving our Problem. Please take some time to provide your valuable inputs.
    Our Application is based on ADF Framework(Jdeveloper 11g) model layer is Web Services(PL/SQL Based) and View Object , View layer is JSF.
    The Application is in Production running on unbreakable Linux (JRockit 64-bit JVM) for 5 months.
    Initially we had memoy issues now that is solved by upgrading from 32 bit Jvm - 64 bit Jvm.
    For past two months we are getting JBO error(JBO-28102) , even though the documentation tells to increase the number of connections to Appmodule , we dont see the internal_connections to go more than 5 connections.
    Here is the Parameters we use in our App Module configuration:
    -Djbo.pers.max.active.nodes="-1"
    -Djbo.ampool.maxinactiveage="0"
    -Djbo.ampool.maxpoolsize="50" -Djbo.ampool.maxavailablesize="10" -Djbo.ampool.initpoolsize="0"
    -Djbo.ampool.minavailablesize="10" -Djbo.ampool.monitorsleepinterval="30000"
    -Djbo.txn_seq_inc="1"
    -Djbo.server.internal_connection="jdbc:oracle:thin:xxxx/xxxx@xxx:xx:xxxx"
    -Djbo.ampool.dynamicjdbccredentials="false" -Djbo.ampool.isuseexclusive="false"
    -Djbo.ampool.resetnontransactionalstate="false"
    -Thanks

    Hello Steve,
    We have 4 production servers. The average number of request per hour is 14,254 (3.94 per sec) for today.
    All the AM's jbo.ampool.maxpoolsize is set in the bc4j.xcfg config file. Is it possible if some of the AM is missing in the definition?
    Printed the BC4j Conf file:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig version="11.0" xmlns="http://xmlns.oracle.com/bc4j/configuration">
    <AppModuleConfigBag ApplicationName="model.AppModule">
    <AppModuleConfig jbo.project="model.Model" jbo.pers.max.active.nodes="-1" DeployPlatform="LOCAL" name="AppModuleLocal" ApplicationName="model.AppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.maxavailablesize="50" jbo.ampool.minavailablesize="0" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.AppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    <AppModuleConfig jbo.pers.max.active.nodes="-1" jbo.project="model.Model" DeployPlatform="LOCAL" name="ViewObjAppModuleLocal" ApplicationName="model.ViewObjAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.maxavailablesize="50" jbo.ampool.minavailablesize="0" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.ViewObjAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    <AppModuleConfig jbo.project="model.Model" jbo.pers.max.active.nodes="-1" DeployPlatform="LOCAL" name="AppModuleShared" ApplicationName="model.AppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.dynamicjdbccredentials="false" jbo.ampool.maxavailablesize="50" jbo.ampool.isuseexclusive="false" jbo.ampool.minavailablesize="0" jbo.ampool.monitorsleepinterval="30000" jbo.ampool.resetnontransactionalstate="false"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.AppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    <AppModuleConfig jbo.pers.max.active.nodes="-1" jbo.project="model.Model" DeployPlatform="LOCAL" name="ViewObjAppModuleShared" ApplicationName="model.ViewObjAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.dynamicjdbccredentials="false" jbo.ampool.maxavailablesize="50" jbo.ampool.isuseexclusive="false" jbo.ampool.minavailablesize="0" jbo.ampool.resetnontransactionalstate="false" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.ViewObjAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    <AppModuleConfig name="AppModuleLocal" ApplicationName="model.AppModule" DeployPlatform="LOCAL" JDBCName="dbconnectionobject" jbo.project="model.Model">
    <Security AppModuleJndiName="model.AppModule"/>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <AppModuleConfigBag ApplicationName="model.CORRAppModule">
    <AppModuleConfig jbo.project="model.Model" jbo.pers.max.active.nodes="-1" DeployPlatform="LOCAL" name="CORRAppModuleLocal" ApplicationName="model.CORRAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.maxavailablesize="50" jbo.ampool.minavailablesize="0" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.CORRAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    <AppModuleConfig jbo.pers.max.active.nodes="-1" jbo.project="model.Model" DeployPlatform="LOCAL" name="CORRAppModuleShared" ApplicationName="model.CORRAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.dynamicjdbccredentials="false" jbo.ampool.maxavailablesize="50" jbo.ampool.isuseexclusive="false" jbo.ampool.minavailablesize="0" jbo.ampool.resetnontransactionalstate="false" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.CORRAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <AppModuleConfigBag ApplicationName="model.TXNAppModule">
    <AppModuleConfig jbo.project="model.Model" jbo.pers.max.active.nodes="-1" DeployPlatform="LOCAL" name="TXNAppModuleLocal" ApplicationName="model.TXNAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.maxavailablesize="50" jbo.ampool.minavailablesize="0" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.TXNAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    <AppModuleConfig jbo.project="model.Model" jbo.pers.max.active.nodes="-1" DeployPlatform="LOCAL" name="TXNAppModuleShared" ApplicationName="model.TXNAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.dynamicjdbccredentials="false" jbo.ampool.maxavailablesize="50" jbo.ampool.isuseexclusive="false" jbo.ampool.minavailablesize="0" jbo.ampool.monitorsleepinterval="30000" jbo.ampool.resetnontransactionalstate="false"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.TXNAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <AppModuleConfigBag ApplicationName="model.AWDAppModule">
    <AppModuleConfig jbo.project="model.Model" jbo.pers.max.active.nodes="-1" DeployPlatform="LOCAL" name="AWDAppModuleLocal" ApplicationName="model.AWDAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.maxavailablesize="50" jbo.ampool.minavailablesize="0" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.AWDAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    <AppModuleConfig jbo.pers.max.active.nodes="-1" jbo.project="model.Model" DeployPlatform="LOCAL" name="AWDAppModuleShared" ApplicationName="model.AWDAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.dynamicjdbccredentials="false" jbo.ampool.maxavailablesize="50" jbo.ampool.isuseexclusive="false" jbo.ampool.minavailablesize="0" jbo.ampool.resetnontransactionalstate="false" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.AWDAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <AppModuleConfigBag ApplicationName="model.AwdTyAppModule">
    <AppModuleConfig jbo.project="model.Model" jbo.pers.max.active.nodes="-1" DeployPlatform="LOCAL" name="AwdTyAppModuleLocal" ApplicationName="model.AwdTyAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.maxavailablesize="50" jbo.ampool.minavailablesize="0" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.AwdTyAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    <AppModuleConfig jbo.project="model.Model" jbo.pers.max.active.nodes="-1" DeployPlatform="LOCAL" name="AwdTyAppModuleShared" ApplicationName="model.AwdTyAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.dynamicjdbccredentials="false" jbo.ampool.maxavailablesize="50" jbo.ampool.isuseexclusive="false" jbo.ampool.minavailablesize="0" jbo.ampool.resetnontransactionalstate="false" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.AwdTyAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <AppModuleConfigBag ApplicationName="model.AwdMbrHstryTrackAppModule">
    <AppModuleConfig jbo.pers.max.active.nodes="-1" jbo.project="model.Model" DeployPlatform="LOCAL" name="AwdMbrHstryTrackAppModuleLocal" ApplicationName="model.AwdMbrHstryTrackAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.maxavailablesize="50" jbo.ampool.minavailablesize="0" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.AwdMbrHstryTrackAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    <AppModuleConfig jbo.pers.max.active.nodes="-1" jbo.project="model.Model" DeployPlatform="LOCAL" name="AwdMbrHstryTrackAppModuleShared" ApplicationName="model.AwdMbrHstryTrackAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.dynamicjdbccredentials="false" jbo.ampool.maxavailablesize="50" jbo.ampool.isuseexclusive="false" jbo.ampool.minavailablesize="0" jbo.ampool.resetnontransactionalstate="false" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.AwdMbrHstryTrackAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <AppModuleConfigBag ApplicationName="model.PointAdjstAwaitApprvAppModule">
    <AppModuleConfig jbo.project="model.Model" jbo.pers.max.active.nodes="-1" DeployPlatform="LOCAL" name="PointAdjstAwaitApprvAppModuleLocal" ApplicationName="model.PointAdjstAwaitApprvAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.maxavailablesize="50" jbo.ampool.minavailablesize="0" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.PointAdjstAwaitApprvAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    <AppModuleConfig jbo.pers.max.active.nodes="-1" jbo.project="model.Model" DeployPlatform="LOCAL" name="PointAdjstAwaitApprvAppModuleShared" ApplicationName="model.PointAdjstAwaitApprvAppModule">
    <AM-Pooling jbo.ampool.maxinactiveage="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.dynamicjdbccredentials="false" jbo.ampool.maxavailablesize="50" jbo.ampool.isuseexclusive="false" jbo.ampool.minavailablesize="0" jbo.ampool.resetnontransactionalstate="false" jbo.ampool.monitorsleepinterval="30000"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.PointAdjstAwaitApprvAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <AppModuleConfigBag ApplicationName="model.ViewObjAppModule"/>
    <AppModuleConfigBag ApplicationName="model.DeliquencyAppModule">
    <AppModuleConfig DeployPlatform="LOCAL" jbo.pers.max.active.nodes="-1" jbo.project="model.Model" name="DeliquencyAppModuleLocal" ApplicationName="model.DeliquencyAppModule">
    <AM-Pooling jbo.ampool.maxavailablesize="50" jbo.ampool.minavailablesize="0" jbo.ampool.maxpoolsize="1500"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.DeliquencyAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    <AppModuleConfig DeployPlatform="LOCAL" jbo.pers.max.active.nodes="-1" jbo.project="model.Model" name="DeliquencyAppModuleShared" ApplicationName="model.DeliquencyAppModule">
    <AM-Pooling jbo.ampool.dynamicjdbccredentials="false" jbo.ampool.maxavailablesize="50" jbo.ampool.isuseexclusive="false" jbo.ampool.minavailablesize="0" jbo.ampool.maxpoolsize="1500" jbo.ampool.resetnontransactionalstate="false"/>
    <Database jbo.server.internal_connection="jdbc:oracle:thin:adf_bc_user/xxxxx@xxx:xxx:xxx" jbo.txn_seq_inc="1"/>
    <Security AppModuleJndiName="model.DeliquencyAppModule"/>
    <Custom JDBCDataSource="java:comp/env/jdbc/dbconnectionobjectDS"/>
    </AppModuleConfig>
    </AppModuleConfigBag>
    </BC4JConfig>
    Thanks
    Priya

  • While Starting oacleAS time out while waiting for a managed process start

    Hello Friends,
    While starting the Oracle Application server, through OPMN command as well as from the services I am getting following error.
    opmnctl: starting opmn and all managed processes...
    ================================================================================
    opmn id=hydcgwsgess02:6200
    0 of 1 processes started.
    ias-instance id=GenPro.hydcgwsgess02.ind.ge.ad
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
    OC4J/home/default_group/
    Error
    --> Process (index=1,uid=461249245,pid=12988)
    time out while waiting for a managed process to start
    Log:
    D:\product\10.1.3\OracleAS_1\opmn\logs\OC4J~home~default_group~1
    ========================================================
    couldn't figure out what is the basic problem...
    Normally when ever I make any changes in Oracle Sensor Edge Server, I used to get this error..
    I have installed the Oracle Apps Server in Windows enviroment...
    I will be very happy if some body can help me resolve the issue...
    Regards
    Nasim

    i got the same error but in my case, I used HTTPDispatcher and found that the URL parameter was invalid, so I changed it in the edgeserver.xml and restart, it's ok for me.
    Edited by: blackwaterpark on Oct 29, 2008 2:21 PM

  • OacleAS time out while waiting for a managed process start

    Hello Friends,
    While starting the Oracle Application server, through OPMN command as well as from the services I am getting following error.
    opmnctl: starting opmn and all managed processes...
    ================================================================================
    opmn id=hydcgwsgess02:6200
    0 of 1 processes started.
    ias-instance id=GenPro.hydcgwsgess02.ind.ge.ad
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
    OC4J/home/default_group/
    Error
    --> Process (index=1,uid=461249245,pid=12988)
    time out while waiting for a managed process to start
    Log:
    D:\product\10.1.3\OracleAS_1\opmn\logs\OC4J~home~default_group~1
    ========================================================
    couldn't figure out what is the basic problem...
    Normally when ever I make any changes in Oracle Sensor Edge Server, I used to get this error..
    I have installed the Oracle Apps Server in Windows enviroment...
    I will be very happy if some body can help me resolve the issue...
    Regards
    Nasim

    Can't tell you what's wrong with just this much of information. Take a look at this log file (as reported in the error message):
    D:\product\10.1.3\OracleAS_1\opmn\logs\OC4J~home~default_group~1
    And also:
    D:\product\10.1.3\OracleAS_1\j2ee\home\log\home_default_group_1\server.log
    These two log files will give you bit more information to help diagnose the issue.
    Thanks
    Shail

  • Time out while waiting for the managed process to start

    Hi All,
    Im getting the below error,when i try to start all managed processes.
    Its taking too much time to execute "opmnctl startall "command and it will give the below error.
    opmnctl: starting opmn and all managed processes...
    ================================================================================
    opmn id=inkolv1lp01:6201
    0 of 3 processes started.
    ias-instance id=retek101202.inkolv1lp01
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
    HTTP_Server/HTTP_Server/HTTP_Server
    Error
    --> Process (pid=401608)
    time out while waiting for a managed process to start
    Log:
    /retek/product/app_server/101202/OracleFRM_13/opmn/logs/HTTP_Server~1
    ias-component/process-type/process-set:
    WebCache/WebCache/WebCache
    Error
    --> Process (pid=319598)
    time out while waiting for a managed process to start
    Log:
    /retek/product/app_server/101202/OracleFRM_13/opmn/logs/WebCache~WebCache~1
    ias-component/process-type/process-set:
    WebCache/WebCacheAdmin/WebCacheAdmin
    Error
    --> Process (pid=397550)
    time out while waiting for a managed process to start
    Log:
    /retek/product/app_server/101202/OracleFRM_13/opmn/logs/WebCache~WebCacheAdmin~1
    Im in between some work ,please help to resolve the isue

    Hi,
    I checked the log files and i think it has some errors.I dint get exactly what does it mean.
    Web Cache ($ORACLE_HOME/webcache/logs :
    - event_log contains
    [18/Apr/2012:11:16:26 -0500] [notification 9612] [ecid: -] OracleAS Web Cache 10g (10.1.2), Build 10.1.2.0.2 050802
    [18/Apr/2012:11:16:26 -0500] [notification 9403] [ecid: -] Maximum number of file/socket descriptors set to 900.
    [18/Apr/2012:11:16:26 -0500] [notification 9612] [ecid: -] OracleAS Web Cache 10g (10.1.2), Build 10.1.2.0.2 050802
    [18/Apr/2012:11:16:26 -0500] [notification 9403] [ecid: -] Maximum number of file/socket descriptors set to 900.
    [18/Apr/2012:11:16:31 -0500] [notification 13002] [ecid: -] Maximum allowed incoming connections are 700
    [18/Apr/2012:11:16:31 -0500] [notification 13002] [ecid: -] Maximum allowed incoming connections are 700
    [18/Apr/2012:11:17:01 -0500] [warning 11917] [ecid: -] SSL wallet Origin Server Wallet file /etc/ORACLE/WALLETS/oret13/ewallet.p12 does not exist.
    [18/Apr/2012:11:17:01 -0500] [warning 11917] [ecid: -] SSL wallet Origin Server Wallet file /etc/ORACLE/WALLETS/oret13/ewallet.der does not exist.
    [18/Apr/2012:11:17:01 -0500] [warning 11919] [ecid: -] The SSL wallet autologin file /etc/ORACLE/WALLETS/oret13/cwallet.sso does not exist. Wallet does not appear to be
    autologin wallet.
    [18/Apr/2012:11:17:01 -0500] [warning 11921] [ecid: -] The origin server wallet did not open. Operating without wallet for backend. Only Diffie-Hellman anonymous connec
    tions supported to origin servers.
    [18/Apr/2012:11:17:01 -0500] [warning 11922] [ecid: -] Origin Server Wallet wallet fails to open at location /etc/ORACLE/WALLETS/oret13, NZE-28759, as user oret13
    [18/Apr/2012:11:17:01 -0500] [warning 11917] [ecid: -] SSL wallet Origin Server Wallet file /etc/ORACLE/WALLETS/oret13/ewallet.p12 does not exist.
    [18/Apr/2012:11:17:01 -0500] [warning 11917] [ecid: -] SSL wallet Origin Server Wallet file /etc/ORACLE/WALLETS/oret13/ewallet.der does not exist.
    [18/Apr/2012:11:17:01 -0500] [warning 11919] [ecid: -] The SSL wallet autologin file /etc/ORACLE/WALLETS/oret13/cwallet.sso does not exist. Wallet does not appear to be
    autologin wallet.
    2)Oracle HTTP Server ($ORACLE_HOME/Apache/Apache/logs has these details
    access_log.1307016000 mod_oc4j.753776.shm.sem
    access_log.1307059200 mod_oc4j.815188.shm.mem
    access_log.1307102400 mod_oc4j.815188.shm.sem
    access_log.1307145600 mod_oc4j.843922.shm.mem
    access_log.1307361600 mod_oc4j.843922.shm.sem
    access_log.1307404800 mod_oc4j.872618.shm.mem
    access_log.1307448000 mod_oc4j.872618.shm.sem
    access_log.1307491200 mod_oc4j.872692.shm.mem
    access_log.1307534400 mod_oc4j.872692.shm.sem
    access_log.1307577600 oracle

  • Getting deadlock detected while waiting for resource error for select Query.....

    Hi all,
    i am getting a below error whenever executing the below select query....
    some times it will show dead lock detected while waiting for resource and terminated...
    some times it executes and gives result..
    but all the time it writes an alert to alert log
    Plesae suggest how to resolve the issue..........
    Thanks in advance
    Env: Linux / Oracle 11.2.0.3.3
    Error from alert log:
    Errors in file /u01/oracle/oracle/diag/rdbms/bdrdb/bdrdb/trace/bdrdb_p017_6076.trc:
    ORA-00060: deadlock detected while waiting for resource
    ORA-10387: parallel query server interrupt (normal)
    Trace file info... bdrdb_p017_6076.trc:
    Trace file /u01/oracle/oracle/diag/rdbms/bdrdb/bdrdb/trace/bdrdb_p017_6076.trc
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /u01/oracle/oracle/product/11.2.0/dbhome_1
    System name:    Linux
    Node name:      bdrdb.cteplindia.com
    Release:        2.6.18-308.el5PAE
    Version:        #1 SMP Fri Jan 27 17:40:09 EST 2012
    Machine:        i686
    Instance name: bdrdb
    Redo thread mounted by this instance: 1
    Oracle process number: 92
    Unix process pid: 6076, image: [email protected] (P017)
    *** 2013-11-04 23:18:57.915
    *** SESSION ID:(423.59970) 2013-11-04 23:18:57.915
    *** CLIENT ID:() 2013-11-04 23:18:57.915
    *** SERVICE NAME:(bdrdb) 2013-11-04 23:18:57.915
    *** MODULE NAME:() 2013-11-04 23:18:57.915
    *** ACTION NAME:() 2013-11-04 23:18:57.915
    *** 2013-11-04 23:18:57.915
    DEADLOCK DETECTED ( ORA-00060 )
    [Transaction Deadlock]
    Deadlock graph:
                           ---------Blocker(s)--------  ---------Waiter(s)---------
    Resource Name          process session holds waits  process session holds waits
    PS-00000001-00000011        92     423     S             33     128     S     X
    BF-2ed08c01-00000000        33     128     S             92     423     S     X
    session 423: DID 0001-005C-00081126     session 128: DID 0001-0021-00067D23
    session 128: DID 0001-0021-00067D23     session 423: DID 0001-005C-00081126
    DEADLOCK DETECTED ( ORA-00060 )
    [Transaction Deadlock]
    Deadlock graph:
                           ---------Blocker(s)--------  ---------Waiter(s)---------
    Resource Name          process session holds waits  process session holds waits
    PS-00000001-00000011        92     423     S             33     128     S     X
    BF-2ed08c01-00000000        33     128     S             92     423     S     X
    session 423: DID 0001-005C-00081126     session 128: DID 0001-0021-00067D23
    session 128: DID 0001-0021-00067D23     session 423: DID 0001-005C-00081126
    Rows waited on:
      Session 423: no row
      Session 128: obj - rowid = 00021DC1 - AAAh3BAAVAAAQL/AAA
      (dictionary objn - 138689, file - 21, block - 66303, slot - 0)
    ----- Information for the OTHER waiting sessions -----
    Session 128:
      sid: 128 ser: 46176 audsid: 1836857 user: 102/DBLOCAL
        flags: (0x8000041) USR/- flags_idl: (0x1) BSY/-/-/-/-/-
        flags2: (0x40009) -/-/INC
      pid: 33 O/S info: user: oracle, term: UNKNOWN, ospid: 31611
        image: [email protected]
      client details:
        O/S info: user: masked, term: masked, ospid: 5924:568
        machine: masked program: Toad.exe
        application name: TOAD background query session, hash value=526966934
      current SQL:
        application name: TOAD background query session, hash value=526966934
      current SQL:
      SELECT  DISTINCT B_FP_TEST.TEST_ID
      FROM B_FP_TEST,
           B_USER_INFO,
           J_FP_INVESTIGATOR,
           L_TEST_STATUS,
           L_ATMS_TEST_TYPE,
           j_op_test_anml
    WHERE     B_FP_TEST.TEST_ID = J_FP_INVESTIGATOR.TEST_ID
           AND B_FP_TEST.TEST_TYPE_ID = L_ATMS_TEST_TYPE.ATMS_TEST_TYPE_ID
           AND B_USER_INFO.B_USER_INFO_ID = J_FP_INVESTIGATOR.INVESTIGATOR_ID
           AND B_FP_TEST.STATUS_ID = L_TEST_STATUS.STATUS_ID
           AND B_FP_TEST.IS_DELETED = :"SYS_B_00"
           AND B_FP_TEST.TEST_NUM NOT IN (:"SYS_B_01", :"SYS_B_02", :"SYS_B_03")
           AND L_ATMS_TEST_TYPE.IS_DELETED = :"SYS_B_04"
           AND J_FP_INVESTIGATOR.is_pi = :"SYS_B_05"
           AND L_TEST_STATUS.STATUS IN (:"SYS_B_06", :"SYS_B_07", :"SYS_B_08")
           AND j_op_test_anml.test_id = B_FP_TEST.TEST_ID
    ----- End of information for the OTHER waiting sessions -----
    *** 2013-11-04 23:18:57.916
    dbkedDefDump(): Starting a non-incident diagnostic dump (flags=0x0, level=3, mask=0x0)
    ----- Error Stack Dump -----
    ORA-00060: deadlock detected while waiting for resource
    ORA-10387: parallel query server interrupt (normal)
    ----- SQL Statement (None) -----
    Current SQL information unavailable - no cursor.
    ----- Call Stack Trace -----
    calling              call     entry                argument values in hex
    location             type     point                (? means dubious value)
    More......
    Query:
    SELECT DISTINCT B_FP_TEST.TEST_ID
      FROM B_FP_TEST,
           B_USER_INFO,
           J_FP_INVESTIGATOR,
           L_TEST_STATUS,
           L_ATMS_TEST_TYPE,
           j_op_test_anml
    WHERE     B_FP_TEST.TEST_ID = J_FP_INVESTIGATOR.TEST_ID
           AND B_FP_TEST.TEST_TYPE_ID = L_ATMS_TEST_TYPE.ATMS_TEST_TYPE_ID
           AND B_USER_INFO.B_USER_INFO_ID = J_FP_INVESTIGATOR.INVESTIGATOR_ID
           AND B_FP_TEST.STATUS_ID = L_TEST_STATUS.STATUS_ID
           AND B_FP_TEST.IS_DELETED = 0
           AND B_FP_TEST.TEST_NUM NOT IN (1, 2, 99)
           AND L_ATMS_TEST_TYPE.IS_DELETED = 0
           AND J_FP_INVESTIGATOR.is_pi = 1
           AND L_TEST_STATUS.STATUS IN ('Scheduled', 'In-Progress', 'Completed')
           AND j_op_test_anml.test_id = B_FP_TEST.TEST_ID
           AND (   (j_op_test_anml.end_date BETWEEN TO_DATE ('28-Oct-2013') - 1
                                                AND TO_DATE ('04-Nov-2013') + 1)
                OR (j_op_test_anml.start_date BETWEEN TO_DATE ('28-Oct-2013') - 1
                                                  AND TO_DATE ('04-Nov-2013') + 1)
                OR (TO_DATE ('28-Oct-2013') BETWEEN j_op_test_anml.start_date
                                                AND j_op_test_anml.end_date)
                OR (TO_DATE ('04-Nov-2013') BETWEEN j_op_test_anml.start_date
                                                AND j_op_test_anml.end_date))
           AND L_ATMS_TEST_TYPE.IS_DELETED = 0
           AND B_FP_TEST.DATASOURCE_ID = 9
    Query Exp plan:
    Plan hash value: 3398228788
    | Id  | Operation                                          | Name                | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |    TQ  |IN-OUT| PQ Distrib |
    |   0 | SELECT STATEMENT                                   |                     |  1501 |   102K|  1929   (1)| 00:00:24 |       |       |        |      |            |
    |   1 |  HASH UNIQUE                                       |                     |  1501 |   102K|  1929   (1)| 00:00:24 |       |       |        |      |            |
    |   2 |   CONCATENATION                                    |                     |       |       |            |          |       |       |        |      |            |
    |   3 |    PX COORDINATOR                                  |                     |       |       |            |          |       |       |        |      |            |
    |   4 |     PX SEND QC (RANDOM)                            | :TQ30005            |   241 | 16870 |   800   (1)| 00:00:10 |       |       |  Q3,05 | P->S | QC (RAND)  |
    |*  5 |      HASH JOIN                                     |                     |   241 | 16870 |   800   (1)| 00:00:10 |       |       |  Q3,05 | PCWP |            |
    |   6 |       PX RECEIVE                                   |                     |   246 | 15990 |   797   (1)| 00:00:10 |       |       |  Q3,05 | PCWP |            |
    |   7 |        PX SEND HASH                                | :TQ30004            |   246 | 15990 |   797   (1)| 00:00:10 |       |       |  Q3,04 | P->P | HASH       |
    |*  8 |         HASH JOIN                                  |                     |   246 | 15990 |   797   (1)| 00:00:10 |       |       |  Q3,04 | PCWP |            |
    |   9 |          PX RECEIVE                                |                     |   573 | 29223 |   793   (1)| 00:00:10 |       |       |  Q3,04 | PCWP |            |
    |  10 |           PX SEND HASH                             | :TQ30003            |   573 | 29223 |   793   (1)| 00:00:10 |       |       |  Q3,03 | P->P | HASH       |
    |* 11 |            HASH JOIN                               |                     |   573 | 29223 |   793   (1)| 00:00:10 |       |       |  Q3,03 | PCWP |            |
    |  12 |             BUFFER SORT                            |                     |       |       |            |          |       |       |  Q3,03 | PCWC |            |
    |  13 |              PX RECEIVE                            |                     |       |       |            |          |       |       |  Q3,03 | PCWP |            |
    |  14 |               PX SEND BROADCAST                    | :TQ30000            |       |       |            |          |       |       |        | S->P | BROADCAST  |
    |  15 |                NESTED LOOPS                        |                     |       |       |            |          |       |       |        |      |            |
    |  16 |                 NESTED LOOPS                       |                     |   485 | 20855 |   781   (0)| 00:00:10 |       |       |        |      |            |
    |  17 |                  TABLE ACCESS BY GLOBAL INDEX ROWID| J_OP_TEST_ANML      |   485 | 10185 |   296   (0)| 00:00:04 | ROWID | ROWID |        |      |            |
    |* 18 |                   INDEX RANGE SCAN                 | IDX$$_2D190001      |   485 |       |     4   (0)| 00:00:01 |       |       |        |      |            |
    |* 19 |                  INDEX UNIQUE SCAN                 | FT_TEST_ID_PK       |     1 |       |     0   (0)| 00:00:01 |       |       |        |      |            |
    |* 20 |                 TABLE ACCESS BY GLOBAL INDEX ROWID | B_FP_TEST           |     1 |    22 |     1   (0)| 00:00:01 | ROWID | ROWID |        |      |            |
    |  21 |             PX BLOCK ITERATOR                      |                     | 70382 |   549K|    11   (0)| 00:00:01 |       |       |  Q3,03 | PCWC |            |
    |* 22 |              TABLE ACCESS FULL                     | J_FP_INVESTIGATOR   | 70382 |   549K|    11   (0)| 00:00:01 |       |       |  Q3,03 | PCWP |            |
    |  23 |          BUFFER SORT                               |                     |       |       |            |          |       |       |  Q3,04 | PCWC |            |
    |  24 |           PX RECEIVE                               |                     |     3 |    42 |     3   (0)| 00:00:01 |       |       |  Q3,04 | PCWP |            |
    |  25 |            PX SEND HASH                            | :TQ30001            |     3 |    42 |     3   (0)| 00:00:01 |       |       |        | S->P | HASH       |
    |* 26 |             TABLE ACCESS FULL                      | L_TEST_STATUS       |     3 |    42 |     3   (0)| 00:00:01 |       |       |        |      |            |
    |  27 |       BUFFER SORT                                  |                     |       |       |            |          |       |       |  Q3,05 | PCWC |            |
    |  28 |        PX RECEIVE                                  |                     |    30 |   150 |     3   (0)| 00:00:01 |       |       |  Q3,05 | PCWP |            |
    |  29 |         PX SEND HASH                               | :TQ30002            |    30 |   150 |     3   (0)| 00:00:01 |       |       |        | S->P | HASH       |
    |* 30 |          TABLE ACCESS FULL                         | L_ATMS_TEST_TYPE    |    30 |   150 |     3   (0)| 00:00:01 |       |       |        |      |            |
    |  31 |    NESTED LOOPS                                    |                     |       |       |            |          |       |       |        |      |            |
    |  32 |     NESTED LOOPS                                   |                     |     3 |   210 |   329   (1)| 00:00:04 |       |       |        |      |            |
    |  33 |      NESTED LOOPS                                  |                     |     3 |   195 |   329   (1)| 00:00:04 |       |       |        |      |            |
    |* 34 |       HASH JOIN                                    |                     |     2 |   114 |   325   (1)| 00:00:04 |       |       |        |      |            |
    |  35 |        NESTED LOOPS                                |                     |       |       |            |          |       |       |        |      |            |
    |  36 |         NESTED LOOPS                               |                     |     6 |   258 |   322   (1)| 00:00:04 |       |       |        |      |            |
    |  37 |          PARTITION RANGE SINGLE                    |                     |     6 |   126 |   316   (1)| 00:00:04 |     7 |     7 |        |      |            |
    |* 38 |           TABLE ACCESS FULL                        | J_OP_TEST_ANML      |     6 |   126 |   316   (1)| 00:00:04 |     7 |     7 |        |      |            |
    |* 39 |          INDEX UNIQUE SCAN                         | FT_TEST_ID_PK       |     1 |       |     0   (0)| 00:00:01 |       |       |        |      |            |
    |* 40 |         TABLE ACCESS BY GLOBAL INDEX ROWID         | B_FP_TEST           |     1 |    22 |     1   (0)| 00:00:01 | ROWID | ROWID |        |      |            |
    |* 41 |        TABLE ACCESS FULL                           | L_TEST_STATUS       |     3 |    42 |     3   (0)| 00:00:01 |       |       |        |      |            |
    |* 42 |       TABLE ACCESS BY INDEX ROWID                  | J_FP_INVESTIGATOR   |     1 |     8 |     2   (0)| 00:00:01 |       |       |        |      |            |
    |* 43 |        INDEX RANGE SCAN                            | FI_TEST_ID_PK       |     1 |       |     1   (0)| 00:00:01 |       |       |        |      |            |
    |* 44 |      INDEX UNIQUE SCAN                             | L_ATMS_TEST_TYPE_PK |     1 |       |     0   (0)| 00:00:01 |       |       |        |      |            |
    |* 45 |     TABLE ACCESS BY INDEX ROWID                    | L_ATMS_TEST_TYPE    |     1 |     5 |     1   (0)| 00:00:01 |       |       |        |      |            |
    |  46 |    PX COORDINATOR                                  |                     |       |       |            |          |       |       |        |      |            |
    |  47 |     PX SEND QC (RANDOM)                            | :TQ20003            |       |       |            |          |       |       |  Q2,03 | P->S | QC (RAND)  |
    |  48 |      NESTED LOOPS                                  |                     |       |       |            |          |       |       |  Q2,03 | PCWP |            |
    |  49 |       NESTED LOOPS                                 |                     |    33 |  2310 |   399   (2)| 00:00:05 |       |       |  Q2,03 | PCWP |            |
    |* 50 |        HASH JOIN                                   |                     |    33 |  2145 |   397   (2)| 00:00:05 |       |       |  Q2,03 | PCWP |            |
    |  51 |         PX RECEIVE                                 |                     |    78 |  3978 |   393   (1)| 00:00:05 |       |       |  Q2,03 | PCWP |            |
    |  52 |          PX SEND HASH                              | :TQ20002            |    78 |  3978 |   393   (1)| 00:00:05 |       |       |  Q2,02 | P->P | HASH       |
    |* 53 |           HASH JOIN                                |                     |    78 |  3978 |   393   (1)| 00:00:05 |       |       |  Q2,02 | PCWP |            |
    |  54 |            BUFFER SORT                             |                     |       |       |            |          |       |       |  Q2,02 | PCWC |            |
    |  55 |             PX RECEIVE                             |                     |       |       |            |          |       |       |  Q2,02 | PCWP |            |
    |  56 |              PX SEND BROADCAST                     | :TQ20000            |       |       |            |          |       |       |        | S->P | BROADCAST  |
    |  57 |               NESTED LOOPS                         |                     |       |       |            |          |       |       |        |      |            |
    |  58 |                NESTED LOOPS                        |                     |    66 |  2838 |   382   (1)| 00:00:05 |       |       |        |      |            |
    |  59 |                 PARTITION RANGE SINGLE             |                     |    66 |  1386 |   316   (1)| 00:00:04 |     7 |     7 |        |      |            |
    |* 60 |                  TABLE ACCESS FULL                 | J_OP_TEST_ANML      |    66 |  1386 |   316   (1)| 00:00:04 |     7 |     7 |        |      |            |
    |* 61 |                 INDEX UNIQUE SCAN                  | FT_TEST_ID_PK       |     1 |       |     0   (0)| 00:00:01 |       |       |        |      |            |
    |* 62 |                TABLE ACCESS BY GLOBAL INDEX ROWID  | B_FP_TEST           |     1 |    22 |     1   (0)| 00:00:01 | ROWID | ROWID |        |      |            |
    |  63 |            PX BLOCK ITERATOR                       |                     | 70382 |   549K|    11   (0)| 00:00:01 |       |       |  Q2,02 | PCWC |            |
    |* 64 |             TABLE ACCESS FULL                      | J_FP_INVESTIGATOR   | 70382 |   549K|    11   (0)| 00:00:01 |       |       |  Q2,02 | PCWP |            |
    |  65 |         BUFFER SORT                                |                     |       |       |            |          |       |       |  Q2,03 | PCWC |            |
    |  66 |          PX RECEIVE                                |                     |     3 |    42 |     3   (0)| 00:00:01 |       |       |  Q2,03 | PCWP |            |
    |  67 |           PX SEND HASH                             | :TQ20001            |     3 |    42 |     3   (0)| 00:00:01 |       |       |        | S->P | HASH       |
    |* 68 |            TABLE ACCESS FULL                       | L_TEST_STATUS       |     3 |    42 |     3   (0)| 00:00:01 |       |       |        |      |            |
    |* 69 |        INDEX UNIQUE SCAN                           | L_ATMS_TEST_TYPE_PK |     1 |       |     0   (0)| 00:00:01 |       |       |  Q2,03 | PCWP |            |
    |* 70 |       TABLE ACCESS BY INDEX ROWID                  | L_ATMS_TEST_TYPE    |     1 |     5 |     1   (0)| 00:00:01 |       |       |  Q2,03 | PCWP |            |
    |  71 |    PX COORDINATOR                                  |                     |       |       |            |          |       |       |        |      |            |
    |  72 |     PX SEND QC (RANDOM)                            | :TQ10003            |       |       |            |          |       |       |  Q1,03 | P->S | QC (RAND)  |
    |  73 |      NESTED LOOPS                                  |                     |       |       |            |          |       |       |  Q1,03 | PCWP |            |
    |  74 |       NESTED LOOPS                                 |                     |    33 |  2310 |   399   (2)| 00:00:05 |       |       |  Q1,03 | PCWP |            |
    |* 75 |        HASH JOIN                                   |                     |    34 |  2210 |   397   (2)| 00:00:05 |       |       |  Q1,03 | PCWP |            |
    |  76 |         PX RECEIVE                                 |                     |    78 |  3978 |   393   (1)| 00:00:05 |       |       |  Q1,03 | PCWP |            |
    |  77 |          PX SEND HASH                              | :TQ10002            |    78 |  3978 |   393   (1)| 00:00:05 |       |       |  Q1,02 | P->P | HASH       |
    |* 78 |           HASH JOIN                                |                     |    78 |  3978 |   393   (1)| 00:00:05 |       |       |  Q1,02 | PCWP |            |
    |  79 |            BUFFER SORT                             |                     |       |       |            |          |       |       |  Q1,02 | PCWC |            |
    |  80 |             PX RECEIVE                             |                     |       |       |            |          |       |       |  Q1,02 | PCWP |            |
    |  81 |              PX SEND BROADCAST                     | :TQ10000            |       |       |            |          |       |       |        | S->P | BROADCAST  |
    |  82 |               NESTED LOOPS                         |                     |       |       |            |          |       |       |        |      |            |
    |  83 |                NESTED LOOPS                        |                     |    66 |  2838 |   382   (1)| 00:00:05 |       |       |        |      |            |
    |  84 |                 PARTITION RANGE SINGLE             |                     |    66 |  1386 |   316   (1)| 00:00:04 |     7 |     7 |        |      |            |
    |* 85 |                  TABLE ACCESS FULL                 | J_OP_TEST_ANML      |    66 |  1386 |   316   (1)| 00:00:04 |     7 |     7 |        |      |            |
    |* 86 |                 INDEX UNIQUE SCAN                  | FT_TEST_ID_PK       |     1 |       |     0   (0)| 00:00:01 |       |       |        |      |            |
    |* 87 |                TABLE ACCESS BY GLOBAL INDEX ROWID  | B_FP_TEST           |     1 |    22 |     1   (0)| 00:00:01 | ROWID | ROWID |        |      |            |
    |  88 |            PX BLOCK ITERATOR                       |                     | 70382 |   549K|    11   (0)| 00:00:01 |       |       |  Q1,02 | PCWC |            |
    |* 89 |             TABLE ACCESS FULL                      | J_FP_INVESTIGATOR   | 70382 |   549K|    11   (0)| 00:00:01 |       |       |  Q1,02 | PCWP |            |
    |  90 |         BUFFER SORT                                |                     |       |       |            |          |       |       |  Q1,03 | PCWC |            |
    |  91 |          PX RECEIVE                                |                     |     3 |    42 |     3   (0)| 00:00:01 |       |       |  Q1,03 | PCWP |            |
    |  92 |           PX SEND HASH                             | :TQ10001            |     3 |    42 |     3   (0)| 00:00:01 |       |       |        | S->P | HASH       |
    |* 93 |            TABLE ACCESS FULL                       | L_TEST_STATUS       |     3 |    42 |     3   (0)| 00:00:01 |       |       |        |      |            |
    |* 94 |        INDEX UNIQUE SCAN                           | L_ATMS_TEST_TYPE_PK |     1 |       |     0   (0)| 00:00:01 |       |       |  Q1,03 | PCWP |            |
    |* 95 |       TABLE ACCESS BY INDEX ROWID                  | L_ATMS_TEST_TYPE    |     1 |     5 |     1   (0)| 00:00:01 |       |       |  Q1,03 | PCWP |            |
    Predicate Information (identified by operation id):
       5 - access("B_FP_TEST"."TEST_TYPE_ID"="L_ATMS_TEST_TYPE"."ATMS_TEST_TYPE_ID")
       8 - access("B_FP_TEST"."STATUS_ID"="L_TEST_STATUS"."STATUS_ID")
      11 - access("B_FP_TEST"."TEST_ID"="J_FP_INVESTIGATOR"."TEST_ID")
      18 - access("J_OP_TEST_ANML"."START_DATE">=TO_DATE(' 2013-10-27 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "J_OP_TEST_ANML"."START_DATE"<=TO_DATE(' 2013-11-05
                  00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
      19 - access("J_OP_TEST_ANML"."TEST_ID"="B_FP_TEST"."TEST_ID")
      20 - filter("B_FP_TEST"."DATASOURCE_ID"=9 AND "B_FP_TEST"."IS_DELETED"=0 AND "B_FP_TEST"."TEST_NUM"<>1 AND "B_FP_TEST"."TEST_NUM"<>2 AND
                  "B_FP_TEST"."TEST_NUM"<>99)
      22 - filter("J_FP_INVESTIGATOR"."IS_PI"=1)
      26 - filter("L_TEST_STATUS"."STATUS"='Completed' OR "L_TEST_STATUS"."STATUS"='In-Progress' OR "L_TEST_STATUS"."STATUS"='Scheduled')
      30 - filter("L_ATMS_TEST_TYPE"."IS_DELETED"=0)
      34 - access("B_FP_TEST"."STATUS_ID"="L_TEST_STATUS"."STATUS_ID")
      38 - filter("J_OP_TEST_ANML"."END_DATE">=TO_DATE(' 2013-10-27 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "J_OP_TEST_ANML"."END_DATE"<=TO_DATE(' 2013-11-05
                  00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND (LNNVL("J_OP_TEST_ANML"."START_DATE">=TO_DATE(' 2013-10-27 00:00:00', 'syyyy-mm-dd hh24:mi:ss')) OR
                  LNNVL("J_OP_TEST_ANML"."START_DATE"<=TO_DATE(' 2013-11-05 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))))
      39 - access("J_OP_TEST_ANML"."TEST_ID"="B_FP_TEST"."TEST_ID")
      40 - filter("B_FP_TEST"."DATASOURCE_ID"=9 AND "B_FP_TEST"."IS_DELETED"=0 AND "B_FP_TEST"."TEST_NUM"<>1 AND "B_FP_TEST"."TEST_NUM"<>2 AND
                  "B_FP_TEST"."TEST_NUM"<>99)
      41 - filter("L_TEST_STATUS"."STATUS"='Completed' OR "L_TEST_STATUS"."STATUS"='In-Progress' OR "L_TEST_STATUS"."STATUS"='Scheduled')
      42 - filter("J_FP_INVESTIGATOR"."IS_PI"=1)
      43 - access("B_FP_TEST"."TEST_ID"="J_FP_INVESTIGATOR"."TEST_ID")
      44 - access("B_FP_TEST"."TEST_TYPE_ID"="L_ATMS_TEST_TYPE"."ATMS_TEST_TYPE_ID")
      45 - filter("L_ATMS_TEST_TYPE"."IS_DELETED"=0)
      50 - access("B_FP_TEST"."STATUS_ID"="L_TEST_STATUS"."STATUS_ID")
      53 - access("B_FP_TEST"."TEST_ID"="J_FP_INVESTIGATOR"."TEST_ID")
      60 - filter("J_OP_TEST_ANML"."END_DATE">=TO_DATE(' 2013-11-04 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "J_OP_TEST_ANML"."START_DATE"<=TO_DATE(' 2013-11-04
                  00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND (LNNVL("J_OP_TEST_ANML"."END_DATE">=TO_DATE(' 2013-10-27 00:00:00', 'syyyy-mm-dd hh24:mi:ss')) OR
                  LNNVL("J_OP_TEST_ANML"."END_DATE"<=TO_DATE(' 2013-11-05 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))) AND (LNNVL("J_OP_TEST_ANML"."START_DATE">=TO_DATE(' 2013-10-27
                  00:00:00', 'syyyy-mm-dd hh24:mi:ss')) OR LNNVL("J_OP_TEST_ANML"."START_DATE"<=TO_DATE(' 2013-11-05 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))))
      61 - access("J_OP_TEST_ANML"."TEST_ID"="B_FP_TEST"."TEST_ID")
      62 - filter("B_FP_TEST"."DATASOURCE_ID"=9 AND "B_FP_TEST"."IS_DELETED"=0 AND "B_FP_TEST"."TEST_NUM"<>1 AND "B_FP_TEST"."TEST_NUM"<>2 AND
                  "B_FP_TEST"."TEST_NUM"<>99)
      64 - filter("J_FP_INVESTIGATOR"."IS_PI"=1)
      68 - filter("L_TEST_STATUS"."STATUS"='Completed' OR "L_TEST_STATUS"."STATUS"='In-Progress' OR "L_TEST_STATUS"."STATUS"='Scheduled')
      69 - access("B_FP_TEST"."TEST_TYPE_ID"="L_ATMS_TEST_TYPE"."ATMS_TEST_TYPE_ID")
      70 - filter("L_ATMS_TEST_TYPE"."IS_DELETED"=0)
      75 - access("B_FP_TEST"."STATUS_ID"="L_TEST_STATUS"."STATUS_ID")
      78 - access("B_FP_TEST"."TEST_ID"="J_FP_INVESTIGATOR"."TEST_ID")
      85 - filter("J_OP_TEST_ANML"."END_DATE">=TO_DATE(' 2013-10-28 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "J_OP_TEST_ANML"."START_DATE"<=TO_DATE(' 2013-10-28
                  00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND (LNNVL("J_OP_TEST_ANML"."END_DATE">=TO_DATE(' 2013-11-04 00:00:00', 'syyyy-mm-dd hh24:mi:ss')) OR
                  LNNVL("J_OP_TEST_ANML"."START_DATE"<=TO_DATE(' 2013-11-04 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))) AND (LNNVL("J_OP_TEST_ANML"."END_DATE">=TO_DATE(' 2013-10-27
                  00:00:00', 'syyyy-mm-dd hh24:mi:ss')) OR LNNVL("J_OP_TEST_ANML"."END_DATE"<=TO_DATE(' 2013-11-05 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))) AND
                  (LNNVL("J_OP_TEST_ANML"."START_DATE">=TO_DATE(' 2013-10-27 00:00:00', 'syyyy-mm-dd hh24:mi:ss')) OR LNNVL("J_OP_TEST_ANML"."START_DATE"<=TO_DATE(' 2013-11-05
                  00:00:00', 'syyyy-mm-dd hh24:mi:ss'))))
      86 - access("J_OP_TEST_ANML"."TEST_ID"="B_FP_TEST"."TEST_ID")
      87 - filter("B_FP_TEST"."DATASOURCE_ID"=9 AND "B_FP_TEST"."IS_DELETED"=0 AND "B_FP_TEST"."TEST_NUM"<>1 AND "B_FP_TEST"."TEST_NUM"<>2 AND
                  "B_FP_TEST"."TEST_NUM"<>99)
      89 - filter("J_FP_INVESTIGATOR"."IS_PI"=1)
      93 - filter("L_TEST_STATUS"."STATUS"='Completed' OR "L_TEST_STATUS"."STATUS"='In-Progress' OR "L_TEST_STATUS"."STATUS"='Scheduled')
      94 - access("B_FP_TEST"."TEST_TYPE_ID"="L_ATMS_TEST_TYPE"."ATMS_TEST_TYPE_ID")
      95 - filter("L_ATMS_TEST_TYPE"."IS_DELETED"=0)

    Excellent piece of follow-up on my first suggestion.
    I nearly made a comment about how the plan doesn't show Bloom filter pruning either - and then I realised why not. The plan you've shown us comes from Explain Plan with literal values present; the trace file shows bind variables with names that are generated when cursor_sharing is set to force or similar - so the run-time plan and the plan from explain plan are almost guaranteed to be different.
    Oracle support will need you to supply the plan you get from trying to run the query and then making a call to dbms_xplan.display_cursor() - dbms_xplan in 10g | Oracle Scratchpad If you do this I think you'll find that the pstart/pstop columns contain entries like :BF0000, and you may even find operations link PX JOIN FILTER CREATE / PX JOIN FILTER USE
    A couple of generic notes:
    if a query does sufficient work to merit parallel execution, then it's usually better to supply the best possible information to the optimizer, which means using literals rather than bind variables - you could try executing the query with the hint /*+ cursor_sharing_exact */ to stop Oracle from turning your literals into binds; it might be the presence of bind variables that's making the optimizer choose a path that has to include bloom filter pruning in your case.
    Where you have the to_date() call you've used a four-digit year - which is a very good thing and helps the optimizer - but it's also a good idea to include an explicit format string as well: with a four-digit year this probably won't make any difference, but it avoids any risk of ambiguity for the optimizer.
    I made a comment about the P->S stage and bottlenecks - I spent a couple more minutes looking at the plan, and I see the optimizer has used concatentation: in effect it has run three query blocks one after the other and fed the results to the query co-ordinator - in this case the P->S would make no difference to the end-user response time there's always a final P->S to the coordinator, you just happen to have three of them.
    Regards
    Jonathan Lewis

  • Unhandled Exception: System.TimeoutException: The request channel timed out while waiting for a reply after 00:01:59.9139778.Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding.

    Hi, 
    I created a simple plugin and since i wanted to use Early Binding i added Xrm.cs file to my solution.After i tried registering the plugin (using the Plugin Registration Tool) the plugin does not gets registered and i get the below mentioned Exception.
    Unhandled Exception: System.TimeoutException: The request channel timed out while waiting for a reply after 00:01:59.9139778. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this
    operation may have been a portion of a longer timeout.
    Server stack trace: 
       at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]: 
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Xrm.Sdk.IOrganizationService.Update(Entity entity)
       at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.UpdateCore(Entity entity)
       at Microsoft.Crm.Tools.PluginRegistration.RegistrationHelper.UpdateAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly, PluginType[] type)
       at Microsoft.Crm.Tools.PluginRegistration.PluginRegistrationForm.btnRegister_Click(Object sender, EventArgs e)
    Inner Exception: System.TimeoutException: The HTTP request to 'https://demoorg172.api.crm.dynamics.com/XRMServices/2011/Organization.svc' has exceeded the allotted timeout of 00:01:59.9430000. The time allotted to this operation may have been a portion of a
    longer timeout.
       at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
       at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
       at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
    Inner Exception: System.Net.WebException: The operation has timed out
       at System.Net.HttpWebRequest.GetResponse()
       at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
    And to my Surprise after i remove the Xrm.cs file from my solution the Plugin got registered!
    Not understanding what exactly is the issue.
    Any Suggestions are highly appreciated.
    Thanks,
    Shradha
      

    Hello Shardha,
                            I really appreciate that you have faced this issue.This is really very strange issue and basically it occurs because of big size of your early bound class and slow internet
    connection.
                            I would strictly recommend you to reduce the file size of your early bound class and then register.By default early bound class is created for all the entities which are
    present in CRM(System entities as well custom entities).Such kind of early bound classes takes lots of time to register on server and hence timeout exception comes.
                            There is some standard define to reduce the size of early bound class.Please follow the link to get rid from big size of early bound class.
    Create a new C# class library project in Visual Studio called SvcUtilFilter.
    In the project, add references to the following:
    CrmSvcUtil.exe(from sdk)   This exe has the interface we will implement.
    Microsoft.Xrm.Sdk.dll  (found in the CRM SDK).
    System.Runtime.Serialization.
      Add the following class to the project:
    using System;
    using System.Collections.Generic;
    using System.Xml.Linq;
    using Microsoft.Crm.Services.Utility;
    using Microsoft.Xrm.Sdk.Metadata;
    namespace SvcUtilFilter
        /// <summary>
        /// CodeWriterFilter for CrmSvcUtil that reads list of entities from an xml file to
        /// determine whether or not the entity class should be generated.
        /// </summary>
        public class CodeWriterFilter : ICodeWriterFilterService
            //list of entity names to generate classes for.
            private HashSet<string> _validEntities = new HashSet<string>();
            //reference to the default service.
            private ICodeWriterFilterService _defaultService = null;
            /// <summary>
            /// constructor
            /// </summary>
            /// <param name="defaultService">default
    implementation</param>
            public CodeWriterFilter( ICodeWriterFilterService defaultService )
                this._defaultService = defaultService;
                LoadFilterData();
            /// <summary>
            /// loads the entity filter data from the filter.xml file
            /// </summary>
            private void LoadFilterData()
                XElement xml = XElement.Load("filter.xml");
                XElement entitiesElement = xml.Element("entities");
                foreach (XElement entityElement in entitiesElement.Elements("entity"))
                    _validEntities.Add(entityElement.Value.ToLowerInvariant());
            /// <summary>
            /// /Use filter entity list to determine if the entity class should be generated.
            /// </summary>
            public bool GenerateEntity(EntityMetadata entityMetadata, IServiceProvider services)
                return (_validEntities.Contains(entityMetadata.LogicalName.ToLowerInvariant()));
            //All other methods just use default implementation:
            public bool GenerateAttribute(AttributeMetadata attributeMetadata, IServiceProvider services)
                return _defaultService.GenerateAttribute(attributeMetadata, services);
            public bool GenerateOption(OptionMetadata optionMetadata, IServiceProvider services)
                return _defaultService.GenerateOption(optionMetadata, services);
            public bool GenerateOptionSet(OptionSetMetadataBase optionSetMetadata, IServiceProvider services)
                return _defaultService.GenerateOptionSet(optionSetMetadata, services);
            public bool GenerateRelationship(RelationshipMetadataBase relationshipMetadata, EntityMetadata otherEntityMetadata, IServiceProviderservices)
                return _defaultService.GenerateRelationship(relationshipMetadata, otherEntityMetadata, services);
            public bool GenerateServiceContext(IServiceProvider services)
                return _defaultService.GenerateServiceContext(services);
    This class implements the ICodeWriterFilterService interface.  This interface is used by the class generation
    utility to determine which entities, attrributes, etc. should actually be generated.  The interface is very simple and just has seven methods that are passed metadata info and return a boolean indicating whether or not the metadata should be included
    in the generated code file.   
    For now I just want to be able to determine which entities are generated, so in the constructor I read from an XML
    file (filter.xml) that holds the list of entities to generate and put the list in a Hashset.  The format of the xml is this:
    <filter>
      <entities>
        <entity>systemuser</entity>
        <entity>team</entity>
        <entity>role</entity>
        <entity>businessunit</entity>
      </entities>
    </filter>
    Take a look at the methods in the class. In the GenerateEntity method, we can simply check the EntityMetadata parameter
    against our list of valid entities and return true if it's an entity that we want to generate.
    For all of the other methods we want to just do whatever the default implementation of the utility is.  Notice
    how the constructor of the class accepts a defaultService parameter.  We can just save a reference to this default service and use it whenever we want to stick with the default behavior.  All of the other methods in the class just call the default
    service.
    To use our extension when running the utility, we just have to make sure the compiled DLL and the filter.xml file
    are in the same folder as CrmSvcUtil.exe, and set the /codewriterfilter command-line argument when running the utility (as described in the SDK):
    crmsvcutil.exe /url:http://<server>/<org>/XrmServices/2011/Organization.svc /out:sdk.cs  /namespace:<namespace> /codewriterfilter:SvcUtilFilter.CodeWriterFilter,SvcUtilFilter
    /username:[email protected] /password:xxxx
    That's it! You now have a generated sdk.cs file that is only a few hundred kilobytes instead of 5MB. 
    One final note:  There is actually a lot more you can do with extensions to the code generation utility. 
    For example: if you return true in the GenerateOptionSet method, it will actually generated Enums for each CRM picklist (which it doesn't normally do by default).
    Also, the source code for this SvcUtilFilter example can be found here. 
    Use at your own risk, no warranties, etc. etc. 
    Please mark as a answer if this post is useful to you.

  • Request timed out while waiting for response!!

    Hi All,
    My scenario is PROXY to SOAP. I am getting below error while posting to WEBSERVICE.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  XML Validation Inbound Channel Response
      -->
      <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">Failed to deliver inbound WS message, code=503 and reason=Request timed out while waiting for response. at com.sonicsw.net.http.ws.WSHttpProtocolHandler$HttpInBrokerHandler.invoke(WSHttpProtocolHandler.java:833) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) at com.sonicsw.net.http.ws.WSHttpProtocolHandler.sendToSOAPStack(WSHttpProtocolHandler.java:630) at com.sonicsw.net.http.ws.WSHttpProtocolHandler.dispatch(WSHttpProtocolHandler.java:537) at com.sonicsw.net.http.ws.WSHttpProtocolHandler.servicePost(WSHttpProtocolHandler.java:284) at com.sonicsw.net.http.ws.WSHttpProtocolHandler.service(WSHttpProtocolHandler.java:609) at com.sonicsw.net.http.HttpProtocolHandler.handle(HttpProtocolHandler.java:471) at progress.message.net.http.server.HttpConnectionHandler.handle(HttpConnectionHandler.java:170) at progress.message.net.https.server.SonicHttpsConnection.service(SonicHttpsConnection.java:156) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831) at progress.message.net.https.server.SonicHttpsServer.handleConnection(SonicHttpsServer.java:449) at progress.message.net.https.server.SonicHttpsServer.handle(SonicHttpsServer.java:364) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)</ns1:stackTrace>
    Any Idea ? Do I need to change anything in my SOAP Channel or BAsis should change the Time Parameter?
    Thanks,
    Pushkar Patel

    Hi,
    >>>>>>>Request timed out while waiting for response.
    See the below link, it might be helpful to you for timed out issue.
    [Link1|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c059d583-a551-2c10-e095-eb5d95e03747?quicklink=index&overridelayout=true]
    Regards,
    Rajesh

  • Database error"ORA-00060: deadlock detected while waiting for resource"

    Hi All,
    I got dump as
    Database error text........: "ORA-00060: deadlock detected while waiting for
      resource"
    Internal call code.........: "[RSQL/RDUP/NRIV ]"
    Please check the entries in the system log (Transaction SM21).
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
    in
    procedure "READ_NRIV" "(FORM)", nor was it propagated by a RAISING clause.
    Can u ppl tell me how to get correct this?
    Edited by: Bala Chandar on Jul 20, 2009 11:01 AM

    Hi Bala,
    Same type of dump we got when we trigger the DTP which in process chain to load data from DSO to Info cube. And the load had processed with 225 data package and at 164th data package we got this error and except 164th data package all data package processed successfully
    And the request was red. So we had done processed manually by clicking the icon. So all its been green and successfully loaded.
    So when you do process manual the particular data package which got failed will be process successfully  

  • ORA-00060: deadlock detected while waiting for resource CLOSE cursor

    Hi,
    I am a new member of this forum. I am working with a problem we got a few weeks ago. It is from a Pro C batch executable running on 10 threads dealing with >800 data accessed from multiple tables. The error as reported came from a package.function call.
    This is the error I encountered:
    process_item~G****, D***~-60~ORA-00060: deadlock detected while waiting for resource~PACKAGE ERROR = CLOSE cursor C_***** in package R***.I*** 7641
    The cursor is a simple SELECT cursor without Table or Record locking.
    My questions are:
    *Upon the occurrence of this error, is the execution already at the CLOSE cursor line or did the error occurred between the OPEN cursor and the CLOSE cursor? There are several lines of code in between OPEN and CLOSE:
    - one that calls for a package.function that simply stores parameter values to a variable
    - another one which fetches the cursor. The group that holds the cursor values is only used by a single function in the package
    *Is it possible for this CLOSE cursor to cause a deadlock? What could have caused this?
    *From what I know, Oracle deals with deadlocks by aborting the deadlocking process while others continue, but this deadlock caused our program to hang. How is this possible? Could the root cause of the deadlock be from our threading program? This is a rare occurrence and happened only twice this year.
    Thanks,
    Raf

    Raf Serrano wrote:
    Hi,
    I am a new member of this forum. I am working with a problem we got a few weeks ago. It is from a Pro C batch executable running on 10 threads dealing with >800 data accessed from multiple tables. The error as reported came from a package.function call.
    This is the error I encountered:
    process_item~G****, D***~-60~ORA-00060: deadlock detected while waiting for resource~PACKAGE ERROR = CLOSE cursor C_***** in package R***.I*** 7641
    The cursor is a simple SELECT cursor without Table or Record locking.
    My questions are:
    *Upon the occurrence of this error, is the execution already at the CLOSE cursor line or did the error occurred between the OPEN cursor and the CLOSE cursor? There are several lines of code in between OPEN and CLOSE:
    - one that calls for a package.function that simply stores parameter values to a variable
    - another one which fetches the cursor. The group that holds the cursor values is only used by a single function in the package
    *Is it possible for this CLOSE cursor to cause a deadlock? What could have caused this?
    *From what I know, Oracle deals with deadlocks by aborting the deadlocking process while others continue, but this deadlock caused our program to hang. How is this possible? Could the root cause of the deadlock be from our threading program? This is a rare occurrence and happened only twice this year.
    Thanks,
    RafSELECT (without FOR UPDATE) statements are never involved in ORA-00060.
    only DML statements throw ORA-00060 error

  • ORA-00060: deadlock detected while waiting for resource with Tbs Read-only

    Hi all,
    We're using Oracle 10.2.0.1 and 9.2.0.4.
    I'm testing the performing of a procedure that inserts, like this:
    CREATE OR REPLACE PROCEDURE P$TAD_TEST
    IS
    TYPE T_T1_C1          IS TABLE OF T1.C1%TYPE INDEX BY PLS_INTEGER;
    TYPE T_T1_DT           IS TABLE OF T1.DT%TYPE INDEX BY PLS_INTEGER;
    P_C1 T_T1_C1;
    P_DT T_T1_DT;
    P_RESULT NUMBER;
    BEGIN
    FOR j IN 1..4032 LOOP
    P_C1(j) := j;
    P_DT(j) := SYSDATE + (j/24/60);
    END LOOP;
    FORALL i IN P_C1.FIRST..P_C1.LAST SAVE EXCEPTIONS
    INSERT INTO T1 VALUES (P_C1(i), P_DT(i));
    EXCEPTION
    WHEN OTHERS THEN
    P_RESULT := SQLCODE;
    END;
    The table T1 is partitioned across 10 tablespaces. The test consist to take
    these tablespace read-only and perform the procedure, and analyze the results,
    like erros.
    but when I perform the procedure, The alert.log indicates the error
    ORA-00060: deadlock detected while waiting for resource.
    Why this occurs only the tablespaces are read-only?
    thank you!!!!

    Hi,
    yesterday we got this error again(in fact twice) and we were able to get the trace file. It says this is NOT oracle error. i was wrong in suspecting Oracle. This is the trace file details. i dont know how to debug this. Any help appreciated.
    *** 2010-06-15 16:24:29.243
    *** ACTION NAME:() 2010-06-15 16:24:29.231
    *** MODULE NAME:(JDBC Thin Client) 2010-06-15 16:24:29.231
    *** SERVICE NAME: 2010-06-15 16:24:29.231
    *** SESSION ID:(482.4266) 2010-06-15 16:24:29.231
    DEADLOCK DETECTED ( ORA-00060 )
    [Transaction Deadlock]
    The following deadlock is not an ORACLE error. It is a
    deadlock due to user error in the design of an application
    or from issuing incorrect ad-hoc SQL. The following
    information may aid in determining the deadlock:
    Deadlock graph:
    ---------Blocker(s)-------- ---------Waiter(s)---------
    Resource Name process session holds waits process session holds waits
    TX-00300021-0000b52d 209 482 X 247 474 S
    TX-002a0009-00011b24 247 474 X 209 482 S
    session 482: DID 0001-00D1-0000000A session 474: DID 0001-00F7-00000008
    session 474: DID 0001-00F7-00000008 session 482: DID 0001-00D1-0000000A
    Rows waited on:
    Session 474: obj - rowid = 0000CED4 - AAAM7UAAxAAAVgSAAA
    (dictionary objn - 52948, file - 49, block - 88082, slot - 0)
    Session 482: obj - rowid = 0000D8BF - AAANi/AAuAAB+z/AAA
    (dictionary objn - 55487, file - 46, block - 519423, slot - 0)
    Information on the OTHER waiting sessions:
    Session 474:
    pid=247 serial=31796 audsid=25502259 user: 62/USER
    O/S info: ....
    program: JDBC Thin Client
    application name: JDBC Thin Client, hash value=2546894660
    Current SQL Statement:
    INSERT QUERY1
    End of information on OTHER waiting sessions.
    Current SQL statement for this session:
    INSERT QUERY2
    Thanks,
    AK

  • Trigger error -deadlock detected while waiting for resource

    with table1 as (
    select '1' no,'1' id, 'N' flag,'' result from dual union all
    select '2' no,'1' id, 'N' flag,'B' result from dual union all
    select '3' no,'1' id, '' flag,'B' result from dual union all
    select '4' no,'2' id, 'N' flag,'B' result from dual union all
    select '5' no,'2' id, 'N' flag,'B' result from dual
    select * from table1
    I need to write a trigger with the condition that if Flag is set to 'Y', then all the values for the field 'result' for that particular ID should set a 'A'.
    For the above table if I run the below query
    update table1
    set flag= 'Y' where no =1
    The trigger result should be
    with table1 as (
    select '1' no,'1' id, 'Y' flag,'A' result from dual union all
    select '2' no,'1' id, 'N' flag,'A' result from dual union all
    select '3' no,'1' id, '' flag,'A' result from dual union all
    select '4' no,'2' id, 'N' flag,'B' result from dual union all
    select '5' no,'2' id, 'N' flag,'B' result from dual
    select * from table1
    I wrote the trigger as below...
    CREATE OR REPLACE TRIGGER test
    BEFORE UPDATE
    ON table1 for each row
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    if :new.flag = 'Y' then
    update table1
    set result = 'A'
    where id = :new.id ;
    commit;
    end if;
    end;
    but giving follwing error.
    ORA-00060: deadlock detected while waiting for resource
    ORA-06512: at "test"
    ORA-04088: error during execution of trigger 'test'
    Please help to correct my trigger.

    # Firstly you cannot define trigger using on subquery clause - WITH. e.g. table1.
    # You might have used a trick to use PRAGMA AUTONOMOUS TRANSACTION to isolate trigger transaction from the main transaction but the deadlock will certainly going to occur as the main transaction already hold the row level lock which you are trying to update in trigger code.
    # We will try to use common technique to capture all the ID whose flag is set as 'Y' in row level trigger and then in statement level trigger after update will update the column - "resut" for the ID.
    This is very simple test code for demonostration.
    CREATE TABLE T
      NO      NUMBER,
      ID      NUMBER,
      FLAG    VARCHAR2(1),
      RESULT  VARCHAR2(1)
    INSERT INTO  T VALUES (1,1,'N',NULL);
    INSERT INTO  T VALUES (2,1,'N','B');
    INSERT INTO  T VALUES (3,1,'','B');
    INSERT INTO  T VALUES (4,2,'N','B');
    INSERT INTO  T VALUES (5,2,'N','B');
    CREATE OR REPLACE PACKAGE PKG_T_MUTATING AS
    TYPE IDTABTYPE IS TABLE OF T.ID%TYPE;
    T_ID IDTABTYPE := IDTABTYPE();
    PROCEDURE GET_UPDATE_ID(P_ID T.ID%TYPE);
    PROCEDURE UPD_T;
    END PKG_T_MUTATING;
    CREATE OR REPLACE PACKAGE BODY PKG_T_MUTATING AS
    PROCEDURE GET_UPDATE_ID(P_ID T.ID%TYPE) IS
    BEGIN
      T_ID.EXTEND;
      T_ID(T_ID.COUNT) := P_ID;
      DBMS_OUTPUT.PUT_LINE('T_ID ' || T_ID(T_ID.COUNT));
    END GET_UPDATE_ID;
    PROCEDURE UPD_T IS
    V_ID PKG_T_MUTATING.IDTABTYPE := PKG_T_MUTATING.IDTABTYPE();
    BEGIN
    V_ID := V_ID MULTISET UNION DISTINCT T_ID;
    IF V_ID.COUNT > 0  THEN
      FORALL i IN 1..V_ID.COUNT
       UPDATE T SET RESULT = 'A'
       WHERE ID = V_ID(i);
    END IF;
    -- Cleanup
    V_ID.DELETE;
    T_ID.DELETE;
    EXCEPTION
      WHEN OTHERS THEN
        DBMS_OUTPUT.PUT_LINE(DBMS_UTILITY.FORMAT_ERROR_STACK);
    END UPD_T;
    END PKG_T_MUTATING;
    CREATE OR REPLACE TRIGGER TRG_TEST_BU
    BEFORE UPDATE OF FLAG ON T FOR EACH ROW
    WHEN (NEW.FLAG = 'Y')
    BEGIN
    pkg_t_mutating.get_update_id(:NEW.ID);
    END;
    CREATE OR REPLACE TRIGGER TRG_TEST_AU
    AFTER UPDATE OF FLAG ON T
    BEGIN
    PKG_T_MUTATING.UPD_T;
    END;
    SQL>SELECT * FROM T;
            NO         ID FLAG       RESULT
             1          1 Y          A
             2          1 N          B
             3          1            B
             4          2 N          B
             5          2 N          B
    SQL>UPDATE T SET FLAG = 'Y' WHERE NO = 1 AND ID = 1;
    1 row updated.
    SQL>SELECT * FROM T;
            NO         ID FLAG       RESULT
             1          1 Y          A
             2          1 N          A
             3          1            A
             4          2 N          B
             5          2 N          B
    SQL>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Sqlldr- ORA-00060: deadlock detected while waiting for resource

    Hi Team,
    My database version is 11.1.0.7.0. I am loading the data using sqlldr. I am getting the error ORA-00060: deadlock detected while waiting for resource. once dead lock detected ,whether data will be rejected after commit point reached(Rows=100000). FYI information only sqllder is running on the database,it is getting completed withing 5-10min. please help me whether any other lock happening on this due to sqllder.
    sqlldr userid=orcl/orcle control=".$controlfile." log=".$logfile.".log data=".$datafile." bad=".$badfile." discard=".$discardfile." Bindsize=19000000 Rows=100000 Readsize=20000000 Errors=1000000";
    Thanks in advance

    user9256814 wrote:
    Hi Team,
    My database version is 11.1.0.7.0. I am loading the data using sqlldr. I am getting the error ORA-00060: deadlock detected while waiting for resource. once dead lock detected ,whether data will be rejected after commit point reached(Rows=100000). FYI information only sqllder is running on the database,it is getting completed withing 5-10min. please help me whether any other lock happening on this due to sqllder.
    sqlldr userid=orcl/orcle control=".$controlfile." log=".$logfile.".log data=".$datafile." bad=".$badfile." discard=".$discardfile." Bindsize=19000000 Rows=100000 Readsize=20000000 Errors=1000000";
    Thanks in advanceadditional clues will exist within alert_SID.ora file & subsequent trace file.

Maybe you are looking for

  • Page break for Smartform with multiple main window on pages

    Hi Experts, I have a requirement for printing 3 pages. The difference among the 3 pages is the main window part. The main window contains not only internal table, also complicated texts like payment instructions etc. The requirement is in each page,

  • Itunes stops working when on podcasts then crashes

    Every time itunes starts (it is on the podcast section) it rapidly freezes then stops working. If I immediately switch to another section or store, it lasts longer.  Something is wrong with the podcast section.  I have followed all the guides on unin

  • Acrobat 9 hangs with multiple documents open

    HP pro 6200 4 G RAM, Win7Pro, Acrobat 9(fully updated), single computer affected, multiple users, documents are from C drive, network, and USB I've run a repair install, removed the popups/lines and other markup notifications, held shift down when st

  • KeyPressed / collision detection

    I have a tile based platformer I am making and am having some trouble with the collision detection. I have it so that the game detects a collision before it actually occurs so that it wont happen in the game. However, it only appears to works right i

  • New in XI

    Hi experts, I am new in XI,and just starting to learn. I have a very basic doubt. In XI, one is XI server that can be used from SAP GUI and other is one that can be used using browser,like internet explorer. I wan to knw what are this two different c