How to generate the trace files for remote db link session's?

User are complaining, the db link queries are performing slowness..
how to enable the sql trace session for db link's in remote database...
Is there any way to enable sqltrace for the dblink session ?
if not how to enable the sql trace for entire database level, rather than session based...

An explain plan of the SQL being ran on the local database will review the SQL being passed to the remote db. You can then explain that SQL on the remote db.
I have had to tune a few distribued queries so more than likely the explain plan alone will be enough to allow you to tune the query to improve performance. If not then you can go to the trouble of trying to set up dual traces.
HTH -- Mark D Powell --

Similar Messages

  • How to generate the ATR files for reports with out manually?

    Hi all,
    how to create the ATR files for reports in OBIEE 11g with out manually?
    is there any other method to create the ATR files by using the OBIEE Server?
    please provide me the solution for this?
    we are creating manually for each and every report, it is time taken process how can we generate ATR files automatically
    by using the OBIEE Server?
    Thanks,

    Hi,
    I am afraid not.ATR are attributes files contains the object's full name, access controllist (ACL), description, and so on.Each catalog object has a corresponding attributes file, I am not sure why do you have to generate the atr files.In case you need info about atr files: http://businessdecisionsystems.com/blog/?p=7
    If you have huge number of similar reports(with filter variations and same kind of layout), try to play around with the xml to minimize the development effort.
    Rgds,
    Dpka
    Edited by: Dpka on Oct 4, 2011 12:00 AM

  • How to Generate a Java file for a JSP Page

    Hi ,
    I am using weblogic11 .
    I am working on a JSP page which nearly consists of 4000 lines of code.
    I need to debug the file , but weblogic server is not generating the java file for the JSP pages .
    Please let me know how can i genertae Java file for the jsp pages ??

    JSPs are compiled into servlets automatically and those classes are stored in WEB-INF/classes folder. Servlet engine handles servlets.

  • How to create the log file in remote system using log4j.

    Hi,
    How to create the log file in remote system using log4j. please give me a sample code or related links.The below example i used for create the log file in remote system but it return the below exception.Is there any authandication parameter for accessing the remote path? Please help.
    public class Logging
    Logger log=null;
    FileAppender fileapp=null;
    public Logging(String classname)
    try
    log = Logger.getLogger(classname);
    String path=" [\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt|file://\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt]";
    fileapp = new FileAppender(new PatternLayout("%r [%t] %-5p %c %x - %m%n"),path, true);
    log.addAppender(fileapp);
    log.info("Logger initilized");
    }catch(Exception ex)
    ex.printStackTrace();
    java.io.FileNotFoundException: \\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt (The network path was not found)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    at org.apache.log4j.FileAppender.<init>(FileAppender.java:109)
    at annwyn.logger.BioCapLogger.<init>(Logging.java:23)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Please help.
    Thanks in advance.
    Saravanan.K

    Sorry path is missing for the above request.
    path="\\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt ";
    please help.
    Saravanan.K

  • How to generate an XML file for an animation of IK armature

    Can someone please tell me how to generate an XML file for an animation of IK armature.
    I have a 5 keyframe/16 frame animation of a human character made up of a series of moveiclip symbols that is animated with an IK armature.  I need the XML information from the animation. 
    When I go to Commands > Export Motion XML I get the error message "There is more than one object on frame 1" and then nothing happens.
    Thank you,
    c

    I hope that's not the case.  I want to write to adobe about it.  I think it's a great feature and it functions really well even though it is not a very developed IK tool.  My biggest issue with it is ouput options and integration with motion tweens.
    I have seen a lot of examples of animators using it online, just no one talked about output.  I just feel it hasn't been developed.  It can generate a sprite sheet but only for a single pose frame of the animation, and not all the key frames or pose tweens.  I find that functionality quite odd, as if adobe just forgot about IK when added in sprite sheets, etc. and the reason it half works is just an accident.

  • How To Generate Debug Log Files for ebs jsp?

    hi   How To Generate Debug Log Files for ebs r12 jsp?
    and where i get the log .please help me thanks!

    Please check following MOS Document
    Oracle Application Server Diagnostic Tools and Log Files in Applications Release 12 (Doc ID 454178.1)

  • Dbms_monitor.session_trace_enable does not generate the trace file

    hi All,
    i'm trying the example from Tom Kyte's <<expert oracle database architecture>>, after runnning the java code using dbms_monitor.session_trace_enable, the trace file for the session can't be found in user_dump_dest, could anyone help explain. oracle version is 10.2.0.1.0 on RHEL 5. thanks.
    [oracle@CS-RHEL chapter09]$ cat perftest.java
    import java.sql.*;
    import oracle.jdbc.OracleDriver;
    import java.util.Date;
    public class perftest
      public static void main (String arr[]) throws Exception
        DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
        Connection con = DriverManager.getConnection
              ("jdbc:oracle:thin:@127.0.0.1:1522:cs10g",
                "sid", "sid");
        Integer iters = new Integer(arr[0]);
        Integer commitCnt = new Integer(arr[1]);
        con.setAutoCommit(false);
        doInserts( con, 1, 1 );
        Statement stmt = con.createStatement ();
        stmt.execute
        ( "begin dbms_monitor.session_trace_enable(waits=>TRUE); end;" );
        doInserts( con, iters.intValue(), commitCnt.intValue() );
        doInserts( con, iters.intValue(), iters.intValue() );
        con.commit();
        con.close();
      static void doInserts(Connection con, int count, int commitCount )
      throws Exception
        PreparedStatement ps =
           con.prepareStatement
           ("insert into test " +
            "(id, code, descr, insert_user, insert_date)"
            + " values (?,?,?, user, sysdate)");
        PreparedStatement commit =
           con.prepareStatement
           ("begin /* commit size = " + commitCount + " */ commit; end;" );
        int  rowcnt = 0;
        int  committed = 0;
        long start = new Date().getTime();
        for (int i = 0; i < count; i++ )
          ps.setInt(1,i);
          ps.setString(2,"PS - code" + i);
          ps.setString(3,"PS - desc" + i);
          ps.executeUpdate();
          rowcnt++;
          if ( rowcnt == commitCount )
            commit.executeUpdate();
            rowcnt = 0;
            committed++;
        con.commit();
        long end = new Date().getTime();
        System.out.println
        ("pstatement " + count + " times in " +
         (end - start) + " milli seconds committed = "+committed);
    }run the java class
    [oracle@CS-RHEL chapter09]$ java -cp .:./ojdbc14.jar perftest 1000 1
    pstatement 1 times in 5 milli seconds committed = 1
    pstatement 1000 times in 2255 milli seconds committed = 1000
    pstatement 1000 times in 509 milli seconds committed = 1

    hi virendra.k and Kecskemethy,
    thanks for your help. believe i find the arnswer.
    1. i used shared server connection. i can find the trace info in the backgroup_dump_dest, in the files: cs10g_s000_17467.trc and cs10g_s001_17469.trc
    Ref:http://www.dbspecialists.com/files/presentations/tracing_ind_sessions.html
    First, rather than using DBMS_MONITOR.CLIENT_ID_TRACE_ENABLE, we use DBMS_MONITOR.SESSION_TRACE_ENABLE. This can be run either by the session itself,
    or by another session (specifying the SID of the session to be traced). The tracing output will be in the instance’s background_dump_dest directory,
    rather than the user_dump_dest. And then you use trcsess with the session_id option, where session ID is actually the SID.SERIAL# of the session
    (from v$session). Again you get a consolidated trace file containing just the activity of the desired session.2. after change to dedicated server, the trace file is generated in user_dump_dest now.
    sid@CS10G> show parameter trace_enable
    NAME                                 TYPE        VALUE
    trace_enabled                        boolean     TRUE
    sid@CS10G> show parameter shared_servers
    NAME                                 TYPE        VALUE
    max_shared_servers                   integer
    shared_servers                       integer     10
    sid@CS10G> alter system set shared_servers=0
      2  ;
    System altered.
    [oracle@CS-RHEL udump]$ pwd
    /home/u02/app/oracle/product/11.1.0/db_1/admin/cs10g/udump
    [oracle@CS-RHEL udump]$ tail -25 cs10g_ora_22313.trc
    WAIT #8: nam='SQL*Net message to client' ela= 2 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901405248
    WAIT #8: nam='SQL*Net message from client' ela= 151 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901405433
    =====================
    PARSING IN CURSOR #9 len=43 dep=0 uid=61 oct=47 lid=61 tim=1220152901405586 hv=1042574845 ad='3ace843c'
    begin /* commit size = 1000 */ commit; end;
    END OF STMT
    PARSE #9:c=0,e=99,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=1220152901405582
    =====================
    PARSING IN CURSOR #10 len=6 dep=1 uid=61 oct=44 lid=61 tim=1220152901405781 hv=255718823 ad='0'
    COMMIT
    END OF STMT
    PARSE #10:c=0,e=13,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=0,tim=1220152901405776
    XCTEND rlbk=0, rd_only=0
    EXEC #10:c=0,e=146,p=0,cr=0,cu=1,mis=0,r=0,dep=1,og=0,tim=1220152901406000
    EXEC #9:c=999,e=396,p=0,cr=0,cu=1,mis=0,r=1,dep=0,og=1,tim=1220152901406082
    WAIT #9: nam='log file sync' ela= 3234 buffer#=5459 p2=0 p3=0 obj#=-1 tim=1220152901409385
    WAIT #9: nam='SQL*Net message to client' ela= 2 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901409450
    WAIT #9: nam='SQL*Net message from client' ela= 142 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901409633
    XCTEND rlbk=0, rd_only=1
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901409735
    WAIT #0: nam='SQL*Net message from client' ela= 283 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901410043
    XCTEND rlbk=0, rd_only=1
    WAIT #0: nam='SQL*Net message to client' ela= 2 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901410146
    WAIT #0: nam='SQL*Net message from client' ela= 316 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901410489
    XCTEND rlbk=0, rd_only=1

  • How to create the exe file for java project.

    How to create the exe file for java project.
    am done the project in java swing , i like to create the project in exe format, so any one help for me,
    send the procedure for that.
    thanking u.

    How to create the exe file for java project.Have you ever heard of google? I pasted your exact "question" into a google search:
    http://www.google.com/search?q=How+to+create+the+exe+file+for+java+project.
    and got several useful links.
    Better search terms might yield even better results.
    Sheesh.

  • How to create the exe files for java application

    How to create the exe file for java application?
    got any software to do that?
    Thanks

    In terms of converting java applications into exe files, there are 3 schools of thought:
    1) Instead of converting it to an exe, convert it to a jar file. Jar files are more portable than exe files because they can be double-clicked on any operating system. The caveat is that a Java interpreter must be installed on the target computer for the double-clicking to work.
    http://developer.java.sun.com/developer/Books/javaprogramming/JAR/
    2) Create an exe launcher that, when double-clicked, attempts to find a Java interpreter on the local computer and launches the Java application. The exe file is still double-clickable but whether your java application runs depends on whether a Java interpretor is installed on the target computer.
    http://www.sureshotsoftware.com/exej/
    http://www.objects.com.au/products/jstart/index.jsp
    http://www.duckware.com/products/javatools.html
    http://www.ucware.com/jexec/
    http://www.rolemaker.dk/nonRoleMaker/javalauncher/
    http://www.jelude.cjb.net/
    http://thor.prohosting.com/~dfolly/java/index.html
    3) Create an exe launcher that bundles a Java interpretor. Same as above but when the exe file is double-clicked, it searches for a Java interpreter and if one is not found, it installs one on the target computer. The caveat is that the exe file would have an overhead of 10 MB in size for the interpreter.
    http://www.excelsior-usa.com/jet.html (evaluation version available)
    4) Convert the Java application into a native exe file. The caveat is that if you use Swing for your GUI, it won't be converted. Also this option is still somewhat experimental.
    Can't think of any free options right now.

  • How to get the trace file name for current running application?

    Hi, I want to know if it is possible to get the file name directly for current running application instance which is launched by javaws.
    There is a property "deployment.user.logdir" tells the log directory, it would be great if a file name property
    is available. something like "instance.trace.file".
    Our application wants it because we would like our client send use the application log by clicking a "send error"
    button, the codes finds the trace file and compress it and send it by using a smtp server.
    In 1.5, we can do it by using a shell program.

    I found other asked it before, but I tried to set both properties, but neither works. my sun JRE version :java version "1.6.0_04"
    <property
    name="deployment.javaws.traceFileName"
    value="abcfefsfdsf"/>
    <property
    name="deployment.javapi.trace.filename"
    value="235235235"/>
    But it always write to one trace file with name lik javaws63645.trace

  • How to stop the generating the trace file

    Hi Gurus,
    My client requirement is stop the trace file generation in our database.
    How can I achieve this ?
    what are the impact of the database , if I do the same in our database.
    Thanks,
    Tippu

    Does this database have a four-digit version?
    And which trace file. In some cases you won't be able to stop it, and/or you'd better institute maintenance routines to purge them regularly, or you will loose diagnostic info.
    Sybrand Bakker
    Senior Oracle DBA

  • How to use forms trace file for performance tuning

    I am trying to use forms trace file in order to find cause of forms application performance problem.
    I have read the document B14032-03 where is described how to turn on tracing and how to convert binary trace file to xml or html format. However these xml/html files are useless because they only contain series of forms events, without possibility for grouping or sorting. Actually, they are like to database raw trace file. I need some tool, like tkprof for database trace, that will process xml/html file and generate some more useful format.
    Further, I have tried to load forms trace file into relational database tables in order to use SQL for performance problem investigation. I have followed procedure described in document A92175-01, but without success.
    Is there any way to process xml/html file with grouping, orderering or summing event duration or way to load either binary, xml or html trace file into structured data in database.

    Al-Salamu Alikum user630033
    It's not : elegant at all to thank people 4 No help,it's not their problem that u don't search enough, or u don't have access to db.
    We should always say thank ,or 'Jazak Allah Khiern' on both cases even they could or couldn't help u.
    Finally,i expect ' an appologize or even a thankful word ' and the kindness i am sure u had to publish the solution u found in order to share it with people who had same problem or at least to give them the info to get the appreciation or the thanksful word u deserve.
    Rem.Never give a bad feedback to people who tried to help u.
    Regards,
    Abdetu..

  • I am not able to see the trace files for SQL query

    Hello, I am using windows vista OS.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    SQL>
    I enabled the trace as below
    alter system set timed_statistics=TRUE
    alter system set sql_trace=TRUE
    After this, I ran sql query from scott as below.
    select count(*) from emp;
    After this, i checked in user dump directory. The trace files are generating... But this sql code is not appearing in the trace files...
    Am i missing anything... Any help is appreciated.
    Thanks

    This may happen when the trace file is not completely closed.You may try again doing like this,
    alter session set sql_trace=true;
    select * from emp;
    alter session set sql_trace=false;After this,disconnect and exit from your session as well. This should close the file completely and you should be able to see your command in it.
    HTH
    Aman....

  • How to get the .class file for the extended Controller .java file

    Hi,
    I did the below steps.
    1. Created New OAWorkspace
    2. Created New project
    3. Imported the page .xml file
    4. Added new .java file by extending the controller class
    5. Added code in the .java file.
    6. Ran the .xml file
    As I copied all the folders from Unix box, the page was opened.
    But My question was where can I see the .class file the extended controller. It's a .java file. How to compile and get the .class file for this .java file. If I get this .class file, I can go to the page and click the personlize page. and change the Controller name to the new path by ftp ing the new class to the cust.oracle.apps.pos.changeorder.webiui.
    Please let me know how to create the .class file.
    Thanks,
    HP

    All are Java files are stored in JDEV_INSTALL_DIR:\jdevhome\jdev\myprojects\
    In your case the path java would be
    JDEV_INSTALL_DIR:\jdevhome\jdev\ myprojects \cust\oracle\apps\pos\changeorder\webui\
    AND
    Once you compile the java file in Jdeveloper, Class files get generated @ below path
    In your case the path of class would be
    JDEV_INSTALL_DIR:\jdevhome\jdev\ myclasses \cust\oracle\apps\pos\changeorder\webui\
    Duplicate Thread-
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • How to setup the dad file for SSO.

    Hi
    We need to setup the dad file for SSO. Can any one help us to setup the dad file.
    Thanks,
    Arvind Goel

    Hi
    It seems that SSO is for AppEx Application Authentication only. You can't specify which Database User your application will connect to the database with if you are authenticating using SSO.
    I came up against this in the following thread.
    Re: How can an AppEX Application work with DB users referenced in DB Trigge
    G.

