How to use watch the control flow in the funation using dbms.output_line?

Hi All,
I have written a function which is working fine.
But i want to see the control and data flow in the function.
I want to see particular variable in the flow.
How can i do that?
Thanks in Advance,
Vinay

user12281717 wrote:
I want to see particular variable in the flow.
How can i do that?The question is where/when/how you want to see it. PL/SQL is a server-side language. A PL/SQL process runs entirely inside an Oracle server process.
That server process does not have a display terminal or a STDOUT device that you can view interactively for output of the process while it is running.
One option, and a common one, is to use DBMS_OUTPUT. This writes to a static PL/SQL session buffer (variable). When the process complete, the client (TOAD/SQL-Developer/SQL*Plus/Java/etc) can interrogate this buffer and display the contents of that to the end-user/developer.
But this is not interactive..
If you want to see interactively what is happening, there are couple of methods. You can run a client session that acts as a database pipe server. It reads data from a pipe and immediately displays it. In your PL/SQL process you then write to this pipe - where the other client process, running the pipe server, can immediately read and display it. See DBMS_PIPE for details.
You can use the same approach using a log file. Again, the PL/SQL process writes to a log file and you, using a client command like Unix/Linux tail, displays the latest additions to the file. See UTL_FILE for details.
If you are merely interested at what processing step a PL/SQL process is at, you can record that data in the action and module columns of your session (visible via the v$session and v$sqlarea views). See DBMS_APPLICATION_INFO for details.
You can create a procedure that inserts a log entry into a log table, using an autonomous transaction. This means that when your PL/SQL code calls this procedure to log something, that log data is immediately committed in its own transaction and visible to other clients.
There are other options too like advance message queues, or creating long operation entries, and so on. Which one to use depends entirely on your requirements.
The details of the above interface packages are available in the [Oracle® Database PL/SQL Packages and Types Reference|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/toc.htm] guide.

