How to give the right to select for all objects of schema?

Hello

We have a lot of users and schemas.
A user wants to execute 'select' for all tables in the other schema.

For example: TEST user wishes to select the objects to TEST2. Test2 have hundreds of tables, TEST user cannot select other schema objects, so I don't want to give SELECT ANY TABLE privileges.

How can do this at once? is it possible to give all the objects schema once subsidies?
DB versin. 9.2.0.8

greetings and thanks

No, there are no subsidies. You must use hundreds of statements of grant.

However, you can use dynamic SQL to do this automatically, i.e.

CREATE ROLE test2_select;

BEGIN
  FOR x IN (SELECT * FROM dba_tables WHERE owner='TEST2')
  LOOP
    EXECUTE IMMEDIATE 'GRANT SELECT ON test2.' || x.table_name || ' TO test2_select';
  END LOOP;
END:
/

GRANT test2_select TO test;

Justin

Tags: Database

Similar Questions

  • How to grant the right to select any database to a particular user

    Hi gurus,

    I need to give the right to select all tables in a database to a particular user, in my opinion, there is no way to do it. Please confirm if this is possible.
    If it is not possible, so please let me know if there is any way I can grant select on all tables in a particular pattern (for example - select funding on all the tables under apps)

    Thank you
    Sadiq.

    I need to give the right to select all tables in a database to a particular user, in my opinion, there is no way to do it. Please confirm if this is possible.

    You can issue the command "grant select any table of .

    Alternatively, you can refer to this thread.

    How to GRANT SELECT on all tables 1 GB?
    How to GRANT SELECT on all tables 1 GB?

    If it is not possible, so please let me know if there is any way I can grant select on all tables in a particular pattern (for example - select funding on all the tables under apps)

    It is possible as shown above. If you want to grant select on the specific schema, again see the same thread and add a condition where clause in select only the tables under scheme APPS (i.e. where owner = 'APPS').

    Thank you
    Hussein

  • How to give the necessary time and unite all files of images together?

    Adobe first Pro 7.2.1 CC

    I insert image PNG files in pieces of the track for example 50 and got dry duration for each Image at 06:07. I need 00.03 for each of them make an animation so I have to cut and drag each of them separately. How to give the required duration and unite all together faster?

    Before you import the files again (e.g.: PNG), go to Preferences > General > still Image default duration:

    You can set the default there. This will apply to the newly imported files, but (it will not apply to the files that you have already imported).

  • How to grant the rights root dn for a particular CN

    Hi all

    I want to give the same rights to admin under cn = 'Directory Manager' to a particular group in cn = 'Rep '.

    How do I get there?

    Or is there a better work around?

    Cause the background goes like:

    I have a particular attribute, that I want to block because the users are currently connected to LDAP via anonymous.

    In AIT:

    If I set the attribute as deny all the ldap://everyone.

    It will cause the cn = Rep to have difficult because it is used to update entry ldap and with the particular attribute blocked, I wouldn't be able to read/write in ldap.

    Greatly appreciated!

    Thank you!

    Published by: 972374 on February 23, 2013 22:34

    Published by: 972374 on February 23, 2013 22:38

    Hello
    I don't think it's a problem, because a user who performs an action 'ldapmodify' must provide the credentials of "binding", is not anonymous.

    HTH,
    Marco

  • How to revoke the right to select the user on the user sys normal?

    I had revoked the privilege in any dictionary, but in the normal user schema, I can also choose * to object
    And I checked the parameter system: o7_dictionary_accessibility = flase and restart the database, it can always still selected
    How can I revoke privileges select sys normal user? Thank you very much

    env
    9i
    AIX 5.3

    user9376616 wrote:
    I mean I want to revoke the privilege slect on the current user object

    And this useless IMO all because you don't work all the time with just with your own objects, but all need other objects in schema as well. How, you would get to know about them, if you can not select ALL_ * views? Is not a valid obligation and as I said, I don't worry about everything and am not suggesting that you do too!

    HTH
    Aman...

  • How to change the yellow hp940 cartridge for all in a 8500?

    Cartridge is completely empty - printer will not print, copy or scan up to changed...

    I'm obviously not push (pull) the right thing to release?

    Message from the printer on a loop... "Press Ok when done... »

    Diagrams only show how to insert the new cartridge empty in slot... freeing up those already installed?

    Help really appreciated... frustration level editing mbcv

    Hello

    It's his Manual:

    To replace the ink cartridges
    1. pull gently open the ink cartridge cover.
    2. remove the ink cartridge requiring a replacement by grabbing and pulling firmly toward you.
    3. remove the new cartridge from its packaging.
    4. align the cartridge with its color-coded slot and insert the cartridge into the slot. Press the cartridge firmly to ensure a good contact.
    5. close the ink cartridge cover

    More information on page #176 of the following book:

    h10032.www1.HP.com/CTG/manual/c01643304.PDF

    Kind regards.

  • How to find the right server SMPT for my e-mail account?

    I am not able to send a message on my email account.

    You should know that by your email provider.

  • How to enable the Quick Launch bar for all profiles (for example, the default user)

    I need to configure XP to the Quick Launch bar is activate without worrying who logs in (for example, to add the parameter to the default user profile).  How can I accomplish that?  Tweak registry?  If Yes, what?

    Thank you!

    Hello asdf234234,

    Please post your question in forum Windows XP TechNet as they manage all domain related issues.

    See you soon

  • How to give administrative rights for the domain users (user is outside organization).

    Hello

    How to give administrative rights for the domain users (user is outside organization).

    If the employee works in the company of xxxx but it supports the client project and is located on the place of the customer, but it does not use the client computer and not on the client domain as well, but the employee is in the company of xxxx must be given administrative rights to the computer. can someone help me on this ASAP.

    Thank you

    MURUGESAN Rudy,

    This issue is beyond the scope of this site and to make sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
  • How to give Admin rights for specific applications in windows 7 Stater

    How to give Admin rights for specific applications in windows 7 Stater

    I have a problem in Windows 7 Stater Pack

    I do not know where to place the issue or create the question

    My problem is that I can give admin access to application specific to Windows 7 stater

    in fact I use photon AUNTIE I want to be accessed by a Local user Standard user is not an admin user

    Once I click on the icon of Photon to connect it always ask for admin password.

    I want to work on a local user without admin password

    Please help about this.

    Thank you.

    Hello

    Note: To be logged in as an administrator or enter creditionals administrator account to make changes

    Method 1:

    The prompt that you get is the setting on your computer user account control. You can change the setting and use them according to your requirements and run programs in the standard account. See the below links for more details-

    http://Windows.Microsoft.com/en-us/Windows7/what-is-user-account-control

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-change-the-behavior-of-user-account-control-by-using-the-slider

    http://Windows.Microsoft.com/en-us/Windows7/what-are-user-account-control-settings

    WARNING: User Account Control (UAC) can help you to prevent your computer from unauthorized changes. It works by asking permission when a task requires administrative rights, such as installing software or changing settings affecting other users. We do not recommend disable user account control. If you turn it off, you must reactivate as soon as possible.

    Method 2:

    You can even use the steps below and check-

    1. right click on the program file , click on Properties.

    2. now click on compatibility and select run the program as administrator.

    3. now click on change settings for all users and click ok. Now, check to see if the problem resolves.

    I hope this helps. Let us know the results

    It may be useful

  • HP pavilion 15-e034tx: how to choose the right RAM for laptop

    How to choose the right RAM for my laptop (Pavilion 15-e034tx). I know I should buy DDR3 ram.

    Are there other factors should I consider when buying one? I got 2 slots for ram, which od these combos are possible?

    1-4 + 4 GB
    2-4 GB + 8 GB
    3-8 GB + 8 GB

    Thank you

    From the Manual:

    Two customer accessible/upgradable memory module slots

    Support for dual channel DDR3L (1600 MHz)

    Support 8192 MB RAM system in the following configurations:

    8192 MB (8192 MB × 1, × 4096 MB 2)

    Manual download link

    See page 53 for instructions. Memory access is easy via the service Panel. This is the part number for the approved 4 HP concert module:

    4 GB (PC3L, 12800, 1600 MHz) 691740-001

    http://www.Amazon.com/HP-691740-001-4GB-1600MHz-PC3L-12800/DP/B00CI08FX4/ref=sr_1_2?ie=UTF8 & qid = 1451655870 & SR = 8-2 & Keywords = 691740-001

    A 8 GB module is listed in the manual, and it's a 3rd generation of processor i5 I suspect 2 x 8 = 16 concerts would work, but strictly following the manual your only option is to add a 4 GB for a total of 8. Most users really not more 8 GB and adding a second identical module will allow two-channel operation, so you should see a noticeable jump in the overall performance.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • How to lower the speed of writing for burning a DVD?  It gives me no other choice!

    How to lower the speed of writing for burning a DVD?  It gives me no other choice!

    Brand of the disc can be a problem.

    Most of us don't burn with yet. There were serious problems that several generations back and I never use to burn now other than for testing. Construction of an image and burn with ImgBurn if you're on PC; Toast if mac.

    I was also worried that discs that burn successfully to you run the risk of not to play well on all players.

  • FOR ADMINS - how to choose the right answer on a thread on this forum?

    FOR ADMINS - how to choose the right answer on a thread on this forum?

    For example, on:

    "missing plug-in" for safari after you download!

    http://forums.Adobe.com/thread/897677?TSTART=0

    It does not show on 5.1 Safari and Firefox on Mac OS X 10.6.8 6.0.2.

    Thank you!

    The normal user (non-admin type), which can mark a reply as useful or appropriate is the user who started the discussion.

  • How to adjust the brightness and contrast for Compaq Presario all-in-One CQ1-1007 D desktop PC

    How to adjust the brightness and contrast for Compaq Presario all-in-One CQ1 - 1007 D desktop PC? THX.

    There were buttons No. brightness and contrast on the front of the monitor-no onscreen menu.

    On your desktop,.
    Right-click to select graphic properties->

    in display settings, click Advanced settings
    Here you go, you can do almost anything with the brightness

    Hope it helps

  • How to reset the curve point selection

    I downloaded a free version of VSCO presets as a test. I'm trying to remove them from the LR CC.

    I got them removed from the presets area by following the instructions here:
    https://vscoVSCO-Film-for-Adobe-Lightroom-CC-6-5-4-How-do-I-delete-my-old-presets-.zendesk.com/hc/en-us/articles/200324840-

    However, how can I remove the curved Point selection menu (see screenshot)?

    I asked the question above to support VSCO and their eventual response was:

    I'm sorry to say, but I think that the best next step would be to contact Adobe to see how to reset this menu. If you would please join Adobe support, they would be more than happy to help and answer your questions

    Here is a link to their support page: https://helpx.Adobe.com/support.html

    Thanks in advance

    vsco.png

    @johnrellis thanks for the reply. The information provided is not the correct way to reset the Point curve menu.

    However, your suggestion did point me in the right direction. For future readers, (in Windows 8 at least), go to the following location and delete the content in the folder:
    C:\Users\\AppData\Roaming\Adobe\CameraRaw\Curves

    HIH

Maybe you are looking for