dbTalk Databases Forums  

why does this guy use dual?

comp.databases.oracle.server comp.databases.oracle.server


Discuss why does this guy use dual? in the comp.databases.oracle.server forum.



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

Default why does this guy use dual? - 01-25-2011 , 06:42 PM






http://www.oracleobserver.com/?q=node/28 seems to have an unnecessary
use of dual, or am I missing something?

It seems to work fine for me without it.

jg
--
@home.com is bogus.
http://www.shapirolab.net/PerpetualCollisions/

Reply With Quote
  #2  
Old   
Noons
 
Posts: n/a

Default Re: why does this guy use dual? - 01-25-2011 , 07:26 PM






joel garry wrote,on my timestamp of 26/01/2011 11:42 AM:
Quote:
http://www.oracleobserver.com/?q=node/28 seems to have an unnecessary
use of dual, or am I missing something?

It seems to work fine for me without it.



Weird. Only thing I can think of is if v$instance is available and dual isn't,
like in a startup? Nup, even then it wouldn't work: it's a cartesian product...

Reply With Quote
  #3  
Old   
gazzag
 
Posts: n/a

Default Re: why does this guy use dual? - 01-27-2011 , 05:07 AM



On Jan 26, 12:42*am, joel garry <joel-ga... (AT) home (DOT) com> wrote:
Quote:
http://www.oracleobserver.com/?q=node/28seems to have an unnecessary
use of dual, or am I missing something?

It seems to work fine for me without it.

jg
--
@home.com is bogus.http://www.shapirolab.net/PerpetualCollisions/
I think he's confused

Plus that's not a script, it's a query </pedant>

-g

Reply With Quote
  #4  
Old   
John Hurley
 
Posts: n/a

Default Re: why does this guy use dual? - 01-27-2011 , 06:29 PM



Joel:

# http://www.oracleobserver.com/?q=node/28seems to have an unnecessary
use of dual, or am I missing something?

A new hire to a certain unnamed consulting group?

Reply With Quote
  #5  
Old   
John Hurley
 
Posts: n/a

Default Re: why does this guy use dual? - 01-27-2011 , 06:31 PM



Joel:

Hey a tied vote at 50 percent each with a grand total of 2 votes in so
far ...

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

Default Re: why does this guy use dual? - 01-28-2011 , 05:26 AM



On Jan 28, 12:31*am, John Hurley <hurleyjo... (AT) yahoo (DOT) com> wrote:
Quote:
Joel:

Hey a tied vote at 50 percent each with a grand total of 2 votes in so
far ...
That link now dsisplays "page not found". I guess he's havinga re-
think

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

Default Re: why does this guy use dual? - 01-28-2011 , 06:36 AM



On Jan 27, 8:29*pm, John Hurley <hurleyjo... (AT) yahoo (DOT) com> wrote:
Quote:
Joel:

#http://www.oracleobserver.com/?q=node/28seemsto have an unnecessary
use of dual, or am I missing something?

A new hire to a certain unnamed consulting group?
That's my vote. Since PUBLIC access to UTL_TCP is a 'critical'
security policy finding, and access to V$INSTANCE requires additional
privileges, why not do it the simple way that anyone with CREATE
SESSION can use?
create user test identified by test;
grant create session to test;
connect test/test@alias
select sys_context('userenv','server_host') host,
sys_context('userenv','instance_name') instance_name,
sys_context('userenv','ip_address') ip_address from dual;
HOST INSTANCE_NAME
IP_ADDRESS
------------------------------ ------------------------------
----------------
laptop-1005596 orcl
10.10.10.10

I know, it's a lot more typing!

Reply With Quote
  #8  
Old   
The Boss
 
Posts: n/a

Default Re: why does this guy use dual? - 01-28-2011 , 06:53 AM



On Jan 28, 1:29*am, John Hurley <hurleyjo... (AT) yahoo (DOT) com> wrote:
Quote:
Joel:

#http://www.oracleobserver.com/?q=node/28seemsto have an unnecessary
use of dual, or am I missing something?
Probably a sloppy cut&paste from a 'standard' query to get the host-
name from dual, adding the extra info from v$instance.

Quote:
A new hire to a certain unnamed consulting group?
Don't think so:
http://oaktable.net/users/gpmilliken

--
J

Reply With Quote
  #9  
Old   
The Boss
 
Posts: n/a

Default Re: why does this guy use dual? - 01-28-2011 , 06:56 AM



On Jan 28, 12:26*pm, gazzag <gar... (AT) jamms (DOT) org> wrote:
Quote:
On Jan 28, 12:31*am, John Hurley <hurleyjo... (AT) yahoo (DOT) com> wrote:

Joel:

Hey a tied vote at 50 percent each with a grand total of 2 votes in so
far ...

That link now dsisplays "page not found". *I guess he's havinga re-
think
The link provided by Joel works OK, but you corrupted it in your first
reply..

--
J

Reply With Quote
  #10  
Old   
John Hurley
 
Posts: n/a

Default Re: why does this guy use dual? - 01-28-2011 , 10:53 AM



The Boss:

# Probably a sloppy cut&paste from a 'standard' query to get the host-
name from dual, adding the extra info from v$instance.

.... Don't think so: http://oaktable.net/users/gpmilliken

Maybe someone should submit this is as a question to the Oakies ...
there sure are a lot of them lately.

I have started my own relatively exclusive group the GROUNDHOGs
( GRumpy Old UNderachieving Dbas HOokup Group ) ... wouldn't a
groundhog chew on the leg of an oak table?

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.