Contents of v$SQLArea.

Hi,
I am looking for a Application that would continously show the contents of v$SQLArea.
We need to have a View on what´s going on in the
Database.
We think a Window that shows the contents running through is OK with a Method to stop and look at the Details and scroll through within a defined
Buffer size.
Also safe the contents of the Buffer for later Analysis.
Could someone give the suggestion that how should I do that?
Regards
Jumma

if you use database rws package to shout out oracle report for monitering based on table trigger or cron job per time interval, that may be doable.
report may report the content below:
select username, machine, FIRST_LOAD_TIME,a.sql_text,
sharable_mem,persistent_mem,runtime_mem,executions
from v$sqlarea a, v$session s, v$open_cursor c
where c.SADDR=s.saddr
and a.ADDRESS = c.ADDRESS
order by 1,2

Similar Messages

  • TIMER in FORMS 6i in order to show the contents of v$ view....

    Hi,
    I am looking for a solution that would continously show the contents of v$SQLArea on forms 6i.
    Should I use timer in forms 6i in order to get the desired results.
    COULD someone please send me the little example of my query? how should I do that?
    THANKS
    JUMMA

    See this thread -> https://discussions.apple.com/thread/5666364

  • How to find sql causing "enq: TX - row lock contention"

    Hi,
    In one of our database we keep finding "enq: TX - row lock contention" for 2-3 days. But, then it stopped. The time it happened it blocked other sessions for some long time and it got resolved automatically. Now from ADDM report we got sql queries which waited for this but, we can not find which query from which module was causing the issue. What I should look for that past information. Please help.
    Database is 10gR2 on AIX.
    Regards,
    Gourab

    moreajays wrote:
    Try executing below query real time
    alter session set nls_date_format='dd-mon-yyyy hh24:mi:ss';
    SELECT  vp.spid,c.inst_id,b.session_id sid,c.serial#,a.object_name,
    a.owner object_owner,
    Decode(b.locked_mode, 0, 'None',
    1, 'Null (NULL)',
    2, 'Row-S (SS)',
    3, 'Row-X (SX)',
    4, 'Share (S)',
    5, 'S/Row-X (SSX)',
    6, 'Exclusive (X)',
    b.locked_mode) locked_mode,
    b.oracle_username,
    c.program,
    d.event,
    c.status,
    c.last_call_et,
    c.sql_address,
    e.sql_text, c.logon_time
    FROM   all_objects a,
    gv$locked_object b,
    gv$session c,
    gv$session_wait d,
    gv$sqlarea e,
    gv$process vp
    WHERE  a.object_id = b.object_id
    and b.session_id=c.sid
    and c.sid=d.sid and c.paddr=vp.addr
    and e.address=c.sql_address and lower(d.event) like '%enq%'
    ORDER BY 1;
    The OP asked for a way of find a historic blocker, not a current blocker.
    This query - apart from being one that no-one should want to run on a production system - doesn't say anything about the past, and doesn't identify a blocker.
    It reports the sessions that are being blocked, and EVERY table that is currently locked by each session whether or not the table is involved in the current statement.
    You're using the gv$ (RAC) views but haven't put in any suitable join predicates on the instance (inst_id) columns; the OP is on 10g so you don't need to join to v$session_wait to pick up the wait information; and the join to v$sqlarea forces a "full tablescan" of the library cache (child cursor derived view) because you're joining on address rather than sql_id.
    Regards
    Jonathan Lewis

  • V$session and v$sqlarea is interpreting in different way

    I am using redhad linux 5 version. The db version is oracle11g.
    I am trying to run the below shell script on the linux box
    export ORACLE_SID=chf01
    export ORACLE_HOME=/ora/app/oracle/product/11.1.0/db_1
    export WORKDIR=/ora/app/oracle/admin/chf01/scripts
    cd $WORKDIR
    $ORACLE_HOME/bin/sqlplus scott/tiger@ch01 << EOF
    spool sqlcapture.log
    INSERT INTO scott.T_SQL_CAPTURE
    SELECT MACHINE,
    SQL_FULLTEXT
    FROM
    v$session a,
    v$sqlarea b
    where
    ((a.sql_address = b.address
    and a.sql_hash_value = b.hash_value )
    or ( a.prev_sql_addr = b.address
    and a.prev_hash_value = b.hash_value))
    commit;
    spool off
    exit
    EOF
    ERROR=`grep 'ORA-' sqlcapture.log | wc -l`
    if [ "$ERROR" -gt 0 ]
    then
    cat sqlcapture.log|mailx -s "sqlcapture is failed" \ [email protected]
    else
    cat sqlcapture.log|mailx -s "sqlcapture is successful" \ [email protected]
    fi
    exit
    here is the spool file content. v$session is interpreted as v a and v$sqlarea is interpreted as v b.
    How can i fix this?
    SQL> INSERT INTO scott.T_SQL_CAPTURE
    2 SELECT MACHINE,
    3 SQL_FULLTEXT
    4 FROM
    5 v a,
    6 v b
    7 where
    8 ((a.sql_address = b.address
    9 and a.sql_hash_value = b.hash_value ) 10 or ( a.prev_sql_addr = b.address
    11 and a.prev_hash_value = b.hash_value))
    13 ;
    v b
    ERROR at line 6:
    ORA-00942: table or view does not exist
    SQL> commit;
    Commit complete.
    SQL> spool off

    Because *$* is interpreted by Linux shell. So you need to escape it. I used to escape all $ with \$ but someone in another thread posted a lovely trick. Use this:
    $ORACLE_HOME/bin/sqlplus scott/tiger@ch01 << \EOF
    .

  • Sql statements in v$sqlarea

    Hi
    When I get the sqls from v$sqlarea, does these sqls already executed, or currently runnıng?

    I suggest you check the Oracle Document,
    While showing similar content, you might also note there are difference between V$SQLAREA and V$SQL view
    V$SQL
    V$SQL lists statistics on shared SQL area without the GROUP BY clause and contains one row for each child of the original SQL text entered. Statistics displayed in V$SQL are normally updated at the end of query execution. However, for long running queries, they are updated every 5 seconds. This makes it easy to see the impact of long running SQL statements while they are still in progress.
    V$SQLAREA
    V$SQLAREA lists statistics on shared SQL area and contains one row per SQL string. It provides statistics on SQL statements that are in memory, parsed, and ready for execution.

  • [NEWBIE] How to view contents of a view

    I have to check the content of the v$sql_text view or rather SQL_TEXT column of v$sql or v$sqlarea view to see which SQL statements are executed but, how can I view the contents of a view?
    Aqua Data Studio 4.7.2 that I use is ok for viewing the data of a table but I cannot seem to find a way to display the contents of a view :-C

    A View is a stored query. You store a query by name in the database and then query against it.
    SQL> Create table dept( dno number, dname varchar2(30));
    SQL> insert into dept values ( 10, 'Finance');
    SQL> insert into dept values ( 20, 'Sales');
    SQL> insert into dept values ( 30, 'HR');
    SQL> Commit;
    Now create a view on dept table, and restrict the view to query only dept no. 30:
    SQL> Create or replace view dept_30 as select * from dept where dno =30;
    Now, run a query against this view, like below:
    SQL> select * from dept_30;
    To see what is the underlying query on which the veiw is built, query "USER_VEIWS"
    SQL> set long 50000
    SQL> select text from USER_VIEWS;
    Regards

  • Performance issue - contention

    I am having to performance test an application written in HTMLDB. I am using software that emulates use by a number of users concurrently. Performance is fine on the application until it reaches a certain number of users and then it degardes catestrophically.
    Inspecting the database when this happens, I find that after about 50 users, wait time which had previously been a small proportion of each connection becomes over 80%.
    Closer inspection reveals excessive contention caused by latches on the shared pool. Inspection of the SQLAREA contains a large number of items which to all intents and purposes seem identical. Bind variables are being used, but the statements do not seem to be recognised. Has any body got any suggestions?
    I am after a steady degradation in performance with loading rather than a catestrophic collapse.

    user482142,
    Can you show examples of statements that seem identical but result in re-parsing?
    Sergio

  • Logical Level in Content Tab

    Hi,
    What is the use of Logical Level under Content Tab in Logical Table Source?
    Need more information, docs related to this
    Thanks,
    Satheesh

    Hi
    This logical level is useful for level bases metrics.It shows the levels in your hierarchy.We can give the level in this and in the report it shows the data for that level only.
    See this lnk, http://gerardnico.com/wiki/dat/obiee/measure_level_based
    Thanks
    Don

  • Can not refresh contents of finder windows

    I can not get my finder windows to refresh their contents. My picture folder is the one that really bothers me. When I am trying to upload pictures to the internet, the picture folder is never accurate. I have tried the refresh finder apple script, restarting the computer, opening and closing the window, nothing seems to work.
    The content is there, when I search for a specific picture file it is there, but it is not located in the right subfolder. I download and manage my pictures on kodak easyshare.

    Hi there,
    The content is there, when I search for a specific picture file it is there, but it is not located in the right subfolder.
    Hmmm, are you saying something is moving them? Or the Finder isn't opening them to the right folder?
    Have you tried this one...
    http://www.versiontracker.com/dyn/moreinfo/macosx/10958253
    Safe Boot, (holding Shift key down at bootup), & use Disk Utility from there to Repair Permissions, reboot once more.
    Then Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions...
    Move this file to the desktop...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    reboot when it completes.

  • Hi Guys,  I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out

    Hi Guys,
    I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out as this web-site has been payed for by my client.
    Alex

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Some Content in e-mail wont show and Google Doodles don't work

    Hi
    I am using Windows 7 - Laptop - Lenovo E540 - 2 months old. Firefox 37.0.1
    I first noticed some content in my e-mails won't show - BUT if I open my e-mail in Chrome - no problem - I even checked it in the latest IE - which I never use - and no problem there as well - JUST FIREFOX
    I have attached screen grabs of one particular daily e-mail i get and you can see I see the links in Chrome (under Doddle Top Stories) - but not in FireFox.
    i also have Firefox on my Android (Nexus 5 - Kit Kat) phone and do not have the problem there.
    ALSO: One of the latest Google Doodles that was interactive (The Pony Express one) - did NOT work or even show a "play button" in Firefox but in Chrome it worked no problem - so there seems to be a problem with that as well.
    I Have Tried:
    Firefox in Safe Mode
    Refreshed Firefox
    Disabled and then enabled each plug-in one by one as per the instructions
    Downloaded and installed the latest Java
    I Know it's not my Anti-Virus (Symantec Endpoint 12) as I said it works with Chrome & IE
    I have ALSO noticed that sometimes it times out or pages won't display/load and then I hit retry and it works - and it's not my WiFi as that doesn't seem to happen w/Chrome or my Cellphone.
    I decided to pull out and fire up my old laptop (Lenovo Think Pad Z61T - Windows XP) that I replaced with the new one and see if it happened on this one - which I NEVER remember it doing at all - but since it updated to the latest Firefox - IT ALSO HAPPENS NOW on this one!
    Is it the NEW update of FireFox that has a function I am not aware of?
    I have not installed and re-installed Firefox as I figured that would be the last resort.
    Has anyone else experienced this problem?
    Any other advice other than what I've tried would be very much appreciated.
    Thank you.

    Hello,
    The Refresh feature (called "Reset" in older Firefox versions) can fix many issues by restoring Firefox to its factory default state while saving your bookmarks, history, passwords, cookies, and other essential information.
    '''''Note:''' When you use this feature, you will lose any extensions, toolbar customizations, and some preferences.'' See the [[Refresh Firefox - reset add-ons and settings]] article for more information.
    To Refresh Firefox:
    # Open the Troubleshooting Information page using one of these methods:
    #*Click the menu button [[Image:New Fx Menu]], click help [[Image:Help-29]] and select ''Troubleshooting Information''. A new tab containing your troubleshooting information should open.
    #*If you're unable to access the Help menu, type '''about:support''' in your address bar to bring up the Troubleshooting Information page.
    #At the top right corner of the page, you should see a button that says "Refresh Firefox" ("Reset Firefox" in older Firefox versions). Click on it.
    #Firefox will close. After the refresh process is completed, Firefox will show a window with the information that is imported.
    #Click Finish and Firefox will reopen.
    Did this fix the problem? Please report back to us!
    Thank you.

  • Running 10.6.8. Trying to open and view contents of a CD (of an MRI) and getting message 'This program cannot be run in DOS mode' Is there a way? Thanks for the help.

    Running 10.6.8. Trying to open and view contents of a CD (of an MRI) and getting message 'This program cannot be run in DOS mode' Is there a way? Thanks for the help.

    Go to the support site for the provider of the MRI software.
    Sounds like it windows/PC. I have ran across that for the CDs that veterinarians provide for digital x-rays.
    I would try on a PC or on yuur Mac with Windows via BootCamp or a virtual machine like VirtualBox

  • I recently ran monolingual and removed all but the intel-64 bit architectures.  Now my iphoto will not open.  Here's the message  that I get. Process:         iPhoto [3543] Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto Identifier:

    I recently ran monolingual and removed all but the intel-64 bit architectures.  Now my iphoto (along with Idvd, garage band, imovie) will not open.  Here is the message that I get.
    Process:         iPhoto [3543]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         ??? (???)
    Build Info:      iPhotoProject-4750000~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [109]
    Date/Time:       2011-06-10 21:48:59.821 -0500
    OS Version:      Mac OS X 10.6.7 (10J869)
    Report Version:  6
    Interval Since Last Report:          -4164908 sec
    Crashes Since Last Report:           8
    Per-App Crashes Since Last Report:   11
    Anonymous UUID:                      45357CCD-011B-482E-A2EA-CF42096F1321
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow
      Referenced from: /Applications/iPhoto.app/Contents/MacOS/iPhoto
      Reason: no suitable image found.  Did find:
              /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
              /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
    Binary Images:
    0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <1C06ECD9-A2D7-BB10-AF50-0F2B598A7DEC> /usr/lib/dyld
    Model: iMac10,1, BootROM IM101.00CC.B00, 2 processors, Intel Core 2 Duo, 3.06 GHz, 4 GB, SMC 1.53f13
    Graphics: ATI Radeon HD 4670, ATI Radeon HD 4670, PCIe, 256 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x8F), Atheros 9280: 2.1.14.5
    Bluetooth: Version 2.4.0f1, 2 service, 19 devices, 1 incoming serial ports
    Network Service: Built-in Ethernet, Ethernet, en0
    Serial ATA Device: ST31000528ASQ, 931.51 GB
    Serial ATA Device: OPTIARC DVD RW AD-5680H
    USB Device: USB2.0 Hub, 0x05e3  (Genesys Logic, Inc.), 0x0608, 0x24300000
    USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8502, 0x24400000
    USB Device: External HDD, 0x1058  (Western Digital Technologies, Inc.), 0x0901, 0x26400000
    USB Device: Internal Memory Card Reader, 0x05ac  (Apple Inc.), 0x8403, 0x26500000
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x04500000
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8215, 0x06110000

    Please let me know when you find a fix. I did the same thing and have tried every suggestion I can find online. The message I get is...
    Process:         iPhoto [4991]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         ??? (???)
    Build Info:      iPhotoProject-6070000~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [142]
    Date/Time:       2011-06-13 23:39:38.485 +1200
    OS Version:      Mac OS X 10.6.7 (10J869)
    Report Version:  6
    Interval Since Last Report:          -1643976 sec
    Crashes Since Last Report:           35
    Per-App Crashes Since Last Report:   12
    Anonymous UUID:                      D4811036-EA8D-479D-8D9F-11E2FC8F6D4C
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow
      Referenced from: /Applications/iPhoto.app/Contents/MacOS/iPhoto
      Reason: no suitable image found.  Did find:
              /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
              /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
    Binary Images:
    0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <1C06ECD9-A2D7-BB10-AF50-0F2B598A7DEC> /usr/lib/dyld
    Model: MacBookPro7,1, BootROM MBP71.0039.B0B, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.62f6
    Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.10.131.36.9)
    Bluetooth: Version 2.4.0f1, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: Hitachi HTS545025B9SA02, 232.89 GB
    Serial ATA Device: MATSHITADVD-R   UJ-898, 3.5 GB
    USB Device: Internal Memory Card Reader, 0x05ac  (Apple Inc.), 0x8403, 0x26100000
    USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8507, 0x24600000
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06600000
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8213, 0x06610000
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x06500000
    USB Device: Apple Internal Keyboard / Trackpad, 0x05ac  (Apple Inc.), 0x0236, 0x06300000
    I have reinstalled Mac OSX 10.6.3 and done the updates from there.
    I have reinstalled ilife 11 from disk and done the updates.
    I have deleted all the suggested files and then redone install and updates.
    I have tried just reinstalling iphoto and doing updates.
    Is there any way to get a replacement -  /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow
    file with the right architecture?

  • How do we split our iCloud accounts but keep one iTunes account so we can share purchased content for our multiple iPhones and iPads?

    How do we split our iCloud accounts but keep one iTunes account so we can share purchased content for our multiple iPhones and iPads?

    You can migrate a copy of the data to a new account, then delete the other person's data from each account.  To do this, on the phone that will be changing accounts, if you have any photos in photo stream that you want to keep on the phone, save these to your camera roll by opening the photo stream album in the thumbnail view, tapping Edit, then tap all the photos you want to save, tap Share and tap Save to Camera Roll. If you have any synced notes that you want to keep on the phone, email these to yourself so you can create new notes in the new account.
    Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  The phone that will be keeping the account will not be effected by this.)  When prompted about what to do with the iCloud data, be sure to select Keep On My iPhone.  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.  You will create a new icloud email address with you turn Mail to On.
    Finally, to un-merge the data you will then have to go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't want (such as deleting your wife's data from your account, and vice versa).

  • Family sharing one Itunes account, want to remove all of their computers content from my library... help

    My family shares one Itunes account and I believe it was home sharing that brought all of their music, purchases, movies, etc. onto my Mac's Itunes Library. I want to remove all of their content from it. I turned off Homesharing and that didn't work. All of their music is on my computer and synchs to my Iphone and it's driving me nuts. Please help !

    You can deauthorise all 5 at once, then reauthorize the one you want.
    Learn how to authorize or deauthorize your computer with your Apple ID.
      http://support.apple.com/kb/HT1420
    You need to log into iTunes on the computer you want to deauthorise. Otherwise, contact contact iTunes Store support to see if they can help.

Maybe you are looking for