How Can I Get The Table_Name Where I Used Dbms_Errlog?

CREATE TABLE ERROR_LOG
ORA_ERR_NUMBER$      NUMBER,
ORA_ERR_MESG$           VARCHAR2(2000 CHAR),
ORA_ERR_ROWID$      UROWID(4000),
ORA_ERR_OPTYP$      VARCHAR2(2 CHAR),
ORA_ERR_TAG$           VARCHAR2(2000 CHAR),
ORA_ERR_TABLE_NAME      VARCHAR2(30),
ORA_ERR_TIME           DATE     DEFAULT SYSDATE,
ORA_ERR_AUTHOR     VARCHAR2(30)     DEFAULT USER     
I create a single table for handling errors for all tables.
I just want to Get the table name where I used dbms_errlog.
I want to get table_name where I performed last DML Statemet?
Edited by: Nilesh Hole on May 24, 2010 4:50 AM
Edited by: Nilesh Hole on May 24, 2010 4:57 AM
Edited by: Nilesh Hole on May 26, 2010 3:43 AM

I should have written "you should not" rather than "can not." The advice holds.
The point of using the package in its default mode is that you can fix the problems.
Do it generically and all you learn is that an error occurred.
SQL> select * from ERROR_LOG_SERVERS;
ORA_ERR_NUMBER$ ORA_ERR_MESG$                                      ORA_ERR_ROWID$     OR ORA_ERR_TA
              1 ORA-00001: unique constraint (UWCLASS.PK_SERVERS)                     I
                violatednot much useful information.
But I appreciate you posting the idea so I show on my website why doing this is a bad idea.

