Query to see the SQL run
I want to see what queries/DML is fired when something is run on the front end?
Is there any SQL for this
Regards,
Sesha
Get the SqlID from v$session. User that SqlID and get the SqlText from v$sql.
Similar Messages
-
How to see the SQL running in back ground when we genarate a report.
Hi All,
I am new to Oracle Reports Builder toll and I would like to see the SQL query/script running in back ground when we run any perticular report using Reports Builder 10g.
Please help me with this query, Thank You Very much for your help in Adv.
Thanks,Hi,
well the only option you can try is enabling trace from Builder (Program --> Tracing --> ALL) and then from the OS keep checking the trace file being created when the report is running. Something like the following will be recorded.
example
10:14:18 APP .. ( Repeating Frame R_G_EMPNO
10:14:18 APP ... ( Group G_EMPNO Local Break: 0 Global Break: 0
10:14:18 APP .... ( Query Q_1
10:14:18 SQL EXECUTE QUERY : select * from emp where deptno=:x
Bind Variable Value
X 10
10:14:18 APP .... ) Query Q_1
10:14:18 APP ... ) Group G_EMPNO
10:14:18 APP ... ( Text Field F_DEPTNO
Hope this helps
Roberto -
Query for seeing the amount of archive switchs per day
Hi
I want a query for seeing the amount of archive switchs per day.
Example:
date & amount
17/01/2009 40
18/01/2009 33
19/01/2009 45
ThanksHi friend Jamsher
I tested in a RAC database and the result is null....
SQL> SELECT ROUND(AVG(1440 * (b.first_time - a.first_time)), 0) "Log switch
2 time - minutes"
3 FROM v$loghist a, v$log b
4 WHERE b.sequence# = a.sequence# + 1
5 AND a.sequence# = (SELECT MAX(sequence#) FROM v$loghist)
6 ORDER BY a.sequence#;
Log switch
time - minutes
SQL>
Thanks -
Query to find the long running concurrent requests morethan 2 hours
Can any one please provide the " Query to find the long running concurrent requests which are running more than 2 hours"
You need to find the different between the current time/date and FND_CONCURRENT_REQUESTS.ACTUAL_START_DATE for the running requests.
More details can be found in the following notes:
Note: 187504.1 - bde_request.sql - Process and Session info for one Concurrent Request (11.5)
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=187504.1
Note: 134035.1 - ANALYZEREQ.SQL - Detailed Analysis of One Concurrent Request (Release 11 and up)
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=134035.1
Note: 751438.1 - How To Check List , Start And End Dates Of A Parent Concurrent Request And All Childs
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=751438.1 -
Portal SearchOps: Can I see the SQL generated?
Is there a way to see the SQL generated by a content search?
We have started to move a project into production which is querying against a DB2 database, and I fear that a date range constraint in our query is failing to be exercised.
Thanks,
-mikeIf you're familiar with using debug.properties, add this to your debug.properties file:
usePackageNames: on
com.bea.content: on
When you start the server, pass this option in:
-Ddebug.properties=[your debug.properties file, including path]
The output will be rather verbose, and you might be able to narrow it down by replacing
com.bea.content: on
with
com.bea.content.repo.internal.server.logic.SearchOpsLogic: on
com.bea.content.repo.internal.server.common: on -
How to see the SQL used in an existing Rule file?
Hi,
Is there a way to see the SQL used in the rule file defn of any existing rule file which retrieves data from a RDMS?
Appreciate your thoughts.
Thanks.Sure.
In EAS open up the load rule in question, then select the menu item "File"-"Open SQL".
Robert -
Brief report of about 2 months for the sqls run under a specific user ?
Hi,
Is there a way i can get the brief report of about 2 months for the sqls run under a specific user in Oracle 11g.
thanks in advance913410 wrote:
Yes,
auditing is enabled
SQL> show parameter audit;
NAME TYPE VALUE
audit_file_dest string /u01/app/oracle/admin/PRCMTDB/
adump
audit_sys_operations boolean FALSE
audit_syslog_level string
audit_trail string DBthen how to get the informationabove is necessary, but not SUFFICIENT
default Oracle behavior is that NO specific actions are audited.
You would have had to manually enable AUDIT for all SQL statement by single user -
Anyone know where I can see the resulting SQL from a JDBC adapter? Is this even possible in the XI monitoring/tools? I want to see the resulting SQL string of this XML file through the JDBC adapter (and possibly the errors).
<?xml version="1.0" encoding="UTF-8" ?>
- <ns:PO_RETURN_insert xmlns:ns="urn:test_sap-ariba-PO:staging">
- <Insert1>
- <PO_RETURN action="INSERT">
<table>ARIBAUSR.PO_RETURN</table>
- <access>
<MANDT>01</MANDT>
<EBELN>D02</EBELN>
<EBELP>00010</EBELP>
<ACTION_KEY>A</ACTION_KEY>
<CR_DATE>20051212</CR_DATE>
<CR_TIME>12000000</CR_TIME>
<SEQUENCE>1</SEQUENCE>
<TYPE>W</TYPE>
<MSGNR>083</MSGNR>
<MSGID>ME</MSGID>
<FLDNAME>DOC_TYPE</FLDNAME>
<MESSAGE>Enter Document type</MESSAGE>
<SYSID>SR1CLNT545</SYSID>
<MESSAGE_V1>Document type</MESSAGE_V1>
<MESSAGE_V2 />
<MESSAGE_V3 />
<MESSAGE_V4 />
</access>
</PO_RETURN>
</Insert1>
</ns:PO_RETURN_insert>Tom,
Check this OSS note 801367. It will help you setup the required parameters in receiver JDBC adapter to see the SQL stmnt, depending on the SP level you are in.
Make sure you set these parameters only in DEV or TEST systems and NOT in production.
Regards,
Sridhar -
Does anyone have an issue with your iPhone 5 when trying to play music? Mine won't, on the screen you see the player run through songs very quickly but never playing.... Help!
Try this > Start a song, tap the screen, under the left side of the scrubberbar that appears, tap the icon to stop shuffle.
-
Any way to see the sql code used to update DataTableModel?
Hi,
I'm getting an sql syntax error when I do an update on a table model.
Is there a way to see the SQL command that Creator is using to update the database?
Thanks!
RickThis is an easy one. In your code before you do the .execute put in the following line: String tempString = tableRowSet.getCommand(). Set a break point on the line after. Start the program in debug mode. When the program hits the break point look at the value of tempString. check your sql statment.
-
How do i see the sql statements that are run ?
i want to see (in a log file) what are the sql statements that oracle had ran.
how do i do it ? what configurations should i do ? how ?
please help ... thanksCurrent SQL statements are viewed in dynamic tables:
SELECT SCHEMANAME, SQL_ADDRESS, SQL_TEXT, last_call_et
FROM V$SESSION, V$SQLAREA
WHERE V$SESSION.SQL_ADDRESS=V$SQLAREA.ADDRESS
A historical log of all SQL statements is recorded in Oracle Archived Logs, and can be viewed using the Oracle Logminer approach. This process requires your database to be in ARCHIVELOG mode, and that Logminer be configured to read the archived logs. -
Help! how to check the SQL run in Oracle?
Hi all,
I have a problem. the developer said the SQL written in Java code are not the one executed in Oracle DB. that mean the query is some how manipulated by some PL/SQL so the final query run in Oracle is different. So can someone teach me how to check the actual SQL run in Oracle?
Thanks a lot.
Regards,
JasonHi Michel Thanks. But it looks like the query stored in v$sqlarea is not the final executable SQL. for example, the code in application is "select column_A from default_table where column_A = ?" and this ? will be given some value in run time. the query stored in v$sqlarea will be like "select column_A from default_table where column_A = :1"... what is this :1?
Also if some PL/SQL procedure appends some condition to the SQL, is it possible to view the full query from database side?
ok, let me try trace and tkprof first. -
Query to see the Status of all jobs including steps
Hi,
I have 5 jobs in my sql server and each job has 5 steps.
I need a query which returns the job status, along with steps status in a single query.
i want the result of last execution onlyyou can use msdb catalog views like sysjobs,sysjobsteps etc for that
see
http://www.mssqltips.com/sqlservertip/2561/querying-sql-server-agent-job-information/
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How can I get my trigger to see the SQL that activated the trigger?
The catch here is that this is a standard edition instance so FGA is not available.
TIA, AllenI would be very interested in why you would want the literal SQL...
While this won't be particularly efficient, you can get the SQL currently being executed in a session via something like
select sql_fulltext
from v$sqlarea area,
v$session sess
where sess.sql_address = area.address
and sess.sql_hash_value = area.hash_value
and SYS_CONTEXT( 'USERENV', 'SID') = sess.sidI haven't tested that this returns the query that actually fired the trigger in every situation, but it's probably a reasonable guess...
Justin -
See the SQL to be executed by a page?
In a previous release of HTML DB (1.5?) it was possible to set a switch to display the SQL that is generated, with all item substitutions, to populate a report. I found this very helpful in debugging page SQL processes. I do not see how to do this in release 2.0. Is this no longer supported?
There are 2 ways to debug a page from Apex
1. Change the NO to YES in the URL in the "debug" parameter position (Read the user guide for the syntax of the f?p= URL)
2. Add a &p_trace=YES to the end of the URL. This will make Apex generate a trace file on the server (in user_dump_dest). You can use tkprof on this file as usual.
Maybe you are looking for
-
0WBS_ELEMT DTP is taking long time to finish
Hi , Data load from PSA to data target(0WBS_ELEMT) is taking very long time for around 1.2 lakhs data .while uploading data from source to PSA it is taking only 5 to 10 mins but from PSA to target it is taking around 2 hours where as earlier it used
-
How do I do a one way sync from contacts in computer (Outlook), to contacts on I pad (also for I-phone)? Contacts on I-Pad are incorrect and I do not want to add them back to my computer? Alternatively, is there any way to delete contact groups all
-
Please help me get the latest version of adobe flash onto my iPad. Thanks so much
Please help me install the latest version of adobe flash Onto my iPad. Thanks so much
-
AAS 9.2.0 registration to shared services failed
All, can you help me, i'm trying to deploy Analytic Administration Services 9.2.0 to Shared Services. but always return error. here are config log which has error part (Nov 5, 2009 11:59:16 AM), Install.product.install, com.hyperion.ess.EasHubConfigu
-
Distribution of GOA contract on multiple backend
Hi gurus, can someone explain me how to setting organization structure to distribute 1 goa contract to multiple back end? More in detail, how have I to model the structure of user that has to create GOA contract? Have I to use local purchasing org,..