Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Miscellaneous > Re: Views
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 7 Topic 6948 of 7280
Post > Topic >>

Re: Views

by Mtek <mtek@[EMAIL PROTECTED] > Jun 17, 2008 at 05:40 AM

On Jun 17, 3:30 am, "Shakespeare" <what...@[EMAIL PROTECTED]
> wrote:
> "Mtek" <m...@[EMAIL PROTECTED]
> schreef in
berichtnews:e0615271-0363-4abf-89cf-5b67cb8946a2@[EMAIL PROTECTED]
>
>
>
> > On Jun 13, 2:35 pm, "fitzjarr...@[EMAIL PROTECTED]
" <orat...@[EMAIL PROTECTED]
> wrote:
> >> On Jun 13, 11:37 am, Mtek <m...@[EMAIL PROTECTED]
> wrote:
>
> >> > On Jun 13, 11:25 am, "fitzjarr...@[EMAIL PROTECTED]
" <orat...@[EMAIL PROTECTED]
> wrote:
>
> >> > > On Jun 13, 9:46 am, Mtek <m...@[EMAIL PROTECTED]
> 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
>
> > A query like this give a "Missing Expression" from TOAD, but works
> > fine from SQLPLUS:
>
> > select EXECUTIONS,
> > BUFFER_GETS,
> > round(DISK_READS / decode(EXECUTIONS, 0, 1, EXECUTIONS) / 400,2)
> > "Gets/Execs",
> > SQL_TEXT
> > from sys.v_$sqlarea
> > where  BUFFER_GETS / decode(EXECUTIONS,0,1, EXECUTIONS) / 400 > 10
> > order  by EXECUTIONS desc;
>
> > John
>
> Try to replace "Gets/Execs" with get_execs (no '/', no quotes)
> Looks like a TOAD problem. PL/SQL Developer runs this query just fine.
>
> Shakespeare


You're smart guy......thanks a bunch!!!
 




 7 Posts in Topic:
Views
Mtek <mtek@[EMAIL PROT  2008-06-13 07:46:54 
Re: Views
"fitzjarrell@[EMAIL   2008-06-13 09:25:55 
Re: Views
Mtek <mtek@[EMAIL PROT  2008-06-13 09:37:40 
Re: Views
"fitzjarrell@[EMAIL   2008-06-13 12:35:07 
Re: Views
Mtek <mtek@[EMAIL PROT  2008-06-16 05:57:47 
Re: Views
"Shakespeare" &  2008-06-17 10:30:31 
Re: Views
Mtek <mtek@[EMAIL PROT  2008-06-17 05:40:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 0:09:28 CST 2008.