Discover the traces files when DBMS. TRACE is used

Hi all
How can I view trace file when DBMS_TRACE. SET_PLSQL_TRACE is run?

Suppose I have the following procedure
create or replace procedure some_proc is
first varchar(10);
begin
select first_name into first from employees where first_name='Eleni';
dbms_output.put_line(first);
end some_proc;
running the static sql query and I want to see how the DBMS_TRACE exports information about the trace file. I run the tracetab.sql
SQL> @/usr/local/oracle/product/11.2.0/dbhome_1/rdbms/admin/tracetab.sql
recompile the procedure
SQL> alter procedure some_proc compile debug reuse setting;
Start the trace
SQL> exec dbms_trace.set_plsql_trace(dbms_trace.trace_all_sql)
Run the procedure
SQL> exec hr.some_proc
get the location of the file record of the session in question
SELECT value
FROM v$diag_info
  3  WHERE name = 'Default Trace File';

VALUE
-------------------------
/usr/local/oracle/diag/rd
bms/inara/inara/trace/ina
ra_ora_6309.trc
but when I view the file, I can't find information on the sql statement. Here is the last part of inara_ora_6309.trc which shows the debatable part:
*** 2011-09-08 12:56:29.712
*** SESSION ID:(132.70) 2011-09-08 12:56:29.712
*** CLIENT ID:() 2011-09-08 12:56:29.712
*** SERVICE NAME:(SYS$USERS) 2011-09-08 12:56:29.712
*** MODULE NAME:(sqlplus@firefly (TNS V1-V3)) 2011-09-08 12:56:29.712
*** ACTION NAME:() 2011-09-08 12:56:29.712
 
--NOTICE  ---------------------------------------
--PL/SQL TRACE INFORMATION IS NOW IN THE DATABASE
-- To create the trace tables, use the script  --
-- rdbms/admin/tracetab.sql under ORACLE_HOME  --
The part that I've done wrong? The procedure is sufficient so that the trace info does not appear? I have consulted the wrong trace file?

Best regards
Val

Published by: Valerie good-natured Sep 8, 2011 12:15 AM

Hello

The message seems pretty clear to me:

--PL/SQL TRACE INFORMATION IS NOW IN THE DATABASE

You can view trace information by querying the tables that you created by using the tracetab.sql script.

SELECT * FROM plsql_trace_events;
SELECT * FROM plsql_trace_runs;

Tags: Database

