Got ORA-1555, but session is running

I ran a CTAS statement on my database. After 1 hr, I received ora-1555 error in my alert log. But, if I check the database, I can see that the session is active and the size of temp segment is growing. How is that possible? What am I missing here?
Please advice.
Update :Any advice out there?

Are you sure that the session that got the ORA-01555 error was the session running the CTAS statement? Might you have caused a different session to encounter the error?
Justin

Similar Messages

  • ORA - 12560 Error Whilst i run form

    Can anybody please figure out my problem ???
    i got ORA 12560 Error when i run form ..i am new with oracle ..please help me out ..

    Is this an Oracle Apps environment? If so, what is the application release?
    Is this a standard or custom form?
    Please elaborate more so others can help.

  • Itunes storage says i got 4172 photos, but i actually only have 1359 photos in my photo library. Im running out of space because of it.

    i updated my iphone to ios8, but it needs 5 gb so i saved my photos to my windows pc and deleted everthing. When im finally updated, i synced my iphone to itunes and all my photos are saved to my phone which are 3000 photos (rounded) and so i screencaptured only 1000 photos so that it can be saved to my photo library and i un-synced my photos so that they are also deleted from my phone because i dont need them anymore. Now i am running out of space because the storage says i got 4172 photos but i only have 1359 showing in my photo library.

    Open Settings->General->Date & Time.  Turn off Set Automatically & roll back the date a year.  Then open your photos app & the Recently Deleted folder.  The phantom photos should be there.  Tap Select & Delete All,
    Now go back to Settings->General->Date & Time & toggle Set Automatically back on.
    Hope this helps!

  • In my account I need to enter my credit card data, but the computer says: session is running out of time. What can I do?

    In my account I need to enter my credit card data, but the computer says: session is running out of time. What can I do?

    Connect the device to your iTunes library in Recovery Mode using the instructions in this Apple support document and restore it to factory settings.
    http://support.apple.com/kb/ht1808
    B-rock

  • Dreaded ORA 1555 and EXP-00056 and LOB Corruption

    I am on Oracle 10.2.0.4 on HP UNIX 11.2.
    I have started getting
    EXP-00056: ORACLE error 1555 encountered
    ORA-01555: snapshot too old: rollback segment number with name "" too small
    ORA-22924: snapshot too old
    I have looked into various causes and still no clue why it happening:
    1.     Undo_retention, it Is set to 5 hours (converted to seconds0> My export backup lasts
    For 1.5 to 2 hours.
    2.     My undo tablespace size is 28GB. Looking at undo advisor I only need 5GB.
    3.     Yes, my table where error message comes consistent has LOB (BLOB) column.
    I did check for LOB corruption as per metalink note (script shown below) and it gives
    Me messages:
    rowid AABV8QAAJAAGAn6AAM is corrupt. ORA-01403: no data found
    rowid AABV8QAAKAAAcaAAAX is corrupt. ORA-01403: no data found
    rowid AABV8QAAKAAAcamABr is corrupt. ORA-01403: no data found
    rowid AABV8QAAKAAAcamABu is corrupt. ORA-01403: no data found
    I do not know what to make of these messages because when I look in my table where problem
    Where error occurs:
    Select pr_id, col1, col2 from pr where rowed in (above rowids)’; there are
    No rows. What does this mean? Why it is corruption.
    Below is the script used to find LOB corruption…
    declare
    pag number;
    len number;
    c varchar2(10);
    charpp number := 8132/2;
    begin
    for r in (select rowid rid, dbms_lob.getlength (LS_VALUE) len
    from PR_ADDTL_DATA) loop
    if r.len is not null then
    for page in 0..r.len/charpp loop
    begin
    select dbms_lob.substr (LS_VALUE, 1, 1+ (page * charpp))
    into c
    from PR_ADDTL_DATA
    where rowid = r.rid;
    exception
    when others then
    dbms_output.put_line('rowid ' || r.rid || ' is corrupt. ' || sqlerrm);
    commit;
    end;
    end loop;
    end if;
    end loop;
    end;
    /

    user632098 wrote:
    Thanks; but script in my therad one supplied by Oracle to check for lob corruption. It has nothing to do with the export error.
    What I am asking is if there in no row on a page (ORA_1403) , that does not mean that there is a corruption. If I was getting execption like ORA-1555 when running this script; that will mean there is lob corruption,ORA-01555 has NOTHING to do a "corruption"; LOB related or otherwise!
    Most likely cause is that some session is doing DML against table & doing "frequent" COMMIT;
    while some (other?) session is doing SELECT against same table.

  • Fetch cross commit doens't throw ora-1555 in 10.2.0.3

    in this link, Ktye put an example of fetch across commit which will throw ora-1555.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:546822742166
    But I can't reproduce it in oracle 10.2.0.3. Anything changed for undo in 10g? I set inmemory_undo to false, but can't reproduce the ora-1555.
    SQL> drop table t;
    Table dropped.
    SQL> create table t as select * from all_objects;
    Table created.
    SQL> create index t_idx on t(object_id);
    Index created.
    SQL>
    SQL> create rollback segment rbs_small storage (initial 1k next 1k maxextents 2) tablespace system;
    Rollback segment created.
    SQL> alter rollback segment rbs_small online;
    Rollback segment altered.
    SQL>
    SQL> begin
      2          for x in ( select * from t where object_id > 0 )
      3          loop
      4                  dbms_transaction.use_rollback_segment( 'rbs_small' );
      5                  update t set object_name = lower(object_name)
      6                    where object_id = x.object_id;
      7                  commit;
      8          end loop;
      9  end;
    10  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select count(*) from t;
      COUNT(*)
         16627
    SQL>

    Thanks everyone for the suggestion
    Adding the hint as /*+ index(t t_idx) */ or increase the undo tablespace to 400k doesn't help.
    I found it used lots of in memory undo (65216004) in the first run, so before the second run, I tuned off the in memory undo, but still can't reproduce ora-01555
    First run
    SQL> create undo tablespace UNDOTBS2 datafile 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS2.DBF' size 400k reuse;
    Tablespace created
    SQL> alter system set undo_tablespace=UNDOTBS2;
    System altered
    SQL> alter system flush BUFFER_CACHE;
    System altered
    SQL> alter session set plsql_optimize_level=0;
    Session altered
    SQL> select b.NAME,a.VALUE from v$mystat a , v$statname b where a.STATISTIC#=b.STATISTIC# and b.NAME like '%undo%size%';
    NAME                                                                  VALUE
    undo change vector size                                               47680
    IMU undo allocation size                                                104
    SQL> begin
      2          for x in ( select /*+ index(t t_idx) */ * from t where object_id > 0 )
      3          loop
      4                  update t set object_name = lower(object_name)
      5                    where object_id = x.object_id and rownum=1;
      6                  commit;
      7          end loop;
      8  end;
      9  /
    PL/SQL procedure successfully completed
    SQL> select b.NAME,a.VALUE from v$mystat a , v$statname b where a.STATISTIC#=b.STATISTIC# and b.NAME like '%undo%size%';
    NAME                                                                  VALUE
    undo change vector size                                            17403772
    IMU undo allocation size                                           65216004
    SQL> select count(*) from t;
      COUNT(*)
         50249
    SQL> alter system set "_in_memory_undo"=false;
    System alteredAfter tune off the in memory undo, the second run
    SQL> alter system set undo_tablespace=UNDOTBS2;
    System altered
    SQL> alter system flush BUFFER_CACHE;
    System altered
    SQL> alter session set plsql_optimize_level=0;
    Session altered
    SQL> select b.NAME,a.VALUE from v$mystat a , v$statname b where a.STATISTIC#=b.STATISTIC# and b.NAME like '%undo%size%';
    NAME                                                                  VALUE
    undo change vector size                                            17445460
    IMU undo allocation size                                           65216004
    SQL> begin
      2          for x in ( select /*+ index(t t_idx) */ * from t where object_id > 0 )
      3          loop
      4                  update t set object_name = lower(object_name)
      5                    where object_id = x.object_id and rownum=1;
      6                  commit;
      7          end loop;
      8  end;
      9  /
    PL/SQL procedure successfully completed
    SQL> select b.NAME,a.VALUE from v$mystat a , v$statname b where a.STATISTIC#=b.STATISTIC# and b.NAME like '%undo%size%';
    NAME                                                                  VALUE
    undo change vector size                                            34730428
    IMU undo allocation size                                           65216004
    SQL> select count(*) from t;
      COUNT(*)
         50249

  • Ora-1555 during exports and imports. possible causes. ?

    From my understanding : I know that this error will occur due to a undo retention being smaller sizer. or rather I should put it that increasing this parameter should help fix the issue.
    Whats not clear is below :
    Qn. Is it possible that ORA-1555 errors can occur during 'import' even if no other sessions are connected and performing any transaction/dmls ?
    Qn. Also why does a ORA-1555 occur during a 'export' ? Is the same reasons ie. there could be possible DMLs occuring ?

    Hello,
    About your first question:
    Qn. Is it possible that ORA-1555 errors can occur during 'import' even if no other sessions are connected and performing any transaction/dmls ?I've never got this error during import but, I always care to get enough place on the UNDO Tablespace.
    With classical import you have a commit after each Table's import (by default) and a commit after each row's import if COMMIT=Y so as to use less space in the Rollback Segment.
    With Datapump, I often decrease the undo_retention parameter before importing so as to use less space on the UNDO Tablespace.
    About the second question:
    Qn. Also why does a ORA-1555 occur during a 'export' ? Is the same reasons ie. there could be possible DMLs occuring ?To get a consistent image of the exported data with the classical export you may use the parameter CONSISTENT=Y. While you may use the FLASHBACK_TIME parameter with Datapump (so it means that the undo_retention should be large enough when exporting).
    Both use the Undo entries, so I imagine that's possible to get some error (may be ORA-01555) if you don't have enough place on your UNDO Tablespace.
    It's possible (thank to the Rollback Segments) to have concurrent DML on the database while exporting.
    Anyway, from my point of view, while exporting or importing if you have enough space on your UNDO tablespace and a correct undo_retention setting (not too large when importing not too small when exporting) it should be fine.
    Hope this help.
    Best regards,
    Jean-Valentin

  • R3load export of  table REPOSRC with lob col - error ora-1555 and ora-22924

    Hello,
    i have tried to export data from our production system for system copy and then upgrade test. while i export the R3load job has reported error in table REPOSRC, which has lob column DATA. i have apsted below the conversation in which i have requested SAP to help and they said it comes under consulting support. this problem is in 2 rows of the table.
    but i would like to know if i delete these 2 rows and then copy from our development system to production system at oracle level, will there be any problem with upgrade or operation of these prorgams and will it have any license complications if i do it.
    Regards
    Ramakrishna Reddy
    __________________________ SAP SUPPORT COnveration_____________________________________________________
    Hello,
    we have are performing Data Export for System copy of our Production
    system, during the export, R3load Job gave error as
    R3LOAD Log----
    Compiled Aug 16 2008 04:47:59
    /sapmnt/DB1/exe/R3load -datacodepage 1100 -
    e /dataexport/syscopy/SAPSSEXC.cmd -l /dataexport/syscopy/SAPSSEXC.log -stop_on_error
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (DB) INFO: Export without hintfile
    (NT) Error: TPRI_PAR: normal NameTab from 20090828184449 younger than
    alternate NameTab from 20030211191957!
    (SYSLOG) INFO: k CQF :
    TPRI_PAR&20030211191957&20090828184449& rscpgdio 47
    (CNV) WARNING: conversion from 8600 to 1100 not possible
    (GSI) INFO: dbname = "DB120050205010209
    (GSI) INFO: vname = "ORACLE "
    (GSI) INFO: hostname
    = "dbttsap "
    (GSI) INFO: sysname = "AIX"
    (GSI) INFO: nodename = "dbttsap"
    (GSI) INFO: release = "2"
    (GSI) INFO: version = "5"
    (GSI) INFO: machine = "00C8793E4C00"
    (GSI) INFO: instno = "0020111547"
    (DBC) Info: No commits during lob export
    DbSl Trace: OCI-call 'OCILobRead' failed: rc = 1555
    DbSl Trace: ORA-1555 occurred when reading from a LOB
    (EXP) ERROR: DbSlLobGetPiece failed
    rc = 99, table "REPOSRC"
    (SQL error 1555)
    error message returned by DbSl:
    ORA-01555: snapshot too old: rollback segment number with name "" too
    small
    ORA-22924: snapshot too old
    (DB) INFO: disconnected from DB
    /sapmnt/DB1/exe/R3load: job finished with 1 error(s)
    /sapmnt/DB1/exe/R3load: END OF LOG: 20100816104734
    END of R3LOAD Log----
    then as per the note 500340, i have chnaged the pctversion of table
    REPOSRC of lob column DATA to 30, but i get the error still,
    i have added more space to PSAPUNDO and PSAPTEMP also, still the same
    error.
    the i have run the export as
    exp SAPDB1/sap file=REPOSRC.dmp log=REPOSRC.log tables=REPOSRC
    exp log----
    dbttsap:oradb1 5> exp SAPDB1/sap file=REPOSRC.dmp log=REPOSRC.log
    tables=REPOSRC
    Export: Release 9.2.0.8.0 - Production on Mon Aug 16 13:40:27 2010
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit
    Production
    With the Partitioning option
    JServer Release 9.2.0.8.0 - Production
    Export done in WE8DEC character set and UTF8 NCHAR character set
    About to export specified tables via Conventional Path ...
    . . exporting table REPOSRC
    EXP-00056: ORACLE error 1555 encountered
    ORA-01555: snapshot too old: rollback segment number with name "" too
    small
    ORA-22924: snapshot too old
    Export terminated successfully with warnings.
    SQL> select table_name, segment_name, cache, nvl(to_char
    (pctversion),'NULL') pctversion, nvl(to_char(retention),'NULL')
    retention from dba_lobs where
    table_name = 'REPOSRC';
    TABLE_NAME | SEGMENT_NAME |CACHE | PCTVERSION | RETENTION
    REPOSRC SYS_LOB0000014507C00034$$ NO 30 21600
    please help to solve this problem.
    Regards
    Ramakrishna Reddy
    Dear customer,
    Thank you very much for contacting us at SAP global support.
    Regarding your issue would you please attach your ORACLE alert log and
    trace file to this message?
    Thanks and regards.
    Hello,
    Thanks for helping,
    i attached the alert log file. i have gone through is, but i could
    not find the corresponding Ora-01555 for table REPOSRC.
    Regards
    Ramakrishna Reddy
    +66 85835-4272
    Dear customer,
    I have found some previous issues with the similar symptom as your
    system. I think this symptom is described in note 983230.
    As you can see this symptom is mainly caused by ORACLE bug 5212539 and
    it should be fixed at 9.2.0.8 which is just your version. But although
    5212539 is implemented, only the occurrence of new corruptions will be
    avoided, the already existing ones will stay in the system regardless of the patch.
    The reason why metalink 452341.1 was created is bug 5212539, since this
    is the most common software caused lob corruption in recent times.
    Basically any system that was running without a patch for bug 5212539 at some time in the past could be potentially affected by the problem.
    In order to be sure about bug 5212539 can you please verify whether the
    affected lob really is a NOCACHE lob? You can do this as described in
    mentioned note #983230. If yes, then there are basically only two
    options left:
    -> You apply a backup to the system that does not contain these
    corruptions.
    -> In case a good backup is not available, it would be possible to
    rebuild the table including the lob segment with possible data loss . Since this is beyond the scope of support, this would have to be
    done via remote consulting.
    Any further question, please contact us freely.
    Thanks and regards.
    Hello,
    Thanks for the Help and support,
    i have gone through  the note 983230 and metalink 452341.1.
    and i have ran the script and found that there are 2 rows corrupted in
    the table REPOSRC. these rows belong to Standard SAP programs
    MABADRFENTRIES & SAPFGARC.
    and to reconfirm i have tried to display them in our development system
    and production system. the development systems shows the src code in
    Se38 but in production system it goes to short dump DBIF_REPO_SQL_ERROR.
    so is it possible to delete these 2 rows and update ourselves from our
    development system at oracle level. will it have any impact on SAP
    operation or upgrade in future.
    Regards
    Ramakrishna Reddy

    Hello, we have solved the problem.
    To help someone with the same error, what we have done is:
    1.- wait until all the processes has finished and the export is stopped.
    2.- startup SAP
    3.- SE14 and look up the tables. Crete the tables in the database.
    4.- stop SAP
    5.- Retry the export (if you did all the steps with sapinst running but the dialogue window in the screen) or begin the sapinst again with the option: "continue with the old options".
    Regards to all.

  • PLSQL compiles but doesn't run.. I've declared it everywhere but still..

    PLSQL compiles but doesn’t run.. I’ve declared it everywhere but still..
    Afternoon.. Hopefully a quick one for someone.. I’m trying to run a Concurrent Program in ORACLE Financials using a Data Template derived BI Publisher report.
    Error message received..
    SUBIXCLT module: UofS Expense Claim Tracking Report
    +--------------------------------------------------------------------------
    All Parameters: raisedby=:status=:claimant=:expense_date_from=:expense_date_to=:LP_ORDERED_BY=Expense Report Number
    Data Template Code: SUBIXCLT
    Data Template Application Short Name: PO
    Debug Flag: N
    {raisedby=, claimant=, expense_date_to=, expense_date_from=, status=, LP_ORDERED_BY=Expense Report Number}
    Calling XDO Data Engine...
    [060410_025628319][][STATEMENT] Start process Data
    [060410_025628324][][STATEMENT] Process Data ...
    [060410_025628329][][STATEMENT] Executing data triggers...
    [060410_025628329][][STATEMENT] BEGIN
    SUBIXCLT.claimant := :claimant ;
    SUBIXCLT.expense_date_from := :expense_date_from ;
    SUBIXCLT.expense_date_to := :expense_date_to ;
    SUBIXCLT.raisedby := :raisedby ;
    SUBIXCLT.status := :status ;
    SUBIXCLT.lp_ordered_by := :lp_ordered_by ;
    :XDO_OUT_PARAMETER := 1;
    END;
    l_flag Boolean;
    BEGIN
    l_flag := SUBIXCLT.BEFOREREPORT(L_ORDERED) ;
    if (l_flag) then
    :XDO_OUT_PARAMETER := 1;
    end if;
    end;
    [060410_025628356][][EXCEPTION] SQLException encounter while executing data trigger....
    java.sql.SQLException: ORA-06550: line 4, column 33:
    PLS-00201: identifier 'L_ORDERED' must be declared
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignoredThe Data Template
    The Data Template
    <?xml version="1.0" encoding="utf-8" ?>
    - <dataTemplate name="UofS_OutstandngExpenses_Report" defaultPackage="SUBIXCLT" dataSourceRef="FINDEV" version="1.0">
    - <properties>
      <property name="xml_tag_case" value="upper" />
      <property name="include_parameters" value="true" />
      <property name="debug_mode" value="on" />
      </properties>
    - <parameters>
      <parameter name="claimant" dataType="character" defaultValue="" />
      <parameter name="expense_date_from" dataType="date" defaultValue="" />
      <parameter name="expense_date_to" dataType="date" defaultValue="" />
      <parameter name="raisedby" dataType="character" defaultValue="" />
      <parameter name="status" dataType="character" defaultValue="" />
      <parameter name="lp_ordered_by" dataType="character" defaultValue="" />
      </parameters>
    - <dataQuery>
      <dataTrigger name="beforeReportTrigger" source="SUBIXCLT.BEFOREREPORT(L_ORDERED)" />
    - <sqlStatement name="Q1">
    - <![CDATA[
    SELECT DISTINCT
    erh.invoice_num,
    pap.full_name EMP_CLAIMING,
    DECODE(NVL(erh.expense_status_code, 'Not yet Submitted (NULL)'), 'CANCELLED', 'CANCELLED',
         'EMPAPPR', 'Pending Individuals Approval',      'ERROR', 'Pending System Administrator Action',
         'HOLD_PENDING_RECEIPTS     ', 'Hold Pending Receipts', 'INPROGRESS', 'In Progress', 'INVOICED', 'Ready for Payment',
         'MGRAPPR', 'Pending Payables Approval', 'MGRPAYAPPR', 'Ready for Invoicing', 'PAID', 'Paid',
         'PARPAID', 'Partially Paid',     'PAYAPPR', 'Payables Approved',     'PENDMGR', 'Pending Manager Approval',
         'PEND_HOLDS_CLEARANCE', 'Pending Payment Verification',     'REJECTED', 'Rejected',     'RESOLUTN',     'Pending Your Resolution',
         'RETURNED',     'Returned',     'SAVED',     'Saved',     'SUBMITTED',     'Submitted',     'UNUSED',     'UNUSED',
         'WITHDRAWN','Withdrawn',     'Not yet Submitted (NULL)') "EXPENSE_STATUS" ,
    NVL(TO_CHAR(erh.report_submitted_date,'dd-MON-yyyy'),'NULL') SUBMIT_DATE,
    NVL(TO_CHAR(erh.expense_last_status_date,'dd-MON-yyyy'),'NULL') LAST_UPDATE,
    erh.override_approver_name ER_Approver,
    fu.description EXP_ADMIN,
    erh.total,
    erh.description 
    FROM
    AP_EXPENSE_REPORT_HEADERS_all erh,
    per_all_people_f pap, fnd_user fu
    WHERE erh.employee_id = pap.person_id
    AND fu.user_id = erh.created_by
    AND NVL(erh.expense_status_code, 'Not yet Submitted') NOT IN  ('MGRAPPR', 'INVOICED', 'PAID', 'PARPAID')
    AND pap.full_name = NVL(:claimant, pap.full_name)
    AND TRUNC(erh.report_submitted_date) BETWEEN NVL(:expense_date_from, '01-JAN-1999') AND NVL(:expense_date_to,'31-DEC-2299')
    AND fu.description = NVL(:raisedby,fu.description)
    AND erh.expense_status_code = NVL(:status,erh.expense_status_code) &LP_ORDERED_BY
      ]]>
      </sqlStatement>
      </dataQuery>
      <dataTrigger name="beforeReportTrigger" source="SUBIXCLT.BEFOREREPORT(L_ORDERED)" />
    - <dataStructure>
    - <group name="G_XP_CLM_TRACKNG" source="Q1">
      <element name="INVOICE_NUM" value="INVOICE_NUM" />
      <element name="EMP_CLAIMING" value="EMP_CLAIMING" />
      <element name="EXPENSE_STATUS" value="EXPENSE_STATUS" />
      <element name="SUBMIT_DATE" value="SUBMIT_DATE" />
      <element name="LAST_UPDATE" value="LAST_UPDATE" />
      <element name="LP_ORDERED_BY" dataType="varchar2" value="SUBIXCLT.LP_ORDERED_BY" />
      </group>
      </dataStructure>
      </dataTemplate>The PL SQL..
    The PL SQL..
    CREATE OR REPLACE PACKAGE Subixclt IS
    L_ORDERED  VARCHAR2(50);
    RAISEDBY VARCHAR2(50);
    STATUS VARCHAR2(50);
    CLAIMANT VARCHAR2(50);
    LP_ORDERED_BY VARCHAR2(50);
    FUNCTION BEFOREREPORT(L_ORDERED IN VARCHAR2) RETURN VARCHAR2;
    EXPENSE_DATE_FROM DATE;
    EXPENSE_DATE_TO DATE;
    --RETURN VARCHAR2;
    END;
    CREATE OR REPLACE PACKAGE BODY Subixclt IS
    FUNCTION BEFOREREPORT(L_ORDERED IN VARCHAR2)RETURN VARCHAR2 IS
    BEGIN
    Fnd_File.PUT_LINE(Fnd_File.LOG,'L_ORDERED'||L_ORDERED);
    DECLARE
    LP_ORDERED_BY VARCHAR2(50);
    L_ORDERED  VARCHAR2(50);
    RAISEDBY VARCHAR2(50);
    STATUS VARCHAR2(50);
    CLAIMANT VARCHAR2(100);
    EXPENSE_DATE_FROM DATE;
    EXPENSE_DATE_TO DATE;
    BEGIN
    IF (LP_ORDERED_BY='Expense Report Number') THEN
         LP_ORDERED_BY :='order by 1 asc;';
      ELSIF (LP_ORDERED_BY='Person Claiming') THEN
         LP_ORDERED_BY :='order by 2 asc;';
      ELSIF (LP_ORDERED_BY='Submit Date') THEN
      LP_ORDERED_BY :='order by 4 asc;';
      END IF;
    RETURN(L_ORDERED);
    --RETURN NULL;
    END;
    END;
    END;Thanks for looking..
    Steven
    Edited by: Mr_Alkan on Jun 4, 2010 3:35 PM

    One has to initialise a session first for use with Oracle Apps if you want to make it run as a concurrent job.
    Any decleration within your package will not be recognised unless initialisation is sucessful.
    Investigate the built-in packages:
    FND_GLOBAL - for initialisation
    FND_SUBMIT - for setting session relevant parameters
    -- function returns true or false depending on whether the initialisation was sucessful or not
    create or replace function is_Init_OK (p_User_Name       in varchar2
                                          ,p_Responsibility  in varchar2
                                          ,p_Language        in varchar2) return boolean as
      b_Set_NLS   boolean;
      b_Set_Mode  boolean;
      r_ISet      fnd_Init := Get_Init_Set(p_User_Name, p_Responsibility);
      begin
        -- 1
        fnd_global.apps_initialize(r_ISet.User_ID, r_ISet.Resp_ID, r_ISet.App_ID);
        -- 2
        b_Set_NLS := fnd_submit.set_nls_options(p_Language);
        -- 3
        b_Set_Mode  := fnd_submit.set_mode (false);
        return (b_Set_Mode and b_Set_NLS and (    (r_ISet.Resp_ID is not null)
                                              and (r_ISet.User_ID is not null)
        exception
          when others then
            return false;
    end is_Init_OK;
    -- for example
    declare
      l_User_ID number = 'IMPORT_POST'; --- import post user
      l_Resp    number =  'Import and Posting responsibility' -- import posting responsibility
      l_Language varchar2(100) := 'AMERICAN';
      b_Init boolean := false;
      INIT_EXCEPTION exception;
    begin
      b_Init := is_Init_OK(l_User_ID, l_Resp, l_Language);
      if (not b_Init) then
        raise INIT_EXCEPTION;
      end if;
      -- conitnue with your processing
      exception 
        when others then
          when INIT_EXECPTION then
          when others then
    end;
    /

  • Occasionally got ORA-12545 error

    I have 2-node Oracle 10g RAC set up. From a remote client, i run my sample program to retrieve scott.emp data. Occasionally i got ORA-12545 connection error. Using cpp app and Perl DBI app for tested it. And I got the same problem.
    ./mysample
    Environment and Connection created
    Result Set:
    7369 SMITH CLERK 7902 17-DEC-80 800 0 20
    7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
    7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
    7566 JONES MANAGER 7839 02-APR-81 2975 0 20
    7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
    7698 BLAKE MANAGER 7839 01-MAY-81 2850 0 30
    7782 CLARK MANAGER 7839 09-JUN-81 2450 0 10
    7788 SCOTT ANALYST 7566 19-APR-87 3000 0 20
    7839 KING PRESIDENT 0 17-NOV-81 5000 0 10
    7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
    7876 ADAMS CLERK 7788 23-MAY-87 1100 0 20
    7900 JAMES CLERK 7698 03-DEC-81 950 0 30
    7902 FORD ANALYST 7566 03-DEC-81 3000 0 20
    7934 MILLER CLERK 7782 23-JAN-82 2300 0 10
    Environment and Connection terminated
    ./mysample
    Aborted
    ./select.pl
    DBI connect('lot','scott',...) failed: ORA-12545: Connect failed because target host or object does not exist (DBD ERROR: OCIServerAttach) at ./select.pl line 6
    Here is the sqlnet.log:
    Fatal NI connect error 12545, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXXXX)(PORT=1521))(LOAD_BALANC
    VERSION INFORMATION:
    TNS for Linux: Version 10.1.0.2.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 10.1.0.2.0 - Production
    Time: 15-NOV-2004 10:30:22
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12545
    TNS-12545: Connect failed because target host or object does not exist
    ns secondary err code: 12560
    nt main err code: 515
    TNS-00515: Connect failed because target host or object does not exist
    nt secondary err code: 2
    nt OS err code: 0
    Anyone knows what went wrong?
    thanks,
    qicheng

    I have same problem :-( When I try to connect from client station, but when Im connecting from one of nodes it is OK :-(
    Ales

  • Ora-1555

    hello ,
    I know this question has been posted in this forum a lot of times and i have
    read most of them from the archives but still can anybody help me out with
    this.
    Most of the activities on our system are short queries and updates and there
    are no batch files doing doing huge updates/selects that are running.
    initially i had 10 rollback segements with 512K of initial,next and 5M of
    optimal. and the statistics that i used to get from v$rollstat was this
    dbo@ENM1516>select extents,writes,gets,waits,optsize,hwmsize,shrinks,wraps,aveshrink from v$rollstat;
    EXTENTS WRITES GETS WAITS OPTSIZE HWMSIZE SHRINKS WRAPS AVESHRINK
    6 10416 301 0 364544 0 0 0
    11 93479584 303442 0 5242880 5627904 0 212 0
    11 171553042 358345 20 5242880 93179904 18 390 4864000
    11 93410072 346803 42 5242880 5627904 0 213 0
    11 94937792 304325 2 5242880 5627904 0 216 0
    11 89638294 301663 2 5242880 5627904 0 204 0
    11 169077244 340748 3 5242880 100859904 19 400 5012210
    11 90504356 303184 0 5242880 5627904 0 206 0
    11 91587584 303244 1 5242880 5627904 0 209 0
    11 118358574 315595 3 5242880 37371904 7 276 4534857
    11 96496414 303315 1 5242880 5627904 0 219 0
    11 rows selected.
    and i used to get the snapshot too old error
    after this i changed the rollback segment parameters to intial 1M, next 1M,
    optimal 50M and minextent 20 maxextent 400
    Isn't this supposed to reduce the wraps? but now i get these statistics from
    v$rollstat
    dbo@ENM1516>select extents,writes,gets,waits,optsize,hwmsize,shrinks,wraps,aveshrink from v$rollstat
    EXTENTS WRITES GETS WAITS OPTSIZE HWMSIZE SHRINKS WRAPS AVESHRINK
    6 9750 300 0 364544 0 0 0
    20 223812724 631736 1 52428800 21295104 0 534 0
    20 223707032 673188 29 52428800 21295104 0 534 0
    20 224711684 632845 2 52428800 21295104 0 537 0
    50 310731946 663666 2 52428800 102510592 5 637 9859891
    50 223743564 631558 0 52428800 53243904 0 534 0
    20 224872176 632430 2 52428800 21295104 0 538 0
    50 223026560 629640 1 52428800 53243904 0 532 0
    20 223153556 628883 1 52428800 21295104 0 532 0
    50 223274594 654880 17 52428800 53243904 0 533 0
    50 351965640 690660 3 52428800 121401344 7 688 9736777
    11 rows selected.
    if you can see, the wraps have more than doubled. and as expected i am still
    getting ora-1555
    what should i do for this.
    warm regards,
    Pinto.

    Thanks Paul.
    You cannot use the "SET TRANSACTION" command with the export utility. If it is possible, take all but the large rollback segments off line, run the export, bring the rollback segments back online.

  • ORA-02394: exceeded session limit on IO usage

    I have one sql took much time to run and got this..
    ORA-02394: exceeded session limit on IO usage, you are being logged of
    when I checked profile options
    SQL> select PROFILE,RESOURCE_NAME,LIMIT from dba_profiles where RESOURCE_NAME='LOGICAL_READS_PER_SESSION';
    PROFILE RESOURCE_NAME
    LIMIT
    DEFAULT LOGICAL_READS_PER_SESSION
    UNLIMITED
    SQL> select PROFILE,RESOURCE_NAME,LIMIT from dba_profiles where RESOURCE_NAME='LOGICAL_READS_PER_CALL';
    PROFILE RESOURCE_NAME
    LIMIT
    DEFAULT LOGICAL_READS_PER_CALL
    UNLIMITED
    Is there anything we can do here bcaz both profiles have been set to unlimted?

    Hello,
    Oracle 8.1.7.4 is the final patchset of the last release for Oracle 8i, so it's a rather
    stable version.
    Do you have a way to tune this query so that it can run faster ?
    Do you have correct statistics on the optimizer ?
    Best regards,
    Jean-Valentin

  • Got ORA-00439:  feature not enabled: Fine-grained access control

    Trying to implement VPD, I've got ORA-00439 when implementing Fine-grained access control. Will this be available on XE?

    Hi,
    lewisc: Yes. I mean "persistent package variables" and I know this feature is available in any version of Oracle. But, I don't know how It works whith HTMLDB when using "HTMLDB Authentication Scheme".
    i.e.: when I connect to an HTMLDB Application, I can see a new session on
    V$SESSION with username=ANONYMOUS with SID=xxx and SERIAL#=yyyy.
    1.-Will HTMLDB use the same session until User Press "logout" link?
    2.-Will this particular Database session be exclusive or shared for any HTMLDB sessions?
    3.-If I Logout from HTMLDB App, then Login again, Will HTMLDB reuse the same session?
    or will create a new one?
    -About VPD.
    VPD is a Personal Edition feature too. All features of EE is
    available on Personal Edition except RAC and a few others
    specials features.
    After all:
    Maybe with these examples you can see my question.
    CREATE OR REPLACE VIEW myviewname
    AS
    SELECT *
    FROM mytablename
    WHERE somecolumn = V('Fxxx_HTMLDB_ITEM_NAME')
    CREATE OR REPLACE TRIGGER mytriggername
    BEFORE
    INSERT
    ON mytablename
    FOR EACH ROW
    BEGIN
    :new.mycolumn1 := V('Fxxx_HTMLDB_ITEM_NAME');
    END;
    Can these two examples work? If so, maybe there is something wrong in my applications.
    Thanks GaryM for your issues and I already know this can be done that way

  • ORA-1555 with Parallel query problem

    Hi
    We are getting many ora-1555 errors with parallel query stuff. Few queries are throwing with hint /* Q98989129 NO_EXPAND INDEX or /* Q908231094 INDEX_RRS. Our applicaiton is like DSS kind with bulk loading and big reports. I have doubled the undo retention and undo size to 200G and set the trace event. But most of the queries are parallel queries. We are not using the following query in applicaiton. seems like it is parallel sub queries. I need to know the exact mechanism how to devide the parallel queries with its degree of parallalism.
    SELECT /*+ Q277874009 INDEX_RRS(A1 "PK_TF_UTRAN_UCELL10_TAB") */ A1."TSTAMP" C0,A1."INSTANCE_ID" C1,A1."PMNOFOIRATHOM
    ULTIGSMFAILURE" C2,A1."PMNOFOIRATHOCS57GSMFAIL" C3,A1."PMNOFOSPEECHGSMFAILURE" C
    4,A1."PMNOFOHOSTANDGSMFAILURE" C5 FROM "FLEXPM"."ERC_TF_UTRAN_UCELL10_TAB" PX_G
    RANULE(0, BLOCK_RANGE, DYNAMIC) A1 WHERE A1."TSTAMP"(+)<=TO_DATE('2006-09-25 23:
    45:00', 'yyyy-mm-dd hh24:mi:ss')
    Thanks

    Hi,
    probably the error is due to wrong execution plans choosen by the optimizer.
    Are the table statistics up to date? Did You use parallel w/o and degree (ex. defining parallel on object using DEFAULT clause instead of a DEGREE)?
    Normally, parallel execution can be done in 2 ways, considering the driving object:
    1. like in previous versions, like 7.3, w/o partitioning, the object is split, by rowid, directly from the parallel coordinator to the query slaves (normally a number that can be equivalent to the degree of parallelism or the double in case of sort e/o joins).
    2. considering a partitioned object, for every partition/subpartition (phisical segment), a query slaves is made in charge.
    In both ways, the original session (SID) is the parallel coordinator that coordinates the salves executions.
    The hints and statements that You've reported are tipical queries used by slave process.
    In my experience, setting the PARALLEL degree to DEFAULT (no degree during CREATE or ALTER of the object after PARALLEL clause) will cause an "explosion" of slaves startup that can conduct to yr errors.
    Hope this helps
    Max

  • ORA-20515: Invalid session

    Hi
    I find following error messages in my glassfish.log file. The applications are running fine but don't know why this error comes every now and then in the log file only.
    Operating System: CentOS 6.4 64bit
    Oracle XE 11G
    Apex 4.2.3.00.08
    Apex Listener 2.0.5
    Glasfish 3.1.2.2
    I am also using Nginx as reverse proxy server.
    [#|2013-11-06T12:02:10.103-0500|SEVERE|glassfish3.1.2|null|_ThreadID=83;_ThreadName=Thread-2;|ORA-20515: Invalid session
    ORA-06512: at "APEX_040200.WWV_FLOW_DML", line 2045
    ORA-06512: at "APEX_040200.HTMLDB_UTIL", line 2659
    ORA-06512: at line 2
    java.sql.SQLException: ORA-20515: Invalid session
    ORA-06512: at "APEX_040200.WWV_FLOW_DML", line 2045
    ORA-06512: at "APEX_040200.HTMLDB_UTIL", line 2659
    ORA-06512: at line 2
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223)
      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
      at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:205)
      at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1043)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336)
      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612)
      at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3713)
      at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4755)
      at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1378)
      at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
    Any help will be much appreciated.
    Habib

    Hi Habib,
    this error can occur when requests to APEX_UTIL.GET_BLOB_FILE to download BLOB content on a DML Form page pass an invalid or expired session id. You should be able find accompanying requests to APEX_UTIL.GET_BLOB_FILE or HTMLDB_UTIL.GET_BLOB_FILE in your web server log files.
    Regards,
    Christian

Maybe you are looking for

  • Want to buy a Photoshop CS3 Classroom in a book e-book

    Hi! I'm deseperatly searching a version of Photoshop CS3 Classroom in a book e-book I could buy but... IN FRENCH. Is there a way? Please, if you know where I could find it, it really would be a blessing for me! I'm looking over and over since 2 days

  • Album art not showing on other Mac

    On my iMac all the album art was present in iTunes. After matching and uploading all the songs (afterwards I deleted them and redownloaded to get the 256kbps version) everything was still ok on my iMac. However on my MacBook Pro only several cd's dis

  • Another java newbie question:  "Link errors"

    In the environments I've attempted compiling in, it seems that there is a just-in-time default, which means that any missing classes are not found until run time. Is there any way to to run javac so that what we used to call "link errors" will be dis

  • Package content question.

    I just got my new Ipod Nano 4th generation. What is the little white plastic thing for. The ipod fits in one side of it, but it will not set anywhere. It look like a dock, but where is it suppose to set.

  • Alert Text:  Something Happened

    When I restart or start up my computer I get this warning from FCP...Alert Text: Something Happened...Any ideas?