SQL History from Enterprise Manager

Hi Experts i need your help.. actullay i need SQL Text that is executed by DB User . i wan to know how to get SQL text history from Enterprise Manager .. my DB Version is 10gr2(10.2.0.4).
regards,

ok ..thanx .. can i view all historical SQL Text that is executed by a perticuler User say SCOTT.??? In the same page within SQL DETAIL you can find task owner also,

Similar Messages

  • SQL History from Entreprise Manager

    Hi Experts i need your help.. actullay i need SQL Text that is executed by DB User . i wan to know how to get SQL text history from Enterprise Manager .. my DB Version is 10gr2(10.2.0.4).
    regards,

    Duplicate thread!
    SQL History from Enterprise Manager

  • Monitoring pl/sql execution from Enterprise Manager

    I need to implement monitoring of PL/SQL code from within Oracle Enterprise
    Manger 10g. OEM has Custom user defined metrics (UDM) that allow one to issue
    queries against a database and decide whether the output from the query is a
    warning or a critical alert based on some threshold.
    In my case, my pl/sql will write to a database table that OEM will monitoring by
    querying periodically.
    My question is how does OEM know not to report on the same error about the same
    session multiple times. Once OEM has detected that my PL/SQL routine generated
    an exception during one of its execution, how will know not to alert on the same
    exception from the same pl/sql execution, the next time it's querying the
    database?
    It almost sound like the SQL query OEM will be executing needs to know what it
    reported on before.
    Any clarity on this would be appreciated.

    ok ..thanx .. can i view all historical SQL Text that is executed by a perticuler User say SCOTT.??? In the same page within SQL DETAIL you can find task owner also,

  • How to avoid timeouts from Enterprise Manager/BPEL console?

    Occasionally I want to deploy (from JDev) some BPEL processes to the AppServer.
    Surprisingly I got some errors. I found out when I re-login into
    Enterprise Manager and tried again to deploy it everything works fine.
    So it seems to me all errors occur because of a forced logout from Enterprise Manager.
    How can I avoid such situations?
    Peter

    Hi peter,
    See this forum link:
    Re: How to avoid auto-logout (=timeout) BPEL console?
    It contains your post only. See it.
    Cheers,
    Abhi...

  • SQL Tuning using Enterprise manager in oracle 10g

    Hi,
    In oracle 10g you have the enterprise manager which can be used to tune sql statements using the SQL Tuning ADvisor and SQL access advisor.
    I believe in oracle 10g the process of SQL Tuning is slightly easier using the Enterprise Manager ...so if some one could explain me that process...
    Again thanking you in advance
    regds
    Manoj Gokhale

    Hi Manoj,
    Didn't you already start two other threads about this same question the SQL forum?
    How do i do the SQL Statement tuning
    Enterprise Manager - sql tuning advisor , Access advisor for SQL Tuning

  • Export error from enterprise manager

    Im getting this error when trying to do a table export from enterprise manager(oracle 10g statndard edition). There is a problem writing to the export files: ORA-39094: Parallel execution not supported in this database edition. I looked on line and places said to have parallelism to 1 but i think i already have that set.
    Export Type Tables
    Statistics type Estimate optimizer statistics when data is imported
    Parallelism 1
    Files to Export WRITABLE_DIRECTORY tables.DMP
    Log File WRITABLE_DIRECTORY EXPDAT.LOG

    Its trying to create a dump file, but file by that name already exists. Verify that name & path is correct.

  • Error deploy shared library from Enterprise Manager IAS10.1.3.5.0

    Hi,
    I am trying deploy one shared library in my OC4J instance (prd_oc4j) from Enterprise Manager, but when i run my application its not loading this library (error missing class), but when i put this shared library in file server.xml without Enterprise Manager my application run sucessfully.
    Help me please or this problem is a bug?
    Tks,
    Haysar Lelis

    If finally found the cause of the problem, lack of PermGen space for the home instance;
    When opening the EM Console most of the times i was able to open the login page, under stress opening this page failed most of the times.
    The ascontrol-application.log pointed me in the right direction;
    10/09/07 15:26:59.111 ascontrol: Servlet error
    java.lang.OutOfMemoryError: PermGen space
    When monitoring the PermGen of the home instance, is showed that the system was running out of PermGen space.
    Increasing the PermGen size for the home instance in opmn.xml did the trick
    <data id="java-options" value="-Xrs -server -XX:MaxPermSize=128M......"

  • Error messages from Enterprise Manager Grid control

    Hi,
    Hi,
    I get several messages in my email daily from Enterprise Manager that Services from Application server control are down when all ther services are up and running. Messages like
    EM Alert: Critical: testdev - The OC4J instance is down.
    Any idea why this is happening.
    Thank You

    Here is the error in the "installActions<date>.log" file:
    SEVERE: OUI-25031:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured.
    1. Check the Details panel on the Configuration Assistant Screen to see the errors resulting in the failures.
    2. Fix the errors causing these failures.
    3. Select the failed assistants and click the 'Retry' button to retry them.
    I checked in the details section and it listed this as the issue:
    Configuration assistant "OMS Configuration" failed
    The "D:\oracle\product\10.1.0\agent10g\cfgtoollogs\configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.-----------------------------------------------------------------------------
    How do I fix this?? When I open up the configToolFailedCommands file, all it lists is "oracle.sysman.emcp.agent.AgentPlugIn".

  • Problem Autodiscovery of node from Enterprise Manager

    We are using Oracle Enterprise Manager 2.1.0.1.0 through Management Server on NT for Oracle 8i(8.1.6) on Linux
    While autodiscovery of node from Enterprise Manager I am getting following
    error
    "Discovery Failed VNI-4002:Unknown gateway Exception"
    Even Intelligent agent and all the requisite services are started.
    If we configure manually we will get
    following error while using the tools of management pack
    "VTO-2018 This wizard Couldnt be launched because target was manually
    configured.It can only be launched for targets which have been discovered using an Intelligent Agent."
    I shall be thankful if you provide the solution ASAP
    Thanks
    Micky
    null

    Hi,
    Error: wrong password for user
    Are you grant LOG ON AS AN BATCH job to OS USER.
    OR
    before emctl command you always set ORACLE_SID enviourment variable.
    regards
    Taj

  • Can't do anything from Enterprise Manager

    I am trying to undeploy an application from Enterprise Manager Web Site, and I get the following error:
    An error occured while undeploying the application. The configuration files for this Oracle9iAS instance are inconsistent with the configuration stored in the repository. In order to protect the repository, no further configuration or deployment operations are allowed until the problem with the configuration on the filesystem is resolved. This condition arises when a prior operation was unsuccessful. Please check the logs located at ORACLE_HOME/dcm/logs to determine why DCM was unsuccessful in updating the configuration files on disk. Some possible causes are: * permissions on files * file contention issues on Windows NT * EMD and dcmctl running concurrently * internal Oracle error After resolving the problem that prevented DCM from updating the configuration files, you may use the dcmctl resyncInstance command to resolve the problem. Alternatively, you can stop and then restart the active dcmctl or EMD process and resyncInstance will automatically be performed.
    It won't let me do anything. I tried dcm, too. It happens too often to me that I cannot deploy or undeploy apps from EM, or even to alter simple properties. Is there a way to recover from this situation?
    I have checked the errors at $ORACLE_HOME/dcm/logs but I can't get any ideas from there.
    Help me

    check out the Application Server - General forum. this has been discussed quite many times. Specifically,
    9iAS instance out  of sync with Repository
    -Prasad

  • Alert from Enterprise Manager

    Hello, I have an oracle rac with 3 nodes and I have oracle database control enterprise manager (No Grid Control).
    Yesterday one node was reboot and I don't know why. I want set a rules from enterprise manager or something similar for notificate to me when a reboot from one of my host suceed.
    Any one can help me?

    roberto1979es wrote:
    Ok,
    Can I program one alert for warning when a node is reboot it?When a node is reboot it. !http://www.wackyb.co.nz/skype/smileys_v1.5.0.60/skype-wackyb-0120-doh.gif!
    If i understood correctly what you are trying to ask , you are interested in email notification when your node suddenly reboots/restarts.
    And if it is so, this is will not be possible in the way like it is for tablespace, memory and similiar alerts.
    Although you could consider monitoring alert.log content, because information about database up-down statuses can be found there.
    For example , you could do that either by using external tables or by using shell/batch scripts;depending on the os on what your database is, and then after information that indicates database unexpected reboot is found, forward that information further (e-mail notification) .

  • Host stats from Enterprise Manager

    Hi Experts,
    actullay i want to get CPU, RAM SWAP all System related stats from Enterprise Manager in a Coustomze manager that is the usage frm this 9Am To 10 AM of 13 Feb is there any way to do sooo.. actually i could not see any option for coustom to do soo.
    regards,

    Oracle AWR can collect information about these.
    "The Automatic Workload Repository (AWR) is an integrated part of the Oracle database server. Its purpose is to collect server-related performance data automatically every 60 minutes (by default) when the statistics_level parameter is set to 'typical' (or 'all'). As the data is collected by the server itself, the Automated Database Diagnostic Monitor (ADDM) component of the server uses this data automatically to diagnose performance issues."
    Please note these components additional licenses!
    See more here:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/autostat.htm#i35653
    and here
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16760/d_workload_repos.htm#i1003494
    another useful link
    Automatic Workload Repository (AWR) in Oracle Database 10g
    http://www.oracle-base.com/articles/10g/AutomaticWorkloadRepository10g.php

  • Monitoring Application servers from enterprise manager

    Hi all,
    I couldnt monitor application server from enterprise manager console.It is asking for the network password in the browser.
    Enter network password
    site : showing ip address of my machine
    Realm : enterprise-manager
    username : ?
    Password :?
    Which userid/password i have to give here. I tried with management server userid and password.but failed
    Im ussing Oracle9IAS 9.0.2.0 ver.
    Please Help !!!!!!!

    Please post your question in the Enterprise Manager forum: Enterprise Manager
    Regards,
    OTN

  • Ifs from enterprise manager

    I am not able to invoke ifs from enterprise manager.
    Basically i want to know how to use 9ifs.I have oracle 9iDB,9iAs and 9ifs on a single machine.

    what version of iFS are you using? what does your infrastructure look like? also, please post the entire stack trace of the error.

  • Extract SQL history from 10046 trace files

    Hi all,
    I need to extract the complete sql history from sql trace files to "debug" a client application.
    I know I can read the raw trc file and rebuild the sql history looking for the PARSING / EXEC / FETCH entries.
    However, this is a very long and boring manual task: do you know if there is some free tool to automate this task?
    thanks
    Andrea

    user585511 wrote:
    I agree that the 10046 trace captures everything. If I do read the raw trc file I see the DML. The problem is that tkprof's record does not record the DML (maybe it thinks that some DML is recursive sql and it gets misleaded... I am not sure) so I am looking for an alternate tool to process 10046 trace files
    Regards
    AndreaReally?
    Generate a trace of some dml:
    oracle:orcl$
    oracle:orcl$ sqlplus /nolog
    SQL*Plus: Release 11.2.0.1.0 Production on Thu May 16 08:28:55 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    SQL> conn snuffy/snuffy
    Connected.
    SQL> alter session set tracefile_identifier = "snuffy_session";
    Session altered.
    SQL> alter session set events '10046 trace name context forever, level 12';
    Session altered.
    SQL> insert into mytest values (sysdate);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> ALTER SESSION SET EVENTS '10046 trace name context off';
    Session altered.
    SQL> exitrun tkprof on the trace
    oracle:orcl$ ls -l $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace/*snuffy
    *.trc
    -rw-r----- 1 oracle asmadmin 3038 May 16 08:29 /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4086_snuffy_session.trc
    oracle:orcl$ tkprof /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4086_snu
    ffy_session.trc snuffy.rpt waits=YES sys=NO explain=system/halftrack
    TKPROF: Release 11.2.0.1.0 - Development on Thu May 16 08:31:32 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.Look at the report:
    oracle:orcl$ cat snuffy.rpt
    TKPROF: Release 11.2.0.1.0 - Development on Thu May 16 08:31:32 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Trace file: /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4086_snuffy_session.trc
    Sort options: default
    count    = number of times OCI procedure was executed
    cpu      = cpu time in seconds executing
    elapsed  = elapsed time in seconds executing
    disk     = number of physical reads of buffers from disk
    query    = number of buffers gotten for consistent read
    current  = number of buffers gotten in current mode (usually for update)
    rows     = number of rows processed by the fetch or execute call
    SQL ID: 938dgt554gu98
    Plan Hash: 0
    insert into mytest           <<<<<<<<<<<<<<<< oh my!  Here is the insert statement
    values
    (sysdate)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          1          5           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          1          5           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 86  (SNUFFY)
    Rows     Row Source Operation
          0  LOAD TABLE CONVENTIONAL  (cr=1 pr=0 pw=0 time=0 us)
    error during execute of EXPLAIN PLAN statement
    ORA-00942: table or view does not exist
    parse error offset: 83
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       1        0.00          0.00
      SQL*Net message from client                     1        3.35          3.35
    SQL ID: 23wm3kz7rps5y
    Plan Hash: 0
    commit
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          1           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          1           0
    Misses in library cache during parse: 0
    Parsing user id: 86  (SNUFFY)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       2        0.00          0.00
      SQL*Net message from client                     2        4.72          8.50
      log file sync                                   1        0.00          0.00
    SQL ID: 0kjg1c2g4gdcr
    Plan Hash: 0
    ALTER SESSION SET EVENTS '10046 trace name context off'
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          0           0
    Misses in library cache during parse: 0
    Parsing user id: 86  (SNUFFY)
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        3      0.00       0.00          0          0          0           0
    Execute      3      0.00       0.00          0          1          6           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        6      0.00       0.00          0          1          6           1
    Misses in library cache during parse: 0
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       3        0.00          0.00
      SQL*Net message from client                     3        4.72         11.86
      log file sync                                   1        0.00          0.00
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        0      0.00       0.00          0          0          0           0
    Execute      0      0.00       0.00          0          0          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        0      0.00       0.00          0          0          0           0
    Misses in library cache during parse: 0
        3  user  SQL statements in session.
        0  internal SQL statements in session.
        3  SQL statements in session.
        0  statements EXPLAINed in this session.
    Trace file: /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4086_snuffy_session.trc
    Trace file compatibility: 11.1.0.7
    Sort options: default
           1  session in tracefile.
           3  user  SQL statements in trace file.
           0  internal SQL statements in trace file.
           3  SQL statements in trace file.
           3  unique SQL statements in trace file.
          58  lines in trace file.
           8  elapsed seconds in trace file.
    oracle:orcl$

Maybe you are looking for