Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: RAC, gv$ views, and the AWR
Ryan, see inline
Regards Nigel
10.2.0.1
Redhat 5.0 OS
I have 3 questions in this one
why would I get an error on a data dictionary query?
SQL> select a.*
2 from gv$session_wait a, gv$session b
3 where a.sid = b.sid
4 and b.sid = '<myuser>';
select a.*
*
ERROR at line 1:
ORA-12801: error signaled in parallel query server PZ99, instance
racdb01)
ORA-01722: invalid number
==>
The query looks wrong. If you are passing a string in, it is implicitly getting converted to_number (and if it really is the username, will fail...)
Why join to gv$session if you are using a.sid=b.sid and b.sid = 'constant'? Looks like you should have said
and b.username = '<myuser>'
Using the report name ryan.txt
select output from table(dbms_workload_repository.awr_report_text( :dbid,
==> sorry, what's the question?
I run the following query:
select username,count(*)
from gv$session
group by username;
I do not see the user he is logged in as in this query at all. I do not see anyone with that username.
==> are you sure he has commected to the correct database/instance? and to the username you expected?
-- http://www.freelists.org/webpage/oracle-lReceived on Sun Nov 11 2007 - 05:44:14 CST
![]() |
![]() |