ORA-01003: no statement parsed
Hi,
There is a set of 9 procedure that runs for every 1 hour. Most of these procedures references remote databases via dblink. Most of the times everything runs fine without error. But occasionally one procedure fails with the error "1003 -ERROR- ORA-01003: no statement parsed". This doesnot occur always but doesnot seems to be following any pattern on its failure which puts us in hard time to find the problem.
Any suggestions at earliest are highly appreciable.
Thanks
There are 9 procedures that ran in this cron job. Almost all the procedures have got db link connection to the remote database and most of the time we get this error only specific to 3 procedures. So my guess is that the communication is fine. LDAP is been used for connection.
Similar Messages
-
Error:ORA-01003: no statement parsed
Hi,
While clicking on details button of customized form it's give below error:
1)Error:
ORA-01003: no statement parsed
Details..:
ORA-01003: no statement parsed
FRM-407535: ON-UPDATE trigger raised unhandled exception ORA-04098
FND_FORMS_ERROR_MSG(ERRNO=4098) (REASON=ORA-01003: no statement parsed)
2)Error:
APP-FND-01388: Cannot read value for profile option
FND_LOOK_AND_FEEL in routine & ROUTINE..
Details..
Message History
APP-FND-01388: Cannot read value for profile option FND_LOOK_AND_FEEL in routine &ROUTINE.
APP-FND-01388: Cannot read value for profile option FND_COLOR_SCHEME in routine &ROUTINE.
APP-FND-01388: Cannot read value for profile option FND_INDICATOR_COLORS in routine &ROUTINE.
ORA-01003: no statement parsed
Please help me how to sort out the problem.
Thanks
Regards
GSMWas this working before? If yes, any changes have been done recently?
Did you compile the form successfully at the client side before uploading it to the server?
Did you use the TEMPLATE.fmb file to create this custom form?
Not sure what is the code you are using in that form, so posting it may help -- OERR: ORA 1003 no statement parsed [ID 18594.1]
Thanks,
Hussein -
RE: Getting ORA-01003: no statement parsed error
Hi,
It looks familiar to some of the error which I encountered before. The
situation was a for ... select loop without explicit begin/end transaction.
The reason given by Forte consultant is that:
The dbsession used by the for ... select loop needed to be locked by a
begin/end transaction otherwise, there may be chances that the dbsession is
being acquired by some other sql that unknowingly corrupted the cursor
implicitly built for that for ... select loop.
Hopes this help.
Regards,
Peter Sham.
-----Original Message-----
From: Robinson, Richard [SMTP:[email protected]]
Sent: Friday, April 16, 1999 12:12 AM
To: '[email protected]'
Subject: Getting ORA-01003: no statement parsed error
Any clues? We're getting the following error on a server side
object that
interfaces to Oracle:
SYSTEM ERROR: Select failed for SQL statement in project xxxx, class
yyy,
method ...
error from database is: ORA-01003:no statement parsed
Class: qqdb_ResourceException
Detected at: qqdb_OracleVendorInfo::DoOexfet
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Somebody asked nearly the same question Re: EMERGENCY! pl/sql syntax error!!!
-
Fail:ORA-01003: no statement parsed
Hi
I am using Oracle 10g.
Insert statement raises exception sometimes:" ORA-01003:no statement parsed. "
I tested it several times, it works well,and chedk the log data too.
Everything is looks just OK, but sometimes it happend.
I don't know why?
Can somebody help please?People might consider seeing your insert statement and the table structure where you want to insert.
http://ora-01003.ora-code.com/ -
ORA-01003: no statement parsed (APEX 3.1)
I am adding one report to already created application with SYS used as Parsing Schema, but getting error ORA-01003: no statement parsed.
However with older HTMLDB version it is working fine. Does anybody knows how to deal with this problem,
Thanks and Regards
Lalit VermaHello Scott,
Following are the steps i did, please check and advise me what i am doing wrong !
DB Version=10.2.0.1.0, APEX VERSION=Application Express 3.1.0.00.32
(1) Wokspace Monitor is created with monitor as default schema
(2) Schema SYS and SYSTEM were associated with Monitor workspace by using Workspace to Schema Assignments.
(3) Aftter logging to workspace monitor as ADMIN, i started Application Builder to create new application from scratch, using monitor schema , and added a blank page into the application. Rest i chose defaults.
(4) Then i went to Shared Components => Applicaiton => Definition.
In the "Parsing Schema" selection box i chose SYS and applied changes.
(5) Now i logged out and login to the workspace monitor as ADMIN again. I started Applicaiton Builder => Create Page => Report => SQL Report => Defaults Selected => Defaults Selected => select * from v$instance
After i put the sql query and click next , it is throwing me error "Query cannot be parsed, please check the syntax of your query. ()"
In the sql workshop if i try to run it , gave me error "ORA-01003: no statement parsed"
I am using SYS as Parsing Schema , still it is giving me this error.
However in older HTML DB version which is 10gHTMLDB 1.6.1.00.03
DB Version=11g , which is working fine if i carry out above tasks.
Sorry for not being short, but i did'nt wanted to skip any information. Thanks again for responding back !!
Lalit Verma -
ORA-00604: error occurred at recursive SQL level 1 ORA-01003: no statement
Hi ,
we pass Query to ref cursor using with clause and it works fine on oracle Sql but raise an error when called from
ADO.net
for example
create or replace package body abc_details
as
proedure initial (p_refcursor out sys_refcursor)
is
begin
v_sql='with a as (select ..
, b as (select * from table(emppkg.empdetails))
open p_refcursor for v_sql;
end;
with oracle 10g it works fine on Sql prompt and fetches the results but when called from ado.net it
intermitantly fetches and error "ORA-00604: error occurred at recursive SQL level 1 ORA-01003: no statement "
Please suggest
Thanks in advance.wild guess here,
but emppkg.empdetails type look's like a pl/sql type,
while it should be a sql type.
Amiel -
Exc– ORA-00604: error occurred at recursive SQL level 1 ORA-01003;No Stat P
I am getting above mentioned error when calling the below procedure. Please guide me
procedure xyz(P_ROTATION_NO ,
P_VESL_NO ,
P_VESL_NAME ,
P_CM_REGN_NO ,
P_FINAL_CLOSE_STA ,
P_FROM_REG_DATE ,
P_TO_REG_DATE ,
P_FROM_ARRIVAL_DATE,
P_TO_ARRIVAL_DATE,
P_RESULT_LIST OUT SYS_REFCURSOR,
P_TOTAL_LENGTH OUT NUMBER,
P_ERROR_MESSAGE OUT VARCHAR2) AS
lv_sql1 VARCHAR2(5000);
lv_sql2 VARCHAR2(5000);
lv_whereClause VARCHAR2(5000);
BEGIN
pv_text := NULL;
lv_whereClause := ' WHERE GVM.VESL_MASTER_NUM =GVR.VESL_MASTER_NUM '||
' AND GVR.ROTATION_NO(+) = GVCH.ROTATION_NO '||
' AND GVCH.ROTATION_NO LIKE NVL(''%''||:P_ROTATION_NO|| ''%'' '||
' ,GVCH.ROTATION_NO '||
' ) '||
' AND GVR.CM_REGN_NO LIKE NVL(''%''||:P_CM_REGN_NO|| ''%'' '||
' ,GVR.CM_REGN_NO '||
' ) '||
' AND GVM.VESL_NAME LIKE NVL(''%''||:P_VESL_NAME|| ''%'' '||
' ,GVM.VESL_NAME '||
' ) '||
' AND GVM.VESL_NO LIKE NVL(''%''||:P_VESL_NO|| ''%'' '||
' ,GVM.VESL_NO '||
' ) '||
' AND GVCH.FINAL_CLOSE_STA LIKE NVL(''%''||:P_FINAL_CLOSE_STA|| ''%'' '||
' ,GVCH.FINAL_CLOSE_STA '||
' ) '||
' AND TO_CHAR(GVCH.CREATED_DATE, ''DD/MM/YYYY'') >= '||
' NVL(TO_CHAR(:P_FROM_REG_DATE, ''DD/MM/YYYY'') '||
' ,GVCH.CREATED_DATE '||
' ) '||
' AND TO_CHAR(GVCH.CREATED_DATE, ''DD/MM/YYYY'') <= '||
' NVL(TO_CHAR(:P_TO_REG_DATE, ''DD/MM/YYYY'') '||
' ,GVCH.CREATED_DATE '||
' ) '||
' AND TO_CHAR(GVR.ARRIVAL_DATE, ''DD/MM/YYYY'') <= '||
' NVL(TO_CHAR(:P_FROM_ARRIVAL_DATE, ''DD/MM/YYYY'') '||
' ,GVR.CREATED_DATE '||
' ) '||
' AND TO_CHAR(GVR.ARRIVAL_DATE, ''DD/MM/YYYY'') <= '||
' NVL(TO_CHAR(:P_TO_ARRIVAL_DATE, ''DD/MM/YYYY'') '||
' ,GVR.CREATED_DATE '||
' ) '||
' AND GVM.IS_VALID = 1 '||
' AND GVCH.IS_VALID = 1 '||
' AND GVR.IS_VLAID = 1';
lv_sql1 := 'SELECT COUNT(gvr.rotation_no)
FROM gch_vsl_close_hdr gvch,
gch_vsl_master gvm,
gch_vsl_regn gvr '|| lv_whereClause;
lv_sql2 := ' SELECT gvch.close_hdr_id,
gvch.rotation_no
gvr.cm_regn_no,
gvm.vesl_no,
gvm.vesl_name,
gvch.final_close_sta,
gvr.arrival_date,
gvch.close_date,
gvr.created_date
FROM gch_vsl_close_hdr gvch,
gch_vsl_master gvm,
gch_vsl_regn gvr '|| lv_whereClause ||' ORDER BY gvch.rotation_no';
EXECUTE IMMEDIATE lv_sql1 INTO P_TOTAL_LENGTH
USING P_ROTATION_NO,P_CM_REGN_NO,P_VESL_NAME,P_VESL_NO,P_FINAL_CLOSE_STA,P_FROM_REG_DATE, P_TO_REG_DATE, P_FROM_ARRIVAL_DATE, P_TO_ARRIVAL_DATE;
OPEN P_RESULT_LIST FOR lv_sql2
USING P_ROTATION_NO,P_CM_REGN_NO,P_VESL_NAME,P_VESL_NO,P_FINAL_CLOSE_STA,P_FROM_REG_DATE, P_TO_REG_DATE, P_FROM_ARRIVAL_DATE, P_TO_ARRIVAL_DATE;
Edited by: YKING on Apr 10, 2012 1:20 PMYKING wrote:
Please tell me without dynamic query, how to simplify the codeHello
Something like this (note this is not tested as I don't have your tables or data)...
create or replace procedure xyz_1(P_ROTATION_NO NUMBER,
P_VESL_NO NUMBER,
P_VESL_NAME VARCHAR2,
P_CM_REGN_NO NUMBER,
P_FINAL_CLOSE_STA VARCHAR2,
P_FROM_REG_DATE DATE,
P_TO_REG_DATE DATE,
P_FROM_ARRIVAL_DATE DATE,
P_TO_ARRIVAL_DATE DATE,
P_RESULT_LIST OUT SYS_REFCURSOR,
P_TOTAL_LENGTH OUT NUMBER,
P_ERROR_MESSAGE OUT VARCHAR2) AS
BEGIN
SELECT COUNT(gvr.rotation_no)
INTO P_TOTAL_LENGTH
FROM gch_vsl_close_hdr gvch, gch_vsl_master gvm, gch_vsl_regn gvr
WHERE gvm.vesl_master_num = gvr.vesl_master_num
AND gvr.rotation_no(+) = gvch.rotation_no
AND gvch.rotation_no LIKE nvl('%' || p_rotation_no || '%', gvch.rotation_no)
AND gvr.cm_regn_no LIKE nvl('%' || p_cm_regn_no || '%', gvr.cm_regn_no)
AND gvm.vesl_name LIKE nvl('%' || p_vesl_name || '%', gvm.vesl_name)
AND gvm.vesl_no LIKE nvl('%' || p_vesl_no || '%', gvm.vesl_no)
AND gvch.final_close_sta LIKE nvl('%' || p_final_close_sta || '%', gvch.final_close_sta)
AND gvch.created_date >= nvl(p_from_reg_date, gvch.created_date)
AND gvch.created_date <= nvl(p_to_reg_date, gvch.created_date)
AND gvr.arrival_date <= nvl(p_from_arrival_date, gvr.created_date)
AND gvr.arrival_date <= nvl(p_to_arrival_date, gvr.created_date)
AND gvm.is_valid = 1
AND gvch.is_valid = 1
AND gvr.is_vlaid = 1;
OPEN P_RESULT_LIST FOR
SELECT gvch.close_hdr_id,
gvch.rotation_no gvr.cm_regn_no,
gvm.vesl_no,
gvm.vesl_name,
gvch.final_close_sta,
gvr.arrival_date,
gvch.close_date,
gvr.created_date
FROM gch_vsl_close_hdr gvch, gch_vsl_master gvm, gch_vsl_regn gvr
WHERE gvm.vesl_master_num = gvr.vesl_master_num
AND gvr.rotation_no(+) = gvch.rotation_no
AND gvch.rotation_no LIKE nvl('%' || p_rotation_no || '%', gvch.rotation_no)
AND gvr.cm_regn_no LIKE nvl('%' || p_cm_regn_no || '%', gvr.cm_regn_no)
AND gvm.vesl_name LIKE nvl('%' || p_vesl_name || '%', gvm.vesl_name)
AND gvm.vesl_no LIKE nvl('%' || p_vesl_no || '%', gvm.vesl_no)
AND gvch.final_close_sta LIKE nvl('%' || p_final_close_sta || '%', gvch.final_close_sta)
AND gvch.created_date >= nvl(p_from_reg_date, gvch.created_date)
AND gvch.created_date <= nvl(p_to_reg_date, gvch.created_date)
AND gvr.arrival_date <= nvl(p_from_arrival_date, gvr.created_date)
AND gvr.arrival_date <= nvl(p_to_arrival_date, gvr.created_date)
AND gvm.is_valid = 1
AND gvch.is_valid = 1
AND gvr.is_vlaid = 1
ORDER BY gvch.rotation_no;
END;Although it would be possibly to send p_total_length back as a column in the query...that way you wouldn't get any read consistency issues between the two statements....
create or replace procedure xyz_1(P_ROTATION_NO NUMBER,
P_VESL_NO NUMBER,
P_VESL_NAME VARCHAR2,
P_CM_REGN_NO NUMBER,
P_FINAL_CLOSE_STA VARCHAR2,
P_FROM_REG_DATE DATE,
P_TO_REG_DATE DATE,
P_FROM_ARRIVAL_DATE DATE,
P_TO_ARRIVAL_DATE DATE,
P_RESULT_LIST OUT SYS_REFCURSOR
) AS
BEGIN
OPEN P_RESULT_LIST FOR
SELECT gvch.close_hdr_id,
gvch.rotation_no gvr.cm_regn_no,
gvm.vesl_no,
gvm.vesl_name,
gvch.final_close_sta,
gvr.arrival_date,
gvch.close_date,
gvr.created_date,
COUNT(gvr.rotation_no) OVER() total_length
FROM gch_vsl_close_hdr gvch, gch_vsl_master gvm, gch_vsl_regn gvr
WHERE gvm.vesl_master_num = gvr.vesl_master_num
AND gvr.rotation_no(+) = gvch.rotation_no
AND gvch.rotation_no LIKE nvl('%' || p_rotation_no || '%', gvch.rotation_no)
AND gvr.cm_regn_no LIKE nvl('%' || p_cm_regn_no || '%', gvr.cm_regn_no)
AND gvm.vesl_name LIKE nvl('%' || p_vesl_name || '%', gvm.vesl_name)
AND gvm.vesl_no LIKE nvl('%' || p_vesl_no || '%', gvm.vesl_no)
AND gvch.final_close_sta LIKE nvl('%' || p_final_close_sta || '%', gvch.final_close_sta)
AND gvch.created_date >= nvl(p_from_reg_date, gvch.created_date)
AND gvch.created_date <= nvl(p_to_reg_date, gvch.created_date)
AND gvr.arrival_date <= nvl(p_from_arrival_date, gvr.created_date)
AND gvr.arrival_date <= nvl(p_to_arrival_date, gvr.created_date)
AND gvm.is_valid = 1
AND gvch.is_valid = 1
AND gvr.is_vlaid = 1
ORDER BY gvch.rotation_no;
END;And there's no need to pass an error message back, just use the exception system to propagate exceptions back to the caller.
HTH
David -
ORA-01003 Error from jbpm/hibernate
We are using the JBoss jbpm workflow solution which uses hibernate as the persistence API. Intermittently we are getting failures when it is trying to insert into the jbpm_log table. Looking at low level jdbc logging it appears to be constructing prepared statements correctly and binding variables. Is it possible for this error to be caused by memory issues on the database server side eg lack of free space in shared pool ?
Extract of server log below:-
DEBUG - 2007-04-02 13:46:05,003 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (closePreparedStatement:470) - closing statement
DEBUG - 2007-04-02 13:46:05,004 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.ConnectionManager (aggressiveRelease:305) - aggressively releasing JDBC connection
DEBUG - 2007-04-02 13:46:05,005 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.ConnectionManager (closeConnection:342) - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
DEBUG - 2007-04-02 13:46:05,006 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (logOpenPreparedStatement:311) - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
DEBUG - 2007-04-02 13:46:05,007 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.ConnectionManager (openConnection:322) - opening JDBC connection
DEBUG - 2007-04-02 13:46:05,008 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] hibernate.SQL (log:346) - insert into JBPM_LOG (INDEX_, DATE_, TOKEN_, PARENT_, TRANSITION_, SOURCENODE_, DESTINATIONNODE_, CLASS_, ID_) values (?, ?, ?, ?, ?, ?, ?, 'T', ?)
DEBUG - 2007-04-02 13:46:05,010 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (getPreparedStatement:424) - preparing statement
DEBUG - 2007-04-02 13:46:05,011 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] entity.AbstractEntityPersister (dehydrate:1821) - Dehydrating entity: [org.jbpm.graph.log.TransitionLog#1419786]
DEBUG - 2007-04-02 13:46:05,012 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (addToBatch:28) - Adding to batch
DEBUG - 2007-04-02 13:46:05,013 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] entity.AbstractEntityPersister (insert:2034) - Inserting entity: [org.jbpm.graph.log.ActionLog#1419787]
DEBUG - 2007-04-02 13:46:05,014 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (doExecuteBatch:55) - Executing batch size: 1
DEBUG - 2007-04-02 13:46:05,017 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (checkRowCount:85) - success of batch update unknown: 0
DEBUG - 2007-04-02 13:46:05,018 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (logClosePreparedStatement:319) - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
DEBUG - 2007-04-02 13:46:05,020 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (closePreparedStatement:470) - closing statement
DEBUG - 2007-04-02 13:46:05,021 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.ConnectionManager (aggressiveRelease:305) - aggressively releasing JDBC connection
DEBUG - 2007-04-02 13:46:05,022 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.ConnectionManager (closeConnection:342) - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
DEBUG - 2007-04-02 13:46:05,023 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (logOpenPreparedStatement:311) - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
DEBUG - 2007-04-02 13:46:05,024 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.ConnectionManager (openConnection:322) - opening JDBC connection
DEBUG - 2007-04-02 13:46:05,025 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] hibernate.SQL (log:346) - insert into JBPM_LOG (INDEX_, DATE_, TOKEN_, PARENT_, EXCEPTION_, ACTION_, CLASS_, ID_) values (?, ?, ?, ?, ?, ?, 'A', ?)
DEBUG - 2007-04-02 13:46:05,026 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (getPreparedStatement:424) - preparing statement
DEBUG - 2007-04-02 13:46:05,027 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] entity.AbstractEntityPersister (dehydrate:1821) - Dehydrating entity: [org.jbpm.graph.log.ActionLog#1419787]
DEBUG - 2007-04-02 13:46:05,028 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (addToBatch:28) - Adding to batch
DEBUG - 2007-04-02 13:46:05,030 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] entity.AbstractEntityPersister (insert:2034) - Inserting entity: [org.jbpm.taskmgmt.log.TaskCreateLog#1419788]
DEBUG - 2007-04-02 13:46:05,031 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (doExecuteBatch:55) - Executing batch size: 1
DEBUG - 2007-04-02 13:46:05,126 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (logClosePreparedStatement:319) - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
DEBUG - 2007-04-02 13:46:05,127 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.AbstractBatcher (closePreparedStatement:470) - closing statement
DEBUG - 2007-04-02 13:46:05,129 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.ConnectionManager (aggressiveRelease:305) - aggressively releasing JDBC connection
DEBUG - 2007-04-02 13:46:05,130 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] jdbc.ConnectionManager (closeConnection:342) - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
DEBUG - 2007-04-02 13:46:05,132 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] util.JDBCExceptionReporter (logExceptions:63) - Could not execute JDBC batch update [insert into JBPM_LOG (INDEX_, DATE_, TOKEN_, PARENT_, EXCEPTION_, ACTION_, CLASS_, ID_) values (?, ?, ?, ?, ?, ?, 'A', ?)]
java.sql.BatchUpdateException: ORA-01003: no statement parsed
at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:367)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:9040)
at weblogic.jdbc.wrapper.PreparedStatement.executeBatch(PreparedStatement.java:157)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:91)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:86)
at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:171)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2048)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2427)
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:51)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:296)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1007)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:354)
at org.hibernate.transaction.JTATransaction.commit(JTATransaction.java:135)
at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:161)
at org.jbpm.svc.Services.close(Services.java:211)
at org.jbpm.JbpmContext.close(JbpmContext.java:138)Hi Joe, Thanks for your quick response. I have sent you an email regarding a BEA support case we have raised for this.
Just to add some more info here :-
The failure on the insert into jbpm_log only happens intermittently, 99% are successfully inserted including the exact same insert statement (with different bind variable values).
My thoughts on investigating this are that it could be to do with statement caching as it does appear that the cursor that weblogic has cached a handle to may be invalid in terms of the shared sql is no longer in the oracle shared pool. I would have expected that Oracle would have reparsed the statement and it shouldnt fail but I am not familiar with the detail of weblogic statement caching implementation, only of the oracle jdbc driver level.
Occassionally I have also seem the following Oracle error and dont know whether there is some connection with this.
ORA-01461: can bind a LONG value only for insert into a LONG column -
Thanks in advance for your support.
Can anyone have any knowledge about how to generate "ORA-01003: no statement parsed" in PL/SQL environment?
It sounds bit crazy. But, i need to generate this environment for some R&D work. I want to create one situation (not directly raising any error like this) which will generate this error by oracle?
Any idea? Please help.
Regards.Hi,
Did you try googling for 'ORA-01003'? One of the hits was this:
Re: Connection Pool Gets Stuck on ORA-01003
Seems like it should be reproducable by following the steps listed here.
Cheers,
Colin -
ORA-01003 when using SQL*Loader
Hi people,
Can anyone shed some light on this.
We have a multitasked dataload operation that is using SQL*Loader and on occasion we're seeing some rows failing due to ORA-01003 no statement parsed. Could this be due to some shortage of a database resource (cursors, connections ??) or are there other well known reasons for this.
Any help appreciated.
Regards
AndyCheck those registers ( rows ) in the bad file or in the discard file. If the register(s) are in the discard file is because the register ( row ) does not complete the requirements of denoted in the controlfile file and if those registers are in the error file is because the database is rejecting them according to constraints and so on.
Conclusion: realize in what file those rows are being stored after to be rejected.
Joel Pérez -
Getting an ORA-01003 error importing images using Apex import options
I took an export of the images from my application (would be nice if this was included in the applicatoin export options)
When I try to import, I get the following error
Execution of the statement was unsuccessful. ORA-01003: no statement parsed
begin wwv_flow.g_import_in_progress := true; end;
ORA-01003: no statement parsed
This worked for me on apex.oracle.com.. can't do it on any of my apex instances.
I am able to import applications without a problem
Any suggestions?Anyone have any ideas?
-
ORA-00604:error occurred at recursive SQL level 1ORA-01003:no stmnt parsed
Following PL/SQL block works fine when executed as SQL statement but throws
2147217900:ORA-00604: error occurred at recursive SQL level 1ORA-01003: no statement parsed
error, when called from application (Visual Basic 6.0).
Procedure xyz(pStartDt IN VARCHAR2,pEndDt IN VARCHAR2,pErrorDesc OUT VARCHAR2, pReportData OUT SYS_REFCURSOR) IS
Begin
Open pReportData For
WITH Dataset AS
(SELECT SUBSTR(forename,1,1) FName, trim(surname) SurName, trim(NVL(address_1, address_2)) Addr,
DECODE(UPPER(hacc_num),'999999999',NULL,'N/A', NULL,'NA', NULL, 'NON GIVEN', NULL, 'NOT GIVEN', NULL, 'UNKNOWN', NULL,'NONE GIVEN', NULL,hacc_num) HaccNum,
TRUNC(receipt_date) RcptDate,
UPPER(SUBSTR(forename,1,1)||trim(surname)||trim(NVL(address_1, address_2))) NameAddr,
casenum, customer_title, forename, address_1, address_2, postcode, comp_date
FROM bprit_act_current
WHERE proc_code = 'CF2'
AND receipt_date BETWEEN ADD_MONTHS(TO_DATE(p_dtEnd,'dd/mm/yyyy'), -3)+1
AND TO_DATE(p_dtEnd,'dd/mm/yyyy')
AND ((ForeName IS NOT NULL AND SurName IS NOT NULL AND NVL(address_1, address_2) IS NOT NULL)
OR hacc_num IS NOT NULL)),
RequiredData AS (SELECT *
FROM Dataset
WHERE RcptDate BETWEEN TO_DATE(p_dtStart,'dd/mm/yyyy') AND TO_DATE(p_dtEnd,'dd/mm/yyyy')),
DuplicateData AS (SELECT a.nameaddr, NULL haccnum, COUNT(a.Addr) Cnt
FROM Dataset a, RequiredData b
WHERE (a.NameAddr = b.NameAddr)
GROUP BY a.nameaddr
HAVING COUNT(1) >1
UNION ALL
SELECT NULL nameaddr, a.haccnum, COUNT(1) Cnt
FROM Dataset a, RequiredData b
WHERE (a.haccnum = b.haccnum)
GROUP BY a.haccnum
HAVING COUNT(1) >1)
SELECT DISTINCT a.casenum "Case No.", a.customer_TITLE "Title", a.FORENAME "Forename", a.SURNAME "Surname", a.HACCNUM "Holding/Account No.",
a.ADDRESS_1 "Address Line1", a.ADDRESS_2 "Address Line 2",a.POSTCODE "Post Code", a.RcptDate "Receipt Date", a.comp_date "Complete Date"
FROM Dataset a, DuplicateData b
WHERE (a.nameaddr = b.nameaddr) OR (a.haccnum = b.haccnum)
ORDER BY a.haccnum, a.forename, a.surname, a.address_1, a.address_2;
EXCEPTION
WHEN OTHERS THEN
pErrorDesc := SUBSTR(SQLERRM, 1, 255);
END XYZ;Any help will be appreciated.
Oracle version is 9.2.0.6.0.
SQL commands works fine if executed alone but calling from vb application throw following error,
[12:53:23][ERR]getReportData::-2147217900:ORA-00604: error occurred at recursive SQL level 1ORA-01003: no statement parsed
Edited by: rav_bhu on 05-May-2009 05:30Few points
1. Use {noformat} <put your code here> {noformat} tags to format your code. Its ugly without formatting.
2. Please remove the WHEN OTHERS THEN from your code and run again. Get the full error message with line number and post it here.
3. Mention your database version. -
I have to first mention that this thing called ORACLE is totally headache. Don't really understand why people choose it. One of those stupid companies is the one where I work.It's just like an "I don't like this, I don't like that"girl. So many problems, so many things you have to coonsider, so many weird exceptions.
Ok my problem is I have a stored procedure. It receives bunch of parameters one of which is V_CUR OUT SYS_REFCURSOR and another is a V_TYPE IN NUMBER. In the body of my procedure I check for the value of the V_TYPE, if its 0 then the procedure opens V_CUR for a query, if its 1 then the procedure inserts the values passed with rest of the parameters to a table.here are the problems I fase:
1. If I run this procedure on SQL Developer it executes as expected, but if I do it by using ODP.NET it just takes whatever the default value is for V_TYPE parameter and just ignores the value I pass from the application.
2. Now the wirdest thing is then if I remove the DEFAULT value from the V_TYPE I get "No statement parsed error".
Here's my procedure just in case someone will have patience to review it:
create or replace
PROCEDURE "SP_IU_AGPENSIONERS"(
V_PENSIONERID IN NUMBER DEFAULT NULL,
V_DEPARTID IN NUMBER DEFAULT NULL,
V_PENSIONTYPE IN NUMBER DEFAULT NULL,
V_PLASTNAME IN VARCHAR2 DEFAULT NULL,
V_PNAME IN VARCHAR2 DEFAULT NULL,
V_PFATHERNAME IN VARCHAR2 DEFAULT NULL,
V_PERIDTYPE IN NUMBER DEFAULT NULL,
V_PERIDSER IN VARCHAR2 DEFAULT NULL,
V_PERIDNO IN VARCHAR2 DEFAULT NULL,
V_PGENDER IN NUMBER DEFAULT NULL,
V_PBIRTHDAY IN DATE DEFAULT NULL,
V_NATIONALITYID IN NUMBER DEFAULT NULL,
V_PROTOCOLNO IN VARCHAR2 DEFAULT NULL,
V_ORDERDATE IN DATE DEFAULT NULL,
V_APPLYDATE IN DATE DEFAULT NULL,
V_WEYEAR2006 IN NUMBER DEFAULT NULL,
V_WEMONTH2006 IN NUMBER DEFAULT NULL,
V_WEDAY2006 IN NUMBER DEFAULT NULL,
V_ST IN NUMBER DEFAULT NULL,
V_PFIELD IN NUMBER DEFAULT NULL,
V_CUR OUT SYS_REFCURSOR,
V_TYPE IN NUMBER DEFAULT 0)
IS
TYPE_SELECT CONSTANT NUMBER:=0;
TYPE_INSERT CONSTANT NUMBER:=1;
TYPE_UPDATE CONSTANT NUMBER:=2;
TYPE_DELETE CONSTANT NUMBER:=3;
BEGIN
IF V_TYPE=TYPE_SELECT THEN
OPEN V_CUR FOR SELECT PENSIONERID, DEPARTID, PENSIONTYPE, PLASTNAME, PNAME,
PFATHERNAME, PERIDTYPE, PERIDSER, PERIDNO, PGENDER, PBIRTHDAY,
NATIONALITYID, PROTOCOLNO, ORDERDATE, APPLYDATE, WEYEAR2006, WEMONTH2006,
WEDAY2006, ST FROM AGAPUS.AGPENSIONERS WHERE ROWNUM<101 ORDER BY
PENSIONERID;
ELSIF V_TYPE=TYPE_INSERT THEN
INSERT
INTO
AGPENSIONERS
PENSIONERID,
DEPARTID,
PENSIONTYPE,
PLASTNAME,
PNAME,
PFATHERNAME,
PERIDTYPE,
PERIDSER,
PERIDNO,
PGENDER,
PBIRTHDAY,
NATIONALITYID,
PROTOCOLNO,
ORDERDATE,
APPLYDATE,
WEYEAR2006,
WEMONTH2006,
WEDAY2006,
PFIELD
VALUES
V_PENSIONERID,
V_DEPARTID,
V_PENSIONTYPE,
V_PLASTNAME,
V_PNAME,
V_PFATHERNAME,
V_PERIDTYPE,
V_PERIDSER,
V_PERIDNO,
V_PGENDER,
V_PBIRTHDAY,
V_NATIONALITYID,
V_PROTOCOLNO,
V_ORDERDATE,
V_APPLYDATE,
V_WEYEAR2006,
V_WEMONTH2006,
V_WEDAY2006,
V_PFIELD
END IF;
END;
Edited by: Mikail on Apr 12, 2012 5:12 AMSomebody asked nearly the same question Re: EMERGENCY! pl/sql syntax error!!!
-
Help required:no statement parsed
While executing queries I am getting following exception.
"no statement parsed"
I tried using executeUpdate and getResults.
Nothing is helping to get rid of this exception.
Please reply.help required
-
ORA-04061: existing state of has been invalidated
Hi,
In Development Database Information
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
"CORE 11.2.0.2.0 Production"
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
Solution required for this oracle error
I am getting this Error - ORA-04061: existing state of has been invalidated
package pkg1 -> Main pkg
pkg1 calling another package pkg2
i am modified and recompiled the package pkg2.
After executing the package PKG1 it throwing this Error ORA-04061.
i am checking user_objects and it status are VALID.
In both package doesnt have the any variables.
Please suggest the above issue.
Thanks in advance.
Regards,
Sudhakar PBluShadow wrote:
Karthick_Arp wrote:
Sudhakar P wrote:
Hi,
how to reload it into memory - SGA ?.Please suggest me.
Regards
Sudhakar P.I guess you dint get my point. So may be read this {message:id=3488533}:) Saves me re-posting it.Still remember reading it way back then :). I much appreciate the time you spend on explaining it in detail.
Maybe you are looking for
-
Satellite A500-19x - Suddenly blue screen appears in Windows 7
I have satellite a500-19x, There are one problem every time and every days when i working. Suddenly the windows stopped for several moments then blue screen and restart windows .
-
What will I need to upgrade my Macbook Pro's HDD to an SSD?
I wanted to know what I would need in order to upgrade my early 2011 Macbook Pro's HDD to an SSD. What should I consider before making the change from an HDD to an SSD? Also what are the pros and cons to making this change - excluding the price of th
-
The profile manager has disappeared. How do we get it back so that we can access both profiles. My profile is ESBrody my husband's is MWBrody. When I open Firefox only my profile comes up. We are operating on Mac OS X.
-
Syncing torch 9800 with Outlook 2013
How do I sync my blackberry torch 9800 with Outlook 2013? I have updated my desktop software, but it does not seem to work with Outlook 2013. Any thoughts? Thanks
-
Create/extend materials for new plant with new profit centers
Hi. We have created a new plant and want to create/extend the materials from an existing plant to the new plant (with new profit center). Can this be done via MM17? Regards, Kjettern