SQL monitoring
Hi friends,
IS there a way to find the list of queries executed on the schema in oracle server by different application( toad, sql * plus, application).
Regards,
Vikash
Hi Vicash,
Also, note that STATSPACK (AWR) can keep a history of executed SQL statements:
http://www.dba-oracle.com/art_statspack.htm
Hope this helps. . .
DonaldK. Burleson
Oracle Press author
Similar Messages
-
Error while running new OEM 11.1.0.7 feature: SQL Monitoring
I am running OEM Database control with the new 11g version, Oracle 11.1.0.7. I am trying to work with the new feature SQL Monitoring, but I am getting the following error:
Loading data error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
Did someone saw that feature actually working? I only saw it in the OOW Demo.
I am getting the error both in Windows and Linux installations. Any idea why this error happen and how to overcome it?
Best,
MeravCheck for additonal (related) errors in the EM and Agent log files under $ORACLE_HOME/sysman
-
Error while runing SQL Monitoring new OEM 11.1.0.7 feature
I am running OEM Database control with the new 11g version, Oracle 11.1.0.7. I am trying to work with the new feature SQL Monitoring, but I am getting the following error:
Loading data error:
Did someone saw that feature actually working? I only saw it in the OOW Demo.
I am getting the error both in Windows and Linux installations. Any idea why this error happen and how to overcome it?
Best,
MeravHi Merav
select version from v$timezone_file;
VERSION
4
If you get 4 from that query use MetaLink Note 568125.1.
Have you installed Database Vault ? that might be related to your issue.
Can you please send us more details on the error?
Would you please investigate also :
-STATISTICS_LEVEL initialization parameter is either set to ALL or TYPICAL (the default value)
-CONTROL_MANAGEMENT_PACK_ACCESS parameter must be set to DIAGNOSTIC+TUNING (the default value)
Control also that :
select /*+MONITOR*/ * from dba_objects;
Please read that also:
http://structureddata.org/2008/01/06/oracle-11g-real-time-sql-monitoring-using-dbms_sqltunereport_sql_monitor/
Thanks
Edited by: Hub on Nov 20, 2008 10:59 AM
Edited by: Hub on Nov 20, 2008 11:01 AM -
SQL Monitoring using SQL Queries
Hi
I am using Oracle 10 g DB. I have an application which has Oracle as DB. Its a multiuser application. During the testing of one of the page we found that saving couple of records takes huge time (50-60 seconds). I dont have access to the logic written in application code to know which all queries gets executed when user click on save button.
I know that there is SQL Monitoring available in OEM why which you can find out the queries which got executed and also the execution time for those queries.
However I dont have OEM access.
Can you please let me know teh set of queries which probably will use few of teh V$ data dictionary views and provide me the same details as generated in the Monitoting report generated by OEM ?
I want to see all the queries which got executed in last defined time (say 10 mins, 1 hr etc) , same way as it is done in OEM and not just the last sql.
TIA
Regards
ArunHi,
I recommend you to install STATSPACK - it's a free tool that can be used instead of the Automatic Workload Repository (that is used in OEM).
This tool creates snapshots of V$ views in defined time period, so it enables you to see long runing queries in history.
If I were you I would run SQL trace just before the problematic part and then stop it just as it has finished. It would be better to run trace only for the problematic session or module - not for the whole database. SQL trace generates a file with all the executed queries, explain plans, stats, ...
In extreme case just create copy of v$sql before and after the problematic part and compare them (new sql_id, elapsed_time delta, ...) -
Sql Monitor is not working for forms10g
Hi All,
Sql Monitor is not working for forms10g.How can i solve this problems.
Regards
Gopinath Musing sqlmonitor i have traced the forms 6i (.fmx),in this case toad additional
software sql monitor is automatically added the frmbld.exe in application.
whatever i am doing in forms runtime the sqlmonitor provide the sql query.
for examble i am opening the lov with the help of F9.Now the sqlmonitor trace
the sql query for that lov item.so its very helpful to see the query without
the source(.fmb).
Now the problem is the sqlmonitor is not added the iexplore.exe in application.
because it added frmbld.exe only not for iexplore.exe.but the 10g forms are
running from the explorer.is there any other forms trace method is available
pls kindly guide to me. -
SQL Developer Stability - Real Time SQL Monitoring
I always get excited when a new release of SQL Developer comes out with all kinds of new features then I am quickly disappointed by the instability.
The 2.1 Real Time SQL Monitoring is a great example. It has such great promise but it is not stable, the refresh doesn't work, if you scroll it wipes out the display so I have to exit and re-enter. Is anyone having more success with this tool than me? Are there Java Settings I need to consider? I already learned that if running the query in question from SQL Developer it has to be in an unshared workspace or SQL Monitor won't come up.
Prior to going to native OCI connectivity my Connections Schema Tree was also very flaky, I work with huge delivered PeopleSoft HR Schemas most of the time.The file associations thing means you don't have access to the registry to associate file types. Probably connected to the Vista security model. Try registering the filetypes for use by sqldeveloper through explorer.
This other problems generally means you don't have write access to the sqldeveloper system directory. -
Using Sql monitor in Oracle SqlDeveloper
Hi ,
i tried to use SQL Monitor in Oracle SqlDeveloper but it says "i need to register the oracle "
is there any other way to use it ?
thank uHi,
I am not quite sure what you mean by "i need to register the oracle ". Are you referring to the Tuning Pack Required confirmation dialog? If so, then you should click on the Yes button if that option is licensed for your database installation.
Regards,
Gary
SQL Developer Team -
Hi Gurus,
I need a whole bunch of SQL monitoring SQLs in other words some data dictionary SQL scripts to monitor SQLs like following
--Top 5 worst sqls
select c.*
from (select disk_reads, buffer_gets, rows_processed, executions,
-- address,
-- hash_value,
first_load_time, sql_text
from v$sqlarea
where parsing_user_id !=0
order by buffer_gets/decode(executions,null,1,0,1,executions) desc ) c
where rownum <= 5
order by disk_reads desc;
Thanks
Amitava.Just look at the AWR data / run an AWR report.
See DBA_HIST_SQLSTAT. -
Why the SQL Monitor report do not display?
Why the SQL Monitor report do not display?
SQL> set serveroutput on
SQL> variable my_rept CLOB;
SQL> BEGIN
2 :my_rept :=DBMS_SQLTUNE.REPORT_SQL_MONITOR();
3 END;
4 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.93
SQL> print :my_rept
MY_REPT
SQL Monitoring Report
SQL>You can you hint /*+MONITOR*/, and then use this procedure to display the monitor report:
SQL> select /*+ monitor */ *from hr.employees where salary>10000;
SQL> variable my_rept CLOB;
SQL> BEGIN
2 :my_rept :=DBMS_SQLTUNE.REPORT_SQL_MONITOR();
3 END;
4 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:01.21
SQL> print :my_rept
MY_REPT
SQL Monitoring Report
SQL Text
select /*+ monitor */ *from hr.employees where salary>10000
Global Information
Status : DONE (ALL ROWS)
Instance ID : 1
Session ID : 170
MY_REPT
SQL ID : 4tj5p5m6qrkmp
SQL Execution ID : 16777216
Plan Hash Value : 1445457117
Execution Started : 04/30/2010 10:51:23
First Refresh Time : 04/30/2010 10:51:23
Last Refresh Time : 04/30/2010 10:51:23
| Elapsed | Other | Fetch | Buffer |
| Time(s) | Waits(s) | Calls | Gets |
... -
EM console - SQL monitor message: NO SQL exectuion monitored so far...
Hi All,
I have installed oracle11g (11.2.0.3.0) Standard Edition. When I run the EM console to view list of running SQLs I clicked on SQL Monitoring link but to my surprised there is no sql and message is NO SQL exectuions were monitored so far...I dont understand what is the issue. Below parameter already configured sofar :
control_management_pack_access = DIAGNOSTIC+TUNING
statistics_level = TYPICAL
Is this SE issue or can any one guide me?
Thanks in advance...SQL> show parameter timed
NAME TYPE VALUE
timed_os_statistics integer 0
timed_statistics boolean TRUE
SQL> -
Quest Sql Monitor...any others?
Been using Quest Sql Monitor 2.0.1.2 for a long time, wondering if others are using something else...thanks for any info!
Hi spilgrim
use it specifically for helping to debug local Forms.how which version of forms r u using..?
cause it's my too specifically used for my query or triggers db only
may u tell me how debug local Forms by toad do u mean pu only.?.
Regards,
Abdetu.. -
Why is OEM SQL Monitoring showing parallel on almost every statement
I'm confused here.
I'm running Oracle EE 11.2.0.2 and when I look in OEM SQL Monitoring, it shows nearly every sql statement running with a degree of parallelism of *2*.
I've checked dba_tables and the 'degree' for all tables is only 1.
I look at the actual sql statement, and there are no hints to tell it to use parallelism.
So why and how is the database using parallelism?
I do see that parallel_threads_per_cpu is set to 2, but this is default for our Solaris 10 operating system.
REF: (for 11.2)
===========
PARALLEL_THREADS_PER_CPU specifies the default degree of parallelism for the instance and determines the parallel adaptive and load balancing algorithms. The parameter describes the number of parallel execution processes or threads that a CPU can handle during parallel execution.
The default is platform-dependent and is adequate in most cases. You should decrease the value of this parameter if the machine appears to be overloaded when a representative parallel query is executed. You should increase the value if the system is I/O bound.
I guess the next question here is how to tell if my database is actually IO bound or not?Hi John. Thanks for your reply.
NAME TYPE VALUE
parallel_degree_policy string MANUALAnd so, the more I read about PARALLEL_THREADS_PER_CPU, the more I wonder if I should increase this value.
But first, I want to understand why I'm seeing parallelism in OEM set to 2 for almost everything that runs in the database, but note, NOT ALL.
Some queries, especially those running from Crystal Reports, are not using parallelism at all.
Is it possible to set a parameter at the session level that runs parallelism, and perhaps this is being done by the application?
I'm going to try increasing my PARALLEL_THREADS_PER_CPU to 4 and see if this changes the parallelism in OEM, (but I doubt it).
I should note that my most recent AWR report shows my db_file_sequential_read in the top 5 wait events.
This would imply my index reads and table reads by ROWID are waiting for disk - possibly I/O bound.
Edited by: 974632 on Jan 28, 2013 10:25 AM -
Disable SQL Monitoring for few servers
Hi Team,
I need to disable complete SQL Monitoring from all SQL servers except for a couple of servers.
For this I disabled the discovery "SQL Server Installation Seed" that is targeted on "Windows Server" class. Even after applying this override, I see that my objects are discovered in SQL server classes and I still get SQL server alerts
for all the SQL servers.
I am running SCOM 2012 SP1, so do I need to run "Remove-SCOMDisabledClassInstance"?
Also am I disabling the discovery for the correct class "Installation Seed"?
Thanks,
S K AgrawalHi Faizan,
Suppose you want to disable monitoring for a particular set of SQL servers. Here are the steps to be followed -
1) Create a group of these SQL servers.
2) Considering these are SQL server 2008, go to Authoring--> Object Discoveries.
3) Then disable the discovery for "Installation seed" class because that is targeted on "windows Server" class and is the base class for all other SQL Classes. You can do this by creating an override and disabling the discovery for the group created in Step
1.
4) Open a Operations Manager PowerShell window and run "Remove-SCOMDisabledClassInstance". You might get some error about RuleID and ObjectID. Don't worry about that and keep running "Remove-SCOMDisabledClassInstance" a few more times, finally you will get
a message of command completed successfully.
5) Then to confirm that discovery has been disabled, wait for few minutes and then go to Monitoring--> Discovered Inventory and change the target type to any of the SQL server 2008 class. You will not find the SQL servers from the group in the discovered
inventory.
To Re-enable the SQL monitoring, just remove the override MP or go to "installation seed" class for SQL server 2008. Open Override Summary, Click on Edit, and Remove the override where you have disabled the discovery.
I hope this helps.
Please mark this as Answer if this helped you. -
Hi,,
Is there any way to monitor the progress of the sql queries in oracle 9i other than v$session_longops
Thanks
lbnHi
One more thing
SID SERIAL# USERNAME OPTIMIZER_MODE HASH_VALUE ADDRESS SQL_TEXT
105 13149 MPS_OPER MULTIPLE CHILDREN PRESENT 1736428005 07000002BA3BA160 SELECT A.REQUEST_ID, A.ACCOUNT_NO, A.SRC_TYPE, A.SRC_ID, A.SRC_ID_SRV FROM BH_RECON_REQUESTS A , BH_RECON_REQUESTS B, BH_RECON_REQUESTS C, BH_UTL21A_REQUESTS D WHERE A.SRC_TYPE IN ('BMF' ,'ADJ') AND A.REQUEST_STATUS = 4 AND A.SRC_ID=B.SRC_ID(+) AND B.SRC_TYPE(+)='EMU' AND TRUNC(A.DATE_REQUESTED)>=TRUNC(SYSDATE-1) AND B.SRC_TYPE IS NULL AND A.SUBSCR_NO=C.SUBSCR_NO(+) AND C.REQUEST_STATUS(+)=0 AND C.REQUEST_ID IS NULL AND A.SUBSCR_NO=D.SUBSCR_NO(+) AND D.REQUEST_STATUS(+)=2 AND D.ACTION_TYPE(+)=9 AND D.REQUEST_ID IS NULL AND A.REQUEST_ID NOT IN (SELECT REQUEST_ID_DONE FROM WENU_EXP_PROCSD_IDS) AND A.REQUEST_ID < :B1
above is the out put for below query
select sesion.sid,
sesion.serial#,
sesion.username,
optimizer_mode,
hash_value,
address,
sql_text
from v$sqlarea sqlarea, v$session sesion
where sesion.sql_hash_value = sqlarea.hash_value
and sesion.sql_address = sqlarea.address
and sesion.username='MPS_OPER';
My question is why that OPTIMIZER_MODE is MULTIPLE CHILDREN PRESENT without telling CHOOSE , because optimizer_mode parameter we have set to choose
Thanks -
Problem installing packages for SQL monitoring activites - in OEM dbcontrol
hi guys,
possible to reinstall the OEM (dbconsole)component as i am having alot of running issues with it.
i do not intend to emca drop repository as the repository cannot be drop successfully as well.
( base on the emca log - i am stuck at
Getting temporary tablespace from database ) - log just stop at there.
so i went my own way and drop the sysman user
drop the MGMT_VIEW , the public synonyms and recreate the repository.
While configuring SQL activity Monitoring, i am suppose required to install packages but i keep getting the <i> cannot compute dynamic properties in time </i> error.
Went to metalink, search for this error [ID 739993.1], follow the fixed - but is of no help. (any other logs i can look at ?)
So i just want to reinstall this whole piece of thing again, but not sure whelther it is possible or not (as i think the dbconsole comes with the oracle software installation).
What should i do ?~~ I been trying this for days and hours .
any advices, gurus
- Desperate and angry noob.
Regards,
NoobSolved....
Although I add the same ILOM versions on both servers (2.0.2.6) I updated the ILOM to 3.0.6.15 and everything was installed successfully.
Maybe you are looking for
-
having problem purchasing credit on my apps.....giving me an error message that my purchase could not be completed for assistance contact itune support
-
Deployment of ADF Application on Oracle application server
Respected Experts , I have created a ADF application using Jdeveloper 10.1.3.2.0 the version of ADF is 10.1.3.40.66 Now i have the following questions. 1. I have installed Oracle Application server 10.1.3.1.0 (Oracle SOA Suite 10.1.3.1.0) ,how ever i
-
10.9 update effects on software RAID drives
Hi everyone, I would like to update my mac pro from 10.8 to 10.9 . I backed up everything but my major concern is that I have 2 HDDs that are RAIDed by the OS (software). The OS is on a seperate PCI SSD from OWC. Is there any change that the software
-
Hey everyone. When i sign in, my Mac just opens everything like normal. When i go into imessage, this is what i see: Then when i send the message i see: When i press sign in, i get this And so i have no idea what to do. I have tried signing out, i ha
-
What programs are needed to build facebook games?
I want to build a facebook game similar to Monster Legends. It will have turn based pvp, leader boards, guilds, leveling, rankings, quests, various currencies, teams, jobs/professions, vendors, story modes, customizable characters, customizable ski