Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
14 Cards in this Set
- Front
- Back
there are more than 100 privileges to give (permissions to do something are called privileges in oracle).
INSERT, UPDATE,REMOVE, CREATE SEQUENCE, are all examples. |
you can also create a standard set of privileges to give to a group of users like (the mangers profile) this is called a ROLE in oracle.
|
|
create a user with a password
|
CREATE a_user IDENTIFIED BY a_password;
CREATE scott IDENTIFIED BY tiger; |
|
Grant a user a privilege.
(note: Unless YOU have the privilege or are the DBA. you cannot grant others privileges. ) |
GRANT create view, create table, create sequence, create session
TO scott; |
|
create a role for the managers group
|
CREATE ROLE managers_group;
|
|
give all the managers access to create a view
|
GRANT create view, create table TO
managers_group; |
|
grant a role to users.
|
GRANT managers_role TO amy, chris, scott;
|
|
Change the password for scott. He forgot his password again.
(you must be a DBA for this) |
ALTER USER scott IDENTIFIED BY scott_ur_Fired;
|
|
if you are the owner or creator of an object...(a table, view, sequence) only you may change it unless you grant that privilege to someone else. Grant a privilege to someone.
|
GRANT select, update ON employees_table TO sue, rich;
|
|
give only scott, sue, chris and the managers the update privilege of specific columns only, of the employee table.
|
GRANT update (department_name, department_id) ON employees_table TO scott, sue, chris, managers_role;
|
|
give a user the power to grant privileges to others.
|
GRANT select, insert
ON departments TO scott WITH GRANT OPTION; |
|
allow all users to query data from alices departments table
|
GRANT select ON alice.departments TO public;
|
|
use the data dictionary to view privileges given to others.
|
SELECT * FROM user_tab_privs;
|
|
use the data dictionary to view privileges given to other ROLES
|
SELECT * FROM role_tab_privs;
|
|
you use the REVOKE statement in the same way you would GRANT an object. Anyone granted privileges by a user/role that was revoked will be revoked as well.
|
cascade restraints.....with grant option
|