SQL TRACE FOR THIRD PART TOOL

Hi,
Should we use the Logon trigger for SQL TRACING,for the third party tool?
How should we manage SQL tracing and then read this trace file using
TKPROF for that specific session that is using the third party tool?
I wanted that whenever this third party tool connect to database with any user, the sql tracing will start for that specific seesion and then read the sqltrace for that session using TKPROF.
Any ideas/exmp will be great.
Regards
CLEE

Should we use the Logon trigger for SQL TRACING,for the third party tool?
Yes you can use like
CREATE OR REPLACE TRIGGER af_sess_Logon
After logon on database
Begin
if ( user='SCOTT') then
execute immediate 'alter session set sql_trace=true';
End if;
End;
sql tracing will start for that specific seesion and then read the sqltrace for that session using TKPROF.
for tkprof you can user command line
or use host in sql
kuljeet pal singh

Similar Messages

  • No insert Statements for EKKO EKPO in ST05 sql trace for transaction me21n

    No insert Statements for EKKO EKPO in ST05 sql trace for transaction me21n.
    IN ST05 I set a filter for ME21N and executed transaction to create a Purchase Order and then checked
    ST05 but there is  NO insert for EKKO or EKPO??
    How Do I find in which columns of EKKO and EKPO data is inserted in ST05?
    Edited by: DeepakNandikanti on Apr 28, 2010 8:27 AM

    Hi,
    I tried in my system and I can see INSERT statement on EKKO and EKPO tables. What exactly you are looking for? Some one else might have switched on the trace at the same time. Can you try again and see.
    ST05=>Switch on trace
    ME21N=>Create PO.
    ST05=>Switch off and display trace.
    In trace list search for EKKO and EKPO.
    Column names are not shown in the trace list. It is the SQL trace and column list is generated dynamically like :A0, :A1....
    @ Suhas,
    That might be because the tables are updated via BAPIs ... Do you think SAP uses direct update statements on the DB tables ??
    I didn't get above statement. Is there any other way of updation that happens when using BAPI? I believe that, even in case of BAPI there will be update task FMs called during database update. Please correct if i got it wrong.
    Thanks,
    Vinod.

  • SQL trace for Background jobs

    Hi
    Can anyone suggest how to find the SQL trace for background jobs.
    Thanks in advance.
    Regards
    D.Vadivukkarasi

    Hi
    Check the transaction ST05.
    Plz Reward Points if helpful

  • Automize SQL TRACE for a selected session

    Hi,
    Should I automize the process of SQL Tracing for a particular session of our choice?
    Let’s say when there are several sessions, and we want to select the particular session for SQL TRACING, then the SQL tracing for that session enable via running a routine.
    I used AFTER LOGON trigger for enabling SQL trace, but using this approach enable SQL TRACING all the sessions.
    My Logon Trigger for enabling SQL Tracing:
    create or replace trigger LOGON_SQL_TRACE
    after logon on database
    begin
    execute immediate
    'alter session set sql_trace=true';
    end;
    I want to use a perfect routine that first get the sid, serial# or username etc. from V$session, V$process or else, and then enable the SQL TRACING for the selected session.
    Like SYS.DBMS.SYSTEM.SET_SQL_TRACE_IN_SESSION package is available for doing that or may be some others as well.
    But how should we use these packages or other SQL tracing commands in a routine, which we can use for, enable SQL Tracing implicitly.
    Any ideas will be great.
    Bill

    SYS.DBMS.SYSTEM.SET_SQL_TRACE_IN_SESSION is just fine.
    You can get the SID and SERIAL# from v$session; you just have to know the username, osmachine, the OS process, ...
    Fred

  • SQL Trace for schema level

    Hi
    Database 10.1.0.4
    Sql trace file which I have used but didn't get the trace file. I have tried to get per session Id but not able to get the trace file, when ever user logged into application, virtually 6 user get lgged in and you never know about user. So I have desided to capture for schema
    I have used this for tracing
    SQL> ALTER SESSION SET sql_trace=TRUE;
    SQL> ALTER SESSION SET sql_trace=FALSE;
    Or
    SQL> EXEC DBMS_SESSION.set_sql_trace(sql_trace => TRUE);
    SQL> EXEC DBMS_SESSION.set_sql_trace(sql_trace => FALSE);
    or
    SQL> EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=>123, serial#=>1234, sql_trace=>TRUE);
    SQL> EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=>123, serial#=>1234, sql_trace=>FALSE);
    I want to get trace file for schema, can anyone suggest how do I get trace file at schema level.
    Thanks for help

    Hi,
    Using instance-level tracing by setting the init.ora/spfile... parameter SQL_TRACE=TRUE, all processes against the instance will create their own trace files. This particular method of tracing should be used with care since it creates a great deal of overhead against the system. In addition, the default value for this parameter is FALSE.
    Cheers
    Legatti

  • Third-part tool to draw rectangle on block diagram

    I know there was once a third-party tool that enabled me to draw a nice double-bordered rectangle on the block diagram.  Yes, that is the block diagram not the front panel.  It was very useful for making annotations and denoting functional groupings.  Does anyone know what that might be?  I have installed VI Package Manager and gone through everything I can think of without finding it.
    Unfortunately, the documentation for these potentially very useful add-ons is poor.  The "Get info" is terse to the point of useless and clicking on "Product Homepage" rarely gets you more than a logo, not informative.  Surely, there must be more details somewhere.
    Solved!
    Go to Solution.

    I don't know what tool you're referring to. What does this logo look like? Perhaps someone may recognize it.
    What's wrong with the flat frame?
    Attachments:
    flat frame.png ‏33 KB

  • SQL TRACE for WEB deployed report

    When I put
    Alter Session Set sql_trace=TRUE
    into the BEFORE Parameter Form trigger...
    I get a trace file showing data on the one SQL in that trigger.
    There is no TRACE output of the main query or any of the PL/SQL in the Program Units.
    The report is invoked from company-wide intra-net.
    I think it is Oracle Apps running in Linux server.
    What am I doing wrong?
    PS
    I cannot execute this report from Report Builder.

    Hello,
    Just a remark : if you are using Reports 9.0.4 / 10.1.2, you don't have to modify the reports , you can activate the SQL trace with the parameter SQLTRACE=YES
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/cmdline/common/cla_sqltrace.htm
    Regards

  • SQL Trace for ODS Scripts

    Hi,
    How can I turn on SQL Tracing for ODS Transfer scripts?
    Best regards,
    Johan

    Hi Johan,
    If SAP Note 1289112 is not the case, please clarify what "ODS Transfer" means.
    Regards,
    Sergiy

  • Third parties tools for MaxDB

    Hi forum,
    SQL Studio and Database Manager are great tools in most of cases. I would need better tools for managing datas and databases.
    My main aim would be a database upgrading tool. I mean a MaxDB complient tool to add/remove/update tables, stored proc, cursors and so on between an A and a B MaxDB database.
    Well a MaxDB database versionning tool.
    King regards

    Hello Vincent,
    1)  The Installation Manager for the MaxDB software is a graphical interface tool enabling
    you to install the entire MaxDB software package or individual software components and
    also create, upgrade and uninstall a database instance.
    Please see more information at
    "Using the Installation Manager" < SDBSETUP > at
    http://maxdb.sap.com/currentdoc/74/df234239f75733e10000000a155106/content.htm
    < And all MAXDB users could review the documentations to install the MAXDB
    at https://www.sdn.sap.com/irj/sdn/maxdb
    < -> "Installation on MS Windows and Linux" >
    <-> The Complete MaxDB Documentation Set -> Installation >>
    2)  You could use the dbmcli & sqlcli tools. Documentation available at
             http://maxdb.sap.com/currentdoc/default.htm ->
    "Database Manager CLI" &  SQLCLI     < Database tools >
    3) Please also review documentation on the database tools "Loader" & "Synchronization Manager"
        at http://maxdb.sap.com/currentdoc/default.htm ->Tools
        And Loader Tutorial shows examples for commands of the Loader tool for exporting and importing data.
    Thank you and best regards, Natalia Khlopina

  • Using Oracle BI Server as a Data Source for Third Party Tools

    I have been researching how to use the Oracle BI Server as a data source for two days now. I have not yet found a solution to my problem.
    We have a remote user who is pulling data from one of our Oracle databases using automated tools. This data base is essentially being replaced by Oracle Analytics. However, we do not want this user to get at the physical tables of Analytics, rather, we want the user to be able to connect to the Oracle BI Server itself, and issue Logical SQL to pull data.
    Here are the requirements which I need to be fulfilled:
    1) The ability for a remote user to connect to the BI Server as a data source.
    2) The remote user must be able to do this on a Unix box.
    3) The remote user must be able to automate the process of issuing SQL to the BI Server. (Command line interface is preferable)
    4) The solution needs to be easily implementable, that is, this solution will be implemented many times over.
    I found many articles explaining how to set up a Windows box to connect to the BI Server in this way. However, these articles outline how to use tools like Excel and Microsoft Query to pull data from the BI Server. Our current user is using SQLplus.
    If possible, I would like the user to continue using SQLplus as the tool for connecting to and retriving information from our BI Server. I have tested using SQLplus many different ways to no avail. I have also tried using other tools, such as Oracle SQL Developer.
    Is there a program out there that will fulfill the needs I have outlined above? Or, does someone know of a way to use SQLplus to connect to the Oracle BI Server as a data source? Or, is there a series of solutions which will fulfill the needs outlined above?
    Edited by: user11177366 on Jun 11, 2009 11:46 AM

    I agree it would be inefficient but only because you are using OBIEE for something it was not designed to do. You are basically asking for a "DB feed" and that should designed using PL/SQL, DB Links, Web Services or whatever is your entreprise standard to send data from one system to another. Using OBIEE for this seems a bad architecture decision to me.You are correct, the BI Server is not really intended to be queried like another Oracle Database remotely. However, the reason we are trying to do it this way is twofold:
    1) We want to enforce data level security.
    2) The BI Server has been fine tuned for high performance.
    Forcing the end users to go through the BI Server rather than directly to the physical tables or other sorts of systems built on top solves both of these issues.
    I think you are wrong. I don't see why SQLPlus should be able to query the BI Server. The BI Server can sit on top of many different DBs not just Oracle, even flat files etc. So you can't really expect the BI Server to able to translate all that into Oracle SQL output so you can query it using SQLPlus. The BI Server is not an Oracle RDBMS.You're right again. The BI Server isn't an Oracle RDBMS, and I have been wanting to treat it like one. From the data I have gathered SQLPlus can't query the BI Server.
    However, my research has led me to realize that the BI Server supports the JDBC API. Therefore, (I should have went down this route in the first place) one can use the JDBC driver provided by Oracle (bijdbc14.jar) to interface with the BI Server. There are many programs and applications out there that support the JDBC API and let us connect to BI Server the way we want to. Furthermore, these programs are mostly platform independent, as they are mostly written in Java.
    Lastly, from what I understand the NQCMD program can be installed on any platform as well (provided by Oracle). This is another option to connect to the BI Server as well.
    Thanks for your help and your comments as I went through this process of discovery.

  • Help in sql trace for vf03

    Hi,
      i was tracing the sql statments present in vf03 transaction for the invoice no.'s with accounting document over all status as not clear.
    i want to know the flow of the sql statements right from the user giving the invoice no. as input to the document flow window to know from where and how it is picking the accounting doucment over all processing status
    waiting for ur replies
    regards,
    maqsood

    Hi
    You should look at the code of std fm RV_ORDER_FLOW_INFORMATION, here you can see all selects the system does.
    Anyway the tables are VBFA (document flow), VBUK and VBUP. But you can't find that information here, because it's only in accounting not in sales.
    So perhaps the abap code you're looking for it's this:
    if vbrk-vbeln <> vbfa_tab-vbeln.
        perform vbrk_ermitteln using vbfa_tab-vbeln.
        check sy-subrc = 0.
        check xvbrk-rfbsk = 'C' or  xvbrk-rfbsk = 'J'.
        read table xdoc_num with key vbeln = vbfa_tab-vbeln
                            binary search.
        tabix_xdoc = sy-tabix.
        if sy-subrc = 0.
          check xdoc_num-not_found is initial.
        else.
          refresh xbkpf.
          call function 'FI_DOCUMENT_READ'
               exporting
                    i_awtyp     = 'VBRK'
                    i_awref     = vbfa_tab-vbeln
                    i_awsys     = vbrk-logsys
                    i_bukrs     = vbrk-bukrs
                    i_gjahr     = vbrk-gjahr
               tables
                    t_bkpf      = xbkpf
                    t_bseg      = xbseg
               exceptions
                    wrong_input = 1
                    not_found   = 2.
          describe table xbkpf lines sy-tabix.
          if sy-tabix ne 0.
    Delete documents from other fiscal year
            if sy-tabix > 1.
              CALL FUNCTION 'FI_PERIOD_DETERMINE'
                EXPORTING
                  i_budat        = vbrk-fkdat
                  i_bukrs        = vbrk-bukrs
                IMPORTING
                  e_gjahr        = da_gjahr
                  e_poper        = da_poper
                EXCEPTIONS
                  fiscal_year    = 1
                  period         = 2
                  period_version = 3
                  posting_period = 4
                  special_period = 5
                  version        = 6
                  posting_date   = 7
                  OTHERS         = 8.
              IF sy-subrc = 0.
                CONCATENATE da_gjahr da_poper INTO vbrk-gjahr.
              loop at xbkpf where gjahr ne vbrk-gjahr.
                delete xbkpf index sy-tabix.
              endloop.
              ENDIF.
            endif.
            loop at xbkpf.
              clear l_xdoc_num-status.
              move 'BKPF'      to l_xdoc_num-awtyp.
              move xbkpf-bukrs to l_xdoc_num-bukrs.
              move xbkpf-belnr to l_xdoc_num-docnr.
              move xbkpf-cpudt to l_xdoc_num-cpudt.
              move xbkpf-gjahr to l_xdoc_num-gjahr.
              l_xdoc_num-vbeln = vbfa_tab-vbeln.
              l_xdoc_num-logsys = vbrk-logsys.
              clear l_xdoc_num-not_found.
              loop at xbseg where bukrs eq xbkpf-bukrs
                            and   belnr eq xbkpf-belnr
                            and   gjahr eq xbkpf-gjahr
                            and   ( koart eq 'D' or koart eq 'K' ).
              endloop.
              if sy-subrc ne 0.
                l_xdoc_num-status = 'C'.
              else.
                loop at xbseg where not augbl is initial
                              and   ( koart eq 'D' or koart eq 'K' ).
                endloop.
                if not sy-subrc is initial.
      SET STATUS TO 'No items are cleared'
                  l_xdoc_num-status = 'A'.
                else.
                  loop at xbseg where augbl is initial
                                and   umskz ne 'A'
                                and   vorgn ne 'AZUM'
                                and   ( koart eq 'D' or koart eq 'K' ).
                  endloop.
                  if not sy-subrc is initial.
      Set status to 'All items are cleared'
                    l_xdoc_num-status = 'C'.
                  endif.
                endif.
    Otherwise: If there are customer/vendor positions where AUGBL is
    filled and some other ones where AUGBL is blank then set status
    to 'Partially cleared'
                if l_xdoc_num-status is initial.
                  l_xdoc_num-status = 'B'.
                endif.
              endif.
              append l_xdoc_num.
            endloop.
            insert lines of l_xdoc_num into xdoc_num index tabix_xdoc.
    This is extracted from include LV05CF01
    Max

  • UCCX SQL access for third party application

    We have a requirement from customer to allow read access to UCCX database. This account would be used to query the UCCX database and it will use as a service account for another system.
    Please let me know how create DB account on UCCX.
    UCCX version:7.1
    UCCX database: MSDE

    Here you go:
    Open the command line on your UCCX server and do the following:
    List the available sql instances you can connect to (and their syntax)
    osql -L
    From that list you should see one that looks like:
    SERVERNAME\CRSSQL
    Connect to MSDE using your Windows local admin account (has admin rights in SQL)
    osql -E -S SERVERNAME\CRSSQL
    List the current logins in SQL
    exec sp_helplogins
    go
    Create a user account and grant access to db_cra database:
    use db_cra
    go
    exec sp_addlogin 'username','password'
    go
    exec sp_grantdbaccess 'username'
    go
    exec sp_addrolemember 'db_wallboard_read','username'
    go
    * Sorry, I don't have a 7x system anymore and cannot tell you what the role name is for admin rights.  You could issue the following to get a list of other roles:
    exec sp_helprole
    go
    Enabling Mixed Mode
    Stop the Node Manager
    Open Regedit and navigate to:
    HKLM\Software\Microsoft\Microsoft SQL Server\CRSSQL\MSSQLServer\
    Change LoginMode from 1 to 2
    Start the Node Manager
    *Remember to fix all HRC clients to support mixed mode (this is a manual task).  See here for help on that: https://supportforums.cisco.com/message/3116762

  • Sql trace for forms sessions

    Q1.How can you trace the session of forms?

    c:\ifrun60 module=<formname> userid=scott/tiger
    statistics=yes
    This will do a alter session set sql_trace=true in the background.

  • Third party tool for document preview in sharepoint 2013

    Hello,
    we are looking for third party tool which provide preview of any documents in documnet library in sharepoint 2013. So when users just hover over the document, they can see the preview. Do
    any of you please provide a good suggetion in case if you have used in the past? In my research I came across
    Knowledgelake and harepoint. Also I think there is one Metalogix but I know for sure it a way too costly. So please help if you know who does this job with a fair amount of price.
    Thanks.

    I've found Ontolica Preview to be adequate for this. Reasonable product and supports a lot of formats
    http://www.sharepointreviews.com/component/content/article/69-sharepoint-auditing/202-Ontolica-BehaviorTracking-for-SPS-2003-.pdf
    Might also be worth spending some time on SharePointreviews.com for other suggestions
    http://www.sharepointreviews.com/
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Reg : SQL Trace and ECAT

    Hi Floks ,
    Any body knowing The SQL trace analysis and Ecat tool .send me how to work on this issues .Please send me with snap shot it's will help to who don't know how to utilize this tools.
    thanks,
    suresh

    Hi suresh,
    Check these links.
    SQL trace
    http://www.sapdevelopment.co.uk/perform/perform_sqltrace.htm
    Go to st05 and activate trace, go back and run your transaction or report again go to st05 deactivate trace and click display trace here you can find information with this you can performence analysis, database tables, fields etc.
    ECAT
    eCATT stands for extended Computer Aided Test Tool (eCATT) which is built is testing tool to test SAP system. By using testing tool we can test the entire business process, and we can also use this tool with a third party testing tool (I am not covering this topic). Execution of every test script ends with a log, which explains the results of the test script.
    By using eCATT we can do following operations,
    ·        Test transactions, reports, and scenarios
    ·        Call BAPIs and function modules
    ·        Test remote systems
    ·        Check authorizations (user profiles)
    ·        Test updates (database, applications, GUI)
    ·        Test the effect of changes to customizing settings
    ·        Check system messages
      For more information go to
    http://help.sap.com/saphelp_erp2004/helpdata/en/2a/121e3bd711bb04e10000000a114084/frameset.htm
    To develop a test script in eCATT we need to follow the following steps,
    1. Creating Test Scripts.
    2. Creating Test Data Containers[16] .
    3. Understanding System Data Containers[17] .
    4. Executing Test Configurations.
    There is a very good web blog on eCATT in sdn.com which explains eCATT with necessary screen shots.
    To read document click here Blog on eCATT
    http://www.sapdevelopment.co.uk/testing/ecatt.htm

Maybe you are looking for

  • Bit of a weird one!

    A strange problem just started happening yesterday & continues randomly. Every now & then the sides of my Desktop reduce by 8mm on the L & 4mm on the R. Whereas the desktop should cover the entire screen it is now pure black on the L & R sides. Howev

  • Installing CS4 student edition onto a new macbook pro

    I have just bought a macbook pro (which doesn't have a disc drive) and am wanting to install my student edition of CS4 onto it. As advised by adobe I have copied the installation CDs onto a USB and have then copied them onto my new macbook to try and

  • Not saving Sent or Draft emails

    Help, I'm using 2 IMAP email acount in mail and it won't save any of my sent messages or drafts, even though I have the setting set to store them under the mailbox behaviors. Am I missing something? These are two new mail accounts I've set up, you'll

  • SD card for TX

    I purchased an SD card for my Palm TX.  It's a 4 GB SDHC card by SanDisk.  I have inserted the card and tried to download pictures from my computer into my Palm however it says that there is no SD card.  I tried to download the sample pictures onto t

  • Getting last date of the previous  month

    Hi    Am giving one date. FOr that day i hav to take previous month last date. How can i do. IMportant : Last date of previous month