How to monitor the resource used by the query
Hi All,
I have a locking monitoring script as below, which is currently run at daytime.
We now planned to cron the script to run by 24/7. But we have concern since this is a old legacy system.
Please advise if I going to turn on the script to run by 24/7, which item I need to monitor on?(eg: temp space, rollback segments etc)
Hope to gather some statistic whether it is safe to run the script at 24/7..
Please note that the database version is 8.1.6.3.0
SELECT /*+ RULE */
ss.username||'('||ss.sid||','||ss.serial#||')' "WAITER",
ss.status, ss.osuser, pr.spid, dbo.object_name,
sw.state, sw.SECONDS_IN_WAIT/60 mins, NVL(SUBSTR(ss.program,-10),ss.program) program, NVL(SUBSTR(ss.module,-20),ss.module) module
FROM v$session ss, v$process pr, dba_objects dbo, v$session_wait sw
WHERE ss.row_wait_obj# = dbo.object_id (+) --rows in ss that no matching rows in dbo, Oracle returns NULL
AND pr.addr = ss.paddr
AND sw.sid = ss.sid
AND sw.event ='enqueue'
AND ss.lockwait IS NOT NULL
AND ss.sid IN
(SELECT sid FROM v$lock WHERE TYPE='TX' AND id1 IN
(SELECT id1 FROM v$lock WHERE sid IN
(SELECT sid FROM v$session WHERE lockwait IS NOT Null)
AND sw.seconds_in_wait > 180
ORDER BY mins DESC;
Edited by: SagiGal on 31-Jan-2013 23:05
you can use v$lock to identify locks directly:
select *
FROM v$lock aa, v$lock b, v$session blocker ,v$session waiter
WHERE aa.block = 1
AND b.request > 0
AND aa.id1 = b.id1
AND aa.id2 = b.id2
AND aa.sid = blocker.sid
AND waiter.sid = b.sid
SagiGal wrote:Please advise if I going to turn on the script to run by 24/7, which item I need to monitor on?(eg: temp space, rollback segments etc)Nothing. you can run this query every minute! It queries the system views, which are organized by oracle continuously.
Similar Messages
-
how can I remove large number of photos on my iPhone 4s from iTunes using a PC - Lenovo Think Pad - so that I can reduce the space used on the phone by 50%?
You don't need iTunes for that. Simply connect the iPhone to the PC where it will be recognized as a camera. You can then select the photos you wish to transfer, transfer them, and delete them.
-
How to get the workcentres used in the routing out of 2 alternate routings
Dear All,
I would like to know how to get the workcentres used in the routing out of 2 alternate routings.
I referred PLKO got the Task List Type (PLNTY), Group(PLNNR), Group Counter(PLNAL), Plant(werks).
I passed this in to PLPO, The problem in PLPO is we dont have the distinguishing field Group Counter(PLNAL), so I am getting all the ARBID including both alternates.
How to get the ARBID with respect to Groupcounter 1 alone.
If a get the ARBID , I can get the ARBPL from CRHD.HI,
Use PLAS Table also. you have to use PLKO> PLAS> PLPO.
Pass PLNNR & PLNAL in PLAS and get PLNNR & PLNKN.
Then pass these into PLPO.
work centers from CRHD
Regards,
Krishna Mohan
Edited by: Krishna Mohan N on Jan 31, 2008 12:28 PM -
How to get a week number for the year using oracle sql query?
hi everyone,
i have the requirement to find the week number for the calender..
so that week number should start with 01 when the year starts and it should end with week end date(that is first saturday of the january month).. so next week number starts with sunday and ends with saturday ,continously.. in the end date of the year it should not be 'saturday' but week number should end with last date of the year.. again in the next year it should start with '01'.
for example:
01-JAN-13 tuesday 01
02-JAN-13 wednesday 01
03-JAN-13 thursday 01
04-JAN-13 friday 01
05-JAN-13 saturday 01
06-JAN-13 sunday 02
07-JAN-13 monday 02
26-DEC-13 thursday 52
27-DEC-13 friday 52
28-DEC-13 saturday 52
29-DEC-13 sunday 53
30-DEC-13 monday 53
31-DEC-13 tuesday 53
01-JAN-14 wednesday 01
02-JAN-14 thursday 01
how can i achieve this, can anyone please help me out on this..
i have a query that starts with 01 when year starts but it gives problem in the end of the year .. described below with a query..
select mydate,
to_char(mydate,'day') as weekday,
to_char(next_day(mydate,'sunday'),'iw') as week_num
FROM ( SELECT TRUNC (SYSDATE, 'yy') - 1 + LEVEL AS mydate
FROM dual
CONNECT BY LEVEL <= (SELECT TRUNC (ADD_MONTHS (SYSDATE, 24), 'yy')
- TRUNC (SYSDATE, 'yy')
FROM DUAL))
this query gives date, weekday and week_num for 2 years 2013 and 2014,
when i run this query ,at the end of the 2013 it gives the result as,
26-DEC-13 thursday 52
27-DEC-13 friday 52
28-DEC-13 saturday 52
29-DEC-13 sunday 01
30-DEC-13 monday 01
31-DEC-13 tuesday 01
01-JAN-14 wednesday 01
02-JAN-14 thursday 01
for dates 29 ,30,31st it should give 53 .. how can i achieve that using this this query .. can any one help me out on this please...
thanks,
pradeepI tried with the IW ...
it is giving week_id for the year.
select
mydate,
to_char(mydate,'day'),
case when mydate between trunc(mydate,'yyyy') and next_day(trunc(mydate,'yyyy'),'saturday')
then to_number(to_char(mydate,'yyyy')||to_char(trunc(mydate,'yyyy'),'iw'))
when mydate between next_day(trunc(mydate,'yyyy'),'saturday') and trunc(add_months(trunc(mydate,'yyyy'),12)-1,'d')-1
then to_number(to_char(mydate,'yyyy')||to_char(next_day(mydate,'sunday'),'iw'))
when mydate between trunc(add_months(trunc(mydate,'yyyy'),12)-1,'d') and add_months(trunc(mydate,'yyyy'),12)-1
then to_number(to_char(mydate,'yyyy')||to_char(trunc(add_months(trunc(mydate,'yyyy'),12)-1,'d')-1,'iw')+1) end as WEEK_ID
FROM ( SELECT TRUNC (SYSDATE, 'yy') - 1 + LEVEL AS mydate
FROM dual
CONNECT BY LEVEL <= (SELECT TRUNC (ADD_MONTHS (SYSDATE, 24), 'yy')
- TRUNC (SYSDATE, 'yy')
FROM DUAL
)) -
How can I find the location of the signature used in the Adobe Reader signature feature?
How can I find the location of the signature used in the Adobe Reader signature feature? I've been using the signature feature for a while now and it works great and I'd like to use it on another computer. However, I forgot where I stored the signature. Adobe finds it with no problems (the signature pops up when I click "Place Signature"), but I have no idea where it is.
Hello,
It's here - C:\Documents and Settings\username\Application Data\Adobe\Acrobat\10.0\Security\
For more information, please refer - Cannot create a digital ID/signature
~Deepak -
How can I see all the idocs used in the system
I am very new in this area. How can I see all the idocs used in the system. Those which are posted and those which are not.
Check thes sap help links:
http://help.sap.com/saphelp_nw70/helpdata/en/90/c4b523c4c411d2a5ee0060087832f8/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/en/d5/edf15ddcdc11d1890c0000e8216438/content.htm
- Regards, Dibya -
I created a spreadsheet using Microsoft office 2010 Excel. When I open the sheet using Numbers, the formatting changes. How do I fix this?
If you plan to share or work with people who regulary use MS Excel you should not try to use this in Numbers. You will have constant problems with how each program translates the formatting.
If you want to use Numbers, use it exclusively. If it is for your job use the tool your company uses. -
I have turned off the Data use on the I-phone 4s but am told by AT&T that data is still being used for applications. How is this possible. Can someone help me understand this.
I assume you are including the STIX font as part of your epub files?
Perhaps the folks who do this blog might be able to help -- they have done some work with font embedding:
http://www.pigsgourdsandwikis.com/2011/04/embedding-fonts-in-epub-ipad-iphone-an d.html -
How to remove the Sessions used in the application
Hai Techies,,,
i am using many number of sessions in my application, for example i am using 5 sessions in reports module
my application is a web based application
if can't remove the sessions it contains the huge amount of data , my application is going into mess, and the application performance will be decreased..
Can anybody tell the solution for this Problem
How to remove the Sessions used in the application
Hoping a reply
Thanks & Regards
Krishna mangamuriHai Gita,
i am not able to do the session invalidate method bcoz, i am mainatainting the session from login along with the current userid who is login into the system and putting some of the data in session....
thats session is to be valid upto when i click on logoff link
except that i have to remove the sessions in my application
while navigating from one jsp to another i have to remove the sessions, bit somes times that sessions may be used somewhere
Can u Understand My problem
session remove method may also helpful to me but some times it will casue some prob to me
Is there any other Way to remove the sessions in the Application ????
Thanks & Regards
Krishna Mangamuri -
How many columns can be used in the SELECT Statment
Hi all,
How many columns can be used in the SELECT statement?
Ex: SELECT x1,x2,....xn FROM <table_name>;
Thanks,
GowriShankar.NLet me join ;-)
SQL> select * from v$version;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
PL/SQL Release 9.2.0.6.0 - Production
CORE 9.2.0.6.0 Production
TNS for Linux: Version 9.2.0.6.0 - Production
NLSRTL Version 9.2.0.6.0 - Production
SQL> DECLARE
2 l_sql varchar2(32000);
3 begin
4 l_sql := 'CREATE TABLE T(';
5 for i in 1..999 loop
6 l_sql := l_sql ||'C'||i||' NUMBER,
7 ';
8 end loop;
9 l_sql := l_sql||'C1000 NUMBER)';
10 EXECUTE IMMEDIATE l_sql;
11 end;
12 /
PL/SQL procedure successfully completed.
SQL> select count(*) from cols where table_name = 'T';
COUNT(*)
1000
SQL> insert into t(c1) values(1);
1 row created.
SQL> select *
2 from t t1,t t2;
C1 C2 C3 C4 C5 C6 C7 C8 C9
... snipped
C991 C992 C993 C994 C995 C996 C997 C998 C999 C1 C2 C3 C4 C5 C6 C7 C8 C9 C10
... snipped
C990 C991 C992 C993 C994 C995 C996 C997 C998 C999
---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 1
1
SQL>
SQL> select count(*) from (
2 select * from t t1,t t2)
3 ;
select * from t t1,t t2)
ERROR at line 2:
ORA-01792: maximum number of columns in a table or view is 1000Obviously, inline view is obliged the same restrictions as a view, but select list is not constrained.
Best regards
Maxim -
How to change the images used in the "Named people" tiles?
After working on adding people/faces for a while, I find that in many cases the image used in the "Named people" tile for a particular person is the worst one possible.
Is there a way to tell Lightroom to use a different image?Agreed. The people grid looks horrible after a while. I went looking for a way to identify a key tile and couldn't find it.
-
How to find out theTables used in the program
hi experts,
can any one tell what are the ways to find out the tables used in the program
thanks in advance.Hello,
Below are some tips:
1. If custom program- SEARCH for "TABLES" or "SELECT" stmt.
2. The full-proof way will be to activate SQL Trace. Goto tcode ST05, check SQL Trace & then activate trace.
Execute the program. After execution is complete, deactivate trace & then display trace. You will get all the tables which are being used.
BR,
Suhas -
Need Help! "Could not locate the resource file in the Configuration folder."
I had just purchased and installed Adobe Crerative Design Suite last night. Every program works except Dreamweaver, which gives me the error message:"Could not locate the resource file in the Configuration folder. This File is required to run Dreamweaver. Please reinstall the application". I am suspicious because the was a previous version of Dreamweaver on the computer before this installation, but I unistalled it. I do not understand why I get this message. Is there a file somewhere that is missing or at faut. How can I remedy this? Thanks
~ToddNadia,
Your posted resources worked for me. Thank you! After many attempts (to include Adobe's overseas call canter) to resolve the same installation and run errors, I used your suggested steps and I finally have a clean and running install. I did have to take a few extra steps;
First I downloaded both Cleaning scripts. For CS4 & CS3.
Next I downloaded Windows installer/cleaner. I have Windows Vista Home Premium and that is a required installed program to run Adobe's cleaning script.
Once I was sure I had all the programs/scripts I needed (per your instructions and the instructions found on the Cleaning scripts site) I disconnected my computer from the Internet.
Then I disabled all running programs especially all Anti-virus and firewall programs and any others that have calls of any kind: i.e. Boinc (Seti), Skype, email programs (Windows Live Mail), etc.
Next I uninstalled all CS4 products and even though I was told that Macromedia Studio MX 2004 can stay installed (read that on one site and the overseas Tech also reinforced that information) I uninstalled MX 2004.
I then rebooted and installed the Windows installer/cleaner program and ran the Adobe CS4 cleaner script twice.
After another reboot I installed Dreamweaver CS4 first, rebooted (can't reboot enough with Windows!) and, yes you guessed it, rebooted.
I then attempted to open Dreamweaver CS4 and for the first time it ran without the error!
I then installed Adobe Ps CS4 and rebooted and that work for the first time as well.
I can't say for sure if Macromedia Studio MX 2004 caused the install errors on the Adobe products but without it and ALL that uninstalling and rebooting and running cleaning scripts and installing and rebooting, Adobe finally felt my computer was clean enough to call it home and work.
Thank you again for your information and I suggest if anyone else finds their way here that they follow your instructions to the letter. Takes a long time but a proper and clean install will be the result. -
I have a MacBook Pro , Model Identifier MacBook Pro8,2 , MAC OX S 10.7.4
I noticed that if I open Final Cut Projects created on other/older models MacBook Pro Laptops or MacPro Desktops, the fonts used in the previously created FCP projects, change their font spacing! which distorts the look of the Text that was written, by oevrlapping on other things that were put & present on the screen.. Another similar probelm is that the Vector shaped used for example to highlight certain words or shapes, also change their position on the screen so that they no longer highlight exact things that we once used these vectors to highlight or outline... Anyone knows how to solve this problem please?? I made sure that the same fonts are available in the Library in both old and newer computers...
thanks in advance..You might want to take your question to the FCP forum - if you copied all fonts to your Library>Fonts folder and restarted they should be recognized by all applications. I know that this works for Adobe products, anyway.
Clinton -
I have already go to properties then resources and try to remove resource option but it was't working.so help me by giving another technique to solve this issue.
I have already go to properties then resources and try to remove resource option but it was't working.so help me by giving another technique to solve this issue.
Hello,
It will be more specific if you could share the screenshot of that error with us.
In addition, if this issue is mainly related to the BackGroundimage property, you could consider using the following suggestion.
We could click our project to expand the nodes and click "InitializeComponent()" to navigate to its desiginer code.
Then check whether there is a line which has " Me.BackgroundImage =", remove that line and then remove the resource file with the following step.
Project property->Resources->Switch "Files" or "Images" to see where you have setted for that image file, find it and remove it.
Then save all your changes to see whether it's OK.
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
hi I recently dropped my ipod touch and now it wont connect to itunes. Everytime i plug it in, i get an error message saying that the usb device is not recognized
-
Fontd process causing Mac to lock up for minutes at a time
Here is a problem and also the solution, (in case you have the same problem): My Mac (running OS X Lion) was exhibiting a problem whereby it paused for minutes at a time; the mouse moved, but no applications could respond (and they all showed the spi
-
Can't install Camera Raw 6.5
I can't install the upgrade for camera raw 6.5 for PS CS5 because it says that Bridge is open. Bridge though is not open and it is confirmed by looking at the task manager. Any thoughts or should I forget about the upgrade to Camera Raw?
-
How Customer link to Collection Segment
Dear All, I created, customer open item. I created one Business partner and all config for collection management. I transferred data to collection Management. But in the worklist not data is showing, can you plz guide me where I am doing wrong. I am
-
Use of LOG MINER - VERY URGENT
Hello, I have a situation: I want to recover the database till Friday (Last week). I am ready to loose the data of Sat/Sun/Mon and Tuesday. In other words, I need to get the Friday's database state. I have backups of last 30 days. My database is runn