Similar Messages

  • How can I find the procedures where I use a table?

    How can I find the procedures where I use a table?
    I need to look for it in all the users.

    select name,owner from dba_dependencies where referenced_name='table_name'
    and referenced_owner = 'schema'
    and type = 'PROCEDURE'
    Aravind

  • How can I get the App store to use money in my account rather than a credit card when I want to buy something?

    How can I get the App store to use money in my account rather than a credit card when I want to buy something?

    The iTunes/Mac App Stores use credit on an account first. You are asked to supply an additional payment method when the cash credit doesn't cover the complete cost of the purchase.

  • How can I get the page where a page item is localized?

    Hi<br /><br />I move some page items to the next spread using kMoveToSpreadCmdBoss. This works fine. But when I want to get the page uid where the page item is localized now (I use Utils<ILayoutUtils>()->GetOwnerPageUID to do that) I get the uid of the spread and not the uid of the page where the page item is localized.<br /><br />- What is wrong?<br />- What can I do to get the page uid?<br /><br />Thanks<br />Hans

    Hans,<br /><br />I recently had to do the same, so I'll show you what I have done.  I start by getting the spline item UIDRef and the value that Utils<ILayoutUtils>()->GetOwnerPageUID gives you.  Then I figure out which side of the spread the item falls on:<br /><br />InterfacePtr<IGeometry> splineGeo(ItemRef, IID_IGEOMETRY);<br /><br />PMRect itemRect = splineGeo->GetStrokeBoundingBox();<br /><br />PMPoint currPoint = itemRect.LeftTop();<br /><br />InnerToPasteboard(splineGeo, &currPoint);<br />     <br />if(currPoint.X() < 0){<br />     //it's a left-hand page<br />     left = true;<br />}<br /><br />Once I know which side the item is on, I can calculate which page the item falls on(where OwnerUID is the UID that the call to GetOwnerPageUID returns):<br /><br />UID GetOwningPageUID(IDocument *docPtr, UID OwnerUID, bool left)<br />{<br />        UID rc;<br />     int32 index;<br />     <br />     //get the database <br />     IDataBase *db = ::GetDataBase(docPtr);<br /><br />     //Get the list of pages<br />     InterfacePtr<IPageList> pgList(docPtr, IID_IPAGELIST);<br /><br />     index = pgList->GetPageIndex(OwnerUID);<br /><br />     if(index >= 0){<br />          //the passed in UID refers to a page<br />                rc = OwnerUID;<br />     }else{<br />                //dealing with a spread UID<br />          UIDRef pageSpreadUIDRef(db, OwnerUID);<br /><br />          InterfacePtr<ISpread> pgSpread(pageSpreadUIDRef, UseDefaultIID());<br /><br />          int32 pageCount = pgSpread->GetNumPages();<br /><br />          if(pageCount == 1){<br />               rc = pgSpread->GetNthPageUID(0);<br />          }else if(pageCount <= 2){<br />               if(left){<br />                    rc = pgSpread->GetNthPageUID(0);<br />               }else{<br />                    rc = pgSpread->GetNthPageUID(1);<br />               }<br />          }else{<br />                     rc = nil;<br />          }<br />     }<br /><br />     return rc;<br />}<br /><br />I hope this helps.<br /><br />Dan

  • How can i get the time capsule to use my mac's mac address

    on some wireless routers you can get the router to use the mac address of a client connected to it instead of it's own.
    Can i do that on the time capsule?

    Sorry, but no. You cannot change (spoof) the MAC address on any of the AirPort/Time Capsule routers.

  • How can i get the HTTP header info using Java

    Hi,
    I kinda need to extract the HTTP header info from a page that i goto through a URL objecrt and socket. Java.
    Can someone please help me.. thanks!!!!
    System.out.println("Enter URL : ");
    String getAdd; // The URL that the crawler begins at.
    // Manually take in URL
    Scanner sc = new Scanner(System.in);
    getAdd = sc.nextLine();
    URL myURLobj = new URL(getAdd);
    String hostName = myURLobj.getHost();
              Socket s = new Socket(hostName, 80);

    URL url = new URL(getAdd);HttpURLConnection conn = (HttpURLConnection)url.openConnection();
    Map<String, List<String>> headerFields = conn.getHeaderFields();

  • HT5622 I have changed my appleID and password through my laptop.  I have then changed it on my iPod Touch in settings. When I try to update my apps on the ipod touch it keeps throwing up the old appleID.  How can I get the iPod Touch to use the new ID?

    I have changed my appleID and password through my laptop. I have then changed them in my iPod touch settings in "iTunes & App stores" When I try to update my apps it fails because it wishes to continue to use the previous ID.  What do I have to do to make it accept the new ID?

    Also
    If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.

  • How can I get the tabs back where they belong beneath the address bar , NOT on top ???

    how can I get the tabs back where they belong beneath the address bar , NOT on top ???
    they are on top, which puts the address bar at a variable position depending on how many tab rows exist - makes a moving target for navigating to across my dual 24 inch screens
    I tried your "solution" using about:config and setting browser.tab.on.top or whatever to false, but that had NO effect
    Maybe because TabMixPlus is installed?
    It does allow putting the tabs all the way at the bottom, but I don't like that either.
    PLEASE, give me the address bar at TOP with tabs under that!!!
    Also, I don't want FlashGot to be at the right of the address bar!!!

    why should we use yet another add on to get the tabs back at the bottom? Big mistake.
    Moreover, why make FF look more like Chrome? If I wanted Chrome, i would have installed it long time ago.
    FF 29.0 is NOT an improvement.
    Nasty piece of mud.

  • How can you get the apple tv to work in a hotel where to get on the wifi you have to still go to a website first and put in your room

    How can you get the apple tv to work in a hotel where to get on the wifi you have to still go to a website first and put in your room?

    Welcome to the Apple Community.
    Unfortunately the Apple TV doesn't have a web browser so you can't do that.

  • HT5312 I forgot the answers to my security questions and the e-mail where apple is sending the answers is no longer accessible, how can I get the answers to be sent to one of my current mails? Thank you

    I forgot the answers to my security questions and the e-mail where the replies are being answered is no longer valid or active, how can I get the answers to be sent to my current active e-mail? Thank you

    You need to contact Apple, either through the link in that article or by phoning them and asking for the Account Security team.
    (80384)

  • How can i get  the column name   for assigned constraint name  from  the  user_constraints   table?????

    Hi  ,
    I  have a table  so  many constraints   on so  many  columns. I  need to  know  which column has which  constraint plsql dev?? like below...
    table_name -------- col_name ------ constraint_name_of_that_col
        xxxxxx              xxxxxxx              xxxxxxxxxxxxxxxx
    or else please let me know  how can i  get the  corresponding col_name for a particular  constraint name???

    My be this can give you a help:
    [code]
    SELECT *
    FROM   ALL_CONSTRAINTS
    WHERE  R_CONSTRAINT_NAME IN (SELECT CONSTRAINT_NAME
                                                               FROM   ALL_CONSTRAINTS
                                                               WHERE  TABLE_NAME = 'TABLE_NAME'
    [/code]

  • How can we get the values from the view?

    Hi All,
    my scenario is i have two fields in my view .one is parameter.and another on is select-options.how can i get the user entered values into my selection screen.?
    for the select options i get the values into field-symbol.for parameter i get the value using get_attribute.
    can i use like this in select statement.
    WHERE SERVICE_ID  = ZSD_DD_AUFNRS
                       AND CRE_DT IN <FS_DATE>.
    Regards,
    Ravi.

    Hi Sravan,
    when i am using the below code to generate self defined functions i m getting a error .
    *Generate an object for self defined functions
      DATA: lo_self_functions TYPE REF TO if_salv_wd_function_settings,
    *Generate an object for button 'Confirm'
           lr_button TYPE REF TO cl_salv_wd_fe_button,
           lo_self_function TYPE REF TO cl_salv_wd_function,
                  l_text type string.
    *Set Self-defined functions
    *'Confirm' Button
      lo_self_functions ?= l_value..
      lo_self_function = lo_self_functions->create_function( 'CONFIRM'  ).
      CREATE OBJECT lr_button.
      CLEAR l_text.
      l_text = 'Confirm'.
      lr_button->set_text( l_text ).
      lr_button->set_image_source( '' ).
      lr_button->set_image_first( 'X' ).
      lo_self_function->set_editor( lr_button ).
    Error when processing your request
    What has happened?
    The URL http://cgslsvr3.cgsl.com:8020/sap/bc/webdynpro/sap/zsdr_cash_work_list/ was not called due to an error.
    Note
    The following error text was processed in the system CGD : WebDynpro Exception: IDs Can Only Contain Characters of Syntactical Character Set
    The error occurred on the application server cgslsvr3_CGD_20 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISE of program CX_WD_GENERAL=================CP
    Method: CONSTRUCTOR of program CL_WDR_VIEW_ELEMENT===========CP
    Method: CONSTRUCTOR of program CL_WD_TOOLBAR_BUTTON==========CP
    Method: NEW_TOOLBAR_BUTTON of program CL_WD_TOOLBAR_BUTTON==========CP
    Method: IF_SALV_WD_COMP_TABLE_UI~CREATE_TOOLBAR_ITEM of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_UI~CREATE_TOOLBAR_ITEMS of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_UI~UPDATE_TOOLBAR_ITEMS of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_UI~UPDATE_TOOLBAR of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_UI~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system CGD in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server cgslsvr3_CGD_20 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server cgslsvr3_CGD_20 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 110 -u: CT-0024 -l: E -s: CGD -i: cgslsvr3_CGD_20 -w: 0 -d: 20080414 -t: 105835 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    How can i resolve it?
    Regards,
    Ravi

  • How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?

    How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?  I would like them to open at the size they were previously resized like they used to in previous operating systems.  They currently open at a very small size and the first colum is only a few letters wide necessitating a resize practically every time one wants to use it.  Any help would be appreciated.

    hi Prasanth,
    select werks matnr from ZVSCHDRUN into table it_plant.
    sort it_plant by matnr werks.
    select
            vbeln
            posnr
            matnr
            werks
            erdat
            kbmeng
            vrkme
            from vbap
            into table it_vbap
            for all entries in it_plant
            where matnr = it_plant-matnr and
                  werks = it_plant-werks.
    and again i have to write one more select query for vbup.
    am i right?

  • How can I get the value of "Warehose" column in a form

    How can I get the value of "Warehouse" column in the form below (I mean what table that contain this value):
    Production Supervisor >> Batches >> (Button) Material Details >> (Button) Line Allocations
    Well, for more clearly! My problem is I must have the Unit Cost of Items, so I've got it in the cm_cmpt_dtl (table), but if I want to, I must create a relation that require 2 filed, they're Item_ID and Whse_Code.
    There's no problem with Item_ID, but Whse_Code seem to be the Mission Impossible (hix, I hate that film!!!!)
    I wonder if It was right to post this topic here. But anyway I just post my question here, hope I could get some help.

    wow, many, many, many.... and many thanks!
    Just add a tiny modify to check out the Batch_type
    doc_id = (select batch_id from gme_batch_header where batch_no='&batch_number' and batch_type = 0)
    Because the batch_no can be duplicated as we also create Batch and Filrm Planned Order.
    Many thanks for your support!
    P/S: Sorry for my terrible English :P

  • "Volume not found" I have 3 iphoto_libraries stored in a external disk, while the actual files are in other external disk. Ive moved together iphotolibraries and files but: HOW CAN I TELL THE LIBRARIES WHERE TO FIND THEM NOW?

    I have three iphoto_libraries stored in a external disk PASSPORT (one for each trip imovie Im making -Ive managed this way the libraries so to not confuse the trips) while the actual files are in OTHER external disk LACIE. And everything was fine: imovie find each library, could work with it, or iphoto could edit the files.
    But one day everything crashed at the same time: i opened iphoto to find 3 different scenarios:
    1) iphoto_library GREECE was there, but not the albums i prepared. no events. when double click in any of them: "Volume not found"
    2) iphoto_library ITALY was there, and the albums i prepared too, but empty.
    in both cases I can only see the photos in 'photos'  because 'events'  shows some events with photo preview and some with no preview, just some kind of preset clipart palm tree, but if i enter the event, photos are there but again: when double click in any item: "Volume not found"
    3)  iphoto_library ISRAEL was there, the albums too, when double click in any of them: all OK
    The 3 libraries was managed the same way. Meaning: Ive imported photos to iphoto from external disk LACIE in a iphotolibrary stored in another external disk PASSPORT. Also: I don't have unchecked the option "copy to file" or something like that. photos where moved, not copied. Also i have all the movie_libraries in the PASSPORT as well. What happened??
    Solution? Nothing yet. Ive moved now all the photo folders from LACIE together in PASSPORT with the iphotolibraries but problem persist:
    HOW CAN I TELL THE LIBRARIES WHERE TO LOOK FOR THE VOLUMES NOW?
    "Volumes" are the original files aren't them?
    Please help. this is so annoying to try and find in the forum, to tricky to explain
    I have a Macbook pro retina Yosemite 10.10.1 / iphoto 9.6 (910-29)/ iMovie 10.0.6
    THANK YOU
    Vicky

    The 3 libraries was managed the same way. Meaning: Ive imported photos to iphoto from external disk LACIE in a iphotolibrary stored in another external disk PASSPORT.
    This is not clear, especially when you say
    I don't have unchecked the option "copy to file" or something like that. photos where moved, not copied.
    Especially as the message you're getting is typical of a library where the ' option "copy to file" or something like that' is unchecked.
    So it's a simple question:
    Are you these Managed or Referenced Libraries?
    A Managed Library, is the default setting, and iPhoto copies files into the iPhoto Library when Importing. The files are then stored in the Library package
    A Referenced Library is when iPhoto is NOT copying the files into the iPhoto Library when importing because you made a change at iPhoto -> Preferences -> Advanced. (You unchecked the option to copy files into the Library on import) The files are then stored where ever you put them and not in the Library package. In this scenario you are responsible for the File Management.

Maybe you are looking for