[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Oracle 10g - creating roles

Posted on 2011-03-21
10
Medium Priority
?
479 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 1000 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 1000 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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 1000 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
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 how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

649 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