Cliche for the procedure "awr_diff_report_htm"
Hello!
I want to create cliche for the procudure awr_diff_report_html.
Next query return two lines:
select 'select * from TABLE(DBMS_WORKLOAD_REPOSITORY.awr_diff_report_html('||DBID||',' from v$database union all select ' >'||INSTANCE_NUMBER||', , , ID_of_db, '||INSTANCE_NUMBER||', , ,));' from v$instance
select * from TABLE(DBMS_WORKLOAD_REPOSITORY.awr_diff_report_html(123456789,
1, , , ID_of_DB , 1, , ,));Is it possible to get (SQL-)result in one line (one quiry) ?
select * from TABLE(DBMS_WORKLOAD_REPOSITORY.awr_diff_report_html(123456789, 1, , , here_DBID_too , 1, , ,));Thanks and best regards,
Pavel
Hi Pavel,
Sorry but I did not know this procedure.
I had a look at found the following:
The way to run it is something like this:
select * from TABLE(DBMS_WORKLOAD_REPOSITORY.awr_diff_report_html(457673830,1,1528,1529,
457673830,1,1534,1535));
457673830 is the dbid (you can get it from V$DATABASE, parameter in position 1 and 5
1 is the instance number, parameter in position 2 and 6
the 3rd and 4th parameter are the start snap_id and end snap_id for the time interval you want to compare for db1
the 7rd and 8th parameter are the start snap_id and end snap_id for the time interval you want to compare for db2So you need to find which intervals you want to analyze.
I.e.
SELECT 'select * from TABLE(DBMS_WORKLOAD_REPOSITORY.awr_diff_report_html('
|| db.dbid || ', ' || ins.instance_number || ', ' || MIN (snp1.snap_id) || ', ' || MAX (snp1.snap_id) || ', '
|| db.dbid || ', ' || ins.instance_number || ', ' || MIN (snp2.snap_id) || ', ' || MAX (snp2.snap_id) || '));'
FROM v$database db, v$instance ins, dba_hist_snapshot snp1
, dba_hist_snapshot snp2
WHERE snp1.end_interval_time BETWEEN SYSDATE - 1 AND SYSDATE
AND snp2.end_interval_time BETWEEN SYSDATE - 2 AND SYSDATE - 1
AND snp1.instance_number = ins.instance_number
AND snp2.instance_number = ins.instance_number
GROUP BY db.dbid, ins.instance_number;
-- Output is:
select * from TABLE(DBMS_WORKLOAD_REPOSITORY.awr_diff_report_html(457673830, 1, 1534, 1550, 457673830, 1, 1522, 1533));
{code}
This one is generating a statement to get a report on your db for the difference between 2 intervals (sysdate -1 to sysdate and sysdate-2 to sysdate-1).
I hope it is clear.
Regards.
Al
Edited by: Alberto Faenza on Jun 15, 2012 12:10 PM
Edited by: Alberto Faenza on Jun 15, 2012 12:10 PM
Added output
Similar Messages
-
Do we require abstract interfaces for the procedure ?
hi
while going through the file to DB scenario by Mukeshlal Parida at:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b , I had a doubt regardign as to why we need to create a abstract message interface for the procedure request and procedure response.Is it necessary to do so?mapping is already done b/w request and DB and DB-response to the final response.The ID part will call the stored procedure.Then where does the need to introduce 2 more abstract async message interface arise?
please try to clear this doubt so that i may understand the logic behind it.Hi...
Find the below link.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/soa-middleware/soa-management/process-integration/step%20by%20step%20procedure%20to%20implement%20soap%20to%20jdbc%20scenario.pdf
In the above link it is showing Soap to JDBC Sceanrio which is synchronous. For JDBC, only simple table is used. Instead you can use the stored procedure.
For how to use stored prcodeure follow the below link
/people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
Regards,
Leela -
Hi
my name is Al-Ameen, Am from Nigeria,actually my brother from the united kingdom sent me an iphone5, So when i insert my Sim card i discovered the iPhone is locked.
So the reason why am sending this mail is to ask for the procedure of how to unlock an iPhone from another country the amount paid and all the other information about unlocking an iPhone.
Hope to hear back from you guys.
Many Thanks
Al-Ameen.You need to contact the carrier to see if they offer unlocking and if you qualify. You may need to talk to your brother about this.
-
Sorting for the procedure is not working
can you help why the sorting is not working here.I am running the below procedure to sort asc and desc and when I do sort in descending order by a different column it gives me a different rows sorted in desc order. what i
want the proecdure to do it to sort the recordset in asc and desc order without changing the selected rows
SQL> exec trnsportitems.gettrnsportitems(1,10,'itemnumber desc', :n, :c);
PL/SQL procedure successfully completed.
SQL> print c;
ITEMNUMBER R IDESCR IDESCRL IUNI IS I ITEM
2011.601/00002 1 TUNNEL CONSTRUCTION LAYOUT STAKING TUNNEL CONSTRUCTION LAYOUT STAKING LS 0
2011.601/00003 2 CONSTRUCTION SURVEYING CONSTRUCTION SURVEYING LS 05 N 2011601/00003
2011.601/00010 3 VIBRATION MONITORING VIBRATION MONITORING LS 05 N 2011601/00010
2011.601/00020 4 REVISED BRIDGE PLANS REVISED BRIDGE PLANS LS 05 N 2011601/00020
2011.601/00040 5 DESIGN DESIGN LS 05 N 2011601/00040
2011.601/00050 6 DESIGN AND CONSTRUCT DESIGN AND CONSTRUCT LS 05 N 2011601/00050
2011.601/08010 7 SUPPLEMENTAL DESCRIPTION SUPPLEMENTAL DESCRIPTION LS 05 N 2011601/08010
2011.601/08011 8 SUPPLEMENTAL DESCRIPTION SUPPLEMENTAL DESCRIPTION LS 05 N 2011601/08011
2011.601/08012 9 SUPPLEMENTAL DESCRIPTION SUPPLEMENTAL DESCRIPTION LS 05 N 2011601/08012
2011.601/08013 10 SUPPLEMENTAL DESCRIPTION SUPPLEMENTAL DESCRIPTION LS 05 N 2011601
10 rows selected.
SQL>
SQL> exec trnsportitems.gettrnsportitems(1,10,'idescr DESC', :n, :c);
PL/SQL procedure successfully completed.
SQL> print c;
ITEMNUMBER R IDESCR IDESCRL IUNI IS I ITEM
2563.613/00040 1 YELLOW TUBE DELINEATORS YELLOW TUBE DELINEATORS UDAY 05 N 2563613/00040
2563.602/00100 2 YELLOW TUBE DELINEATOR YELLOW TUBE DELINEATOR EACH 05 N 2563602/00100
2565.602/00940 3 YELLOW LED INDICATION YELLOW LED INDICATION EACH 05 N 2565602/00940
2502.602/00040 4 YARD DRAIN YARD DRAIN EACH 05 N 2502602/00040
2411.601/00030 5 WYE STRUCTURE WYE STRUCTURE LS 05 N 2411601/00030
2557.603/00041 6 WOVEN WIRE FENCE WOVEN WIRE FENCE L F 05 N 2557603/00041
2557.603/00043 7 WOVEN WIRE WOVEN WIRE L F 05 N 2557603/00043
2563.613/00615 8 WORK ZONE SPEED LIMIT SIGN WORK ZONE SPEED LIMIT SIGN UDAY 05 N 2563613/00
2563.613/00610 9 WORK ZONE SPEED LIMIT WORK ZONE SPEED LIMIT UDAY 05 N 2563613/00610
2557.603/00035 10 WOODEN FENCE WOODEN FENCE L F 05 N 2557603/00035
10 rows selected.Hi,
user13258760 wrote:
can you help why the sorting is not working here.I am running the below procedure to sort asc and desc and when I do sort in descending order by a different column it gives me a different rows sorted in desc order. what i
want the proecdure to do it to sort the recordset in asc and desc order without changing the selected rowsAs it is written now, the argument insortexp has nothing to do with the order of the rows. It is used only in computing column r, and column r is used only in the WHERE clause.
Are you really saying you don't want a WHERE clause at all in the main query: that you always want the cursor to contain all rows from itemlist that meet the 3 hard-coded conditions:
... WHERE item '2999509/00001' -- Did you mean != here?
AND iobselet = 'N'
AND ispecyr = '05'?
If so, change the main query WHERE clause:
WHERE r BETWEEN instartrowindex AND inendrowindexinto an ORDER BY clause:
ORDER BY rBy the way, you might want to make insortexp case-insensitive.
In your example, you're calling the procedure with all small letters in insortexp:
user13258760 wrote:
SQL> exec trnsportitems.gettrnsportitems(1,10,'itemnumber desc', :n, :c);but the output is coming in ASC ending order:
... ORDER BY
DECODE (insortexp, 'itemnumber ASC', item) ASC,
DECODE (insortexp, 'itemnumber DESC', item) DESC, -- capital 'DESC' won't match small 'desc'
DECODE (insortexp, 'idescr ASC', idescr) ASC,
DECODE (insortexp, 'idescr DESC', idescr) DESC,
DECODE (insortexp, 'idescrl ASC', idescrl) ASC,
DECODE (insortexp, 'idescrl DESC', idescrl) DESC,
DECODE (insortexp, 'iunits ASC', iunits) ASC,
DECODE (insortexp, 'iunits DESC', iunits) DESC,
DECODE (insortexp, 'ispecyr ASC', ispecyr) ASC,
DECODE (insortexp, 'ispecyr DESC', ispecyr) DESc,
SUBSTR (item, 1, 4) || '.' || SUBSTR (item, 5) -- This is the only non-NULL ORDER BY expression Why not declare a local variable:
sortexp VARCHAR2 (20) := LOWER (insortexp);and use that variable instead of the raw argument in the query:
... DECODE (sortexp, 'itemnumber asc', item) ASC,
DECODE (sortexp, 'itemnumber desc', item) DESC, ...Also, this site doesn't like to display the <> operator, even inside \ tags. When posting here, always use the other inequality operator, !=
Edited by: Frank Kulash on Jun 15, 2010 3:25 PM -
How to pass session variables as a parameters for the procedure
hi all gurus
i have created one procedure,it contains user information (usrname ,password(it is encrypted)) and it returns true or false
if this value is true i want to allow the user to login other wise i don't want to login the use into dashboard
how can i achieve this ???
my procedure name is E_t_A_P it returns true(1) false(0)
if i get 1 then user can see the dashboard
other wise not
what are the steps i have to follow to achieve this task
please help me out
thnks
Sreedhar
Edited by: 791907 on Sep 24, 2010 3:15 AMhi saichand
what we are doing means
we are using encrypted passwords in the back end ,so whenever user enter with theirs user name and password ,from initialization box we can call this function
like select function_Name(':USER',':PASSWORD') from dual from this we can call the back end function ,there decryption and encryption process will be done
and that function returns 1 or 0 as out put
based on this result we have to provide the authentication , i mean if it returns 1 then user can login other wise user is not
can you help me out
other wise do u have any ideas to full fill this requirement ?
Thanks
Sreedhar
Edited by: 791907 on Sep 24, 2010 5:20 AM -
Can i enhance a table via eewb for the service contract?
Hi, expert
I want to enhance a table for the service contract,
when i use eewb to do the enhancement, i find only the BUPA can do table enhancement.
Or i can create a tran. table and display the data via a table view on the web ui ,
but how to save the data of the table view when i click save button on the Web UI ?
Thanks.
Oliver.FYI: Found the problem. In the Administrator's Guide (of course not in the supplied packages documentation about DBMS_JOB) I found:
"How Jobs Execute
SNP background processes execute jobs. To execute a job, the process creates a session to run the job.
When an SNP process runs a job, the job is run in the same environment in which it was submitted and with the owner's default privileges.
When you force a job to run using the procedure DBMS_JOB.RUN, the job is run by your user process. When your user process runs a job, it is run with your default privileges only. Privileges granted to you through roles are unavailable."
And of course we had set up our users to get all privileges through Roles, so CREATE TABLE wasn't one of my DEFAULT PRIVILEGES!
It sure would be nice if Oracle documentation could get its act together and provide ALL information about a topic in a logical place. The effort to find the information about privileges occurred after it took me 1/2 hour to figure out why my submissions were failing - I didn't have the ';' included in the quoted string for the procedure to be called - which I only figured out after looking at the code for DBMS_JOB where it made the note to make sure you include the ';'. Wouldn't it be good to have that MINOR DETAIL mentioned in the description of DBMS_JOB.SUBMIT????? -
Subtype ctreation for the Infotype 0185
Hi,
I am trying to create a subtype for the standard infotype 0185. I have followed below mentioned steps for that:
1) I have created an entry using v_t591a in SM31 and saved it.
2) In PM01, created a Customer Include under Enhancement of Single Screen and added some fields to it. Activated it also.
3) Even then I was not able to find the subtype in pa30, so have changed the technical attributes related to subtypes.
Please give me any suggestion regarding this.
Thanks,
SreeHi,
Please check the below thread for the procedure to create a subtype for the standard infotype...
/message/4304842#4304842 [original link is broken]
Check the below thread regarding a subtype issue for infotype 0185
No subtypes for Infotype 0185
Check this thread for further information if necessary
Check field Identity Number Infotype 0185 Subtype 02
Hope this would help you.
Good luck
Narin -
The simplest way for plsql procedure to return multiple rows
Hi,
What is the simplest way for plsql procedure to return multiple rows (records). There are many combination of ways to do it but I am looking for a solution that is appropriate for plsql beginners. Many solutions use cursors, cursor variables, collections and more that kind of things that are complex on the face of it. Is it somehow possible to achieve the same with less effort?
Sample query would be: SELECT * FROM EMPLOYEES;
I want to use returned rows in APEX to compose APEX SQL(in that context plsql) report.
It is enough to use just SELECT * FROM EMPLOYEES query in APEX but I want to use plsql procedure for that.
Thank you!Hi,
It depends :-).
With +...that is appropriate for plsql beginners...+ in mind... it still depends!
The list of techniques (ref cursors, cursor variables, collections, arrays, using explict SQL) you have referenced in your post can be made to work. but...
+Is it somehow possible to achieve the same with less effort?+ Less effort : That needs to be defined (measured). Especially in the context of pl/sql beginners (who is a beginner?) .
What is the level of "programming experience" ?
What is the level of understanding of "Relational Result set" as processible in Oracle?
If you are looking for
Process_the_set_of rows_in APEX () kind of capabilitywhich "abstracts/hides" relation database from developers when working on relation database, it may not be the best approach (at least strategically). Because I believe it already is abstracted enough.
I find REF CUROSOR most effective for such use, when the "begginer" has basic understanding of processing SQL result set .
So in a nut shell, the techniques (that you already are familiar with) are the tools available. I am not aware of any alternative tools (in pure Oracle) that will simplify / hide basics from develpers.
vr,
Sudhakar B. -
What is the procedure for a hard boot of my iPod touch 4th generation
without iTunes, and without computer, and without iPod data screen?
6 months after purchase I updated my iPod touch as recommend by iTunes.
It has not worked since that day. It frozen (disabled) with a "connect to
iTunes" icon displayed...that is the only thing it does. itunes does not
recognize the iPod. My Windows7 computer recognizes an Apple device.
Other computers recognize the devise but if iTunes resided on that
computer it did not recognize the iPod
I suffered a setback with deep depression and am just now getting out of it enough to do something. The depression prohibited me from taking action.
I have done every procedure recommended from Apple help and external
sources. I did this thoroughly with help for other owners and IT experts,
Apple employees etc etc. I and associates have perform reboots utilizing a
number procedure using only button on the iPod. These were unsuccessful
also have performed.
Please do not ask me to do the usual.
Online I saw a process using the buttons on the iPod to completely
reformat
the iPod. It was NOT the hold buttons for 10 sec let go of one wait 8 sec
etc. I can not find the process now...a friend showed it to me in passing
I have lost contact with him. This is the procedure, I believe, that with
enable me to update and use the iPod.You need an internet connection and likely a computer with iTunes but an iPhone, iPad or iPod touch with the FindMy iPhone App may work by:
If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone and use Remote Wipe to erase the contents of your device. If you have been using iCloud to back up, you may be able to restore the most recent backup to reset the passcode after the device has been erased.
You can also wipe the iOS device by installing the FindMyiPhone app on another iOS device and using that app to wipe the device.
Otherwise
Disabled
Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
iOS: Forgot passcode or device disabled
If recovery mode does not work try DFU mode.
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
For how to restore:
iTunes: Restoring iOS software
To restore from backup see:
iOS: Back up and restore your iOS device with iCloud or iTunes
If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
You can redownload most iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.
Yo may have to go to an Apple store or a friend's house with an internet connection and iTunes. -
What are the possible reasons for a procedure to go into uncompiled state?
hi,
we are working on a warehousing project where in we have a set of procedures that run every day to fetch the data from the source and populate it into the target. For the past few days some of these procedures are going into un-compiled state even though nobody has touched these procedures for a long time.
The behavior of these procedures is not consistent in the sence that when these procedures are run through the scheduler, these procedures are getting failed, where as when we run them manually they are working fine and subsequently when we try running them through the scheduler again they seem to be working.
following is the error message that is displayed when this procedures are failed:
ORA-04062: timestamp of package has been changed.
Kindly help me.
Thanks,
Raaji.Thanks for the reply.
No, My procedure is not using any db links. And i have checked for remote_dependencies_mode, by using the below query and I got the VALUE as TIMESTAMP.
SELECT name, value
FROM gv$parameter
WHERE name = 'remote_dependencies_mode';
Do I need to change this value to SIGNATURE?
Thanks,
Raaji. -
2 pricing procedures for the same sales area
Hi Gurus.,
My client requirement is the client requires 2 pricing procedures for the combination of Same sales areaDEocument Pricing procedurecustomer pricing procedure in OVKK
He doesnt want to use new sales area or new document pricing procedure or new customer pricing procedure,I know that in standard SAP it is not possible.
Can any of the gurus throw some light on this.Some work around is required here,So can u please say the required changes in Standard functionality.
Thanks & Regards
Narayana
Message was edited by:
manam narayana
Message was edited by:
manam narayana
Message was edited by:
manam narayanaHi Gurus.,
First of all thank you very much for giving me so tremendous response, But my client requirement is,
He has one customer and for that customer when raising an order ,for some orders Tax shouldnot caliculate and for some orders Tax should be caliculated,
For example : If he gives price 100,Then the base price should be 100,For some orders he gives price as 130 rs which is inclusive of tax like 110 should be the base price and 20 rs tax should get caliculated
So i have tried in the pricing procedures and we have standard pricing procedure RVAA01 & RVAB01 ,In which RVAB01 is the price inclusive of tax procedure,We can assighn different pricing procedures if any of the combination in OVKK is changed,But he dont want to change the combination in OVKK.
So client asks now when he raise an order he decides how the price should be caliculated, i.e the price may be he give price or price inclusive tax,of which the pricing procedure should automatically split the tax and price accordingly,He is asking in the way like when we raise a sales order we should do like a pop up box should appear asking which pricing procedure should be selected,So on selecting the pricing procedure the order should caliculate based on the selected pricing procedure
Thanks & Regards
Narayana -
Pricing procedure for the calculation of VAT
Dear all,
We require one new tax structure.
Assessable value + service tax & VAT for the sum of Assessable value + service tax.
Kindly give us the pricing procedure for the above requirement.
Regards
Mahalingam sarathi>
Mahalingam Sarathi wrote:
> Dear all,
>
> We require one new tax structure.
>
> Assessable value + service tax & VAT for the sum of Assessable value + service tax.
>
> Kindly give us the pricing procedure for the above requirement.
>
> Regards
>
> Mahalingam sarathi
Let me try to fit in this requirement for you (with a small demonstration, you will also have to use the appropriate accounting keys)
400 assessable value 350 390
410 JSRT Service tax 400
420 JEC3 ECEss on Srv tax 410
430 JSE3 Secess on SrvTax 410
440 ***. val + Srv Tax 400 430
450 JIVP VAT 440 -
Does anyone have a cure for the following error running on Windows, "The procedure entry point sqlite3_wal_checkpoint could not be found located in the dynamic link library SQLite.dll.
I have searched my computer for that file SQlite3.dll and also file QTCF.dll and I cannot find either one when I search my whole computer for it. I cannot fix this! I deleted Itunes and every time I try to download it, it goes through all this download till the end when it says that iTunes.exe-entry point now found and that Procedure entry point message comes up. HELP! This is driving me crazy. How can I get itunes to work again when I can't find the danged .dll file to remove, move or rename!?!?!??
-
Where is the procedure for uploading my music files to Cloud?
Where is the procedure for uploading my music files to Cloud? I have a portable hard drive that has all my burned songs on it, and I'm trying upload and match those songs for the first time.....
There is no "procedure." When you sign up for iTunes Match, iTunes does all the work for you. But you must have the external HDD connected for it to work.
Also, keep in mind that iTunes Match is not a streaming service. To play your music on your computer you'll still need to have the external HDD connected, unless you decide to delete all the music from your iTunes library. -
What are the procedures for getting Apple to wipe the data off my original ipad I bought two years ago. I had it stolen from a hotel room over the weekend and it is not password protected and no I did not download app to find it.
Any hwlp would be greting appreciated!Apple can't do it, only you could potentially do it if you had enabled Find My iPad on it before it was stolen.
If it was stolen then you should report it to the police. As a safety precaution you should also change your iTunes account password, your email account passwords, and any passwords that you'd stored on websites/emails/notes etc.
Maybe you are looking for
-
It's explained pretty well in my initial question. Not sure what else you would need in the way of details. I will say it's been going on for a month or so, and it happens every time I start Firefox, and every time I open a new window.
-
I am attempting to reinstall my Adobe CS 4 design standard.
It gave me a set up error. I called customer service and they told me to download it at tiny.cc/cs3cs4cs5cs6. The only problem is there is no download there for CS4 design standard. I tried SC4 design premium but it also gave me a set up error. Can a
-
Opening folders in the bookmarks bar
Is it possible to make folders in the bookmarks bar to open "like other menus" i.e. when you move your mouse to the next folder the old one closes and the new one opens. Now I have to click the new menufolder twice. The first click closes the old one
-
Hi. How I can add russian keyboard in to Firefox OS? I am using OS on nexus 4. Version Firefox OS 1.1 Instruction to install http://www.addictivetips.com/android/dual-boot-android-ubuntu-touch-or-firefox-os-on-nexus-4-7-with-multirom/ Thanks.
-
Dreamweaver CS5 25% CPU, crash state, CSS Styles window stops updating
Hi, has anyone else found their app in the state where it starts using 25% CPU continually, with the exe not closing after the app window closes? When this happens, right before, I'll notice that when I select an element in the design or code window