Error ORA-20000 collecting statistics

on linux:
sqlplus / as sysdba
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Beta
SQL> exec dbms_stats.gather_schema_stats('MYUSER',estimate_percent=>100,cascade=>true);
BEGIN dbms_stats.gather_schema_stats('MYUSER',estimate_percent=>100,cascade=>true); END;
ERROR at line 1:
ORA-20000: Statistics collection failed for all objects in schema
ORA-06512: at "SYS.DBMS_STATS", line 24189
ORA-06512: at "SYS.DBMS_STATS", line 24130
ORA-06512: at line 1
I tried: grant execute on SYS.DBMS_STATS to public, but it didn't help.
I also tried connected to myuser, no change.
Any hint?
Any hint?

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters and Automatic Storage Management options
SQL> begin
dbms_stats.gather_schema_stats(
ownname=> '"EPICEDF"' ,
options=> 'GATHER AUTO');
end;
2 3 4 5 6 7 8
9 /
begin
ERROR at line 1:
ORA-20000: Statistics collection failed for all objects in schema
ORA-06512: at "SYS.DBMS_STATS", line 24189
ORA-06512: at "SYS.DBMS_STATS", line 24130
ORA-06512: at line 3
I dont have any errors in the alert log or trace files

Similar Messages

  • Brconnect error ORA-20000

    hello everyone,
    i have a SAP CRM 7.0 system with a IDES Database.
    i just make the post installation steps and try to make the brconnect (brconnect -u -c -f stats -t system_stats) but it always aborted with an error.
    ORA-20000: Unable to gather system statistics : insufficient privileges
    ORA-06512: at "SYS.DMBS_STAT", line 15799
    ORA-06512: at line 1
    Somebody a solution for this Problem?
    Thanks in advance

    Hello, I have the same problem after implementing SSFS. Without SSFS (using /) it is working, but with // it doesn't! Can you help me please ?

  • ORA-20000 error when executing background jobs in BI System

    Hello Experts,
    We newly installed NW2004s System. Few BI related background jobs are showing Error no: 4 or Error no: 3 in SM50. Also few BI related background jobs are giving error "ORA-20000 occurred when executing SQL statement (parse error offset=0)". Please let me know what does Error 4 or 3 mean in SM50 and how to resolve Ora-20000 error?
    Thanks

    This may be to do with insufficient authorization for the user (for creating statistics for example). Check OSS note 963760.

  • ORA-20000 context error

    When I am run this query then it shows the following error
    ORA-20000 context error
    SQL is
    select * from(SELECT A.SKU,D.SKU_SRL_NO,A.TITLE,A.AUTHOR_DESC,A.PRI_CATEGORY_ID,E.CATEGORY_NAME,A.ITEM_TYPE,NVL(SCORE(0), 0) AS RANK , decode(INSTR(UPPER(SRCH_CONTXT_FLD),'THE ART OF WAR'),1,-1,INSTR(UPPER(SRCH_CONTXT_FLD),'THE ART OF WAR')) AS SRCHORDER FROM OXF_SKU_MSTR A,OXF_SKU_VEP_MSTR D,oxf_ctgy_mstr e WHERE D.SKU=A.SKU AND A.PRI_CATEGORY_ID=E.CATEGORY_ID AND (ITEM_TYPE='BK' OR ITEM_TYPE='CDR' OR ITEM_TYPE='MCT' ) AND CONTAINS (SRCH_CONTXT_FLD,'THE ART OF WAR*6|NEAR((THE ART OF WAR,THE ART OF WAR),100,true)*6|NEAR((THE,ART,OF,WAR),100,true)*4|THE * 3 | ART * 3 | OF * 3 | WAR * 3',0)>0 UNION SELECT A.SKU,D.SKU_SRL_NO,A.TITLE,A.AUTHOR_DESC,A.PRI_CATEGORY_ID,e.category_name,A.ITEM_TYPE, NVL(SCORE(0), 0) AS RANK , decode(INSTR(UPPER(SRCH_CONTXT_FLD),'THE ART OF WAR'),1,-1,INSTR(UPPER(SRCH_CONTXT_FLD),'THE ART OF WAR')) AS SRCHORDER FROM OXF_SKU_MSTR A,OXF_MUSIC_MSTR B,OXF_SKU_VEP_MSTR D,oxf_ctgy_mstr e WHERE b.SKU=A.SKU and D.SKU=A.SKU and a.pri_category_id=e.category_id AND CONTAINS (SONG,'THE ART OF WAR*6|NEAR((THE ART OF WAR,THE ART OF WAR),100,true)*6|NEAR((THE,ART,OF,WAR),100,true)*4|THE * 3 | ART * 3 | OF * 3 | WAR * 3',0)>0 ) a ORDER BY ITEM_TYPE, SRCHORDER,TITLE
    Can any body help me to solve this problem.
    Thanks in advance

    Hi,
    This may help you
    ORA-20000: ORU-10027: buffer overflow, limit of 2000 bytes
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2460552453360
    Trinath Somanchi
    ( http://myospages.com )

  • ORA-20000 Error When Attempting to Create a Tree

    Hi,
    I'm trying to create a tree region as follows.
    1) in SQL*Plus as APP: grant select on APP.MY_TABLE to APX
    2) in APEX against APX workspace with APX parsing schema: create a new Tree region
    3) when I get to the "Table/View Owner" step I select APP from the "Table / View Owner" list
    4) hitting Next produces this error
    ORA-20000: User APX has no privileges on the APP schema.
    I checked the documentation but found no prerequisites listed in the "Creating Trees" section. What privileges does APX need to create a tree against an APP table? I expect SELECT privileges would be sufficient but that doesn't appear to be the case.
    Edited by: jfuda on Jul 25, 2011 3:10 PM

    Try to set env variable ORACLE_HOME
    Best Regards
    Krystian Zieja / mob

  • ORA-20000: env:Server - Cannot find child element: Calling Webservice

    Hi,
    I am using SOAP_API to call a webservice
    I have a wsdl looks like:
    - <xs:element name="InputParameter">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element name="input" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    But when I am calling the function its throwing Error:
    ORA-20000: env:Server - Cannot find child element: {http://www.example.org/testwsdl/}InputParameter
    Any help will be needful for me
    Thanks and Regards

    Hi,
    I am using SOAP_API to call a webservice
    I have a wsdl looks like:
    - <xs:element name="InputParameter">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element name="input" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    But when I am calling the function its throwing Error:
    ORA-20000: env:Server - Cannot find child element: {http://www.example.org/testwsdl/}InputParameter
    Any help will be needful for me
    Thanks and Regards

  • ERROR at line 1: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: Oracle Text error: DRG-10700: preference does not exist: global_lexer ORA-06512: at "CTXSYS.DRUE", line 160 ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    database version 11.2.0.4
    rac two node
    CREATE INDEX MAXIMO.ACTCI_NDX3 ON MAXIMO.ACTCI
    (DESCRIPTION)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('lexer global_lexer language column LANGCODE')
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    Like the error message says, you don't have a global_lexer.  So, you need to create a global_lexer and that lexer must have at least a default sub_lexer, then you can use that global_lexer in your index parameters.  Please see the demonstration below, including reproduction of the error and solution.
    SCOTT@orcl12c> -- reproduction of problem:
    SCOTT@orcl12c> CREATE TABLE actci
      2    (description  VARCHAR2(60),
      3      langcode     VARCHAR2(30))
      4  /
    Table created.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366
    SCOTT@orcl12c> -- solution:
    SCOTT@orcl12c> DROP INDEX actci_ndx3
      2  /
    Index dropped.
    SCOTT@orcl12c> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('global_lexer', 'multi_lexer');
      3    CTX_DDL.CREATE_PREFERENCE ('english_lexer', 'basic_lexer');
      4    CTX_DDL.ADD_SUB_LEXER ('global_lexer', 'default', 'english_lexer');
      5  END;
      6  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    Index created.

  • Standard Data Collection Failing with Error ORA-04054: database link  does not exist.

    Hi Gurus,
    When I am running Standard Data Collection in ASCP(APS) instance R12.1.3, its failing with error : ORA-04054: database link  does not exist.
    There is no such Database link exits which is showing in above error.
    Also the database link name in the above error is not profile values in the database.
    I think, concurrent might be fetching this database link name  from some tables related to plan.
    I am not having much knowledge about how this ASCP/APS works.
    Need your help to resolve this issue.
    Thanks,

    Hi,
    ASCP Collections looks at the dblink from instances definitions from.
    1. Responsibility: Advanced Planning Administrator
    2. Navigation: Admin > Instances
    You may review the note in support.oracle.com - Understanding DB Links Setup for APS Applications - ASCP and ATP Functionality (Doc ID 813231.1)

  • Refresh Collection Snapshots Error ORA-12008 ORA-01555

    Need some insight!
    Ct is implementing R12.1.1 ASCP using existing 11.5.10 EBS as source.
    In source EBS, when running Refresh Collection Snapshots (RCS) in COMPLETE mode, we encounter this error:
    ORA-12008: error in materialized view refresh path
    ORA-01555: snapshot too old: rollback segment number 13 with name "_SYSSMU13$" too small
    ORA-12008: error in materialized view refresh path
    ORA-01555: snapshot too old: rollback segment number 13 with name "_SYSSMU13$" too small
    All the snapshot entities got refreshed successfully (in 5 minutes) but the Refresh Collection Snapshot request itself ends with ERROR (after 4 hrs).
    Appreciate your input on this one.
    Thanks,
    Jake

    Welcome to the forums !
    ORA-01555 is a common error condition. There are typically two solutions (or a combination of both) -
    1. Increase rollback / undo tablespace size
    2. Run your process when the database is not active (i.e. few or no updates/deletes/inserts etc).
    More information may be available in these MOS Docs
    211121.1 - How To Run MSRFWOR - Refresh Collections Snapshots Concurrent Request From The Application
    207644.1 - Data Collections is Failing - All Errors - First Diagnostic Steps
    306418.1 - 11.5.10 MSRFWOR: Refresh Collection Snapshot Performance Is Poor and Fails with Errors
    369173.1 - MSRFWOR Refresh Collection Snapshots Performance Database Bug 4196039
    308487.1 - Refresh Collection Snapshot Request Fails Yet The Request Shows Complete Normal
    HTH
    Srini

  • KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE

    제품 : FIN_AP
    작성날짜 : 2002-12-02
    KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE
    ===================================================================
    PURPOSE
    Multi-Org 환경속에서 Kr Tax Localization Report 실행시의 ORA-20000, ORA-06512 Error Message 를 해결한다.
    Problem Description
    Kr Tax Localization의 Reports가 Error를 발생하고, View Log를 통해 확인한 Message가 다음과 같을 경우
    ORA-20000: APP-00001: Unable to find message:
    AR_NO_ROW_IN_SYSTEM_PARAMETERS
    ORA-06512: "APPS.ARP_STANDARD", 줄 999에서
    ORA-06512: "APPS.ARP_STANDARD", 줄 2246에서
    ORA-06512: "APPS.ARP_UTIL", 줄 29에서
    ORA-06512: "APPS.ARP_UTIL_TAX", 줄 111에서
    ORA-06512: "APPS.ARP_TAX_EXTRACT", 줄 6178에서
    ORA-06512: 줄 1에서
    Workaround
    Solution Description
    1) fnd_client_info.set_org_context(<org_id>);
    or
    2) v_org_id varchar2(10);
    v_org_id := fnd_profile.value('ORG_ID');
    fnd_client_info.set_org_context(v_org_id);
    .rdf 의 경우 : Before Report Trigger 에 추가
    .sql (Package Body, Procedure) 의 경우 : 각 Begin 절 이후
    Reference Documents
    -------------------

    제품 : FIN_AP
    작성날짜 : 2002-12-02
    KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE
    ===================================================================
    PURPOSE
    Multi-Org 환경속에서 Kr Tax Localization Report 실행시의 ORA-20000, ORA-06512 Error Message 를 해결한다.
    Problem Description
    Kr Tax Localization의 Reports가 Error를 발생하고, View Log를 통해 확인한 Message가 다음과 같을 경우
    ORA-20000: APP-00001: Unable to find message:
    AR_NO_ROW_IN_SYSTEM_PARAMETERS
    ORA-06512: "APPS.ARP_STANDARD", 줄 999에서
    ORA-06512: "APPS.ARP_STANDARD", 줄 2246에서
    ORA-06512: "APPS.ARP_UTIL", 줄 29에서
    ORA-06512: "APPS.ARP_UTIL_TAX", 줄 111에서
    ORA-06512: "APPS.ARP_TAX_EXTRACT", 줄 6178에서
    ORA-06512: 줄 1에서
    Workaround
    Solution Description
    1) fnd_client_info.set_org_context(<org_id>);
    or
    2) v_org_id varchar2(10);
    v_org_id := fnd_profile.value('ORG_ID');
    fnd_client_info.set_org_context(v_org_id);
    .rdf 의 경우 : Before Report Trigger 에 추가
    .sql (Package Body, Procedure) 의 경우 : 각 Begin 절 이후
    Reference Documents
    -------------------

  • 11.5.10.2 to R12.1.1 upgrade : ORA-20000: Oracle Error Rebuild1= -904 - ORA-00904: "TAB"."USER_PROP": invalid identifier

    EBS version : 11.5.10.2
    DB version : 11.2.0.3
    OS version : AIX 6.1 (64 bit)
    As a part of 11.5.10.2 to R12.1.1 upgrade, while applying merged 12.1.1 upgrade driver(u6678700.drv), I got below error :
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ATTENTION: All workers either have failed or are waiting:
    FAILED: file ECXQBKUP.sql on worker 1.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Worker 1 log:
    ========================================
    Start time for file is: Mon Aug 05 2013 10:54:29
    sqlplus -s APPS/***** @/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql/ECXQBKUP.sql &un_apps &pw_apps &un_fnd
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    declare
    ERROR at line 1:
    ORA-20000: Oracle Error Rebuild1= -904 - ORA-00904: "TAB"."USER_PROP": invalid
    identifier
    ORA-06512: at line 46

    I tried fix inside 12.0.6 Patch 6728000 Fails On Ecxqbkup.Sql (Doc ID 760122.1) but getting same error :
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:51:44 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXQBKUP.sql apps apps applsys
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
      select count(*) into in_cnt from ecx_inqueue
    ERROR at line 26:
    ORA-06550: line 26, column 36:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 26, column 3:
    PL/SQL: SQL Statement ignored
    drix10:/home/appltest>sqlplus '/as sysdba'
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Aug 6 11:47:38 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exec dbms_aqadm.drop_queue_table( queue_table=> 'APPS.ECX_INQUEUE',force=>true);
    PL/SQL procedure successfully completed.
    SQL> exec dbms_aqadm.drop_queue_table( queue_table=> 'APPS.ECX_OUTQUEUE',force=>true);
    PL/SQL procedure successfully completed.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:52:07 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXINQ.sql
    Enter value for 4: system
    Enter value for 5: manager
    Connected.
    Enter value for 1: apps
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Enter value for 2: apps
    Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:53:38 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXGINQ.sql
    Enter value for 4: system
    Enter value for 5: manager
    Connected.
    Enter value for 1: apps
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Enter value for 2: apps
    Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:54:04 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXOUTQ.sql
    Enter value for 4: system
    Enter value for 5: manager
    Connected.
    Enter value for 1: apps
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Enter value for 2: apps
    Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps @ECXQBKUP.sql apps apps applsys
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:54:26 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    declare
    ERROR at line 1:
    ORA-20000: Oracle Error Rebuild1= -904 - ORA-00904: "TAB"."USER_PROP": invalid
    identifier
    ORA-06512: at line 46
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options

  • ORA-06531:collection error in trigger.

    We are using DBMS_XMLSave to insert data into an object nested view. Error ORA-06531 causes the trigger to fail when trying to access the collection count.. Below is the XML, view and trigger. What is missing or are we running into a bug?
    Thanks
    ****************************** XML ****************************
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW>
    <ArrestNumber>2</ArrestNumber>
    <IMErrors>
    <IMErrors_ITEM>
    <ResponseErrorCode>CODE 2</ResponseErrorCode>
    <ResponseErrorDesc>DESC 2</ResponseErrorDesc>
    </IMErrors_ITEM>
    <IMErrors_ITEM>
    <ResponseErrorCode>CODE 1</ResponseErrorCode>
    <ResponseErrorDesc>DESC 1</ResponseErrorDesc>
    </IMErrors_ITEM>
    </IMErrors>
    </ROW>
    </ROWSET>
    ************************* VIEW ****************************
    CREATE OR REPLACE TYPE sjs.imres_error_type AS OBJECT
    ("ResponseErrorCode"     VARCHAR2(10),
    "ResponseErrorDesc"     VARCHAR2(4000))
    CREATE OR REPLACE TYPE sjs.imres_errors_type AS TABLE OF imres_error_type
    CREATE OR REPLACE VIEW sjs.imresponse
    AS SELECT ith.a_id AS "ArrestNumber",
    CAST(MULTISET(SELECT ire.errorcode,
    ire.errordesc
    FROM sjs.imresponseerrors ire
    WHERE ire.ith_id = ith.ith_id) AS imres_errors_type) AS "IMerrors"
    FROM sjs.imtransactionhistory ith
    ************************* TRIGGER ****************************
    CREATE OR REPLACE TRIGGER sjs.imresponse_new INSTEAD OF INSERT ON sjs.imresponse FOR EACH ROW
    DECLARE
    error_list      imres_errors_type;
    error_t      imres_error_type;
    ith_id_holder NUMBER(18);
    cnt          NUMBER;
    BEGIN
    INSERT INTO imtransactionhistory(a_id,interfacetransaction,ith_nysid,ith_fbi,ith_cjtn)
    VALUES(:new."ArrestNumber",'PENDING','PENDING','PENDING','PENDING');
    SELECT sjs.ith_sequence.currval INTO ith_id_holder FROM dual;
    error_list := :new."IMerrors";
    cnt := error_list.count;
    -- FOR i IN 1..cnt LOOP
    -- error_t := error_list(i);
    -- INSERT INTO imresponseerrors(ith_id,errorcode,errordesc)
    -- VALUES(ith_id_holder,error_t."ResponseErrorCode",error_t."ResponseErrorDesc");
    -- END LOOP;
    END;
    ************************* ERROR ****************************
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException:
    'oracle.jdbc.driver.OracleSQLException: ORA-06531: Reference to uninitialized collection
    ORA-06512: at "SJS.IMRESPONSE_NEW", line 11
    ORA-04088: error during execution of trigger 'SJS.IMRESPONSE_NEW'
    ' encountered during processing ROW element 0. All prior XML row changes were rolled back. in the XM
    ORA-06512: at "SJS.XML_UTIL", line 72
    ORA-06512: at "SJS.IMRES", line 35
    ORA-06512: at line 6

    Frank
    error_list is a collection. What happens if you use an index with it? E.G.
    error_list(1) := :new."IMerrors";
    Cheers, APC

  • COLLECTION error - ORA-06502:

    PL/SQL: numeric or value error: character string buffer too small
    I've had this error before on a different item when I knew my LOV returned too many rows, so I made the Select List from LOV into a POPUP from LOV. I just cleaned up and uploaded current data from spreadsheets so there may be more rows, but not enough to warrant this error. The collection was working fine...seems to be my modus operendi this week. I tried adding rows in the CREATE DATASET procedure for the collection but that didn't do it either.
    The collection is based on a reference table. That table has 2555 rows, 3 columns
    The table on which the LOV is based has only 112 rows and 3 columns
    Any ideas? Is it because I'm displaying only 5 rows?
    Here's the code for the collection if you need it:
    Dataset
    apex_collection.create_or_truncate_collection
      (p_collection_name => 'MY_SUBJECT_COLL');
    DECLARE
      v_id   NUMBER;     --subject_ref_id key
      var1   NUMBER;     --doc_info_id
      var2   NUMBER;     --subject_id
      rw_ct  INTEGER;    --# of existing records - used for the cursor loop below
    cursor c_prepop is
    select subject_ref_id, doc_info_id, subject_id
    from DOC_SUBJECT_REF
         where DOC_INFO_ID = :P48_DOC_INFO_ID
    ORDER BY 1;
      i         NUMBER;
      cntr      NUMBER := 5;  --sets the number of blank rows
    BEGIN
    --Gets the row count from DOC_SUBJECT_REF that correspond to the catalog/master id we're
    --referencing
      select COUNT(*) into rw_ct from DOC_SUBJECT_REF
         where DOC_INFO_ID = :P48_DOC_INFO_ID
          ORDER BY 1;
      cntr := cntr - rw_ct; --sets the number of times for loop will run
      OPEN c_prepop;
        LOOP
          FETCH c_prepop into v_id, var1, var2; --take the values from the cursor and plop into vars
           EXIT WHEN c_prepop%NOTFOUND;
    --sets the columns of the collection and puts the vars into them. 
           APEX_COLLECTION.ADD_MEMBER(
            p_collection_name => 'MY_SUBJECT_COLL',
            p_c001 => v_id,  --Primary Key
            p_c002 => var1, --Number placeholder
            p_c003 => var2   --NUMBER placeholder
        END LOOP;
      CLOSE c_prepop;
      for i in 1..cntr loop
        APEX_COLLECTION.ADD_MEMBER(
            p_collection_name => 'MY_SUBJECT_COLL',
            p_c001 => 0, --subject_ref_id
            p_c002 => :P48_DOC_INFO_ID,
            p_c003 => 0
      end loop;
    END;Form
    SELECT
    APEX_ITEM.SELECT_LIST_FROM_LOV(3, c003,'SUBJECT',NULL,'YES',0,'') SUBJECT
    FROM APEX_COLLECTIONS
      WHERE COLLECTION_NAME = 'MY_SUBJECT_COLL'Capture
    declare
    j pls_integer :=0;
    begin
    for j1 in(
    select seq_id from apex_collections
    where collection_name = 'MY_SUBJECT_COLL'
    order by seq_id)loop
    j:=j+1;
    apex_collection.update_member_attribute(p_collection_name=>'MY_SUBJECT_COLL', p_seq=>j1.seq_id,p_attr_number=>3,p_attr_value=>wwv_flow.g_f03(j));
    end loop;
    end;Write
    declare
    begin
      for y in (select TO_NUMBER(c001) x_key, TO_NUMBER(c002) x_1, TO_NUMBER(c003) x_2
       FROM APEX_COLLECTIONS
               WHERE COLLECTION_NAME = 'MY_SUBJECT_COLL' ORDER BY x_key) loop
        if y.x_key = 0
    THEN
           insert into DOC_SUBJECT_REF(subject_ref_id, doc_info_id, subject_id)
              values(DOC_SUBJECT_REF_SEQ.nextval, y.x_1, y.x_2);
        elsif y.x_key > 0 then
    update DOC_SUBJECT_REF
    set
    doc_info_id = y.x_1,
    subject_id = y.x_2
    where subject_ref_id = y.x_key and doc_info_id = :p99_doc_info_id;
       else
          DBMS_OUTPUT.PUT_LINE ('There’s an error.');
        end if;
      end loop;
    end;

    hi muhammad--
    though your initial post seemed to suggest that you were trying to upload a very large spreadsheet into a table via our DataWorkshop (for which i'd still run with holger's suggestion above), your follow up seems to ask about enabling spreadsheet upload/download from within your app. you probably know by now that it's a pretty simple matter to turn on the ability for your report regions in htmldb to output to csv format. there's a "CSV Output" region on the report attributes page to let you control that stuff. regarding the ability to upload spreadsheet data into a table within HTML DB, there's no functionality built into htmldb for facilitate this for you. i'm still not sure if this is what you're looking for, but i explained a little about what it would take to implement one method of excel data upload functionality into one's app at the bottom of...
    Bulk Insert, SQL*Loader style
    ...hope this helps,
    raj

  • Error in Update optimizer statistics - index is in unusable state

    Hello,
    we have this error in log Check and update optimizer statistics:
    12.02.2009     23:21:20     'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPPB1"', TABNAME => '"/BIC/FZPPC0002"', ESTIMATE_PERCENT => 10, METHOD_OPT =
    12.02.2009     23:21:20     ORA-20000: index "SAPPB1"."/BIC/FZPPC0002~010"  or partition of such index is in unusable state
    12.02.2009     23:21:20     ORA-06512: at "SYS.DBMS_STATS", line 13452
    12.02.2009     23:21:20     ORA-06512: at "SYS.DBMS_STATS", line 13472
    12.02.2009     23:21:20     ORA-06512: at line 1
    12.02.2009     23:21:20     BR0886E Checking/collecting statistics failed for table SAPPB1./BIC/FZPPC0002
    i can temporary fix this problem when i delete and recreate index via SE14,  but this help only for one next running update statistics, every next running update statistics has same error:  index "SAPPB1"."/BIC/FZPPC0002~010"  or partition of such index is in unusable state. Exist any definitive solution for this problem. Thanks

    Hi,
    Two methods for checking/repairing Indexing issues
    1)RSRV for a particular cube
    2)SAP_INFOCUBE_INDEXES_REPAIR report
    You can also use this sql to rebuild an Index.
    alter index <index name> rebuild online; Or you can rebuild Index by using ABAP report 'RSANAORA'.
    Please check below thread it may help you.
    /message/6483705#6483705 [original link is broken]
    https://forums.sdn.sap.com/click.jspa?searchID=12942068&messageID=2052264
    Thanks,
    Sushil

  • SQL Error: ORA-12801: error signaled in parallel query server P007

    Hi  all
    I am getting the following error when doing aggregation for a cube
    <b>SQL Error: ORA-12801: error signaled in parallel query server P007.</b>Job is showing as finished but no aggregation is hapenning.
    regards
      KK

    for ORA- 20000
    check the note below it shows you have insufficient authorizations.
    <b>Reason and Prerequisites</b>
    You are using BW 7.00 with Support Package 07 or higher.
    The BW module for the update statistics has been adjusted to SAPDBA or BRConnect (with regard to the heuristic, which is when, how and which statistics are created). To ensure that all table changes are taken into account, the relevant information must be flushed from the Oracle memory before the update statistics is carried out. For this purpose, the SAPCONN role (higher than ORA 10.2) or SAP SAP<sid> oder SAPR3 (ORA 10.1) requires additional authorizations that were not assigned up to now.
    <b> Note 963760 - 'ORA-20000: Insufficient privileges' for creating statistics</b> 
    For Error -for SQL Error: ORA-01418: specified index does not exist
    check note below-
    <b>Note 337830 - BW: ORA-1418 in system log</b>
    It seems that Index no longer exist which you are trying to delete.The 900 index, which exists on the F table only if the E table is partitioned, is deleted twice and on the second attempt it no longer exists.
    <b>
    Note 1003360 - BW fact tables: Deleting index from process chain terminates</b>
    If it relates your error it requires corrections for SP-12.
    Hope it Helps
    Chetan
    @CP..

Maybe you are looking for

  • Can't access the folder I created.

    Hi All, I created a folder using this code File tempFile=new File("D:\\Destination");                    boolean ansOne = tempFile.mkdir();            System.out.println(ansOne); I works fine. Create the "destination" folder and print "true". And I t

  • Running Applications in JSP

    I have project that integrates SAS and MS Access. I am already able to invoke SAS routines by invoking the "runApp" macro in MS Access. But I would like to web-enable this process, so is there a way to invoke MS Acess macros from JSP? Better yet, is

  • Since upgrading to 21.0, if I have 2 windows open, too often the active window changes -- unasked. Why?

    Hard to add details since I can't say exactly what action makes this happens. It seems like what happens is that I have clicked something in preparation to start typing -- in a forum post or a search bar or something -- and then find I'm not actually

  • Archiving part of my music library

    Hi all, My music is filling up my hard drive and I need to archive some of it (all my "holiday" music for instance). How do I do that? I want to move it off my MacBook Pro and onto my external drive. Thanks for any information.

  • Recovery Windows without disk

    Hi I'm italian. I had windows 8.1. I was installing Ubuntu. I was arrived when the installation program send me the request for partition and format the disk. I chose to exit because I want control if there was Windows again. The installation program