Maximum lock count exceeded - Details to debug
Hello ,
I have a site that is developed on Jdeveloper using jspx pages . This site is deployed on WLS but occassionaly I am seeing that the pages show up blank . After a short while refresh of the page brings the page back to normalcy as in shows the details , images etc .
During the period when the page goes blank following error stack is captured in the server logs :
Caused By: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /_intradoc_/wcm/app/groups/sgsitedesignasset/@hmc/documents/sitedesignasset/mdaw/mdaw/~edisp/st_mainkv5.jspx
Exception occurred while processing '/_intradoc_/wcm/app/groups/sgsitedesignasset/@hmc/documents/sitedesignasset/mdaw/mdaw/~edisp/st_mainkv5.jspx'java.lang.Error: Maximum lock count exceeded
at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryAcquireShared(ReentrantReadWriteLock.java:395)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireShared(AbstractQueuedSynchronizer.java:1260)
at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lock(ReentrantReadWriteLock.java:594)
at oracle.stellent.wcm.server.content.spi.fs.FileSystemLoader$SingleLockStrategy.lockShared(FileSystemLoader.java:116)
at oracle.stellent.wcm.server.content.spi.fs.FileSystemLoader$MultiLockStrategy.lockShared(FileSystemLoader.java:185)
at oracle.stellent.wcm.server.content.spi.fs.FileSystemLoader.readAndStoreOnlineContent(FileSystemLoader.java:349)
at oracle.stellent.wcm.server.content.spi.fs.FileSystemLoader.readAndStoreStream(FileSystemLoader.java:311)
at oracle.stellent.wcm.server.content.spi.fs.FSContentAdapter.loadContent(FSContentAdapter.java:163)
at oracle.stellent.wcm.server.content.spi.fs.FSLocalModifiedContentAdapter.loadContent(FSLocalModifiedContentAdapter.java:123)
at oracle.stellent.wcm.javaee.shared.jsp.IdcJspProvider.fromStream(IdcJspProvider.java:86)
at oracle.adf.library.webapp.ADFJspResourceProvider.fromStream(ADFJspResourceProvider.java:328)
at weblogic.jsp.wlw.util.filesystem.mds.MDSFileSystem.getInputStream(MDSFileSystem.java:78)
at weblogic.jsp.wlw.util.filesystem.FS.getInputStream(FS.java:224)
at weblogic.jsp.wlw.util.filesystem.FS.getReader(FS.java:246)
at weblogic.jsp.internal.SourceFile.getReader(SourceFile.java:230)
at weblogic.jsp.internal.SourceFile.getTokenStream(SourceFile.java:384)
at weblogic.jsp.internal.SourceFile.getAst(SourceFile.java:533)
at weblogic.jsp.internal.SourceFile.check(SourceFile.java:335)
at weblogic.jsp.internal.ProxySourceFile.codeGen(ProxySourceFile.java:224)
at weblogic.jsp.internal.SourceFile.codeGen(SourceFile.java:327)
at weblogic.jsp.internal.client.ClientUtilsImpl$CodeGenJob.run(ClientUtilsImpl.java:599)
at weblogic.jsp.internal.client.Job.performJob(Job.java:83)
at weblogic.jsp.internal.client.SyncThreadPool.addJob(SyncThreadPool.java:31)
at weblogic.jsp.internal.client.SyncThreadPool.addJob(SyncThreadPool.java:19)
at weblogic.jsp.internal.client.ClientUtilsImpl.build(ClientUtilsImpl.java:348)
at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:153)
at weblogic.servlet.jsp.ResourceProviderJavelinxJspStub.compilePage(ResourceProviderJavelinxJspStub.java:78)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:256)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
at weblogic.servlet.jsp.ResourceProviderJspStub.execute(ResourceProviderJspStub.java:48)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
at oracle.stellent.wcm.javaee.ServletRequestContext.executePath(ServletRequestContext.java:243)
at oracle.stellent.wcm.client.RequestContext.process(RequestContext.java:189)
at oracle.stellent.wcm.client.RequestContext.include(RequestContext.java:144)
at oracle.stellent.wcm.client.invokers.ResponseHandler.evaluateScript(ResponseHandler.java:217)
at oracle.stellent.wcm.javaee.taglib.BaseTag$1.evaluateScript(BaseTag.java:114)
at oracle.stellent.wcm.client.invokers.ResponseHandler.handleResponse(ResponseHandler.java:146)
at oracle.stellent.wcm.client.invokers.ResponseHandler.handleResponse(ResponseHandler.java:111)
at oracle.stellent.wcm.javaee.taglib.BaseTag$1.handleResponse(BaseTag.java:121)
at oracle.stellent.wcm.client.invokers.RequestInvoker.handleResponse(RequestInvoker.java:222)
at oracle.stellent.wcm.client.invokers.impl.ContributableInvoker.handleResponse(ContributableInvoker.java:53)
at oracle.stellent.wcm.client.invokers.impl.PlaceholderInvoker.handleResponse(PlaceholderInvoker.java:70)
at oracle.stellent.wcm.client.invokers.RequestInvoker.invokeRequest(RequestInvoker.java:145)
at oracle.stellent.wcm.javaee.taglib.BaseTag.doTag(BaseTag.java:127)
at jsp_servlet._intradoc._wcm._app._groups._sgsitedesignasset.__64_hmc._documents._sitedesignasset._mdaw._mdaw.__126_edisp.__pt_pip_jspx._jspService(__pt_pip_jspx.java:704)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.jsp.ResourceProviderJspStub.execute(ResourceProviderJspStub.java:48)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.stellent.wcm.javaee.servlet.filter.WCMSiteFilter.doFilter(WCMSiteFilter.java:156)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
at oracle.stellent.wcm.javaee.ServletRequestContext.executePath(ServletRequestContext.java:247)
at oracle.stellent.wcm.client.RequestContext.process(RequestContext.java:189)
at oracle.stellent.wcm.client.RequestContext.forward(RequestContext.java:157)
at oracle.stellent.wcm.client.invokers.ResponseHandler.evaluateScript(ResponseHandler.java:215)
at oracle.stellent.wcm.client.invokers.ResponseHandler.handleResponse(ResponseHandler.java:146)
at oracle.stellent.wcm.client.invokers.ResponseHandler.handleResponse(ResponseHandler.java:111)
at oracle.stellent.wcm.client.invokers.RequestInvoker.handleResponse(RequestInvoker.java:222)
at oracle.stellent.wcm.client.invokers.impl.PageInvoker.handleResponse(PageInvoker.java:75)
at oracle.stellent.wcm.client.invokers.RequestInvoker.invokeRequest(RequestInvoker.java:145)
at oracle.stellent.wcm.javaee.servlet.filter.WCMSiteFilter.handlePageInvocation(WCMSiteFilter.java:326)
at oracle.stellent.wcm.javaee.servlet.filter.WCMSiteFilter.doFilter(WCMSiteFilter.java:174)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
I am not able to figure out what / how to go about troubleshooting this issue .
Can someone shed some light on the error mentioned above and let me know how to proceed with debugging this issue ?
Site is deployed on WLS 10.3.5 on a separate managed server .
Any inputs will be highly appreciated .
Thanks
Srinath
Code put in st_mainkv5.jspx is :
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:wcm="http://www.oracle.com/jsp/wcm">
<script type='text/javascript'>
//<![CDATA[
var country = "${siteCode}";
var cubeList = new Array();
var firstCube = 2;
cubeList = ["home","gallery", "experience", "mostlike", "talkntalk"];
//]]>
</script>
<wcm:placeholder name="Cube Setting"/>
<jsp:useBean id="map" class="java.util.HashMap"/>
<jsp:scriptlet>
String tmpCube = request.getParameter("Cube");
map.put("ssCube", tmpCube);
</jsp:scriptlet>
<c:set var="ssCube" value="${map.ssCube}"/>
<c:choose>
<c:when test="${ssCube eq 'keyvisual'}">
<script>var firstCube = 1;</script>
</c:when>
<c:when test="${ssCube eq 'gallery'}">
<script>var firstCube = 2;</script>
</c:when>
<c:when test="${ssCube eq 'experience'}">
<script>var firstCube = 3;</script>
</c:when>
<c:when test="${ssCube eq 'mostlike'}">
<script>var firstCube = 4;</script>
</c:when>
<c:when test="${ssCube eq 'talkntalk'}">
<script>var firstCube = 5;</script>
</c:when>
<c:otherwise>
<script>var firstCube = 1;</script>
</c:otherwise>
</c:choose>
<script type='text/javascript'>
//<![CDATA[
var cubeList = new Array();
cubeList = ["home","gallery", "experience", "mostlike", "talkntalk"];
function cubeStart(va) {
// ìì
íë¸ì ì¤ì 컨í
ì¸ ë ì´ í¨ììì ajax í¨ì를 ì¤í ìì¼ì ë¿ë ¤ì£¼ëë¡ í´ì£¼ì¸ì.
// ëëê·¸íê±°ë ë²í¼ì í´ë¦íì¬ íë¸ê° ì¢ì° ì¤í¬ë¡¤ì´ ëë©´, í´ë¹íë íë¸ì ì«ì(1~5)를 ì¸ìë¡ ë°ì ì´ í¨ìê° ì¤íë©ëë¤.
// ì«ìì íë¸ê° íì 1:1 ëìì¸ ê²ì ìëëë¤.
// íë¸ë ìµë 5ê°ê¹ì§ ì¶ë ¥ëê³ , ìì
ì¬ì© ì¬ë¶/pipì¸ì§ generalì¸ì§ì ë°ë¼ 3ê°ë§ ì¶ë ¥ëë ê²½ì°ë ììµëë¤.
//alert("Cube"va" is Ready.");
if (va==1) { // main
// ì²ë¦¬ ë´ì© ìì, HTMLìì ì¶ë ¥ëëë¡ í´ ì£¼ìë©´ ë©ëë¤.
} else if (va==2) { // gallery
cubeGalleryCustomiz('1','All')
} else if (va==3) { // experience
cubeExterienceCustomiz('exterior','0','');
} else if (va==4) { // mostlike
executeArea4();
// ìµì´ ë¡ë©ì ë¿ë§ ìëë¼, ê° 1/2/3ì ë§í¬ í´ë¦í ë ìë ë¤ì ì¤íëì´ì¼ í©ëë¤.
// cubeMostLikeCate()ë ì¹´í
ê³ ë¦¬ë¥¼ ì¶ë ¥íë í¨ìì
ëë¤.
// 1) ì íë ë²í¸, 1~3 ì¤ íë.
// 2) 첫ë²ì§¸ íë¡í ì´ë¯¸ì§
// 3) ëë²ì§¸ íë¡í ì´ë¯¸ì§
// 4) ì¸ë²ì§¸ íë¡í ì´ë¯¸ì§
// 5) 첫ë²ì§¸ ì´ë¦
// 6) ëë²ì§¸ ì´ë¦
// 7) ì¸ë²ì§¸ ì´ë¦
//cubeMostLikeCate(1,'/img_tmp/profile30.jpg','/img_tmp/profile30.jpg','/img_tmp/profile30.jpg','Jeff','Antonio','Jane');
// cubeMostLike ë²í¼ì ì¤ë¥¸ìª½ ë´ì©ì´ ë°ëë í¨ìì
ëë¤.
// 1) ìëì°¨ ì´ë¦
// 2) Trim (ìë§ë..)
// 3) ì íí ìµì¤í
ë¦¬ì´ ì´ë¯¸ì§ (ìì´ì½ ì´ë¯¸ì§ ê²½ë¡)
// 4) ì íí ì¸í
ë¦¬ì´ ì´ë¯¸ì§ (ìì´ì½ ì´ë¯¸ì§ ê²½ë¡)
// 5) ìëì°¨ ì´ë¯¸ì§
// 6) See More ë§í¬
// 7) Car Builder ë§í¬
// 8) Linkë²í¼ ì½ë
// cubeMostLike('ABC','Test','/img_tmp/exterior_gray.png','/img_tmp/interior_brown.png','/img_tmp/car_mostlike.png','#','#','<img src="/img_tmp/like.gif" alt="" />');
} else if (va==5) { // talk n talk
executeArea5();
// ì´ê¸°í ìí¤ë í¨ì
//cubeTalknTalkInit();
// ê°ê°ì í
ì¤í¸ë¥¼ ë¿ë ¤ ì¤ëë¤.
// 1) ë²í¸ 1~6
// 2) facebook or twitter
// 3) íë¡í ì´ë¯¸ì§
// 4) ì´ë¦
// 5) ë´ì©
//cubeTalknTalk(1,'facebook','/img_tmp/profile25.jpg','Dabby whistler','I can\'t belive my eyes. AZERA is so nice');
//cubeTalknTalk(2,'twitter','/img_tmp/profile25.jpg','Dabby whistler','I can\'t belive my eyes. AZERA is so nice');
//cubeTalknTalk(3,'facebook','/img_tmp/profile25.jpg','Dabby whistler','AZERA has a good performance to drive. It\'s really interesting for me');
//cubeTalknTalk(4,'twitter','/img_tmp/profile25.jpg','Dabby whistler','I can\'t belive my eyes. AZERA is so nice');
//cubeTalknTalk(5,'facebook','/img_tmp/profile25.jpg','Dabby whistler','AZERA has a good performance to drive. It\'s really interesting for me');
//cubeTalknTalk(6,'facebook','/img_tmp/profile25.jpg','Dabby whistler','I can\'t belive my eyes. AZERA is so nice');
//]]>
</script>
<!-- 960*436 -->
<wcm:placeholder name="CUBE MAIN"/>
<wcm:placeholder name="CUBE GALLERY"/>
<wcm:placeholder name="CUBE EXPERIENCE"/>
<wcm:placeholder name="CUBE MOST LIKE"/>
<wcm:placeholder name="CUBE TALK TALK"/>
<img src="/es/images/common/bg/blank.gif" alt="previous" />
<img src="/es/images/common/bg/blank.gif" alt="next" />
<!--
<div class="facebook">
<img src="/img_tmp/tmp_facebook.png" alt="" />
</div>
-->
</jsp:root>
Similar Messages
-
MAXIMUM ERROR COUNT EXCEEDED sqlloader
Hello
I am getting an error in sqlloader MAXIMUM ERROR COUNT EXCEEDED, How fix that error? how to fix the table.
Thanks
PrincePrince,
SQL Loader has a default of 50 errors that are allowable after which the loader process exits.
You can increase the limit using the ERRORS CLause.
SQLLDR CONTROL=foo.ctl, LOG=bar.log, BAD=baz.bad, DATA=etc.dat
USERID=scott/tiger, ERRORS=999 , LOAD=2000, DISCARD=toss.dis,
DISCARDMAX=5In the case of the above control file, the execution would quit after 999 records have errors in them.
If the file is pretty large and you want all errors be allowed, use a very large number for ERRORS.
Also, take a look at the bad file.. Sometimes an error in the control (like wrong column order..) file might cause all the records to error out.
Check this link and search for ERRORS : http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch04.htm
Thanks,
Rajesh. -
MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
Hi,
database : 10.2.0.4.0
Below is the error i am getting while inserting data using sqlldr.
Record 1619784: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
Table "INCA"."UP_STRUC_VALU":
1619733 Rows successfully loaded.
51 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 6400 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 1619808
Total logical records rejected: 51
Total logical records discarded: 0
Run began on Thu Aug 09 20:36:54 2012
Run ended on Thu Aug 09 20:46:23 2012
Elapsed time was: 00:09:29.10
CPU time was: 00:00:32.36
======================================================
type INCASHADOW_DIR:[LOAD.CTL]T440.CTL
Load data
Infile 'INCASHADOW_DIR:[DATA]T440.DAT'
Replace
-- * The only NOT NULL columns are the primary key.
-- * By default, fields that are all spaces will be set to NULL.
-- * Preserve blanks
Into table UP_STRUC_VALU
When (1:3) = '440'
-- * Use sorted indexes for direct path loads
UP_STRUC_VALU_CODE POSITION(4: 11) CHAR
,VIEW_SUBJ_GRP_CODE CHAR(3)
,VIEW_UP_STRUC_NAME_ABBR CHAR(8)
,CLAS_INSTC_UP_STRUC_DOM_CODE CHAR(3)
,UP_STRUC_VALU_INSTC_CODE CHAR(8)
,RECORD_STATUS CHAR(2)
,CREATION_DATE CHAR(8)
,UPDATE_USER CHAR(8)
,EFFECTIVE_DATE CHAR(8) NULLIF (EFFECTIVE_DATE = "00000000")
,UPDATE_DATE CHAR(8) NULLIF (UPDATE_DATE = "00000000")
,UPDATE_TIME CHAR(8) NULLIF (UPDATE_TIME = "00000000")
,RECORD_TYPE CHAR(2)
============================================================================
T440_aougust092012.txt
SQL*Loader: Release 10.2.0.4.0 - Production on Thu Aug 9 20:36:54 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Control File: T440.CTL
Data File: INCASHADOW_DIR:[DATA]T440.DAT
Bad File: T440.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table "INCA"."UP_STRUC_VALU", loaded when 1:3 = 0X343430(character '440')
Insert option in effect for this table: REPLACE
Column Name Position Len Term Encl Datatype
UP_STRUC_VALU_CODE 4:11 8 CHARACTER
VIEW_SUBJ_GRP_CODE NEXT 3 CHARACTER
VIEW_UP_STRUC_NAME_ABBR NEXT 8 CHARACTER
CLAS_INSTC_UP_STRUC_DOM_CODE NEXT 3 CHARACTER
UP_STRUC_VALU_INSTC_CODE NEXT 8 CHARACTER
RECORD_STATUS NEXT 2 CHARACTER
CREATION_DATE NEXT 8 CHARACTER
UPDATE_USER NEXT 8 CHARACTER
EFFECTIVE_DATE NEXT 8 CHARACTER
NULL if EFFECTIVE_DATE = 0X3030303030303030(character '00000000')
UPDATE_DATE NEXT 8 CHARACTER
NULL if UPDATE_DATE = 0X3030303030303030(character '00000000')
UPDATE_TIME NEXT 8 CHARACTER
NULL if UPDATE_TIME = 0X3030303030303030(character '00000000')
RECORD_TYPE NEXT 2 CHARACTER
Record 113825: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619734: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619735: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619736: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619737: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619738: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619739: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619740: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619741: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619742: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619743: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619744: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619745: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619746: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619747: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619748: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619749: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619750: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619751: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619752: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619753: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619754: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619755: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619756: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619757: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619758: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619759: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619760: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619761: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619762: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619763: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619764: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619765: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619766: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619767: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619768: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619769: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619770: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619771: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619772: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619773: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619774: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619775: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619776: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619777: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619778: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619779: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619780: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619781: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619783: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
Record 1619784: Rejected - Error on table "INCA"."UP_STRUC_VALU".
ORA-00001: unique constraint (INCA.UP_STRUC_VALU_I1) violated
MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
Table "INCA"."UP_STRUC_VALU":
1619733 Rows successfully loaded.
51 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 6400 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 1619808
Total logical records rejected: 51
Total logical records discarded: 0
Run began on Thu Aug 09 20:36:54 2012
Run ended on Thu Aug 09 20:46:23 2012
Elapsed time was: 00:09:29.10
CPU time was: 00:00:32.36
please help me to resolve the porblem.The errors are occurring due to a unique constraint (i.e. duplicate values being loaded)
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
...And your error limit is set to 50, so sqlldr will quit after 50 errors. See the docs on how to set this parameter
http://docs.oracle.com/cd/B19306_01/server.102/b14215/ldr_params.htm#sthref573
HTH
Srini -
V1.6 "Item count exceeds maximum of 100" is still in law?
Hello everybody,
I have warning "Item count exceeds maximum of 100" but it seems the page works and saves data properly nevertheless.
Should I still pay attention to this message in version HTML DB 1.6?We have written two APEX applications and both have hit this limit. One app was a resume tracking system that tracked detailed resume data. We hit this limit and our only option was to break it up into two pages.
The second was a scheduler where the user wanted spreadsheet like functionality and had more then 100 cells that they wanted to see.
It is so silly to impose this limit unless there is a technical reason. Excel can manage 64k rows.........why is it 64k, because of a technical limit.
Let the limit be a setting that the APEX developer can change.
FREE APEX of the 100 ITEM LIMIT!!!!! -
Maximum step error count exceeded OR fatal error encountered.
Hi All,
I am inserting distinct records into a table. I am able to execute mapping when I call it from script. Tables are getting loaded properly bur duplicate records are getting inserted. While de-bugging
Encountering "Maximum step error count exceeded OR fatal error encountered" error.
Please suggest me, how to resolve this issue.
Thanks & Regards
Nagaraja AkkivalliHi Sutirtha,
Thanks for your response.
I am using Oracle OWB 11g. I am adding an aggregator and minus operator to get distinct values of transaction from a table in the existing mapping and inserting the same to transaction the table.
Please let me know if you need any information.
Thanks and Regards
Nagaraja Akkivalli.
Edited by: 850144 on Apr 23, 2011 10:17 PM
Edited by: 850144 on Apr 23, 2011 10:20 PM -
What if I exceed in 1000 maximum cycle count in my MBA battery?
thanks for the concern and help
To add to Joey's excellent response, a quote from Apple's support website:
http://support.apple.com/kb/ht1519
"Batteries have a limited amount of charge cycles before they are considered to be consumed. Once consumed, a replacement battery is recommended. You can use your battery after it reaches its maximum cycle count, but you may notice a reduction in your battery life. Knowing how many charge cycles are on your battery and how many are left can help you determine when a battery replacement is required. For optimal performance, replace your battery when you reach the maximum cycle count."
The cycle count is just there to determine warranty eligibility; batteries past the maximum cycle count for that model are ineligible for free replacement, regardless of whether they are covered by AppleCare or hardware warranty. -
Maximum open cursors exceeded and cqj0 trace
From this morning on the database is reporting the maximum open cursors exceeded in the cqj0 trace. When I see the alert log the error message appear again and again. I try to solve it by setting the open_cursor parameter but the problem do not disappear. I have an oracle rac database 11.1.0.7, OS is Suse Linux Enterprise 10. Also I have configured a local capture process in my database.
Thank you.Hi,
Please perfrom the following action plan
1)sql> show parameter cursor_sharing
2) generate the AWR report for the duration of 60min when you were getting the error and paste the contents of section
sql ordered by version count
Kind Regards,
Rakesh jayappa -
Maximum open cursors exceeded from Oracle XA Connection pool
I am on WLS 6.1 sp2.
When i leave the server up overnight unaccessed and come back and see in the morning,
I see the following stacktrace on the server console.
I dont think its causing any harm, but is there anyway to prevent this from occuring?
java.sql.SQLException: ORA-01000: maximum open cursors exceeded
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oopen.receive(Oopen.java:118)
at oracle.jdbc.ttc7.TTC7Protocol.open(TTC7Protocol.java:466)
at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:413)
at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:432)
at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:182)
at oracle.jdbc.driver.OracleCallableStatement.<init>(OracleCallableStatement.java:102)
at oracle.jdbc.driver.OracleCallableStatement.<init>(OracleCallableStatement.java:86)
at oracle.jdbc.driver.OracleConnection.privatePrepareCall(OracleConnection.java:736)
at oracle.jdbc.driver.OracleConnection.prepareCall(OracleConnection.java:622)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:163)
at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
at weblogic.transaction.internal.ServerResourceInfo.start(ServerResourceInfo.java:1032)
at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResourceInfo.java:975)
at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourceInfo.java:234)
at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:374)
at weblogic.jdbc.common.internal.ConnectionEnv.test(ConnectionEnv.java:937)
at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:465)
at weblogic.common.internal.ResourceAllocator.reserveUnused(ResourceAllocator.java:376)
at weblogic.common.internal.ResourceAllocator.trigger(ResourceAllocator.java:1103)
at weblogic.time.common.internal.ScheduledTrigger.executeLocally(ScheduledTrigger.java:238)
at weblogic.time.common.internal.ScheduledTrigger.execute(ScheduledTrigger.java:229)
at weblogic.time.server.ScheduledTrigger.execute(ScheduledTrigger.java:65)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)Hi. I think this is an oracle driver problem, in all likelihood.
We test a connection with:
Statement stmt = c.createStatement();
stmt.execute(sql);
Where the string sql is "select count(*) from DUAL" if you named your test table as 'DUAL'.
We obtain no result set, so the driver shouldn't be accruing cursors...
Can you upgrade to the latest oracle driver?
Can you upgrade to the latest version of 6.1?
Jeeva wrote:
I am on WLS 6.1 sp2.
When i leave the server up overnight unaccessed and come back and see in the morning,
I see the following stacktrace on the server console.
I dont think its causing any harm, but is there anyway to prevent this from occuring?
java.sql.SQLException: ORA-01000: maximum open cursors exceeded
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oopen.receive(Oopen.java:118)
at oracle.jdbc.ttc7.TTC7Protocol.open(TTC7Protocol.java:466)
at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:413)
at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:432)
at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:182)
at oracle.jdbc.driver.OracleCallableStatement.<init>(OracleCallableStatement.java:102)
at oracle.jdbc.driver.OracleCallableStatement.<init>(OracleCallableStatement.java:86)
at oracle.jdbc.driver.OracleConnection.privatePrepareCall(OracleConnection.java:736)
at oracle.jdbc.driver.OracleConnection.prepareCall(OracleConnection.java:622)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:163)
at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
at weblogic.transaction.internal.ServerResourceInfo.start(ServerResourceInfo.java:1032)
at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResourceInfo.java:975)
at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourceInfo.java:234)
at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:374)
at weblogic.jdbc.common.internal.ConnectionEnv.test(ConnectionEnv.java:937)
at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:465)
at weblogic.common.internal.ResourceAllocator.reserveUnused(ResourceAllocator.java:376)
at weblogic.common.internal.ResourceAllocator.trigger(ResourceAllocator.java:1103)
at weblogic.time.common.internal.ScheduledTrigger.executeLocally(ScheduledTrigger.java:238)
at weblogic.time.common.internal.ScheduledTrigger.execute(ScheduledTrigger.java:229)
at weblogic.time.server.ScheduledTrigger.execute(ScheduledTrigger.java:65)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) -
I am trying to deploy an RDL file (5MB) to SQL Azure Reporting server in South Central US using the deploy function in SQL Server Data Tools but facing the following error during deployment to Azure Reporting server.
"There was an exception running the extensions specified in the config file. ---> Maximum request length exceeded."
Is there any limit on the size of RDL files which can be deployed to Azure Reporting server? I have seen some online posts which talk about increasing the maxRequestLength in httpruntime of web.config in Reporting server. But in case of Azure Reporting server
how can be make modification to this configuration?
I have tried to upload it directly to SQL Azure Reporting server from the Management Portal --> Upload Report function which still resulted in error.
Thanks & Regards, DeepThanks for your question. Unfortunately we are in the process of deprecating SQL Reporting services. Full details are available at http://msdn.microsoft.com/en-us/library/gg430130.aspx
Thanks Guy -
Help needed, getting ORA-01000: maximum open cursors exceeded
CJ or anyone that may have come across this problem in the past, I hope that you may be able to help me
I am trying to implement a function from the Salesforce PHP tool kit that runs against a class that returns a object of ID's that have been updated in a given time frame.
This is a lot of code. I am sorry for that:
<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
//Keep the SOAP cache clean
ini_set("soap.wsdl_cache_enabled","0");
$delete_count = 0;
$oracle_deleted = 0;
//Setup array for local ID's'
$opportunity_data = array();
$deleted_data = array();
//start setup for PL SQL statement
$strsql = "begin mapsapp.sforce_opp_insert(";
$strsql .= ":pm_id,";
$strsql .= ":pm_accountid,";
$strsql .= ":pm_name,";
$strsql .= ":pm_description,";
$strsql .= ":pm_stagename,";
$strsql .= ":pm_amount,";
$strsql .= ":pm_probability,";
$strsql .= ":pm_expectedrevenue,";
$strsql .= ":pm_closedate,";
$strsql .= ":pm_type,";
$strsql .= ":pm_nextstep,";
$strsql .= ":pm_leadsource,";
$strsql .= ":pm_isclosed,";
$strsql .= ":pm_iswon,";
$strsql .= ":pm_forecastcategory,";
$strsql .= ":pm_campaignid,";
$strsql .= ":pm_hasopportunitylineitem,";
$strsql .= ":pm_pricebook2id,";
$strsql .= ":pm_ownerid,";
$strsql .= ":pm_createddate,";
$strsql .= ":pm_createdbyid,";
$strsql .= ":pm_lastmodifieddate,";
$strsql .= ":pm_lastmodifiedbyid,";
$strsql .= ":pm_systemmodstamp,";
$strsql .= ":pm_rsm_project_id_score__c,";
$strsql .= ":pm_lead_fae__c,";
$strsql .= ":pm_avg_annual_volume__c,";
$strsql .= ":pm_priority__c,";
$strsql .= ":pm_design_start_date__c,";
$strsql .= ":pm_design_proto_date__c,";
$strsql .= ":pm_production_years__c,";
$strsql .= ":pm_production_life_months__c,";
$strsql .= ":pm_production_months__c,";
$strsql .= ":pm_design_freeze_date__c,";
$strsql .= ":pm_production_proto_date__c,";
$strsql .= ":pm_mass_production_date__c,";
$strsql .= ":pm_fae_status__c,";
$strsql .= ":pm_fae_assigned_date__c,";
$strsql .= ":pm_fae_accepted_date__c,";
$strsql .= ":pm_potential__c,";
$strsql .= ":pm_fae_reject_reason__c,";
$strsql .= ":pm_fae_project_complexity__c,";
$strsql .= ":pm_design_phase__c,";
$strsql .= ":pm_maxim_id__c,";
$strsql .= ":pm_project_number__c,";
$strsql .= ":pm_active__c,";
$strsql .= ":pm_pivotal_created_by__c,";
$strsql .= ":pm_manufactured_by__c,";
$strsql .= ":pm_isdeleted,";
$strsql .= ":pm_lastactivitydate";
$strsql .= "); end;";
//end setup for PL SQL statement
//include common files
require_once ('/users/msimonds/public_html/includes/sfdc.inc');
include_once ('adodb.inc.php');
$db = ADONewConnection("oci8");
//connect to Oracle
$db->Connect('',"database_user","password","dev2");
//$db->BeginTrans();
$db->SetFetchMode(ADODB_FETCH_ASSOC);
if ($db)
try
//Set current time to get records from Salesforce
$currentTime = mktime();
// assume that update occured within the last 24 hrs.
$startTime = $currentTime - (60 * 60 * 36); //(seconds * minutes * hours)
$endTime = $currentTime;
echo "***** Get Updated Opportunities from the last 24 hours *****<br />";
$getUpdateddResponse = $client->getUpdated('Opportunity',$startTime,$endTime);
//$getUpdateddResponse->ids = "";
//echo '<pre>'.print_r($getUpdateddResponse,true).'</pre>';
//exit;
$opportunity_data = $getUpdateddResponse->ids;
if (is_array($opportunity_data) || is_object($opportunity_data))
set_time_limit(0);
ini_set("memory_limit","512M");
//copy data from Object to local array
//count the number of records coming in from Salesforce
$record_count = count($opportunity_data);
echo $record_count;
exit;
//echo '<pre>'.print_r($opportunity_data,true).'</pre>';
//exit;
//loop through the records
for ($i = 0; $i < $record_count; $i++)
$id = $opportunity_data[$i];
//SQL query for Salesforce
$soql = "Select Id, IsDeleted, AccountId, Name, Description, StageName, Amount, Probability, ExpectedRevenue, CloseDate, Type, NextStep, LeadSource, IsClosed, IsWon, ForecastCategory, CampaignId, HasOpportunityLineItem, Pricebook2Id, OwnerId, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp, LastActivityDate, RSM_Original_Project_ID_Score__c, Lead_FAE__c, Avg_Annual_Volume__c, Priority__c, Design_Start_Date__c, Design_Proto_Date__c, Production_Years__c, Production_Life_months__c, Production_Months__c, Design_Freeze_Date__c, Production_Proto_Date__c, Mass_Production_Date__c, FAE_Status__c, FAE_Assigned_Date__c, FAE_Accepted_Date__c, Project_Potential__c, FAE_Reject_Reason__c, FAE_Project_Complexity__c, Design_Phase__c, maxim_id__c, Project_Number__c, Active__c, Project_Comments__c, Pivotal_Created_By__c, Manufactured_By__c FROM Opportunity WHERE Id = '{$id}'";
//setup query to local Oracle MAPS database
$get_oracle_record = query_db($id,$db);
if ($get_oracle_record)
$sql = "DELETE FROM sforce_opportunity WHERE ID = '{$id}'";
if ($db->Execute($sql)) ;
$insert_records = get_records($client,$soql);
else
$insert_records = get_records($client,$soql);
foreach ($insert_records as $r)
$pass_this['id'] = $id;
$pass_this['accountid'] = (string )$r->fields->AccountId;
$pass_this['name'] = (string )$r->fields->Name;
$pass_this['description'] = (string )$r->fields->Description;
$pass_this['stagename'] = (string )$r->fields->StageName;
$pass_this['amount'] = (int)$r->fields->Amount;
$pass_this['probability'] = (int)$r->fields->Probability;
$pass_this['expectedrevenue'] = (int)$r->fields->ExpectedRevenue;
$pass_this['closedate'] = (string )$r->fields->CloseDate;
$pass_this['type'] = (string )$r->fields->Type;
$pass_this['nextstep'] = (string )$r->fields->NextStep;
$pass_this['leadsource'] = (string )$r->fields->LeadSource;
$pass_this['isclosed'] = (string )$r->fields->IsClosed;
$pass_this['iswon'] = (string )$r->fields->IsWon;
$pass_this['forecastcategory'] = (string )$r->fields->ForecastCategory;
$pass_this['campaignid'] = (string )$r->fields->CampaignId;
$pass_this['hasopportunitylineitem'] = (string )$r->fields->HasOpportunityLineItem;
$pass_this['pricebook2id'] = $r->fields->Pricebook2Id;
$pass_this['ownerid'] = $r->fields->OwnerId;
$pass_this['createddate'] = (string )$r->fields->CreatedDate;
$pass_this['createdbyid'] = (string )$r->fields->CreatedById;
$pass_this['lastmodifieddate'] = (string )$r->fields->LastModifiedDate;
$pass_this['lastmodifiedbyid'] = (string )$r->fields->LastModifiedById;
$pass_this['systemmodstamp'] = (string )$r->fields->SystemModstamp;
$pass_this['rsm_project_id_score__c'] = (int)$r->fields->RSM_Original_Project_ID_Score__c;
$pass_this['lead_fae__c'] = (string )$r->fields->Lead_FAE__c;
$pass_this['avg_annual_volume__c'] = (int)$r->fields->Avg_Annual_Volume__c;
$pass_this['priority__c'] = (string )$r->fields->Priority__c;
$pass_this['design_start_date__c'] = (string )$r->fields->Design_Start_Date__c;
$pass_this['design_proto_date__c'] = (string )$r->fields->Design_Proto_Date__c;
$pass_this['production_years__c'] = (int)$r->fields->Production_Years__c;
$pass_this['production_life_months__c'] = (int)$r->fields->Production_Life_months__c;
$pass_this['production_months__c'] = (int)$r->fields->Production_Months__c;
$pass_this['design_freeze_date__c'] = (string )$r->fields->Design_Freeze_Date__c;
$pass_this['production_proto_date__c'] = (string )$r->fields->Production_Proto_Date__c;
$pass_this['mass_production_date__c'] = (string )$r->fields->Mass_Production_Date__c;
$pass_this['fae_status__c'] = (string )$r->fields->FAE_Status__c;
$pass_this['fae_assigned_date__c'] = (string )$r->fields->FAE_Assigned_Date__c;
$pass_this['fae_accepted_date__c'] = (string )$r->fields->FAE_Accepted_Date__c;
$pass_this['project_potential__c'] = (int)$r->fields->Project_Potential__c;
$pass_this['fae_reject_reason__c'] = (string )$r->fields->FAE_Reject_Reason__c;
$pass_this['fae_project_complexity__c'] = (string )$r->fields->FAE_Project_Complexity__c;
$pass_this['design_phase__c'] = (string )$r->fields->Design_Phase__c;
$pass_this['maxim_id__c'] = (string )$r->fields->maxim_id__c;
$pass_this['objective_status_next_qtr__c'] = (string )$r->fields->Objective_Status_Next_Qtr__c;
$pass_this['quality_of_relationship__c'] = (string )$r->fields->Quality_of_Relationship__c;
$pass_this['targeted_po_date__c'] = (string )$r->fields->Targeted_PO_Date__c;
$pass_this['part_no_involved__c'] = (string )$r->fields->Part_No_Involved__c;
$pass_this['first_po_number__c'] = (string )$r->fields->First_PO_Number__c;
$pass_this['lost_reason__c'] = (string )$r->fields->Lost_Reason__c;
$pass_this['fae_estimate_of_business__c'] = (string )$r->fields->FAE_Estimate_of_Business__c;
$pass_this['digital_processor__c'] = (string )$r->fields->Digital_Processor__c;
$pass_this['project_number__c'] = (string )$r->fields->Project_Number__c;
$pass_this['active__c'] = (string )$r->fields->Active__c;
$pass_this['pivotal_created_by__c'] = (string )$r->fields->Pivotal_Created_By__c;
$pass_this['manufactured_by__c'] = (string )$r->fields->Manufactured_By__c;
$pass_this['isdeleted'] = (string )$r->fields->IsDeleted;
$pass_this['lastactivitydate'] = (string )$r->fields->LastActivityDate;
$pass_this['optocon_id__c'] = (string )$r->fields->OptoCon_ID__c;
if (strlen($pass_this['description']) == 0)
$pass_this['description'] = "No Description Posted";
else
$pass_this['description'] = $pass_this['description'];
//echo '<pre>'.print_r($pass_this,true).'</pre>';
//exit;
$record_inserted = insert_record($pass_this,$strsql,$db);
if (!$record_inserted)
//mail('[email protected]','insert error','There was a proble trying to insert a record into the database');
else
echo "Nothing here";
//exit;
//add back in once replication is done
//get deleted records from the Opportunity
$getDeletedResponse = $client->getDeleted('Opportunity',$startTime,$endTime);
//echo '<pre>'.print_r($getDeletedResponse,true).'</pre>';
//exit;
$deleted_ids = $getDeletedResponse->deletedRecords;
//echo '<pre>'.print_r($deleted_ids,true).'</pre>';
if (is_object($deleted_ids))
$temp_array[] = $deleted_ids;
unset($deleted_ids);
$deleted_ids = $temp_array;
$delete_count = count($deleted_ids);
//echo $delete_count;
for ($i = 0; $i < $delete_count; $i++)
$d_id = $deleted_ids[$i];
$id = $d_id->id;
if (query_db($id,$db))
$delete_sql = "Delete from sforce_opportunity WHERE ID = '{$id}'";
$oracle_deleted++;
if ($db->Execute($delete_sql))
echo "<font color=\"#0000FF\">".$id." was removed from the Oracle database</font><br />";
else
echo $id." is not in the Oracle database<br />";
echo $oracle_deleted." records were deleted from Oracle";
catch (exception $e)
$error = '<pre>'.print_r($e,true).'</pre>';
mail('[email protected]','insert error',$error);
$db->CommitTrans();
$db->Close();
exit;
function insert_record($pass_this,$strsql,&$db)
//Prepares PL/SQL Statement
$stmt = $db->Prepare($strsql);
$db->InParameter($stmt,$pass_this['id'],'pm_id');
$db->InParameter($stmt,$pass_this['accountid'],'pm_accountid');
$db->InParameter($stmt,$pass_this['name'],'pm_name');
$db->InParameter($stmt,$pass_this['description'],'pm_description',-1,OCI_B_CLOB);
$db->InParameter($stmt,$pass_this['stagename'],'pm_stagename');
$db->InParameter($stmt,$pass_this['amount'],'pm_amount');
$db->InParameter($stmt,$pass_this['probability'],'pm_probability');
$db->InParameter($stmt,$pass_this['expectedrevenue'],'pm_expectedrevenue');
$db->InParameter($stmt,$pass_this['closedate'],'pm_closedate');
$db->InParameter($stmt,$pass_this['type'],'pm_type');
$db->InParameter($stmt,$pass_this['nextstep'],'pm_nextstep');
$db->InParameter($stmt,$pass_this['leadsource'],'pm_leadsource');
$db->InParameter($stmt,$pass_this['isclosed'],'pm_isclosed');
$db->InParameter($stmt,$pass_this['iswon'],'pm_iswon');
$db->InParameter($stmt,$pass_this['forecastcategory'],'pm_forecastcategory');
$db->InParameter($stmt,$pass_this['campaignid'],'pm_campaignid');
$db->InParameter($stmt,$pass_this['hasopportunitylineitem'],'pm_hasopportunitylineitem');
$db->InParameter($stmt,$pass_this['pricebook2id'],'pm_pricebook2id');
$db->InParameter($stmt,$pass_this['ownerid'],'pm_ownerid');
$db->InParameter($stmt,$pass_this['createddate'],'pm_createddate');
$db->InParameter($stmt,$pass_this['createdbyid'],'pm_createdbyid');
$db->InParameter($stmt,$pass_this['lastmodifieddate'],'pm_lastmodifieddate');
$db->InParameter($stmt,$pass_this['lastmodifiedbyid'],'pm_lastmodifiedbyid');
$db->InParameter($stmt,$pass_this['systemmodstamp'],'pm_systemmodstamp');
$db->InParameter($stmt,$pass_this['rsm_project_id_score__c'],'pm_rsm_project_id_score__c');
$db->InParameter($stmt,$pass_this['lead_fae__c'],'pm_lead_fae__c');
$db->InParameter($stmt,$pass_this['avg_annual_volume__c'],'pm_avg_annual_volume__c');
$db->InParameter($stmt,$pass_this['priority__c'],'pm_priority__c');
$db->InParameter($stmt,$pass_this['design_start_date__c'],'pm_design_start_date__c');
$db->InParameter($stmt,$pass_this['design_proto_date__c'],'pm_design_proto_date__c');
$db->InParameter($stmt,$pass_this['production_years__c'],'pm_production_years__c');
$db->InParameter($stmt,$pass_this['production_life_months__c'],'pm_production_life_months__c');
$db->InParameter($stmt,$pass_this['production_months__c'],'pm_production_months__c');
$db->InParameter($stmt,$pass_this['design_freeze_date__c'],'pm_design_freeze_date__c');
$db->InParameter($stmt,$pass_this['production_proto_date__c'],'pm_production_proto_date__c');
$db->InParameter($stmt,$pass_this['mass_production_date__c'],'pm_mass_production_date__c');
$db->InParameter($stmt,$pass_this['fae_status__c'],'pm_fae_status__c');
$db->InParameter($stmt,$pass_this['fae_assigned_date__c'],'pm_fae_assigned_date__c');
$db->InParameter($stmt,$pass_this['fae_accepted_date__c'],'pm_fae_accepted_date__c');
$db->InParameter($stmt,$pass_this['project_potential__c'],'pm_potential__c');
$db->InParameter($stmt,$pass_this['fae_reject_reason__c'],'pm_fae_reject_reason__c');
$db->InParameter($stmt,$pass_this['fae_project_complexity__c'],'pm_fae_project_complexity__c');
$db->InParameter($stmt,$pass_this['design_phase__c'],'pm_design_phase__c');
$db->InParameter($stmt,$pass_this['maxim_id__c'],'pm_maxim_id__c');
$db->InParameter($stmt,$pass_this['project_number__c'],'pm_project_number__c');
$db->InParameter($stmt,$pass_this['active__c'],'pm_active__c');
$db->InParameter($stmt,$pass_this['pivotal_created_by__c'],'pm_pivotal_created_by__c');
$db->InParameter($stmt,$pass_this['manufactured_by__c'],'pm_manufactured_by__c');
$db->InParameter($stmt,$pass_this['isdeleted'],'pm_isdeleted');
$db->InParameter($stmt,$pass_this['lastactivitydate'],'pm_lastactivitydate');
//executes and loads data coming from salesforce into table
if ($db->Execute($stmt))
echo $pass_this['id']." was inserted into the database<br />";
flush();
unset($pass_this);
unset($stmt);
return true;
else
echo $db->ErrorMsg()."<br>";
mail('[email protected]','database error',$db->ErrorMsg());
return false;
//Get the data from Salesforce to populate Oracle
function get_records(&$connection,&$query)
$queryOptions = new QueryOptions(2000);
$response = new QueryResult($connection->query($query));
// if the size is zero, where done
if ($response->size > 0)
$products = $response->records;
// Cycles through additional responses if the number of records
// exceeds the batch size
while (!$response->done)
set_time_limit(100);
$response = $connection->queryMore($response->queryLocator);
$products = array_merge($products,$response->records);
return $products;
function query_db($id,&$db)
global $db;
$sql = "SELECT *
FROM sforce_opportunity
Where id = '{$id}'";
$rs = $db->Execute($sql);
if ($rs && $rs->_numOfRows > 0)
return true;
else
return false;
exit;
?>the code runs fine and I do not commit my inserts until after I am done retrieving all the records, but I am getting the oracle error: ORA-01000: maximum open cursors exceeded
I am not using any cursors in my PL SQL
CREATE OR REPLACE PROCEDURE MAPSAPP.sforce_opp_insert (
pm_id IN VARCHAR2,
pm_accountid IN VARCHAR2,
pm_name IN VARCHAR2,
pm_description IN VARCHAR2,
pm_stagename IN VARCHAR2,
pm_amount IN NUMBER,
pm_probability IN NUMBER,
pm_expectedrevenue IN NUMBER,
pm_closedate IN VARCHAR2,
pm_type IN VARCHAR2,
pm_nextstep IN VARCHAR2,
pm_leadsource IN VARCHAR2,
pm_isclosed IN VARCHAR2,
pm_iswon IN VARCHAR2,
pm_forecastcategory IN VARCHAR2,
pm_campaignid IN VARCHAR2,
pm_hasopportunitylineitem IN VARCHAR2,
pm_pricebook2id IN VARCHAR2,
pm_ownerid IN VARCHAR2,
pm_createddate IN VARCHAR2,
pm_createdbyid IN VARCHAR2,
pm_lastmodifieddate IN VARCHAR2,
pm_lastmodifiedbyid IN VARCHAR2,
pm_systemmodstamp IN VARCHAR2,
pm_rsm_project_id_score__c IN VARCHAR2,
pm_lead_fae__c IN VARCHAR2,
pm_avg_annual_volume__c IN VARCHAR2,
pm_priority__c IN VARCHAR2,
pm_design_start_date__c IN VARCHAR2,
pm_design_proto_date__c IN VARCHAR2,
pm_production_years__c IN NUMBER,
pm_production_life_months__c IN NUMBER,
pm_production_months__c IN NUMBER,
pm_design_freeze_date__c IN VARCHAR2,
pm_production_proto_date__c IN VARCHAR2,
pm_mass_production_date__c IN VARCHAR2,
pm_fae_status__c IN VARCHAR2,
pm_fae_assigned_date__c IN VARCHAR2,
pm_fae_accepted_date__c IN VARCHAR2,
pm_potential__c IN NUMBER,
pm_fae_reject_reason__c IN VARCHAR2,
pm_fae_project_complexity__c IN VARCHAR2,
pm_design_phase__c IN VARCHAR2,
pm_maxim_id__c IN VARCHAR2,
pm_project_number__c IN VARCHAR2,
pm_active__c IN VARCHAR2,
pm_pivotal_created_by__c IN VARCHAR2,
pm_manufactured_by__c IN VARCHAR2,
pm_isdeleted IN VARCHAR2,
pm_lastactivitydate IN VARCHAR2
IS
BEGIN
INSERT INTO SFORCE_OPPORTUNITY
(id,
accountid,
name,
description,
stagename,
amount,
probability,
expectedrevenue,
closedate,
type,
nextstep,
leadsource,
isclosed,
iswon,
forecastcategory,
campaignid,
hasopportunitylineitem,
pricebook2id,
ownerid,
createddate,
createdbyid,
lastmodifieddate,
lastmodifiedbyid,
systemmodstamp,
rsm_project_id_score__c,
lead_fae__c,
avg_annual_volume__c,
priority__c,
design_start_date__c,
design_proto_date__c,
production_years__c,
production_life_months__c,
production_months__c,
design_freeze_date__c,
production_proto_date__c,
mass_production_date__c,
fae_status__c,
fae_assigned_date__c,
fae_accepted_date__c,
project_potential__c,
fae_reject_reason__c,
fae_project_complexity__c,
design_phase__c,
maxim_id__c,
project_number__c,
active__c,
pivotal_created_by__c,
manufactured_by__c,
isdeleted,
lastactivitydate
VALUES (pm_id,
pm_accountid,
pm_name,
pm_description,
pm_stagename,
pm_amount,
pm_probability,
pm_expectedrevenue,
TO_DATE (SUBSTR (REPLACE (pm_closedate, 'T', ' '), 1, 19),'YYYY-MM-DD HH24:MI:SS'),
pm_type,
pm_nextstep,
pm_leadsource,
pm_isclosed,
pm_iswon,
pm_forecastcategory,
pm_campaignid,
pm_hasopportunitylineitem,
pm_pricebook2id,
pm_ownerid,
TO_DATE (SUBSTR (REPLACE (pm_createddate, 'T', ' '), 1, 19),'YYYY-MM-DD HH24:MI:SS'),
pm_createdbyid,
TO_DATE (SUBSTR (REPLACE (pm_lastmodifieddate, 'T', ' '), 1, 19),'YYYY-MM-DD HH24:MI:SS'),
pm_lastmodifiedbyid,
TO_DATE (SUBSTR (REPLACE (pm_systemmodstamp, 'T', ' '), 1, 19),'YYYY-MM-DD HH24:MI:SS'),
pm_rsm_project_id_score__c,
pm_lead_fae__c,
pm_avg_annual_volume__c,
pm_priority__c,
TO_DATE (SUBSTR (REPLACE (pm_design_start_date__c, 'T', ' '), 1, 19),'YYYY-MM-DD HH24:MI:SS'),
TO_DATE (SUBSTR (REPLACE (pm_design_proto_date__c, 'T', ' '), 1, 19),'YYYY-MM-DD HH24:MI:SS'),
pm_production_years__c,
pm_production_life_months__c,
pm_production_months__c,
TO_DATE (SUBSTR (REPLACE (pm_design_freeze_date__c, 'T', ' '), 1, 19),'YYYY-MM-DD HH24:MI:SS'),
TO_DATE (SUBSTR (REPLACE (pm_production_proto_date__c, 'T', ' '), 1, 19),'YYYY-MM-DD HH24:MI:SS'),
TO_DATE (SUBSTR (REPLACE (pm_mass_production_date__c, 'T', ' '), 1, 19),'YYYY-MM-DD HH24:MI:SS'),
pm_fae_status__c,
TO_DATE (SUBSTR (REPLACE (pm_fae_assigned_date__c, 'T', ' '), 1, 19),'YYYY-MM-DD HH24:MI:SS'),
TO_DATE (SUBSTR (REPLACE (pm_fae_accepted_date__c, 'T', ' '), 1, 19),'YYYY-MM-DD HH24:MI:SS'),
pm_potential__c,
pm_fae_reject_reason__c,
pm_fae_project_complexity__c,
pm_design_phase__c,
pm_maxim_id__c,
pm_project_number__c,
pm_active__c,
pm_pivotal_created_by__c,
pm_manufactured_by__c,
pm_isdeleted,
TO_DATE (SUBSTR (REPLACE (pm_lastactivitydate, 'T', ' '), 1, 19),'YYYY-MM-DD HH24:MI:SS')
END sforce_opp_insert;
/I was wondering anyone has seen this before
TIA,
MikeThe code below is deleting fine. Check your $id is valid. I wonder if ADOdb has some quirks with binding and variable creation/destruction, similar to #1 in http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#bindvars
<?php
See ADOdb Tutorial for Oracle: http://phplens.com/lens/adodb/docs-oracle.htm
drop table mytab;
create table mytab (city varchar2(20), country_id varchar2(20));
insert into mytab values ('SF', 'US');
insert into mytab values ('Sydney', 'AU');
insert into mytab values ('London', 'UK');
commit;
require_once("/home/cjones/public_html/php/adodb5/adodb.inc.php");
$db = ADONewConnection("oci8");
$db->Connect("//localhost/XE", "hr", "hrpwd");
echo "Before:\n";
$rs = $db->Execute("select city from mytab");
while ($arr = $rs->FetchRow()) {
echo $arr['CITY'] . "\n";
$s = $db->Prepare("delete from mytab where country_id = :ci");
$db->Parameter($s, $ci, 'ci');
foreach (array('US', 'AU') as $ci) {
$db->Execute($s);
echo "After:\n";
$rs = $db->Execute("select city from mytab");
while ($arr = $rs->FetchRow()) {
echo $arr['CITY'] . "\n";
?>There's another sample in the ADOdb OCI8 driver:
Usage:
$stmt = $DB->Prepare("insert into table (col0, col1, col2) values (:0, :1, :2)");
$DB->Bind($stmt, $p1);
$DB->Bind($stmt, $p2);
$DB->Bind($stmt, $p3);
for ($i = 0; $i < $max; $i++) {
$p1 = ?; $p2 = ?; $p3 = ?;
$DB->Execute($stmt);
}For queries I know this works. I haven't seen any examples that prepare once.
$rs = $db->Execute("select city from mytab where country_id = :ci", array('ci' => 'UK'));
while ($arr = $rs->FetchRow()) {
echo $arr['CITY'] . "<br>\n";
} -
How to find Maximum Record Count in a particular section
Hi ALL
My report has 3 detail sections. I am showing different set of data in each section.
Example:
Details a
Details b
Details c
In the Details c section I have 5 columns.
I want to find out MAXIMUM RECORD COUNT in only Details c.
Actually I have done a running total on column1 field which gives me the records number in that section only. But I am not able to find the MAXIMUM record count.
Rtotal Colum1 Column 2 Column3
1 Data1 Data2 Data3
2 Data1 Data2 Data3
3 Data1 Data2 Data3
4 Data1 Data2 Data3
Now I need the Maximum record count=4
Thanks.If I have understood correctly you want to count the amount of records in each section.
In this case, go to "Insert > Summary", choose your ID field, and choose "Count" in "Calculate this summary:". You can put the summary in your group footer.
If you want the maximum (the highest number value in that column), you can choose "Maximum" instead of "Count". -
Windows service, error Maximum request length exceeded
What is causing this error, from the windows service?
There was an exception running the extensions specified in the config file. ---> Maximum request length exceededHi Nick,
Per my understanding you got this error "Maximum request length exceeded" about your reporting services, right?
It seems the issue is caused by the request reach the max length.
To solve the issue, please made the changes in web.config of both the Report Server and the Report Manager:
<httpRuntime executionTimeout = "9000" maxRequestLength=" 2097151" />
If the solution above does not help, please post the error logs of the Report Server. The error logs will help us more about troubleshooting and also provide us details information about what actions you are doing when causing this error.
We can get the logs from:
<Install Driver>:\Program Files\Microsoft SQL Server\MSSQL.<X>\Reporting Services\LogFiles
Please feel free to ask, if you have any more questions.
Regards
Vicky Liu -
ORA-01000: maximum open cursors exceeded ORA-06512
Hi,
An exception error ccurred as below while trying to map a column.
Exception oracle.apps.bne.exception.BneSQLException: SQL Exception in BneFlex.validateSegs: java.sql.SQLException: ORA-01000: maximum open cursors exceeded ORA-06512: at "APPS.FND_MESSAGE", line 525 ORA-06512: at "APPS.FND_MESSAGE", line 565 ORA-06512: at "APPS.FND_MESSAGE", line 654 ORA-06512: at "APPS.FND_MESSAGE", line 766 ORA-06512: at "APPS.FND_MESSAGE", line 741 ORA-06512: at "APPS.FND_FLEX_KEYVAL", line 324 ORA-06512: at line 1 occurred trying to map column: Expense Account.
In alert log file:
Errors in file /vol01/oracle/SIT/db/tech_st/10.2.0/admin/SIT_sit/udump/sit_ora_7
04744.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
ORA-00604: error occurred at recursive SQL level 1
ORA-01000: maximum open cursors exceeded
ORA-01000: maximum open cursors exceeded
Thanks
Edited by: userpat on Aug 15, 2010 5:32 AMHi,
The issue is different this time after restarting application and database find below.
An exception occured trying to map a column
Exception java.lang.ArrayIndexOutOfBoundsException:Array index out of range:1
occured trying to map column:Category
in bne.log
8/18/10 12:08 PM AJPRequestHandler-ApplicationServerThread-2 ERROR BneP
arentMenuResolver.getMenuItem() MENU 101:BUDGET_NOTE - Menu item excluded becaus
e IntegratorAppId and Code does not match that of the Top-Most Menu Item or curr
ent Integrator: 140:FA_MASS_ADDITIONSThe same error is reported in Note: 954462.1 (which is referenced above).
And also let me clear one doubt. v$open_cursors view is used for what?. The total number of count v$open_cursors is 60,000 whereas the parameter is defined only 2000 in the Instance.Cursors Remain Open (in V$OPEN_CURSOR View) after being Closed [ID 1020427.102]
Monitoring Open Cursors & Troubleshooting ORA-1000 Errors [ID 76684.1]
V$OPEN_CURSOR
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2008.htm#REFRN30166
Thanks,
Hussein -
JDBC Error: ORA-01000: maximum open cursors exceeded
Post Author: prashant
CA Forum: Information OnDemand
I successfully created reports using CR4E on windows, deployed JSPS to Websphere running on windows and was able to view a large reports for a using JNDI connection resources to Oracle 10g.
Every time report is called, it consume 12 cursors from of the database. Open_cursors count is 300. After 24 or 25 iteration of this report, it throws ORA-01000: maximum open cursors exceeded error.
Has anyone seen this problem, and if so where can I find a hot fix/patch. Any help would very much be appreciated.The following code reproduces the problem for me. I thought this was just related to when an exception occurs, and close occurs immediately afterwards. Close finds the exception that occured, and throws it without releasing the resources.
It's a pain in the ass, that's for sure.
public void go() {
try{
long startTime = System.currentTimeMillis();
String sql = "Select number_7_0__, char_10__, varchar_5__, varchar2_10__, number_10_5__, float_126__, date_, clob_, blob_ FROM lotsofrows";
Properties connectProps = new Properties();
Driver drv = new oracle.jdbc.driver.OracleDriver();
connectProps.put("user", "borg");
connectProps.put("catalog", "test");
connectProps.put("password", "borgborg");
Connection conn = drv.connect("jdbc:oracle:thin:@142.176.134.166:1521:test", connectProps);
int cnt = 0;
while (true) {
try {
System.out.print("\nTest " + ++cnt + " ");
Statement stmt = conn.createStatement();
System.out.print("execute ");
ResultSet rs = stmt.executeQuery(sql);
System.out.print("cancel ");
stmt.cancel();
try {
System.out.print("close.");
stmt.close();
} catch (SQLException se) {
if (se.getMessage().indexOf("requested cancel") != -1) {
System.out.print("URC:Close");
try {
stmt.close();
} catch (Exception ee) {
System.out.println(ee.getMessage());
ee.printStackTrace();
} else {
throw se;
stmt = null;
}catch(Exception se) {
System.out.println(se.getMessage());
se.printStackTrace();
}catch(Exception e) {
System.out.println(e.getMessage());
e.printStackTrace();
null -
IO Exception: Lock timeout exceeded for documents , wait time = 60014
Hi,
We are getting an error while uploading any document on portal in KM content area. The full error details as follows
#D27E2001B003002500000D210005D0D20004520E6FF2B6FB#1216121868039#com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager#sap.com/irj#com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager#BMERRON#71986##<host name>_7664450#BMERRON#3f730c80526211ddb0fcd27e2001b003#SAPEngine_Application_Thread[impl:3]_4##0#0#Error##Plain###error while handling event - com.sapportals.wcm.WcmException: IO Exception: Lock timeout exceeded for <documents>, wait time = 60006
at com.sapportals.wcm.repository.service.appproperties.PropertiesService.setProperty(PropertiesService.java:984)
at com.sapportals.wcm.repository.service.appproperties.PropertiesService.setProperty(PropertiesService.java:1203)
at com.sapportals.wcm.repository.service.appproperties.PropertiesManager.setProperty(PropertiesManager.java:176)
at com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager.updateLastReadDate(AccessStatisticManager.java:177)
at com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager.received(AccessStatisticManager.java:253)
at com.sapportals.wcm.util.events.ReceiverEntry.doSend(ReceiverEntry.java:223)
at com.sapportals.wcm.util.events.EventBroker.send(EventBroker.java:86)
at com.sapportals.wcm.util.events.TransactionalEventBroker.send(TransactionalEventBroker.java:56)
at com.sapportals.wcm.repository.manager.ResourceEventBroker.send(ResourceEventBroker.java:219)
at com.sapportals.wcm.repository.manager.AbstractRepositoryManager.sendEvent(AbstractRepositoryManager.java:322)
at com.sapportals.wcm.repository.RMAdapter.sendEvent(RMAdapter.java:342)
at com.sapportals.wcm.repository.ResourceImpl.sendEvent(ResourceImpl.java:4206)
at com.sapportals.wcm.repository.ContentImpl.getInputStream(ContentImpl.java:119)
at com.sapportals.wcm.repository.ContentImpl.getInputStream(ContentImpl.java:132)
at com.sapportals.wcm.service.xmlforms.transformation.ResourceDemultiplexer.getContentStream(ResourceDemultiplexer.java:71)
at com.sapportals.wcm.service.xmlforms.transformation.Transformation.render(Transformation.java:209)
at com.sapportals.wcm.app.xmlforms.PreviewServlet.sendForm(PreviewServlet.java:165)
at com.sapportals.wcm.app.xmlforms.PreviewServlet.doGetAction(PreviewServlet.java:130)
at com.sapportals.wcm.app.xmlforms.XFBaseServlet.doGet(XFBaseServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sapportals.wcm.app.xmlforms.XFBaseServlet.service(XFBaseServlet.java:134)
at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:333)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sapportals.portal.prt.core.broker.ServletComponentItem$ServletWrapperComponent.doContent(ServletComponentItem.java:110)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:215)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Any Help?
Regards,
SreeHi sreedhar Gunda,
Check whether the repositories are in active and running mode or not. If they are running fine. then check the authorization is sufficient from BASIS people.
points if useful
Thanks
Suresh
Maybe you are looking for
-
How to embed unicode fonts in fillable form.
Hello friends, I had created a normal unicode Pdf form. IT shows perfectly. But when i make this form as a fillable pdf the unicode charaters converts into junk and the form is become unreadable. Attached here a normal unicode pdf form. As well as fo
-
Some Issues noted with my AC 10 SP7
Hello All, I have been testing my AC 10.0 with my end users and we have come upon couple of issues.I just wanted to share to see if anyone else is facing the same issue and how they have fixed them or have solutions(suggestions) to help fix these. 1.
-
Organization O 50000716 is not a purchasing group; inform system administra
Dear Expert, Need your help, we using SRM 7 with extended classic scenario, we use workflow for PO with 3 levelling (if the value of po more than 200 million Rp). now, there is no problem when we approve this po for approver 1 and approver 2. but whe
-
Automatic Settlement rule derivation in IP50
Hi All, In IP50, Service Plan has been created with reference to Contract. How can the settlement profile be derived automatically? I have used order type SM01. For that order type, default settlement receiver is Sales document item. I have not relea
-
I think I used Disk Utility on this flash drive before and know it won't show that it's a flash drive, my other flash drives still show up as flash drives so is there anyway to fix this? I'm on Mac OS X 10.9.3.