Hello, someone can help me with a tutorial, explain how
create user with profile only for consultation in Oracle.
I need this much, thank you
Antonio.rodrigues@scientific.med.br
Create User with Profile Only for Query
-
- Rank: Estagiário Júnior
- Posts: 2
- Joined: Tue, 07 Oct 2008 6:07 pm
- Location: fortaleza - ce
Antonio Rodrigues
Analista/Programador de Softwares
Analista/Programador de Softwares
-
- Rank: Analista Sênior
- Posts: 153
- Joined: Thu, 01 Nov 2007 2:53 pm
- Location: Osasco
Eli Dias
Oracle Certified Professional
Oracle Certified Professional
Good Morning.
You can create the user with the following commands
You can create the user with the script below by changing the login, password and tablespace options.
Now the question of privilege, you need to check with who asked you if the user will have permissions on any table or only in some defined, for example:
# For all tables in the bank: This is not very recommended at security level)
# for client-defined tables:
Hugs,
You can create the user with the following commands
You can create the user with the script below by changing the login, password and tablespace options.
create user nome_usuario identified by senha_usuario
account unlock
default tablespace nome_tablespace (esta tablespace geralmente é utilizada a users, agora se eles especificarem outra não tem problema)
temporary tablespace temp;
grant create session to nome_usuario;
# For all tables in the bank:
Grant select any table to nome_usuario;
# for client-defined tables:
Grant select on table_name to nome_usuario;
Hugs,
-
- Rank: Estagiário Júnior
- Posts: 2
- Joined: Tue, 07 Oct 2008 6:07 pm
- Location: fortaleza - ce
Antonio Rodrigues
Analista/Programador de Softwares
Analista/Programador de Softwares
: D, Thanks for the script, I'll apply here.
-
- Rank: Analista Pleno
- Posts: 115
- Joined: Sat, 10 Nov 2007 2:54 pm
- Location: rio de janeiro
Att,
Diego Leite
DBA ORACLE
Diego Leite
DBA ORACLE
Friend,
Beware of
Ideal will be a dynamic script.
Beware of
grant select any tables
.. Not recommended! Even if it comes to a test base !!!! Imagine an instance with payroll schema, and this information were available for people who should not have these available information.Ideal will be a dynamic script.
select 'grant select on '||table_name||'to NOMEUSUARIO;'
from all_tables where owner='NOMEDOOWNER';
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests