0% found this document useful (0 votes)
26 views2 pages

E3 Data Dictionary Views: Experimental Objective Experimental Requiremen

1) The document discusses using data dictionary views in Oracle to view information about tables, users, privileges and roles. 2) It provides examples of using views like user_tables, dba_tables, and dba_users to query metadata about table names, owners, and privileges granted to users. 3) The last section discusses using additional views like dba_sys_privs and dba_role_privs to view system privileges granted to roles and users.

Uploaded by

Alimm De Ibrahm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

E3 Data Dictionary Views: Experimental Objective Experimental Requiremen

1) The document discusses using data dictionary views in Oracle to view information about tables, users, privileges and roles. 2) It provides examples of using views like user_tables, dba_tables, and dba_users to query metadata about table names, owners, and privileges granted to users. 3) The last section discusses using additional views like dba_sys_privs and dba_role_privs to view system privileges granted to roles and users.

Uploaded by

Alimm De Ibrahm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

E3 Data dictionary views

Experimental Objective
The students are required to grasp the application of data dictionary of Oracle
Experimental Requiremen
1 Hardware basic Configuration Intel PentiumIIIor above Greater than 512MB
memory
2
3
Software RequirementORACLE 9i
3Hours2h
4 Experiment Report after Experiment
Experimental Preparation
Data dictionary is a important part of oracle,which provides a lot of system information including readonly tables and views. They are all belong to DBA and gernal users can just query their information.

Experimental Details
Group 1 user_tables:
user_tables is used for storing all the table of the current user.
Step: Firstly, you should create a table, then query it in the user_tables.
select * from user_tables;
select table_name from user_tables;
Group 2 all_tables
all_tables is used for storing all the accessible tables by the current
user,including all the tables of the current user themselves and the tables
which can be accessed by the current user.
Step Firstly, user Scottgrant privileges to you to select the table emp, then you query it.
select * from user_tables;
select table_name from user_tables;
Group 3 dba_tables
dba_tables is used for storing all tables of all solutions.
stepQuery all the tables of user Scott by DBA
select * from dba_tables where owner='SCOTT';
Group 4 dba_users is used for storing all information of all users;
select dba_users from dba_tables where owner='SCOTT';
dba_dba_sys_privsis used for storing all system privileges of all users;
select dba_sys_privsis from dba_tables where owner='SCOTT';

dba_tab_privs is used for storing all object privileges of all users;


select dba_tab_privs from dba_tables where owner='SCOTT'
dba_col_privs is used for storing all column privileges of all users;
select col_tab_privs from dba_tables where owner='SCOTT';
dba_role_privs is used for storing all roles of the current user;
select dba_role_privs from dba_tables where owner='SCOTT';
Step: firstly, grant various privileges to user scott, then query it in the relevant views.

Group 5
1How to
select
select
2How to

query all the system privileges of a role?


* from dba_sys_privs where grantee='role_name'
* from role_sys_privs where role='role_name'
query all the object privileges of a role?

select * from dba_tab_privs where grantee='role_name ';


select * from role_tab_privs where role='role_name ';
3How many system roles in oracle?
select * from dba_roles;
4How to query all roles for a user?
select * from dba_role_privs where grantee='user_name';
5How to query all dictionary views of the current users?
select * from dict where comments like '%grant%';

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy