Identifying the sql for non persistant session
We have a number of queries which are being directed to our Oracle 10.2.0.5 database.
I am being informed that there is something wrong with these queries and I need to view the SQL for these queries to investigate.
The problem I have is that the sequence of events is as follows :
1. Connection is made to the database.
2. Query is run and completes in less than 1 second.
3. Database session is disconnected.
Normally to investigate this I would connect to the session in question and interrogate the SQL.
However, because steps 1-3 complete in a split second I am unable to do this.
Is there any way that I can capture this SQL for investigation?
Thank you in advance.
user6502667 wrote:
We have a number of queries which are being directed to our Oracle 10.2.0.5 database.
I am being informed that there is something wrong with these queries and I need to view the SQL for these queries to investigate.
The problem I have is that the sequence of events is as follows :
1. Connection is made to the database.from which system(s)?
as which user?
2. Query is run and completes in less than 1 second.
3. Database session is disconnected.
Normally to investigate this I would connect to the session in question and interrogate the SQL.
However, because steps 1-3 complete in a split second I am unable to do this.
Is there any way that I can capture this SQL for investigation?
Thank you in advance.AUDIT
Similar Messages
-
How can we do the validation for non visible records in table control.
Hi Experts,
I have a table control which displays list of material details. I have a button to upload the material details from excel file to table control directly. I have to validate all the customers which are exist in the table. But my item (Material) table control displays only 5 rows i.e only 5 entries are visible in module pool screen. The validation is done for 5 records only in PAI event, but i need to do validation for rest of the records too (Which are not visible on items table), if validation fails then needs to display error message.
How can we do the validation for non visible records in table control.
Regards,
BujjiHi,
try validating material before displaying it in table control...'
Rgds/Abhhi -
Problems realted to changing the language for non-Unicode programs from one into anther.
Hi,
Hi everyone!
Product Name: HP Pavilion dv6-6093ex
Product Number : LM610EA#A2N.
My Windows 7(464Bit) Ultimate, and its base language, and display language is English.
The Languages(English, French and Arabic) built-in (came re-downloaded and re-installed by the person who made the Windows disc installation). Thus, while installing Windows 7, those three lanauge listed for me to choose one of them to be the base language
and display language, I have chosen 'English'. In the End of installation, there are three pre-packaged languages(English and French and Arabic) can be used as a display language.
I would like anyone kindly to confirm for me why I have been facing these problems when changing language for non-Unicode programs from English into Arabic.
First: After I have installed the AMD High-Definition Graphics Driver (sp55092) 8.882.2.3000 on my laptop. The contents of the of Intel Graphics and Media Control Panel are partially shown in Arabic while language for non-Unicode programs
is Arabic, however, they are completely shown in English while language for non-Unicode programs is English.
A: I found that contents of the of Intel Graphics and Media Control Panel are partially shown in Arabic (second screen shot below, however,
when click on any options, for example 'Graphics properties' shown in Arabic in, the second window is shown in English) while language for non-Unicode programs is
Arabic, and it doesn't matter what format or location is.
B- when I changed language for non-Unicode programs into
English.
I found that contents of the Intel Graphics and Media Control Panel are completely shown in English .
Second:
A- Only All Arabic contents will be displayed encryptely while language for non-Unicode programs is English
B- All the Arabic contents are displayed properly while language for non-Unicode programs is Arabic.
Third: an error extracting drivers and software downloaded from official HP website while language for non-Unicode programs is English.
A- I noticed an error extracting all kinds of comprised files(drivers and software) downloaded from HP website while language for non-Unicode programs is English and whatever location and format are:
B- However while language for non-Unicode programs is Arabic, there is no error extracting files.
In conclusion, Is it normal
for all of you the contents of the of Intel Graphics and Media Control Panel are partially shown in your native while language used
for non-Unicode programs is your native lanague, however, they are completely shown in English while language for non-Unicode programs is English?. IF so I would be saying that if I have wanted the contents of documents written in my language
Arabic to be shown properly, then then I
must let the language for non-Unicode programs be Arabic.
Is this happens with you as well?
Also, if I need extracting all kinds of comprised files(drivers and software) downloaded from HP website, then language for non-Unicode programs
must be in my Arabic lanague English and whatever location and format are.
Is this happened with you as well?
I would highly appreciate any clarification from you.
A man should convert his anger and sadness into strength to continue living in this life.Hi,
I am confused about your issue.
when you changed language for non-Unicode programs into English, it show English.
while language for non-Unicode programs is Arabic, it show Arabic, If it's none-Unicode.
This is correct. Why you think it's an issue?
About your second scenario description, I was not clear what you said. Could you give us a explanation?
Note: System display language is not the un-Unicode program language.
You can just choose one language to display the system at same time.
This article might be helpful to you:
Install or change a display language
http://windows.microsoft.com/en-in/windows7/install-or-change-a-display-language
Change the system locale
http://windows.microsoft.com/en-in/windows/change-system-locale#1TC=windows-7
Karen Hu
TechNet Community Support -
Problems realted to changing the language for non-Unicode programs
Hi everyone!
Product Name: HP Pavilion dv6-6093ex
Product Number : LM610EA#A2N.
My Windows 7(464Bit) Ultimate, and its base language, and display language is English.
The Languages(English, French and Arabic) built-in (came re-downloaded and re-installed by the person who made the Windows disc installation). Thus, while installing Windows 7, those three lanauge listed for me to choose one of them to be the base language and display language, I have chosen 'English'. In the End of installation, there are three pre-packaged languages(English and French and Arabic) can be used as a display language.
I would like anyone kindly to confirm for me why I have been facing these problems when changing language for non-Unicode programs from English into Arabic.
First: After I have installed the AMD High-Definition Graphics Driver (sp55092) 8.882.2.3000 on my laptop. The contents of the of Intel Graphics and Media Control Panel are partially shown in Arabic while language for non-Unicode programs is Arabic, however, they are completely shown in English while language for non-Unicode programs is English.
A: I found that contents of the of Intel Graphics and Media Control Panel are partially shown in Arabic (second screen shot below, however, when click on any options, for example 'Graphics properties' shown in Arabic in, the second window is shown in English) while language for non-Unicode programs is Arabic, and it doesn't matter what format or location is.
B- when I changed language for non-Unicode programs into English.
I found that contents of the Intel Graphics and Media Control Panel are completely shown in English .
Second:
A- Only All Arabic contents will be displayed encryptely while language for non-Unicode programs is English
B- All the Arabic contents are displayed properly while language for non-Unicode programs is Arabic.
Third: an error extracting drivers and software downloaded from official HP website while language for non-Unicode programs is English.
A- I noticed an error extracting all kinds of comprised files(drivers and software) downloaded from HP website while language for non-Unicode programs is English and whatever location and format are:
B- However while language for non-Unicode programs is Arabic, there is no error extracting files.
In conclusion, Is it normal for all of you the contents of the of Intel Graphics and Media Control Panel are partially shown in your native while langauge used for non-Unicode programs is your native lanague, however, they are completely shown in English while language for non-Unicode programs is English?. IF so I would be saying that if I have wanted the contents of documents written in my language Arabic to be shown properly, then then I must let the language for non-Unicode programs be Arabic. Is this happens with you as well?
Also, if I need extracting all kinds of comprised files(drivers and software) downloaded from HP website, then language for non-Unicode programs must be in my Arabic lanague English and whatever location and format are. Is this happened with you as well?
I would highly appreciate any clarification from you.
This question was solved.
View Solution.Hi cooperator,
I saw your post regarding the language questions and I will be happy to help. What are you are experiencing with the languages is normal. The base operating system is in English and while you can change the display language the core kernal of the operating system would be in English.
The reason that the Intel Graphic and Media Control Panel is in English and the rest in Arabic is because the driver would have been designed in English and is hard coded as into the driver but the display language is set to Arabic. So when the language is set to English everything will be in English.
The reason you having issues extracting drivers when you English set at the language is because the HP website will determine where in the world you and when you download the driver it will be the appropriate language for the country you are from. So when it extracts it will look for the proper extraction path using Arabic but everything is English. It work no problem when you are on Arabic because the driver can read the path properly.
Thank you,
Please click “Accept as Solution ” if you feel my post solved your issue.
Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
Thank you,
BHK6
I work on behalf of HP -
Trying to find out the sql for the below 3 values
HI Experts,
I am trying to find the sql that can give me the values for the below three values. can some one Help me out getting these ?
Free buffer waits (%)
Local write wait (%)
Latch: cache buffer chains (%)
Actually these are the metrics which are available in OEM for the DB releases up to 9i. Post 9i releases , these metrics are obsoleted.
So, trying to find the sql for these and use them as an UDM for the 10g and 11g DB's
Thanks in Advance.
Thanks,
Naveen kumar.And is there any why to find using what sql the metrci is formed ?
-
Table to identify the datatarget for each infopackage .
Hi All,
Is there any simplest way to identify the datatarget for each infopacakge instaed of checking each infopacakge to identify the target.We have nearly 1000 infopackges loaing to different data targets.Is there any simplest way to identify which infoackge is loading which data target. like any table.
Regards,
SirishaHi Ashok,
The table you have mentioned above will show only the infosource and datasource names not the data target names.please let me know if there is any other table which shows datatarget names . -
How to create the PO for non trading goods (office stationary)
Hi all,
please explain the process for non trading PO, what the the special indicator we need to select to create the non trading PO.
I don't want to inventorise the goods, i want to book directly in expenses g/l.
what are the financial effects while goods reciepts and invoice verification.
Thanks and regardsHi
For non trade PO (like stationery), you can directly book the invoice through FB60. There is no need to route such item through PO.
Regards, -
Clear the entry for killed/sniped session in v$session
Dear all,
In our production database(11.2.0.1.0) running on windows 2008 server many client session showing inactive from last 4-5 hour and I want to kill those session because all sessions are dedicated so for this I created a resource plan set its idle time after certain interval session status is showing killed but it is not removing entries from v$session but our client demand is it must be clear from v$session so for this i was using DOS command taskkill utility to kill particular os process so I want to know what is the smartest way to do this.This is known behavior, not an issue.
In a dedicated server environment when the session is killed and the rollback completes the process goes away so a join between v$session and v$process will fail. The v$session entry also usually goes away rather quickly, though I have seen cases where the v$session entry hung around till the instance was bounced. But normally Oracle will overlay the v$session entry with a new session using the same sid but a different serial# within seconds on a busy system.
Mark @ http://dbaspot.com/oracle-server/40419-killed-sessions.html
Metalink doc id 1023442.6 is also something confirming it.
See also below link and last reply by Mr. Braj Kishore Mahto.
http://dbaforums.org/oracle/index.php?showtopic=3039
Regards
Girish Sharma
Edited by: Girish Sharma on Nov 21, 2012 5:35 PM
So, what is best in this regard :
ALTER SYSTEM DISCONNECT SESSION
The ALTER SYSTEM DISCONNECT SESSION syntax is an alternative method for killing Oracle sessions. Unlike the KILL SESSION command which asks the session to kill itself, the DISCONNECT SESSION command kills the dedicated server process (or virtual circuit when using Shared Sever), which is equivalent to killing the server process from the operating system. The basic syntax is similar to the KILL SESSION command with the addition of the POST_TRANSACTION clause. The SID and SERIAL# values of the relevant session can be substituted into one of the following statements.
SQL> ALTER SYSTEM DISCONNECT SESSION 'sid,serial#' POST_TRANSACTION;
SQL> ALTER SYSTEM DISCONNECT SESSION 'sid,serial#' IMMEDIATE;
http://www.oracle-base.com/articles/misc/killing-oracle-sessions.php#disconnect_session -
Identify elevated process for non-admin
Although it is unusual, unpriviledged users can run elevated under their normal credentials (not with admin creds). This most commonly occurs with logon scripts run from GPO.
Running elevated messes some things up (particularly drive mapping). Thus, I'm looking for a way for a script to identify if it is running elevated. I know how to find elevated status for administrators:
$identity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$principal = New-Object System.Security.Principal.WindowsPrincipal( $identity )
$admin = [System.Security.Principal.WindowsBuiltInRole]::Administrator
if ($principal.IsInRole( $admin )) {
# script is running as an admin
But this doesn't work (obviously) for non-admins.
This article
is helpful for testing for elevated processes, but it doesn't work if run elevated itself.
Anyone have any suggestions?
Thanks.Hi Cascomp,
In addition, Please also check the script below to determine running elevated or not.
[bool]((whoami /groups) -match "S-1-16-12288")
The SID "S-1-16-12288" imply the group the current user belong to has a High Mandatory Level Label, and the elevated user has the high level, which can be found HERE.
For more detailed information about Windows Integrity Mechanism, please also refer to this article:
http://msdn.microsoft.com/en-us/library/bb625963.aspx
Q: How can I quickly tell if my PowerShell window is running elevated?
http://windowsitpro.com/powershell/q-how-can-i-quickly-tell-if-my-powershell-window-running-elevated
If you have any feedback on
our support, please click here.
Best Regards,
Anna
TechNet Community Support -
Temporary JMS paging files for non-persistent messages
Hello,
WLS 9.2
When does the server clean up, if at all, the temporary paging files created for large non-persistent messages? Should the files be deleted after the messages are acknowledged?
Thanks,
BobOr are they really gets stored ?
i.e the non_persistent messages are not stored atall either in memory or anywhere.
Or non_persistent messages are stored in memory only ....similar to PERSISTENT messages with no file store/database store ? -
How to see SQLs for a database session ?
I am on Oracle 8.1.7 in AIX.
I can see all the session details in v$session , also I can look at the SQLs being executed on the server in v$sqlarea and v$sqltext.
If I want to see, for a given database session, what are the SQLs those are run ? how can I do that ?
Can I do that or not ???
Please guide .
Regardswith this query you can know what are all views related
to SQL Statements:
SQL> select table_name from dictionary
2 where table_name like '%SQL%';
TABLE_NAME
GV$SQL
GV$SQLAREA
GV$SQLTEXT
GV$SQLTEXT_WITH_NEWLINES
GV$SQL_BIND_DATA
GV$SQL_BIND_METADATA
GV$SQL_CURSOR
GV$SQL_SHARED_CURSOR
GV$SQL_SHARED_MEMORY
V$SQL
V$SQLAREA
TABLE_NAME
V$SQLTEXT
V$SQLTEXT_WITH_NEWLINES
V$SQL_BIND_DATA
V$SQL_BIND_METADATA
V$SQL_CURSOR
V$SQL_SHARED_CURSOR
V$SQL_SHARED_MEMORY
18 rows selected.
and here you can get information of each one:
Catalog Views / Data Dictionary Views
http://otn.oracle.com/pls/db92/db92.catalog_views?remark=homepage
Joel P�rez -
How to identify the SQLs which are using the tables and new columns
Hi
I m using oracle 10G Database in windows. Developers have added some columns in some of the database tables and were asking to check whether there is some impact on performance or not. I have not done this performance tuning before. Kindly help me how to proceed further.
How to obtain the sqls which are touching the tables and the new columns? It would be really great if you can help me with this.
ThanksYou can try to use DBA_DEPENDENCIES to get PL/SQL objects using tables: http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1041.htm#i1576452.
However if SQL code is not stored in database in a trigger, a procedure, a function, a package or a view, it is impossible to retrieve all SQL code referencing some table from database dictionary: for this you would have to analyze application source code. -
Identify the relationship for the follwing fields
Hi experts,
I have to develop a report which is taking input as : -
1.matnr (material number)
2.werks (plant)
3.stlan (BOM usage)
4. stlal (alternative)
And I need the output as : -
AENNR (ECR : engg change request)
I am unable to identify the relationships between these fields, plz suggest me the best ways to do this..
Thanks in advance
Gaurav
Moderator message : Spec-dumping not allowed. Read forum rules before posting. Thread locked.
Edited by: Vinod Kumar on Jul 5, 2011 2:11 PMafter getting the records to internal table write the statement
delete adjacent duplicate ................... before that write sort stament also......
Deleting Adjacent Duplicate Entries
To delete adjacent duplicate entries use the following statement:
DELETE ADJACENT DUPLICATE ENTRIES FROM <itab>
[COMPARING <f1> <f 2> ...
|ALL FIELDS].
The system deletes all adjacent duplicate entries from the internal table <itab>. Entries are duplicate if they fulfill one of the following compare criteria:
Without the COMPARING addition, the contents of the key fields of the table must be identical in both lines.
If you use the addition COMPARING <f1> <f 2> ... the contents of the specified fields <f 1 > <f 2 > ... must be identical in both lines. You can also specify a field <f i > dynamically as the contents of a field <n i > in the form (<n i >). If <n i > is empty when the statement is executed, it is ignored. You can restrict the search to partial fields by specifying offset and length.
If you use the addition COMPARING ALL FIELDS the contents of all fields of both lines must be identical.
You can use this statement to delete all duplicate entries from an internal table if the table is sorted by the specified compare criterion.
If at least one line is deleted, the system sets SY-SUBRC to 0, otherwise to 4. -
Workbook Displays Data Not Present in the Cube for Non-Cumulative KF
Hi All,
I have a user that is reporting using noncumulative info object 0TOTALSTCK. If I look in the cube, the data starts in October and goes from there. When viewing the data, there are figures that display for the months prior to October even though there is no data in the cube.
The interesting thing is that when viewed in excel using the analyser, these figures display using square brackets. This is then throwing out the total values of the prior months as they are being added in.
Does anyone have an idea why this value would display even though there is no data in the cube for it?
Thanks in advance for any help supplied.Just thought I would share the solution to this.
It looks like the validity date for the cube was not set up properly. I fixed it using transaction RSDV.
Details on how to proceed can be found here:
http://help.sap.com/saphelp_nw70/helpdata/EN/02/9a6a1f244411d5b2e30050da4c74dc/frameset.htm -
How to write the SQL for the following
ID PRODUCT LEAD_FLAG SALES_VOLUME
1 A Y 100
1 B N 200
1 C N 300
1 D N 400
2 A N 10
2 B Y 20
2 C N 30
2 D N 40
I need to calculate the incentive for each ID. The rule is for an ID:
if the the lead flag for a product is N, then check the sales_volume of the product whose lead_flag is Y (product A in case of ID 1, product B in case of ID 2). if the sales_volume of the product with lead_flag = Y is greater than a NUMBER (this NUMBER varies from product to product. for product A it is 20, for product B it is 25, C it is 30 and D it is 40) then incentive = (sales_volume of the product with lead flag N) * 100.Hello, I presume the NUMBER you refer to will be held in a table column somewhere? I'm calling it threshold_num in the test data below (and rec_id instead of ID):
WITH test_data AS (
SELECT 1 REC_ID, 'A' PRODUCT, 'Y' LEAD_FLAG, 100 SALES_VOLUME FROM DUAL UNION ALL
SELECT 1, 'B','N', 200 FROM DUAL UNION ALL
SELECT 1, 'C','N', 300 FROM DUAL UNION ALL
SELECT 1, 'D','N', 400 FROM DUAL UNION ALL
SELECT 2, 'A','N', 10 FROM DUAL UNION ALL
SELECT 2, 'B','Y', 20 FROM DUAL UNION ALL
SELECT 2, 'C','N', 30 FROM DUAL UNION ALL
SELECT 2, 'D','N', 40 FROM DUAL),
test_ref_data AS (
SELECT 'A' PRODUCT, 20 threshold_num FROM DUAL UNION ALL
SELECT 'B', 25 FROM DUAL UNION ALL
SELECT 'C', 30 FROM DUAL UNION ALL
SELECT 'D', 40 FROM DUAL)
-- end test data
SELECT td1.REC_ID, td1.PRODUCT, CASE WHEN td2.PRODUCT IS NOT NULL THEN td1.sales_volume * 100 ELSE 0 END incentive
FROM test_data td1
LEFT JOIN (
SELECT td2.PRODUCT, SUM(sales_volume) sales_volume
FROM test_data td2
JOIN test_ref_data trd
ON (td2.PRODUCT = trd.PRODUCT)
WHERE td2.lead_flag = 'Y'
GROUP BY td2.PRODUCT, trd.threshold_num HAVING SUM(td2.sales_volume) > trd.threshold_num) td2
ON (td1.PRODUCT = td2.PRODUCT)
WHERE td1.lead_flag = 'N';
REC_ID PROD INCENTIVE
2 A 1000
2 D 0
1 D 0
1 B 0
2 C 0
1 C 0
6 rows selected.And two tips: it's always helps to put {noformat}{noformat} before and after your code for readability, and also to provide expected sample output.
Maybe you are looking for
-
HT2731 How can I transfer music in my Itunes account from my old laptop to new one?
How can I transfer my entire ITUNES songs library from my old laptop to my new one?
-
CREATE OR REPLACE procedure pt_load_withouttran1(tabname in varchar2 , tabname2 in varchar2, condition in varchar2) is --tabname varchar2(100) := 'atlanta_operator'; -- tabname2 varchar2(100) := 'pt_atlanta_operator'; sql_text varchar2(2000) := 'decl
-
Hai... When i processing PGI ....i get an error saying that ..........Material - 12450871 9030 not subject to split valuation 12450871 is Material 9030 is Plant regards pathys
-
I'm looking for a java text widget toolkit that has features for graphically editing (resizing,moving, etc), for example, a JTextArea. Features that allow for colorizing characters will also be great. I have been unsuccessfully looking for such a too
-
I purchased an entire album on iTunes, and there is just one song in it that won't play. If I click on it, a pop-up window asks me to authorise my computer. I enter my password but still can't play the song. This is very annoying, and I'd really like