Tracing SQL

Hi people

Oracle 11.1.0.7

Is it possible to trace the value retrieved from a select statement?

for example instead of see the County recovered values (here r = 47), I would like to see all 47 lines with their values.

FETCH #9:c = 1000, e = 0, p = 0, cr = 0, cu = 0, set = 0, r = 47, dep = 0, og = 1, plh is 1552592935, tim = 1271851659528802


Is there a way to do this?

Background: human application means that the db returns a value which should not be removed, and if I run the sql manually code the specific value is not returned. So, I want to follow the session of the application.

Thank you

Cordially oviwan

Oviwan wrote:
No, I'm looking for data that is transferred from the database to the application. I know the SESSION_TRACE_ENABLE procedure, but here you do not see the values of each record that is recovered as far as I know.

I'll try it with the '12 10046 trace event' event tomorrow

A 10046 level 12 trace (level 8 or 4) will not give you the information you want to see. Level 4 writes the bind variable definitions and values to a trace file, level 8 writes events to wait and level 12 wrote bind variables and wait events. A 10046 trace will not write the data returned by the database in a log file.

An option that might work for you is to use a packet, like Wireshark capture utility. Wireshark has an option "follow stream" which re - will combine multiple TCP packets in a conversation that shows the statement SQL sent by the client and the raw data returned by Oracle. Another option is to allow a side client SQL * Net trace, see Metalink Doc ID 779226.1, 219968.1 and 395525.1. If the client computer is running on Windows, take a look at Metalink Doc ID 216912.1 to enable tracing in the batteries of different communication.

Charles Hooper
Co-author of "Expert Oracle practices: Oracle Database Administration of the Oak Table.
http://hoopercharles.WordPress.com/
IT Manager/Oracle DBA
K & M-making Machine, Inc.

Tags: Database

