How to trace the flow of plsql procedures/functions in oracle 10g

Hi All,
Recently I came to know that there is dbms_hprof PL/SQL built-in package in Oracle 11g which can be used to trace PL/SQL calls in a Hierarchical way. (acts as a PL/SQL Hierarchical Profiler).
Steps are given in -
http://www.oracle-base.com/articles/11g/PlsqlHierarchicalProfiler_11gR1.php
I would like to know whether there is a similar package in Oracle 10g because I want to trace the flow of plsql procedure and function calls in order to generate an output in a hierarchical way (for debug purposes).
The following example shows the flow of procedure calls when I execute PACKAGE_A.Proceudure_A. I want to generate that kind of an output.
Ex -
PACKAGE_A.Proceudure_A
----|_PACKAGE_A.Proceudure_B
----|------|_PACKAGE_B.Proceudure_C
----|_PACKAGE_B.Proceudure_M
----|------|_PACKAGE_A.Proceudure_B
----|-------------|_PACKAGE_C.Proceudure_C
----|_PACKAGE_Z.Proceudure_Z
If there is no similar package in *10g* I would really appreciate if someone can provide me directions to get the job done using the exsting packages and tables in Oracle 10g. Thanks in advance.
Edited by: user8326781 on Nov 28, 2008 8:57 PM
Edited by: user8326781 on Nov 28, 2008 8:58 PM
Edited by: user8326781 on Nov 29, 2008 12:19 AM

I am not sure that this would serve the purpose or not but still, I guess its worth to atleast be mentioned,
http://www.oracle-base.com/articles/9i/DBMS_TRACE.php
HTH
Aman....