Similar Messages

  • How can I watch the democratic national convention using my apple tv?

    How can I watch the democratic national convention using my apple tv?

    I've got the same issue.  I thought maybe through youtube.  That is, I thought the DNC would have a live stream on youtube, but I can't seem to find it.

  • How can I watch the Super Bowl on my Apple TV

    How can I watch the Super Bowl on my Apple TV?

    Last year, I had the Super Bowl streaming online to my macbook pro, and via AirPlay I streamed it to my Apple TV. I plan to do the same thing this year, except using my new iMac. Just need to find a website that is going to be streaming it. Foxsportsgo.com has said they will be streaming and will not required verification of an eligable paid cable/satalite subscription to watch the Super Bowl only. So crossing fingers that it works cause I don't get regular antenna signal where I live, nor do I pay for cable/satalite services.

  • HT4095 I downloaded a rented movie in hd to my ipad2 but can't find it to pay through my apple tv now. How do I watch the movie?

    I downloaded a rented movie in hd to my ipad2 but can't find it to pay through my apple tv now. How do I watch the movie?

    Rented movies downloaded to an iOS device cannot be transferred to any other computer or iOS device. Are you sure that a rented movie, downloaded to an iPad, can be airstreamed to an Apple TV?

  • HT1657 I rented a movie a few hours ago and never finished it.  I can't view it on my Apple TV nor on my Computer.  When I go to rent it again it says you have already rented this movie, but I can't find it anywhere.  How do I watch the remainder of the r

    I rented a movie a few hours ago and never finished it.  I can't view it on my Apple TV nor on my Computer.  When I go to rent it again it says you have already rented this movie, but I can't find it anywhere.  How do I watch the remainder of the rental?

    I had the same issue with my apple tv 3rd generation. I rented Sinister and selected the "rent and watch now" option. Half way through the movie I accidentally pressed the menu button. When I looked for the rented movie on my apple tv I could not find it. Not even above the movie pannel where "purchased" and "top movies" comes up on the main menu. the apple tv suggests to go to settings>downloads but I don't have that option. I did go to settings> itunes store> check rentals but that didnt work either. It took too long to even check. Thank you because this SOLUTION worked great.
    SOLUTION: How to reset apple tv 3 3rd generation to view rented movies:on the apple tv remote: press and hold "menu" to go to the main menu. Select SETTINGS> GENERAL >RESET >RESET ALL SETTINGS. After the apple tv resets, input all your information again and your rented movies should be visible when you cruise above the "movies" section. THANK YOU!!
    Apple needs to solve this issue because honestly it took me 3 hours and a half to watch a movie that only lasted 2 BECAUSE I wast trying to solve the issue, reseting and all. blahh.

  • How can I watch the save password in iPad3 safari ?

    Hello all my apple friends. Please tell me how can I watch the save passwords in my iPad 3 safari.
    I save my password in safari but I want to know how can I watch this password .
    Please suggest me .....

    When you type a letter you can see that letter for a second and then it changes to the dot. That's how it works. I suggest writing the password down first.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • I purchased a tv series on my apple tv (series 2) in the bedroom. It didn't download to my computer. How do I watch the shows on my other apple tv (series 1)?

    I purchased a tv series on my apple tv (series 2) in the bedroom. It didn't download to my computer. How do I watch the shows on my other apple tv (series 1)?

    Hello giovani,
    I hope you found your answer, but if you didn't.  Check out this answer from this other post.  It solved my problem, which seemed similar.
    https://discussions.apple.com/thread/3953315?start=0&tstart=0
    Best Regards,
    T00nc3s

  • HT1657 if I don't have apple tv how can I watch the movies on my tv because my computer is in a different room from the tv?

    if I don't have apple tv how can I watch the movies on my tv because my computer is in a different room from the tv?

    If you no longer have, or access to, the computer(s) you want to deauthorise,
    Log in to iTunes,  go to "view your account info" on the itunes store,  deauthorise all five, (Please Note: this can only be done Once every 12 months)  and then re-authorize your current Computer(s) one at a time.
    Authorise / Deauthorise About
    http://support.apple.com/kb/HT1420

  • How  do I  watch the movie I just paid for and downloaded ?

    How  do I  watch the movie I just paid for and downloaded
    It is  apparently downloaded but it just sits there as a still picture and does nothing.

    Well,  it's funny because Itunes is the only one that does this. It has happened before. Neflix works fine. Hulu works fine. But not Apple.

  • How can you watch the nba playoffs from your mac notebook?

    How can you watch the nba playoffs for free from your Mac notebook?

    I think that you can here http://www.zimbio.com/Watch+NFL+Football+Games+Online+Live+On+Your+Computer

  • How can I watch the tv programs contained for exemple in the application called MTS TV directly on my tv?

    I've got some apps on my I-phone 4 such as MTS TV, iPLANETA ONLINE, IPROSTO TV that contains some interesting tv programs that you can see live, but using Airplay I only can listen to what they're saying but I cannot see the images... And how can I watch all my other apps present on my iphone??
    Please help me!!!

    Welcome to the Apple Community.
    Make sure all your software is up to date, video airplay was enabled in a later update than audio airplay.
    Not all apps and websites support video airplay. Developers may simply not gotten around to enabling video airplay in their apps/websites or they may not actually want to.

  • HT1657 how can i watch the movie that i rent the downloading of the movie is not good

    I don t know how to watch the movie can you show me how

    I'd report the problem to the iTunes Store. 
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the item, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.

  • How can I watch the WWDC stream (2014) via QuickTime?

    Hey!
    I just wanted to ask which URL I'll have to use if I want to watch the keynote via QuickTime because I've read somewhere that I can't just
    use this url: http://www.apple.com/apple-events/june-2014/
    Kind regards,
    KingDome24

    Certain links to the Coachella streaming video channels work with AirPlay to AppleTV. 
    Note: the video streams posted at http://www.coachella.com/ don't work via AirPlay.  You get the error message "An error occured loading this content.  Try again later."
    The fix:
    1) Starting from your computer, go to the Coachella website: http://www.coachella.com
    2) Click the "Watch on Youtube.com" button (located in the embedded video player window below the playing coachella video; it's the one to the left of the "Fullscreen" button).  This opens that same channel in YouTube.
    3) Click "Share" and...
    4) Click "Email"... (use YouTube to share a private email link to your email).
    5) Open the Coachella channel on your IPhone from the link in your email.
    6) Using Airplay, send this streaming Coachella Youtube Channel to your Apple TV from your IPhone.
    It works!
    If your AirPlay videos are interupted by your IPhone Auto-lock then you can fix that using:
       IPhone --> Settings --> General --> Auto-Lock --> "Never".
    Happy Coachella watching!

  • How can I watch the video on the ABC news website?

    You guys have talked about this issue before, but just in case there has been any changes or ideas I was wondering...
    Is there a way for us Mac people to watch video on the ABC news web site? I used to be able to when ABC was using Real Media. But they went in house and I couldn't watch their archived stuff. Like World News Tonight programs.
    Oddly, there is video on the site that I can watch. Like shorter stories.
    Also, on MSNBC, I can watch the daily news broadcast, but can't watch other video on the MSNBC site.
    I'm not really computer savy, but I do understand this has something to do with "the platform" ABC news is using.
    Any ideas or good results?
    Thanks,
    Mylesaway

    First of all, thanks for all your help.
    But here's the deal, some of the videos do and always have played on the ABC website for me. But not all. The free stuff on the first page all plays. The other videos on other pages do not. Not now, and not before when I had a paid subscription. It's the archived material or whole World News Tonight and Nightline shows that are not playing for me.
    But again, the individual stories on the front page of the site do play.
    Same problem with the MSNBC website. But with a slight twist. It says I don't have the needed video player. And can't watch the smaller stories on the front page of the site. However, when I try to watch the webcasts of the entire NBC NIGHTLY NEWS with BRIAN WILLIAMS, I can watch it with no problem at all!
    Plus, I do have the Macromedia Flash player installed on my computer. And it still doesn't work.
    Thanks,
    Myles

  • How can I watch the process is running in program?

    In my program, I fork some processes, and I must watch them timing, how can I know that these processes is running?

    <pre>
    There could be many way for to see what process is doing.
    Easiest is to use "truss" on the process or the program.
    Please see the man page of truss.
    You can do :
    truss -f -p pid_of_process
    or
    truss -f -o /tmp/out -p pid_of_process &
    tail -f /tmp/out
    or
    truss -f program_exe
    Otherwise you can use dbx, run the process in dbx and set
    breakpoints at various levels.
    Thanks
    Kalpesh
    </pre>

Maybe you are looking for

  • "INVALID_DYNPRONAME" runtime error

    Hai all! i am trying 2 implement a selection screen with two paramerers , purchasing organization & plant.. i want 2 get f4 help for plant based upon the value of purchasing organization tht v will give at runtime.. but while running my program i am

  • Aperture 3(.2.1): overexposure on RAW files from EOS450D

    Hi all, I'm trying to come to terms with the way Apertue 3 imports my RAW files (Canon EOS 450D/Digital Rebel XSi), in terms of exposure... Basically they seem to be overexposed by at least 2/3 of a stop on average, and possibly more. In the release

  • Transaction not rolling back in stateless session bean

              Hi,           I am facing a problem...           I have one stateless session bean which does multiple updates in SYBASE database.I           am using non-transactional datasource. Bean calls a method of data access obejct           whcih i

  • Applicatio​n works differentl​y under run time license

    I used the evaluation period of my TestStand 3.1 to install and debug an application on a computer. I got the application just right and activated 3.1 as a deployment computer. Now the test sequence fails communication steps it passed before. Of cour

  • Logging in java defined functions

    Hi, Are there any means of logging in java defined functions used in mapping? Regards Yann