Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

can't see SQL for a session

Posted on 2011-02-15
9
Medium Priority
?
1,061 Views
Last Modified: 2012-05-11
Hello,

In oracle 11g, why maybe I can't see sql for a session.

Thanks

Regards

bibi
0
Comment
Question by:bibi92
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 78

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34897061
I don't understand.  What are you asking?
0
 
LVL 61

Expert Comment

by:HainKurt
ID: 34897417
"see sql for a session" ????
0
 

Author Comment

by:bibi92
ID: 34900004
SQLADRESS is null but a query is running.
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 61

Expert Comment

by:HainKurt
ID: 34900204
what does this mean?

"SQLADRESS is null but a query is running"
0
 

Author Comment

by:bibi92
ID: 34900986
SQLADRESS is 000000 but a query is running.
0
 
LVL 61

Expert Comment

by:HainKurt
ID: 34901138
sorry but we are not watching your monitor :) we dont know what you are talking about...
0
 
LVL 78

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34902514
How do you know the session with sql address 000000 is the one you need to be looking at?
0
 
LVL 5

Accepted Solution

by:
manzoor_dba earned 2000 total points
ID: 34903459
Hi,

You need to used sql_address as well as sql_hash_value...

Query the below inorder get the sqls which are currently running.

select s.sid, s.serial#, t.sql_text from v$session s, v$sqltext t
where s.sql_address = t.address
and s.sql_hash_value = t.hash_value;

Thanks..
0
 

Author Closing Comment

by:bibi92
ID: 34905544
Thanks bibi
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question