Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Another Braindead Friday...

RE: Another Braindead Friday...

From: Paul Baumgartel <pbaumgartel_at_mortgagesight.com>
Date: Fri, 27 Jul 2001 12:12:33 -0700
Message-ID: <F001.00357A62.20010727111705@fatcity.com>

Good idea, Tom, but you omitted the 'to ' clause in the grant statement; it should be

select 'grant select on ' || table_name || ' to <username> with grant option;'
from user_tables

Paul Baumgartel
MortgageSight Holdings, LLC
pbaumgartel_at_mortgagesight.com

-----Original Message-----

Sent: Friday, July 27, 2001 2:27 PM
To: Multiple recipients of list ORACLE-L

Scott,

I don't see another way to do this, but you could generate the grant statements rather quickly using sql - like

set head off
set pages 2000
spool grant.sql
select 'grant select on ' || table_name || ' with grant option;' from user_tables
/
spool off
@grant

and your question about sheep, well, it depends. are you involved with any other livestock?

Tom Mercadante
Oracle Certified Professional

-----Original Message-----

Sent: Friday, July 27, 2001 1:31 PM
To: Multiple recipients of list ORACLE-L

I have RTFM'd re: the following problem in HPUX11, Oracle 7.3.3:

--I have user1 who has select privileges on another schema's table
(user2.tab) through "Select Any Table" privilege.

--user1 creates a view on user2.tab and grants select on the view to
other users (user3..n) through a shared role.

--When user3, et al tries to select from the view they get the infamous
"ORA-1720 - Grant option does not exist for xxx.xxx" error.

--I know you I can grant select on user2.tab with grant option to user1
and solve this, but I would rather not do that if at all possible.

--Also, I could create the view as user2 and not have the problem. The
issue here is user1 needs to create the above type of views on the fly (please! I didn't design it!!!), and with 30 sites to support, there is no way to keep up if I have to create the views one by one.

Is there any way around the situation besides the "select with grant option" clause to user1 (view owner)?
Am I an idiot?
Are sheep considered dates in TX?
HELP Thanks,

Scott Shafer
San Antonio, TX



Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Scott Shafer
  INET: sknd100_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Mercadante, Thomas F
  INET: NDATFM_at_labor.state.ny.us
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Paul Baumgartel
  INET: pbaumgartel_at_mortgagesight.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Jul 27 2001 - 14:12:33 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US