Find out TRACE file of a session

Hi,
I'm generating trace file of a session (not the session where I'm login into) by the following command..
EXEC DBMS_SUPPORT.start_trace(sid=>123, serial=>1234, waits=>TRUE, binds=>FALSE);
Now, after start tracing I cannot find out the trace file which is generated for SID=123.
Can you help me to find out the trace file? I mean, is there anyway to find out the trace file name for SID=123?
Thanks,
Anjan

hi,
Before this user must have sysdba privileges
SQL> ORADEBUG SETMYPID; -- Debug current session.
SQL> ORADEBUG SETOSPID 678; -- Debug session with the specified OS process
SQL > ORADEBUG SETORAPID 6756323; -- Debug session with the specified Oracle process ID.
SQL> ORADEBUG TRACEFILE_NAME; -- Display the current trace file.
- Pavan Kumar N

Similar Messages

  • How to find out histotry command from other session

    Hi gurus,
    I use RHEL 5.4
    Some user log onto server with root and make change at some files. How can I find out history command from other session with the same user.
    history command is just give me history commands of my own session.
    Thanks
    Ch

    The file which holds the commandline history is .bash_history in the home directory of the user.
    So in the case of root, /root/.bash_history
    Please mind that if you log in as root, or become root your session will add to that file as well.
    Another issue with the history file is that when multiple sessions are logged in, every session writes in its own version of the same file. So the last one "wins", which means that version is the one which is truly stored.
    If files are changed, a find command with the 'mtime' parameter should be helpful.

  • How can i find out the file size of a Keynote on an iPad please?

    How can i find out the file size of a Keynote on an iPad please?

    I think a rule of thumb is what you're looking for.
    Full bandwidth CD audio (AIFF): about 10 MB/min
    Apple Lossless: about 5 MB/min
    MP3 @ 256k: about 2 MB/min
    MP3 @ 128k: about 1 MB/min
    Of course the MP3 file size is exactly linear with bit rate.
    As for sound quality:
    Apple Lossless is, as the name says, lossless.
    MP3 @128k: fine for listening in the car or the kitchen etc. If you have an audiophile sound system, this will remind you why you spent all that money.
    MP3 @256K: barely distinguishable from CD on very good equipment.
    MP3 @320K: probably not distinguishable from CD.
    I presume that since you're talking about importing classical CDs these are ones you own. Remember you can always do it again if you need higher fidelity or if better technology comes out. I import most CDs at 128k, since most of my MP3 listening is in the car, or walking, or as background. And I can always play the CD if I want to sit and listen.
    The logic for purchased music is totally different -- you probably won't get to upgrade that without buying it some different way. So buying 128k MP3s (or AACs) is something you'll probably regret later. Buying 256k MP3s is a lot less problematic.

  • How do I find out a file in a disk?

    can anyone tell me
    how to I find out a file in a disk?
    Thanks in advance.

    That's almost a haiku you wrote there, isn't it?
    There's no standard API class/method to do that so you need to write your own: you'll have to pass through directories recursively. The File.list method will help you get file listings from a directory.

  • How to find out the file name

    Hi,
    In selection screen (parameter) user will give input TXT file from presentation server to upload to SAP. I need to capture the file name only but not the path and need to concatenate with date stamp and need to download error log in XLS file to presentation server.
    How to find out the file name from selection screen?
    I searched SCN threads but not found relavant solution.
    Thanks,
    R Kumar

    Hi
    This code gets only filename from selection screen :
    REPORT x.
    PARAMETERS p_file(100).
    DATA : gv_full_path LIKE  ibipparms-path,
           gv_full_path_string TYPE string,
           gv_filename(100),
           gv_file_ext(3).
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Ask user to select file with a popup :
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = gv_full_path.
    Get filename from path :
      gv_full_path_string = gv_full_path.
      CALL FUNCTION 'CH_SPLIT_FILENAME'
        EXPORTING
          complete_filename = gv_full_path_string
        IMPORTING
          extension         = gv_file_ext
          name              = gv_filename.
      CONCATENATE gv_filename '.' gv_file_ext INTO gv_filename.
      p_file = gv_filename.
    I hope it helps.

  • Anyone know of a way to find out if files are missing in my iTunes proactively?

    I know that the circle with the ! shows up if a file is missing, but is there a way to run a diagnostic to find out if files are missing vs. just trying to play each and every song?  I have over 6000 songs and want to verify they are all there.  Any help would be appreciated.

    One way to identify the broken links in your library is to create this set of playlists:
    Lost & Found playlists
    Create a playlist called Found, select everything in Music and drag it into the Found playlist. Create a smart playlist called Lost matching All the rules Playlist is Music and Playlist is not Found. Your lost tracks will be in this playlist.
    Or use iTunes Folder Watch and enable its option to check for dead tracks on startup.
    tt2

  • Generating Trace file for ODI Sessions

    ODI Gurus
    am new to ODI, for one of our integration project am using ODI for transforming data from Source to Target Instance.
    Oracle Database is installed on both Source and Target instances. Is there a way to generate Database Trace files for ODI sessions triggered.
    If yes can you provide the steps to enable/disable database trace for ODI sessions.
    Regards
    Uma Shankar

    Hi Uma Shankar,
    My assumptions:
    1.) You want to selectively enable Oracle tracing when only the ODI scenarios are executed and not otherwise.
    If that is the case then you will have to add some external steps comprising of OS commands and variables that will control if those steps are to be executed or not. These steps will invoke the OS commands to start Oracle tracing.
    2.) You know the steps to create a package and know how to use Interfaces and other ODI utilities in the flow of the package.
    3.) You know how to create and execute scenarios
    Steps to Selectively enable tracing.
    1.) Add a variable named V_START_TRACE to the package. This variable will be passed a value from scenario which will determine if you want to enable to trace or not. This variable type is EVALUATE and can have 2 values - TRUE or FALSE. You will have to check for the condition and depending on the condition you will take a path forward.
    2.) Add 2 OS commands to the package - OS_START_TRACE and OS_END_TRACE
    3.) Create 2 shell scripts (or bat files) - odi_start_trace.sh and odi_end_trace.sh with the following commands:
    odi_start_trace.sh :-
    sqlplus session - ALTER SYSTEM SET trace_enabled = TRUE;
    odi_end_trace.sh :-
    sqlplus session - ALTER SYSTEM SET trace_enabled = FALSE;
    You need to invoke SQLPLUS sessions from the above shell scripts to enable/disable the oracle level tracing.
    4.) Add the above shell scripts to the OS commands created in Step 2.
    5.) Join the steps in the following order in the package :
    V_START_TRACE (OK) ->OS_START_TRACE (OK) -> <<+Your Actual Integration Code+>>(OK) -> OS_END_TRACE
    V_START_TRACE (KO) -> <<+Your Actual Integration Code+>>(OK)
    The above KO variable statement doesnt start the trace if the evaluated value doesnt = TRUE. So this will let you do a selective trace.
    6.) Create the scenario from the package and execute the scenario by passing it a value "TRUE" for variable V_START_TRACE.
    Check the startscen.sh syntax, something like:
    *>startscen.sh ... "GLOBAL.V_START_TRACE=TRUE"*
    The above is a general solution for enabling trace for any RDBMS
    If you need any more information, feel free to ping back.

  • How can I find out those files whose name has space character?

    Hi
    How can I find out the files whose name has space character in a whole file system?
    Thanks
    Jerry

    thank you all
    I can use this command to find out like
    $find ./ -type f -exec ls -1 {} \; 2>/dev/null | grep " "
    ./space in name
    while, I modify above a little to find out a spcific file systems like below:
    $find /bbj* -type f -exec ls -1 {} \; 2>/dev/null | grep " "
    /bbj14/appl/oracle/prdrep/S_STATIC_TAB_05.dbf
    --while, I didn't see any space character in file name "S_STATIC_TAB_05.dbf"
    what is wrong?
    thanks

  • Does anyone know if there's any way to find out what files in my Library

         Does anyone know if there's any way to find out what files in my Library I can delete? I just cleaned off my HD onto a media drive as a back up so all my movies documents and photos are gone but my Library seems to be a huge space hog eating sixty gigs of space and I do have alot of apps but they don't take up a third of that space... Any ideas how I can figure out what is wasting all this space? I had Spring Cleaning once but found it to be rather confusing as to what was essential to the OS and what not...
    Thanks,
    Matt

    Get free OmniDisk Sweeper. I can't imagine how you could have sixty GB in that folder. My entire ~Library isn't even 1GB. Are you sure you're not talking about your entire Home folder?
    Can you post a screenshot of the contents of that folder.
    Check again. Are you sure you moved all the Movies etc. out? Could have left duplicates of everything behind when you did this.
    Message was edited by: WZZZ

  • How to find out average files i am getting every day in a month?

    How to find out average files I am getting every day in a month?

    Do you mean average count of files received?
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Finding my trace files

    Hi,
    When Several users create trace files simultaneously,How to find my trace files?
    Thanks

    You could try "select userenv('sessionid'),userenv('TERMINAL') from dual;" . Then grep -l value *.trc files to find those relevant.

  • How to generate trace file from different session?

    I have a cron job which starts several Oracle stored proc (Oracle 9.2). I want to generate a trace file when the job is running. I know I can use this alter session command before I start this job. But this is my session not the job session. So this command won't generate trace file for job's session.
    ALTER SESSION SET EVENTS '10046 TRACE NAME CONTEXT FOREVER, LEVEL 8';
    Appreciate any ideas.
    Thanks.
    S.

    Easiest way is to use database control/grid control - click trace session button!
    The 'old fashioned way is'
    begin
    DBMS_SYSTEM.SET_SQL_TRACE_IN_SESSION(SID,serial#,TRUE);
    end;
    find sid and serial# in a select from v$session
    There are other ways too but this is probably the easiest.
    You'll need appropriate privileges to run this .
    Cheers,
    Harry

  • How do I find out a file's particular size?

    Good Evening,
    I am looking for assistance with figuring out a file's particular size within a group of files.
    If I have one large directory and I am looking to find out what the smallest file in that directory is, how would I go about doing it?
    Also, how would I figure out when the file was created on the system or particular hard drive such as a network attached storage device?
    Thank you!

    While command + i (or the Finder Information icon) would give you the file size, that would require a one-by-one approach. Perhaps quicker would be using a utility like "What Size" that will list Folders/files and give the size of each.

  • How do I find out app file size

    I only have 1.7gb left on my 8gb phone and notice that an app I am considering is 1.3 gb. How do I find the file size of apps before I buy them so I don't pay for something and then find out that I don't have enough space?
    Thanks!

    I mean if I download this file and am left with only 0.4gb and want to download more apps in the future. Or if I HAD only 0.4gb left and needed to remove apps to make room, how do I know how large the are?
    Thanks!

  • How to find out what files a package has installed?

    Sometime you installed a package, but you don't know the name of the command to run and you don't know the name and location of the configuration files. There are conventions but is there a way to show those information explicitly?

    aberkoke wrote:
    You can try
    $locate
    for example. you write
    $locate firefox
    and you will see all files about firefox.
    That's a partial solution. Suppose I installed a package called gtk-vim, but the binary is gvim and I didn't know that. If I use
    locate gtk-vim
    it will not find "gvim".
    Besides, different packages may install files with names identical or partially identical. What I want to find out is what files a specific package installed or removed, or changed, just like the deb package manager in ubuntu.

Maybe you are looking for