How to check the plan and statistics of queries written in block PLSQL
Hi all
I have a production database (11.2.0.3.0) on which I will only select access on the tables and sign in plsql from another schema. I do not have access to the file system, I can connect only with sqlplus.
I have a procedure which is having 2-3 requests each have the array of objects used in type from clause. I want to check the plan and the stats of these queries. Can you help me please?
Thanks and greetings
Alexander gelin
Alexandre Gelin says:
Thanks Karthick_Arp. I use the same method until now, but it's tricky. I don't know how to get the query statistics.
You can define STATISTICS_LEVEL = ALL at the level of the session
ALTER session set statistics_level = all;
You can then run your package
And then
Select * from table (dbms_xplan.display_cursor (SQL_ID, null, 'ALLSTATS LAST'));
This you will get estimated and actual statistics with buffer and reading.
Tags: Database
Similar Questions
-
I sent you an email through Eloqua. I don't know how to check the links and buttons are traceable?
Hi Lucie,.
There are 3 ways to check your links and buttons are traceable or not:
1. When you mouse pass the link or button it will not display the actual URL. It will show you a few encrypted URL which will redirect you to the actual URL.
2. connect to the eloqua account and search your email. When your email open ups click setting ICON and then click on manage links. All the links and URL of the button should be checked.
3. If you want to check at the level of the code make sure after all the links and buttons URL "elqtrack = true" must be written.
Hope this will help...
Thank you
-
How to check the status of the statistics on a table?
Hello
I started the statistics collection on a few large tables in my database.
How to check the status of statistics about a table? Are there views of data dictionary or tables to monitor the progress of the collection of statistics.
Regds,
MalikaHi all
You can check with this little script.
It lists details of sid for long as running session
When he started
What last update
How long still to the left
"ACTIVE/INACTIVE" session state etc.---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-Author: James Syed_
-Script_name: sid_long_ops.sql
-Description: list details of sid for long running the session as when it began when the last update how long still to the left.fixed lines 200
Neck LESS to a25Select
a.SID,
a.Serial #.
b.Status,
a.opname,
TO_CHAR (a.START_TIME,' DD-me-AAAA HH24:mi:ss) START_TIME,
TO_CHAR (a.LAST_UPDATE_TIME,' DD-me-AAAA HH24:mi:ss) LAST_UPDATE_TIME,.
a.time_remaining as 'time remaining dry. "
a.time_remaining/60 as "Min remaining time."
a.time_remaining/60/60 as 'remaining time in HR.
V $ session_longops a, v$ session b
where = select a.sid
a.sid = & sid
And time_remaining > 0;----------------------------------------------------------------------------------------------------------------------------------------------------------------
The sample output:
--------------------SQL > @sid_long_ops
Enter the SID value: 474
13 old: a.sid = & sid
13 News: and a.sid = 474SID, SERIAL # STATUS START_TIME LAST_UPDATE_TIME remaining time LESS dry time remaining minutes remaining HR time
--------------------------------
474 2033 ACTIVE collection schema statistics June 6, 2012 20:10:49 June 7, 2012 01:35:24 572 9.53333333.158888889Thank you & best regards
Syed James.
Oracle Apps DBA
Mobile: + 91 9966270072
E-mail: [email protected] -
How to view the monthly/annual statistics in terms of time past/calories burned, broken down by each individual activity such as run elliptical/outside etc. Y at - it a third party application that can help me to collect and display these data?
Hello
It is not currently possible to review the data the application integrated in activity or training on this basis. If you want Apple to consider adding this feature, you can suggest here:
https://www.Apple.com/feedback/watch.html
However, health and fitness data from other sources, iPhone, and Apple Watch are registered and grouped within the health on iPhone app. These data can be exported, which you may find useful to track the cumulative progress and/or analyze your activity more in detail.
IPhone app activity also has a button for sharing (top right of the screen) that allows to share data - including social media, Messages, Mail, Notes, and a printer.
Include third-party applications that can be useful, for example:
Access to QS
-"Access your HealthKit data in a table so you can Explorer using numbers, Excel, R, or any other tool compatible CSV."
- https://itunes.apple.com/gb/app/qs-access/id920297614?mt=8
SpectaRun workouts
-"View from the workouts of your Apple Watch on your iPhone and to export these workouts so you can download them to your favorite online running community."
- https://itunes.apple.com/gb/app/spectarun-workouts/id991723862?mt=8
Data can also be exported directly from the application of the health (Health Data > All - Share at the top button on the right).
Check the descriptions and support resources for third party applications for supported details of import and data analysis features.
More information:
Use the activity on your Apple Watch - Apple Support
-
If I'm the financials management manually, how can I show planned and actual spending?
Some companies want to manage all the finances manually and see the planned and actual spending. How is that possible?
If you manage finances in a manual mode, how to manage planned and actual finance is to:
1. go to the monthly tab and fill out your finances (planned) expected.
2 create a snapshot
3. you now have two choices.
3. you can remove all finance is entered monthly and updates tab to date with real being
3B. or you can simply update the monthly entries with your actual expenses
4 either compare against the snapshot for the variance.
-
How to check the value of the space of the tablespaces and tables when errors occur?
Hi Experts,
For example, lets say we get ORA-01653: unable to extend table of error. How to check the size of the table and a tablespace? And how understanding is full?
Thanks for your help
Hello
Select df.tablespace_name "Tablespace"
totalusedspace 'Used MB',
(df.totalspace - tu.totalusedspace) "MB free.
DF. TotalSpace 'Total MB. "
round (100 * ((df.totalspace-tu.totalusedspace) / df.totalspace))
"PCT free."
Of
(select nom_tablespace,
Round (Sum (bytes) / 1048576) TotalSpace
from dba_data_files
Group by tablespace_name) df,.
(select round (sum (bytes) /(1024*1024)) totalusedspace, nom_tablespace)
from dba_segments
you group by tablespace_name)
where df.tablespace_name = tu.tablespace_name
and df.tablespace_name = "
"; For example, lets say we get ORA-01653: unable to extend table of error. How to check the size of the table and a tablespace? And how understanding is full?
Is to say clearly to the question (you can let us know what you have understood so we can fix)
[oracle@machine1 ~] $01653 oerr ora
01653, 00000, "impossible to extend %s.%s table by %s in %s tablespace»
* Cause: Failed to allocate a certain measure the required number of blocks for
a segment of the table in the specified tablespace.
* Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more
storage of files indicate.
-Thank you
Pavan Kumar N
-
I got a lot of C cloud photographers present (Lightroom and Photoshop). I have an office and an alaptop on the plan and you want to add a second laptop. How can I do this?
Hello
Please try to sign in and out activate Cloud Creative applications
Concerning
-
I have a Macbook and I got the photographer and Illustrator plan, but I want terminate to get the plan of the student.
How to cancel the plans?Please contact our support for assistance staff
-
How to check the details of connection and disconnection of the team? I want to see the rate of use of the software.
Hello
I'm sorry but there is no option for monitoring the connection and disconnection of a user.
You can see their activation of license through your admin console.
Kind regards
Sheena
-
How to check the space on the asm and raw device?
Hi all
I want to know how to check the space on the device of the DSO.
We use a feature of the asm, which is on a raw partition.
Our archive is full. I need to check the space on asm archve partiotion.
How can I check the destination space archive?
We are using partition raw device for crs and voting system.
How can we check the space on the raw device and how do know us which device is currently in use and are not in service
Thanks in advance4 - 5 raw partitions...
What version of oracle?
Install the OCR + VOTE in gross unit better than OCFS2. If you use 10g to 11 GR 1 material.If use 11 GR 2, take the OCR + VOTE in ASM disk group.
You can check what raw OCR device:
$ ocrcheckVOTEDISK:
$ crsctl query css votediskOn 10g if using the raw device for OCR + votedisk: recommend 1 file = 250M
11g recommend 1 file = 512MGood luck
-
How to check the Windows key is original and unique user only
Hello
If I will buy another retailer windows operating system. so, how to check the windows key is original or not?
How to check the windows key is single user or three key user? How to learn about the windows key?
Hello
Find the key data is any tool?
In my State, one of the retailer sold out of the window in two different users. the key is the same. But I did not how many users should be used the key to this series?
That's why i, m here asking you friends
Then you have been sold an illegal license key, as a license key is never sold on its own, more a license key is never awarded to two different clients.
-
How to check the windows firewall has the stealth mode on and how he check actaully work
I have windows 8.1 with all updated.
Can someone tell me how to check the firewall windows has stealth mode?
Also, can someone tell me how I could actually check that, if it is then how can I check that it actually works against someone trying to find open ports to exploit?
Rich
Go to GRC.com here https://www.grc.com/lt/leaktest.htm
Read how to use it here https://www.grc.com/lt/howtouse.htm
Run the LeakTest
-
I need to know how to check the serial number of the product on the installed machine?
I need to know how to check the serial number of the product on the installed machine?
You can go to Adobe.com and connect to the Adobe ID used to register the program.
The serial number would be listed under Manage account > Products & Plans
-
How to change the SGA and PGA in 10g r2 RAC
Hello
How to change the SGA and PGA in 10g r2 RAC, its Linux.Hello
Here's the way I followed to change the SGA and PGA in CARS.
--------------------------------------------------------------------------------
Action plan to change the parameter memory in the environment(5/21/2010) of productionNote:
=====
Practice must be done in the DEV/TST environment before going to Production.
Although the procedure can be applied in the testing environment the evolution of values
used in the test environment should be amended since number of RAM are not the
even between the production and test servers.1 changes to these two parameters in one of
the prod instance, e.g. PROD1
====================================================
Connect as sysdba on sqlplus
--------------------------Change:
ALTER system set sga_target = 28G scope = spfile sid ='* ';
Change:
ALTER system set pga_aggregate_target = 4G scope = spfile sid ='* ';
SQL > alter system set pga_aggregate_target = 4G scope = both;
SQL > show parameter pga_aggregate_target;
-should see the number altered on both instancesChange:
SQL > alter system set sga_max_size = 28G scope = spfile sid ='* ';
SQL > alter system set sga_max_size = 28G scope = spfile;
SQL > alter system set sga_target = 28G scope = spfile;
3 stop PROD database (two instances must stop)
$> srvctl stop database d PROD
$>. / $ ORA_CRS_HOME/bin/crs_stat - to check the status of the database4. establish the PROD database (two Forum should be high)
$> srvctl START database-d PROD
$>. / $ ORA_CRS_HOME/bin/crs_stat - to check the status of the databaseconnection in both cases as sysdba to check
--------------------------------------------SQL > show parameter pga_aggregate_target
SQL > show parameter sga_max_size
-should see the number of change always there in both cases
-According to step 1-After confirmation above two parameters are changed on both instances.
-then make the syntax below in a case(5) check that everything is ok
-
Camileo S20 - How to display the date and time
Hi, all. I got as Christmas present the Camileo S20, and I am not able to view the date and time in the video. In the manual is no reference on this subject, only how to set the date and time. But what is the intention to set the date and time in the camera, if it is not possible to display video?
Hello
Have you checked the user manual of your TV cam?
If it of possible to display the data and the time you can find in your user manual how to do this. It always interesting to read ;) s
Maybe you are looking for
-
Hello my blocked (icloud
-
I did a full install of win7 from vista on my hp Pavilion a6250z desktop which has deleted my preinstalled software that came with the computer. They told me to go to hp and run detection system to reinstall the software, but after a lot of research
-
Need to re-install 'HP product Assistant.
I fatfingered delete to "HP product Assistant.msi' HP has been preloaded - have no installation disc - I deleted the software in the startup folder, but HP wants this minor piece of software at the end of loading and commissioning." I have files of
-
slow Sony Vaio with Windows XP
Suddenly, my laptop is very, very slowly. I have 67% free and I have cleaned and cleaned. I don't know much about computers, what can I do, please?
-
MX 200 &; 300 Italiano in user guides
Hello MX series user guides are available in Italiano? Thank you