ORA-04045: errors during recompilation/revalidation

I was applying catlog.sql and catproc.sql, but has some problem during it, and now, when I try to access a database in the sqlplus appear follow errors:
ERROR:
ORA-04045: errors during recompilation/revalidation of
SYS.DBMS_APPLICATION_INFO
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 2
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 2
Error accessing package DBMS_APPLICATION_INFO
Someone know about it ??
Thanks

What went wrong during catalog and catproc ?
Did you run out of space ? In that case just enable autoextension on the system tablespace datafile[s] and re-run catalog & catproc. Check the logfiles.
regards,
Ronald.
http://ronr.nl/unix-dba

Similar Messages

  • Oracle Java proc ORA-04045: errors during recompilation/revalidation

    hi,
    I have Oracle Java stored proc called MERGE_ENTITY_AND_EVENT invoked by a trigger. It was working fine for a couple of weeks. Today it throws this generic exception. I'm not sure what changed.
    Caused by: java.sql.SQLSyntaxErrorException: ORA-04045: errors during recompilation/revalidation of TLMDEV./3ba8073b_Log4JLogger
    ORA-06512: at "MERGE_ENTITY_AND_EVENT", line 1
    ORA-06512: at "QUOTE_TRIGGER", line 49
    1. What is the root cause of this exception ?
    2. Whats the solution ?
    If you dont know 1 or 2, how would you go about debugging this problem ?
    Thanks in advance.

    The most likely cause is that something has caused the class TLMDEV./3ba8073b_Log4JLogger to become invalid and implicit invalidation does not succeed in making it valid. In general a class must be valid in order to be run and an attempt to run an invalid class (such as because your trigger calls it) will cause an attempt to validate it and if that attempt fails an ORA-04045 can be the result. Validation of a class amounts to iterating over the set of names referenced by the class and looking for a valid class by that name, perhaps recursively attempting to validate if an invalid class by that name is found. So validation of a class may amount to an attempt to validate several classes at once. If any of them fail to be validatable, which occurs if there is no class for a given referenced name then most if not all of the classes in the set being validated and certainly the top level one will fail to validate. So if things are working correctly, the ultimate reason for the ORA-04045 will prove to be that some name referenced by TLMDEV./3ba8073b_Log4JLogger or recursived by something it references will be a name for which there is no class in the database (or more precisely in the search path used which is typically the current schema followed by PUBLIC, but could be different if some of the classes involved have had explicit resolver specifications given for them). The thing to do to try to start determining what class is missing is to do the query
    select owner||'.'||name||' : '||text from all_errors where type like 'JAVA%';
    The first thing to look at are lines for TLMDEV./3ba8073b_Log4JLogger. These will probably show text which contains either ORA-29534 identifying a referenced class that exists but could not be recursively valid, or ORA-29521 identifying names for which there is no class. The latter are the ultimately interesting ones since the former will end up being recursively caused by them. So look at the ORA-29521s and then try to determine either why the class is missing and how to restore it or which it is now referenced when it wasn't before (which would happen if some class was changed to reference it or something that references it, recursively).

  • ORA-04045 : errors during recompilation/revalidation of SYS.DBMS_STANDARD

    Hi,
    i am on 11.5.10.2 RHEL 4.0
    i tried running catalog.log on DB Tier as sys, but was not successful.
    later sqlplus apps/apps would start giving
    ORA-00604 : error occured at recursive SQL level 1
    ORA-04045 : errors during recompilation/revalidation of SYS.DBMS_STANDARD
    $sqlplus /nolog works fine... BUT
    $sqlplus conn /as sysdba HANGS!!!!
    Also logging via URL > after clicking on E-Business Home Page gives
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, changeOnOHSInstall and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    could anybody suggest on this error?
    Thanking You
    Regards,
    SK

    Thanks for your quick reply
    status of the object: INVALID
    PLSQL_V2_COMPATIBLITY is set to FALSE
    Run utlrp.sql to compile all invalid objects in the database
    it gave me error as follows:
    SQL> @utlrp.sql
    declare
    ERROR at line 1
    ORA -00604 : error occured at recursive SQL level 1
    ORA - 04045 : errors during recompilation/revalidation of SYS.DBMS_STANDARD
    CREATE TABLE utl_recomp_invalid (obj# number)
    ERROR at line 1
    ORA -00604 : error occured at recursive SQL level 1
    ORA - 04045 : errors during recompilation/revalidation of SYS.DBMS_STANDARD
    CREATE TABLE utl_recomp_sorted (obj# number, depth number)
    ERROR at line 1
    ORA -00604 : error occured at recursive SQL level 1
    ORA - 04045 : errors during recompilation/revalidation of SYS.DBMS_STANDARD
    CREATE TABLE utl_recomp_compiled(obj# number)
    ERROR at line 1
    ORA -00604 : error occured at recursive SQL level 1
    ORA - 04045 : errors during recompilation/revalidation of SYS.DBMS_STANDARD
    CREATE INDEX utl_recomp_comp_idx1 ON utl_recomp_compiled(obj#)
    ERROR at line 1
    ORA -00604 : error occured at recursive SQL level 1
    ORA - 04045 : errors during recompilation/revalidation of SYS.DBMS_STANDARD
    CREATE TABLE utl_recomp_backup_jobs (command varchar2(100), status varchar2(1000))
    ERROR at line 1
    ORA -00604 : error occured at recursive SQL level 1
    ORA - 04045 : errors during recompilation/revalidation of SYS.DBMS_STANDARD
    SELECT o.obj#, o.type#, o. owner# FROM obj# o
    ERROR at line 2
    ORA -00604 : error occured at recursive SQL level 1
    ORA - 04045 : errors during recompilation/revalidation of SYS.DBMS_STANDARD
    Edited by: mirage on Dec 4, 2008 6:45 PM

  • Errors during recompilation/revalidation

    ORA-04045: errors during recompilation/revalidation of BOS.COUNTY
    ORA-00980: synonym translation is no longer valid
    I am getting the above error. Actually there are some synonyms from BOS to BOSV account. I imported all the objects into BOS first from the source. Then i imported all the objects into BOSV from the source. After that when i say
    BOS>desc BOS.COUNTY
    i am getting the below error
    ORA-04045: errors during recompilation/revalidation of BOS.COUNTY
    ORA-00980: synonym translation is no longer valid
    Please reply ASAP...
    thanks

    Objects are imported in reverse order.
    You should've imported BOSV first and then BOS. As Todd directed you need to recreate/reimport the BOS synonyms if the base objects in BOSV exist.

  • ORA-04088: error during execution of trigger

    Error Description :
    We have more than 100 of records in a csv file which we are processing through a script. At the first execution let
    say it generates trigger exception for five records ... when I execute the script second time those five records
    are not throwing any exception but may be some other records. But consecutive trigger exception is not happening for any record . If a particular record is throwing exception at first attempt then in the second attempts it's not throwing the trigger exception.
    Input file
    PROPRTY_ID,NAME,OLD STREET,CITY,STATE,ZIP,NEW STREET,NEW CITY,NEW STATE,NEW ZIP
    88527091,SAM PAUL SUMMU ,1061 XYZ,CITY1,ST,95626,5512 XX YY ZZ,TOWN,PA,12345-9812
    Error :
    88527091,SAM PAUL SUMMU ,1061 XYZ,CITY1,ST,95626,5512 XX YY ZZ,TOWN,PA,12345-9812 - PROPERTY Update Error : ORA-00001: unique constraint (PROD.PK_AUDIT_LOG) violated
    ORA-06512: at "PROD.PROPERTY_AUD", line 159
    ORA-04088: error during execution of trigger 'PROD.PROPERTY_AUD'
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> desc property
    Name                                      Null?    Type
    PROPERTY_ID                               NOT NULL NUMBER(20)
    TYPE_CODE                                          VARCHAR2(10)
    TYPE_PREFIX                                        VARCHAR2(10)
    DWELLING_TYPE_CODE                        NOT NULL VARCHAR2(10)
    DWELLING_TYPE_PREFIX                      NOT NULL VARCHAR2(10)
    STREET_NUMBER                                      VARCHAR2(25)
    STREET_DIRECTION                                   CHAR(2)
    STREET_NAME                               NOT NULL VARCHAR2(45)
    UNIT_NUMBER                                        VARCHAR2(15)
    CITY_CODE                                          VARCHAR2(10)
    STATE                                     NOT NULL CHAR(2)
    ZIP_CODE                                           VARCHAR2(10)
    UNIT_TYPE                                          VARCHAR2(10)
    UNIT_PREFIX                                        VARCHAR2(10)
    COUNTY_CODE                                        VARCHAR2(10)
    COUNTRY_CODE                              NOT NULL VARCHAR2(10)
    SQUARE_FEET                                        NUMBER(6)
    NUMBER_MOTHER_LAW_UNITS                            NUMBER(6)
    YEAR_BUILT                                         DATE
    PROPERTY_VALUE                                     NUMBER(12)
    ZIP_PLUS_4                                         VARCHAR2(4)
    SFI_REQ_FLAG                                       CHAR(1)
    LAST_MODIFIED                             NOT NULL DATE
    LAST_MODIFIED_BY                                   VARCHAR2(31)
    STANDARDIZED_STATUS                                VARCHAR2(10)
    STANDARDIZED_DESC                                  VARCHAR2(200)
    SQL> desc audit_log
    Name                                      Null?    Type
    SEQ_NO                                    NOT NULL NUMBER(20)
    TABLE_NAME                                         VARCHAR2(31)
    USER_STAMP                                         VARCHAR2(31)
    TIME_STAMP                                         DATE
    TRAN_CODE                                          CHAR(2)
    RECORD1                                            VARCHAR2(2000)
    RECORD2                                            VARCHAR2(2000)
    FLAG_FLD                                           CHAR(1)
    SFI_FLAG_FLD                                       CHAR(1)
    ERROR_NUMBER                                       NUMBER
    Update Query which is getting executed :
    UPDATE PROPERTY
    SET DWELLING_TYPE_CODE = 'SFR',
    DWELLING_TYPE_PREFIX = 'DWELLING',
    STREET_NUMBER = NULL,
    STREET_DIRECTION = NULL,
    STREET_NAME = ln_new_street_name,       -- <From input file>
    UNIT_NUMBER = NULL,
    CITY_CODE = ln_city_code,               -- <From other Table>
    STATE = ln_new_state,                   -- <From input file>
    ZIP_CODE = ln_new_zip_code,
    UNIT_TYPE = NULL,
    UNIT_PREFIX = NULL,
    COUNTY_CODE = ln_county_code,           -- <From Other table>
    COUNTRY_CODE = 1,
    ZIP_PLUS_4 = ln_zip_plus_4            -- <From Input file>
    WHERE PROPERTY_ID = ln_property_id;   -- <From Other table>
    *NOTE :* Property.LAST_MODIFIED field is auto populate through other trigger. It does not causing any problem.
    This might be helpful :
    SQL> select OWNER, CONSTRAINT_NAME, TABLE_NAME,COLUMN_NAME from dba_cons_columns where CONSTRAINT_NAME='PK_AUDIT_LOG';
    OWNER                          CONSTRAINT_NAME                TABLE_NAME  COLUMN_NAME
    PROD                           PK_AUDIT_LOG                   AUDIT_LOG          SEQ_NO
    PROD_ARCH                      PK_AUDIT_LOG                   AUDIT_LOG          SEQ_NO
    SQL> select SEQ_NO, trim(RECORD1), trim(RECORD2),TIME_STAMP
    from audit_log where RECORD1 like '%BUTTE%' order by  TIME_STAMP;
    SEQ_NO
    1675677212
    TRIM(RECORD1)
    00000000000031814095...SFR       .DWELLING  ...5512 BUTTE VIEW CT                           ..15532
        .CA.95765     ...1377      .1         .....5000..20100922.SUSMSAHA                       ..
    TRIM(RECORD2)
    00000000000031814095...SFR       .DWELLING  ...5512 BUTTE VIEW CT                           ..15532
        .CA.95765     ...1377      .1         .....5000..20100922.SUSMSAHA                       ..
    TIME_STAMP
    22-sep-2010
    Trigger Body which is fired and throwing the exception :
    create or replace trigger PROPERTY_AUD
    before insert or update on PROPERTY
    for each row
    declare
    rec1            varchar2(2000);
    rec2            varchar2(2000);
    tcode           char(1);
    ln_seq_id       NUMBER:=Null;
    ls_sql  VARCHAR2(2000):=Null;
    begin
    select temp_audit_seq.nextval into ln_seq_id from dual;
    rec1 := null;
    rec2 := null;
         if user = 'NONREP_USER' then
            return;
         end if;
         if (dbms_reputil.from_remote = FALSE) then
              :NEW.last_modified := sysdate;
              if (user = 'SALESFORCE_SYNC') then
                      :new.last_modified_by := NVL(:new.last_modified_by,USER);
              else
                   :new.last_modified_by := user;
              end if;
         end if;
    if inserting then
    rec1 :=
    LPAD(:new.PROPERTY_ID, 20, '0' ) || '.' ||
    RPAD(:new.TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.DWELLING_TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.DWELLING_TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.STREET_NUMBER, 25, ' ' ) || '.' ||
    RPAD(:new.STREET_DIRECTION, 2, ' ' ) || '.' ||
    RPAD(:new.STREET_NAME, 45, ' ' ) || '.' ||
    RPAD(:new.UNIT_NUMBER, 15, ' ' ) || '.' ||
    RPAD(:new.CITY_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.STATE, 2, ' ' ) || '.' ||
    RPAD(:new.ZIP_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.UNIT_TYPE, 10, ' ' ) || '.' ||
    RPAD(:new.UNIT_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.COUNTY_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.COUNTRY_CODE, 10, ' ' ) || '.' ||
    LPAD(:new.SQUARE_FEET, 6, '0' ) || '.' ||
    LPAD(:new.NUMBER_MOTHER_LAW_UNITS, 6, '0' ) || '.' ||
    TO_CHAR(:new.YEAR_BUILT, 'YYYYMMDD') || '.' ||
    LPAD(:new.PROPERTY_VALUE, 12, '0' ) || '.' ||
    RPAD(:new.ZIP_PLUS_4, 4, ' ' ) || '.' ||
    RPAD(:new.SFI_REQ_FLAG, 1, ' ' ) || '.' ||
    TO_CHAR(:new.LAST_MODIFIED, 'YYYYMMDD') || '.' ||
    RPAD(:new.LAST_MODIFIED_BY, 31, ' ' ) || '.' ||
    RPAD(:new.STANDARDIZED_STATUS, 10, ' ' ) || '.' ||
    RPAD(:new.STANDARDIZED_DESC, 200, ' ' );
    tcode := 'I';
    elsif deleting then
    rec1 :=
    LPAD(:new.PROPERTY_ID, 20, '0' ) || '.' ||
    RPAD(:new.TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.DWELLING_TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.DWELLING_TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.STREET_NUMBER, 25, ' ' ) || '.' ||
    RPAD(:new.STREET_DIRECTION, 2, ' ' ) || '.' ||
    RPAD(:new.STREET_NAME, 45, ' ' ) || '.' ||
    RPAD(:new.UNIT_NUMBER, 15, ' ' ) || '.' ||
    RPAD(:new.CITY_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.STATE, 2, ' ' ) || '.' ||
    RPAD(:new.ZIP_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.UNIT_TYPE, 10, ' ' ) || '.' ||
    RPAD(:new.UNIT_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.COUNTY_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.COUNTRY_CODE, 10, ' ' ) || '.' ||
    LPAD(:new.SQUARE_FEET, 6, '0' ) || '.' ||
    LPAD(:new.NUMBER_MOTHER_LAW_UNITS, 6, '0' ) || '.' ||
    TO_CHAR(:new.YEAR_BUILT, 'YYYYMMDD') || '.' ||
    LPAD(:new.PROPERTY_VALUE, 12, '0' ) || '.' ||
    RPAD(:new.ZIP_PLUS_4, 4, ' ' ) || '.' ||
    RPAD(:new.SFI_REQ_FLAG, 1, ' ' ) || '.' ||
    TO_CHAR(:new.LAST_MODIFIED, 'YYYYMMDD') || '.' ||
    RPAD(:new.LAST_MODIFIED_BY, 31, ' ' ) || '.' ||
    RPAD(:new.STANDARDIZED_STATUS, 10, ' ' ) || '.' ||
    RPAD(:new.STANDARDIZED_DESC, 200, ' ' );
    tcode := 'D';
    else
    rec1 :=
    LPAD(:old.PROPERTY_ID, 20, '0' ) || '.' ||
    RPAD(:old.TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:old.TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:old.DWELLING_TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:old.DWELLING_TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:old.STREET_NUMBER, 25, ' ' ) || '.' ||
    RPAD(:old.STREET_DIRECTION, 2, ' ' ) || '.' ||
    RPAD(:old.STREET_NAME, 45, ' ' ) || '.' ||
    RPAD(:old.UNIT_NUMBER, 15, ' ' ) || '.' ||
    RPAD(:old.CITY_CODE, 10, ' ' ) || '.' ||
    RPAD(:old.STATE, 2, ' ' ) || '.' ||
    RPAD(:old.ZIP_CODE, 10, ' ' ) || '.' ||
    RPAD(:old.UNIT_TYPE, 10, ' ' ) || '.' ||
    RPAD(:old.UNIT_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:old.COUNTY_CODE, 10, ' ' ) || '.' ||
    RPAD(:old.COUNTRY_CODE, 10, ' ' ) || '.' ||
    LPAD(:old.SQUARE_FEET, 6, '0' ) || '.' ||
    LPAD(:old.NUMBER_MOTHER_LAW_UNITS, 6, '0' ) || '.' ||
    TO_CHAR(:new.YEAR_BUILT, 'YYYYMMDD') || '.' ||
    LPAD(:old.PROPERTY_VALUE, 12, '0' ) || '.' ||
    RPAD(:old.ZIP_PLUS_4, 4, ' ' ) || '.' ||
    RPAD(:old.SFI_REQ_FLAG, 1, ' ' ) || '.' ||
    TO_CHAR(:new.LAST_MODIFIED, 'YYYYMMDD') || '.' ||
    RPAD(:old.LAST_MODIFIED_BY, 31, ' ' ) || '.' ||
    RPAD(:old.STANDARDIZED_STATUS, 10, ' ' ) || '.' ||
    RPAD(:old.STANDARDIZED_DESC, 200, ' ' );
    rec2 :=
    LPAD(:new.PROPERTY_ID, 20, '0' ) || '.' ||
    RPAD(:new.TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.DWELLING_TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.DWELLING_TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.STREET_NUMBER, 25, ' ' ) || '.' ||
    RPAD(:new.STREET_DIRECTION, 2, ' ' ) || '.' ||
    RPAD(:new.STREET_NAME, 45, ' ' ) || '.' ||
    RPAD(:new.UNIT_NUMBER, 15, ' ' ) || '.' ||
    RPAD(:new.CITY_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.STATE, 2, ' ' ) || '.' ||
    RPAD(:new.ZIP_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.UNIT_TYPE, 10, ' ' ) || '.' ||
    RPAD(:new.UNIT_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.COUNTY_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.COUNTRY_CODE, 10, ' ' ) || '.' ||
    LPAD(:new.SQUARE_FEET, 6, '0' ) || '.' ||
    LPAD(:new.NUMBER_MOTHER_LAW_UNITS, 6, '0' ) || '.' ||
    TO_CHAR(:new.YEAR_BUILT, 'YYYYMMDD') || '.' ||
    LPAD(:new.PROPERTY_VALUE, 12, '0' ) || '.' ||
    RPAD(:new.ZIP_PLUS_4, 4, ' ' ) || '.' ||
    RPAD(:new.SFI_REQ_FLAG, 1, ' ' ) || '.' ||
    TO_CHAR(:new.LAST_MODIFIED, 'YYYYMMDD') || '.' ||
    RPAD(:new.LAST_MODIFIED_BY, 31, ' ' ) || '.' ||
    RPAD(:new.STANDARDIZED_STATUS, 10, ' ' ) || '.' ||
    RPAD(:new.STANDARDIZED_DESC, 200, ' ' );
    tcode := 'U';
    end if;
    ls_sql :='
    INSERT INTO AUDIT_LOG
    ( seq_no,
    table_name,
    user_stamp,
    time_stamp,
    tran_code,
    record1,
    record2)
    VALUES
    ( :id,
    :s_table_name,
    :s_user_name,
    :d_sysdate,
    :s_tcode,
    :s_rec1,
    :s_rec2
    EXECUTE IMMEDIATE ls_sql
    USING ln_seq_id,
    'PROPERTY',
    user,
    sysdate,
    tcode,
    rec1,
    rec2;
    end;
    Your suggestion is highly appreciated ..
    Edited by: Bipul on Sep 23, 2010 12:40 AM

    TEMP_AUDIT_SEQ generates number with the increment of +1
    Although there seems other sequence populating the AUDIT_LOG table through a different sequence with the increment of +10. So till now there are already 1179 different numbers residing in audit_log.seq_no and yet to be generated by the TEMP_AUDIT_SEQ sequence. I will look into more details.
    SQL> select max(seq_no) from audit_log;
    MAX(SEQ_NO)
    1675689121
    SQL> select TEMP_AUDIT_SEQ.nextval from dual;
       NEXTVAL
    1675677285
    SQL> select count(*) From audit_log where seq_no>1675677285;
      COUNT(*)
          1179
    SQL> select count(*) from audit_log where seq_no>1675677283 and mod(seq_no,2)=1;
      COUNT(*)
          1179
    SQL> select seq_no from audit_log where seq_no>1675677283 and mod(seq_no,2)=1 and rownum<12;
        SEQ_NO
    1675677291
    1675677301
    1675677311
    1675677321
    1675677331
    1675677341
    1675677351
    1675677361
    1675677371
    1675677381
    1675677391
    11 rows selected.
    Thank you Lee and  Herald ten Dam   ...

  • Oracle Collaborate Suite ORA-6502 error during loging or form submitting

    Hi!
    I had Oracle Collaborate Suite ORA-6502 error during loging or form submitting:
    Internal error (WWC-00006)
    An unexpected error has occurred (WWS-32100)
    ORA-6502: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWC-36000)
    Unexpected error encountered in wwsec_api.person_info (ORA-06502: PL/SQL: numeric or value error: character string buffer too small) (WWC-41417)
    Error (WWS-20000)
    An unexpected error has occurred (WWS-32100)
    ORA-6502: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWC-36000)
    Unexpected error encountered in wwsec_api.person_info (ORA-06502: PL/SQL: numeric or value error: character string buffer too small) (WWC-41417).
    This happened when:
    I was using Russian letters in OCS HTML forms (for example - in Administration provision console or in my own HTML forms)
    and only I work in Linux (with UTF-8 encoding) (in Windows with win1251 encoding all is OK).
    My Database NLS not-null Parameters are:
    NLS_LANGUAGE      - AMERICAN
    NLS_LENGTH_SEMANTICS      - BYTE
    NLS_TERRITORY      - AMERICA
    NLS_CHARACTERSET - AL32UTF8
    NLS_NCHAR_CHARACTERSET - AL16UTF16
    WHAT MUST I DO TO AVOID THIS SITUATION?
    Thank
    Valery

    All,
    It appears that the page Javascript maximum limit size was reached. The error stopped appearing after some of the page Javascript code was removed out to Application Static Files. I wonder if there exists any "direct" indicator by the system whenever the size limit has been reached?
    Again, the run error only occurred when the page was loaded in "Debug" mode.
    Bernard

  • ORA-00942 Error during unicode export of BI 7.0

    Hello Everyone,
    I am doing an export of a non-unicode BI 7.0 system to convert and import it into a Unicode database. All the jobs have passed except one and I see the following error in the log file (SAPAPPL0_3.log)
    /usr/sap/ABD/SYS/exe/run/R3load: START OF LOG: 20080302124247
    /usr/sap/ABD/SYS/exe/run/R3load: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#13 $ SAP
    /usr/sap/ABD/SYS/exe/run/R3load: version R7.00/V1.4
    Compiled Jun  9 2007 09:20:06
    /usr/sap/ABD/SYS/exe/run/R3load -e SAPAPPL0_3.cmd -datacodepage 4102 -l SAPAPPL0_3.log -stop_on_error
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (RSCP) INFO: I18N_NAMETAB_TIMESTAMPS not in env: checks are ON (Note 738858)
    (RSCP) WARN: UMGCONTAINER has 1 problems.
    (RSCP) INFO: UMGSETTINGS nametab creation: ok.
    (RSCP) INFO: Global fallback code page = 1100
    (RSCP) INFO: Common character set is  not  7-bit-ASCII
    (RSCP) INFO: Collision resolution method is 'fine'
    (RSCP) INFO: R3trans code pages = Normal
    (RSCP) INFO: EXPORT TO ... code pages = Normal
    (RSCP) INFO: Check for invalid language keys: active, by default
    (RSCP) INFO: I18N_NAMETAB_NORM_ALLOW = 999999999
    (RSCP) INFO: I18N_NAMETAB_NORM_LOG   = 1000000002
    (RSCP) INFO: I18N_NAMETAB_ALT_ALLOW  = 10000
    (RSCP) INFO: I18N_NAMETAB_ALT_LOG    = 10003
    (RSCP) INFO: I18N_NAMETAB_OLD_ALLOW  = 0
    (RSCP) INFO: I18N_NAMETAB_OLD_LOG    = 500
    (GSI) INFO: dbname   = "ABD20070922100908
    (GSI) INFO: vname    = "ORACLE                          "
    (GSI) INFO: hostname = "ussbbdd5                                                        "
    (GSI) INFO: sysname  = "HP-UX"
    (GSI) INFO: nodename = "ussbbdd5"
    (GSI) INFO: release  = "B.11.23"
    (GSI) INFO: version  = "U"
    (GSI) INFO: machine  = "ia64"
    (GSI) INFO: instno   = "INITIAL   "
    (EXP) ERROR: DbSlExeRead failed
      rc = 103, table "/BIC/SZTERR_CD"
      (SQL error 942)
      error message returned by DbSl:
    ORA-00942: table or view does not exist
    (DB) INFO: disconnected from DB
    /usr/sap/ABD/SYS/exe/run/R3load: job finished with 1 error(s)
    /usr/sap/ABD/SYS/exe/run/R3load: END OF LOG: 20080302124251
    When I run the following command on /BIC/SZTERR_CD, I do not get any table information back. I am not sure how to fix it though.
    SELECT * FROM DBA_OBJECTS WHERE OBJECT_NAME = '/BIC/SZTERR_CD '; 
    I did finish all the unicode preconversion steps and also ran the SMIGR_CREATE_DDL program. I had exported recently from the same system but I never got this error during that run.
    Another question is about the order in which the steps need to be performed. I completed the preconversion steps, then ran the SMIGR_CREATE_DDL program before proceeding to the export phase. Is this right or does it not matter?
    Thanks again for your help!

    Hello Stacy,
    > When I run the following command on /BIC/SZTERR_CD, I do not get any table information back. I am not sure how to fix it though.
    > SELECT * FROM DBA_OBJECTS WHERE OBJECT_NAME = '/BIC/SZTERR_CD ';
    If the object does not exists on the source target database, please check if the ddic of sap still contains the table definition. (SE11 or SE14)
    If yes you can set the status of the table /BIC/SZTERR_CD to "ok" in the corresponding task file.
    You can not fix this problem in other way after you have started the conversion, because of the export files are already generated (with the information of the sap ddic)...
    > I completed the preconversion steps, then ran the SMIGR_CREATE_DDL program before proceeding to the export phase. Is this right or does it not matter?
    That was the right way.
    Regards
    Stefan

  • ORA-022887 error during insert operation how to handle properly ...

    Hello everyone I got an error during insert operation how to handle it properly ?
    SQL statements given below.
    INSERT INTO PERSONEL.TRANSLATIONS (TID,SCRIPT_NAME,TAG,TR,EN,LOCAL)
    VALUES ((SELECT PERSONEL.SQX_TID.NEXTVAL AS TID FROM DUAL),'TEST_TEST','TEST','TR','EN','LOCAL');
    thank you

    I could not find an error like ORA-022887. What is the exact error you are getting? Do a cut and past of the error here.
    Ok the proper error is ORA-02287: sequence number not allowed here
    As already said just remove the select and use the sequence directly in the insert.
    Edited by: Karthick_Arp on Sep 11, 2009 1:04 AM

  • ORA-00955 Errors during R3load for WEB AS Abap 6.40 installation

    Dear Gurus,
    I am encountering a problem during the R3load phase of the WEB AS ABAP 6.40 DB instance installation; I have patched the Oracle Database using the 9.2.0.7 patch set beforehand and resumed the SAPINST. There after errors occur during the DB load phase, below are the logs for reference (there are multiple occurences of 'ORA-00955: name is already used by an existing object' in existing logs)
    /sapmnt/P21/exe/R3load: START OF LOG: 20080627032739
    /sapmnt/P21/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#4 $ SAP
    /sapmnt/P21/exe/R3load: version R6.40/V1.4 [UNICODE]
    /sapmnt/P21/exe/R3load -ctf I /sapcd/NetweaverSR1_Export/EXP3/DATA/SAPDODS.STR /tmp/sapinst_instdir/NW04SR1/WEBAS_ABAP_ORA_UC
    /DB/DDLORA.TPL /tmp/sapinst_instdir/NW04SR1/WEBAS_ABAP_ORA_UC/DB/SAPDODS.TSK ORA -l /tmp/sapinst_instdir/NW04SR1/WEBAS_ABAP_O
    RA_UC/DB/SAPDODS.log
    /sapmnt/P21/exe/R3load: job completed
    /sapmnt/P21/exe/R3load: END OF LOG: 20080627032739
    /sapmnt/P21/exe/R3load: START OF LOG: 20080627032814
    /sapmnt/P21/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#4 $ SAP
    /sapmnt/P21/exe/R3load: version R6.40/V1.4 [UNICODE]
    /sapmnt/P21/exe/R3load -dbcodepage 4102 -i /tmp/sapinst_instdir/NW04SR1/WEBAS_ABAP_ORA_UC/DB/SAPDODS.cmd -l /tmp/sapinst_inst
    dir/NW04SR1/WEBAS_ABAP_ORA_UC/DB/SAPDODS.log -stop_on_error
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF8
    (rscpsumg) Please look also into "/tmp/sapinst_instdir/NW04SR1/WEBAS_ABAP_ORA_UC/DB/SAPDODS001.xml".
    (DB) ERROR: DDL statement failed
    (CREATE TABLE "RSDMODSTAB" ( "CHARACT" VARCHAR2(3) DEFAULT ' ' NOT NULL , "ATTRIBUTE" VARCHAR2(3) DEFAULT ' ' NOT NULL  ) TA
    BLESPACE PSAPP21 STORAGE (INITIAL 16384 NEXT 0000040960K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 102
      (SQL error 955)
      error message returned by DbSl:
    ORA-00955: name is already used by an existing object
    (DB) INFO: disconnected from DB
    /sapmnt/P21/exe/R3load: job finished with 1 error(s)
    /sapmnt/P21/exe/R3load: END OF LOG: 20080627032815
    /sapmnt/P21/exe/R3load: START OF LOG: 20080627035407
    /sapmnt/P21/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#4 $ SAP
    /sapmnt/P21/exe/R3load: version R6.40/V1.4 [UNICODE]
    /sapmnt/P21/exe/R3load -dbcodepage 4102 -i /tmp/sapinst_instdir/NW04SR1/WEBAS_ABAP_ORA_UC/DB/SAPDODS.cmd -l /tmp/sapinst_inst
    dir/NW04SR1/WEBAS_ABAP_ORA_UC/DB/SAPDODS.log -stop_on_error

    Hello,
    Strange error, check if you didn't run out of space. If this is new installation, nor upgrade or migration, I would suggest to you drop the table and re-run export once more.
    Otherwise you can open message to SAP as you can expect that this will happen also for other tables. Looks table or tables exist at Oracle but sapinst don't have info about it
    Peter

  • ORA-12560 error during 11G Install

    Hi,
    I am trying to install 11G on my WIN XP Pro laptop.During the installation process, whilst the database configuration assistant is on the "Completing Database Creation" stage, ORA-12560 TNS:Protocol Adpater error is thrown.
    I've followed all steps so far in the install guide including installing Microsoft Loopback Adapter for my DHCP laptop but to no avail.
    Anyone's been through this thing before? Appreciate a quick repsosne please.
    Thanks.

    Here's the extract from the log at C:\app\gopher\cfgtoollogs\dbca\homedatabase.I've highlighted the TNS protocol error in bold.
    [Thread-43] [10:2:2:765] [OracleHome.isRacEnabled:177] bRacOn = false
    [Thread-43] [10:2:2:765] [Host.noEntryinOratab:5562] Check made for oratab arg passed............
    [Thread-43] [10:2:2:765] [Oradim.getAddEntryCommand:355] AddEntry=[C:\app\gopher\product\11.1.0\db_1\bin\oradim.exe, -new, -sid, homedatabase, -startmode, manual, -spfile]
    [Thread-43] [10:2:3:890] [Oradim.getEditEntryCommand:436] getEditEntry cmd=[C:\app\gopher\product\11.1.0\db_1\bin\oradim.exe, -edit, -sid, homedatabase, -startmode, auto, -srvcstart, system]
    [Thread-43] [10:2:4:484] [Oradim.addSidToRegistry:884] oracleHomeKey: SOFTWARE\ORACLE\KEY_OraDb11g_home1
    [Thread-43] [10:2:4:484] [OracleHome.getVersion:974] OracleHome.getVersion called. Current Version: 11.1.0.6.0
    [Thread-43] [10:2:4:484] [OracleHome.getVersion:1046] Current Version From Inventory: 11.1.0.6.0
    [Thread-43] [10:2:4:484] [OracleHome.getVersion:1051] using sqlplus: C:\app\gopher\product\11.1.0\db_1\bin\sqlplus.exe
    [Thread-43] [10:2:4:484] [CommonUtils.createPasswordFile:515] calling new orapwd for version : 11.1.0.6.0
    [Thread-43] [10:2:4:484] [OsUtilsBase.execProg:1335] beginning execProg with input array.
    [Thread-43] [10:2:4:484] [OsUtilsBase.execProg:1347] finished execProg with input array.
    [Thread-43] [10:2:4:484] [BasicStep.configureSettings:304] messageHandler being set=oracle.sysman.assistants.util.UIMessageHandler@e7bb91
    [Thread-43] [10:2:4:484] [CloneRmanRestoreStep.executeImpl:218] Instance Creation went fine..........
    [Thread-43] [10:2:4:500] [CloneRmanRestoreStep.executeImpl:225] db_recovery_file_dest=C:\app\gopher\flash_recovery_area
    [Thread-43] [10:2:4:500] [CloneRmanRestoreStep.executeImpl:228] db_recovery_file_dest_size=2147483648
    [Thread-43] [10:2:11:484] [SQLEngine.done:2014] Done called
    oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-12560: TNS:protocol adapter error
         at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1530)
         at oracle.sysman.assistants.util.sqlEngine.SQLEngine.connect(SQLEngine.java:853)
         at oracle.sysman.assistants.dbca.backend.CloneRmanRestoreStep.executeImpl(CloneRmanRestoreStep.java:245)
         at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
         at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
         at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2497)
         at java.lang.Thread.run(Thread.java:595)
    [Thread-43] [10:2:11:484] [BasicStep.configureSettings:304] messageHandler being set=oracle.sysman.assistants.util.UIMessageHandler@e7bb91
    [Thread-43] [10:2:11:484] [StepContext$ModeRunner.run:2513] oracle.sysman.assistants.dbca.backend.CloneRmanRestoreStep.executeImpl(CloneRmanRestoreStep.java:448)
    oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
    oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
    oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2497)
    java.lang.Thread.run(Thread.java:595)
    [Thread-43] [10:2:12:609] [SQLEngine.done:2014] Done called
    [Thread-43] [10:2:12:609] [Host.createStepSQLInterface:6444] sid =homedatabase
    [Thread-43] [10:2:12:609] [SQLEngine.getEnvParams:446] NLS_LANG: AMERICAN_AMERICA.WE8MSWIN1252
    [Thread-43] [10:2:12:609] [SQLEngine.initialize:253] Execing SQLPLUS/SVRMGR process...
    [Thread-43] [10:2:12:625] [SQLEngine.initialize:281] m_bReaderStarted: false
    [Thread-43] [10:2:12:625] [SQLEngine.initialize:285] Starting Reader Thread...
    [Thread-43] [10:2:12:625] [SQLEngine.initialize:334] Waiting for m_bReaderStarted to be true
    [Thread-43] [10:2:12:843] [SQLEngine.initialize:334] Waiting for m_bReaderStarted to be true
    [Thread-43] [10:2:12:859] [CloneRmanRestoreStep.cancel:614] Cleaning up partially extracted files failed
    [Thread-43] [10:2:12:921] [SQLEngine.done:2014] Done called
    [Thread-43] [10:2:12:921] [CloneRmanRestoreStep.cancel:629] RMAN cleanup failed
    [Thread-43] [10:2:12:921] [CloneRmanRestoreStep.cancel:630] oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1530)
    oracle.sysman.assistants.util.sqlEngine.SQLEngine.connect(SQLEngine.java:853)
    oracle.sysman.assistants.dbca.backend.CloneRmanRestoreStep.cancel(CloneRmanRestoreStep.java:617)
    oracle.sysman.assistants.util.step.StepContext$ModeRunner.cancel(StepContext.java:2590)
    oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2552)
    java.lang.Thread.run(Thread.java:595)
    [Thread-43] [10:2:12:921] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\SYSTEM01.DBF
    [Thread-43] [10:2:12:921] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\SYSAUX01.DBF
    [Thread-43] [10:2:12:921] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\UNDOTBS01.DBF
    [Thread-43] [10:2:12:921] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\USERS01.DBF
    [Thread-43] [10:2:12:921] [CloneDBCreationStep.cancel:895] CloneDBCreationStep.cancel(): nodeList= null
    [Thread-43] [10:2:12:921] [SQLEngine.reInitialize:624] Reinitializing SQLEngine...
    [Thread-43] [10:2:12:921] [SQLEngine.getEnvParams:446] NLS_LANG: AMERICAN_AMERICA.WE8MSWIN1252
    [Thread-43] [10:2:12:921] [SQLEngine.initialize:253] Execing SQLPLUS/SVRMGR process...
    [Thread-43] [10:2:12:937] [SQLEngine.initialize:281] m_bReaderStarted: false
    [Thread-43] [10:2:12:937] [SQLEngine.initialize:285] Starting Reader Thread...
    [Thread-43] [10:2:12:937] [SQLEngine.initialize:334] Waiting for m_bReaderStarted to be true
    [Thread-43] [10:2:13:93] [SQLEngine.done:2014] Done called
    [Thread-43] [10:2:13:93] [OracleHome.isRacEnabled:177] bRacOn = false
    [Thread-43] [10:2:13:93] [Oradim.getRemoveEntryCommand:477] Execing C:\app\gopher\product\11.1.0\db_1\bin\oradim.exe -delete -sid homedatabase
    [Thread-43] [10:2:13:203] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\product\11.1.0\db_1\database\PWDhomedatabase.ora
    [Thread-43] [10:2:13:203] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\product\11.1.0\db_1\database\inithomedatabase.ora
    [Thread-43] [10:2:13:203] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\admin\homedatabase\pfile\init.ora
    [Thread-43] [10:2:13:203] [CloneDBCreationStep.cancel:936] CloneDBCreationStep.cancel(): bRaw=false
    [Thread-43] [10:2:13:203] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\SYSTEM01.DBF
    [Thread-43] [10:2:13:203] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\SYSAUX01.DBF
    [Thread-43] [10:2:13:203] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\UNDOTBS01.DBF
    [Thread-43] [10:2:13:203] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\USERS01.DBF
    [Thread-43] [10:2:13:203] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\redo01.log
    [Thread-43] [10:2:13:203] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\redo02.log
    [Thread-43] [10:2:13:203] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\redo03.log
    [Thread-43] [10:2:13:203] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\control01.ctl
    [Thread-43] [10:2:13:203] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\control02.ctl
    [Thread-43] [10:2:13:203] [OsUtilsBase.deleteFile:1013] OsUtilsBase.deleteFile: C:\app\gopher\oradata\homedatabase\control03.ctl
    [Thread-43] [10:2:13:203] [SQLEngine.done:2014] Done called
    [AWT-EventQueue-0] [10:2:20:609] [SQLEngine.done:2014] Done called

  • ORA-12546 error during installation of 9.2.0.1 on Windows 2003 Server

    I have encountered an error whilst installing oracle 9.2.0.1 on a Windows 2003 Server. The error appears in the final part of the installation, when the Database Configuration Assistant is performing some work - it reaches the part where it creates the database instance - here we get the "ORA-12546: TNS Permission denied" error - this part of the installation is marked as failed - i can retry it as many times as i want but the same thing happens. If i finish the installation (even though the error has occurred) the oracle installation doesn't really work . I can't open the Database Configuration Assistant and don't really have a sysdba user. However all the services seem to be running fine (even the tns listener)
    I was wondering whether it could be a problem that would be solved with the 9.2.0.3 patch - but this patch assumes that you have performed a proper working installation of 9.2.0.1, so I'm not quite convinced that the problem is related to the oracle version.
    I've read other threads where the problem has been read/write privileges on some files and folders, but this shouldn't be an issue when I'm logged onto the machine as a local administrator.
    The install.log files don't really provide any extra information.

    I have exactly the same problem installing Oracle on a Windows Server 2003 X64 Enterprise Edition. I have Intel Xeon processors (EM64T).
    I tried to install Oracle for 64 bits, but it didn't work. Now I'm trying to install 32 bits version of Oracle, and I get the same error and the same problem, mentioned above.
    Can anyone help us, I can't figure out a way to solve it. I don't know if Oracle for 32 bits is not compatible with that version of Windows, even if it is supposed to be.
    Thanks!!!!

  • ORA-06502 error during dbms_mview.refresh

    I created a Materialized view MV1 and refreshed using dbms_mview.refresh option and it worked.
    dbms_mview.refresh (list => 'MV1', method => 'F');
    My requirement is to refresh MV1 daily at 10.00 P.M. I created a procedure ( code attached below) to execute the dbms_mview.refresh and scheduled the procedure to run at 10.00 P.M.
    I am getting the following error in a regular basis not always.
    ORA-06502: PL/SQL: numeric or value error: raw variable length too long
    Kindly do the needfull.
    PACKAGE:
    CREATE OR REPLACE PACKAGE BODY PKG_COMMON
    AS
    LOG EXCEPTIONS
    PROCEDURE log (
    p_package IN ttfa_log.package_name%TYPE DEFAULT NULL,
    p_procedure IN ttfa_log.procedure_name%TYPE DEFAULT NULL,
    p_log_priority IN ttfa_log.log_priority%TYPE DEFAULT 'INFO',
    p_params IN ttfa_log.parameters%TYPE DEFAULT NULL,
    p_line_number IN ttfa_log.line_number%TYPE DEFAULT NULL,
    p_error_stack IN VARCHAR2 DEFAULT NULL,
    p_error_backtrace IN VARCHAR2 DEFAULT NULL
    IS
    l_step PLS_INTEGER := 0;
    l_log_date DATE;
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    l_step := 20;
    l_log_date := sysdate;
    l_step := 40;
    INSERT INTO ttfa_log
    ( log_id
    ,log_date
    ,log_priority
    ,username
    ,package_name
    ,procedure_name
    ,line_number
    ,error_code
    ,log_message
    ,backtrace_tmp
    ,parameters
    ,partition_key
    VALUES
    ( ttfa_log_id_seq.NEXTVAL
    ,l_log_date
    ,p_log_priority
    ,LOWER(USER)
    ,p_package
    ,p_procedure
    ,p_line_number
    ,SUBSTR( p_error_stack, 1, INSTR(p_error_stack,':') - 1 )
    ,substr(p_error_stack,1,4000)
    ,substr(p_error_backtrace,1,4000)
    ,p_params
    ,EXTRACT(MONTH FROM l_log_date)
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    RAISE_APPLICATION_ERROR(-20001, 'Error in pkg_ttfa_log.log ' ||chr(13) || 'Actual Error=>' ||DBMS_UTILITY.FORMAT_ERROR_STACK);
    END log;
    REFRESH MATERIALIZED VIEW
    PROCEDURE refresh_mi_mvs
    IS
    BEGIN
    -- Refresh Materialized View
    BEGIN
    dbms_mview.refresh (list => 'MV1', method => 'F');
    EXCEPTION
    WHEN OTHERS THEN
    log (
    p_package => 'PKG_COMMON'
    ,p_procedure => 'refresh_mvs'
    ,p_log_priority => 'ERROR'
    ,p_params => 'MV1'
    ,p_line_number => 40
    ,p_error_stack => DBMS_UTILITY.FORMAT_ERROR_STACK
    ,p_error_backtrace => DBMS_UTILITY.FORMAT_ERROR_BACKTRACE
    ROLLBACK;
    END;
    EXCEPTION
    WHEN OTHERS THEN
    log (
    p_package => 'PKG_COMMON'
    ,p_procedure => 'refresh_mi_mvs'
    ,p_log_priority => 'ERROR'
    ,p_params => 'Package Exception'
    ,p_line_number => 90
    ,p_error_stack => DBMS_UTILITY.FORMAT_ERROR_STACK
    ,p_error_backtrace => DBMS_UTILITY.FORMAT_ERROR_BACKTRACE
    ROLLBACK;
    END;
    END PKG_TTFA_COMMON;

    It impossible from what you have posted to know whether the issue is what you are passing to Oracle or what you have written yourself. Have your run a trace? If not that is the first step.
    And when you post next ... a version number would be very helpful.

  • ORA-04045 error on a 10g form

    I have a form 10g that runs fine on one server, then when I move the FMX over to another 100% identical server, I get the ORA04045 error as soon as i run the form. I've recompiled the form and still get the error.
    The problem is that teh message on the form is truncated and I can not see which object is causing the issue.
    Anyone have any ideas?

    then when I move the FMX over to another 100% identical serverThis is a common miss-conception - you should ALWAYS compile your form on the server it will run from.
    I've recompiled the form and still get the error.My first suspicion is that the servers are not 100% identical. Rather than a SQL Trace, I suggest you use the Forms Runtime Diagnostics (FRD) to trace just the Forms Session. You might need to modify the default.env and formsweg.cfg to enable FRD. Double check with your App Server admin to see if the "FORMS_TRACE_DIR=" variable is set in the DEFAULT.ENV. As long as this is set, you can enable FRD through the Forms app URL. Start your application and then add "record=collect log=<your_file_name_here.txt" to the URL to start the FRD trace. You could also have your admin modify the formsweb.cfg to create a config just for FRD. For example, I modified my local formsweb.cfg and added the following section so I can run FRD on specific forms from my workstation.
    [my_frd]
    otherparams=record=collect log=my_frd.txt
    This setting is dependent on the FORMS_TRACE_DIR= variable in the default.env.
    With this added to the formsweb.cfg, you can enable FRD by adding "config=my_frd" to the url instead of explictly passing record= and log= to the URL.
    The log file produced by the FRD is quite large but, if you end your application after you receive the error, you could go to the end of the log file and work your way back until you find the error.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Ora-00904 error during Export

    Hi ,
    I am facing a problem in export utility 8i database, this is occuring after i installed the packaes required for java stored procedure, any suggestion is appreciated
    L:\>exp userid=ubs/ubs owner=scott file=test.dmp log=test.log
    Export: Release 8.1.7.0.0 - Production on Tue Jul 9 13:37:31 2002
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    Export done in WE8ISO8859P1 character set and UTF8 NCHAR character set
    server uses UTF8 character set (possible charset conversion)
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user SCOTT
    . exporting object type definitions for user SCOTT
    About to export SCOTT's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export SCOTT's tables via Conventional Path ...
    . . exporting table TEMP 0 rows exported
    . exporting synonyms
    EXP-00008: ORACLE error 904 encountered
    ORA-00904: invalid column name
    EXP-00000: Export terminated unsuccessfully
    thankyou in advance for a reply
    Regards
    bala

    It might be that you have not ran the exp script to build the correct views.
    Some applications build tables with double quotes around them to force the table or view names to lower case. exp doesn't play well with that. You may have to go through and rename all the objects that were creates case specific.

  • ORA-07200 error during connect into system or sys

    I have installed ORACLE8i EE on redhat6.2.
    Installation was successfull. But when I try
    to connect to system or sys user it throws
    ORA-07200 Saying sls-sid not defined where as
    ORACLE_SID is set in oratab also the database
    is up and running.
    Can someone provide the solution.
    Thanks,
    Chandramohan

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Chandramohan MUmmachi:
    I have installed ORACLE8i EE on redhat6.2.
    Installation was successfull. But when I try
    to connect to system or sys user it throws
    ORA-07200 Saying sls-sid not defined where as
    ORACLE_SID is set in oratab also the database
    is up and running.
    Can someone provide the solution.
    Thanks,
    Chandramohan<HR></BLOCKQUOTE>
    Hi Chandramohan,
    I think u should run netasst from ur bin directory and configure ur listner and connect data properly
    Check ur tnsnames.ora and listner.ora in network/admin directory in $ORACLE_HOME , i thnk this should help u out.
    null

Maybe you are looking for