Similar Questions

  • Tracing SQL in 10g

    Hi all

    I have an application developed in .net. There a lot of screens which takes a lot of time to research based on some search criteria. I can access it from my client machine. My database is located in a remote area and there OS UNIX and Oracle is 64-bit.

    I want to refine the search performance. To do this, I want to know what queries are triggered when user click or search.

    I do not access the UNIX to my client machine so I can't trace also file.
    Can we get a list of SQL in AWR?
    What is the best way to get these SQLs?

    If I get SQL I can focus performance improvement.

    Kind regards
    Danish

    K

    Published by: viswa08 on August 6, 2009 05:04

  • CLIENT_IDENTIFIER-based tracing session

    Hi all

    I'm on 11.2.0.1... we not a sap application and trying to follow a session at the end of DB... and seems to be the work that the end user running jumps from one session to the next in this senerio... How to draw a session? I read the article on dbms_monitor package to draw... but as I mentioned, sap keep chaning the session from one to the other...

    I read the article...
    http://ocsurabaya.WordPress.com/2007/07/18/tracing-SQL-in-Oracle-database-10G/
    in which she suggests to define the name of the service and the name of the module... but the problem is its hard get the name of the module as its actually not bad things... it jumps from one module to another... is anyway to trace a session based on its CLIENT_IDENTIFIER (from v $session)... because it looks like to the user domian account so that the user who runs the work...

    as I mentioned during this time (when the job is run)... change sid, modeule changes... the only coherent thing is the CLIENT_IDENTIFIER (which seems to be the user domian name)...
    so, how can I trace a session based on CLIENT_IDENTIFIER?

    DBMS_MONITOR.client_id_trace_enable

  • Basic followed in 11 GR 2 question

    Really fundamental questions:
    (1) can I use DBMS_MONITOR to draw? It seems that DBMS_SUPPORT, DBMS_SESSION, alter session set events... and alter session set sql_trace, etc.. ALL can be used to turn on the tracing level statement (but paradoxically not DBMS_TRACE package, of course)
    (2) I want to remove out during my session to a particular statement level track and I also want (in addition to the track) to display a map of the explain command (with estimated AND actual lines/bytes/etc.). Is the correct way to remove the output to use SET AUTOTRACE TRACEONLY?
    3)
    So in big fact her below seem correct (for my goal to get the two good trace data as well as the plan of the explain command)?
    exec dbms_monitor.session_trace_enable(waits=>true);
    set autotrace traceonly;
    <my 1M row 45 minute query>
    select * from table(dbms_xplan.display);
    exec dbms_monitor.session_trace_disable;
    By the way, when I try step 3 (I'm using TOAD, executed as a script) TOAD always fails with an error 'out of storage' and dies. During the process, I see a "Treatment of Script" dialog box, where it indicates the number of rows retrieved slowly climbing (yet once, it is a 1 M line query, used to fill a DW) - is there a way to bypass the line recovery, but still get a trace?

    Published by: ngilbert on April 23, 2013 11:07

    ALLSTATS_LAST can be used with DBMS_XPLAN. DISPLAY_CURSOR but not with DBMS_XPLAN. DISPLAY which can only retrieved explain plan statistics (i.e. what the CBO estimated and not detailed implementation plan).

    I've never used a DBMS_SQLDIAG and he does not seem to be related to SQL tracing. DBMS_MONITOR is only 10046 trace (tracing SQL) AFAIK.

  • Oracle DBA jobs

    Hi all

    Please don't mind my question if I violated the purpose of the forum and if yes, then I am truly sorry.

    I work since nearly 3.4 years in Oracle Database Administration. I mainly worked on Dev-Test platforms where we keep no interruption of service. I don't have the hands on the CARS or a lot of knowledge. I worked on 10g, 11g.
    I know that the concepts and methods of implementation of data keep (Eve), I worked on RMAN (duplication and incremental backup, complete/incomplete recovery), expdp/impdp and exp/imp, small amount of (SQL/Shell), database server management scripts (for the most part have exp on Linux), Installation of RDBMS/ASM, Databases(manually/DBCA), Security(privs,roles,auditing), Tablespace and other management staff of logical structure , HOT backup, cold backup (and restore from it), database upgradation, patch (PSU, a one-off, attach/detach from stocks), tracing, SQL Loader, ensure monitoring and creation, database monitoring and maintenance, segment management and defragmentation, maintenance of database object, Configuration of OEM etc., manipulation of the different types of Oracle, including critical errors errors like 600,7445 etc... Read and extract the AWR/ASH...

    Can I get a job outside of my current company? As I don't see a lot of growth there. Not even happen to have exposure to other platforms... Most businesses want personal CARS.

    Please suggest and help me (if possible)... I am really in tension on what will be there in my future because here I will never get to work on the CARS and the architecture of high availability...
    This is the reason why now I think spend my business for better technological growth...
    Should what I know in this phase of my career. pls suggest... I am from INDIA

    -Looks
    DBA struggling

    If you get another job is a completely local issue. Ask a local recruiter how the job market is for the DBA. In my region (the United States), it seems that there are a decent amount of demand for the DBAs, but you could work in a local economy that is stagnant.

    Chances are, in 2013, that any new DBA job will involve some element of redundancy of data.

    In a few years, I suspect that most of the places will be CARS or Exadata systems for their critical databases. It will probably be a major breakdown before most companies will spend the money for clustered systems, but eventually, they will be included like that. Same Oracle Database Machine is a RAC configuration if you think about it - and that's what they're trying to plant smaller customers.

    I remember about 10 years ago CARS was rare (I remember installing RAC 9.2.0.1 for a customer - boy, which was DIFFICULT). 'All' that you must do to be a DBA then, was to understand things from single instance.

    Five years later, most DBA needs to know about RAC/ASM/data Gurd if they wanted to be Production DBA - they had to understand specific, cluster, ASM and Data Guard stuff.

    I can see that in a few years, DBAs must be competent in Exadata or similar - so they will need to understand specific, cluster, ASM, Data Guard AND Exadata stuff (networking, storage cells, etc.).

    My point is that the DBA role changing faster than any tech specialty. Fortunately, Oracle makes things easier to administer the technologies we have to master to become more complex: I can testify how difficult 9.2.0.1 was put in place for CARS - management of a system of 11.2 is so MUCH more enjoyable!

    Unless you work in a place that have no plan to upgrade their databases (due to legacy systems) and to grow as a business, then chances are that you will be finally exposed to what you are looking for. Of course, if you work in a place like this, then we could suggest you better find somewhere else to work. Stand still must be turned towards the back, etc...

    Good luck. It is good to be ambitious, but don't forget that a DBA role is a this experience absolutely request - if you have 3 years to be a Production DBA and having to call this in the middle of the night, you probably better experience than someone who spent 6 years as a development DBA (IMO).

    Mark

  • ptrace = YES does not not in XE

    Hello

    I'm doing a trace on a report. When I add & ptrace = YES for my URL there is no trace file generated in the udump directory. Does anyone know why it wouldn't work? Here is some information on the database and operating system:

    URL ex: http://fcapex40.clarifit.com:8080/apex/f? p = 101:4:4002989996060036:NO & ptrace = YES
    SQL> SHOW PARAMETERS user_dump_dest
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    user_dump_dest                       string      /usr/lib/oracle/xe/app/oracle/admin/XE/udump
    Oracle Database 10 g Express Edition Release 10.2.0.1.0 - product
    Release of Fedora 12 - 2.6.31.5 - 127.fc12.i686.PAE


    Martin
    -----
    http://www.talkapex.com

    Hello

    I found this post
    Re: Tracing SQL APEX
    >
    If your installation of APEX uses the Embedded pl/sql gateway, the trace files will be in the directory "bdump. The file names will be the chain model "s00" in their midst.
    >

    Kind regards
    Jari

  • the statistical aggregation is not enabled

    Hello
    in 10g R2, OEM for a server, I have this message:
    Statistics data is not available because statistics aggregation is not enabled for the selected client
    This who should I allowed to have the statistical aggregation?
    Thank you.

    Read this document

    Tracing SQL in the Oracle 10 g database

  • TKPROF reg

    Hi all!

    I studied the use of bind variables and I met following the example in the book:

    ALTER SESSION SET SQL_TRACE = TRUE;

    SELECT ID FROM AUTHORS WHERE NAME = "MIKE";

    SELECT ID FROM AUTHORS WHERE NAME = 'RON ';

    ALTER SESSION SET SQL_TRACE = FALSE;

    obviosly plan of performing two queries would be same... but I m unable to get how to generate and look in the trace file...

    I m using oracle xe 10.2 version. Please explain how can I get the trace file.

    You can check that Oracle doc,

    Using SQL Trace and TKPROF
    http://download.Oracle.com/docs/CD/B10500_01/server.920/a96533/SQLTrace.htm

    and tracing SQL in the Oracle 10 g database
    http://www.Oracle.com/technology/oramag/Oracle/04-Sep/o54talking.html

    Basically, trace file will be generated under USER_DUMP_DEST for identification easy you can make

    alter session set
    tracefile_identifier ="my_test";
    
  • Lineage tracing an SQL error: ORA-22813: value of the operand exceeds the limits of the system

    Hi all

    I started playing with OEMM and I get the following error when I try to 'Trace Data Impact' in an Oracle table. Here's what I do:

    • I created a template and collected a few schemas/tables:

    Capture.JPG

    Capture1.JPG

    • Now when I try to "Trace Data Impact' on the table AP_DEF_STG, I get the following:

    Capture2.JPG

    Capture3.JPG

    Capture4.JPG

    I already tried to create a "Configuration" for her, I tried to text instead of graphics, but the error is the same. If I go to a view of Oracle and do a "track Data Lineage", I get the same error again.


    That someone was already been in this situation? This is the full error trace:


    ({"error": true, "errorMessage": "SQL error during the tracing of lineage: ORA-22813: value of the operand exceeds the limits of the system"})

    ', 'errorType': 'Line error', 'errorCodes': "[LNGTRC_E0016]".

    ","stackTrace":"Error Codes - [LNGTRC_E0016].

    Request - VizModelLineage

    Settings - showInternalObject [false] showNoType [true] showControlLinks [false] startingIds [17 #4723 #0] isBizUI [false] ObjectID [17 #1 #0] showSummaryView [true] collapseLevel [features] resetCache [fake] profile [] showMappingsAsNodes [true] skipCache [false] tracingDirection [3] tracingType [DataLineage] [ReportTree2202015-104855025] originalStartingObject cacheId [17 #4723 #0] viewType actionType [loadlineage] of viewId [ReportTree2202015-104855025] [ModelLineage]

    MITI.web.common.exceptions.LineageUIException: SQL for tracing line error: ORA-22813: value of the operand exceeds the limits of the system

    at MITI.web.common.service.facades.LineageFacadeImpl.getLineageGraph (LineageFacadeImpl.java:284)

    at MITI.flash.tabs.VizModelLineage.getLineageTree (VizModelLineage.java:429)

    at MITI.flash.tabs.VizModelLineage.buildLineageGraph (VizModelLineage.java:356)

    at MITI.flash.tabs.VizModelLineage.performAction (VizModelLineage.java:148)

    at MITI.server.servlets.FlashServlet.doPost (FlashServlet.java:156)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)

    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)

    to org.apache.coyote.AbstractProtocol$ AbstractConnectionHandler.process (AbstractProtocol.java:611)

    to org.apache.tomcat.util.net.JIoEndpoint$ SocketProcessor.run (JIoEndpoint.java:316)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:895)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:918)

    to org.apache.tomcat.util.threads.TaskThread$ WrappingRunnable.run (TaskThread.java:61)

    at java.lang.Thread.run(Thread.java:662)

    Caused by: MITI.server.services.lineage.LineageException: (LNGTRC_E0016) SQL error during the tracing of lineage: ORA-22813: value of the operand exceeds the limits of the system

    at MITI.server.services.lineage.database.LineageDataSource.handle (LineageDataSource.java:41)

    at MITI.util.database.CommonDataSource.handleSQLException (CommonDataSource.java:124)

    at MITI.util.database.CommonDataSource.executeTransaction (CommonDataSource.java:83)

    at MITI.util.database.CommonDataSource.executeStatement (CommonDataSource.java:54)

    at MITI.server.services.lineage.impl.LineageImpl.traceLineage (LineageImpl.java:554)

    at MITI.server.services.lineage.common.LineageTracer.traceLineage (LineageTracer.java:1078)

    at MITI.server.services.lineage.common.LineageTracer.traceDataLineage (LineageTracer.java:313)

    at MITI.server.services.lineage.common.LineageTracer.traceTechnicalData (LineageTracer.java:176)

    at MITI.web.common.service.facades.LineageFacadeImpl.getLineageGraph (LineageFacadeImpl.java:245)

    ... 21 more

    Caused by: java.sql.SQLException: ORA-22813: value of the operand exceeds the limits of the system

    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)

    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)

    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)

    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)

    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1188)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)

    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)

    at MITI.util.database.Query.executeStatement (Query.java:45)

    at MITI.util.database.Statement.execute (Statement.java:66)

    to MITI.util.database.CommonDataSource$ 1.run(CommonDataSource.java:50)

    to MITI.util.database.CommonDataSource$ 1.run(CommonDataSource.java:47)

    at MITI.util.database.Transaction.execute (Transaction.java:92)

    at MITI.util.database.CommonDataSource.executeTransaction (CommonDataSource.java:80)

    ... more than 27

    Caused by:

    MITI.server.services.lineage.LineageException: (LNGTRC_E0016) SQL error during the tracing of lineage: ORA-22813: value of the operand exceeds the limits of the system

    at MITI.server.services.lineage.database.LineageDataSource.handle (LineageDataSource.java:41)

    at MITI.util.database.CommonDataSource.handleSQLException (CommonDataSource.java:124)

    at MITI.util.database.CommonDataSource.executeTransaction (CommonDataSource.java:83)

    at MITI.util.database.CommonDataSource.executeStatement (CommonDataSource.java:54)

    at MITI.server.services.lineage.impl.LineageImpl.traceLineage (LineageImpl.java:554)

    at MITI.server.services.lineage.common.LineageTracer.traceLineage (LineageTracer.java:1078)

    at MITI.server.services.lineage.common.LineageTracer.traceDataLineage (LineageTracer.java:313)

    at MITI.server.services.lineage.common.LineageTracer.traceTechnicalData (LineageTracer.java:176)

    at MITI.web.common.service.facades.LineageFacadeImpl.getLineageGraph (LineageFacadeImpl.java:245)

    at MITI.flash.tabs.VizModelLineage.getLineageTree (VizModelLineage.java:429)

    at MITI.flash.tabs.VizModelLineage.buildLineageGraph (VizModelLineage.java:356)

    at MITI.flash.tabs.VizModelLineage.performAction (VizModelLineage.java:148)

    at MITI.server.servlets.FlashServlet.doPost (FlashServlet.java:156)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)

    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)

    to org.apache.coyote.AbstractProtocol$ AbstractConnectionHandler.process (AbstractProtocol.java:611)

    to org.apache.tomcat.util.net.JIoEndpoint$ SocketProcessor.run (JIoEndpoint.java:316)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:895)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:918)

    to org.apache.tomcat.util.threads.TaskThread$ WrappingRunnable.run (TaskThread.java:61)

    at java.lang.Thread.run(Thread.java:662)

    Caused by: java.sql.SQLException: ORA-22813: value of the operand exceeds the limits of the system

    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)

    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)

    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)

    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)

    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1188)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)

    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)

    at MITI.util.database.Query.executeStatement (Query.java:45)

    at MITI.util.database.Statement.execute (Statement.java:66)

    to MITI.util.database.CommonDataSource$ 1.run(CommonDataSource.java:50)

    to MITI.util.database.CommonDataSource$ 1.run(CommonDataSource.java:47)

    at MITI.util.database.Transaction.execute (Transaction.java:92)

    at MITI.util.database.CommonDataSource.executeTransaction (CommonDataSource.java:80)

    ... more than 27

    Caused by:

    java.sql.SQLException: ORA-22813: value of the operand exceeds the limits of the system

    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)

    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)

    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)

    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)

    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1188)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)

    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)

    at MITI.util.database.Query.executeStatement (Query.java:45)

    at MITI.util.database.Statement.execute (Statement.java:66)

    to MITI.util.database.CommonDataSource$ 1.run(CommonDataSource.java:50)

    to MITI.util.database.CommonDataSource$ 1.run(CommonDataSource.java:47)

    at MITI.util.database.Transaction.execute (Transaction.java:92)

    at MITI.util.database.CommonDataSource.executeTransaction (CommonDataSource.java:80)

    at MITI.util.database.CommonDataSource.executeStatement (CommonDataSource.java:54)

    at MITI.server.services.lineage.impl.LineageImpl.traceLineage (LineageImpl.java:554)

    at MITI.server.services.lineage.common.LineageTracer.traceLineage (LineageTracer.java:1078)

    at MITI.server.services.lineage.common.LineageTracer.traceDataLineage (LineageTracer.java:313)

    at MITI.server.services.lineage.common.LineageTracer.traceTechnicalData (LineageTracer.java:176)

    at MITI.web.common.service.facades.LineageFacadeImpl.getLineageGraph (LineageFacadeImpl.java:245)

    at MITI.flash.tabs.VizModelLineage.getLineageTree (VizModelLineage.java:429)

    at MITI.flash.tabs.VizModelLineage.buildLineageGraph (VizModelLineage.java:356)

    at MITI.flash.tabs.VizModelLineage.performAction (VizModelLineage.java:148)

    at MITI.server.servlets.FlashServlet.doPost (FlashServlet.java:156)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

    Oracle has published OEMM 12.2.1 and this error is gone! So if you are facing this problem in an older version, just go to the newest one.

  • AWR SQL TRACING

    Hi all

    I want to using AWR sql tracing.

    But I can't find the hits in google for "AWR sql tracing.

    Kindly help what is the right keywords.


    Thank you very much.

    Hello

    CWA had no chronological information. It provides statistics aggregated by snapshots. For example, you can use it to find out what was the top of the SQL page while this snapshot, and how many times it has been run, but you won't be able to see who did what at what point in time. To do this, you use the ASH - just run the query I gave you (add "order by sample_time", I forgot this part) and see what kind of information it gives you.

    Tracing all of the database would also give you information about SQL executed by each user, but I wouldn't recommend that for several reasons:

    (1) there will be a performance overhead
    (2) the trace files grow very fast, and they can eat all of your free space relative to minutes
    (3) trace files are more difficult to read (if you him want to format, then you need to perform additional processing, such as run tkprof)

    And remember: the tool of choice to monitor the activity of the user is not ASH, no trace, no CWA, but check. So I would approach your problem as follows:

    (1) use the ASH to find out who did what to the interest period
    (2) enable the audit to facilitate investigations in the future

    Best regards
    Nikolai

  • APEX SQL tracing

    I'm having a problem with a complex bit of SQL in a region of the Apex.

    I was sticky bits of SQL in SQL Developer to debug instructions, but it's a bit tedious when there are a lot of settings to manually.

    Is there a quick way to see real SQL statements that sends the Apex to the database (a trace or something)?

    West Indies:

    If your installation of APEX uses the Embedded pl/sql gateway, the trace files will be in the directory "bdump. The file names will be the chain model "s00" in their midst.

    CITY

  • Problem connecting SQL toolkit Win7

    I use CVI 2013 and tto toolkit (2.2) of SQL to connect to a mySQL database.  I can connect to properly using my development computer, but not with the target.  Both computers are running 64-bit Windows 7 Professional (SP1).  I used to start the 64-bit ODBC drivers (mysql-connector-odbc - 5.3.2 - win64.msi) on both machines.  After I got hurt, I found an article in the Knowledge Base which indicated that I should probably use the 32-bit instead.  So I deleted the drivers of the target and installed those 32-bit using odbcad32.exe found in Windows/SysWOW64.  No change.

    I use the sample browser2.prj project included with the SQL Toolkit (default: C:\Users\Public\Documents\National Instruments\CVI\samples\sql\apps) to test the functionality of the SQL tool.  I create a distribution kit, including the runtime shared on the development computer and install it on the target.  I traced the problem to the call of DBSources() - it returns a - 100 (who, the hand is not among the list of database error codes).

    On both machines the ODBC drivers seem to work.  I can get to the database using Panel-> administration-> Data Sources (ODBC) tools.  Select the user DSN or system DSN database, and then click Configure open the MySQL Connector/ODBC Data Source Connection window.  By clicking Test in this window will connect to the database.

    If the problem seems to lie in the way that ICB connects to the database.  I'm naïve now, any suggestions would be greatly appreciated.

    Sorry if this is a stupid question:

    Have you followed the instructions help-> Reference Library-> library Toolkit SQL-> SQL language reference-> distributing a SQL Toolkit executable or a DLL?

    Or is it a mistake you get despite following these instructions?

  • Import data... Wizard creates the file SQL Loader ctl with columns out of order

    4.1.1.19 SQL Developer version. Connected to Oracle XE to test this.

    I'm trying to understand what the problem with the data in my import file when finally, I realize that the Import Wizard of data did not care how I traced the columns at all. The ctl SQL Loader file generated by the Wizard expects that the columns of data in my file to match the order that they appear in the definition of the table and not how they have been mapped in the wizard. Manually edit the ctl file is a workaround. Has anyone else seen elsewhere?

    I see that this is a bug.

  • How to find who holds a SQL lock when its not v$ session.sql_id and v$ session.prev_sql_id

    Hi all

    Looking a little nudge in the right direction on a strange problem with blocking locks in our database of BSE...

    We occasionally will blocking locks in our EBS 12.1.3 database (11.2.0.4 CARS on OEL5).   I can easily determine the INST_ID select and SID that keeps the lock with this:

    Select final_blocking_instance, final_blocking_session from gv$ session where lockwait is not null;

    and can use these results to find the specific object being blocked by querying a gv$ locked_object where session_id = xxx and INST_ID select = xxx.   These sessions blocker are generally inactive to an event of "SQL * Net client message"-while they seem to be connected to the database users who need simply to commit or rollback transactions.   Usually, when I see this type of behavior, the specific application involved in the unresolved external transactions is easy to find by taking the SQL_ID (or sometimes the PREV_SQL_ID) value of gv$ session and questioning gv$ sql.  I can then use this information to better understand what users are trying to accomplish and help them understand what they need to change to avoid the deadlock problem.

    But recently, we have integrated the add-on of Oracle content management and it seems to have added (I suspect indirectly) triggers for many forms EBS our users work in.  Now that we know these "locks blocking inactive form" - and the SQL_ID value is zero and related PREV_SQL_ID sql_text is

    SELECT * FROM AXF_COMMANDS_SYN WHERE FORMID =: b1 AND (MENUTYPE = 'SPÉCIAL' MENUTYPE or = "ZOOMANDSPECIAL") AND AXF_COMMANDS_SYN. SPECIAL 'n' IS NOT NULL


    Although I can see SGS $ locked_object both the text of the SQL being run by sessions which blocked the blocking the locks held by the session is on an object (for example RA_CUSTOMER_TRX_ALL) that does not seem to be at all related to AXF_COMMANDS_SYN.   The AXF schema has been added as part of the deployment of content management.


    So, my thought is that a different cursor open (previous) held by the session is the real unresolved SQL that maintains the lock.  Is there a way to determine the SQL_ID of this query "indirectly" from gv$ locked_object / gv$ transaction, gv$ open_cursor, etc.?  I can determine what is the problem and what user, we need to talk to him - but I would really like to find the exact SQL that is involved.   I am also to establish if the new behavior is somehow contributing to locking problems blocking or just 'a Kipper"- and I think I know which statement SQL Gets the lock will help me to move forward with the investigation.  I'm sure I could find this info by tracing the blocking - session but the problem occurs rarely, and I'm not able to determine which trace session until it is too late... :-)


    Any recommendations would be appreciated, and my apologies for the long post...









    A session may issue a followed LMD of 5 requests without issuing a commit.

    Another session may be attempting a DML when the 5th request session above is running.  Querying V$ session for the first session SQL_ID or PREV_SQL_ID wouldn't you say the first SQL DML.

    You can walk backwards through V$ ACTIVE_SESSION_HISTORY (if you have the License Pack diagnosis) and determine all SQL_IDs of this first session if they did get captured in V$ ACTIVE_SESSION_HISTORY or DBA_HIST_ACTIVE_SESS_HISTORY.  (Attention: not all SQLs are captured - particularly short-lived SQLs can't get captured)

    Hemant K Collette

  • ORA-06528: PL/SQL Profiler generator runtime error

    Version 11.2.0.3.  I have installad DBMS_PROFILER:

    SYS AS SYSDBA > @?/rdbms/admin/profload.sql

    SYS AS SYSDBA > @?/rdbms/admin/proftab.sql


    I tried to use dbms_profiler.start_profiler in PLSQL code with user NUFN and discovered that lacked the NUFN user privileges on the objects of the Profiler. So I ran the following grants:

    grant the update, insert and delete on plsql_profiler_units to NUFN;

    grant the update, insert and delete on plsql_profiler_runs to NUFN;

    Grant execute on DBMS_PROFILER to NUFN;

    But still no luck:

    SQL > START

    dbms_profiler.start_profiler ('test1');

    EXECUTE IMMEDIATE 'select max (STATS_UPDATE_TIME), owner of the DBA_TAB_STATS_HISTORY group from owner to owner.

    dbms_profiler.stop_profiler ();

    END;

    /

    BEGIN

    *

    ERROR on line 1:

    ORA-06528: PL/SQL Profiler generator runtime error

    ORA-06512: at "SYS." DBMS_PROFILER", line 123

    ORA-06512: at "SYS." DBMS_PROFILER", line 132

    ORA-06512: at line 2

    I can't find what is missing from my user NUFN for her to be able to run DBMS_PROFILER.  Help, please!

    Thanks Bella, I had not run @?/rdbms/admin/proftab.sql as my user NUFN but as sys.  But you know what?  Even after execution of @?/rdbms/admin/proftab.sql as NUFN, the problem persisted!

    So I traced my session, read the trace file and found nothing wrong (but I have no experience in finding fault with the workings of dbms_profiler).  But I found the SQL code executed by the dbms_profiler.start_profiler command, which is:

    PARSING IN CURSOR #4574691968 len = 155 dep = 2 uid = 155 oct 2 lid = 155 = tim = hv 530047132716 = ad 3718124591 = "7000000946da848" sqlid = "akx2pxvftw51g."

    INSERT INTO PLSQL_PROFILER_RUNS (RUNID, RUN_DATE, RELATED_RUN, RUN_OWNER) VALUES (PLSQL_PROFILER_RUNNUMBER. NEXTVAL,: B1,: B2, USER) RETURN RUNID IN: O0

    END OF STMT

    ANALYSIS #4574691968:c = 315, e = 844, p = 0, cr = 0, cu = 0, put = 1, r = 0, dep = 2, og = 1, plh = 0, tim = 530047132715

    I tried manually the same HOME, and bingo, I discovered the cause of my problem:

    INSERT INTO PLSQL_PROFILER_RUNS (RUNID, RUN_DATE, RELATED_RUN, RUN_OWNER) VALUES (PLSQL_PROFILER_RUNNUMBER. NEXTVAL, sysdate, 'manually', 'ME');

    ORA-01950: no privileges on tablespace execution times

    After performing ALTER USER NUFN QUOTA UNLIMITED ON STATES; the problem has been resolved.

    Conclusion: after DBMS_PROFILER installation for a user, make sure that the user can write in objects DBMS_PROFILER (SUBSIDIES and QUOTAS).

Maybe you are looking for

  • Can satellite L50-B-1 p 1 ODD broken - I switch to Windows 10?

    Hello I got a new Toshiba Satellite laptop last Christmas and in the month of August, I dropped it! Basically, he fell from the arm of the couch when I used it. The only damage that I could detect was the CD player door opened and when I tried to clo

  • Satellite L300-01:00 - need the drivers Windows XP 64-bit

    Hi all! I recently bought the Toshiba Satellite L300-01:00 which has 4 GB of memory RAM. The thing is, 32-bit Windows cannot allocate more than 3 GB of RAM and there is no drivers for Windows 64 bit on this site. Can I use these drivers XP, downloade

  • All icons on the desktop have changed automatically

    Original title: program compatibility Application Applications Apps game games Legacy Crash accidents Application Hang hangs Hello All my desktop icons and programs have been changed to eg - avira has changed in microsoft word icon

  • Office Jet 6500: Black printing

    I have a Dell, IBM Lnovo, Toshiba NetBook & a new HP Probook all w / Windows 7.  I was using a HP OfficeJet 6500 E709n. With the exception of the new HP ProBook print very well all the new HP Probook only print in color. It will not print black.  I h

  • Windows vista display code problem

    I was using my computer the other day, when all of a sudden the screen turned into pixelated, scrambled looking for figures. I could barely make out the icons, words, mouse etc... but it has not crashed. Then after a few seconds, the screen went whit