How to find if an error log table is related to a table....???

Hi,
In Oracle 10g , maybe in older version too, there is the capability to create an error log table using the dbms_errlog package and create_error_log procedure...
For exaample:
exec dbms_errlog.create_error_log('EMP','EMP_ERROR')
How to find afterwards that the table EMP has a related table EMP_ERROR where errors during the inserts/updates on table EMP are registered...?????
Of course the column names in EMP_ERROR table are the same as in EMP .... but it's time consuming method to search like this way...!!!!!
SQL> exec dbms_errlog.create_error_log('EMP','EMP_ERROR');
PL/SQL procedure successfully completed
SQL> DESC EMP_ERROR;
Name            Type           Nullable Default Comments
ORA_ERR_NUMBER$ NUMBER         Y                        
ORA_ERR_MESG$   VARCHAR2(2000) Y                        
ORA_ERR_ROWID$  UROWID(4000)   Y                        
ORA_ERR_OPTYP$  VARCHAR2(2)    Y                        
ORA_ERR_TAG$    VARCHAR2(2000) Y                        
EMPNO VARCHAR2(4000) Y
ENAME VARCHAR2(4000) Y
JOB VARCHAR2(4000) Y
MGR VARCHAR2(4000) Y
HIREDATE VARCHAR2(4000) Y
SAL VARCHAR2(4000) Y
COMM VARCHAR2(4000) Y
DEPTNO VARCHAR2(4000) Y                        
SQL> DESC EMP;
Name     Type         Nullable Default Comments
EMPNO    NUMBER(4)                             
ENAME    VARCHAR2(10) Y                        
JOB      VARCHAR2(9)  Y                        
MGR      NUMBER(4)    Y                        
HIREDATE DATE         Y                        
SAL      NUMBER(7,2)  Y                        
COMM     NUMBER(7,2)  Y                        
DEPTNO   NUMBER(2)    Y          Thanks...
Sim

exec dbms_errlog.create_error_log('EMP','EMP_ERROR')
How to find afterwards that the table EMP has a related table EMP_ERROR
System@Elic10> create table bla_bla (i int);
Table created.
System@Elic10> exec dbms_errlog.create_error_log('BLA_BLA', 'BLA_BLA_ERRS')
PL/SQL procedure successfully completed.
System@Elic10> select * from user_tab_comments where table_name = 'BLA_BLA_ERRS';
TABLE_NAME                     TABLE_TYPE  COMMENTS
BLA_BLA_ERRS                   TABLE       DML Error Logging table for "BLA_BLA"

