Find out the SQLs which are using a full table scan
Hello all , how can i to find out the queries which are using a full table scan ? Any idea ?
In general, though, why would you want to tune SQL statements that aren't causing problems? Statspack will tell you what the most resource-intensive SQL statements on your system are. A SQL*Net trace of sessions that are performing poorly will indicate which statements are the most resource-intensive for that session. If a statement is incorrectly doing a full-table scan, but it is not causing a problem, why spend time tuning it? If you're not focusing your tuning attention on identifying statements that are causing problems, you'll also miss out on 90% of tuning opportunities which involve rewriting (or eliminating) code to make it more efficient. I can simulate a join on two tables with nested cursor loops, which won't generate a single full table scan, but replacing that code with a real join, while it will cause at least one full table scan, will be orders of magnitude faster.
As an aside, full table scans aren't necessarily a bad thing. If a statement needs to retrieve more than a couple percent of the rows of a table, full table scans are the most efficient way to go.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Similar Messages
-
How to find out the values which are assigned in authority group
Hi to all
Please tell me where can I find out the values which are assigned in authority object according to roles.
for ex :
Changed Customer: Account Authorization F_KNA1_BED
Changed Customer: Account Authorization T-DR50175601
Activity 01, 02, 03, 08 ACTVT
Authorization Group 5100 BRGRU
F_KNA1_BED is the authority object , assigned to one user.
He can access the authorization group 5100. I want to check that value in my program.
How ?
Where it is stored.
Please help me....
Regards
Anubhav GuptaHi Anubhav,
Please use this FM "SUSR_USER_AUTH_FOR_OBJ_GET" and pass the object name in it . You would get the values for that particular object.
Thanks
Nitin Sachdeva -
How can we find out the disk which is used for a mount point
How can we find out the disk which is used for a mount point?
one of our mount point(/u03/oracle/prod) was using high I/O and this was causing slowness in the server.
I can see a disk operation error in errpt at the same time as below. Wanted to check whether the mount point /u03/oracle/prod is using the disk hdisk31
$errpt|more
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
DXB78877 1125032114 T H hdisk31 DISK OPERATION ERROR
OS version:AIX 6.1
DB:11.2.0.2this is the output for cat /etc/filesystem
/u02:
dev = /dev/fslv00
vfs = jfs2
log = /dev/loglv00
mount = true
options = rw
account = false
/u01:
dev = /dev/fslv01
vfs = jfs2
log = /dev/loglv00
mount = true
options = rw
account = false -
How to identify the SQLs which are using the tables and new columns
Hi
I m using oracle 10G Database in windows. Developers have added some columns in some of the database tables and were asking to check whether there is some impact on performance or not. I have not done this performance tuning before. Kindly help me how to proceed further.
How to obtain the sqls which are touching the tables and the new columns? It would be really great if you can help me with this.
ThanksYou can try to use DBA_DEPENDENCIES to get PL/SQL objects using tables: http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1041.htm#i1576452.
However if SQL code is not stored in database in a trigger, a procedure, a function, a package or a view, it is impossible to retrieve all SQL code referencing some table from database dictionary: for this you would have to analyze application source code. -
Using powershell to find out how many people are using the on-prem SkyDrive
Hi
Is there a way of using powershell to find out how many people are using the on-prem SkyDrive?
Thank you.Hi,
According to your post, my understanding is that you wanted to use PowerShell to find out the users who use the on premise SkyDrive.
As this is the forum for SharePoint Server, I recommend you post your question to the forum for PowerShell or SkyDrive.
Windows PowerShell forum:
http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverpowershell
SkyDrive forum:
http://answers.microsoft.com/en-us/onedrive/forum/sdsignin?tab=Threads
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
Find the service which controls agent on job server and find out the login it's using ?
How do I find the service that's controlling my SQL server agent on the job server and find out the login it's using ? Is there a query for this ?
Go to SQL Server Configuration Manager and you will see the SQL Server Agent service there with all the information you need.
Programmatic way:
http://stackoverflow.com/questions/7324407/get-service-account-details-of-the-sql-agent-service
Kalman Toth Database & OLAP Architect
IPAD SELECT Query Video Tutorial 3.5 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
How to find out the columns which has 16 digit credit card number
Hi All,
I have a requirement where in i need to find out the columns which has 16 digit credit number in it and create a report with owner, table name and column name.
The issue is that the credit card number can be entered in any columns of any table of any schema. For example the credit card number can be entered in any description field(eg: The number is 4001412134642881), in that case i need to filter only the numbers and do the LUHN check to validate the credit card number.
Please provide me a suggestion on how to scanl the values of all the columns to know the column which has credit card number.
Regards,
Raj.Tell me this - how the hell do you have a database with credit card number data and NOT know which columns of which tables contain credit card numbers? (and how on earth is this data NOT encrypted!?)
How is what you want to do, NOT a fishing expedition to hack a database that may or may not be storing credit card details?
And do you honestly think that we should simply trust that once you have extracted these numbers, performed a Luhn algorithm to verify these as credit card numbers, you are not going to fraudulently use these credit card numbers!?
I have marked your posting as an attempt to hack an Oracle database for fraudulent use of credit card data. I hope that your OTN account is terminated soon and trust that your too much of a coding idiot to actually succeed in this endevour. -
Need to find out the queries which did not executed in 2014
Hi All,
I need to find out the queries which start from YY and did not executed in 2014, earlier we used to find out by looking into the technical content cube 0TCT_C02 but now its giving dump as number of queries increases. I tried to find out using table RSZCOMPDIR but not able to trace it exactly. Please suggest some alternative solution to find out the queries which did not execute in 2014 so that we can delete it.
Thanks,
Asim.Hi,
RSDDSTAT_OLAP : This is the table which contains query execution details
CALDAY field in that table gives you query execution date
OBJNAM gives the query name
As you said RSZCOMPDIR gives list of all queries. doing a lookup between these tables will identify the queris which are not executed in particular period.
-Sriram -
Need to find out how many users are using Siebel Application
Hello all,
I need to find out how many users are using Siebel Application?
Is there a way I can find out?
Thanks.
yasunHi,
Read the following:
http://docs.oracle.com/cd/B40099_02/books/SysDiag/SysDiagSysMonitor30.html
http://docs.oracle.com/cd/B40099_02/books/SysDiag/SysDiagSysMonitor17.html
For full information about server status and statistics red:
http://docs.oracle.com/cd/B40099_02/books/SysDiag/SysDiagSysMonitor.html
T.Abed -
Finding out the username which created a spesific company code
How can I find out the username which created a spesific company code?
Thanks in advance.Hi:
In IMG (Tcode SPRO), go to Enterprise structure > Definition > FI > Edit, copy, delete, check Company code; double click on the Co Code, Utilities > Change Logs, check the dates.
Give it a try
Reward if helpful
Aaon -
Trying to find out the sql for the below 3 values
HI Experts,
I am trying to find the sql that can give me the values for the below three values. can some one Help me out getting these ?
Free buffer waits (%)
Local write wait (%)
Latch: cache buffer chains (%)
Actually these are the metrics which are available in OEM for the DB releases up to 9i. Post 9i releases , these metrics are obsoleted.
So, trying to find the sql for these and use them as an UDM for the 10g and 11g DB's
Thanks in Advance.
Thanks,
Naveen kumar.And is there any why to find using what sql the metrci is formed ?
-
Finding out the Batch which is present during creation of delivery
Dear All,
I need to keep track of changes in batch during delivery. I can find out the change using change documents ( tables CDHDR and CDPOS ). The problem is it keeps track of batches only after the document is saved . If during creation the batch is changed , we are not able to see the initial batch , all the other changes can be tracked using change documents. How can we find out the batches during creation of delivery ( Is there any table which stores the batch no during delivery.
Regards
D. MallickThis does not looks possible...Changes can only be tracked once they are saved.
-
Table to find out the list which shows the last load of infoobjects
Hi All,
I have to find out the Info objects which stop loading in production system, so that we can delete number range buffering for those objects. In table RSDCHABALSLOC I found the info objects which has number range buffering. But total 17000 objects are there its not possible for me to go and check in manage tab for each object manually. I need a table which shows the information like when was the last load happened for the info object. I checked in RSDIOBJ table but time stamp of it not matching with manage data target tab of Infoobject.
Regards,
AsimHello Asim,
Have a look at the table RSLDPIO, this should give the last run time of infopackage with other details like related datasource, info object etc. everything.
Just go to SE11 and display data of this table - provide your datasource name to OLTPSOURCE or Info Object Name to VARIANT. Also you can check based on specific infopackage name.
Then sort it in ascending on TIMESTAMP, top most timestamp will be the last run time of that infopackage.
Another helpful table will be RSREQDONE.
Please let me know if this serves the purpose.
Thanks
Amit -
How to find out the line which caused the runtime error in a SP?
We have a situation like this.
We are consulting company doing consultancy services on Oracle technologies.
One of our clients have PL/SQL stored package.
We found out by debugging the Oracle Forms front-end application that
error is generated by a procedure inside this package.
Problem is that this procedure has over 6000 lines.
How do we figure out the line which caused the error?
We tried putting messages in between, but not have been successful.
Any help would be greatly appreciate.How do we figure out the line which caused the error?
We tried putting messages in between, but not have been successful.
What does that mean exactly?
Typically you would instrument the code (especially for multi-step ETL/transform processes) to capture/log key information.
Also, key sections of code would also be in their own BEGIN/EXCEPTION/END block so that you would know what block caused the exception.
step_num NUMBER; -- what step is being executed?
BEGIN
step_num := 1;
. . . do something
step_num := 2;
. . . do something else
EXCEPTION
-- when you get here the 'step_num' variable will have the number of the step that caused the exception. Log it and then handle/reraise it.
END; -
Finding out the OH that are included in the process chain
Hi,
Please let me know how to find out the list of OH which are included in the process chain and which are not included.
Is there any way where i can find out these OH are included in the Process chain.
Regards,
PremHi,
http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/43/7a69d9f3897103e10000000a1553f7/frameset.htm
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/01d3a090-0201-0010-9783-bc33ab690e70?QuickLink=index&overridelayout=true
Maybe you are looking for
-
Error starting Oracle BAM active data cache service
Hi after installing BAM every thing working fine ,but if restart my system Oracle BAM active data cache service throwing following error "The Oracle BAM Active Data Cache service on Local computer started and then stopped.Some services stop automatic
-
Maintenance Cost Key Figures in MCI3 and MCI8 Reports
we are using ECC6 EHP4 version. Maintenance Cost Key Figures in MCI3 and MCI8 Reports are not reflected the cost as given in different value categories in work orders. I have configrured the PMIS "Assign Value Categories to Maintenance Cost Key Figur
-
Can i use 32Gb RAM on my macbook pro 2012
Can i use 32Gb (2 x 16Gb) RAM on my 2012 Macbook Pro????
-
SEHException is thrown when calling PrintOutputController.Export (CRXIR2ES)
Hi, I am using CRXIR2 server embedded to run reports on a .net desktop application. In one deployed environment, when trying to run one specific report, after calling: crystalByteArray = reportClientDocument.PrintOutputController.Export(CrReportExpor
-
How to demonstrate pre-built Oracle BI capabilities?
Hi Forum, Can anyone give me insight, on how to demonstrate Oracle BI capabilities to show the pre-built reports and dashboards with data? Please explain me the right approach for showcasing the capabilities of Oracle BI. Thanks