How to find out what code called the procedure

Hi,
I'm doing an error logging api, that will log errors when it's called. What I wasn't to know is if there's a way to find out what procedure/function called the api?
One way is to pass the function as a text variable but it would be cool if the api could find out who called it.
Hope i made myself clear :-)

I think you can use DBMS_UTILITY.FORMAT_CALL_STACK (I assume that's also what Tom K is using in his utility - with a nice wrapper around it).
Look at this example:
SQL>CREATE OR REPLACE procedure p as
  2  begin
  3   dbms_output.put_line(dbms_utility.format_call_stack);
  4  end;
  5  /
Procedure created.
SQL>CREATE OR REPLACE procedure p2 as
  2  begin
  3    p;
  4  end;
  5  /
Procedure created.
SQL>CREATE OR REPLACE procedure p3 as
  2  begin
  3    p2;
  4  end;
  5  /
Procedure created.
SQL>exec p3;
----- PL/SQL Call Stack -----
  object      line  object
  handle    number  name
38aad05a8         3  procedure HRM.P
38aaa6990         3  procedure HRM.P2
38aa9f470         3  procedure HRM.P3
38a6e9d88         1  anonymous block
PL/SQL procedure successfully completed.
SQL>

Similar Messages

  • How to find out what are all the change pointers assoicated for an idoc ??

    Hi ,
    How to find out what are all the change pointers activated for an idoc ??
    Thanks,
    Varma

    Verma,
    You can check what are the active Change Pointers for the message type in tcode <b>BD50</b>
    Use tcode <b>BD61</b> to check whether change pointers are active or not??
    Hope this helps..

  • How to find out what is using the native heap of a process running a JVM?

    Hello,
    I am not sure where to post this question so I am starting here.
    I am troubleshooting a Java application using some native calls (32 bits Java running on Solaris 10). The size of the process (as reported by prstat) is slowly increasing day after day.
    The size of the 'Java heap' is fixed at the start (-Xms and -Xmx are set to the same value on the command line when launching the Java app) and the GC is workling fine. No memory complaints from the Java side of the application.
    It is the size of the 'native' heap (as reported by 'pmap') that is increasing:
    root@mas01 # pmap 5382
    5382:/apps/java/bin/java -server -Xms207M -Xmx207M -XX:MaxNewSize=24M -XX:N
    00010000 64K r-x-- /apps/jdk1.5.0_19/bin/java
    0002E000 16K rwx-- /apps/jdk1.5.0_19/bin/java
    00032000 3896K rwx-- [ heap ]
    00400000 389120K rwx-- [ heap ]
    18000000 2784K rwx-- [ heap ]
    DCAF4000 48K rw--R [ stack tid=169 ]
    DCBF6000 40K rw--R [ stack tid=161 ]
    DCCF8000 32K rw--R [ stack tid=160 ]
    My first reaction was to search for a memory leak. Found a minor leak in the JVM with the ::findleak function (called within the mdb debugger). Upgraded to a later release of Java 5 (Java 1.5.0_19) where the leak is fixed but the heap is still increasing.
    Many parts of the process allocate memory in the native heap. The JVM itself, the native calls made to a C++ library part of our Java application and maybe also some 3rd party software.
    I would like to know what is the best way to find out what is consuming more and more memory in the native heap. I started looking a DTraces but I am new to this. I also thought maybe the Solaris Perftools might be of use but I never used them. Before plunging into a tool more or less blindly, I am asking for advices on how to tackle this issue. Can someone recommend a tool/method to see what is allocated in the heap?
    Regards,
    Stéphan
    Edited by: StephanDupont on Sep 22, 2009 8:47 AM

    After googling a lot I managed to run my application with libumem, generated a core file and succeeded to find some leak with mdb even if ::findleak reported nothing.
    Does anyone knows if the ::findleak (you need libumem and mdb) is supposed to find leak in the native part of the memory and a Java application using the JNI interface?
    Regards,
    Stéphan

  • How to find out what is in the web cache

    I have set up the web cache and its showing
    25% fresh hits, 25% cacheable misses and 50% non-cacheable misses and I want to look at what is not getting cached to see how to improve this ....
    But all I can see is stats of the cache and no details of what is in the cache...
    Any suggestions
    Rob

    Our upcoming release will include a feature which will tell you what's in the cache. This is a new feature, so we won't release it as part of a patch set, rather as part of the next dot release.

  • How to find out what is under the mouse pointer in a StyledDocument

    Hi all!
    I have a DefaultStyledDocument in a JTextPane.
    styles = new StyleContext();
    doc = new DefaultStyledDocument(styles);
    JTextPane p = new JTextPane(doc);
    i than add a view strings to the document using insertString, some of them using a style with an icon.
    The question now is: can i somehow determine which icon ( or at least which object, inserted by insertString ) is under current mouse position, without setting the caret to this location? or can i trigger an event when the user clicks on such an icon?
    thanks in advance for your help
    eabin

    Use this method :
    public int viewToModel(Point pt)
    and take a look at my answer in this Thread. I think it can give you an idea :
    http://forum.java.sun.com/thread.jsp?forum=57&thread=227390
    Denis

  • How do I find out what is in the cloud so I can delete it?

    This is a complete outrage.  All I did was support Apple and was told to sign in to cloud and now I am told I am using too much space.  No idea what this is about and no way to call because I cannot talk.  How do I find out what is in the cloud so I can delete it?   Is this e-mail, Word documents, or something else?  What the heck are they talking about?

    It's everything that's stored in icloud: email, backups, calendars, contacts, app data (including iwork documents), .... on and on.
    If you need to delete some data to recover some free storage...
    You'd have to go into the various apps on a device that is also stored on iCloud and begin trimming files.
    Backups:
    Go to Settings>iCloud>Storage & Backups>Manage Storage; there, tap the device you need info on and the resulting screen lists Backup Options with which apps store data on iCloud.  Turn off camera roll and any other apps that might have a lot of data.  Then delete the backup.  That will free up space.  Photos should be regularly synced to a computer (like you store photos from a digital camera) using either USB via iTunes (on a mac use iPhoto or Aperture to move them to an album) or using photo stream. Go to Settings>iCloud and turn
    Emails:
    Regarding emails, on the computer, move emails from mailboxes in icloud to those on the device.  That can also save a lot of space.
    Go to Settings>iCloud>Storage & Backups>Manage Storage
    From there you can find how much and which files are in a backup, and how much different apps use to store data files.  At the bottom of the screen is the size of the mail storage.
    Also see:  http://support.apple.com/kb/ht4847

  • How to Find out what are the top 20 queries executed in the system

    Hi Guru's,
    I would like to know how to gather the information regarding the Top 20 queries used in the system per week, by a multicube.
    Note: I am using BI 7.0 and also Statistics are turned on.
    People have provided me the Cube name and table name last time but nothing seems to work.
    I do not have the query names and I just have my multiprovider name and with the help of that, I want to find out what are all the queries which were executed related to that multiprovider.
    Thanks and regards,

    Hi,
    Here is an idea for your request.
    Basically you can create a simple query on multiprovider 0TCT_MC01.
    Filter: you can use a variable for restriction of time ( calday, or calmonth) since you should be interested for a time period.
    Choose following characters into your objects:
    InfoProvider ( 0TCTIFPROV )  - you can create a variable for choosing infoprovider before query runs.
    *Tp.[Type of BI Application Object] 0TCTBISOTYP  = filter this with 'QUERY' or whatever your need is.
    *BI Application Object 0TCTBISBOBJ,  ( this will give you the name of the queries)
    In key figures choose,  Count for BI Appl. (0TCTWTCOUNT).
    (number for query run)
    Create a condition , for top 20.
    Hope this helps.
    Derya

  • How to find out what is the lock key for the computer

    How to find out what is the lock key for the computer?

    You don't.
    If you forgot or lost the password, all you can practically do is reset it.
    The manner in which you do so depends on what version of OS X you are running. The older versions utilize the reset password utility on your recovery/re-installation disk/drive.
    On Lion, you use the following technique to reset the Administrators password:
    Boot to your Lion Recovery Partition, by holding down the Option key while starting, and then selecting the Recovery HD as the boot choice.
    Once booted, at the top of the screen is a menu ..., select Utilities / Terminal from the menu bar.
    In the Terminal window, type “resetpassword” (without the quotes) and press return. A “Reset Password” window will open. Select your boot volume (your SSD drive) if it is not already selected. Select your administrators username from the menu labeled “Select the user account” if it is not already selected. Follow the prompts to reset the password. Restart the computer from the apple menu.

  • HT1391 I have a new computer and want to sync my iPhone.  But it wants to wipe out what is already on my phone with another iTunes library.  How do I find out what is in the "library" before I say to wipe out my phone and sync?

    I have a new computer and want to sync my iPhone/iTunes.  But it wants to wipe out what is already on my phone with another iTunes library.  How do I find out what is in the "library" before I say yes to wipe out my phone and sync?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • How to find out what the geniric short forms stand for?

    Hi if you see the ThreadLocal class in jdk1.6 it is written like this in doc. ThreadLocal<T> and if you see the method Class.forName() the return type is Class<?> i am just confused a littele bit. how to find out what this <T> and <?> stands for? I mean how do i know that what to pass in their place?

    [Start from Here|http://java.sun.com/docs/books/tutorial/extra/generics/index.html]

  • HT1391 Hi can anyone tell me how to find out what and when my last purchases were made from the App Store ? I think my kids used all my credit

    Hi can anyone tell me how to find out what and when my last purchases were made from the App Store ? I think my kids used all my credit

    .from iTunes, go to View > Show sidebar
    From sidebar > Itunes Store > Click top left on your Apple ID email address > Account > ...scroll down > Purchase History > View All

  • SQL Server Software ISO, How to find out what is the Edition and Version of the SQL software before starting installation

    Hi All-
    Before starting installation, I would like to find out What EDITION and VERSION  is the SQL Server Software ISO.
    Please note this is not to find out what version is the installed sql server but before the installation: Is there a note or abrv. that describes what kind of Edition and version is the ISO?
    Detail explanation is appreciated.
    Thanks.
    belayzeleka

    @Balmukund - Thanks for the input - That one is a nice blog!
    But assuming you can`t change the Product Key value (you are not provided that number, as you know it gets populated by itself) can you find out
    what implies the corresponding edition? If there is a folder where this reference is store, could you provide the full file path where  this folder is located?
    The ideal solution would be a way to find out what the Edition
    is befor we start installation.
    Thanks!
    Also just to add what I came across:
    The SQL Server 2012 installation software comes with pretty much all edition in it, that kind of makes it difficult to easily identify what edition is the specific ISO, but when
    one downloads from MSDN one must downloads the
    right edition either Standard,
    Enterprise, etc so that when you install it, it installs whatever edition is downloaded.
    The best source would be whoever downloaded the software.
    Also, before going too far, you can find out what edition it is being installed right before the setup wizard finishes on the
    License Terms page (Microsoft Software License Terms Page) and if the edition is not the one you intended to install, you can cancel it there and everything will be rolled back- no hastle.
    belayzeleka

  • How to find out what user locked account

    We had production type schema account locked this morning. I checked profile which this user belongs and it has 3 times for Failed Login Attempts. My question is how to find out what user had 3 unsuccessful login attempts and lock this account.
    Oracle version 8.1.7

    Assuming that [auditing was enabled|http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/security.htm#sthref2916], the command
    AUDIT CONNECT WHENEVER NOT SUCCESSFULThat will write audit records when there is an unsuccessful login. Depending on how you've configured auditing, those records will either be written to the SYS.AUD$ table, in which case you can query them through a few different views, or to a file on the operating system that you can grep.
    Justin

  • How to find out company code from a plant ?

    Hello friends,
    I have to modify a program that uses FM "BAPI_COMPANYCODE_GET_PERIOD".   For that, we have to export company code ID.  Currently it is hard coded with one company code.  Now we want to make this program usable by all company codes.  So instead of hard coding, I would like to dynamically find out company code based on the plant.   So I want to know - how to find out company code from a plant ?  Is there any table that has plant to company-code assignment data, or any other FM/BAPI to get this info ?
    Thanks,
    - Chetan

    hi
    u can find this from table T001K
    or just goto EC01
    here click on STRUCTURE>NAVIGATION
    double click on co code u will get the list
    u can slo try this in EC02
    regards
    kunal

  • "Web'n'Walk III" Huawei dongle, how to find out what Huawei model it is?

    I just bought this "web 'n' walk III" UMTS Modem (USB) made by Huawei. I want to instal it but do not know if the enclosed software is out of date (MobileConnectDriver(2.9.2)) and works under SL. Does anybody know how I find out what type of Huawei dangle it is so I can find the correct software?
    any tips as to how to use this smoothly as the stick is to SIM locked and I will use it with a SIM from an other provider (Stick is branded by T-Mobile).

    I worked out the model number, it is 'hidden' in small print on the back, in a larger number.

Maybe you are looking for

  • HOW TO GET INPUT PRINT SCREEN ONCE

    I'VE GOT AN INTERNAL TABLE AND AS IT IS OF TYPE CREATED LOCALLY, I CANT PASS THE TABLE INTO SMARTFORM. THEREFORE I'VE TO CALL  THE SMARTFORM FOR EACH LINE OF THE TABLE TO PASS THE VALUES. THE PROBLEM IS THAT THE USER INPUT SCREEN, THAT ASKS THE USER

  • B2B Scenario : Party Identifiers

    Hi all , I have B2B scenario. ( IDOC to Mail) My question is  : Can I have more then one identifier for same Agency and schema pair? XI is not allowing me to configure two identifiers for same Agency and schema pair. Is their any work around for this

  • Has anyone used "Microsoft.BizTalk.B2B.PartnerManagement" API ?

    Hello, forum; trying to make sense of that undocumented API library to create an agreement using BizTalk 2010. So far, I can create a Partner, Business Profiles, Business Identities and Partnerships, but how to create an agreement (onewayagreements a

  • How to make "adjustments" to multiple images simultaneously?

    Hi, I have several images from a shoot with the incorrect while balance setting. Since these images were all taken under similar lighting conditions, I would like to adjust the white balance for all the shots simultaneously....how do i do this?

  • Can I set different input range in different channel in cFP AI100

    Dear Sir: I have one question about the input range of cFP AI 100. Can I set different input range for different channel in one cFP? Also, can I set different input type (voltage or current) for different channel in one cFP? If yes, how? Thanks. Best