|
| ||||||||||
| Tags: course, database, dba, oracle, oracle database, privilege |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Roles creation issue in oracle database
They are asking the role alone not the code in oracle , so please help me to solve the Roles creation issue in oracle database. |
|
#2
| ||||
| ||||
| Roles description in oracle
The role is a powerful and secure feature of oracle database.It is a group of privileges that can be granted to one or more than one users and role obviously. If you are working in an organization as a DBA and you are responsible to create and manage the database user. In a particular organization, there are so many employees are working on different posts and their needs of data usage are also different.It is not so easy to write the grant statement for every user according to their accessibility. As a DBA you need to categorize the user in different sections or departments and after that you can create and use the role and easily grant the permission to every users of database.
__________________ Grand Theft Auto 4 PC Video Game |
|
#3
| ||||
| ||||
| Roles creation in oracle database Creating Role in database: If you are not working as a DBA,then you need to have the privileges to create the role . The syntax for creating role: Code: CREATE ROLE_NAME
[ NOT IDENTIFIED |
IDENTIFIED {BY password | USING [schema.] package | EXTERNALLY | GLOBALLY } ; NOT IDENTIFIED means the role is enabled and no need for password to enable it. IDENTIFIED means the role creator(user) must be authorized by particular method before enabling the role and the respective options are given like by PASSWORD, EXTERNALLY and GLOBALLY.
__________________ The FIFA Manager 2009 PC Game |
|
#4
| ||||
| ||||
| Granting privileges to Roles in oracle database
After the creation,you need to grant some privileges to the role.Suppose, I have different posts in organization like manager and executive. I will create a role named " MANAGER_ROLE". Now, its time to assign some privileges to that created role. I want to grant only SELECT, INSERT AND UPDATE PRIVILEGE to the manager of every managers.That would be as follows : Code: CREATE ROLE MANAGER_ROLE IDENTIFIED BY MAN123; Code: GRANT SELECT,INSERT,UPDATE ON <Object_name> TO MANAGER_ROLE; |
|
#5
| ||||
| ||||
| Assigning Roles to users in oracle database
Now, you can easily grant the created role to one or more users of the database.The syntax would be as follows: Code: GRANT name_of_role TO name_of_user; Code: GRANT MANAGER_ROLE to scott; |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Roles creation issue in oracle database" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sql server new database creation error. . | Rizwan_Akhter | Windows Software | 1 | 17-10-2011 11:41 AM |
| Creation of tablespace in oracle database | Garlands | Software Development | 3 | 05-02-2010 09:58 PM |
| Users,Roles and privileges in Oracle | Garlands | Software Development | 4 | 29-01-2010 01:56 PM |
| Oracle Announces TimesTen In-Memory Database 11g and In-Memory Database Cache 11g | prakashseth | Web News & Trends | 1 | 30-07-2009 04:58 PM |
| Creation of a database in OOo | Theodore | Software Development | 3 | 18-03-2009 06:31 PM |