Similar Questions

  • Where are the stored files when creating a package using CCPLauncher?

    I just bought Windows 7 Captivate. I need help to install the software. I downloaded the CCPLauncher.exe and specified options to build a package, however, I ran out of space on the drive. I quit the CCPLauncher.exe and I want to start it on another computer that has more space. However, I want to clean up whatever space the build process has consumed, but I couldn't find where the files who took all my disk space were... the CCPLauncher.exe is only 2.5 MB. But I loss of space much more than that. Note: I build the Pacakge on Server Windows 2003 STD, but I clear worm 64-bit because I'm not going to deploy the package on the computer in Windows 8.

    Hi CalvinNova,

    Here is the location for both Windows and Mac:

    Location of Windows - C:\Users\\AppData\Local\Adobe\CCP\AdobeCCPCache

    Location of MAC - ~/Library/Application Support/Adobe/CCP/AdobeCCPCache

    Kind regards

    Romit Sinha

  • How to view a Wordpress site in Live View mode? (An unknown error has occurred so that dynamically discover the associated files)

    When I try and view my online Wordpress site I just get "an unknown error has occurred so that dynamically discover the associated files"

    It worked fine when my site was in WAMP in the directory "www", but now it's live I can't see him in Live view more. What should I do?

    Live View is not your site online.  This is your local site, as one might expect to see that he rendered in a browser Chrome.

    To view your site online, point your browser to the URL of your site.

    Nancy O.

  • I installed the download tool usb/dvd windows 7, but after you have selected the iso file when I insert the USB stick and refrecing, it does show that "no usb drive compatible' what is the problem with my USB

    I installed the download tool usb/dvd windows 7, but after you have selected the iso file when I insert the USB stick and refrecing, it does show that "no usb drive compatible' what is the problem with my USB

    I have sandisk cruzer blade USB key

    Hi Rohit,

    Thanks for posting your query in Microsoft Community Forum. I understand that your USB drive is having problems of compatibility with your computer, but I would like to learn more about the issue in order to provide you with better assistance.

    1. You did it any significant hardware or change software on the computer before this problem?
    2. When do you get exactly the error message?
    3. Have you tried to connect to any other computer on this flash drives?
    4. Your USB key works on other computers or have you tried to connect to different USB ports on this computer?
    5. Is the pen drive getting detected in the case or you are able to access the drive folder in the window of the computer ?

    The question may arise if the currently loaded USB driver has become unstable or damaged, or if your PC requires an update for problems that could conflict with a device USB and Windows. This can also occur if your USB controllers may have become unstable or corrupt. So, I would suggest trying the following steps and check if the problem persists.

    Method 1:

    Please try the fixit (s) provided below which will help you solve common problems associated with devices and USB ports.

    If method 1 does not work, try Method 2.

    Method 2:

    Remove and reinstall all USB controllers.

    1. Open Manager devices by clicking the Start button, click Control Panel, click system and security, and then, under System, clicking Device Manager. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    2. In the list of the categories of equipment, locate and expand Bus USB controllers.
    3. Right-click every device under the Bus USB controllers node and then click Uninstall to remove them one at a time.
    4. Restart the computer and let the USB controllers get reinstalled.

    Plug in the removable USB device and test to make sure that the problem is solved.

    If the problem persists, go to method 3.

    Method 3:

    This method will install the latest drivers from device to your USB device.

    1. Click the Start button, type Windows Update in the search box, and then click Windows Update in the results pane.
    2. Click find updates. When the scan finished, click optional review updates.
    3. Click the check box next to the update, and then click install updates.
    4. If you are prompted, read the license agreement, then click I agree.
    5. Follow the instructions on the screen to download and install updates.
    6. If you are prompted, restart your computer.

    More information: Update a hardware driver that is not working properly

    Hope this information is useful. If the problem still persists, please post back for further assistance, we will be happy to help you.

  • I use photoshop elements 12 on Macbook air and the screen freezes when I try to use the tools. Then I have to force quit if I lose my job. someone knows how to fix this?

    I use photoshop elements 12 on Macbook air and the screen freezes when I try to use the tools. Then I have to force quit if I lose my job. someone knows how to fix this?

    What version of Mac OS X are you using? If the Yosemite, you will need to upgrade to 10.10.1 or higher version.

    In any case, start by going in the editor preferences > general, click this button and the restart of the Editor:

  • How to replace only the new files when copying

    When I copy existing files in a folder (inside the Windows Explorer) with another with the same name,

    I want to just replace the recently modified files.

    Discover (ROBOCOPY) robust file copy utility included in all versions of Windows from XP:

    http://technet.Microsoft.com/en-us/library/cc733145 (v = WS.10) .aspx

  • How can I maintain the original size of the JPEG file when you import into Photoss?

    I noticed that when I use pictures to import images from the SD card in the camera, the images are substantially smaller than when I drag the same image directly from the SD card on the desktop. In general, a 3.6 Mb picture somehow diminishes to about 2.6 MB. I'm wrong and get frustrated to this drop in image quality!

    Any help / advice will be highly appreciated. Thank you

    In what circumstances you see this small size?

    Photos did a bit of copy bit when importing images in its library.  If you drag the thumbnail of an image on the desktop you bet that the preview version, which will have a small file size.

    Export the image on the desktop via the file export Export X Unmodified Originals ➙ ➙ menu option will give you the full size file that was imported into the library.

    Drag the thumbnail on the desktop will get you the original file.

  • FTP creates and deletes the temporary instead of the download file when you use the switch S:

    We use Windows 2008. There is a strange problem to start the FTP., receive a file.
    I can receive the file when the command line GET command. When I use the file with the command (ftp - s:Filewithcommands.txt), ftp creates a temporary file and remove it automatically without doing the real download.
    Thanks in advance

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums:

    http://social.technet.Microsoft.com/forums/en/winserverDS/threads

  • I can't find the text file when a new right click

    Hello

    1. I can't text fint file when I click right click...  new (menu).

    We show other programs but no text file.

    2. in the same menu, how can I organize other applications ' If I want to remove one or other put on ?

    Thank you

    http://www.Vistax64.com/tutorials/154554-new-context-menu-restore-default-menu-items.html

    How to restore missing default new items of the context Menu in Vista

    http://www.Vistax64.com/tutorials/112102-new-menu-context-file.html

    How to add and remove an item from the new Menu in Vista

    See you soon.

    Mick Murphy - Microsoft partner

  • Error: The system cannot find the specified file, when I try to start the GIVING machine

    Original title:

    I have the same problem with GIVING stop working, I am using windows 7 Home premium, when I tried to start the machine, I get this error below: the system cannot find the specified file. I need help, can someone please tell me where to download the latest version of the driver for this device GIVING

    Hello

    1. are - this you face problems related to this device?

    2 do you have installed on the computer Vipre or Counterspy?

    3 did you changes to the computer, before the show?

    Method 1:

    Step 1: Safe Mode

    Start your computer in safe mode and check the number.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Step 2: Start the machine.

    Try to start the machine now and check.

    Method 2:

    Update drivers and check out them.

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Method 3:

    Uninstall and reinstall the device.

    a. Click Start, in the search box, type in devmgmt.msc and press ENTER.

    b. Locate the GIVING, right-click on it and select uninstall.

    c. When you get an option, select the option to remove drivers

    d. restart the computer and check if Windows installs the device.

  • How can I specify location of the control file when the manual creation of DB?

    DB version: 11.2.0.4

    OS: Oracle Linux 6.6

    The CREATE DATABASE command creates the control file.

    CREATE DATABASE command is executed once you start the instance in NOMOUNT State as shown below.

    SQL > startup nomount pfile=$ORACLE_HOME/dbs/initBRCPRD.ora

    SQL > create database 'BRCPRD '.

    MaxInstances 32

    MAXLOGHISTORY 1

    maxLogFiles 192

    maxlogmembers 3

    ..

    .

    .

    < snipped >

    When you create the database manually, we can define the control_files parameter in the init.ora as below and control file will be created at this location. Right?

    control_files = ("" / u01/oradata/BRCPRD/BRCPRD_control01.ctl","/u01/oradata/BRCPRD/BRCPRD_control02.ctl "")

    When I was generating the DB using DBCA GUI creation scripts, it asks to enter the location of the Online redo logs and control files.

    I entered my desired location. But, I couldn't find CONTROL_FILES parameter in the init.ora file generated the DBCA. This is why I got confused. I think that DBCA is internally somehow. So thought I'd post it here.

    Hi John, OP

    Just checked the init.ora file created by DBCA. Although the parameter CONTROL_FILES is undefined, db_create_file_dest = '+ DATA_DG1' was created. OMF default location is defined by the db_create_file_dest parameter.

    So, I could safely use this script for the manual creation of DB, and during the CREATE DATABASE command execution, oracle will place CONTROL_FILES + DATA_DG1 using the format;

    +DiskGroup/dbname/filetype/filetypetag.file.incarnation

  • How to avoid changes to the NEF file when you use Camera Raw?

    He does not have to happen, but now, when I edit a NAVE in Camera RAW file, then save it as jpg in PS6 file NAVE is also changed, so I can't undo my changes here.  How to stop this change to the NEF file?

    And if you use the bridge to eliminate all changes in the NEF file you made in ACR and return to its state choose Edition > develop settings > clear settings. (You'll notice that the marker of this image in Bridge has been removed, confirming the fact that the NAVE is back to change.)

  • DW/WordPress "an unknown error has occurred while discovering the linked files dynamically"

    I'm trying to configure Dreamweaver CC 2014 to work with my WordPress site 4.0 on the remote server where it is installed. Access to the server is fine, tested ok, all the files listed and sync without problem. But every time I try to dynamically discover files that I get "an unknown error has occurred" while discovering the dynamically related files. What is going on? (Permalinks are the default btw)

    Is easily fixed! I just discovered that under my server settings, I had both 'remote' and 'Testing' checked. I checked "Remote" and it works fine. Just check 'test '.

  • Can not find the .bss files when running

    Hello

    I used Eclipse to create an executable Jar of my FX project.
    When I try to launch the Jar executable, I see the following exception:
    java.net.MalformedURLException: cannot open InputStream for URL "rsrc:css / myapp.bss".

    I looked inside the jar and saw a myapp.css in the css, but not myapp.bss directory.
    I read here (http://docs.oracle.com/javafx/2.0/deployment/packaging.htm) which says conversion of .css to .bss is optional.

    Is it possible to say my app just use the .css file and do not have the .bss file?


    Any help is appreciated.
    Thank you.

    It would seem that Eclipse (or something else) is something strange with the ClassLoader to use a weird Protocol.

    Maybe this StackOverflow response can help you: http://stackoverflow.com/questions/7507156/java-net-malformedurlexception-unknown-protocol-rsrc ' java.net.MalformedURLException: unknown protocol: rsrc ".

  • Bridge will not open the NEF files, when you double-click on them, using PS CC

    I installed the latest version of PS CC and the bridge, but when I go to my Nikon NEF files and double-click it to open, they open in some weird Photo Gallery of the window, then I went Bridge preferences and reset settings, and now when you double click it nothing happens and they open at all.  I use a PC with Windows 7.

    I posted this question before, I need help, please

    If you go into Bridge preferences > File Type Associations, it does the default list?

    If it does not list Adobe Photoshop CC you can use the Browse button to

    the Photoshop.exe in C:\Program Files\Adobe\Adobe Photoshop CC

Maybe you are looking for