Handle Oracle Error from Oracle Forms

Actually I have a form with all types of validation and Id will be auto-generated by forms.
Now if any oracle error occures after pre-insert, auto-generated number will generate but record is not saving.
I want to handle this oracle error in my form and nullify the auto-generated ID forcefully.
Edited by: Sudipto Nag on Sep 16, 2008 12:07 PM

The way we handle database error generally is this:
You should in any case have a NOT NULL constraint on the database column. In the ON-ERROR trigger, we then check for the dbms_error_code value to see, what error message the database returned, after checking for Forms returning the general trigger exception 40735. For example, to trap a NOT NULL constraint voilation, you would do something like this.
if error_code= 40735 then --Forms error code = "Trigger raised unhandled exception".         
  if dbms_error_code in (-1400, -1407) then --mandatory not null column missing     
    --do something, like alerting the user
  elsif dbms_error_code in (<other DBMS error codes goes here>) then
    --do something else
  end if;
end if;I believe this is what you are looking for. Hope it helps.
Regards,
Jacob

Similar Messages

  • Can you intercept an Oracle error from a "Process Row" process?

    Hi,
    Can you intercept an Oracle error from a "Process Row" process?
    Example:
    I have been just creating a validation process to check if I'm about to insert a duplicate record so I can give the user a "User friendly" error message.
    It would be awesome if in the error message you can select "PL/SQL function returning result" and have it pass it to the Notification area..
    I doubt there is a way but I thought I would ask..

    >
    I think everyone is waiting for a better exception-handling, but even 4.0 won't bring any improvements in this area.This is kind of what bugged me about 4.0. I feel that they put more effort into making it cool and flashy and ignored some pretty basic core issues like error handling. I mean sure the new jquery powered application builder is nice, but your users never see that - they do however see you not being able to hook into the error handling. There are several issues that have lingered for years that keep getting passed over for other things - i mean the Forms conversion release was such a waste in my opinion. They could have used that release to fix some bugs.
    Of course thats my 2 cents.

  • RMAN-06004:ORACLE error from recovery catalog ... ORA-00904: : invalid ...

    Good Morning All,
    One of our RMAN backups is failing with the following error message. Any suggestions would be greatly appreciated.
    ==================================================================================================
    Starting backup at 12/30/2008 22:03:47
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 12/30/2008 22:03:47
    RMAN-06004: ORACLE error from recovery catalog database: ORA-00904: : invalid identifier
    RMAN>
    RMAN> ##BACKUP ARCHIVELOG ALL FORMAT '%d_bkp_al_%t_Set%s_Piece%p' delete input;
    2>
    3> # DELETE ARCHIVELOG UNTIL TIME 'SYSDATE-7';
    4>
    5> # check if database can be restored
    6> # RESTORE DATABASE VALIDATE;
    7>
    8> # check if controlfile can be restored
    9> ##RESTORE CONTROLFILE to '/backups/admin/custpr/custpr_bkp_cntlfile.ctl' VALIDATE;
    10>
    11> # check if archivelogs for the past two weeks can be restored
    12> # RESTORE ARCHIVELOG FROM TIME 'SYSDATE-7' VALIDATE;
    13>
    14> # - Verify all backups on backup media are intact
    15> # CROSSCHECK BACKUP OF DATABASE;
    16>
    17> # - Display a list of files that need to be backed up based on the retention
    18> # policy. For this case study, files that don't have at least 1 backups
    19> # will be reported.
    20> REPORT NEED BACKUP;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 7 days
    Report of files whose recovery needs more than 7 days of archived logs
    File Days Name
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of report command at 12/30/2008 22:03:48
    RMAN-06004: ORACLE error from recovery catalog database: ORA-00904: : invalid identifier
    RMAN>
    RMAN> # - delete un-necessary backups. This command deletes backups based on the
    2> # retention policy.
    3> ######### commented out DELETE OBSOLETE - TSM not configured to delete on 68
    4> #########DELETE OBSOLETE;
    5>
    6> # - get complete list of existing backups
    7> LIST BACKUP;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of list command at 12/30/2008 22:03:49
    RMAN-06004: ORACLE error from recovery catalog database: ORA-00904: : invalid identifier
    RMAN>
    RMAN> #-end of file-
    2> **end-of-file**
    RMAN>
    Edited by: ORA_UMAIR on Dec 31, 2008 7:51 AM

    This Oracle Database is 9.2.0.6.0. Here is the complete log file. The RMAN script that I am using ran successfully many times before.
    ====================================================================================================
    Recovery Manager: Release 9.2.0.6.0 - 64bit Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    RMAN>
    connected to recovery catalog database
    RMAN>
    connected to target database: CUSTPR (DBID=525071053)
    RMAN>
    RMAN> #########################################################################
    2> # LEVEL 0 BACKUP #
    3> #########################################################################
    4>
    5> # Configure backups to be written to disk.
    6> CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    old RMAN configuration parameters:
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    new RMAN configuration parameters:
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Set the retention policy to a recovery window of 7 days. This ensures that
    2> # RMAN retains all backups needed to recover the database to any point in time
    3> # in the last 7 days. You can use the DELETE OBSOLETE command to delete
    4> # backups that are no longer required by the retention policy. To exclude a
    5> # backup from consideration by the policy, you can use KEEP option with the
    6> # BACKUP command.
    7> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    old RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    new RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Configure RMAN to use two disk channels for backup, restore, recovery, and
    2> # maintenance operations.
    3> CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    old RMAN configuration parameters:
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    new RMAN configuration parameters:
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Configure RMAN to write disk backups to the /backup directory.
    2> # The format specifier %t is replaced with a 4-byte timestamp, %s with the
    3> # backup set number, and %p with the backup piece number.
    4> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backups/admin/custpr/%d_bkp_df%t_Set%s_Piece%p';
    old RMAN configuration parameters:
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backups/admin/custpr/%d_bkp_df%t_Set%s_Piece%p';
    new RMAN configuration parameters:
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backups/admin/custpr/%d_bkp_df%t_Set%s_Piece%p';
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Configure RMAN to back up the control file after each backup.
    2> CONFIGURE CONTROLFILE AUTOBACKUP ON;
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Configure RMAN to write controlfile autobackups to the /backup directory.
    2> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backups/admin/custpr/%d_bkp_cf%F';
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backups/admin/custpr/%d_bkp_cf%F';
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backups/admin/custpr/%d_bkp_cf%F';
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Enable the backup optimization feature introduced in 9i to make sure that
    2> # RMAN won't backup an archivelog or datafile if there already exists a backup
    3> # of that file. The FORCE option can be used to override optimization on a
    4> # specific BACKUP command.
    5> CONFIGURE BACKUP OPTIMIZATION ON;
    old RMAN configuration parameters:
    CONFIGURE BACKUP OPTIMIZATION ON;
    new RMAN configuration parameters:
    CONFIGURE BACKUP OPTIMIZATION ON;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Use the SHOW ALL command to see the current configuration settings.
    2> SHOW ALL ;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO '%d_bkp_cf%F';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backups/admin/custpr/%d_bkp_cf%F';
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 1;
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT '%d_bkp_df%t_Set%s_Piece%p';
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backups/admin/custpr/%d_bkp_df%t_Set%s_Piece%p';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/orahome2/custprdb/9.2.0/dbs/snapcf_custpr.f'; # default
    RMAN>
    RMAN> # The following commands are run each day to start the backup cycle.
    2> # The steps are:
    3> # - Take an incremental level 0 backup of the database. A level 0 backup is
    4> # a complete backup of the entire file which can be used as the basis
    5> # for a subsequent incremental backup.
    6> # - Backup all archivelogs that have not already been backed up.
    7> # - Delete on-disk archivelogs older than seven days.
    8>
    9> BACKUP INCREMENTAL LEVEL 0 FORMAT '/backups/admin/custpr/%d_bkp_df%t_Set%s_Piece%p'
    10> DATABASE maxsetsize 33G
    11> PLUS ARCHIVELOG FORMAT '/backups/admin/custpr/%d_bkp_al%t_Set%s_Piece%p'
    12> delete all input;
    Starting backup at 12/30/2008 22:01:40
    current log archived
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=11 devtype=DISK
    channel ORA_DISK_1: starting archive log backupset
    channel ORA_DISK_1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=8008 recid=7910 stamp=674638862
    input archive log thread=1 sequence=8009 recid=7911 stamp=674671207
    input archive log thread=1 sequence=8010 recid=7912 stamp=674697380
    input archive log thread=1 sequence=8011 recid=7913 stamp=674780433
    input archive log thread=1 sequence=8012 recid=7914 stamp=674784211
    input archive log thread=1 sequence=8013 recid=7915 stamp=674863288
    input archive log thread=1 sequence=8014 recid=7916 stamp=674863300
    channel ORA_DISK_1: starting piece 1 at 12/30/2008 22:01:41
    channel ORA_DISK_1: finished piece 1 at 12/30/2008 22:03:47
    piece handle=/backups/admin/custpr/CUSTPR_bkp_al674863300_Set3083_Piece1 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:02:07
    channel ORA_DISK_1: deleting archive log(s)
    archive log filename=/custpr/arch/arch_custpr_8008.log recid=7910 stamp=674638862
    archive log filename=/custpr/arch/arch_custpr_8009.log recid=7911 stamp=674671207
    archive log filename=/custpr/arch/arch_custpr_8010.log recid=7912 stamp=674697380
    archive log filename=/custpr/arch/arch_custpr_8011.log recid=7913 stamp=674780433
    archive log filename=/custpr/arch/arch_custpr_8012.log recid=7914 stamp=674784211
    archive log filename=/custpr/arch/arch_custpr_8013.log recid=7915 stamp=674863288
    archive log filename=/custpr/arch/arch_custpr_8014.log recid=7916 stamp=674863300
    Finished backup at 12/30/2008 22:03:47
    Starting backup at 12/30/2008 22:03:47
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 12/30/2008 22:03:47
    RMAN-06004: ORACLE error from recovery catalog database: ORA-00904: : invalid identifier
    RMAN>
    RMAN> ##BACKUP ARCHIVELOG ALL FORMAT '%d_bkp_al_%t_Set%s_Piece%p' delete input;
    2>
    3> # DELETE ARCHIVELOG UNTIL TIME 'SYSDATE-7';
    4>
    5> # check if database can be restored
    6> # RESTORE DATABASE VALIDATE;
    7>
    8> # check if controlfile can be restored
    9> ##RESTORE CONTROLFILE to '/backups/admin/custpr/custpr_bkp_cntlfile.ctl' VALIDATE;
    10>
    11> # check if archivelogs for the past two weeks can be restored
    12> # RESTORE ARCHIVELOG FROM TIME 'SYSDATE-7' VALIDATE;
    13>
    14> # - Verify all backups on backup media are intact
    15> # CROSSCHECK BACKUP OF DATABASE;
    16>
    17> # - Display a list of files that need to be backed up based on the retention
    18> # policy. For this case study, files that don't have at least 1 backups
    19> # will be reported.
    20> REPORT NEED BACKUP;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 7 days
    Report of files whose recovery needs more than 7 days of archived logs
    File Days Name
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of report command at 12/30/2008 22:03:48
    RMAN-06004: ORACLE error from recovery catalog database: ORA-00904: : invalid identifier
    RMAN>
    RMAN> # - delete un-necessary backups. This command deletes backups based on the
    2> # retention policy.
    3> ######### commented out DELETE OBSOLETE - TSM not configured to delete on 68
    4> #########DELETE OBSOLETE;
    5>
    6> # - get complete list of existing backups
    7> LIST BACKUP;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of list command at 12/30/2008 22:03:49
    RMAN-06004: ORACLE error from recovery catalog database: ORA-00904: : invalid identifier
    RMAN>
    RMAN> #-end of file-
    2> **end-of-file**
    RMAN>
    Recovery Manager complete.

  • RMAN-06136: ORACLE error from auxiliary database

    Dear All,
    When i start to recover a tablespace(TSPITR) using RMAN, getting below errors. Could any guide me
    RMAN-03002: failure of recover command at 02/07/2013 14:12:30
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-01119: error in creating database file '/rman/SHFLCLN/oradata'
    ORA-27056: could not delete file
    IBM AIX RISC System/6000 Error: 1: Not owner
    RMAN-06956: create datafile failed; retry after removing /rman/SHFLCLN/oradata from OS

    01119, 00000, "error in creating database file '%s'"
    // *Cause:  Usually due to not having enough space on the device.
    // *Action:                                                                                                                                                                                                                                                                       

  • ORACLE error from auxiliary database: ORA-01152: file 2 was not restored fr

    Hello,
    i'm trying to clone a database. It is in archive log mode.
    I took a full back using below command
    run {
      backup
         tag 'DAILY_WHOLE'
         format 'FULL_backup_%s_%p_%c.bkp'     database
         plus archivelog
         tag 'DAILY_WHOLE'
         delete all input;
      backup
         current controlfile
         format 'FULL_backup_%s_%p_%c.bkp'     tag 'WHOLE'
         spfile
         format 'FULL_backup_%s_%p_%c.bkp'     tag 'WHOLE';
    }then i issue a duplicate database command
    RUN
    DUPLICATE DATABASE TO TEST_DB
              NOFILENAMECHECK
               NOREDO
              BACKUP LOCATION '/disk10/flash_recovery_area/PROD';
    }at the very end I got this error.
    contents of Memory Script:
       Alter clone database open resetlogs;
    executing Memory Script
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/15/2013 11:59:21
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-01152: file 2 was not restored from a sufficiently old backup
    ORA-01110: data file 2: 'sysaux.dbf'Can anyone help me? I would appreciate it. thanks

    NOREDO would be used when you have a Consistent Backup (i.e. backup taken when the database is MOUNTed but not OPEN) and so, no archivelogs need to be applied. (This would also be the case for a NOARCHIVELOG database).
    See the notes on NOREDO in the DUPLICATE command documentation in the Backup and Recovery Reference.
    http://docs.oracle.com/cd/E11882_01/backup.112/e10643/rcmsynta020.htm#i81724
    Hemant K Chitale

  • Ora error from Oracle

    Hi , its really amazing to see this error from Oracle site .
    ORA-04063: package body "WEB_PROD.SHOW_DESC" has errors ORA-06508: PL/SQL: could not find program unit being called: "WEB_PROD.SHOW_DESC" ORA-06512: at "WEB_PROD.OUGBS_WEBREG_UTILS", line 3 ORA-06512: at "WEB_PROD.OU_BRIDGE_PAGESCSS", line 309 ORA-04063: package body "WEB_PROD.SHOW_DESC" has errors ORA-06508: PL/SQL: could not find program unit being called: "WEB_PROD.SHOW_DESC" Ref:
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=84&group_id=9
    Regards,
    Mohammed Mehraj

    It does happen some times. Not an unusual thing. Even at times , on Asktom too, errors come, very rare though!
    Aman....

  • Run Oracle reports from the FORM builder

    Hello All,
    We have Oracle Form base application running on the window OS.
    (Form version is 9.0.4.1.0)
    Our Database is installed on Linux box (DB version: 10.1.0.3.0)
    I need to run different Oracle reports from the form based application or from the form builder. (Report Builder 9.0.4.1.0)
    Any feed back will be appreciated.
    Regards,
    D

    try this
    Run_product(REPORTS,' <path to the report>', ASYNCHRONOUS, RUNTIME, FILESYSTEM,' ',NULL);
    in some event ( whichever event you want your report to show up)

  • Oracle 11g from oracle 8

    Accssing oracle 8i from oralce 11g is not possible.But can I access oracle 11g from oracle 8?

    It is not supported, and will most likely not be successful in connecting.
    Client / Server / Interoperability Support Between Different Oracle Versions (Doc ID 207303.1)
    HTH
    Srini
    Can I access Oracle 8i objects from Oracle 11g

  • Oracle Error from inserting a table from a table

    Hi all,
    We got a oracle error, as following,
    Thu Mar 2 16:34:03 2006
    Errors in file /oracle1/app/oracle/admin/M3US/udump/ora_1773234_m3us.trc:
    ORA-00600: internal error code, arguments: [4518], [], [], [], [], [], [], []
    The SQL is below,
    INSERT INTO MKT.TM_SAL_PGM_LOG
    SELECT B.SEQ + ROWNUM LOG_SEQ ,
    A.COM_CODE ,
    A.DIV_CODE ,
    A.PGM_NO ,
    A.PGM_SEQ ,
    A.PGM_TYPE ,
    A.CUST_CD ,
    A.BILL_TO ,
    A.TXN_TYPE ,
    A.TXN_NO ,
    A.TXN_SEQ ,
    A.TXN_DATE ,
    A.MODEL ,
    A.SUFFIX ,
    A.APPLY_AMT_LOC ,
    A.APPLY_AMT_TXN ,
    A.CN_ENTRY_FLAG ,
    A.CURRENCY ,
    A.APPLY_TYPE ,
    A.PCT_RATE ,
    A.AMT_PER_UNIT ,
    A.NET_AMT_LOC ,
    A.NET_AMT_TXN ,
    A.ACCRUAL_TYPE ,
    A.SALESMAN ,
    A.CREATE_DATE ,
    A.DEPT_CODE ,
    A.QTY ,
    A.ACCRUAL_FLAG ,
    A.APPLY_AMT ,
    A.FIXED_AMT ,
    A.SHIP_FROM ,
    A.AUTO_ADJUST ,
    A.CHINA_PRODUCT
    FROM MKT.TM_SAL_PGM_LOG_IT A,
    ( SELECT MAX(LOG_SEQ) SEQ FROM MKT.TM_SAL_PGM_LOG ) B
    WHERE PGM_NO = '2006-DA0004B'
    AND TXN_TYPE IN ( 'ACCR' ,'CRED' )
    AND COM_CODE = 'LGEUS';
    If we tried to insert into a table with one more condition,
    and rownum=1;
    it went throught without error.
    And, if we insert into the table with value( val1, val2,.....,valn), it also went through without any error message, but ONLY when the whole SQL is executed.
    There is no error either for the select statement in the SQL either.
    It is Oracle 8.1.7.4 64-bit on IBM AIX 5.2 machine.
    What is wrong?
    Thanks for advance!
    Robert

    Dump file /oracle1/app/oracle/admin/M3US/udump/ora_1773234_m3us.trc
    Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.4.0 - Production
    ORACLE_HOME = /oracle1/app/oracle/product/8.1.7
    System name: AIX
    Node name: lgeus
    Release: 2
    Version: 5
    Machine: 00C9C4CD4C00
    Instance name: M3US
    Redo thread mounted by this instance: 1
    Oracle process number: 86
    Unix process pid: 1773234, image: oracle@lgeus (TNS V1-V3)
    *** SESSION ID:(184.8386) 2006-03-02 16:13:16.189
    *** 2006-03-02 16:13:16.189
    ksedmp: internal or fatal error
    ORA-00600: internal error code, arguments: [4518], [], [], [], [], [], [], []
    Current SQL statement for this session:
    INSERT INTO TM_SAL_PGM_LOG
    SELECT C.LOG_SEQ + ROWNUM,
    D.COM_CODE, D.DIV_CODE, '2006-DA0004B' PGM_NO,
    DECODE ( T.PRODUCT, 'WR', 1, 'WL', 2, 'WK', 3, 'JE', 4, 'JM', 5, 'FR', 6, 'FD',7, 0 ) PGM_SEQ , 'KO' ,
    M.CUST_CD, M.BILL_TO, 'ACCR' TXN_TYPE, D.ORDER_NO, D.SALES_SEQ,
    GREATEST ( M.INVO_DATE, '20060228') , D.MODEL, D.SUFFIX,
    D.NET_AMT_TXN * 0.02,D.NET_AMT_TXN * 0.02, 'S', 'USD', 'P', 2, 0, D.NET_AMT_LOC, D.NET_AMT_TXN, 'L',
    M.SALESMAN, SYSDATE, M.DEPT_CODE, D.PICK_QTY, NULL, NULL, NULL, NULL, 'N', NULL
    FROM TM_SAL_DTL D,
    TM_SAL_MST M,
    TM_MODEL T,
    ( SELECT NVL(MAX (LOG_SEQ ),0) LOG_SEQ FROM TM_SAL_PGM_LOG_IT ) C
    WHERE D.ORDER_NO = M.ORDER_NO
    AND D.COM_CODE = M.COM_CODE
    AND D.DIV_CODE = M.DIV_CODE
    AND D.MODEL = T.MODEL
    AND D.SUFFIX = T.SUFFIX
    AND D.COM_CODE = T.COM_CODE
    AND ( D.INVO_NO , D.INVO_SEQ ) IN (
    SELECT /*+ ORDERED M, D, T */
    D.INVO_NO, D.INVO_SEQ
    FROM TM_SAL_MST M,
    TM_SAL_DTL D,
    TM_MODEL T
    WHERE M.ORDER_NO = D.ORDER_NO
    AND M.COM_CODE = D.COM_CODE
    AND M.DIV_CODE = D.DIV_CODE
    AND D.MODEL = T.MODEL
    AND D.SUFFIX = T.SUFFIX
    AND D.COM_CODE = T.COM_CODE
    AND M.INVO_DATE BETWEEN '20060101' AND '20061231'
    AND M.BILL_TO IN ( 'US006900' )
    AND T.PRODUCT IN (
    SELECT PRODUCT FROM TM_SAL_PGM_DTL
    WHERE PGM_NO = '2006-DA0004B' )
    MINUS
    SELECT TXN_NO, TXN_SEQ
    FROM TM_SAL_PGM_LOG
    WHERE PGM_NO = '2006-DA0004B'
    AND COM_CODE = 'LGEUS'
    AND TXN_TYPE = 'ACCR' )
    ----- Call Stack Trace -----
    calling call entry argument values in hex
    location type point (? means dubious value)
    ksedmp+00cc bl ksedst 1 ?
    ksfdmp+0018 bl ksedmp 110276CD ?
    kgeriv+0104 bl _ptrgl
    kgeasi+0104 bl kgeriv 84 ? 70 ? 6 ? 6 ? 2FF1A24C ?
    ktbwbi+00f8 bl kgeasi 20009408 ? 201287D4 ? 11A6 ?
    2 ? 0 ? C0 ? 8000 ? 0 ?
    kdisle+100c bl ktbwbi 2FB0 ? 11919F50 ? 0 ? 0 ?
    kdiins0+0f84 bl kdisle 69362E20 ? 2FF1A740 ?
    2FF1B008 ? 1000001 ? 80008 ?
    22243DE8 ? 2C002C ? 0 ?
    kauxsin+13e8 bl kdiins0 69362E20 ? 0 ? 0 ? 0 ? 0 ?
    0 ? 0 ? 80000 ?
    insidx+0388 bl kauxsin 69362DD4 ? 117694C4 ? 0 ?
    201B4278 ? 201B4308 ?
    201B4350 ? 201B4260 ? 0 ?
    insflush+013c bl insidx 88 ?
    insrow+04a0 bl insflush 201B41D4 ? 1 ? 2FF1DE48 ?
    insdrv+0450 bl insrow 201B41D4 ? 2FF1DE48 ? 0 ?
    insexe+04ec bl insdrv 201B41D4 ?
    opiexe+1f2c bl insexe 63406C80 ? 3 ?
    opiall0+0c60 bl opiexe 4 ? 2 ? 2FF1F7F0 ?
    kpoal8+0678 bl opiall0 5E ? 22 ? 2FF1FAA8 ? 0 ?
    2FF1FA50 ? 20121CB8 ? 5EB ?
    4422022 ?
    opiodr+0668 bl _ptrgl
    ttcpip+09d8 bl _ptrgl
    opitsk+066c bl ttcpip 57B ? 200AEA88 ? 2FF21288 ?
    7FF ? 1 ? 0 ? 20067B70 ? 4C ?
    opiino+061c bl opitsk 2000CE18 ?
    opiodr+0668 bl _ptrgl
    opidrv+0450 bl opiodr 3C ? 4 ? 2FF229C8 ? 0 ?
    sou2o+0028 bl opidrv 3C ? 4 ? 2FF229C8 ?
    main+0130 bl sou2o 0 ? A0 ? 2FF22890 ? 0 ?
    __start+0088 bl main 2 ? 2FF22A38 ?
    ----- Argument/Register Address Dump -----
    Argument/Register addr=1.
    Dump of memory from 0x0 to 0x101
    000 00000000 00000000 00000000 00000000 [................]
    Repeat 15 times
    100 7C7243A6 [|rC.]
    Argument/Register addr=110276cd.
    Dump of memory from 0x1102768D to 0x110277CD
    11027680 4BFFFCA5 [K...]
    11027690 2C030000 40820020 3B5A0001 80010040 [,...@.. ;Z.....@]
    110276A0 3B390001 7C1A0040 4180FDF8 80610050 [;9..|[email protected]]
    110276B0 48000010 4BFD2989 60000000 38600001 [H...K.).`...8`..]
    110276C0 800100A8 818100A4 382100A0 7C0803A6 [........8!..|...]
    110276D0 BA21FFC4 7D808120 4E800020 00000000 [.!..}.. N.. ....]
    110276E0 00002043 800F0600 00000000 000002D8 [.. C............]
    110276F0 00096472 65696931 696E7300 BE21FFC4 [..dreii1ins..!..]
    11027700 607F0000 7C0802A6 7D800026 90010008 [`...|...}..&....]
    11027710 8003000C 91810004 2C000000 9421EF70 [........,....!.p]
    11027720 408207A0 60960000 83DF0000 60B50000 [@...`.......`...]
    <and go on>
    this file is huge, I just copy/paste the first part. I hope it helps.
    Thanks a lot, Sri.
    Robert

  • Calling Stored procedure in Oracle 11g from Oracle forms developer 6i

    We have Oracle 11g (11.1.0.7.0 ) database (64 bit) installed on Windows Server 2008.
    In this database, we have stored procedure ABC(arg1) which is accesing a table in another instance through DB LINK. If we EXECUTE this procedure from SQL/TOAD. It runs successfully and generates the desired output.
    If we write the contents of the stored procedure in the PROGRAM UNIT / ANY TRIGGER in FORM 6i then also, It runs successfully and generates the desired output.
    It is also mentioned, that if we try to use any table in the same instance (and not through DBLINK) then it works fine.
    However, if we try to call this stored procedure (which is  accesing a table in another instance through DB LINK) from  ORACLE FORMS  6i  in WHEN-BUTTON-PRESSED trigger then the FORM BUILDER gets hanged while compiling the form developed in FORMS 6i.
    Please provide a solution to this problem.
    THANKS IN ADVANCE.
    Hemant Singh.
    Asstt. Manager(IT)
    Software development team.

    Forms 6i was never meant to run against a 11g database, this was not tested and is also not supported.Well, that is not completely true. Developer 6i is supported against a 11g database, but only for Oracle Apps R11. That means that for most other customers (not Apps) Forms 6i will work against an 11g database. However, only Apps R11 is supported, and patches are only created specifically for Apps. We are also running Forms 6i against an 11g database without (well, minor) problems.
    In this case, you need to find a solution. You can try to put the stored procedure in a package. The package body, with the reference to the remote table, will be hidden from Forms this way.

  • DB Link Error from Oracle to Mysql

    Hi ,
       I have created the dblink from oralce to mysql using note id 1320645.1
      I am getting the below error while connecting to the mysql using the dblink
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [unixODBC][MySQL][ODBC 5.1 Driver]Access denied for user 'user'@'xxxx.xxxx.xxxx'
    (using password: YES) {HY000,NativeErr = 1045}
    ORA-02063: preceding 2 lines from MYODBC5
    Please help me to  slove the error
    Thanks in Advance
    Sudheer

    Sudheer,
    the error message is self explaining - your user 'user' connecting from the host @'xxxx.xxxx.xxxx' is not allowed to log into the MySQL database. To solve this issue you need to grant permissions to the user so that he can connect from any host (%) or just from that particular host where you installed the gateway.
    The command to allow access from everywhere would be:
    grant all on *.* TO '<user>'@'%' IDENTIFIED BY '<password>';
    or just specify the IP address instead of '%' if you want to restrict it.
    More details can be found in the MySQL manual:
    MySQL :: MySQL 5.1 Reference Manual :: 6.2.7 Causes of Access-Denied Errors
    - Klaus

  • Import error from oracle 10.1.0  to oracle 10. 2.0

    Hi
    I am importing schema from oracle 10.1.0 to oracle 10.2.0.
    my all objects are imported successfully except foreign key constraints.
    my error are like
    IMP-00003: ORACLE error 20001 encountered
    ORA-20001: Invalid or inconsistent input values
    ORA-06512: at "SYS.DBMS_STATS", line 5167
    ORA-06512: at line 1
    IMP-00017: following statement failed with ORACLE error 20001:
    "DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
    " NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
    "RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
    "S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"PRODUCTID"', NULL ,NULL,NULL,0"
    ",0,0,srec,0,6); END;"
    IMP-00003: ORACLE error 20001 encountered
    ORA-20001: Invalid or inconsistent input values
    ORA-06512: at "SYS.DBMS_STATS", line 4194
    ORA-06512: at line 1
    IMP-00017: following statement failed with ORACLE error 20001:
    "DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
    " NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
    "RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
    "S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"PRODUCT_CODE"', NULL ,NULL,NUL"
    "L,0,0,0,srec,0,6); END;"
    IMP-00003: ORACLE error 20001 encountered
    ORA-20001: Invalid or inconsistent input values
    ORA-06512: at "SYS.DBMS_STATS", line 4194
    ORA-06512: at line 1
    IMP-00017: following statement failed with ORACLE error 20001:
    "DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
    " NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
    "RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
    "S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"PRODUCT_NAME"', NULL ,NULL,NUL"
    "L,0,0,0,srec,0,6); END;"
    IMP-00003: ORACLE error 20001 encountered
    ORA-20001: Invalid or inconsistent input values
    ORA-06512: at "SYS.DBMS_STATS", line 4194
    ORA-06512: at line 1
    IMP-00017: following statement failed with ORACLE error 20001:
    "DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
    " NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
    "RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
    "S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"SHORT_DESC"', NULL ,NULL,NULL,"
    "0,0,0,srec,0,6); END;"
    IMP-00003: ORACLE error 20001 encountered
    ORA-20001: Invalid or inconsistent input values
    ORA-06512: at "SYS.DBMS_STATS", line 4194
    ORA-06512: at line 1
    IMP-00017: following statement failed with ORACLE error 20001:
    "DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
    " NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
    "RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
    "S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"DESCRIPTION"', NULL ,NULL,NULL"
    ",0,0,0,srec,0,6); END;"
    IMP-00003: ORACLE error 20001 encountered
    ORA-20001: Invalid or inconsistent input values
    ORA-06512: at "SYS.DBMS_STATS", line 4194
    ORA-06512: at line 1
    IMP-00017: following statement failed with ORACLE error 20001:
    "DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
    " NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
    "RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
    "S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"PRODUCTLIMG"', NULL ,NULL,NULL"
    ",0,0,0,srec,0,6); END;"
    IMP-00003: ORACLE error 20001 encountered
    ORA-20001: Invalid or inconsistent input values
    ORA-06512: at "SYS.DBMS_STATS", line 4194
    ORA-06512: at line 1
    IMP-00017: following statement failed with ORACLE error 20001:
    "DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
    " NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
    "RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
    "S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"PRODUCTMIMG"', NULL ,NULL,NULL"
    ",0,0,0,srec,0,6); END;"
    IMP-00003: ORACLE error 20001 encounteredthanks

    you can import the stats with importing objects , you can pass parameter STATISTICS =none ( do not import the stats).
    STATISTICS -- import precomputed statistics (always)
    Try this.
    --Girish                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Passing parameters to oracle rports from oracle forms

    Dear all,
    Can anyone tell me how to pass parameters from oracle forms 10g to oracle reports 10g ,i want to hide my connection string and parameteres while open the report through web
    can anyone plese help me out to solve this problem.

    Hi,
    I had trail as advised, but anticipated results were not observed.
    Here is the named configuration in formsweb.cfg
    [NMPT]
    form=D:\NMPT\FORMS\FHOPENFORM.fmx
    userid=hmsprod/hmsprod@hindalco
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    imageBase=CodeBase
    separateFrame=True
    lookandfeel=oracle
    logo=none
    splashScreen=no
    pageTitle =Test Application
    background=no
    colorScheme=blue
    archive_jini=f90all_jinit.jar,icons.jar,frmwebutil.jar,jacob.jar
    archive=f90all.jar
    height=768
    width=1024
    envFile=nmpt.env
    otherparams=useSDI=yesLOCATIONID=NMPT # new parameter which I want to access in my form
    the URL is as follows:
    http://MyPC:8888/forms90/f90servlet?config=NMPT
    But I am unable to open the login page

  • Using Oracle Discoverer from Oracle Forms

    Can Oracle Discoverer4 be ran from Oracle Forms 10g?
    If so, how and under what topic in documentation would this be under?
    Thanks

    I am in the need of this knowledge too. I wonder if there is any way that
    I can pass parameters to the discoverer and the discoverer can
    generate two plotters in one graph by evaluating the incoming
    parameters. I could do it from Forms to Reports, but can I do it
    from Forms to Discover? Appreciate any input!!!

  • Problem in connecting Non Oracle Database from Oracle

    Hi:
    I want to access "MS ACCESS" from Oracle 10g (10.2.0.1) using Windows XP.
    I tried my best, applied all proper instructions I found from books and from Internet, but getting an error.
    Here is what I did:
    My Oracle database is called "ORCL" and "MS ACCESS" is called "access_1".
    There is only one table "Employees" in "access_1".
    1. Accessed ODBC from Start | Control Panel | Administrative Tools.
    2. Clicked on Users DSN | "access_1" | Add.
    3. Clicked on "Drive do Microsoft Access (*.MDB)" .
    4. Hit Finish.
    5. Entered at DATA SOURCE NAME "ODBC1" and at DESCRIPTION "Connect Oracle to MS Access". Also I clicked on SELECT and chose the "Access_1.mdb" which is located at "C:\Documents and Settings\Muhammad\My Documents" folder. Clicked OK. and clicked on OK again.
    6. Now I went to Oracle side and configured listener as follows: (Only portion is shown here)
    # listener.ora Network Configuration File: C:\oracle\product\orcl\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\orcl)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = hsodbc)
    (ORACLE_HOME = C:\oracle\product\orcl)
    (PROGRAM = hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = RIYAZDESKTOP)(PORT = 1521))
    7. Configuring the hs file located at C:\oracle\Product\Orcl\hs|admin as follows:
    # HS init parameters
    # HS_FDS_CONNECT_INFO = <odbc data_source_name>
    # HS_FDS_TRACE_LEVEL = <trace_level>
    HS_FDS_CONNECT_INFO = odbc1
    HS_FDS_TRACE_LEVEL = OFF
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    8. The TNSNAMES.ORA File is located at C:\:\oracle\product\orcl\network\admin\ and has the following text (only the related text is shown here):
    # tnsnames.ora Network Configuration File: C:\oracle\product\orcl\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools
    access_db.world =
    (DESCRIPTION =
    (Address = (PROTOCOL = TCP) (HOST = RIYAZDESKTOP) (PORT = 1521))
    (CONNECT_DATA = (SID = hsodbc))
    (HS=OK)
    9. The database link is created as follows:
    SQL> create database link access_db USING 'access_db.world';
    Database link created.
    SQL>
    10. Now the test and selection:
    SQL> select * from employees@access_db;
    select * from employees@access_db
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from ACCESS_DB
    OH! I HAVE TO RELOAD THE LISTENER AND I DID IT HERE.
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\oracle\product\orcl\BIN>lsnrctl reload
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 17-NOV-2006 17:51:26
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    The command completed successfully
    C:\oracle\product\orcl\BIN>
    SQL> select table_name from all_tables@access_db;
    select table_name from all_tables@access_db
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (SQL State: IM002; SQL Code: 0)
    ORA-02063: preceding 2 lines from ACCESS_DB
    I HAVE DONE IT EXACTLY WHAT YOU PROVIDED ME BUT GOT THE SAME RESULT.
    ANY SOLUTION!
    THANKS.

    see Connect 9i to Microsoft Access Database

Maybe you are looking for