Solved

Oracle 10g - creating roles

Posted on 2011-03-21
10
473 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 74

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 74

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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

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

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
 

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 74

Expert Comment

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


alter user SOME_USER profile YOUR_PROFILE_NAME;
0
 
LVL 74

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 74

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to create an alias for a column name in ORACLE sql ? 2 74
Read XML values 8 67
Oracle 12c Default Isolation Level 17 63
Oracle - BLOB Extract Line 2 15
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

734 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