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

How to tune all the privilege of a specific to a user schema?
I have already create a new schema and import the data necessary for this scheme.
Now I want to affect all the privilege for this schema to user HR (let the user HR become owner of this schema). How to deal?

Published by: qkc May 13, 2011 10:45

qkc wrote:
How to tune all the privilege of a specific to a user schema?
I have already create a new schema and import the data necessary for this scheme.
Now I want to affect all the privilege for this schema to user HR (let the user HR become owner of this schema). How to deal?

Published by: qkc May 13, 2011 10:45

It is no way - by definition - that a user can 'ownership' of another schema. A schema is, by definition, the collection of objects that belong to one owner.

but it's maybe just semantics in the context of what you really want.

Use sql to generate the sql:

spool doit.sql
select 'grant select on someuser.' || table_name || ' to someotheruser;'
from dba_tables
where owner = 'SOMEUSER';
spool off

Tags: Database

Similar Questions

Maybe you are looking for

  • 10.11.6 updating frozen

    iMac are more usable - 10.11.6 update installation at a standstill. A gray screen with progress bar of 2/3rds for 2 minutes then stops, restarts and the same thing happens again and again?

  • Bug in notification e-mail

    I can't delete my notification e-mail, even if I already opened my mail apps mail I dealt with this bug since the 9.1 update last year The only way to remove the notification had to restart the phone

  • Re: Tecra M3 - processor replacement

    Hello The SL7SL CPU on my Tecra M3 PTM30E-09X01LEN model burned. I can't source a replacement to the United Kingdom. Does anyone know what would be the other processors compatible with the motherboard in this laptop? Thank you Jon H

  • USB3 driver problem

    LS, A friend bought the desktop pc HP P6 2460ED with win8 as operating system installed. She wanted rather win7. After changing some settings in the bios and boot sequence (legacy) I installed it form DVD on an ssd, I also put.  After you have instal

  • Storage of PDM in one group or many?

    Hi all I'm designing a verification tool to the work of an RFID device. I have a PC dedicated box with the NI PCIe 7841 DAQ for this tool. Question My question is about the segmentation data in the TDMS files between files/groups and channels. How to