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

Similar Messages

  • Excluding ORA-00060 errors from Generic Alert Log Error in OEM

    Hi,
    I want to remove the alerts for ORA-00060 errors from OEM Alerts. In "Generic Alert Log Error" the current expression for Warning is ORA-0*(600?|7445|4[0-9][0-9][0-9])[^0-9]. How should I change this expression so that it will not send alerts for ORA-00060. I am not much aware of perl :-). Please help me with the expression.
    Target Type=dbname
    Host=host
    Metric=Generic Alert Log Error
    Metric Value=ORA-00060: Deadlock detected. More info in
    Time/Line Number=Mon Nov 2 10:02:54 2009/134883
    Timestamp=Nov 2, 2009 10:17:14 AM EST
    Severity=Warning
    Message=ORA-error stack (00060) logged in /eb_rdo0_p/oraadmin/pnoltp/bdump/alert_.log.
    Notification Rule Name=Database Alert
    Notification Rule Owner=SYSMAN
    Notification Count=1
    Thanks,
    Varma

    this is default monitored objects.
    To stop monitoring for this object, clear the Critical and Warning threshold values and click Continue.

  • Anyone seen this?!?  ORA-32103: error from OCI call

    Greetings all,
    Getting this error (ORA-32103: error from OCI call) when calling Environment::getCacheMaxSize() after calling Environment::createEnvironment(). The error is not listed in the Oracle documentation and I was wondering if anyone had seen it or knew what it meant.
    snippet
    Environment* env = Environment::createEnvironment(Environment::THREADED_MUTEXED);
    std::cout << "ok..\n";
    std::cout << "The env pointer:" << env << std::endl;
    std::cout << "ok..\n";
    std::cout << "Here is a Env variable:" << env->getCacheMaxSize() << std::endl;
    end snippet
    Many thanks,
    John Fauntleroy

    Thanks for the response!
    I've not been able to get to the connection stage of the process as the error occurs just after the createEnvironment() call.I believe the Evironment is not being created correctly for some reason but have no idea why because no exceptions are being thrown and the my testing only yields an unlisted error. ack, frustrating tstl! The error I'm getting is "ORA-32103: error from OCI call". ORA-32103 is not listed in the oracle error docs. ORA-32101 and ORA-32105 are listed but nothing in between. Is interesting...
    Anyone got some ideas?
    Best regards,
    John Fauntleroy

  • 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-12899 error from function invoked from SQL*Loader

    I am getting the above error when I call a function from my SQL*Loader script, and I am not seeing what the problem is. As far as I can see, there should be no problem with the field lengths, unless the length of the automatic variable within my function is somehow being set at 30? Here are the details (in the SQL*Loader script, the field of interest is the last one):
    ====
    Error:
    ====
    Record 1: Rejected - Error on table TESTM8.LET_DRIVE_IN_FCLTY, column DIF_CSA_ID.
    ORA-12899: value too large for column "TESTM8"."LET_DRIVE_IN_FCLTY"."DIF_CSA_ID" (actual: 30, maximum: 16)
    =======
    Function:
    =======
    CREATE OR REPLACE FUNCTION find_MCO_id (di_oid_in DECIMAL)
    RETURN CHAR IS mco_id CHAR;
    BEGIN
    SELECT AOL_MCO_LOC_CD INTO mco_id
    FROM CONV_DI_FLCTY
    WHERE DIF_INST_ELMNT_OID = di_oid_in;
    RETURN TRIM(mco_id);
    END;
    ==============
    SQL*Loader Script:
    ==============
    LOAD DATA
    INFILE 'LET_DRIVE_IN_FCLTY.TXT'
    BADFILE 'LOGS\LET_DRIVE_IN_FCLTY_BADDATA.TXT'
    DISCARDFILE 'LOGS\LET_DRIVE_IN_FCLTY_DISCARDDATA.TXT'
    REPLACE
    INTO TABLE TESTM8.LET_DRIVE_IN_FCLTY
    FIELDS TERMINATED BY '~' OPTIONALLY ENCLOSED BY '"'
    DIF_DRIVE_IN_OID DECIMAL EXTERNAL,
    DIF_FCLTY_TYPE_OID DECIMAL EXTERNAL NULLIF DIF_FCLTY_TYPE_OID = 'NULL',
    DIF_INST_ELMNT_OID DECIMAL EXTERNAL,
    DIF_PRI_PERSON_OID DECIMAL EXTERNAL NULLIF DIF_PRI_PERSON_OID = 'NULL',
    DIF_SEC_PERSON_OID DECIMAL EXTERNAL NULLIF DIF_SEC_PERSON_OID = 'NULL',
    DIF_CREATE_TS TIMESTAMP "yyyy-mm-dd-hh24.mi.ss.ff6",
    DIF_LAST_UPDATE_TS TIMESTAMP "yyyy-mm-dd-hh24.mi.ss.ff6",
    DIF_ADP_ID CHAR NULLIF DIF_ADP_ID = 'NULL',
    DIF_CAT_CLAIMS_IND CHAR,
    DIF_CAT_DIF_IND CHAR,
    DIF_DAYLT_SAVE_IND CHAR,
    DIF_OPEN_PT_TM_IND CHAR,
    DIF_CSA_ID CONSTANT "find_MCO_id(:DIF_DRIVE_IN_OID)"
    ============
    Table Definitions:
    ============
    SQL> describe CONV_DI_FLCTY;
    Name Null? Type
    DIF_INST_ELMNT_OID NOT NULL NUMBER(18)
    AOL_MCO_LOC_CD NOT NULL VARCHAR2(3)
    SQL> describe LET_DRIVE_IN_FCLTY;
    Name Null? Type
    DIF_DRIVE_IN_OID NOT NULL NUMBER(18)
    DIF_INST_ELMNT_OID NOT NULL NUMBER(18)
    DIF_FCLTY_TYPE_OID NUMBER(18)
    DIF_ADP_ID VARCHAR2(10)
    DIF_CAT_DIF_IND NOT NULL VARCHAR2(1)
    DIF_CAT_CLAIMS_IND NOT NULL VARCHAR2(1)
    DIF_CSA_ID VARCHAR2(16)
    DIF_DAYLT_SAVE_IND NOT NULL VARCHAR2(1)
    DIF_ORG_ENTY_ID VARCHAR2(16)
    DIF_OPEN_PT_TM_IND NOT NULL VARCHAR2(1)
    DIF_CREATE_TS NOT NULL DATE
    DIF_LAST_UPDATE_TS NOT NULL DATE
    DIF_ITM_FCL_MKT_ID NUMBER(18)
    DIF_PRI_PERSON_OID NUMBER(18)
    DIF_SEC_PERSON_OID NUMBER(18)
    =========================
    Thanks for any help with this one!

    I changed one line of the function to:
    RETURN CHAR IS mco_id VARCHAR2(16);
    But I still get the same error:
    ORA-12899: value too large for column "TESTM8"."LET_DRIVE_IN_FCLTY"."DIF_CSA_ID" (actual: 30, maximum: 16)
    I just am not seeing what is being defined as 30 characters. Any ideas much appreciated!

  • ORA-00936 error from SQL expression in SQL*Loader script

    I am getting the above error on the following line in my SQL*Loader script:
    DIA_CLM_RES_OID DECIMAL EXTERNAL
    "SELECT N_ORG_ENTY_ID FROM TESTG4.ORG_ENTITY
    WHERE N_USER_ID =
    (SELECT UNIQUE WSR_NT_ID FROM CONV_CLM_RESOURCE
    WHERE CLM_RES_OID = :DIA_CLM_RES_OID)",
    What I am basically trying to do is a 2-table lookup of a value:
    1. Find a row in table CONV_CLM_RESOURCE where the value in column CLM_RES_OID matches the value in the input file in field DIA_CLM_RES_OID.
    2. Take the value of field WSR_NT_ID from that row and use it to find a row in table TESTG4.ORG_ENTITY.
    3. Take the value of field WSR_NT_ID from that row and set it in the target table in field DIA_CLM_RES_OID.
    In other words, I am essentially trying to translate the input value by using two other tables to lookup the value to translate to. However, no matter how I arrange it, I keep getting the "ORA-00936: missing expression" error on this statement.
    Can anyone see what I am doing wrong, or perhaps suggest a better way of accomplishing a two-table translation of a value?
    Thanks!

    Still not sure why this doesn't work, but I was able to create and use a function to do this instead, which is probably a better approach anyway.

  • ORA-01858 error from Apex Report on working/valid underlying query

    After two days of searching these forums and AskTom, I think I need to post the following problem.
    I have what seems to be a valid view of some data created as follows (with an apology for the formatting - doesn't seem to be a way of using a fixed font here):
    CREATE OR REPLACE FORCE VIEW "PRICING_CAPABILITY"."POW_EXEC_SUMM010" ("Item",
    "Jul-09", "Aug-09", "Sep-09", "Oct-09", "Nov-09", "Dec-09", "Jan-10",
    "Feb-10", "Mar-10", "Apr-10", "May-10", "Jun-10", "YTD")
    AS
    SELECT
    "Item",
    SUM(DECODE("ItemMonth",'Jul-09',"ItemValue",0)) "Jul-09",
    SUM(DECODE("ItemMonth",'Aug-09',"ItemValue",0)) "Aug-09",
    SUM(DECODE("ItemMonth",'Sep-09',"ItemValue",0)) "Sep-09",
    SUM(DECODE("ItemMonth",'Oct-09',"ItemValue",0)) "Oct-09",
    SUM(DECODE("ItemMonth",'Nov-09',"ItemValue",0)) "Nov-09",
    SUM(DECODE("ItemMonth",'Dec-09',"ItemValue",0)) "Dec-09",
    SUM(DECODE("ItemMonth",'Jan-10',"ItemValue",0)) "Jan-10",
    SUM(DECODE("ItemMonth",'Feb-10',"ItemValue",0)) "Feb-10",
    SUM(DECODE("ItemMonth",'Mar-10',"ItemValue",0)) "Mar-10",
    SUM(DECODE("ItemMonth",'Apr-10',"ItemValue",0)) "Apr-10",
    SUM(DECODE("ItemMonth",'May-10',"ItemValue",0)) "May-10",
    SUM(DECODE("ItemMonth",'Jun-10',"ItemValue",0)) "Jun-10",
    SUM("ItemValue") AS "YTD"
    FROM
    SELECT
    'New Proposals Received' AS "Item",
    TO_CHAR(t1.scope_received,'Mon-RR') AS "ItemMonth",
    COUNT(*) AS "ItemValue",
    10 AS "SortOrder"
    FROM
    PRICING_CAPABILITY.POW_DATA t1
    WHERE
    t1.scope_received IS NOT NULL
    AND extract(YEAR FROM t1.scope_received) IN (2009,2010)
    AND t1.scope_received >= '01-JUL-2009'
    GROUP BY
    'New Proposals Received',
    TO_CHAR(t1.scope_received,'Mon-RR'),
    10
    UNION
    SELECT
    'New Proposals Completed' AS "Item",
    TO_CHAR(t2.pricing_approval,'Mon-RR') AS "ItemMonth",
    COUNT(*) AS "ItemValue",
    20 AS "SortOrder"
    FROM
    PRICING_CAPABILITY.POW_DATA t1
    JOIN PRICING_CAPABILITY.POW_LAST_HISTORY t2
    ON
    t1.POW_DATA_ID = t2.POW_DATA_ID
    WHERE
    t2.pricing_approval IS NOT NULL
    AND extract(YEAR FROM t2.pricing_approval) IN (2009,2010)
    AND t2.pricing_approval >= '01-JUL-2009'
    GROUP BY
    'New Proposals Completed',
    TO_CHAR(t2.pricing_approval,'Mon-RR')
    GROUP BY
    "Item",
    "SortOrder"
    ORDER BY
    "SortOrder" ;
    This view works, ie produces the right results when run (ie select * from ...) in SQL Developer and in the SQL Workshop section of Apex.
    But when I attempt to produce an Apex report using it as the source of data, I get the following error:
    ORA-01858: a non-numeric character was found where a numeric was expected
    The error is displayed before any part of the report itself is displayed, ie the Region Header is displayed and then the error message.
    So far, anything I've been able to find on the forums or AskTom suggests that it is probably due to a date conversion problem. But the aim here is to summarise dated records by month, so I'm extracted the year and month elements of the date values, converting them to strings (using TO_CHAR), and then using the resulting 'Mon-YY' strings to group the results.
    If there is a better way, I'm interested.
    But I don't understand why Apex seems to be rejecting what appear to be valid results from a valid working query.
    Any ideas? Suggestions?
    Cheers,
    Peter

    Thanks again, Flavio. I'm learning and I appreciate your patience.
    The solution you provided is very similar to the one I came up with after your previous message, but I didn't have the NLS_DATE_LANGUAGE parameter. I'll go back and try it.
    I appreciate your explanation re Apex not needing to know and Oracle assuming that the client knows what it is doing, but it puzzles me more.
    The way that I originally had things, I think, was consistent with what you have explained, but it didn't work. To make it clear:
    1 I had an Oracle view that had no parameters and contained the date literal in the where clause and worked fine in both SQL Developer and in the Apex SQL Workshop.
    2 The view did not return any date values. Aside from the column headings and the first column (of character strings), the body of the table comprised integer values only.
    3 So, when Apex called the view, I would have expected the Oracle server to independently execute the view and return the (dateless) results to Apex, which would then present the unmodified results in a standard report. This is, I think, what SQL Developer and the Apex SQL Workshop appear to have successfully done.
    My expectation seems to be consistent with at least some of your explanation (ie [Oracle assumes] "+that the client knows what it is doing+" and "+apex doesn't need to know anything about the underlying query+"), but is not consistent with actual experience, where Apex seems to know that the underlying query contains a date literal and unsuccessfully (and unnecessarily) attempts to interpret it.
    I'm obviously missing something about how Apex and Oracle interact in this situation. While I don't need to know - as I have a working solution now - it is valuable to understand how things work. Makes life easier and more productive.
    Cheers,
    Peter

  • Ora-00600 error from dev6i on linux database

    hi all,
    i am encountering ora-00600 while compiling forms 6i on linux db 10g. It is also not picking any query from dual in dev6i. while everything is working fine on toad and sqlplus. The client machine is xp. Whats wrong with it and how it can be solved ?

    server: redhat enterprise linux AS / db 10g
    client: windows xp / developer6i
    yes sqlplus is quering the dual properly, for example sysdate. But i can't get the sysdate from in forms6i installed under xp. Even the procedure builder in 6i is not returning the sysdate from dual. the error message is
    ora-00600: internal error code, arguments [17069], [36376872].......
    the .fmx executables are running properly and returning the sysdate, but everytime i open the form module for modification, three program units throw the exception ora- 00600 and all have multliple queries for dual.
    i even restarted the database on linux and form builder 6i on xp, now i am thinking of restarting both OS.
    Forms 9iDS is not encountering this problem, whats wrong with 6i ?
    Message was edited by:
    zaibiman

  • Getting ORA-20002: 3825: Error '-4061-ORA-04061: Error from business event

    Hi,
    I have defined custom subscription to the iRecruitment business event oracle.apps.per.api.assignment.update_apl_asg . In this custom subscription i am launching a custom workflow to send Notification about offer acceptance or Application Submission information.
    The subscription package is in my custom schema. When i do transaction to invoke the subscription i am getting below error.
    ORA-20002: 3825: Error '-4061 - ORA-04061: existing state of has been invalidated ORA-04061: existing state of package
    "XXPJ.XXPJ_IREC_EXT_COMPONENTS_PK" has been invalidated ORA-04065: not executed, altered or dropped package "XXPJ.PT in Package irc_party_swi Procedure
    registered_user_application.
    I need to bounce the Workflow services and Apache server to clear this error and functionality work for some time, again after doing 3-4 transaction i get the same error.
    Any help on this appreciated.
    Regards,
    Ram

    From error: "existing state of has been invalidated ORA-04061" It only can happen when current db session finds this package as INVALID. Now when which cases it can find ir INVALID:
    1) One case is that: some other db session "really" compiled your current package. Please note: even if the status is VALID but other db session will see that as INVALID in first attempt and in second attempt, current db session will try to recompile that on-the-fly.
    2) Or Some other db session compiled or altered dependent objects, I mean objects on which your current package is dependent on.

  • ORA-00604: error occurred at recursive SQL level 2

    Hello,
    I am trying to create a simple table and I am getting a ora error as below.
    SQL> create table album(name varchar2(100),image blob);
    create table album(name varchar2(100),image blob)
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 2
    ORA-01422: exact fetch returns more than requested number of rows
    how to resolve this?Any help..
    Thanks,
    Ranz.

    Hi,
    *@Anurag Tibrewal,*
    I followed as per the order od statements you gave. Initially there was no table "ALBUM" when I executed the first 2 statements.
    3rd staement i created a table "ALBUM" and then 4th and 5th statement showed that I have a table called "ALBUM".
    Now when again I wanted to drop the table I am getting the same error.
    SQL> drop table album
    2 ;
    drop table album
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01422: exact fetch returns more than requested number of rows
    *@Jean-Valentin*
    I am not finding the trace file for today as i checked the alert log. When i searched for the the error I found the error for March 4. No ora-00604 error from today.
    As shown in ALERT LOG.
    Thu Mar 04 10:50:41 2010
    Errors in file d:\oracle\product\10.2.0\admin\raneeshtest\bdump\*raneeshtest_j000_5976.trc*:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-04030: out of process memory when trying to allocate 172 bytes (Typecheck,seg:kggfaAllocSeg)
    ORA-12012: error on auto execute of job 1
    ORA-04030: out of process memory when trying to allocate 16428 bytes (pga heap,kgh stack)
    Trace file details:
    Dump file d:\oracle\product\10.2.0\admin\raneeshtest\bdump\raneeshtest_j000_5976.trc
    Thu Mar 04 10:50:31 2010
    ORACLE V10.2.0.3.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Personal Oracle Database 10g Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Windows NT Version V6.0 Service Pack 1
    CPU : 2 - type 586, 2 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:27M/2037M, Ph+PgF:341M/4352M, VA:4M/2047M
    Instance name: raneeshtest
    Redo thread mounted by this instance: 1
    Oracle process number: 15
    Windows thread id: 5976, image: ORACLE.EXE (J000)
    *** 2010-03-04 10:50:31.224
    *** ACTION NAME:() 2010-03-04 10:50:30.276
    *** MODULE NAME:() 2010-03-04 10:50:30.195
    *** SERVICE NAME:(SYS$USERS) 2010-03-04 10:50:30.195
    *** SESSION ID:(137.401) 2010-03-04 10:50:30.195
    *********START PLSQL RUNTIME DUMP************
    ***Got internal error Exception caught in pfrrun() while running PLSQL***
    ***Got ORA-4030 while running PLSQL***
    PACKAGE SYSMAN.MGMT_ADMIN_DATA:
    library unit=3416af50 line=128 opcode=117 static link=0 scope=0
    FP=3ca31374 PC=30f42000 Page=0 AP=3ca47b2c ST=3ca32778
    DL0=3ca46564 GF=3ca465b0 DL1=3ca46584 DPF=3ca465a8 DS=30f421e4
    DON library unit variable list instantiation
    0 3416af50 3ca465b0 3ca2005c
    1
    2
    3
    4
    5
    6
    7
    scope frame
    2 0
    1 3ca31374
    package variable address size
    0 3ca46698 16
    1 3ca466a8 16
    2 3ca466b8 16
    3 3ca466c8 16
    4 3ca466d8 16
    5 3ca466e8 20
    6 3ca466fc 16
    7 3ca4670c 20
    8 3ca46720 16
    9 3ca46730 4
    10 3ca46734 4
    11 3ca46738 4
    12 3ca4673c 4
    13 3ca46740 4
    14 3ca46744 4
    15 3ca46748 4
    16 3ca4674c 4
    17 3ca46750 4
    18 3ca46754 4
    19 3ca46758 4
    20 3ca4675c 4
    21 3ca46760 20
    22 3ca46774 20
    23 3ca46788 20
    24 3ca4679c 20
    25 3ca467b0 4
    26 3ca467b4 4
    27 3ca467b8 4
    28 3ca467bc 4
    29 3ca467c0 16
    30 3ca467d0 16
    31 3ca467e0 8
    32 3ca467e8 39
    33 3ca46810 39
    34 3ca46838 521
    35 3ca46a44 521
    36 3ca46c50 140
    37 3ca46cdc 140
    38 3ca46d68 30
    39 3ca46d88 30
    40 3ca46da8 30
    41 3ca46dc8 30
    42 3ca46de8 30
    43 3ca46e08 30
    44 3ca46e28 30
    45 3ca46e48 30
    46 3ca46e68 30
    47 3ca46e88 30
    48 3ca46ea8 30
    49 3ca46ec8 30
    50 3ca46ee8 140
    51 3ca46f74 140
    52 3ca47000 30
    53 3ca47020 30
    54 3ca47040 30
    55 3ca47060 30
    56 3ca47080 39
    57 3ca470a8 39
    version=43123476 instantiation size=2920
    line pcode offset
    1 2
    4 620
    5 632
    6 632
    7 638
    8 644
    14 650
    29 810
    44 970
    47 992
    48 1000
    49 1008
    50 1016
    51 1024
    52 1032
    53 1040
    54 1048
    55 1056
    56 1064
    57 1072
    60 1080
    128 1814
    196 2548
    197 2554
    198 2560
    199 2566
    205 2572
    206 2578
    438 2584
    1 2586
    ***********END PLSQL RUNTIME DUMP************
    *** 2010-03-04 10:50:40.690
    ORA-12012: error on auto execute of job 1
    ORA-04030: out of process memory when trying to allocate 16428 bytes (pga heap,kgh stack)
    *** 2010-03-04 10:50:41.206
    ORA-00604: error occurred at recursive SQL level 1
    ORA-04030: out of process memory when trying to allocate 172 bytes (Typecheck,seg:kggfaAllocSeg)
    ORA-12012: error on auto execute of job 1
    ORA-04030: out of process memory when trying to allocate 16428 bytes (pga heap,kgh stack)
    SQL> select * from dual;
    D
    X
    SQL>
    This is the output. Its returning corredclty. Now what is the problem? Pls help me.

  • 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:30

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

  • 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

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

  • ORA-12571 error while creating packages from Windows clients

    Hello,
    We are facing the ORA-12571 error while creating / replacing packages from Windows Clients connected to a 8.1.7.2.0 db on a Solaris server.
    However, there are
    1. no errors in connecting and creating transactions from a Sql session
    2. no errors in creating / replacing unwrapped/wrapped small (few lines) packages
    3. no errors in connecting from a Unix session (remote telnet sessions inclusive).
    This happens only when creating wrapped/unwrapped packages, source code of which is greater than 500 kb approx.
    Can somebody help me resolve this issue. Any Help would be greatly appreciated.
    Regards.
    Lakshmanan, K

    Update: I had unintentionally left my custom tablespace in READONLY state after an earlier experiment with transportable tablespaces. After putting the tablespace back into READ WRITE mode and creating a new template, I was successfully able to create a new db from the template.
    I'm still a little curious why this procedure wouldn't work properly with a READONLY tablespace, however.
    Ben

  • Need Help in expdp for resolving ORA-39127: unexpected error from call

    Hi All,
    My Environment is -------> Oracle 11g Database Release 1 On Windows 2003 Server SP2
    Requirement is ------------> Data Pump Jobs to be completed without any error message.
    I am tryring to take export data pump of a schema
    Command Used --> expdp schemas=scott directory=data_pump_dir dumpfile=scorr.dmp version=11.1.0.6.0
    Export Log Show this details its completed with 2 error messages
    Export: Release 11.1.0.6.0 - Production on Saturday, 23 April, 2011 13:31:10
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the OLAP option
    FLASHBACK automatically enabled to preserve database integrity.
    Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** schemas=scott directory=data_pump_dir dumpfile=scorr.dmp version=11.1.0.6.0
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 192 KB
    Processing object type SCHEMA_EXPORT/USER
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    ORA-39127: unexpected error from call to export_string :=SYS.DBMS_CUBE_EXP.schema_info_exp('SCOTT',0,1,'11.01.00.06.00',newblock)
    ORA-37111: Unable to load the OLAP API sharable library: (The specified module could not be found.
    ORA-06512: at "SYS.DBMS_CUBE_EXP", line 205
    ORA-06512: at "SYS.DBMS_CUBE_EXP", line 280
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5980Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    ORA-39127: unexpected error from call to export_string :=SYS.DBMS_CUBE_EXP.schema_info_exp('SCOTT',1,1,'11.01.00.06.00',newblock)
    ORA-37111: Unable to load the OLAP API sharable library: (The specified module could not be found.
    ORA-06512: at "SYS.DBMS_CUBE_EXP", line 205
    ORA-06512: at "SYS.DBMS_CUBE_EXP", line 280
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5980
    . . exported "SCOTT"."DEPT" 5.945 KB 4 rows
    . . exported "SCOTT"."EMP" 8.585 KB 14 rows
    . . exported "SCOTT"."SALGRADE" 5.875 KB 5 rows
    . . exported "SCOTT"."ACCTYPE_GL_MAS" 0 KB 0 rows
    . . exported "SCOTT"."BONUS" 0 KB 0 rows
    Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
    D:\APP\ADMINISTRATOR\ADMIN\SIPDB\DPDUMP\SCORR.DMP
    Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" completed with 2 error(s) at 13:40:08
    Please help me to resolve this issue.
    Thank you,
    Shan

    Hi Shan,
    I am getting very similar to yours
    "ORA-37111: Unable to load the OLAP API sharable library: (The specified module could not be found."
    error message while creating OLAP Analytic Workspace with AWM.
    I am creating workspace for the first time, actually following some tutorial to get some knowledge about OLAP)
    I see you managed to solve you problem.
    I wonder how I can get this MOS DOC 852794.1 - is it possible to get it without going to Metalink?
    Thanks in advance for any help.
    Regards,
    SC

Maybe you are looking for

  • Same apple ID for both Iphone5s and ipod touch

    I would like to use the same apple id for both my new iphone 5s and my son ipod touch. How do i do it? Thanks.

  • HELP!!!! WHAT ARE THESE WEIRD BARS???

    During playback of my final edited footage there is a faint vertical blue bar on the far left of the screen and a similar black horozontal bar almost as if it is slightly cropped on the bottom of the footage throughout the movie(its not cropped, I ch

  • How to insert CLEAR SSIS Package in another SSIS Package

    Hi All, We have a requirement to run CLEAR SSIS Package in another SSIS Package whish extracts data from Oracle database system. Needed to run CLEAR SSIS Package if data exists in BPC application else run extract to Oracle system. Basically continue

  • Weirdness in answer from urlloader

    hi, i am doing some thing, i send data to a database and then i try to verify if the operation was correct. i check with this (copy paste from actual code): var _resultado:URLVariables = new URLVariables(_loader.data);         if (_resultado.hasOwnPr

  • I would like to stop my subscription for Audition and Premiere pro?

    I would like to stop my subscription for Audition and Premiere pro? I tried many options. Can I call them directly.