SunQuest
           Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old April 7th, 2004, 04:12 AM
SeaBird505 SeaBird505 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 25 SeaBird505 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 50 sec
Reputation Power: 0
DBA--- View creation problem

To be simple, say I have two Users having some schemas as below,
Code:
User1     (privilage: connect, resource, dba)
  table1
  view1  (based on select * from table1)

User2     (privilage: connect, resource, select on everything of User1)

When I log in as User2, this statement works
   Create  table table1 as select * from User1.table1;

However, this won't with the following error message
   Create or replace view1 as select * from User1.view1;
   or even
   Create or replace view11 as select * from User1.table1;

   Error: table or view doesn't exist (the User1's table or view).


1. What am I doing wrong, plz help.

2. In actuall, table/view of User2 have restricted records of User1's, based on certain condition. Is this the right approach of restricting records to a user? i.e.to User2.

Thanks for every second of your help

Reply With Quote
  #2  
Old April 7th, 2004, 06:36 AM
galith_haham galith_haham is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 64 galith_haham User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 25 m 17 sec
Reputation Power: 5
Hi,

Try granting user2 access to view table1:


from user1:

grant select on table1 to user2;

Galit.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > DBA--- View creation problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway