Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

This Study Resource Was: Database Programming With PL/SQL 9-3: Practice Activities

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

www.oracle.

com/academy

Database Programming with PL/SQL


9-3: Review of the Data Dictionary Practice
Activities
Vocabulary
Identify the vocabulary word for each definition below:

m
DBA_* tables Contain information about everything in the database, no matter who

er as
owns them.

co
eH w
Data dictionary Contain information about objects which you have privileges to use.

o.
ALL_ * tables rs e A catalog of all database objects contained in an Oracle database.
ou urc
USER_ * tables Contain information about objects you own.
o
aC s
vi y re

Try It / Solve It
1. Which of the following statements are true:
ed d

A) The Data Dictionary is a list of hard coded table names in all Oracle databases.
ar stu

B) The Data Dictionary can be updated by all users with Select statements.
C) All users of an Oracle Database can see details of all tables in that database.
is

D) The Data Dictionary is owned by the user called SYS.


Th
sh

2. List the three different classes of Data Dictionary views, and state what kind of information is shown
by each class.
ALL_ , DICT , DICT shows a overview of all the tables , ALL_ shows all objects, DBA_ shows the
information on everything in the dictionary.

This study source was downloaded by 100000814899389 from CourseHero.com on 04-28-2021 02:43:19 GMT -05:00

https://www.coursehero.com/file/41689353/PLSQL-9-3-Practicedocx/
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective
owners.

3. Write and execute a SELECT statement that lists all the stored objects you have created in your
account so far. The query should return the object name, its type, and its status. Order the output
by type of object.
SELECT (object_name, type, status) FROM DICT

m
er as
4. Modify the query from question 3 to show only functions and procedures to which you have access.

co
Add the owner of the object to display in the results.

eH w
o.
SELECT (object_name, type, status) FROM DICT WHERE table_name LIKE ‘USER%’;

rs e
ou urc
o
aC s
vi y re
ed d

5. What is DICT and why is it useful?


ar stu

It is a superview that holds all dictionary tables, its like the * and is a easy way to fetch a table without
having to know its parent holder.
is
Th
sh

This study source was downloaded by 100000814899389 from CourseHero.com on 04-28-2021 02:43:19 GMT -05:00

https://www.coursehero.com/file/41689353/PLSQL-9-3-Practicedocx/
Powered by TCPDF (www.tcpdf.org)

You might also like