Maybe you are looking for

  • Screen validations

    Hi Experts, How can i do the screen validations with Ranges. The below is the Description in the Func. Specs. Posting date-FAGLFLEXA-BUDAT-Range with F4 help on date. Single Multiple values should also work G/L Account-FAGLFLEXA-RACCT-Range with F4 h

  • Home Screen Wallpaper

    Is it possible to use the feature for customized home screen wallpaper? My daughter has iPhone 3GS and it works for her, I have 3G and can't seem to use that feature after updating to OS 4.0.2. Am I doing something wrong or is that feature not availa

  • JDBC on AS/400 library-problem

    Hi, does anyone know how I can access libraries on a AS/400 that are not in the userprofile? I've created a JDBC connection here and I can't access some libs with some userprofiles, but only those which are in the default library-list for the user. B

  • Flash panels crashing Photoshop CS4

    Flash panels crash Photoshop CS4 under the following conditions: 1. The "Auto-Collapse Iconic Panels" option is activated under Edit > Preferences > Interface. 2. The flash panel is collapsed to an icon. 3. You click on the panel icon to display it a

  • Stor.E TV+ file copy problems

    I have a Stor.E TV+ 2 tb and I have had problems copying files using the on-board system and copying from a USB stick or external HDD. Some file show as invalid. I have discovered that this does not happen or at least happens less if I connect via US