Results 1 to 3 of 3

Thread: Grant

  1. #1
    Contributing Member
    Join Date
    Nov 2007
    Answers
    53

    Grant

    Dear All,

    I need to grant only SELECT privilege on entire Database to a particular user
    with a single GRANT statement.
    Kindly suggest your opinions regarding the same.

    Have a pleasant time.


  2. #2
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Grant

    Select 'grant all on '||object_name||' to username' from all_objects where object_type ='table';
    or
    select 'grant all on '||object_name||' to username' from userl_objects where object_type ='table';

    spool this and save it as sql file and run in sqlplus.in above query u need to change username. I think to grant only select privilege on entire database to a particular user with a single grant statement is not possible (i am not sure..)


  3. #3
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Grant

    you can't do all that in a single statment . Do as suggested by our expert. you might need previliges on the objects.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact