Grant Role schema all objects

DBA Geral (instalação, configuração do banco, scripts do Sql*Plus, shell scripts, batch scripts, etc...)
Post Reply
pedrovlf
Rank: Programador Sênior
Rank: Programador Sênior
Posts: 48
Joined: Fri, 16 Jan 2009 9:46 am
Location: UDIA

Environment information:
* Oracle version: 9i
* Operating system: Linux

Srs,

How do I do To run a Grant in a roller to be valid for all SCHEMA objects without having to specify which object, example:



] Being that * means everything that is in Schema1, how to do? thank you so much!
Dulima-SP
Rank: DBA Júnior
Rank: DBA Júnior
Posts: 193
Joined: Thu, 24 Jan 2008 1:56 pm
Location: SP
Dulima

DBA Oracle Jr

It is my shed

the way you want I do not know if you have as ....

Let's wait for the masters ...

More if I do not have a way ...

plays the parameters in a dynamic SQL ....
pedrovlf
Rank: Programador Sênior
Rank: Programador Sênior
Posts: 48
Joined: Fri, 16 Jan 2009 9:46 am
Location: UDIA

Thank you ... But do not you know any other way to accomplish this? I want the user to have full access to another schema saka
RodrigoValentim
Moderador
Moderador
Posts: 367
Joined: Tue, 25 Mar 2008 3:41 pm
Location: Salvador - BA
Rodrigo Valentim
Analista de Sistemas
Oracle Developer

Campanha: Faça uma pesquisa antes de perguntar!!!

In Query below, you will allow permission to all objects of your user to a particular group / user.

Select all

set heading off; 
spool all.sql 
select 'GRANT ALL ON ' || object_name || ' TO [usuario / Rule];'  
   FROM user_objects; 
spool off; 
@all
You can include all_tables, all_objects, etc.
pedrovlf
Rank: Programador Sênior
Rank: Programador Sênior
Posts: 48
Joined: Fri, 16 Jan 2009 9:46 am
Location: UDIA

Thank you ... more where in this query I inform the schema that will get access? or do I do this query in the schema that I want it to have access?
pedrovlf
Rank: Programador Sênior
Rank: Programador Sênior
Posts: 48
Joined: Fri, 16 Jan 2009 9:46 am
Location: UDIA

I receive the following error:

Select all

ERROR at line 1: 
ORA-00903: invalid table name
RodrigoValentim
Moderador
Moderador
Posts: 367
Joined: Tue, 25 Mar 2008 3:41 pm
Location: Salvador - BA
Rodrigo Valentim
Analista de Sistemas
Oracle Developer

Campanha: Faça uma pesquisa antes de perguntar!!!

Post the script! 8)
pedrovlf
Rank: Programador Sênior
Rank: Programador Sênior
Posts: 48
Joined: Fri, 16 Jan 2009 9:46 am
Location: UDIA

Thank you ... I already solved ... but I would like to take another doubt ... What Grant I provide for the user to have privileged to create roles? Add privileges to roles and add users to roles?
diegoleite
Rank: Analista Pleno
Rank: Analista Pleno
Posts: 115
Joined: Sat, 10 Nov 2007 2:54 pm
Location: rio de janeiro
Att,


Diego Leite
DBA ORACLE

chavana
Rank: Estagiário Júnior
Rank: Estagiário Júnior
Posts: 1
Joined: Mon, 04 Mar 2013 9:43 am

Good
can help me s.f.f

I noticed that a few years ago that had to give access to a schema a Grant Select to all tables.
There is a solution to give Grants SELECT to all tables already created in the created and new schemas that are created in the BD, so then I only add this scroll to the Users that will access SELECT to all schemas.

Select all

grant select any table on "role" to "schema";


Thanks

Carlos Fernandes
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest