Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Oracle Roles

Oracle Roles

Ratings: (0)|Views: 144|Likes:
Published by vinod_ce

More info:

Published by: vinod_ce on Apr 16, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

06/16/2009

pdf

text

original

 
Oracle RolesVersion 10.2General
Data Dictionary ObjectsRelated to Roles
defrole$ user$dba_rolessession_rolesdba_role_privsuser_application_rolesrole_role_privsuser_role_privsrole_sys_privsv$pwfile_usersrole_tab_privs
System Privileges RelatedTo Roles
alteranyrolecreateroledrop anyrolegrant anyrole
 
Installation roles
RoleNameDescription
AQ_ADMINISTRATOR _ROLEPrivilege to administer Advanced QueuingAQ_USER_ROLEDeprecatedAUTHENTICATEDUSERDBUriServlet SecurityCONNECTContains the create session privilege (only)CSW_USR_ROLENot documentedCTXAPPEnables developers create Oracle Text indexesand index preferences, and to use PL/SQLpackages.CWM_ USERUndocumentedDATAPUMP_EXP_FULL_DATABASEUndocumentedDATAPUMP_IMP_FULL_DATABASEUndocumentedDBAExample Database Administrator role. Should notbe usedDELETE_CATALOG_ ROLEAllow users to delete records from the systemaudit table (AUD$)DMUSER_ROLEUndocumentedDM_CATALOG _ROLEUndocumentedEJBCLIENTUndocumentedEXECUTE_CATAllow users EXECUTE privileges for packages
 
Roles are treated like usersin the data dictionary
SELECT name USER_NAMESFROM user$WHERE type# = 1;SELECT name ROLE_NAMESFROM user$WHERE type# = 0;
Controlling The Number Of Roles With An init.oraParameter 
max_enabled_roles = <integer>max_enabled_roles = 100
NOTE:
Roles can contain systemprivileges
 
Roles can contain objectprivileges
 
Roles can contain roles
 
Object privileges granted throughroles do not work withinprocedures, functions, andpackages. Those permissionsmust be granted explicitly tothe user.
 
Creating Roles
Create Role
CREATE ROLE <role_name>;CREATE ROLEread_only;
Create Password ProtectedRole
CREATE ROLE <role_name> IDENTIFIEDBY <password>;CREATE ROLEdbaIDENTIFIED BY
"S0^Sorry";
Assigning Privileges And Roles To Roles
Assign Privilege To A Role
GRANT <privilege_name> TO<role_name>;
GRANT
create session TO read_only

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->