Create trace file on specific location

Hi all,
I'm working with a 11gR2 Enterprise DB on Linux RedHat 5
Now I need to create a trace file. This trace will be huge and I need to create it on an specific folder on my system because the udump fs could be small for it. These are the commands I'll use:
oradebug setospid 3165
oradebug unlimit
oradebug event 10046 trace name context forever, level 12
If I use the "oradebug tracefile_name" I'll get the actual trace file name but, How can I say the specific location where I need to create it?
Best regards,
dbajug

dbajug wrote:
Hi all,
I'm working with a 11gR2 Enterprise DB on Linux RedHat 5
Now I need to create a trace file. This trace will be huge and I need to create it on an specific folder on my system because the udump fs could be small for it. These are the commands I'll use:
oradebug setospid 3165
oradebug unlimit
oradebug event 10046 trace name context forever, level 12
If I use the "oradebug tracefile_name" I'll get the actual trace file name but, How can I say the specific location where I need to create it?
Best regards,
dbajugi dont know of any method that will allow you to do this for a single file, but you can use below workaround since the tracefile name is predictable
lets say your database name is ORCL
the ospid is 3165, so the tracefile will be created as udump/ORCL_ora_3165.trc
before starting the trace, you can pre-create it at different location and point a symlink on it, e.g
touch /lot_of_space_here/trace.trc
ln -s /lot_of_space_here/trace.trc udump/ORCL_ora_3165.trc
and now start tracing

