DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: Hide view definitions

Threaded View

  1. #2
    Join Date
    Sep 2001
    Location
    Düsseldorf, Germany.
    Posts
    588
    Create SYNONYM for the view and grant SELECT priviledge on the SYNONYM to user B

    Code:
    SQL> connect myuser/mypass
    Connect durchgeführt.
    SQL> 
    SQL> create view sam as select * from helloworld where name like 'P%';
    
    View created.
    
    SQL> create synonym samv for sam;
    
    Synonym created.
    
    SQL> grant select on samv to scott;
    
    Grant succeeded.
    SQL> connect scott/tiger
    Connect durchgeführt.
    SQL> 
    SQL> 
    SQL> select * from myuser.samv where rownum = 1;
    NAME
    ------------------------------
    Production
    
    SQL> select * from all_views where view_name = 'SAMV';
    
    Es wurden keine Zeilen ausgewählt
    Last edited by Sameer; 11-27-2002 at 05:33 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width