How grant all the privilege of a specific schema to a user?

How grant all the privilege of a specific schema to a user?
I already create a new schema and import the neccessary data for that schema.
Now I want to assign all the privilege for that schema to user HR (let user HR become the owner of that schema). How to deal with it?
Edited by: qkc on May 13, 2011 10:45 AM

qkc wrote:
How grant all the privilege of a specific schema to a user?
I already create a new schema and import the neccessary data for that schema.
Now I want to assign all the privilege for that schema to user HR (let user HR become the owner of that schema). How to deal with it?
Edited by: qkc on May 13, 2011 10:45 AMThere is no way - by definition - that one user can "become the owner" of another schema. A schema is, by definition, the collection of objects that belong to one owner.
but perhaps that is just semantics in the context of what you really want.
use sql to build sql:
spool doit.sql
select 'grant select on someuser.' || table_name || ' to someotheruser;'
from dba_tables
where owner = 'SOMEUSER';
spool off

Similar Messages

  • Root. how to give all the privileges to user?

    hi! im root and i want to give all the privileges to my user so he can open any program and any root folder. not in terminal (sudo gparted... for example) but i want to double click the program and open it. im using gnome. also i dont want to right click and open as admin. how can i do that?
    thanks

    jowilkin wrote:
    manolos wrote:
    eldragon wrote:
    no, no, no.....if you really want to do this...get a mac..
    there are really good reasons for these limitations in user access..
    if you want to stay away from the terminal, i think gksu should help you with that. (still need to type your password though)... if you dont like the terminal, maybe arch linux isnt the right distro for you, how about ubuntu?
    its not a solution for me but thanks! ubuntu is very simple. i want to learn from linux... not just install!
    Well, first lesson...what you want to do is a really bad idea.
    hahaha! ill stay in terminal thanks for the advice!

  • How to check the privileges assigned to a role

    Hi All,
    Can you please let me know how to check the privileges assigned to a role in Oracle?
    When I query the dba_tab_privs it says no rows returned.
    Please help..
    Regards,
    Dan

    user9212851 wrote:
    Can you please let me know how to check the privileges assigned to a role in Oracle?
    When I query the dba_tab_privs it says no rows returned.
    When you've checked the manuals and identified the views suggested by other posters you will find that it's still not a trivial problem since a role may be granted to another role - which means you need to do some recursion to uncover all the privileges available to a role.
    Pete Finnigan - who specialises in Oracle security - published some appropriate scipts a few years ago; they are probably still relevant. Here's a starting link: http://www.petefinnigan.com/weblog/archives/00001243.htm
    Regards
    Jonathan Lewis

  • How will get the source code of all the tables in a given schema using SQL?

    Hi All,
    How can we get the source code of all the tables in a given schema using SQL?
    Thanks in Adv.
    Junu

    Try something like...
    set heading off
    set pagesize 0
    col meta_data for a96 word_wrapped
    set long 100000
    SELECT DBMS_METADATA.GET_DDL(object_type, object_name, owner) ||';' AS meta_data
    FROM dba_objects
    WHERE owner = '<SCHEMA NAME>'
      AND object_type not in (<list of stuff you do not want>);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can all the users in my computer (my kids) have access to all the photos I have in I Photo?

    How can all the users in my computer (my kids) have access to all the photos I have in I Photo? My photos only appear when I (the administrator) log into the computer. I want my kids to be able to access them also.

    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • How to check the tran code for specific activity.

    Hello friends ,
    could you please let me know how to check the tran code for specific activity . AS in table , i can check , what transaction does what ? But now i need to check the transaction for specific activity .
    E.g , For Administrator workbench , there is transcation like RSA1 .
    thanks in advance
    Regards

    Hi,
    try the TSTC table with SE16.
    Hope it helps,
    MG

  • How to configure the wifi access with specific time slot for kids?

    how to configure the wifi access with specific time slot for kids?

    Which model of AirPort base station do you have? Which version of OS X is your MacBook Pro running?
    Wi-Fi access can be limited using the Timed Access feature of the AirPort routers. You would do so using the AirPort Utility.

  • Please help me how concatenate all the error messages and send it as out parameter value.

    Hi Experts,
    Please help me how concatenate all the error messages and send it as out parameter value.
    Thanks.

    Agree with Billy, exception handling is not something that is done by passing parameters around.
    PL/SQL, like other languages, provides a suitable exception handling mechanism which, if used properly, works completely fine.  Avoid misuing PL/SQL by trying to implement some other way of handling them.

  • I have a project on Imovie with pinned audio to the project. I want to know how to stretch the audio to a specific point of the song?

    I have a project on Imovie with pinned audio to the project. I want to know how to stretch the audio to a specific point of the song?

    See this Tutorial for how audio works in iMovie. In general, you drag the left or right edge of your audio clip.
    You can also use the Clip Trimmer. Click the Gear icon in the music track and select the Clip Trimmer.
    http://www.apple.com/findouthow/movies/imovie08.html#audioclips

  • I just bought an Ipad 2 how come all the posts on face book with pictures the pictures are blurry?

    I just bought an Ipad 2 how come all the posts on facebook that have pictures are blurry?

    Use the facebook app

  • How to select the download location? its automatically downloading to users folder in c drive. i wanna change it..plz help me out......

    how to select the download location? its automatically downloading to users folder in c drive.. i wanna change to my desktop...plz help me out...

    Tools -> Options -> Save files to -> Click browse button and browse for folder where you want to save the file.

  • My husband bought an iPad 2.  I have a Mac.  ITunes is in my name but I have turned sharing on.  When we updated to OS5 we lost all the free apps that he downloaded in his user name.  Is there no way to update using my iTunes without losing his software.

    My husband bought an iPad 2.  I have a Mac.  ITunes is in my name but I have turned sharing on.  When we updated to OS5 we lost all the free apps that he downloaded in his user name.  Is there no way to update using my iTunes without losing his software.  He is frustrated using the iPad because he never knows whether to use his user name or my user name.

    Apps are only tied to one account... You can set up two iTunes accounts on your computer, however, and let his iPad sync to his account. If he has never backed up his apps to a computer, however, he will have to redownload all the apps. Afterwards, he can backup to iCloud instead of your computer.
    http://support.apple.com/kb/ht1495

  • How to disable the validity of a particular Role for 100 users, in a single

    Hi
    How to disable the validity of a particular Role
    which is assigned to 100 users. (disabling the role of change the validity of the role )
    at present am doing manually, by entering into each user and changing the validity of the role
    Thanks.

    > How to disable the validity of a particular Role for 100 users, in a single ...
    ... shot?
    Assign a reference user to the 100+ users and create events in the factory calendar which assigns and removes the role from the reference user only.
    The downside is that it is not scalable for many of the same concepts at the same time, because a dialog user can at one logon time only have one reference user assigned to them.
    Cheers,
    Julius

  • Report to view all the Roles and Transactions assinged to a particular user

    Hi,
    I need to develop a report to view all the Roles and Transactions assinged to a particular user along with the Authorization values. So, if provide the Username, the report should be able to give Roles, Transaction Codes and the fields and thier authorization values for that TCodes..
    Regards,
    Sreenivas Raju

    Try this FM once - SUSR_USERS_LIST_ALV . It provides a list with Roles, Profiles, and also a detail button to check the authorization values etc.
    Also try this FM - SUSR_USER_DISPLAY_WITH_AUTHS, SUSR_USER_AUTH_FOR_OBJ_GET , SUSR_USER_DISPLAY_WITH_S_TCODE

  • ORACLE - How to GRANT privilegies on ALL the tables belonging to a schema

    Is there a way to grant to a user the same privilegies on ALL the tables belonging to the same schema, so that, in case a new table is created afterwards, the grant is automatically given ?
    Thanks in adance for any reply

    Yes of course ! Just do the same as Oracle Applications: an end user has no Oracle account, the application code connects with the Oracle account that is the schema owner:
    no more grant needed ... That's a joke but it's also true ! In this case, your application must implement its own security (password management, audit, privileges) and you will not be able to use Oracle privileges, auditing and advanced security features ... just like Oracle Applications.
    The above answers are of course correct. You can also create an Oracle role that you can grant to the Oracle users and grant the privileges to this role everytime a new table is created to avoid granting privileges for each new object to each user.

Maybe you are looking for

  • Disappearing Lightroom web gallery photos

    I'm using a Mac, Lightroom 3 uploading to a host monster.com server.  the Lightroom HTML gallery displays fine when exported and opened offline but when uploaded to my server, backgrounds and navigation and cells appear fine but all the photos appear

  • Muse content moves to bottom in browser, and it's not a footer issue.

    Items I've added to a left column seem to move down the page to below a tabbed box widget in the right hand column. It's leaving a huge blank space in the middle of the page. When I view the source on business catalyst, it looks like the problem left

  • Purchases per Vendor

    Hi, We need to generate a report listing out the purchases per vendor and giving the details of articles purchased, quantaties, and values. Could you please advise as to how can this be generated ? We tried to ran the report ME80FN, and after checkin

  • Problem with the headphone jack part 2

    Ok. Now I have been to the "sound tab" and tried to select the output audio and change it. But it will not bring up any type of change. It does not offer anything but Digital out. It says it is built in audio. I need help.

  • Forms Online help disappeared

    Previously (at least until last week) the Forms Online Help was available here: http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=0 but this link results in a 404. It would be the same as the one shipped with Forms Builder, b