Similar Messages

  • How to find or generate crash log in Indesign CC

    Hi,
    In InDesign document, I am updating the links using javascript. After updating the links, If i have opened the same document for two or more time, Indesign gets crashed. So i need to find the crash logs.
    Please tell me how to find or generate crash log in InDesign CC.
    Thanks,
    Vimala L

    use the variables ErrorCode and ErrorDescription
    to create the body of the email message
    these variables will give you the error details.
    refer : http://social.msdn.microsoft.com/Forums/sqlserver/en-US/e7a5e86b-bcfb-4bfe-9b70-822169cb747b/show-error-message-in-ssis-email?forum=sqlintegrationservices
    variable reference : http://technet.microsoft.com/en-us/library/ms141788.aspx
    Surender Singh Bhadauria
    My Blog

  • How can we create the error log in a ABAP program

    Hi all,
    How can we create the error log in a ABAP program
    Thanks,
    srinivas.

    Hi,
    Refer to FM's in the Function Group SBAL. For a change most of the FM's have been well documented. Also have a look at the DEMO pgms. Se38---->SBALDEMO & F4.
    Regards
    Raju Chitale

  • How to find unsued Transfer Rules and Data Sources for a Master Table...??

    How to find unsued Transfer Rules and Data Sources for a Master Table...?? My requirement is i need to delete those Transfer rules and Data Sources which are not in use

    Hi
    Go to manage of the Text or attirbute of the master data object, see what are being loaded daily from there and delete the remaining.
    Cheer
    Ans as expected, Please reward

  • How to find out Sales organization of a sold to party from tables

    Hi all experts, I have the following questions:
    1. How to find out Sales organization of a sold to party using tables?
    2. Also please tell any function module which gives relationship between sold-to-party and sales organization to which it belongs.

    Hi,
    Check table CRMM_BUT_LNK0141 to obtain the sales area of a BP (by BP Guid).
    If you need the sales office and sales group, read GuidSet of that table and check table CRMM_BUT_SET0140 to list the sales office and sales group by that Guid set.
    There are some function modules too:
    CMS_BUPA_ORGDATA_GET_BL among others.
    Regards,
    Susana Messias

  • How to find accurate number of Rows, and size of all the tables of a Schema

    HI,
    How to find the accurate number of Rows, and size of all the tables of a Schema ????
    Thanks.

    SELECT t.table_name AS "Table Name",
    t.num_rows AS "Rows",
    t.avg_row_len AS "Avg Row Len",
    Trunc((t.blocks * p.value)/1024) AS "Size KB",
    t.last_analyzed AS "Last Analyzed"
    FROM dba_tables t,
    v$parameter p
    WHERE t.owner = Decode(Upper('&1'), 'ALL', t.owner, Upper('&1'))
    AND p.name = 'db_block_size'
    ORDER by 4 desc nulls last;
    ## Gather schema stats
    begin
    dbms_stats.gather_schema_stats(ownname=>'SYSLOG');
    end;
    ## Gather a particular table stats of a schema
    begin
    DBMS_STATS.gather_table_stats(ownname=>'syslog',tabname=>'logs');
    end;
    http://www.oradev.com/create_statistics.jsp
    Hope this will work.
    Regards
    Asif Kabir
    -- Mark the answer as correct/helpful

  • How to find number of users logged into ODI

    Hi Experts,
    I am using ODI 11g in linux environment. I have created 15 users in system manager tab.
    My query is, how to find ODI11g logged in users list
    For Example, out of 15 users, 7 users are accessing ODI, how to fetch 7 users name list.
    Is there any query to find fetch the list
    Can any one please help me out
    Thanks in Advance
    Regards,
    PK
    Edited by: 917775 on Jun 21, 2012 11:52 PM

    Hi Rai,
    Thank you for the response
    I have verified already with v$session table, it seems how database user are login (lie it show the status as Active and InActive in status column) but I want to know the staus for how users are login into ODI.
    I have verified with SNP_USER table also, no uses of the.
    Any help on same
    Thanks in advance
    Regards,
    Phanikanth

  • How to find the bdc error

    i did one bdc program, it's running correctly but data not upload. so how to lanalyze  the error.

    Dear
    you can find error with following link
    How to find errors from BDC log
    Regards

  • How to find JSP syntax Errors

    Dear All.
    I develop JSP in EP environment by NW Studio, I fond it is difficult to find JSP syntax Errors when I wrote the JSP, I ever view EP log, but the information is so general, it only told me "Error occurs during the compilation of java generated from the jsp" and so so, I can't find more detail information , could you tell me how can I find the syntax Errors quickly?

    Hi,
    The error should be somewhere in the log or trace file.
    Try default.trc in Visual Administrator (Log viewer) to look for more detail.
    Another possibility is to look for plugins that are compatible with NWDS and that can (pre)compile JSP's. Anyone....?
    In general is it is wise to keep your JSP's small, so use jsp:include (or page include) where possible. Also to avoid duplication of code. Indentation also helps to keep code readable.
    Good luck,
    Roelof

  • How to create a new error log in VF01

    How would I create a new error log upon creation of invoice in VF01 based on the billing block of order.
    Here is the scenario:
    In VFO1 -->> enter delivery no. then create, but upon creation, an error message appeared incorrect.
    In EDIT -->> LOG, this will appear:
    Error Log
      |
      |_____ 4981173515  000010 Document 4946087103 is blocked for billing.
    The message blocked for billing is what I want to change based on what billing block in order was triggered.
    Tnx in advance!

    This is controlled by your delivery to billing copy control requirement (header).  You would change the copy control config to use a new requirement and then config that requirement at the header level.  (IMG->S&D->Billing->Billing Docs->Maintain Copying Control...).  Make a copy of the existing copy requirement (in txn VOFM) and then add your code to check the block type and change the message.

  • How to find out which archived logs needed to recover a hot backup?

    I'm using Oracle 11gR2 (11.2.0.1.0).
    I have backed up a database when it is online using the following backup script through RMAN
    connect target /
    run {
    allocate channel d1 type disk;
    backup
    incremental level=0 cumulative
    filesperset 4
    format '/san/u01/app/backup/DB_%d_%T_%u_%c.rman'
    database
    }The backup set contains the backup of datafiles and control file. I have copied all the backup pieces to another server where I will restore/recover the database but I don't know which archived logs are needed in order to restore/recover the database to a consistent state.
    I have not deleted any archived log.
    How can I find out which archived logs are needed to recover the hot backup to a consistent state? Can this be done by querying V$BACKUP_DATAFILE and V$ARCHIVED_LOG? If yes, which columns should I query?
    Thanks for any help.

    A few ways :
    1a. Get the timestamps when the BACKUP ... DATABASE began and ended.
    1b. Review the alert.log of the database that was backed up.
    1c. From the alert.log identify the first Archivelog that was generated after the begin of the BACKUP ... DATABASE and the first Archivelog that was generated after the end of the BACKUP .. DATABASE.
    1d. These (from 1c) are the minimal Archivelogs that you need to RECOVER with. You can choose to apply additional Archivelogs that were generated at the source database to contininue to "roll-forward"
    2a. Do a RESTORE DATABASE alone.
    2b. Query V$DATAFILE on the restored database for the lowest CHECKPOINT_CHANGE# and CHECKPOINT_TIME. Also query for the highest CHECKPOINT_CHANGE# and CHECKPOINT_TIME.
    2c. Go back to the source database and query V$ARCHIVED_LOG (FIRST_CHANGE#) to identify the first Archivelog that has a higher SCN (FIRST_CHANGE#) than the lowest CHECKPOINT_CHANGE# from 2b above. Also query for the first Archivelog that has a higher SCN (FIRST_CHANGE#) than the highest CHECKPOINT_CHANGE# from 2b above.
    2d. These (from 2c) are the minimal Archivelogs that you need to RECOVER with.
    (why do you need to query V$ARCHIVED_LOG at the source ? If RESTORE a controlfile backup that was generated after the first Archivelog switch after the end of the BACKUP ... DATABASE, you would be able to query V$ARCHIVED_LOG at the restored database as well. That is why it is important to force an archivelog (log switch) after a BACKUP ... DATABASE and then backup the controlfile after this -- i.e. last. That way, the controlfile that you have restored to the new server has all the information needed).
    3. RESTORE DATABASE PREVIEW in RMAN if you have the archivelogs and subsequent controlfile in the backup itself !
    Hemant K Chitale

  • How to find the user who has changed a field in a table

    Hello
        Someone has changed a field  cost center in my table so i need to find the user who hav changed it.Can anyone tel me how to find it.
    Regards

    HI ,
    Create a Z test program using the particular table and filed .
    Now goto SE38 and execute the program " RSDEPEND "
    give the ur test program and then execute . u will get the list of the last  change of ur program
    ( table and fields used inthis program)
    Another way :
    for data element :
    refer table 
      DD04L and get the user name
    for domain
    DD01L
    Edited by: shambhu sharan pandey on Nov 13, 2009 5:49 AM

  • How to find out the error in J2EE application without debugging

    Hi all,
    I am trying JCO example for Sales order in Netweaver Development Studio 2.0.3 and JCO 2.1.4.
    I am using Java class as a object and calling the class in servlet.
    I am checking one by one method ie systeminfo for getting connection and Salesorder method to get the detail.
    I am using Printwrite class in Srvlet and getting the error in browser. but inside the method how I can get the error. the same way i can use the OUT.println in class also.
    Thanks in advance.
    Regards,
    ram

    You can check the log in the LogViewer service of your J2EE server

  • How to find trace file error in form

    hai all,
    i have big problem in my form in apps i open the form one error is ocuured,
    i got the trace file and check the error,
    PARSE ERROR #82:len=2903 dep=0 uid=173 oct=3 lid=173 tim=4265689973879 err=904 this is the trace file error meassage,
    how to find this error in form and also this is occured one select statement,how to find this select statement where can be used in form,
    i have one button ,when ever i press the button this error is ocuured,i check this button pl/sql procedure code but in this code not using that sql statement,
    if any one know to find the sql statement through trace file.
    plz give the replay as soon as possible.
    thank's

    The newest SQL Developer can converts the trace to readable format too, I'm not shure if you see the sql statement related to the error then.
    It seems you get ORA-00904 which says you use an invalid coumn in a dml statement.
    Normally such error should pop up in message - do you overwrite the message handling or use exception handling in you form which block this message?
    Easiest way to find this is to compile the form against the target database.
    If this does not give an error, you should check, if you use dynamic sql statements which are wrong.
    If you call database routines from your form, than this could be the errro cause too.

  • How to avoid actual cost error log while confirm production order activity

    Hi
    I dont want to post actual activity cost via production order activity confirmation. But i want standard value keys for my production duration purpose. So,i defined activites(strd value key) in work center without assigning cost center to that work center. While i confirm in CO11N, system throws erro log as Actual cost calculation contain errors and allows me to confirm the activities. I am doing MB31 and all CO settlement activities also. But when i try to close the order it says error log exists,so closing of order is not possible. How to overcome this problem as i dont want to capture any cost of activites via production order,but i want confirmation only for production analysis.

    Hi
    Issue is resolved thru PP forum. Thanks for ur reply.
    Solution lies in Control key of routing and BOM costing relevancy.

Maybe you are looking for

  • T3 protocol over Apache doesn´t work

    Hi all, I've configured Apache with Weblogic Plugin as following: <VirtualHost *:14000> ServerName aldspdes-soa ErrorLog c:/Apache2.2/logs/aldspdes-soa-error_log CustomLog c:/Apache2.2/logs/aldspdes-soa-access_log common KeepAlive On <Location /> Set

  • Steps involved in transporting a query/workbook

    Hello Gurus, What are the steps/objects involved in transporting a query and a workbook to a particular user. Should roles be transported with them? Thanks for the help. Simmi

  • How to create a case in case management with QM02 link?

    Dear Gurus, I have to create a case in case management with link to t-code QM02. Any help would be appreciated. Thanks, GSM

  • 'EDI 110 - Air Freight  and Invoice details' Inbound

    Hi, Can anyone please tell me what is the IDOC type to be used for EDI 110 inbound? Thank you, Renu

  • JSF own component

    Hi. I am developing own JSF component, something like Switch compoennt which have oracle - ADF Faces Components. On JSF page will be this tag: <s:switch value="facet2"> <facet name "facet1">..... </facet> <facet name "facet2">.....</facet> </s:switch