Similar Messages

  • Reading XML file from specific location&Storing xmldata into related tables

    I am new to xml.
    My requirement is,
    1) Get the xml file from specified location (C:\xmlfiles\ xmldata.xml)
    2)Convert xml data in clob data.
    3)store the data into related table.
    and vice-versa.
    What i did,
    a) I got the data from related tables and converted into xmlformat using SQLX
    b)converted this resultset into clob data and stored as xml file in specific location.
    It uses more then ten tables.
    All this help i got from AskTom site , thanks for that.
    Now i have to do vise-versa, i.e. i have to perform 1), 2), 3) steps........
    Please tell me proper steps to acheive it.
    Thanks in advance for giving your precious time to solve my issue.

    Have you read the"XMLDB FAQ" in this Forum?
    You could use stuff like:
    create or replace directory xmldir as C:\xmlfiles'
    declare
    xmldata xmltype;
    begin
    xmldata := xmltype(bfilename('XMLDIR','xmldata.xml'),nls_charset_id('AL32UTF8'));
      -- etc, etc your code --
      -- --> convert to clob by using for instance getclobval() function
      -- --> then insert the data in your relational table with CLOB column
      -- etc, etc your code --
    end;
    /

  • Enable to create ldt file for specific program using FNDLOAD submit request

    hi ALL ,
    i am trying to create .ldt file for specific program but the things is that following program creating .ldt file for all the program which are available on instance .
    please suggest me if i did anything wrong in my code ...
    DECLARE
    req_id fnd_concurrent_requests.request_id%TYPE;
    BEGIN
    fnd_global.apps_initialize (user_id => 1012001,
    resp_id => 20420,
    resp_appl_id => 1
    req_id :=
    fnd_request.submit_request
    (application => 'FND',
    program => 'FNDLOAD',
    description => NULL,
    start_time => NULL,
    sub_request => FALSE,
    argument1 => 'DOWNLOAD' ---Mode - UPLOAD
    argument2 => '@fnd:patch/115/import/afcpprog.lct'
    -- -LCT File
    argument3 => '/tmp/concqueues.ldt' -- -
    argument4 => 'PROGRAM',
    argument5 => 'XXFUJI'
    ,argument6 => 'XXSAG_FILE_DATA'
    DBMS_OUTPUT.put_line ('req_id= ' || req_id);
    COMMIT;
    END;
    thanks in advance
    sagar

    thanks for your reply ... Alex
    ... but... no i don't wanna create concurrent program for fndload neither i want to use FNDLOAD script ... the above FNDLOAD Submit request program worked for me and using that i have created ldt but my problem is that program is creating ldt for all program which are registered , it's not picking my my file which i pass as a parameter ...please have look into my code ...
    and please suggest me ..
    thanks
    sagar

  • How to create the file on a location where user having rights?

    Hi,
    I have requirement, in my application a lot program thatcreating a report in a file and it is written into a user location. Now it specified directly like ( c:\ or d:\......).
    The problem is that the user doesn't have rights to access that directories. What i suggest or feel i want to create that particular reports on a location where the end user having rights.
    Basically in Windows system %userprofiles% having right to do anyting. Suppose the OS installed in C: the %userprofiles% c:\documents and settings\username or D: then D:\Document and settings\username.
    How to achieve this please help me.
    Good help will be appreciated.
    kanish

    Hello,
    The best practice would be to create the file in My Documents for the current connected user to the windows.
    Unfortunately, you did not mention your forms version. In older version like 6.x there is function in d2kwutil library called Read_Registry in win_api_environment section and in latest versions the same function availble in webutil library with client_ name.
    So, you can read the registery for current connected user by using the above mentioned function from the following path of registry.
    My Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    There is an entry called Personal. Read the path from that entry at runtime while generating/saving file to the client's location and save the file into that path.
    -Ammad

  • Trace file in different location

    Dear all,
    11g on Solaris 10.
    My oracle home (dump location) located in a file system of 10GB.. I need to trace a session which will generate huge trace file. Is there anyway I can have the trace file generated in a different location where I have enough space to allow the growth of the trace file.
    Thanks
    Kai

    Please refer:
    http://www.oracle.com/technology/oramag/oracle/09-mar/o29asktom.html?_template=/ocom/print
    Edited by: SKU on 19-Dec-2009 05:10

  • Creating trace file in oracle 10g forms

    hii there,
    I have developed an application in oracle 10g. but it's too slow . Now i have to trace forms . How can trace oracle forms.
    please send it in details as early as possible. I don't know about this trace file generation.
    -----Sachin

    Hi,
    To run SQL trace for a form :
    a. Get to the point in the form where you want to turn trace on.
    For example, if the problem occurs on the commit, wait until you are
    ready to commit, THEN turn trace on.
    b. Turn tracing on. In GUI versions: Help - Tools - Trace, enable tracing.
    c. Execute the steps you want to trace.
    d. Turn tracing off. In GUI versions: Help - Tools - Trace, disable tracing.
    The trace file will be written to the subdirectory specified in the
    'user_dump_dest' parameter in the INIT.ORA file.

  • Placing ini file in specific location when building the application

    Hello,
       I have a small problem.  I have an ini file that I use to store certain parameters.  Lets call this file app.ini.  When I build the Application.exe, it puts that file into the data directory.  I was hoping that it would be one level higher and be located in the same directory as Application.exe is (otherwise it won't read the file correctly.)  I looked at the Source File Settings in the Category list in the properties window for the build and set the Destination to be "Same as caller", but that didn't put it where I wanted it.  I'd really like this file to be one directory higher when I make my build in order for my app to read it correctly.  Any suggestions?
    I use this executable later on when I make my installer and the problem simply propagates there too, not good.
    Solved!
    Go to Solution.

    One way to solve the problem:
    1) In build properties window select Destinations and create a new destination. Select as "Destination Path" the same dir where the exe will be stored
    2) Assign this destination to the .ini file.
    Let me know if it works
    Marco

  • Add button to PDF Form to save file to specific location

    I have a simple form that is completed daily by various supervisors. I have successfully added a button to the form to email the form which then sends the form to an email group. Now, I'm trying to add a second button to save the form to a network location. I'm looking for this to be a one-click type situation, where the button then saves the form to the specified folder on the network.
    Lets call our form "Form.pdf". I'd like the filename to be "Form - date - time.pdf" where date and time are fields on the form that are completed by the user. The location will always remain the same and will be a UNC path ie \\server\share\filename
    All users are using Acrobat X standard when completing the forms, will be connected to the network and will have permissions to write to the file share.
    This seems like it sohould be easy, but I cant figure out how to do it in Acrobat.
    Thanks in advance for any help.

    It's only possible if you can install a script on the local machine of each
    user. For more info, see this tutorial:
    http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

  • Urgent: DBrefresh error 354 while creating control file, oracle9i, SAP R3

    Hi experts,
    I have created trace file in Source system and moved the same to target system and edited and then while executing the trace file to create control file the following eeror is coming
    my trace file is like this. . .
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "P47" RESETLOGS ARCHIVELOG
    --  SET STANDBY TO MAXIMIZE PERFORMANCE
        MAXLOGFILES 255
        MAXLOGMEMBERS 3
        MAXDATAFILES 336
        MAXINSTANCES 50
        MAXLOGHISTORY 8168
      '/oracle/P47/sapdata9/btabd_63/btabd.data63',
      '/oracle/P47/sapdata9/stabi_27/stabi.data27',
      '/oracle/P47/sapdata9/btabi_122/btabi.data122',
      '/oracle/P47/sapdata9/stabd_28/stabd.data28',
      '/oracle/P47/sapdata9/btabi_123/btabi.data123',
      '/oracle/P47/sapdata9/btabd_64/btabd.data64',
      '/oracle/P47/sapdata9/btabi_124/btabi.data124'
    CHARACTER SET WE8DEC
    i run command like this:
    SQL> @/oracle/P47/saptrace/usertrace/control.sql
    ORACLE instance started.
    Total System Global Area          1249618992 bytes
    Fixed Size                                     732208 bytes
    Variable Size                             788529152 bytes 
    Database Buffers                       459022446 bytes
    Redo Buffers                                1335296 bytes
    <b>354</b>
    when I press 'enter' again SQL prompt is comming
    Please help
    rgds

    Hi markus,
    thanks for reply . .
    control files are not created. . . .
    alertSID logs shows as follows
    orap47> tail -f alert_P47.log
    ARCH shutting down
    Thu Dec 13 13:01:51 2007
    ARC0: Archival stopped
    Thu Dec 13 13:01:51 2007
    ARC1: Archival stopped
    Thu Dec 13 13:01:54 2007
    ARCH: Archiving is disabled
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    <b>When @/oracle/saptrace/usertrace/control.sql command given in sepearate SQL window</b>
    Thu Dec 13 13:03:37 2007
    Starting ORACLE instance (normal)
    Disable cache advisory with old cache parameters
    Thu Dec 13 13:03:37 2007
    WARNING: EINVAL creating segment of size 0x000000004b800000
    fix shm parameters in /etc/system or equivalent
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    SCN scheme 3
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up ORACLE RDBMS Version: 9.2.0.4.0.
    System parameters with non-default values:
      processes                = 80
      sessions                 = 96
      timed_statistics         = TRUE
      shared_pool_size         = 704643072
      enqueue_resources        = 8000
      control_files            = /oracle/P47/sapdata1/cntrl/cntrlP47.dbf, /oracle/P47/sapdata2/cntrl/cntrlP47.dbf, /oracle/P47/sapdata3/cntrl/cntrlP47.dbf
      db_block_buffers         = 56033
      db_block_checksum        = FALSE
      db_block_size            = 8192
      compatible               = 9.2.0
      log_archive_start        = TRUE
      log_archive_dest         = /oracle/P47/saparch/P47arch
      log_buffer               = 1048576
      log_checkpoint_interval  = 0
      db_files                 = 354
      db_file_multiblock_read_count= 8
      log_checkpoints_to_alert = TRUE
      control_file_record_keep_time= 30
      dml_locks                = 2500
      row_locking              = always
      replication_dependency_tracking= FALSE
      transactions_per_rollback_segment= 20
      rollback_segments        = PRS_0, PRS_1, PRS_10, PRS_11, PRS_12, PRS_13, PRS_14, PRS_2, PRS_3, PRS_4, PRS_5, PRS_6, PRS_7, PRS_8, PRS_9
      transaction_auditing     = FALSE
      remote_os_authent        = TRUE
      db_domain                = world
      parallel_max_servers     = 20
      hash_join_enabled        = FALSE
      background_dump_dest     = /oracle/P47/saptrace/background
      user_dump_dest           = /oracle/P47/saptrace/usertrace
      core_dump_dest           = /oracle/P47/saptrace/background
      optimizer_features_enable= 9.2.0
      sort_area_size           = 2097152
      sort_area_retained_size  = 0
      db_name                  = P47
      open_cursors             = 800
      optimizer_mode           = choose
      btree_bitmap_plans     = FALSE
      pushjoin_predicate     = FALSE
      optimizer_index_cost_adj = 10
      newinitial_join_orders = FALSE
      optimpeek_user_binds   = FALSE
    PMON started with pid=2
    DBW0 started with pid=3
    LGWR started with pid=4
    CKPT started with pid=5
    SMON started with pid=6
    RECO started with pid=7
    Thu Dec 13 13:03:39 2007
    ARCH: STARTING ARCH PROCESSES
    ARC0 started with pid=8
    ARC0: Archival started
    ARC1 started with pid=9
    Thu Dec 13 13:03:39 2007
    ARCH: STARTING ARCH PROCESSES COMPLETE
    Thu Dec 13 13:03:39 2007
    ARC0: Thread not mounted
    Thu Dec 13 13:03:39 2007
    ARC1: Archival started
    ARC1: Thread not mounted
    rgds

  • Unable to generate SQL trace file in shared mode ??

    Hello,
    I have a 10.2.0.1.0 database on Win2003 server 64 bits, with several instances.
    On instances in dedicated mode, I can create trace files by using dbms_system.set_sql_trace_in_session, but on instances in shared mode nothing happens : no file is created in the udump directory.
    This doesn't make any sense to me o_O
    The shared parameters are the following :
    dispatchers=(protocol=TCP)
    shared_servers=1
    I've checked all the necessary parameters to create a trace file (user_dump_dest, timed_statistics, max_dump_file_size...) and everything is fine.
    I really don't understand why I can't create trace files when the instance is in shared mdoe...
    Can anyone help about this weird issue ?
    thank you !
    regards,
    Antoine

    Remember also that in Shared Server mode the trace information is not written to a single file but is written to the Shared Server trace file. Before Oracle 10g there was no way to pull all the trace information for a single user session together out of the trace files. There is a tool for doing so with 10g.
    HTH -- Mark D Powell --

  • Unable to generate SQL trace file on a 10.2.0.1.0 database

    Hello,
    I am unable to generate SQL trace files on a 10.2.0.1.0 database (OS is Win2003 server 64 bits).
    First I tried the way I used to do it on older databases (8i and 9i) :
    execute dbms_system.set_sql_trace_in_session(sid, serial#, true);
    I got no error, but no file was created in the user dump dest directory.
    Then I've been searching and I've tried other things :
    - I changed the user_dump_dest parameter
    - I changed the tracefiles_public parameter value to "true", by modifying the init.ora file
    - I tried another package :
    exec dbms_monitor.session_trace_enable(139)
    Nothing worked, I can't create any trace file...
    Does anyone have an idea about this issue ?
    thank you for you help !
    Antoine

    Hello,
    thank you all for replying.
    I have 2 instances on this machine, and I've just realized that with the other one I have no problem to generate sql trace files as usual.
    But why the hell is it impossible on the first instance ? What difference between the 2 instances can explain this ?
    This is pretty weird...
    Otherwise I am experiencing serious performance problems on the instance where I can't creat trace files, there must be something wrong with it, but I can't figure it out
    regards,
    Antoine

  • Trace file and control files !!

    hi,
    I have created trace file of the control files by using 'alter database backup controlfile to trace' command. i have two questions..where can i find this trace file and how can i use this trace file to generate the control files.
    Waiting for the replies...
    Regards,
    Saad Bin Khalid

    1. You can fine the trace in the udump folder ... you can check the file time stamp to check when you created the file as it may be possible that here are other user trace files too
    $ sqlplus / as sysdba
    SQL> alter database backup controlfile to trace;
    Database altered.
    SQL> show parameter USER_DUMP_DEST
    NAME TYPE VALUE
    user_dump_dest string /PROD/udump
    SQL> exit
    $ cd /PROD/udump
    $ mv PROD_ora_30823.trc cr_ctl.sql
    $ vi cr_ctl.sql
    edit the control file script
    Now you have a new control file script to re-create your control file.
    2. You can edit the same and execute at nomount stage to generate new controlfiles ... remember controlfiles should be removed before creating the new ones

  • 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 change trace file location in Oracle Fusion Middleware

    Hi all,
    I would like to know how to change the location of the trace file in Oracle Fusion Middleware - Report Server 11g ?
    I notice there is logging.xml file in $ORACLE_HOME/config/ReportServerComponenent/logging.xml. In the xml file, it did specify the location of the diagnostic file and other log files.
    Is it the correct way to reconfigure the location of the log file? I havent try it though. :D
    Thanks.

    Hi Fleix,
    For additional instructions for Release 11i, see Note.167635.1 and Note.150168.1.
    For additional instructions for Release 11.0.3 and 10.7, see Note.148982.1 and Note.135715.1.
    a. Append the following to the end of the URL used to login to the Oracle Applications:
    ?play=&record=collect&log=/tmp/oracle.FRD.log
    ** Note: The self service login URL will not work for creating FRD trace files. You may need to talk to your technical team to get the URL that accesses the forms server directly.
    b. If the URL to logon to 11i applications is:
    http://machine:9603/dev60cgi/f60cgi
    Then the following label needs to be included:
    ?play=&record=collect&log=/tmp/'file_name'.frd
    For example to create frd for above url log in to application as
    http://machine:9603/dev60cgi/f60cgi?play=&record=collect&log=/tmp/4764802.992.frd
    c. Now log into the application and go directly to the form with the problem and perform the actions which generate the error.
    Once the error has been generated and cleared, immediately log out of the application so no additional diagnostics are captured.
    d. The diagnostics will be written to the file specifed after "log=". In the example, this would be /tmp/4764802.992.frd
    e. After reproducing the issue, log on the server side of the instance and go to the directory to /tmp (cd tmp)
    f. Retrieve the frd file: /tmp/4764802.992.frd
    This file contains all the details about built-in programs, triggers, procedures in a FORM
    Thanks,
    Anchorage :)

  • Batch File to look at specific location in txt files

    Is there a way to have at batch file look at a specific line and location from a text file and pull it for use in the batch file?  For example, line 1 of sample.txt position ~15,8.
    I'm currently using the Find command(FIND /C "" *.TXT) but would like to be more specific in search.

    From a command line prompt, type 'help set' and look at environment variable expansion. Read the part that says "May also specify substrings for an expansion." It shows an example that uses ~10,5 to start at offset 10 and get the next 5 characters. Of course,
    this means that you will need to you will need to loop through each line. Use the FOR command; type 'help for' and start reading from "Some examples might help." It shows how you can parse a text file:
    FOR /F %%i IN (myfile.txt) do @echo %%i
    In a batch file, use two percent signs. At the command line, use one percent sign. 
    After the 'do' in the FOR command, you can use a CALL :Someprocedurename %%i, which would pass the line from the file into a sub and you can use the SET command to parse it.
    The Help mentions Command Extensions. At command prompt, type 'help setlocal' and read about ENABLEEXTENSIONS. At the bottom of the Help, they give you an example of how to add this to a batch file. You will need this to use the SET command to parse lines
    from the file.
    If you want to save the output, use the redirects, > or >> (create output file or append to output, respectively). Use the same for HELP output: help for > for-help.txt. In your line parser, you would do something more like this:
    [code]
    :ParseLine
    @echo %1 >> outputfile.txt
    exit /b
    GoTo :Eof
    [end code]
    To exit a sub, use either exit /b or goto :eof. Exit will allow you to return a value or error code. Goto :eof simply goes to end of file and returns control to the caller (in our case the FOR command). Of course, you can type 'help exit' to learn more.
    Outside of a subroutine, exit will end the batch file script and return to command prompt. This can be useful when you call this batch file from another script, but if you are starting it from Windows you may want to keep the command prompt open to show user
    the results or simply tell them to look at the output file.
    You can find good samples on Rob Van Der Woude's website.
    http://www.robvanderwoude.com/batchstart.php
    A major geek...

Maybe you are looking for

  • How to let other users use my customization?

    Hello, I have a few nice dynamic pages with bind variables. I use the user PORTAL to customize my bind variables, but what I customize is not for other users, they see the result of the default bind variables. Surely there is a way to set the customi

  • Overview of Functionality ???: Crystal Reports Server 11.5 2004

    Is there a way to get Crystal Server to pull existing Users and Groups from AD so I donu2019t have to create them manually? In a typical implementation, how much security can be handled by AD and how much must be done in Crystal server. Must I create

  • Macbook pro Retina (early 2013) lid   keyboard loose

    Hey guys please see the two video links to just understand the problems i'm facing with my macbook after the second screen replacement. the first one is the loose keyboard + lid and the second one the display problem which has less brightness compare

  • IPOD is corrupt restore / reconnect, cannot be restored. Unknown Error 1418

    I am a new IPOD user as of Valentine's day when my wife bought me this new gadget. I purchased and downloaded a book from the internet the first time and things worked fine. Today I spent hours trying to reconnect and download some additional books a

  • Import ppt and output should be responsive and Scorm Compliant for Moodle

    I am working in  Adobe Captivate 8 for the first time. The input for my project is ppt delivered to me by the client and the requirement is to get the output that is both Responsive and also has Scorm functionality for moodle. Can you please suggest