Monitor real time sql statement.

Hii All,
I am working on win 7 machine using oracle 11gR2 with tool sql developer.
I am accessing database using VPN from some xyz location.
I want to monitor the sql statements like insert, update when somebody performs operation using front end.
I have done this before in case of oracle forms via toad's sql monitor.
But I can't use toad now, only sql developer.
So please let me know how i can do this.
Thank you.
Aamir

Hi,
Following query will give you currently running SQLs,
select sesion.sid,
sql_text
from v$sqltext sqltext, v$session sesion
where sesion.sql_hash_value = sqltext.hash_value
and sesion.sql_address = sqltext.address
and sesion.username is not null
order by sqltext.piece;
This should help you.
Thanks,
Sundaram.

Similar Messages

  • SQL Developer Stability - Real Time SQL Monitoring

    I always get excited when a new release of SQL Developer comes out with all kinds of new features then I am quickly disappointed by the instability.
    The 2.1 Real Time SQL Monitoring is a great example. It has such great promise but it is not stable, the refresh doesn't work, if you scroll it wipes out the display so I have to exit and re-enter. Is anyone having more success with this tool than me? Are there Java Settings I need to consider? I already learned that if running the query in question from SQL Developer it has to be in an unshared workspace or SQL Monitor won't come up.
    Prior to going to native OCI connectivity my Connections Schema Tree was also very flaky, I work with huge delivered PeopleSoft HR Schemas most of the time.

    The file associations thing means you don't have access to the registry to associate file types. Probably connected to the Vista security model. Try registering the filetypes for use by sqldeveloper through explorer.
    This other problems generally means you don't have write access to the sqldeveloper system directory.

  • SQL Query for real time resource stats

    Does anyone know what the query would be to duplicate the real time resource stats page in version 8 or above of UCCX?  I need to build a custom web page that displays the same information.  I've got all the connectivity to the database just fine and can query it and display information.  Just can't figure out what the SQL would be that would extract that information.

     Michael,
    you can try :
    SELECT x.resourceName, t.eventType, x.datetime FROM (SELECT t1.resourceID, t1.resourceName, MAX(t2.eventDateTime) AS datetime FROM Resource AS t1 INNER JOIN AgentStateDetail AS t2 ON t2.agentID = t1.resourceID GROUP BY t1.resourceID, t1.resourceName ) AS x INNER JOIN AgentStateDetail AS t ON t.agentID = x.resourceID AND t.eventDateTime = x.datetime ORDER BY x.resourceName
    You will need to translate the eventType into the "readable" status like Talking or Not Ready with an IF or Case statement.
    Regards,
    Jeroen

  • Reading Real Time Encoding Stats

    Hi,
    Does anyone know if it is possible to read the real time encoding stats that is outputted on the screen via command line? It would be nice to be able to display this info on the screen to the user in an app that we are running.
    Any help or suggestions would be appreciated.
    Thanks in advance

    To add to what tst said, since you are expecting two bytes to make a 16 bit number, you have to combine these two bytes to make the 16 bit number. Just wiring the byte array will produce 8 values of 8-bit numbers. You can use the join numbers function (Functions - Advanced - Data Manipulation - Join Numbers) to combine two bytes from the array into one 16-bit number. You would have to index the array to get bytes 1 and 2 to join, then bytes 3 and 4 to join, etc... Or you could use Type Cast on the incoming string to convert to an array of U16. See attached vi.
    - tbob
    Inventor of the WORM Global
    Attachments:
    StringToBytes.vi ‏41 KB

  • How to monitor worst performing sql statements

    Hi,
    I am new to oracle 9i release 2. I come from the Windows world, where we used sql server.
    When we performanced tested our product, we always monitor the worst performaning sql statement using the sql profiler. At the end of a 24 hour test, the profiler will list the sql statement with the longest execution time. What is the equivalent Oracle 9i tools that will allow me to monitor the worst performaning sql during a test that lasts between 10 to 24 hours?
    Thanks,
    Paul0al

    Besides statspack and OEM you have a few other options.
    If an SQL statement had been identified as performing poorly or a job that you can extract the SQL from then you have the option of explaining all the SQL statements and just reviewing the plans for reasonableness. You can also trace actual execution of the task or individual statemnts (alter session set sql_trace = true for basic 10046 event).
    When the SQL has not been identified in advance you can query the shared pool SQL areas for SQL statements that have relatively high physical, logical, or combined IO counts. Then you can perform tuning activities for these statements.
    HTH -- Mark D Powell --

  • Webview Real Time Agent State issue

    Hi
    We have UCCE 8.0(1) Environment, We have an issue in Webview like one single agent state is always TALKING even if he loggedout. We could see the Active-Skill-group is DEFAULT_5342. We tried that paticular extension unregister state still the same..
    We deleted that agent id in AW and still same. We checked for any event logs in CTI Server, there was no events, We have restarted the CTI Server, still the agent state showing as TALKING and the Duration is 360 hours. Does anyone have any suggestions
    Regards
    Senthil

    In order to recover from this, you'll likely need to cycle the PG for the site (both sides stopped at the same time & brought up clean, or via an opctest: exit_opc).
    To perform true root cause analysis, you'd likely need to enable some tracing on the PG & get logs from when the processes restart clean, all the way until you see this 'ghost agent'.
    TAC could help you with the trace settings but I'd think "opctest: debug /agent" would be a good start.
    Good luck.

  • Is Reference Monitor Real Time?

    I never questioned this before but is the reference monitor realtime?
    The behavior i get is....
    frames update when i scrub
    shows color changes
    freezes when i plat the SEQ
    It has always done that but I was wondering it it could play simultaneously with the SEQ. Its set to composite video now.

    Unfortunately, you cannot get live playback from both the Program and Reference Monitors simultaneously.  It's a design flaw, in my view, that greatly limits the usefulness of the Reference Monitor.  Please let Adobe know you'd like it corrected.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Capture all SQL statements and archive to file in real time

    Want to Capture all SQL statements and archive to file in real time?
    Oracle Session Manager is the tool just you need.
    Get it at http://www.wangz.net
    This tools monitor how connected sessions use database instance resources in real time. You can obtain an overview of session activity sorted by a statistic of your choosing. For any given session, you can then drill down for more detail. You can further customize the information you display by specifying manual or automatic data refresh, the rate of automatic refresh.
    In addition to these useful monitoring capabilities, OSM allows you to send LAN pop-up message to users of Oracle sessions.
    Features:
    --Capture all SQL statement text and archive to files in real time
    --Pinpoints problematic database sessions and displays detailed performance and resource consumption data.
    --Dynamically list sessions holding locks and other sessions who are waiting for.
    --Support to kill several selected sessions
    --Send LAN pop-up message to users of Oracle sessions
    --Gives hit/miss ratio for library cache,dictionary cache and buffer cache periodically,helps to tune memory
    --Export necessary data into file
    --Modify the dynamic system parameters on the fly
    --Syntax highlight for SQL statements
    --An overview of your current connected instance informaiton,such as Version, SGA,License,etc
    --Find out object according to File Id and Block Id
    Gudu Software
    http://www.wangz.net

    AnkitV wrote:
    Hi All
    I have 3 statements and I am writing some thing to a file using UTL_FILE.PUT_LINE after each statement is over. Each statement takes mentioned time to complete.
    I am opening file in append mode.
    statement1 (takes 2 mins)
    UTL_FILE.PUT_LINE
    statement2 (takes 5 mins)
    UTL_FILE.PUT_LINE
    statement3 (takes 10 mins)
    UTL_FILE.PUT_LINE
    I noticed that I am able to see contents written by UTL_FILE.PUT_LINE only after statement3 is over, not IMMEDIATELY after statement1 and statement2 are done ?
    Can anybody tell me if this is correct behavior or am I missing something here ?Calling procedure must terminate before data is actually written to the file.
    It is expected & correct behavior.

  • Monitor SQL in real-time?

    Greetings, everyone.
    I am new to SQL Developer and I am trying to find a way to monitor what SQL statements are executing in a real time fashion. Sorta like a SQL profiler. Thanks.

    Select Tools - Monitor Sessions from the menu and select a connection to run it against.
    You can specify a refresh interval by clicking on the drop down list next to Refresh in the toolbar.
    If you select a session, current information about that session is displayed in 1 of 6 tabs in the bottom half of the window. One of these is current SQL.
    You can also specify a refresh interval for the sub-report.
    If you want a view of all sql across sessions, try one of the Top SQL reports Under data dictionary reports, database administration, top sql.

  • What is the sql query for the real time reports Resource Stats?

    Does anyone know what the query is that the real time report tool uses for the Resource Stats page?  Trying to develop a custom report that displays similar information that is updated regularly.

    Hi,
    009 wrote:
    Hi Frank,
    Just wanted your opinion on the above given SQLI'm not sure I understand it.
    I added some more formatting to help me read it:
    SELECT      A
    ,     CASE WHEN LAG(A,1) OVER (ORDER BY A) IS NULL
              OR A=LAG(A,1) OVER (ORDER BY A)
              THEN LAG(B,1) OVER (ORDER BY A)
         END B_LAG
    ,     B
    FROM     (
         SELECT A, B
         FROM
              SELECT '1'A,'Apple' B FROM DUAL UNION ALL
              SELECT '1'A,'cat'B FROM DUAL UNION ALL
              SELECT '2'A,'bat'B FROM DUAL UNION ALL
              SELECT '3'A,'rat'B FROM DUAL UNION ALL
              SELECT '2'A,'yellow'B FROM DUAL UNION ALL
              SELECT '1'A,'pin'B FROM DUAL
         CONNECT BY PRIOR A=B
         ORDER BY A
    );What is the purpose of the CONNECT BY in what you have so far?
    Is the idea that you will add another CONNECT BY query, using
    CONNECT BY  b_lag  = PRIOR b?
    Do you think that will be better than using ROW_NUMBER?
    Will it work if (a, b) is not unique?

  • Sql statement monitor

    i am looking for sql statement monitor, similar to mssql's sql profiler.
    is there tool that allows the user to monitor all sql statements ran by a specific user or sql statements received by a certain schema?
    statement tracer for oracle doesn't work. i dont know why.
    in EM (10g), there is sessions > sql tab but it is not real time.
    i tried toad but i cant easily install it in the client. any other ways of doing it?
    any other solutions?
    Edited by: jdm811 on Jul 19, 2011 12:59 AM

    V$SESSION tells you about current sessions, whether they are active (STATUS), what they are executing (SQL_ID) and other metadata available about the session (MODULE, PROGRAM, MACHINE, TERMINAL, etc).
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2088.htm#REFRN30223
    ASH - Active Session History - contains samples of active sessions - like most dictionary views, etc the exact columns depends on version.
    As mentioned above, you need to be licensed for Diagnostic Pack for this.
    V$ACTIVE_SESSION_HISTORY is a buffer of active sessions sampled every second.
    The buffer is flushed to DBA_HIST_ACTIVE_SESS_HISTORY but by default only 1 in 10 sessions is retained in the repository.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/autostat.htm#i35568
    If you need more data and more detail than this then you should look at enabling AUDIT:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/security.htm#sthref2916

  • PL/SQL scripts to capture real time performance usage

    Looking for a PL/SQL script to gather real time accurate information on memory, CPU, I/O stats for users accessing tables in Oracle 10g database on Red Hat Linux.

    Google Search - DBA Scripts
    1) http://www.oracle-base.com/dba/DBACategories.php
    2) http://www.dbazine.com/oracle/or-articles/liu2
    3) http://www.pro-dba.com/oracle_scripts.html

  • Time of execution of SQL statement

    Hi,
    I executed some DML statements and Select statements as user SYS for user U1. How can I find the time of execution of these statements?
    Regards,
    Mathew

    You have a couple of options to time queries.
    SET TIMING ON has already been mentioned. I'll add that spooling the session to a file helps keep those timings for later reference.
    You can use DBMS_UTILITY.GET_TIME to get start and end times in microseconds for PL/SQL evaluation. DBMS_PROFILER will time lines of PL/SQL code as they execute. Trace/tkprof has also already been mentioned, although tkrpof times tend to vary a bit between reported and real times and don't take OS activity into account as much as the other timings do.

  • What is the real time use of implicit and explicit cursors in pl/sql

    what is the real time use of implicit and explicit cursors in pl/sql.............please tell me

    You can check the following link ->
    http://www.smart-soft.co.uk/Oracle/oracle-plsql-tutorial-part5.htm
    But, i've a question ->
    Are you student?
    Regards.
    Satyaki De.

  • Where can i check in the real time monitoring tool if there are active calls in progress?

    where can i check in the real time monitoring tool if there are active calls in progress? 

    Hi
    Selecting Call Manager -->Call Process ---> call activity
    HTH
    Regards
    Carlo

