dbTalk Databases Forums  

Views

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Views in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mtek
 
Posts: n/a

Default Views - 06-13-2008 , 09:46 AM







Hi,

We use TOAD as our GUI to see the database. I put in a query that
selects from V$SQL, but I get a missing expression. The same query
works from within SQLPLUS. Even it I change it to V_$SQL, no good.

Is there something special with these dictionary tables???

Thanks!

John

Reply With Quote
  #2  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: Views - 06-13-2008 , 11:25 AM






On Jun 13, 9:46*am, Mtek <m... (AT) mtekusa (DOT) com> wrote:
Quote:
Hi,

We use TOAD as our GUI to see the database. *I put in a query that
selects from V$SQL, but I get a missing expression. *The same query
works from within SQLPLUS. * Even it I change it to V_$SQL, no good.

Is there something special with these dictionary tables???

Thanks!

John
Without seeing your query no one can answer that.

Post it.


David Fitzjarrell


Reply With Quote
  #3  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: Views - 06-13-2008 , 11:25 AM



On Jun 13, 9:46*am, Mtek <m... (AT) mtekusa (DOT) com> wrote:
Quote:
Hi,

We use TOAD as our GUI to see the database. *I put in a query that
selects from V$SQL, but I get a missing expression. *The same query
works from within SQLPLUS. * Even it I change it to V_$SQL, no good.

Is there something special with these dictionary tables???

Thanks!

John
Without seeing your query no one can answer that.

Post it.


David Fitzjarrell


Reply With Quote
  #4  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: Views - 06-13-2008 , 11:25 AM



On Jun 13, 9:46*am, Mtek <m... (AT) mtekusa (DOT) com> wrote:
Quote:
Hi,

We use TOAD as our GUI to see the database. *I put in a query that
selects from V$SQL, but I get a missing expression. *The same query
works from within SQLPLUS. * Even it I change it to V_$SQL, no good.

Is there something special with these dictionary tables???

Thanks!

John
Without seeing your query no one can answer that.

Post it.


David Fitzjarrell


Reply With Quote
  #5  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: Views - 06-13-2008 , 11:25 AM



On Jun 13, 9:46*am, Mtek <m... (AT) mtekusa (DOT) com> wrote:
Quote:
Hi,

We use TOAD as our GUI to see the database. *I put in a query that
selects from V$SQL, but I get a missing expression. *The same query
works from within SQLPLUS. * Even it I change it to V_$SQL, no good.

Is there something special with these dictionary tables???

Thanks!

John
Without seeing your query no one can answer that.

Post it.


David Fitzjarrell


Reply With Quote
  #6  
Old   
Mtek
 
Posts: n/a

Default Re: Views - 06-13-2008 , 11:37 AM



On Jun 13, 11:25 am, "fitzjarr... (AT) cox (DOT) net" <orat... (AT) msn (DOT) com> wrote:
Quote:
On Jun 13, 9:46 am, Mtek <m... (AT) mtekusa (DOT) com> wrote:

Hi,

We use TOAD as our GUI to see the database. I put in a query that
selects from V$SQL, but I get a missing expression. The same query
works from within SQLPLUS. Even it I change it to V_$SQL, no good.

Is there something special with these dictionary tables???

Thanks!

John

Without seeing your query no one can answer that.

Post it.

David Fitzjarrell
select a.USERNAME,
DISK_READS,
EXECUTIONS,
round(DISK_READS / decode(EXECUTIONS, 0, 1, EXECUTIONS)) "Reads/
Execs",
SQL_TEXT
from dba_users a, v$session, v$sqlarea
where PARSING_USER_ID=USER_ID
and ADDRESS=SQL_ADDRESS(+)
and DISK_READS > 10000
order by DISK_READS desc, EXECUTIONS desc;


Reply With Quote
  #7  
Old   
Mtek
 
Posts: n/a

Default Re: Views - 06-13-2008 , 11:37 AM



On Jun 13, 11:25 am, "fitzjarr... (AT) cox (DOT) net" <orat... (AT) msn (DOT) com> wrote:
Quote:
On Jun 13, 9:46 am, Mtek <m... (AT) mtekusa (DOT) com> wrote:

Hi,

We use TOAD as our GUI to see the database. I put in a query that
selects from V$SQL, but I get a missing expression. The same query
works from within SQLPLUS. Even it I change it to V_$SQL, no good.

