Solved

can't see SQL for a session

Posted on 2011-02-15
9
1,057 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 77

Expert Comment

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

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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 56

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 56

Expert Comment

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

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 500 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 Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Suggested Courses

626 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