Similar Messages

  • How to find the db accounts using default passwords in oracle 10g

    Hi, can someone pleas tell me , how to find the oracle accounts in the database which are using default passwords. DB verion is 10g and 9i.
    in 11g version we can query the view DBA_USERS_WITH_DEFPWD to view the users....
    any idea in 10g and 9i ?
    thanks in advance.

    951658 wrote:
    Hi, can someone pleas tell me , how to find the oracle accounts in the database which are using default passwords. DB verion is 10g and 9i.
    in 11g version we can query the view DBA_USERS_WITH_DEFPWD to view the users....
    any idea in 10g and 9i ?
    thanks in advance.the only way I've found is to search the web for lists of default users and their passwords, then attempt to log on with said credentials. I'd start with Pete Finnigan's site (google is your friend). He may already have some scripts ready to go, or at least the lists you'd need to get started.

  • How to find exception occured while using LOGON function in oracle 10g

    Hi,
    I am using LOGON function to login with a different user name in oracle 10g forms.
    LOGON ( User, Pass@tns, FALSE)
    The third parameter is passed as 'FALSE' to avoid the login screen to be opened. If any of the other parameter ( User Name, Password, TNS) is passed wrong, connection is not established but no exception is occurred. The value for 'FORM_FAILURE' is set to 'TRUE'.
    What i need is the ORA error for connection failure. The error message related to user name/password (ORA-01017) or connection identifier (ORA-12155).
    How i can get this error code if connection is failed. Is there any other way to login in oracle forms other than 'LOGON'.
    Habib

    Habib Ahmad wrote:
    Hi,
    I am using LOGON function to login with a different user name in oracle 10g forms.
    LOGON ( User, Pass@tns, FALSE)
    The third parameter is passed as 'FALSE' to avoid the login screen to be opened. If any of the other parameter ( User Name, Password, TNS) is passed wrong, connection is not established but no exception is occurred. The value for 'FORM_FAILURE' is set to 'TRUE'.
    What i need is the ORA error for connection failure. The error message related to user name/password (ORA-01017) or connection identifier (ORA-12155).
    How i can get this error code if connection is failed. Is there any other way to login in oracle forms other than 'LOGON'.As salamu alikum, Habib
    If you pass FALSE in login you can't catch anything. Want to catch the error ?
    Then change
    LOGON ( User, Pass@tns, FALSE)
    to
    LOGON ( User, Pass@tns, TRUE) Now Create On-Error trigger at form level
    and try the following code
    if error_code=01017 then
         message('invalid user name or password');
         message('invalid user name or password');
         raise form_trigger_failure;
    elsif error_code=12154 or error_code=1215 then
         message('invalid connection string');
         message('invalid connection string');
         raise form_trigger_failure;
    end if;Hopes this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • How to find the number of executions of a sql oracle 10g

    Is there any script handy which is useful to get the number of executions of a sql in particualr time in a rac environment.

    A lot depends on what time period you're trying to count the executions over...
    In V$SQL, there is a column EXECUTIONS that will count the number of executions since the SQL statement was loaded into the shared pool, which may be too long a period or too short a period for your question.
    If you are trying to get historical information and you have licensed the performance & tuning pack so that you can get the AWR, you could query the DBA_HIST_SQLSTAT table over an appropriate set of SNAP_ID's to get the totals for an arbitrary period of time.
    Justin

  • How to find the flow of procedures?

    Hi we are using 11gR2. I have a procedure Proc_Cust_Rpt(id NUMBER);
    This procedure has two procedure calls inside it in an IF-THEN-ELSE condition. But at a time for the given input parameter only one of them is called. Again, inside the child procedures multiple procedures get called, but at a time only one of them will get called depending on the parameters passed. Then again there is one more level like this.
    What are the ways I can find out the flow of procedures depending on the parameter id passed? I want to avoid using DBMS_OUTPUT or a logging procedure to find the flow.

    >
    This procedure has two procedure calls inside it in an IF-THEN-ELSE condition. But at a time for the given input parameter only one of them is called. Again, inside the child procedures multiple procedures get called, but at a time only one of them will get called depending on the parameters passed. Then again there is one more level like this.
    What are the ways I can find out the flow of procedures depending on the parameter id passed? I want to avoid using DBMS_OUTPUT or a logging procedure to find the flow.
    >
    You need to do it the 'old fashioned' way: review the code and analyze those IF-THEN-ELSE conditions just like you have described.
    That will result in what is known as a 'truth table' that lists each of the TRUE/FALSE conditions for each IF-THEN-ELSE and the result of each possible boolean combination of those values.
    See the Wiki
    http://en.wikipedia.org/wiki/Truth_table
    Here is another article that shows how you create a truth table - the first example is pretty simple.
    http://aristotle.tamu.edu/~rasmith/Courses/Logic/Exercises/2.0.html
    IF1 IF2 IF3 PROCEDURE
    ========================
    TRUE TRUE TRUE PROC1
    TRUE TRUE FALSE PROC2
    TRUE FALSE TRUE PROC3
    TRUE FALSE FALSE PROC4
    FALSE TRUE TRUE PROC5
    FALSE TRUE FALSE PROC6
    FALSE FALSE TRUE PROC7
    FALSE FALSE FALSE PROC8

  • How to track the flow of Sharepoint SSRS report requests to troubleshoot slowness

    How to track the flow of requests of Integrated SSRS report links in Sharepoint.
    We are using SSRS with Sharepoint for reporting purpose. The issue is some of the reports get generated fast and some other reports generation is very slow. When the sql query of these reports RDL file is executed, the records are shown fast.
    Also even on clicking the "Add Subscription" link of "Manage Subscriptions" of a report is very slow for some reports, while it is fast for other reports.
    I tried enabling SQL profiler to track the requests.  I have checked profiler log for the SQL statements with exec sp_executesql. But they are not helpful.
    Pls advice on how to track the request of flow of SSRS report request in sharepoint and how to troubleshoot the slowness in  "Add Subscription" link, response of some reports.

    Hi Pradeesh,
    According to your description, my understanding is that you want to track SharePoint SSRS report requests to troubleshoot the performance.
    Developer dashboard is very help full while troubleshooting the issues related to performance in SharePoint 2013.  You can have a try.
    About Developer dashboard, you can refer to the links:
    http://www.sharepoint-journey.com/developer-dashboard-in-sharepoint-2013.html
    http://msdn.microsoft.com/en-us/library/office/ff512745(v=office.14).aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to track the flow of data from R/2 to BI ?

    Hi Experts,
    Question: How to track the flow of data from R/3 to BI ?
    I want to load master data from R/3 to BI. In BI, i create an infopackage to load data from R/3. Under processing tab i set it as "PSA and then in the InfoObject (package by package)". Its a Full update.
    Now, i start the update to InfoObject. The load goes on well.
    Now, i want to track the flow of data from the master data table in R/3 to Datasource in R/3 then Extractors and then in the PSA in BI and then till the InfoObject. That is the complete flow of data from source table (in R/3) to Target table (in BI).
    Please help me know how this can be done. (For example lets take cost element master data)
    Regards,
    Suraj S Nair

    Hi,
    Data flow :
    BW :
    When u right click on the Master Data Info object -> Select Data flow.Then  it will  show u the details like DS name,IS (If 3.x)
    Once u know the DS then you need to find out the source tables for the R/3 DS.This information will get using ROOSOURCE or ROOSFIELD tables  or help.sap.com.
    My suggestion better to search in Help site for DS source tables.
    DS Tables :
    The following link will provide you the source tables for some of the LO DS.
    https://wiki.sdn.sap.com/wiki/display/BI/BWSDMMFIDATASOURCES
    Regards
    Ram.
    Edited by: Ramakanth Deepak Gandepalli on Dec 22, 2009 9:29 AM

  • How to trace the save menu in cs3 using javascript?

    i can able to add menu items using the following syntex
    app.scriptMenuActions.add("Script 1");
    but i dont know how to trace the save menu, i want to do certain action while the user try to save their active document.
    is it possible in script?
    thanks
    subha

    Hi subha,
    re: "i dont know where to get that BeforePrint.jsx, but by using scripting guide i able to trace the menu events."
    All of the scripts shown in fragmentary form in the Scripting Guide are included in the associated scripts archive on the InDesign Scripting home page.
    The BeforePrint.jsx script shows how to cancel the display of the Print dialog box; I assume that the same techniques will work for the Save dialog box. No time to check right now.
    Thanks,
    Ole

  • How to trace the value passed by select list

    Hi,
    Is it possible to know what value is passed by the select list.
    eg:
    :p1_testid -- is the select list name .
    if select list contains 3 values ... value1, value2, and value3. and I select value2 from the select list.
    I want to confirm it that the value I selected is the same value passed to the query.
    - select * from Test where Testid=:p1_testid;
    How to trace the value of :p1_testid before query execution.
    Thanks.

    check your session state to see what value the select list has..
    From developer tools at bottom of running page, select session, then look for the value associated with your select list..
    Thank you,
    Tony Miller
    UTMB/EHN

  • How to trace the wdy application from Portal link?

    Hi
    I have a  req to work with a application,which show the salary slip,through ESS portal,but I am not able to trace out the webdynpro application,is is running behing this?
    can any oe pls tell how to trace out the application,if worked any time.
    secondly req is to insert the logo in the salary slip,when we clk in the SALARY button,its display the slip as PDF,please tell how this PDF is attached inside the application,as if its a Z smart form,than i can insert the logo in it & can reinsert in the webdynpor application,as I think its a case of z smrtform which is called or linked on webdynpro.
    pls tell how to trace the standard application or the smart form.
    regds

    Hi Vipin,
    You can get the webdynpro application name from the portal link or you can ask portal team to get you the webdynpro
    application name from the portal iView of salary slip application.
    After that go to SICF tcode.
    Search for the application name by entering the application name against the field SERVICE NAME and press F8 (execute).
    The system will find you the SICF service for that webdynpro application. Select that service from the list.
    Now click on menu GOTO->OBJECT DIRECTORY ENTRY and get the package name from the popup window.
    Go to tcode SE80 and open that package.
    Expand node Web dynpro->Web Dynpro Applicat.  and find the application there.
    Double click on the application.
    Get the web dynpro component from the application parameter.
    Open the Web Dynpro component in se80 and do the changes as required.
    Regards,
    Vikrant

  • How to trace the form functions

    Can some help me how to trace the form functions like who has executed the function and when it has been exectued.
    Please let me know if a table is already exists for tracing the form functions.

    I am not sure that this would serve the purpose or not but still, I guess its worth to atleast be mentioned,
    http://www.oracle-base.com/articles/9i/DBMS_TRACE.php
    HTH
    Aman....

  • How to trace the missing authorizations using NWBC at object level

    Hi all,
    In SAP R/3 any authorization issue can be tracked down till authorization object level using SU53 tcode and ST01 tcode.
    1 - I have a super user who has all the roles in Solution manager system and test user which I created with just 1 role Incident management role. But when I login with Super user ID I can see in tcode (WDY_APPLICATION - Incident Management ) I have 4 tabs (Overview,Messages,Reports and Queries) but when I execute the same tcode using test ID I can only see Overview and Messages tab. Report and Query tab were missing . Please advice on how to trace the missing authorizations using NWBC at object level? or how to solve this issue......
    2 - How to add a Web dynpro Transaction code (example WDY_APPLICATION - Incident Management )while building a role in PFCG?
    Thanks
    LAK

    Hi Gurus,
    Can anyone please help me with my questions.
    In addition here are few more info that I need
    How to bring in the new authorizations without logiing off and logging in back in NWBC ( Equivalent to Menu-->Refresh in SAP GUI)
    Thanks
    LAK

  • How to trace the ip address of user session?

    how to trace the ip address of user client session?

    Hi.
    This should help:
    http://www.oracle-base.com/articles/misc/IdentifyingHostNamesAndAddresses.php
    Cheers
    Tim...

  • How to install Procedural Option in Oracle 10g Database express edition

    When i try execute exec send_mail shows error ORA-00900: invalid SQL statement.
    Error code shows "This error can occur if the Procedural Option is not installed "
    How to install Procedural Option in Oracle 10g express edition
    I'm using Oracle 10g Database express edition. Let me know how to run a procedure.

    I'm not sure of the meaning of ORA-00900 for Oracle XE but I think that PL/SQL is already installed by default according to the XE features list.
    See the Oracle® Database Express Edition 2 Day Developer Guide about procedure call.

  • How to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B

    Hi Friends,
    How to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B.
    External Trading Partner is sending the EDI 856 via AS2 URL to our Oracle B2B Server.
    In the inbound 856 agreement, we have checked the option of Funtional Ack and also Functiona Ack handled by B2B is yes.
    We have the outbound agreement which is sending that Functional ack 997 (auto generated by oracle b2b) and we have specified the Outbound AS2 channel of the Partner.
    997 doc is being sent to external partner using AS2 channel, but the filename is generating as '40101'.
    Please can you let me know how to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B.
    Appreciate your valuable answers!!
    Thanks,
    Amirineni

    Amirineni,
    AFAIK, there is no option to set the file name when the 997 is generated automatically by B2B.
    Alternatively, if this is a must requirement, you can generate the FA from backend and  send to B2B with MSG_TYPE =9. In this case, you can set the header with filename (How to set the actionname property in B2B 11g)

Maybe you are looking for