Is there something special with these dictionary tables???

Thanks!

John

Without seeing your query no one can answer that.

Post it.

David Fitzjarrell
select a.USERNAME,
DISK_READS,
EXECUTIONS,
round(DISK_READS / decode(EXECUTIONS, 0, 1, EXECUTIONS)) "Reads/
Execs",
SQL_TEXT
from dba_users a, v$session, v$sqlarea
where PARSING_USER_ID=USER_ID
and ADDRESS=SQL_ADDRESS(+)
and DISK_READS > 10000
order by DISK_READS desc, EXECUTIONS desc;


Reply With Quote
  #8  
Old   
Mtek
 
Posts: n/a

Default Re: Views - 06-13-2008 , 11:37 AM



On Jun 13, 11:25 am, "fitzjarr... (AT) cox (DOT) net" <orat... (AT) msn (DOT) com> wrote:
Quote:
On Jun 13, 9:46 am, Mtek <m... (AT) mtekusa (DOT) com> wrote:

Hi,

We use TOAD as our GUI to see the database. I put in a query that
selects from V$SQL, but I get a missing expression. The same query
works from within SQLPLUS. Even it I change it to V_$SQL, no good.

Is there something special with these dictionary tables???

Thanks!

John

Without seeing your query no one can answer that.

Post it.

David Fitzjarrell
select a.USERNAME,
DISK_READS,
EXECUTIONS,
round(DISK_READS / decode(EXECUTIONS, 0, 1, EXECUTIONS)) "Reads/
Execs",
SQL_TEXT
from dba_users a, v$session, v$sqlarea
where PARSING_USER_ID=USER_ID
and ADDRESS=SQL_ADDRESS(+)
and DISK_READS > 10000
order by DISK_READS desc, EXECUTIONS desc;


Reply With Quote
  #9  
Old   
Mtek
 
Posts: n/a

Default Re: Views - 06-13-2008 , 11:37 AM



On Jun 13, 11:25 am, "fitzjarr... (AT) cox (DOT) net" <orat... (AT) msn (DOT) com> wrote:
Quote:
On Jun 13, 9:46 am, Mtek <m... (AT) mtekusa (DOT) com> wrote:

Hi,

We use TOAD as our GUI to see the database. I put in a query that
selects from V$SQL, but I get a missing expression. The same query
works from within SQLPLUS. Even it I change it to V_$SQL, no good.

Is there something special with these dictionary tables???

Thanks!

John

Without seeing your query no one can answer that.

Post it.

David Fitzjarrell
select a.USERNAME,
DISK_READS,
EXECUTIONS,
round(DISK_READS / decode(EXECUTIONS, 0, 1, EXECUTIONS)) "Reads/
Execs",
SQL_TEXT
from dba_users a, v$session, v$sqlarea
where PARSING_USER_ID=USER_ID
and ADDRESS=SQL_ADDRESS(+)
and DISK_READS > 10000
order by DISK_READS desc, EXECUTIONS desc;


Reply With Quote
  #10  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: Views - 06-13-2008 , 02:35 PM



On Jun 13, 11:37*am, Mtek <m... (AT) mtekusa (DOT) com> wrote:
Quote:
On Jun 13, 11:25 am, "fitzjarr... (AT) cox (DOT) net" <orat... (AT) msn (DOT) com> wrote:





On Jun 13, 9:46 am, Mtek <m... (AT) mtekusa (DOT) com> wrote:

Hi,

We use TOAD as our GUI to see the database. *I put in a query that
selects from V$SQL, but I get a missing expression. *The same query
works from within SQLPLUS. * Even it I change it to V_$SQL, no good.

Is there something special with these dictionary tables???

Thanks!

John

Without seeing your query no one can answer that.

Post it.

David Fitzjarrell

select *a.USERNAME,
* * * * DISK_READS,
* * * * EXECUTIONS,
* * * * round(DISK_READS / decode(EXECUTIONS, 0, 1, EXECUTIONS)) "Reads/
Execs",
* * * * SQL_TEXT
from * *dba_users a, v$session, v$sqlarea
where * PARSING_USER_ID=USER_ID
and * * ADDRESS=SQL_ADDRESS(+)
and * * DISK_READS > 10000
order * by DISK_READS desc, EXECUTIONS desc;- Hide quoted text -

- Show quoted text -
Now post the exact error displayed.


David Fitzjarrell


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.