ORA-22275 error when running a USER_DATASTORE index on CLOB column

Running Oracle 9.2.0.8
Getting the following errors thrown for every row in the table when creating the index:
DRG-12604: execution of user datastore procedure has failed
DRG-50857: oracle error in drsinopen
ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275
ORA-06512: at "SYS.DBMS_LOB", line 347
ORA-06512: at "CRT_DEV.MULTI_INDEX_EN_PRC", line 27
ORA-06512: at "CTXSYS.CTXSYS_MULTI_INDEX_EN_PRC", line 7
ORA-06512:
Index scripts:
ctx_ddl.create_preference( 'crt_user_datastore_en', 'user_datastore' );
ctx_ddl.set_attribute( 'crt_user_datastore_en', 'procedure', 'ctxsys_multi_index_en_prc' );
ctx_ddl.set_attribute('crt_user_datastore_en', 'output_type', 'CLOB');
CTX_DDL.create_preference('CRT_PREF_EN','BASIC_WORDLIST');
ctx_ddl.set_attribute('CRT_PREF_EN','FUZZY_MATCH','ENGLISH');
ctx_ddl.set_attribute('CRT_PREF_EN','STEMMER','ENGLISH');
ctx_ddl.set_attribute('CRT_PREF_EN','SUBSTRING_INDEX','TRUE');
CTX_DDL.create_section_group('CRT_HTML_SECTION','HTML_SECTION_GROUP');
CTX_DDL.add_zone_section('CRT_HTML_SECTION', 'title', 'TITLE');
ctx_ddl.create_preference('CRT_LEXER_EN', 'BASIC_LEXER');
ctx_ddl.set_attribute('CRT_LEXER_EN', 'skipjoins', '-');
ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_text', 'YES');
ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'base_letter', 'YES');
ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_stems', 'ENGLISH');
ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_themes', 'YES');
ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'theme_language', 'ENGLISH');
CREATE INDEX MULTI_CONTENT_EN_IDX ON CONTENTS
(top_content_html_en)
INDEXTYPE IS CTXSYS.CONTEXT
parameters ('filter ctxsys.null_filter DATASTORE crt_user_datastore_en LEXER CRT_LEXER_EN wordlist CRT_PREF_EN section group CRT_HTML_SECTION');I have issued the following grants:
grant execute on CTXSYS.ctxsys_multi_index_fr_prc to CRT;
grant execute on CTXSYS.ctxsys_multi_index_en_prc to CRT;
grant execute on CRT_DEV.multi_index_fr_prc to CTXSYS;
grant execute on CRT_DEV.multi_index_en_prc to CTXSYS;CRT is the index owner schema
CRT_DEV is the schema owning the user_datastore procedure. (Could this be the problem?) Should the procedure reside in the same schema as index owner?
Here are my procedures:
CTXSYS stub:
CREATE OR REPLACE PROCEDURE ctxsys_multi_index_en_prc (
   rid    IN       ROWID,
   tlob   IN OUT   CLOB
IS
BEGIN
   crt_dev.multi_index_en_prc (rid, tlob);
END;Actual procedure:
CREATE OR REPLACE PROCEDURE multi_index_en_prc (rid IN ROWID, tlob IN OUT CLOB)
IS
BEGIN
   FOR c1 IN (SELECT    '<TITLE>'
                     || cc.content_category_name_en
                     || '</TITLE>' content_title,
                     c.content_html_content_en, c.top_html_content_en
                FROM content_categories cc, CONTENTS c
               WHERE cc.content_category_id = c.content_category_id
                 AND c.ROWID = rid)
   LOOP
      DBMS_LOB.writeappend (tlob, LENGTH (c1.content_title),
                            c1.content_title);
      DBMS_LOB.append (dest_lob => tlob, src_lob => c1.top_html_content_en);
      DBMS_LOB.append (dest_lob      => tlob,
                       src_lob       => c1.content_html_content_en
   END LOOP;
END multi_index_en_prc;I can run the following test script, and get no errors:
   declare
rid rowid;
tlob clob;
   begin
   dbms_lob.CREATETEMPORARY(tlob,false);
   CRT_DEV.multi_index_en_prc('AAAC0UAAMAAAAMAAA2',tlob);
   dbms_output.put_line(dbms_lob.GETLENGTH(tlob));
   dbms_output.put_line(dbms_lob.substr(tlob,25));
   dbms_lob.FREETEMPORARY(tlob);
   end;Output:
25
<TITLE>References</TITLE>
I'm at a total loss on the cause of the error.
Any help/tips is appreciated!
Thanks
Edited by: pl_sequel on Feb 9, 2010 11:25 AM

Thanks Roger.
I did add those in... DBA insists that didn't matter, since explicit "select" privs were granted to CRT_DEV to select CRT tables. He did say that a length check was required on the CLOBS before appedning them to the destination lob (tlob) to prevent NULL lob locators being appended and raising the exception.
In any case, it works now... however, unsure if it's due to the schema prefix on the tables, or the lob length checks...

Similar Messages

  • ORA-04062 error when running forms with different users

    ORA-04062 error when running forms with different users
    I have a form that has a block that should display some data from another users tables. (The other user's name is dynamic, it's selected from a list box)
    I wrote a stored procedure to get the data from other user's tables.
    When I compile the form and run it with the same user I compiled, it works without any error. But when I run the compiled form with another user I get the ORA-04062 (signature of procedure has been changed) error.
    I tried setting REMOTE_DEPENDENCIES_MODE to SIGNATURE in init.ora but it didn't help.
    My Forms version is 6i with Patch 15.
    Database version is 9.
    Here is my stored procedure:
    TYPE Scenario_Tab IS TABLE OF NUMBER(34) INDEX BY BINARY INTEGER;
    TYPE Open_Curs IS REF CURSOR;
    PROCEDURE Get_Scenarios(User_Name IN VARCHAR2, Scen_Table OUT Scenario_Tab) IS
    Curs Open_Curs;
    i NUMBER;
    BEGIN
    OPEN Curs FOR
    'SELECT Seq_No FROM '|| User_Name ||'.scenario';
    i := 1;
    LOOP
    FETCH Curs INTO Scen_Table(i);
    EXIT WHEN Curs%NOTFOUND;
    i := i + 1;
    END LOOP;
    END Get_Senarios;
    I would be happy to solve this problem. It's really important.
    Maybe somebody can tell me another way to do what I want to do. (getting a list of values from another users tables)

    I think it should be a better solution to create a package,
    and put your own TYPES and procedure into it.
    CREATE OR REPLACE PACKAGE PKG_XXX IS
    TYPE TYP_TAB_CHAR IS TABLE OF .... ;
    PROCEDURE P_XX ( Var1 IN VARCHAR2, var2 IN OUT TYP_TAB_CHAR );
    END ;
    Then in your Form :
    Declare
    var PKG_XXX.TYP_TAB_CHAR ;
    Begin
    PKG_XXX.P_XX( 'user_name', var ) ;
    End ;

  • ORA-06502 - Error when running "Ask The Expert 0.9"

    Hi ,
    I successfully installed "Ask the Expert" package with Apex 3.0 on Oracle 10g Database 10.2.0.1.0. No error ocurred during the import in my Apex environment.
    Besides that, i'm having problems when i tried to run the "Aks the Expert". It always shows the following message errors:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Error Unable to write activity log.
    I think it was a problem with APEX instalation, but i could run the Sample Application of Apex without any problem.
    I opened an SR in Metalink, but to my surprise, the analist of support don't know what's wrong with the demo "Ask de Expert".
    The debug function of the application show the following commands before the error ocurrs:
    0.01:
    0.01: S H O W: application="103" page="1" workspace="" request="" session="6648566035252817"
    0.01: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: NLS: CSV charset=WE8MSWIN1252
    0.01: ...NLS: Set Decimal separator="."
    0.01: ...NLS: Set NLS Group separator=","
    0.02: ...NLS: Set date format="DD-MON-RR"
    0.02: ...Setting session time_zone to -03:00
    0.02: NLS: Language=en-us
    0.02: Application 103, Authentication: CUSTOM2, Page Template: 667896385843019243
    0.02: ...Determine if user "N3COUTINHO" workspace "951808960237899" can develop application "103" in workspace "951808960237899"
    0.02: ...ok to reuse builder session for user:nobody
    0.03: ...Application session: 6648566035252817, user=nobody
    0.03: ...Determine if user "N3COUTINHO" workspace "951808960237899" can develop application "103" in workspace "951808960237899"
    0.03: Session: Fetch session header information
    0.03: ...Metadata: Fetch page attributes for application 103, page 1
    0.03: Fetch session state from database
    0.03: Branch point: BEFORE_HEADER
    0.03: Fetch application meta data
    0.04: Computation point: BEFORE_HEADER
    0.04: ...Perform computation of item: P1_CLEAN_CRITERIA, type=FUNCTION_BODY
    0.04: ...Performing function body computation
    0.06: ...Session State: Save "P1_CLEAN_CRITERIA" - saving same value: ""
    0.06: Processing point: BEFORE_HEADER
    0.06: ...Process "Read and Write Activity Cookie": PLSQL (BEFORE_HEADER) declare l_cookie_id number; begin owa_util.mime_header('text/html', FALSE); -- ate_api.read_activity_cookie; l_cookie_id := ate_api.fetch_activity_cookie_val( 'COOKIE_ID' ); -- if l_cookie_id is null then l_cookie_id :=
    Content-type: text/html; charset=ISO-8859-1 Set-Cookie: activity_ask_expert=1|2400346189796; expires=Wed, 01-Jan-2020 08:00:00 GMT; path=/;
    0.06: Encountered unhandled exception in process type PLSQL
    0.06: Show ERROR page...
    0.06: Performing rollback...
    Please, could any one help me to solve this problem ? Metalink couldn't help me diagnosing what's wrong.
    Thanks,
    Sergio Coutinho

    Hi,
    I don´t know if it help the analisis, but i collect some informations about my environment:
    1) HTML DB version
    3.0.1
    2) Database version
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    3) Database server operating system (as well, if 32-bit or 64-bit)
    Solaris 5.9 - 64 bits
    4) Database Parameters:
    PARAMETER VALUE
    NLS_CALENDAR GREGORIAN
    NLS_CHARACTERSET WE8ISO8859P1
    NLS_COMP BINARY
    NLS_CURRENCY $
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_DUAL_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_LANGUAGE AMERICAN
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NUMERIC_CHARACTERS .,
    NLS_RDBMS_VERSION 10.2.0.1.0
    NLS_SORT BINARY
    NLS_TERRITORY AMERICA
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    Could it explain why ASK THE EXPERT is running on hosted apex site and it´s
    generating error when running in my environment?
    Thanks for the help !
    Sergio

  • ORA-03113 error when running the Java stored proc demos

    Hi there,
    Has anyone else run into this issue. When attempting to transfer an object type from Java to Oracle - through a Java stored proc - the session crashes with:
    ORA-03113: end-of-file on communication channelLooking in the trace file generated the error message looks something like:
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [0x8fe04468] [SIGTRAP] [unknown code] [0x8FE59034] [] []
    Current SQL statement for this session:
    select pointruntime.jdistance(point(1, 2), point(2, 3)) from dual
    ----- Call Stack Trace -----
    calling              call     entry                argument values in hex     
    location             type     point                (? means dubious value)    
    ksedmp+764           call     ksedst               0 ? 2C4F4A ? 2C ? 98968000 ?
                                                       DB02C ? 27A50000 ?
    ssexhd+956           call     ksedmp               3 ? 0 ? 8FE5E790 ? 5905870 ?
                                                       8FE0434C ? 40895E4 ?
    0x9012c860           call     ssexhd               5 ? BFFEEF70 ? BFFEEFB0 ? 0 ?
                                                       0 ? 0 ?As you can see from the trace snippet above, I was attempting to run one of the Oracle Java stored procedure demos. Has anyone successfully run those demos? Specifically the ones where complex types (table objects or the Point object) are passed back to Oracle from the JVM.
    I would appreciate some help with this. The code works fine in a Windows or Solaris environment but barfs on Apple. Truly annoying....
    Anyone?
    Thanks in advance,
    Alex

    Yes,
    Apologies for not stating that information, Steve. Was a bit naughty of me! I guess the reason I didn't was because I just wanted to hear if anyone else running Oracle on Mac received such errors when executing the Java stored proc demos (specifically, the execution of PointRuntime.jDistance). Nevertheless, here's the relevant info from the trace file:
    Dump file /Users/oracle/admin/sandbox/udump/sandbox_ora_1861.trc
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
    ORACLE_HOME = /Users/oracle/product/10.1.0/db
    System name:     Darwin
    Node name:     maczilla.local
    Release:     8.3.0
    Version:     Darwin Kernel Version 8.3.0: Mon Oct  3 20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC
    Machine:     Power Macintosh
    Instance name: sandbox
    Redo thread mounted by this instance: 1
    Oracle process number: 10
    Unix process pid: 1861, image: [email protected] for the Java version, according to the readme file in the javavm directory, I am running 1.4.1:
    1.5  Java Compatibility
    This release has been thoroughly tested with Sun's Java Compatibility
    Kit for the JDK 1.4.1. Oracle is committed to OracleJVM keeping pace
    with Java and other Internet standards.

  • ORA-27369 Error when running Scheduler jobs

    We have an Oracle 11g Standard Edition (11.1.0.7) instance running on virtualized Oracle Enterprise Linux, hosted on VMWare. Every external job submitted via the Scheduler ends with the above error, although the jobs all run to completion - all steps are completed.
    All of the external jobs are executed by a specific shell script that dynamically queries a table in the database with all the steps/programs that need to be executed. This varies from job to job. The script receives several parameters that are used to extract the task information.
    If we run the same script from the OS, with the same parameters, the script runs to completion and no error is raised. We have tested this exhaustively and have never had the script raise any OS level errors.
    Even a simple external script (e.g. a one-line shell script with something like "sleep 10") returns the same error code. The alert log always shows the same error text for every job:
    ORA-12012: error on auto execute of job 73527
    ORA-27369: job of type EXECUTABLE failed with exit code: No child processes
    In our company we have at least 3 other similar 11g SE/Enterprise Linux/VMWare installations, and ours is the only one with this issue. I have had an open SR with Oracle support since January 2010 on this problem, but that has been an endless cycle of questons, replys, information requests, and requests for more info. No progress whatsoever. Since the jobs run to completion, it is not preventing us from workign with the scheduler, but the end users have become a little complacent with the "Error" status attached to their jobs so if one really fails, it may get missed.
    The only difference we know of between our installation and the other similar installs is that we use Arcserve Agent for Linux to do (cold) backups to a remote Arcserve host. The other 3 sites use other backup software.
    What we have observed is the following:
    1. If we simply bounce the database, the problem persists.
    2. If we shut down and restart the virtual server OS, the problem persists.
    3. If we shut down the VMWare host server (and all the other VM's on that host!) and restart it, the problem persists.
    4. If we shut down the virtual server OS and make a significant change to the server (e.g. add a new virtual disk) and restart it, the scheduler runs fine and no error is reported. But only until the next backup cycle. Then the problem returns and is persistent until the next time we make a similar significant change in the host virtual machine.
    With no clear suggestions from Oracle Support, we are at our wit's end as to what we might be able to do to resolve this issue. There does appear to be a cause and effect link to Arcserve, but implementing a different backup solution is not an option at this time.
    I wanted to post this issue in the hope that someone may have a tip or suggestion that could lead to a solution.....

    I think it should be a better solution to create a package,
    and put your own TYPES and procedure into it.
    CREATE OR REPLACE PACKAGE PKG_XXX IS
    TYPE TYP_TAB_CHAR IS TABLE OF .... ;
    PROCEDURE P_XX ( Var1 IN VARCHAR2, var2 IN OUT TYP_TAB_CHAR );
    END ;
    Then in your Form :
    Declare
    var PKG_XXX.TYP_TAB_CHAR ;
    Begin
    PKG_XXX.P_XX( 'user_name', var ) ;
    End ;

  • ORA-01005 error when running app on standalone server

    Hello All:
    When I run an application on stand alone weblogic 10.3 server, I am getting error:
    ORA-01005: null password given; logon denied.
    In IDE it is running well and password field is filled checkboxes Save Password, Deploy Password checked in Database Connection.
    Thanks,
    SNikiforov

    Try searching the forum for ORA-01005...

  • ORA-01017 error, when running Complete configuration of Maintenance Wizard

    Hi Gurus,
    Maintenance wizard version: 2.19 (latest)
    DB: 10.2.0.1
    Linux:
    Upgrade assistance for R12
    Im trying to complete the first step:
    1-Complete configuration of Maintenance Wizard (Required)
    It gives me errors:
    Checking that Remote EOF_HOME is only a directory name, not a path...
    ERROR:
    ORA-01017: invalid username/password; logon denied
    SP2-0640: Not connected
    SP2-0670: Internal number conversion failed
    Usage: { EXIT | QUIT } [ SUCCESS | FAILURE | WARNING | n |
    &lt;variable&gt; | :&lt;bindvariable&gt; ] [ COMMIT | ROLLBACK ]
    ** ERROR!!! **
    ** Project node configuration has FAILED with the problem(s) below:!!! **
    ** Invalid value for REMOTE_EOF_HOME.
    ** Solution: Remove all slashes in the value for REMOTE_EOF_HOME.
    ** The value must be a simple directory name, not a path.
    ** Please have the Project Administrator return to the Modify Project
    ** screen, change the value for REMOTE_EOF_HOME and re-run Step
    ** 1 of the Configuration category.
    ** DO NOT PROCEED WITH ANY OTHER STEPS UNTIL YOU RESOLVE THE PROBLEMS SHOWN **
    ** ABOVE. ALL OTHER STEP EXECUTION DEPENDS ON A SUCCESSFUL PROJECT NODE **
    ** CONFIGURATION. **
    ** ONCE YOU HAVE RESOLVED THE PROBLEMS SHOWN ABOVE, YOU MUST RE-RUN THIS **
    ** STEP AGAIN. **
    I've checked all the forums before posting. Please advise
    Thanks & Regards,
    Rv
    Edited by: Kiran Jakka on May 11, 2012 8:05 AM

    Yes this is what I do, but still receive "Insufficient privileges to write to that location". So I am forced to use normal file system to be able to continue.
    After that I run into the current problem saying OMS configuration failed (see details....) and I try:
    ./opmnctl startall
    opmnctl: starting opmn and all managed processes...
    ================================================================================
    opmn id=uxlpgrid01:6200
    3 of 5 processes started.
    ias-instance id=EnterpriseManager0.uxlpgrid01
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
    OC4J/home/default_island
    Error
    --> Process (pid=0)
    no port available from the port range
    failed to start a managed process after the maximum retry limit
    no port available from the port range
    no port available from the port range
    Log:
    none
    ias-component/process-type/process-set:
    OC4J/OC4J_EMPROV/default_island
    Error
    --> Process (pid=0)
    no port available from the port range
    failed to start a managed process after the maximum retry limit
    no port available from the port range
    no port available from the port range
    Log:
    none
    Then:
    ./opmnctl status
    Processes in Instance: EnterpriseManager0.uxlpgrid01
    ------------------------------------------------+---------
    ias-component | process-type | pid | status
    ------------------------------------------------+---------
    DSA | DSA | N/A | Down
    HTTP_Server | HTTP_Server | 23861 | Alive
    LogLoader | logloaderd | N/A | Down
    dcm-daemon | dcm-daemon | 27021 | Alive
    OC4J | home | N/A | Down
    OC4J | OC4J_EM | 10403 | Alive
    OC4J | OC4J_EMPROV | N/A | Down
    WebCache | WebCache | 23872 | Alive
    WebCache | WebCacheAdmin | 23863 | Alive
    Overwhelming :-(
    Thanks for helping
    Askia.

  • ORA-21700 Error when running C# stored procedure to do a spatial query

    Hi All
    I'm having trouble running a C# stored procedure that (via another object) that falls over running a spatial query with the following error.
    OAR-21700 object does not exist or is marked for delete
    If I take the sql of the spatial query out and run it separately in SqlPlus it runs as expected.
    If I use the object that executes the spatial query via NUnit (i.e. executed on the client, rather than the server) it also works as expected.
    Can anyone help? Is there some issue using Oracle Spatial queries with the Oracle Database Extensions for .NET?

    I can indeed. Here is a slightly simplified version:
    SELECT secondary_catch.mi_prinx AS primarykey
    FROM mapinfo_data.secondary_catch
    WHERE sdo_relate (secondary_catch.geoloc,
    (SELECT geoloc
    FROM training_6.building_polygons
    WHERE building_id = 10002507117),
    'mask=anyinteract querytype=WINDOW'
    ) = 'TRUE'
    Interestingly, if I attempt to run this query inside a C# stored procedure using the implicit context connection (i.e. OracleConnection.ConnectionString = "context connection=true") it fails with the error I described above.
    If however I create a new connection and connect as a regular user on my database, the query works correctly.
    So in that sense I have a workaround, but I'd like to avoid using it if I can as creating a new explicit connection is an overhead I can do without.

  • Error when running a report in BPC NW

    I am getting the following error when running a report for my application in BPC NW.
    EVDRE encountered an error retrieving data from the Web Server (retrying in (X) seconds).
    This error comes with this dialog option box to either continue or cancel retrying retrieving data. Retrying doesn't help either.
    Any report I run (on any of my appsets), I get this error. I used the EVDRE function and also tried running a report using the template as the basis. But I get the error either way.
    Does anyone know why this error is occurs or how to debug this issue. I saw some information about this in earlier threads but could  not make much out of it.
    Appreciate any assistance.

    Sanjay,
      This  is a   very  generic  error...Couple  of  places  to  look  for....
    1)Reprocess the application (Modify application + Reassign SQL Index + Process Application)
    2)optimizing the application sometimes helps (Full Optimize + Compress Database + Index defragmentation).
    3)Create a "evdataserver_debug.txt" in user's private publication folder on  server side to populate very detail level logging  and  check  the  log on client side EVDRE_LOG.txt for  further  peek  into  where  things  are getting  messed up.
    if  evdataserver_debug.txt does not  get  populated on BPC 5.x...it  is  an  issue  with  IIS authetication on Application server.
    4)You have to check the event viewer into .NET server and also the BPC logs which can be found into
    BPC\Logging  for  further  details  ..
    Hope  this  helps..
    Edited by: Vishal Mahawadhi on Jun 24, 2009 9:50 AM

  • ORA-00054 error when loading Oracle table using Data Services

    Hello,
    we are facing ORA-00054 error when loading Oracle table using BO Data services
    (Oracle 10g database, BODS Xi 3.2 SP3)
    Test Job performs
    1- truncate table
    2- load table (tested in standard and bulk load modes)
    Scenario when issue happens is:
    1- Run loading Job
    2- Job end in error for any Oracle data base error
    3- When re-running the same Job, Job fails with following error
         ORA-00054: resource busy and acquire with NOWAIT specified
    It seems after first failure, Oracle session for loading the table stays active and locks the table.
    To be able to rerun the Job, we are forced need to kill Oracle session manually to be able to run the Job again.
    Expected behaviour would be : on error rollback modifications made on table and BODS stops Oracle session in a clean way.
    Can somebody tell me / or point me to any BODS best practice about Oracle error handling to prevent such case?
    Thanks in advance
    Paul-Marie

    the ora-0054 can occure depending how the job failed before. If this occures you will need the DBA to release the lock on the table in question
    Or
           AL_Engine.exe on The server it creates the Lock. Need to Kill Them. Or stop it..
    This Problem Occurs when we select The Bulkloading Option in orclae  We also faced the same issue,Our admin has Killed the session. Then everything alright.

  • Why am I getting an ORA-04052 error when I try to compile a Procedure?

    Hi,
    The following procedure I'm getting an ORA-04052 error when I try to compile the following procedure.
    CREATE OR REPLACE PROCEDURE APPS.Find_String (
    pin_referenced_name IN dba_dependencies.referenced_name%TYPE)
    IS
    cursor cur_get_dependancy
    is
    SELECT distinct owner, name, type
      FROM [email protected]        -- prod.world
    WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d'
       AND referenced_type <> 'SYNONYM'
       AND owner <> 'SYS'
    order by name;
    v_owner  varchar2(40);
    v_name   varchar2(50);
    v_type   varchar2(40);
        BEGIN
           dbms_output.put_line(upper(pin_referenced_name)||' is found in the following objects.');
           dbms_output.put_line(' ');
           dbms_output.put_line(RPAD('OWNER', 30, ' ')||RPAD('NAME', 60, ' ')||RPAD('OBJECT TYPE', 30, ' '));
           dbms_output.put_line('-------------------------------------------------------------------------------------------------------------------');
            FOR i IN cur_get_dependancy
            LOOP
                v_owner := RPAD(i.owner, 30, ' ');
                v_name  := RPAD(i.name, 45, ' ');
                v_type  := RPAD(i.type, 30, ' ');
                dbms_output.put_line(v_owner ||v_name|| v_type);
            END LOOP;
    END find_string;I'm using the link [email protected]. The procedure compiles for other database links used in the cursor including the one commented to the right of the code 'prod.world'.
    What's even stranger is that I took the SELECT statement
    SELECT distinct owner, name, type
      FROM [email protected]        -- prod.world
    WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d'
       AND referenced_type <> 'SYNONYM'
       AND owner <> 'SYS'
    order by name;out of the procedure and ran it on the command line using the @pinp.world link, the SQL statement ran just fine. But when I tried to compile the above procedure with that exact same SQL statement with the exact same link I get the following string of errors.
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02068: following severe error from PINP
    ORA-03113: end-of-file on communication channelHow can the link work just fine in a regular SQL statement but then cause an error when its compiled in code that otherwise compile just fine when using any other link or even just a plain database. Does anyone have any suggestions?

    OK Justin,
    Here's the query by itself run in another database using the @pinp.world link and querying the dba_dependencies table in the pinp.world database. As you can see the query using this link works just fine returning the requested rows. I can't figure out why the compiler is having an issue with essentially this same query when I try to compile it in a cursor in TOAD. Also this is the database (dev1.world) that I'm trying to compile this Procedure in.
    By the way I'm in an Oracle 9.2.0.6 database and TOAD v9.2.
    SQL> conn apps/apps1@dev1
    Connected.
    SQL> SELECT distinct owner, name, type
      2    FROM [email protected]
      3   WHERE lower(referenced_name) = lower('ALL_USERS')
      4     AND referenced_type <> 'SYNONYM'
      5     AND owner <> 'SYS'
      6   order by name;
    OWNER                          NAME                           TYPE
    PUBLIC                         ALL_USERS                      SYNONYM
    XDB                            DBMS_XDBUTIL_INT               PACKAGE BODY
    XDB                            DBMS_XDBZ0                     PACKAGE BODY
    SYSTEM                         MVIEW_EVALUATIONS              VIEW
    SYSTEM                         MVIEW_EXCEPTIONS               VIEW
    SYSTEM                         MVIEW_FILTER                   VIEW
    SYSTEM                         MVIEW_LOG                      VIEW
    SYSTEM                         MVIEW_RECOMMENDATIONS          VIEW
    SYSTEM                         MVIEW_WORKLOAD                 VIEW
    ORASSO                         WWCTX_API                      PACKAGE BODY
    PORTAL                         WWCTX_API                      PACKAGE BODY
    ORASSO                         WWEXP_UTL                      PACKAGE BODY
    PORTAL                         WWEXP_UTL                      PACKAGE BODY
    PORTAL                         WWPOB_API_PAGE                 PACKAGE BODY
    PORTAL                         WWPOF                          PACKAGE BODY
    ORASSO                         WWPRO_PROVIDER_VALIDATION      PACKAGE BODY
    PORTAL                         WWPRO_PROVIDER_VALIDATION      PACKAGE BODY
    PORTAL                         WWSBR_EDIT_ATTRIBUTE           PACKAGE BODY
    PORTAL                         WWSBR_FOLDER_PORTLET           PACKAGE BODY
    PORTAL                         WWSBR_USER_PAGES_PORTLET       PACKAGE BODY
    ORASSO                         WWUTL_API_PARSE                PACKAGE BODY
    OWNER                          NAME                           TYPE
    PORTAL                         WWUTL_API_PARSE                PACKAGE BODY
    PORTAL                         WWUTL_EXPORT_IMPORT_LOV        PACKAGE BODY
    ORASSO                         WWUTL_LOV                      PACKAGE BODY
    PORTAL                         WWUTL_LOV                      PACKAGE BODY
    PORTAL                         WWV_CONTEXT                    PACKAGE BODY
    PORTAL                         WWV_CONTEXT_UTIL               PACKAGE BODY
    PORTAL                         WWV_DDL                        PACKAGE BODY
    PORTAL                         WWV_GENERATE_UTL               PACKAGE BODY
    PORTAL                         WWV_GLOBAL                     PACKAGE
    PORTAL                         WWV_MONITOR_DATABASE           PACKAGE BODY
    PORTAL                         WWV_PARSE_AS_SPECIFIC_USER     PACKAGE BODY
    PORTAL                         WWV_PARSE_AS_USER              PACKAGE BODY
    PORTAL                         WWV_SYS_DML                    PACKAGE BODY
    PORTAL                         WWV_SYS_RENDER_HIERARCHY       PACKAGE BODY
    PORTAL                         WWV_THINGSAVE                  PACKAGE BODY
    PORTAL                         WWV_UTIL                       PACKAGE BODY
    PORTAL                         WWV_UTLVALID                   PACKAGE BODY
    38 rows selected.
    SQL>Let me know what you think.
    Thanks again.

  • ORA-30966: error detected in the XML Index layer

    Dear all,
    after upgrading from 9.2.0.8 to 11.2.0.1, Autoconfig ended with error:
    Alert log file shows :
    Mon Jul 04 21:33:50 2011
    Errors in file /ebiz/oracle/diag/rdbms/vision/VISION/trace/VISION_ora_31642.trc  (incident=16196):
    +ORA-00600: internal error code, arguments: [kzxcInitLoadLocal-7], [64131], [ORA-64131: XMLIndex Metadata: failure during the looking up of the dictionary+
    +ORA-30966: error detected in the XML Index layer+
    +ORA-31011: XML parsing failed+
    +ORA-01403: no data found+
    +], [], [], [], [], [], [], [], [], []+
    ORA-01403: no data found
    Incident details in: /ebiz/oracle/diag/rdbms/vision/VISION/incident/incdir_16196/VISION_ora_31642_i16196.trc
    Mon Jul 04 21:48:25 2011
    Incremental checkpoint up to RBA [0x3b2.a445.0], current log tail at RBA [0x3b2.a447.0]
    Mon Jul 04 21:49:25 2011
    Errors in file /ebiz/oracle/diag/rdbms/vision/VISION/trace/VISION_ora_330.trc  (incident=16206):
    +ORA-00600: internal error code, arguments: [kzxcInitLoadLocal-7], [64131], [ORA-64131: XMLIndex Metadata: failure during the looking up of the dictionary+
    +ORA-30966: error detected in the XML Index layer+
    +ORA-31011: XML parsing failed+
    for ORA-30966 i found one metalink document
    Bug 9496480: XDB VIEWS INVALIDATED AFTER RUNNING CATUPGRD.SQL UPGRADING 9.2.0.8.0 TO 11.2.0.1I am not able to understand this bug detail, can some one help me to understand this BUG 9496480. Is it possible to run autoconfig ?RegardsHAMEED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    This the result shows that ORACLE REAL APPLICATION CLUSTERS status is "INVALID" but we dont have any RAC configuration.!!!
    SQL> select COMP_NAME,VERSION,STATUS from dba_registry;
    COMP_NAME VERSION STATUS
    Oracle Database Catalog Views 11.2.0.1.0 VALID
    Oracle Database Packages and Types 11.2.0.1.0 VALID
    Oracle Real Application Clusters                11.2.0.1.0          INVALID
    JServer JAVA Virtual Machine 11.2.0.1.0 VALID
    Oracle XDK 11.2.0.1.0 VALID
    Oracle Database Java Packages 11.2.0.1.0 VALID
    Oracle Multimedia 11.2.0.1.0 VALID
    Spatial 11.2.0.1.0 VALID
    Oracle Text 11.2.0.1.0 VALID
    OLAP Analytic Workspace 11.2.0.1.0 VALID
    Oracle OLAP API 11.2.0.1.0 VALID
    OLAP Catalog 11.2.0.1.0 VALID
    Oracle Data Mining 11.2.0.1.0 VALID
    Oracle XML Database 11.2.0.1.0 VALID
    14 rows selected.Kindly let me know what is the otherway !
    Regards
    HAMEED

  • Getting error when running PRC: Transaction Import

    Hi Folks
    Am getting an error when running PRC: Transaction Import to transfer time entries from OTL to Projects.
    Has anybody encountered this before?
    "MSG-20002: ORA-20002: pre_import:ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "APPS.PA_TRX_IMPORT", line 7549"
    If yes, please let me know the resolution.
    Kind Regards
    Srini.

    Pl see if MOS Doc 117395.1 (Transaction Import Interface Troubleshooting Guide) can help
    HTH
    Srini

  • Ora 12154 error when trying to add a database to VS Server Explorer

    Hi Everyone,
    I get the Ora 12154 error when trying to add a database to VS Server Explorer.
    How do I get around this problem.
    The database service is running and I can connect to the database with pl/sql.
    I can also tnsping the database and that is also ok.
    Looks like a problem with the odp.net software.
    I am running the 32 bit Oracle 11g on a Windows7 Home Premium 64 bit PC.
    I am new to this stuff so please help me step by step.
    Thanks.
    Emad

    Hi J. B.
    I have a question related to this. After you told me about the //host:1521/database alias I tried it in a VB 2008 program and it worked and returned data. At least I know that it can be used in a VB program without issues. I just now need to be able to add a connection with the Server Explorer.
    Anyway here is the VB coding I used. I'm new to this and still learning:
    Imports Oracle.DataAccess.Client ' Visual Basic ODP.NET Oracle managed provider
    Public Class Form1
    ' String to connect to the database.
    Dim strConnectionString As String = _
    "Data Source=//emad-pc:1521/emadeva;User ID=scott;Password=tiger;" '
    ' Associate the connection string with a connection object.
    Dim objOracleConnection As New OracleConnection(strConnectionString)
    ' SQL query for returning data rows.
    Dim strSqlQuery As String = _
    "Select dname, deptno " & _
    "From dept " & _
    "Where deptno = 10" '
    ' Command object to make this query work.
    Dim objOracleCommand As New OracleCommand(strSqlQuery, objOracleConnection)
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ' Identify what type of command is being used.
    objOracleCommand.CommandType = CommandType.Text
    Try
    objOracleConnection.Open()
    ' Set up a Data Reader and load it with data.
    Dim objOracleDataReader As OracleDataReader = _
    objOracleCommand.ExecuteReader()
    objOracleDataReader.Read()
    ' Convert the department number to a string.
    lblDepartmentNumberFromOracle.Text = _
    CStr(objOracleDataReader.Item("deptno"))
    Catch ex As Exception
    MessageBox.Show(ex.Message, "Error")
    End Try
    End Sub
    End Class
    I still want to thank you for the help you are providing.
    Truly,
    Emad

  • Error when running my adf application in Jdev 11

    Hi i develop one application that work fine in mi laptop and other computers, but yesterday i load it in one computer that throw me error when running:
    (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.sql.SQLException, msg=ORA-01882: no se ha encontrado la región de la zona horaria
    Didn´t find Time Zone..
    I dont know what could be the problem in that computer.. some regedit configuration??

    Hi Shay!
    Already compare regional settings in both pc and are equals!..also try unistalling an reinstalling jdeveloper.. problem persist!

Maybe you are looking for

  • Podcasts require 2nd Sync to Copy Correctly

    iphone 5, latest version of itunes on win7 Since around Oct/Nov 2013 i've had an issue where I will have to perform a sync TWICE on my machine in order to get podcasts to correctly copy over to my phone.  I've since rebuilt my computer and the issue

  • How do I get refund on some of apple app that I have downloaded and didn't liked it.

    How do I get refund on some of apple apps that I have downloaded and didn't need it?

  • DTP step taking longer time

    Hello Experts As Iam new to SDN I tried to find an answer to this issue. Please find below is the Issue There is a process chain. In this PC, After deleting the Index step, there is a DTP step, which updates the Cube with one DSO; the first DTP step

  • SD Document

    Hi Everyone Can anyone please send me some link for good SD documents preferable step by step document so that i can learn SD on my own. Regards Kaushik

  • There comes a ERROR in installing OFFICE 2013

    When i tried to install office 2013 through a valid product key , it answers me that this product key cannot be used in your region. Please tell what should i do about this..........................