Solved

Oracle 10g - creating roles

Posted on 2011-03-21
10
470 Views
Last Modified: 2012-05-11
Hi I would like to know how to:

1-
create a new database role and grant dbms_crypto to this role
and then:
grant this role to the following database users: bobje, bomdb, dpownera, dpownera_1a

I don't know exactly how to grant dbms_crypto to this new role.

2-
set a temporary system password

Tks,
Joao Telles
0
Comment
Question by:joaotelles
  • 6
  • 4
10 Comments
 
LVL 73

Accepted Solution

by:
sdstuber earned 250 total points
ID: 35183920
dbms_crypto is owned by sys,  so you will need to be SYS to do the grant

log in as sys   (sqlplus / as sysdba)

grant execute on SYS.DBMS_CRYPTO to YOUR_ROLE_NAME;


DBA privilege or similar heightend privilege isn't enough


there is no such thing as a temporary password.
You can have a password that will expire,  is that what you mean?
0
 
LVL 73

Assisted Solution

by:sdstuber
sdstuber earned 250 total points
ID: 35183929
if you do mean an expiring password,  you do that with profiles

either alter the DEFAULT,  or better yet,  create a new profile and alter its password rules then assign that profile to SYSTEM or other users
0
 

Author Comment

by:joaotelles
ID: 35183939
Tks for the fast reply.

Its more like a password that would expire in 6-10 hours, is it possible?
0
 

Author Comment

by:joaotelles
ID: 35183942
Tks sdstuber.
0
 
LVL 73

Expert Comment

by:sdstuber
ID: 35183978
to create a 6 hour password lifetime (values are in days) ...


CREATE PROFILE your_profile_name LIMIT   PASSWORD_LIFE_TIME .25;

0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:joaotelles
ID: 35183987
Also after
grant execute on SYS.DBMS_CRYPTO to YOUR_ROLE_NAME;

Then to grant this role to the following database users: bobje, bomdb, dpownera, dpownera_1a, would it be something similar with the AUTHORIZATION  statement right?

Tks,
Joao
0
 
LVL 73

Expert Comment

by:sdstuber
ID: 35183990
to assign your new profile to some user....


alter user SOME_USER profile YOUR_PROFILE_NAME;
0
 
LVL 73

Expert Comment

by:sdstuber
ID: 35184002
no, you then grant the role to the users...

one grant per user...


grant YOUR_ROLE_NAME to bobje;
grant YOUR_ROLE_NAME to bomdb;

0
 
LVL 73

Assisted Solution

by:sdstuber
sdstuber earned 250 total points
ID: 35184007
or comma delimited


grant YOUR_ROLE_NAME to bobje, bomdb;
0
 

Author Closing Comment

by:joaotelles
ID: 35184015
Tks!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Create index on View 27 53
Out of Sequence numbers for today 25 47
query in Oracle forms Builder 2 27
Oracle and DateTime math 6 16
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now