Maybe you are looking for

  • Looking for a Trade Show app

    Was at a trade show back in November 2010 and saw someone using the iPad to take down customer information and send their contact info, not having an iPad at the time i didn't think to ask what the app was called. I'm looking for an app that will all

  • What is the cause of Firefox seizing up and having to use task manager to close down

    When I use Firefox within 2 pages it seizes. When you try to click on anything I hear a ding with no response, even when you try to shut it down. You have to shut it down with Task manager. I have uninstalled it and reloaded but the same thing happen

  • Tags in JCAPS 5.1.3

    Hi everyone! I'm trying to understand the usage of the tag in JCAPS 5.1.3 I've tagged several components (a subproject) from a proyect and I want to know if a can: 1) export only the tagged components? 2) retrieve all the tagged components at the sam

  • Unwanted Query string appears in Apache access log file

    hi, i tried with the follwoing code to send the request for a servlet. uri = "/servlet/Participant"; res.sendRedirect(getScheme( req ) + req.getServerName() + (req.getServerPort() == 454 ? (":" + req.getServerPort()) : "") + uri); Here i am not appen

  • Adobe Flash Player 9 was previously installed with elevated permissions

    I have had to disable flash on our websites in order to make them useable. Looks like flash 9 was updated yesterday and now pops up a dialog asking to be reinstalled with admin privs. Considering no one on aprox 250 machines has admin privs, I am now