How to trace Very Long SQL and PLSQL?

Hi,
i need an advice on how to trace very long PLSQL as iam new to my company and the business is very new to me , i am a very good developer using Developer suite , but my weak point is tracing very long packages and undestand them ,
i want to trace a Procedure that have a LOT of lines of code and it calls many other packages, i really need to be quick in undestading what this procedre is doing as i should solve my problem in appropriate time
i am using dbms_output.put_line for tracing, to know what is the path that is taken and the variable values but i think i need a totaly different approach
also there are some sqls in this system that is very long, some of them is joining more than 10 tables at the same time, any hint to understand what this sql is doing?
any help is appreciated.

There is a trace facility for PL/SQL, but if you use it find a GUI interface. Trying to get it to work in SQL*PLUS standalone was painful. I think its supported by the major GUI tools like TOAD and PL/SQL developer but have not used it myself.
Other tools you can work with to help you debug and tune PL/SQL include Oracle trace (which analyzes SQL for efficiency, with an interpreter called tkprof) and DBMS_PROFILER. DBMS_PROFILER requires some initial set-up but can analyze PL/SQL code line by line and if used carefully function as a sort of limited trace.
Good luck!

Similar Messages

  • How Execute a very long SQL in a Storep Procedure inside a String?

    How Execute a very long SQL in a Storep Procedure inside a String?
    I have a very very long sql in a String , How can I run this SQL?
    Thaks in advance.

    Xavi wrote:
    I have a very very long sql in a String , How can I run this SQL? Version? If you are on 11g, dynamic SQL can be a CLOB. If you are on older versions us DBMS_SQL package.
    SY.

  • My os x mavericks got crashed accidentely while installing the windows 8 and I am trying to reinstall using recovery console, but its take very long time and forcing me to download OS X 8 from internet, is there any where can I get offline download of OS.

    My os x mavericks got crashed accidentely while installing the windows 8 and I am trying to reinstall using recovery console, but its take very long time and forcing me to download OS X mountain lion from internet, is there any where can I get offline download of OS file where I can install directely OS X Mavericks.

    Hi, original poster here. I did not realize this would generate more discussion so I never checked back. I still had my warranty, so I took it to the store and got it repaired. The original problem I had was a screen with this icon flashing when I attempted to boot it up:
    When I took it to the store, they told me that my computer was unable to communicate with the hard drive. I had this same problem three times in two months where this screen reappeared. Each time I went back to the store and they said the cause was different, but they were all hardware issues that physically made it impossible to communicate with the hard drive. After the third time, they simply replaced my laptop and I haven't had the same problem.
    So in short: The reason you can't reinstall or move anything when you encounter this screen appears to be because nothing can communicate with the hard drive in the first place. You can't reach the disk or anything on it. So I don't believe it's possible to do anything besides take it to a physical store and have it fixed.

  • Oracle sql and plsql

    Hi..friends...
    am new to this database side..am working on installtion devlopment side.
    i am planing to to change the domain into back end devloper.so i want to start with oracle sql and plsql .so plzz suggest me which book is good for begginers..
    Any IDE's are there to work on back end devloper in the company's...?

    Hi
    You need to search first in the forum before posting into the forum.
    For your Q, no.of answers having in the forum.

  • How to trace changes in directories and files in windows using java.

    Hi,
    Want to know how to trace changes in directories and files in windows using java.
    I need to create a java procedure that keeps track of any changes done in any directory and its files on a windows System and save this data.
    Edited by: shruti.ggn on Mar 20, 2009 1:56 AM

    chk out the bellow list,get the xml and make the procedure.....     
         Notes          
    1     Some of the similar software’s include HoneyBow, honeytrap, honeyC, captureHPC, honeymole, captureBAT, nepenthes.     
    2     Some of the other hacking software’s include keyloggers. Keyloggers are used for monitoring the keystrokes typed by the user so that we can get the info or passwords one is typing. Some of the keyloggers include remote monitoring capability, it means that we can send the remote file across the network to someone else and then we can monitor the key strokes of that remote pc. Some of the famous keyloggers include win-spy, real-spy, family keylogger and stealth spy.          
    3     Apart from theses tools mentioned above there are some more tools to include that are deepfreeze, Elcomsoft password cracking tools, Online DFS, StegAlyzer, Log analysis tools such as sawmill, etc.

  • Query regarding certification in sql and plsql

    Dear all,
    I am interested to do a certification in SQL and PLSQL. Could anyone suggest the best certification course for a beginner.

    NO!  The SQL Expert Exam is a terrible choice for someone new to Oracle SQL and PL/SQL.  This exam is specifically designed for someone who has years of SQL Experience.  Since you have taken an failed this test in the past, I have no idea why you would suggest it to others as their first experience with Oracle certification exams.
    As someone new to Oracle, the first choice should be a SQL Fundamentals exam, either 1Z0-051 (11g) or 1Z0-061 (12c).  The two tests have better than a 90% commonality.  Oracle does not distinguish between versions with the SQL exams, so taking one or the other does not lock you into any particular Oracle release.
    Once you pass the SQL Fundamentals exam, your next target would likely be 1Z0-144: Oracle Database 11g: Program with PL/SQL.  That is the introductory PL/SQL exam.  If you pass it and the SQl fundamentals exam, you will earn the Oracle PL/SQL Developer Certified Associate designation.

  • TS4079 I ask Siri a question, there is a very long pause and then when she does come back she appologises by saying she cannot help me now and I should check back later...anyone experience this??

    I ask Siri a question, there is a very long pause and then when she does come back she appologises by saying she cannot help me now and I should check back later...anyone experience this??

    Yes... a search of the forums would have prevented asking that question.

  • Query takes very long time and analyze table hangs

    Hi
    One of the oracle query taking very long time (ie more than a day) and affecting business requirment of getting the report in time.
    I tried to analyze the table with compute statistics option, however it hangs/runs forever on one of the huge table?
    Please let me know how to troubleshoot this issue

    Hi,
    What's your Oracle version?
    You should use DBMS_STATS package not ANALYZE..
    Regards,

  • I want to *use* very long file and path names!

    This is really a plea to Microsoft...
    There are several threads about copying or deleting files where the path and/or file name is too long.
    Most have explanations of why this problem occurs.  (depending on Windows version and application, the total length [fully qualified file name; i.e. C:\this-dir\that-dir\somefile.xyz] is limited to a maximum of 260 or fewer characters).  This limit
    But I *WANT* to be able to use very long file names and paths!
    I can understand Microsoft keeping this limit - even while allowing UNICODE paths and file names up to 32k characters - because many existing tools will be unable to handle the longer names.  This would probably yield a lot of questions/flames about
    them "breaking the software I've used for years."
    But it would be possible to have a system setting to optionally allow the long names.  Since I'd have to manually set it, I'd know I'm potentially breaking existing software.
    In my case, I'm backing up various file directories where some files are very long.  With the server-side additional paths (e.g., client-name\project-name\backup-date\...") I occasionally hit files that can't be copied.  Renaming is not suitable;
    sometimes names have to match other file names.
    I can zip them, create iso files, use a backup program that creates a blob, put them in a source-control system, etc - but I really don't *want* to do that; it's very convenient to have a direct copy of the directories.  Each of these 'solutions' either
    requires extra work (which could be scripted, so ok...) or doesn't work with the work-flow for some reason.
    Microsoft, *please* fix this in Windows 8!  (if not before...)   This limit has existed for far too long!
    And readers - please don't just repeat what's in the other threads (rename/use subst/map directory/etc) or flame without useful information.  Thanks!

    Hi,
    I would submit your opinion to our Product Team. If you have another feedback, please feel free and let me know. Or you could follow TekDozer’s advice to submit
    by yourself.
    Thank you for your understanding and cooperation.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • How to print very long data series (wrap multiple XY graphs)

    I'm working a data logger project where each file usually contains 5 - 10 minutes of data but sometimes may go up to 3 hours +. The customer needs the ability to print out all of the acquired data in XY charts.
    If the amount of data recorded exceeds 15 minutes, printing all of the data on a single chart is not an option (granularity) so they want to print as many 15 minute chunks as necessary to cover the entire range. Ideally, they want to print out two 15 minute graphs stacked on top of each other on a landscape page. I can split the data into chunks (that's the easy part) but I need a way to create an arbitrary number of XY graphs and format/size them for mult-page print out (2 per page).
    I'm looking for some ideas on how to solve this problem - any ideas are welcome as long as they involve LabVIEW and maybe Excel because it needs to be something i can integrate into the application. I can't use offline post-processing like Diadem in this situation.
    Philip
    CLD

    Philip,
    I would probably create one VI with two graphs formatted for printing. Then loop through the data, write segments to the graphs, print, repeat until all data is printed.  This method allows one very simple VI to present the data for printing and allows the user control over what is printed via the calling VI. For example if they decided that 10-minute graphs were better for certain data sets than 15-minute graphs, all the calling VI needs to do is change the amount of data written to the graphs.
    Write the data to a file to protect the data in the event of power failures or other unplanned events. Read it back to print if there may be too much data to keep in memory.
    Lynn

  • Very long wait and weird font with PDF in indesign

    Hi,
    when i try to import PDF in InDesign, it takes a long time before loading it up, and when i finally get to place it, the most part of the fonts are replace by dots.
    Its also takes a lot of times when i try to export my .indd in PDF file.
    I tried the same operation with the same files on others computers and everything works fine, so i guess the problem is with my Indesign. I try to reinstall it but it did not change nothing.
    Thank you for your help!

    Amazing how
    reinstalling an application seems to be the knee-jerk reaction of so many when something goes wrong ...
    Most likely, the problem relates to either an improperly created or defective PDF file in which one or more fonts are not embedded or properly embedded
    and have oddball encodings and/or are using non-Western Latin characters that cannot be substituted via the standard substitution fonts.
    - Dov

  • Data from PSA to ODS taking very very long time and fails

    Hi Gurus,
    I have been trying to load data from my CRM system to BI with some range in Data Selection.
    I was loading to PSA then then Data Target (Package by Package). It failed twice by taking lot of time.
    Then I brought the data to the PSA only successfully and tried moving it to ODS and shockingly long waiting hours it took and failed.
    Please help me resolve this.
    Thanks

    Hi,
    Search the BI short dump overview for the short dump that belongs to the request.
    Pay attention to the correct time and date on the selection screen.
    You access a short dump list using the wizard or the menu path
    "Environment -> Short dump -> In the Data Warehouse".
    And also some TRFC time out error.
    We have fixed it by increasing the profile parameter time and also clearing the old errored TRFC which where lying in the Source.
    Yet this has been running for about 20 hours to move data from PSA to DSO. and only some of the Data Packages are turning into Green and Some in Red and Some in Yellow.
    Please help
    Thanks

  • KE30 Report:-Takes very long time and ends in a Run time error

    Hi Expert,
    Since last three  week (after up gradation of system) we are not able to run any of KE30 reports in Production system and its end with Run Time Error. Even in development system where data is minimum it is taking 45 Minutes to give output where it should take maximum 4-5 Minute. Before up gradation it was working fine
    What could be the reason for this and how can i resolve this.
    Thanks in Advance
    Bipin Tiwari

    HI Sridhara
    Thanks for quick response. After Up Gradation we ran SGEN T-code but no impact on system performance. There after we build new summarisation level in KEDVP (system proposed) and activated it but still it is taking 30-.35 minute to generate the report in Development system which should normaly take 1-2 Munite.
    Can you suggest what else we can do or is there any better way for build summarisation level  in given scenario.
    Best Regards
    Bipin Tiwari

  • Time machine takes very long time and does not finish the backup

    Hi,
    Time machine is unable to backup my 2014 Mackbook Air 128 GB Drive anymore.
    I have tried numerously to initiate a backup but it could only backup a very small volume, less than 1KB, then stall for hours without any progress.
    I tries to repair my volume, using the Disk Utility, but it still does not backup, except for the 1K progress.
    I have noticed that "Spot Light" indexing is also taking forever.  It has been indexing for days without any pogress.
    What is going on.
    What should I do to fix it.
    My latest successful backup was on Jul 25.
    Please help.
    Thanks.
    Tareq

    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter the word "Starting" (without the quotes.) You should now see log messages with the words "Starting * backup," where * represents any of the words "automatic," "manual," or "standard."
    Each message in the log begins with the date and time when it was entered. Note the timestamp of the last "Starting" message that corresponds to the beginning of an an abnormal backup. Now
    CLEAR THE WORD "Starting" FROM THE TEXT FIELD
    so that all messages are showing, and scroll back in the log to the time you noted. Select the messages timestamped from then until the end of the backup, or the end of the log if that's not clear. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    ☞ If all you see are messages that contain the word "Starting," you didn't clear the text field.
    ☞ The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. Don't post more than is requested.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How to trace IP address ports and request comming to network interfaces

    Hi all,
    I am using Solaris IP filter. I need to check the requests that is comming to a patiquler interfaces.
    Is there any possibilities to get the IP address: Port, weather the request is Deny from the server etc....
    Thanks.
    Viraj

    Lian,
    Did you find a solution?? If still looking, talk to Triometric, they can monitor and log this, a side effect of performance monitoring.
    Have fun

Maybe you are looking for

  • Migration From SQL Server 2005 to Oracle DB through Oracle SQ Dev Problem

    Hi all, we are trying to do a full Migration from MS SQL Server 2005 to Oracle DB 9.2 i we are using Oracle SQL Developer V 1.5.3, the capturing of the DB and the conversion to the oracle model completed succefully however when we try to generate the

  • Table or FM requirement

    Dear All I am developing a z report for database monitoring. In my report, i want to use Database usage percentage, size and free size etc. In standard report these all things displying using transaction code DB02. Is there any table or function modu

  • How to set spark application control bar at bottom

    Hi, I am trying to set control bar at bottom of application container in spark, could any please help me with this, i need applicationskin code to set control bar at bottom insted of default at top.

  • Problem with TCode VF04, Billing Due List

    Hi, In billing due list (Transaction VF04)  we find that when the sales orders are displayed on execution of this transaction and we select all the sales orders and click on collective billing button, very few of them are included in the proforma inv

  • OA_MEDIA referencing a value outside the Context Element

    I am attempting to use XML Publisher to change a logo image at the top of a template. I have used the following command with great success: url:{concat('${OA_MEDIA}','/',//C_PAYGROUP',.jpg')} Unfortunately, this works fine when I have C_PAYGROUP in t