Finding The statistics of a Query
I would like to find the statistics of a query.
we can obtain the stats when we do "set autotrace on" in SQL PLUS.
and when we run a query it gives the reads, recursive calls etc.
where are these stats stored? where can i get them from?
to add more to it;
we can select the Plan from of a query after explaining the plan and running this query - select * from table(DBMS_XPLAN.display);
Is there a similar way to select the statistics of the query?
Thanks.
can you please explain what does the staistic refer to?Have a look at Statistics Descriptions
Similar Messages
-
When I run the code below I get the following error:"RUN-TIME ERROR '3078': The Microsoft Access database engine cannot find the input table or query 'False'. Make sure it exists and that its name is spelled correctly. Note that I do not call
anything by the name of "false" anywhere in this code.
The subject code (the underscored line of code is highlighted in the debugger when the error occurs):
Option Compare Database
Private Sub JobAssign_Click()
MatLotListAvail_openform
End Sub
Function MatLotListAvail_openform()
Dim dbsAPIShopManager2010 As DAO.Database
Dim rstMaterialLotJobJoint As DAO.Recordset
Dim strSQL As String
Set dbsAPIShopManager2010 = CurrentDb
strSQL = "SELECT * FROM MaterialLotJobJoint WHERE JobID" = "tempvars!JobID" And "MatLotID" = "tempvars!MatLotID"
Set rstMaterialLotJobJoint = dbsAPIShopManager2010.OpenRecordset(strSQL, dbOpenDynaset)
If rstMaterialLotJobJoint.EOF Then
DoCmd.OpenForm "JobAssignMatConf", acNormal, "", "", acEdit, acNormal
Forms!JobAssignMatConf!PartapiIDVH = TempVars!PartapiID
Forms!JobAssignMatConf!JobapiIDVH = TempVars!JobapiID
Forms!JobAssignMatConf!JobIDVH = TempVars!JobID
Forms!JobAssignMatConf!MaterialLotIDVH = TempVars!MatLotID
Forms!JobAssignMatConf!Desc = TempVars!MatDesc
Forms!JobAssignMatConf!recdate = TempVars!recdate
DoCmd.Close acForm, "MaterialLotListAvailable"
Else: MsgBox "This material lot has already been assigned to this job."
DoCmd.Close acForm, "MaterialLotListAvailable"
End If
End FunctionI think the SQL statement should be
strSQL = "SELECT * FROM MaterialLotJobJoint WHERE JobID=" & _
tempvars!JobID & " AND MatLotID=" & tempvars!MatLotID
This assumes thatJobID and MatLotID are number fields.
Regards, Hans Vogelaar (http://www.eileenslounge.com) -
How to find the queryid of a query
Hi,
Can someone suggest how to find the queryid of a query?
Many thanks,
Xibihi xibi
please follow my simple way to find the queryid of the query.
Go to open qeury from BEx, select the query for which you wish to see the queryid, copy the query using CtrlC and paste the same to notepad CtrlP.
There you can see the queryid with all the other details also.
The result you find with this method is the easiest i hope.
hope this helps
regards
vijaykumar -
How to find the cpu usage per query for a time period
Hi All,
Is there a way to find the cpu used per query for a given time period?
DB:10.2.0.5
OS:AIX
Thanksuser13364377 wrote:
if there are multiple queries starting at the same time, then what to do?Handle: user13364377
Status Level: Newbie (10)
Registered: Jul 5, 2010
Total Posts: 264
Total Questions: 113 (84 unresolved)
why so many unanswered questions?
clarify your question
same SQL multiple times from different sessions?
or
different SQLs from different sessions? -
How to find the Executed time of query
hi,
i want to find out the execution time of query like a sales report executed in 10 min. how to find out that? is there is any TC for that or what is the option to use that?
and how to fing out execution time of Data source to info providers.. or DSOs to IC? like how much time taken to load data?
regards,
preetyHello Preety,
Goto RSRT give the query name and see the technical property you will find the query generation time.
For the time taken for execution Select the execute and debug mode in the options select display statistics.
Execute the query
Click back
You can see the statistics.
Thanks
Chandran -
How to find the date difference in query level?
Hi All,
I have to find the difference between Delivery Date and Posting Date in the query level. Canyou please let me know whether it is possible or not?
Thanks in advance!!
Regards,
Ramanathan.RHello,
If both infoobjects are key figures , then you can do the calculations. Create new formula and do the calculations.
If infoobjects are characteristics, then also you can perform the calculations but you can do this by creating a formula variable using replacement path.
Thanks,
Praveen Tati -
How to find the URL of precalculated query
Hello,
I would enter into a precalculated query direclty the URL; is it possible? How to find the URL ?
Thanks.Hello Arvin,
I have created a Web Template, and through the Reporting Agent, I run the query.
Regards,
Laura -
Finding the Text of SQL Query causing Full Table Scans
Hi,
does anyone have a sql script, that shows the complete sql text of queries that have caused a full table scan?
Please also let me know as to how soon this script needs to be run, in the sense does it work only while the query is running or would it work once it completes (if so is there a valid duration, such as until next restart, etc.)
Your help is appreciated.
Thx,
MayuranFinding the Text of SQL Query Causing Full Table Scan
-
How to find the source generating DNS Query
Hi team,
we are getting error message for DNS total query
Received/sec is getting more than 250 . can any one help me how i know the source where these query are generated .
DNS Total Query Received/sec is 308.11; >TH = 250
Regards, TriyambakNote: For this to work correctly you’ll need to run this part of the process from a domain controller. In this example I’m using a 2012 R2 DC but the process should be the same for 2008 and 2008 R2, unfortunately this process doesn’t apply to 2003 DCs, for
sure you can use SPA and get similar information but the good thing is that you’ve got rid of those old 2k3 DCs right?
http://blogs.technet.com/b/askpfeplat/archive/2013/12/16/domain-and-dc-migrations-how-to-monitor-ldap-kerberos-and-ntlm-traffic-to-your-domain-controllers.aspx
You can add the DNS
Regards~Biswajit
Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights.
MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin
MY BLOG
Domain Controllers inventory-Quest Powershell
Generate Report for Bulk Servers-LastBootUpTime,SerialNumber,InstallDate
Generate a Report for installed Hotfix for Bulk Servers -
How to find the STATISTICS COLLECTOR infomations
Hi experts
where i can find these informations,
Average dialog steps
For week & For a day
Peak dialog steps on a day
Average dialog response time
For week & For a day
Peak dialog response time
Average memory utilization
For week & For a day
Peak memory utilization
For week & For a day
Average database response time,
For week & For a day
Peak database response time,
For week & For a day
Average CPU load
For week & For a day
Peak CPU load
Average no of users logged into the system for a week, on a day during the peak hour traffic
Please help me to find
Thanks & Regards
VenkatHello Venkatesan,
If you are asking about statistics the best transactions would be:
ST03N- This transaction is a workload analysis monitor. Here you can switch to expert mode and select detailed analysis menu.
There is an option to select for the current day. If you want to have data for a week, select the analysis type (example: detailed analysis) and give the start date and any other filters you want.
The system will then display, avg dialog response time, DB time, CPU time etc.
For memory usage statistics, there is an option in the left Pane called Memory usage statistics. Select this.
Where as ST03N gives an aggregated statistical view, another transaction STAD gives and unaggregated view i.e it display each execution of transaction independently.
One more thing, for the JAVA stack, the statistical records will be displayed in ST03G (Global workload analysis- aggregated) and STATTRACE (unaggregated).
For CPU peak loads i would suggest the transaction ST06 and for database the transaction ST04.
For a complete picture of the buffers and their utilization, the transaction would be ST02
Hope this helps
Regards,
Prashant -
Please help me to find the problem in this Query
hi
This is my xml structure,
<?xml version="1.0">
<rss version ="2.0">
<channel>
<Lgs>
<Lg>
<Fid>16447</Fid>
<Fname>Sam</Fname>
</Lg>
</Lgs>
<Lgs>
<Lg>
<Fid>206</Fid>
<Fname>David</Fname>
</Lg>
</Lgs>
<Lgs>
</channel>
</rss>
I need to limit the results ie, at a time retrieve only "10" results , also that should be ordered by node "Fid".
I am using PHP-API
and following query is i have used...
$query = "let $hits := (for $hit in collection('gview.dbxml')/rss/channel/Lgs/Lg order by $hit/Fid return $hit) return subsequence($hits, 1, 10)";
$results = $mgr->query($query);
getting the error,
Fatal error: Uncaught exception 'xmlexception' with message 'Error: syntax error, unexpected :=, expecting <end of file> [err:XPST0003], <query>:1:8' in /usr/local/apache/htdocs/add_loc_file.php:99 Stack trace: #0 /usr/local/apache/htdocs/add_loc_file.php(99): xmlmanager->query('let := (for i...') #1 {main} thrown
Message was edited by:
user647571The "$hits" in your string is being interpreted by PHP as a variable reference and substituted out before DB XML gets the query.
John -
Please help me in finding the solution for this query
Hi Experts,
How could i print column name's second word in next line
suppose am taking ename alias as "employee name"
i want to print the second word "name" in next line
like
"Employee
Name"
Whats the way of writing this query
Please help me out
Thanks in AdvanceHi,
914618 wrote:
WITH mydata AS
SELECT 1 emp_id, 'John Smith' emp_name FROM DUAL UNION ALL
SELECT 2 emp_id, 'Steve Jobs' emp_name FROM DUAL UNION ALL
SELECT 3 emp_id, 'Larry Allison' emp_name FROM DUAL
SELECT emp_id, emp_name
FROM mydata;
after executing the above query the o/p I am getting is in the normal format like EMP_ID and EMP_NAME
not according to my requirement like
Emp Emp
Id NameWhat are the results you reaally want? Do you want this?
` EMP_ID SPLIT_NAME
1 John
Smith
2 Steve
Jobs
3 Larry
AllisonIf so:
SELECT emp_id
, REPLACE (emp_name, ' ', CHR (10)) AS split_name
FROM mydata
;The results above are 3 rows, not 6.
What results would you want if emp_name contained 3 or more words? For example, if you add this to the sample data:
SELECT 9 emp_id, 'Aung San Suu Kyi' emp_name FROM DUAL UNION ALL -
Finding the Text of SQL Query Causing Full Table Scan
Hi,
does anyone have a sql script, that shows the complete sql text of queries that have caused a full table scan?
Please also let me know as to how soon this script needs to be run, in the sense does it work only while the query is running or would it work once it completes (if so is there a valid duration, such as until next restart, etc.)
Your help is appreciated.
Thx,
MayuranYou might try something like this:
select sql_text,
object_name
from v$sql s,
v$sql_plan p
where s.address = p.address and
s.hash_value = p.hash_value and
s.child_number = p.child_number and
p.operation = 'TABLE ACCESS' and
p.options = 'FULL' and
p.object_owner in ('SCOTT')
;Please note that this query is just a snapshot of the SQL statements currently in the cache. -
How to find the objects that are used for a particular BEx query
Hi ,
I am preparing the inventory for BEx queries. Means for a particular BEx query I want to know the correcsponding
1. Selection screen variables
2. Characteristics
3. Restrcited, Calculated and normal key figures.
I have checked all the BEx query related tabe but unable to find the proper relation between these tables to get the desired output.
Can you help for table joins to get the output as mentioned above.
Thanks in advance.
Regards,
SaiHi,
you want find the total information about query details use the T CODE - RSRTQ.
give the proper selection then execute.
please find the doc.
RSRTQ – Query Definition – Multipurpose T-Code on BEx Queries
Thanks,
Phani. -
How to find the backend SQL query of the JSP page in OIC
Does anybody how the best way to find the backend SQL QUERY of OIV JSP page?
How To Generate Trace Files in in HTML/JSP (using Profile Option)
Note: This requires proper responsibility to set SQL Initialization statement using Profile option.
Step 1. Login to the desired Form application.
Step 2. Select +Profile >> System ('Find System Profile Values' screen will pop up)
Step 3. Check 'User' and Type in the Username (in which the account for that user will be trace)
Step 4. Type 'Initialization%' in the Profile box and Hit 'Find' (Click here for preview.)
Step 5. In the User box, type the following statement and Hit 'Save' (Click here for preview)
BEGIN FND_CTL.FND_SESS_CTL('','','TRUE','TRUE','','ALTER SESSION SET TRACEFILE_IDENTIFIER = TESTING MAX_DUMP_FILE_SIZE = 5000000 EVENTS ='||''''||' 10046 TRACE NAME CONTEXT FOREVER, LEVEL 12'||'''');END;
Note: specify any name you like to identify your trace, in this case, testing is the end name on the trace. You can also specify the amount of data allowable to be in the trace, in this case, 5000000 is the amount set. Make sure you hit 'Save' afterwards.[Quotes in the statement are all 'Single' quotes.]
specifying TRACEFILE_IDENTIFIER value is mandatory when setting up the trace using the above profile option value
Step 6. Login to HTML / JSP page with username/password and start your flow. (Everything you do once login to HTML / JSP will get trace.)
Step 7. Logout of HTML / JSP application once you completed with your flow.
Step 8. Go back to the Profile option in the Form application and delete the Initialization SQL statement, and Hit 'Save'.
Step 9. Log in to the database server or login server and retrieve your trace file.
Identify and retrieve the trace file using the tracefile_identifier specified in Step 5.
In this case the tracefile_identifier is TESTING. (Click here for Trace file locations) *
Note: If you need to regenerate your trace or tracing a new flow, then repeat Step 1 to Step 8. To avoid self-confusion, choose a different name for your trace identifier everytime you set to trace.
Step 10. See TKPROF section on how to format trace file into readable text.
Trace Options Definition
No Trace Tracing is not activated
Activities will not get traced.
Regular Trace
(Level 1) Contains SQL, execution statistics, and execution plan.
Provides execution path, row counts as well as produces smallest flat file.
Trace with Binds
(Level 4) Regular Trace plus value supplied to SQL statement via local variables.
Trace with Waits
(Level 8) Regular Trace plus database operation timings that the SQL waited to have done in order to complete, i.e. disk access.
Trace with Binds and Waits
(Level 12) Regular trace with both waits and binds information.
Contains the most complete information and will produce the largest trace file.
****Send me an email to [email protected],I will share the document with you.
Maybe you are looking for
-
CUSTOM DOCUMENT over internet file name convention
Hi , I am sending an OAGIS xml file(CUSTOM DOCUMENT over internet) through interal delivery channel to our supplier, I am getting an below error. I got the same error while processing an EDI transaction, I change the file name, and then it processed
-
Report to determine Cost centers with Percentages
Hi Please suggest a report where I can pull the data related to an employee travel expenses with COST CENTERS, along with percentages if multiple cost centers exist, for a particular Personal Area. Thanks
-
Java Web Services Developer Pack, where is jwsdp.home defined?
Hi. I am trying out the Web Services Developer Pack, and so far so good, a really nice package of tools, tutorials and examples. But there is one thing I do not understand regarding the Ant scripts for building the various examples. In most of the sc
-
ORA-19870: error while restoring backup piece
RMAN> duplicate target database for standby; Starting Duplicate Db at 30-06-2011 10:39:45 using target database control file instead of recovery catalog allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=488 device type=DISK contents of Me
-
Want my bytes unsigned but I am doing something wrong
Hello I have the following code byte ptr[]; ptr = new byte[4]; ptr[3] = (byte)(v); ptr[2] = (byte)(v >> 8); ptr[1] = (byte)(v >> 16); ptr[0] = (byte)(v >> 24); v was made in an other part of the program int v=0; v = ptr[3]+ptr[2]*256+ptr[1]*256*256+p