How to findout the sql query elapsed time for last call
RDBMS vesrion: 11.2.0.3
How can I get the stats like how much time it took for a query to run if I know the "sql_id"
I can query v$sql and find out the "parse_calls","fetches","execution","elapsed_time" (microsecs)
but if the query executed 20 times then the elapsed time will be the cumulative of all the executions.
But I want to know the ELAPSED TIME of LAST CALL(last execution only) for that sql_id.
Edited by: rcc50886 on Aug 2, 2012 8:35 AM
You can easily monitor the statement and see the results for v$sql_monitorWe didn't enabled the monitor for the sql's and its not possible in my current enveronment due to some issues with management.
Is there any way to find out the last elapsed time for the sql with known sql_id ?
Similar Messages
-
How to view the sql query?
hi,
how to view the sql query formed from the xml structure in the receiver jdbc?You can view SAP Note at
http://service.sap.com/notes
But you require SMP login ID for this which you should get from your company. The content of the notes are as follows:
Reason and Prerequisites
You are looking for additional parameter settings. There are two possible reasons why a feature is available via the "additional parameters" table in the "advanced mode" section of the configuration, but not as documented parameter in the configuration UI itself:
Category 1: The parameter has been introduced for a patch or a SP upgrade where no UI upgrade and/or documentation upgrade was possible. In this case, the parameter will be moved to the UI and the documentation as soon as possible. The parameter in the "additional parameters" table will be deprecated after this move, but still be working. The parameter belongs to the supported adapter functionality and can be used in all, also productive, scenarios.
Category 2. The parameter has been introduced for testing purposes, proof-of-concept scenarios, as workaround or as pre-released functionality. In this case, the parameter may or may not be moved to the UI and documentation, and the functionality may be changed, replaced or removed. For this parameter category there is no guaranteed support and usage in productive scenarios is not supported.
When you want to use a parameter documented here, please be aware to which category it belongs!
Solution
The following list shows all available parameters of category 1 or 2. Please note:
Parameter names are always case-sensitive! Parameter values may be case-sensitive, this is documented for each parameter.
Parameter names and values as documented below must be used always without quotaton marks ("), if not explicitly stated otherwise.
The default value of a parameter is always chosen that it does not change the standard functionality
JDBC Receiver Adapter Parameters
1. Parameter name: "logSQLStatement"
Parameter type: boolean
Parameter value: true for any string value, false only for empty string
Parameter value default: false (empty String)
Available with: SP9
Category: 2
Description:
When implementing a scenario with the JDBC receiver adapter, it may be helpful to see which SQL statement is generated by the JDBC adapter from the XI message content for error analysis. Before SP9, this can only be found in the trace of the JDBC adapter if trace level DEBUG is activated. With SP9, the generated SQL statement will be shown in the details page (audit protocol) of the message monitor for each message directly.
This should be used only during the test phase and not in productive scenarios.
Regards,
Prateek -
How to find the incremental growth of index for last few months
Hi,
How to find the incremental growth of index for last few months.
Thanks,
Sathis.Hi,
Check the below link, it may help you!
http://www.rampant-books.com/t_tracking_oracle_database_tables_growth.htm
Thanks,
Sankar -
How to view the sql query generated in query designer..?
Hi experts,
Can i view the sql query generated by the query designer for a query in sap bw?
regards,
ksvsivamHi Sivam,
You can definitely view the sql query.
Go to RSRT and give the report name. Then goto Execute+Debug and click on it.
A new window will open, there tick the box Display SQL/BIA Query and the press on the ok button.
Finally click on execute. The Sql query will be displayed.
Hope this helps.
Thanks,
Rahul -
How to findout the sharepoint job which responsible for database re indxing
Hi
In sharepoint 2010 i configured RBS storage for Web application content database
in our org form has two web frontend servers,
two application servers, and two index servers ,one database server
so when users upload BLOBs to sharepoint library we faced some time RBS storage space problem
Exception:Microsoft.Data.SqlRemoteBlobs.BlobStoreException: There was a generic database
error. For more information, see the included exception. --->
System.Data.SqlClient.SqlException: RBS Error. Original Error: Number 1101,
Severity 17, State 12, Procedure -, Line 1,<o:p></o:p>
Message: Could not allocate a new page for
database 'WSS_Content_80' because of insufficient disk space in filegroup 'PRIMARY'.
here when i ask our DBA he said there is one sharepoint job is running which saving audit data daily every data and database is re indexing every time , to sharepont content database size is increasing
so how to findout the job which responsible for database re indxing
adilAudit data is created when an audit event his triggered. Auditing is configured on a per-Site Collection basis.
http://office.microsoft.com/en-us/sharepoint-server-help/configure-audit-settings-for-a-site-collection-HA102031737.aspx
There is a Health Analyzer rule named "Databases used by SharePoint have outdated index statistics".
http://technet.microsoft.com/en-us/library/hh564122(v=office.14).aspx
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
How to set the default Maximun idle time for servlets
Hello I'm trying to set the default maximun idle time for servlets in Contenedor Release 1.0.2.2.1, but I dont know where to do it. Please somebody help me!!
Saul,
Are you trying to setup the session timeout ? If so please look at the Web FAQ at http://otn.oracle.com/tech/java/oc4j/htdocs/OC4J-WEB-FAQ.html#7
regards
Debu Panda
Oracle -
How can I get SQL query excution time
Hi ,
When I run a query , How can i get total execution time for that query.
Thanks,
Regards,
Basha.There are several ways:
1. In SQL, issue SET TIMING ON
2. Trace your query:
- ALTER SESSION SQL_TRACE=TRUE;
- Execute your query
- ALTER SESSION SET SQL_TRACE=FALSE
- Decode the tracefile left at USER_DUMP_DEST using TKPROF. -
How to check the sql:query is return null value
I have use :
<sql:query var="sql1" dataSource="${db}">
select col_name from table_name
where a=<c:out value="${row.test1}"/>
and b='<c:out value="${row.test2}"/>'
</sql:query>
So, how can I check this statement return null value which is no record within this table?The Result should never be null but can be empty. You can check if the Result is empty using an if tag and checking the rowCount property:
<sql:query var="books"
sql="select * from PUBLIC.books where id = ?" >
<sql:param value="${bookId}" />
</sql:query>
<c:if test="${books.rowCount > 0}">
</c:if>http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSTL7.html#wp84217
Look for query Tag Result Interface -
How to display the SQL query's date parameters to the report
Hi all,
I'd like to take the date parameters that are contained in my query and have them appear on the report and/or have the sysdate appear on the report. Any ideas on how to do this? Thanks!Hi..
To display parameters which are part of SQl Query in the output..
http://blogs.oracle.com/xmlpublisher/2008/07/where_are_the_parameter_values.html
HTH.. -
How to get the sql query result?
Hi,
Currently I am using LV2012 to connect a Oracle database server. After the installations/settings for Oracle Express and Oracle ODBC driver done.
I am sucessfully to use the SQL command to query the data through my window command prompt.
Now the problem is, how I do the same task in Labview by using the database connectivity toolkits?
I have build a VI for query as attached, but i have no idea what pallete to use to get the query result.
Please help me ~~
Solved!
Go to Solution.
Attachments:
Query.vi 9 KBHere is a piece of code I use to test SQL commands, you can use the part that retrieves sql results.
It is also possible to get the column headers back, but that is for next lesson!
Attachments:
RunSQLCommand.vi 30 KB -
How to prove the SQL query will spawning the process
In a Oracle 10g database, i noticed a user running a sql query which contain lot of "group by" "order by" iin database, suspected it spawning multiple process in database then causing the ORA-00020: maximum number of processes exceeded.
My question is, is there any dictionary view or report that i can generate to prove that is the problematic sql causing the error?
Please help. Many thanks.John Stegeman wrote:
What makes you think that group by and order by spawn processes? In general, they don't. In fact, I cannot think of any reason they would (and if I'm wrong, I'm sure I'll be corrected forthwith)No, no correction.
A query is a query bound to a session.
I can only imagine that a query can spawn lots op parallel slaves when using parallel server. -
How to get the SQL Query statement of a Search Form ?
Hi all,
We have a requirement to send the query result of an ADF Search Form into report application (Crystal rpt).
Crystal can accept data source as query statement. SO I think of getting the exact query statement "generated" by the ADF Search form and send it to crystal.
Is this possible ?
Thank you very much,
xtantoTry the various get methods of the viewObject such as getQuery:
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtAnchor.getQuery%28%29/vtTopicFile.bc4jjavadoc%7Crt%7Coracle%7Cjbo%7CViewObject%7Ehtml/ -
How to change the SQL-Query in (Report in ReportViewer) by running Java App
Hello,
Ich have an App which generates dynamicly SQL-Queries. By pressing a button it should generate a report with this generated Query.
I´m using the ReportViewer.jar. Further is it possilbe to a extra parameters form app which are not in a DB?<p>There are a few ways that you can achieve this. If your SQL Queries have their filters modified (ie. WHERE clause) then this can be easily solved by adding report parameters to the Report filter. Search the in-product help for "Record Filter" and you should get a number of helpful resources returned.</p><p>Additionally, you can pass in java.sql.ResultSet objects with a populated recordset of the data you want to show in the report. We don't currently provide any tools to assist the creation of the code stubs for thick-client applications (like we do for JSP pages) however you can download a collection of thick-client sample code from here:</p><p><a href="http://support.businessobjects.com/communityCS/FilesAndUpdates/crxi_r2_jrc_desktop_samples.zip">http://support.businessobjects.com/communityCS/FilesAndUpdates/crxi_r2_jrc_desktop_samples.zip</a> </p><p>As I mentioned, this sample contains a collection of code snippets. The one in particular you will be interested in is titled "JRCResultsetDatasource". Hopefully, this will provide you with a few options. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>
-
How to write the SQL query for generating triangular numbers
Hi,
I have a table ..which stores the sequence number like this
Seq :
1000
1200
1300
1500
1800
1900
Now i want to get a result like this
1000 1000
1200 2200
1300 3500
1500 5000
1800 6800
1900 8700
how can it be achieved. I tried using Lead and lag. but only I can add the n+1 or n-1 results. Please help.I've never heard it called 'triangular numbers' before but I think you're looking for a 'running total':
SQL> WITH data AS
2 (
3 SELECT 1000 AS num FROM dual UNION ALL
4 SELECT 1200 AS num FROM dual UNION ALL
5 SELECT 1300 AS num FROM dual UNION ALL
6 SELECT 1500 AS num FROM dual UNION ALL
7 SELECT 1800 AS num FROM dual UNION ALL
8 SELECT 1900 AS num FROM dual
9 )
10 /* END SAMPLE DATA */
11 SELECT num, SUM(num) OVER (ORDER BY num) AS running_total
12 FROM data
13 ORDER BY 1
14 ;
NUM RUNNING_TOTAL
1000 1000
1200 2200
1300 3500
1500 5000
1800 6800
1900 8700
6 rows selected. -
How to convert the sql query result into xml ? PLease..Please..
I have a table Submission Record which contain a field with mix with text string and xml data type.
Table name: Submission Record
Field name: RCA
Jason
Tomato
<Record>AA</Record>
Fish
Brother
<Record>BB</Record>
<Record>CC</Record>
Tom is a girl
Its mixing with text and xml data.
I wish to convert all into xml data as per request from management.
my select statement is like below...but i think it may contain syntax error. Wish to get help from here.
sqltestagain = "select '<DATA>' || RCA || '</DATA>' from Submission Record".
Expect below will display
<DATA>Jason</DATA>
<DATA>Tomato</DATA>
<DATA><Record>AA</Record></DATA>
or any other solution for it ??
I've tried FOR XML....DBMS_XML......but none of it worked.....also look at xmlelement
SQL> select xmlelement("DATA", rca).getstringval() from
2 (
3 select 'Jason' RCA from dual union all
4 select 'Tomato' from dual union all
5 select '<Record>AA</Record>' from dual
6 )
7 /
XMLELEMENT("DATA",RCA).GETSTRI
<DATA>Jason</DATA>
<DATA>Tomato</DATA>
<DATA><Record>AA</Record></DATA>
SQL>
Maybe you are looking for
-
LG Screen on Macbook pro retina late 2014
I had a previous retina macbook pro with samsung screen. Just bought the newly release Late 2014 Macbook pro retina 15' model. I found that this new one has LG Screen. Are they still bad and do they still have image burn-in issues. Should i take it b
-
How do I get values into a vi from a subvi while the subvi is still running within the vi?
Hello This is my problem. I have a subvi that runs an experiment. At different point in the experiment different instruments are on or off and I have a boolean array display this info. It is updated at various points of the experiment via a local var
-
ABAP Web dynpro iview in your own namespace
Dear All, We have our own name space in ECC under which all our portal development have taken place. When we test our abap web dynpro application it works fine as we have created a new node in SICF /<namespace>/webdynpro. But now when we create AB
-
my ipod 2g dont work since last friday look like it is turn off i try the jailbreak and NOTHING HAPPEND cant show the apple in the middle eather my pc dont recognized the ipod and idk what to do Look i got the same problem asi him http://www.youtube.
-
Can fields be set to auto-fill
I would like to be able to auto-fill fields based on the first input where I have six fields to fill in. I cut and paste but auto-fill would be much better.