Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4042562
  • 博文数量: 536
  • 博客积分: 10470
  • 博客等级: 上将
  • 技术积分: 4825
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-26 14:08
文章分类

全部博文(536)

文章存档

2024年(3)

2021年(1)

2019年(1)

2017年(1)

2016年(2)

2013年(2)

2012年(10)

2011年(43)

2010年(10)

2009年(17)

2008年(121)

2007年(252)

2006年(73)

分类: Oracle

2008-05-07 19:07:54

Data Dictionary Views

Depending on which features are installed and configured, an Oracle 10g database can contain more than 1,300 data dictionary views. Data dictionary views have names that begin with DBA_, ALL_, and USER_.

The difference between the DBA_, ALL_, and USER_ views can be illustrated using the DBA_TABLES data dictionary view as an example. The DBA_TABLES view shows information on all the tables in the database. The corresponding ALL_TABLES view, despite its name, shows only the tables that a particular database user owns or has access to.

For example, if you were logged into the database as a user named SCOTT, the ALL_TABLES view would show all the tables owned by the user SCOTT and the tables to which SCOTT has been granted access by other users. The USER_TABLES view shows only those objects owned by a user. If the user SCOTT were to examine the USER_TABLES view, only those tables he owns would be displayed.

eg:
DBA_TABLES
All tables in the entire database. Reserved for user accounts that have DBA privileges.

ALL_TABLES
All tables owned by a particular database user plus all tables to which the user has been granted access.

USER_TABLES
All tables owned by a particular database user.

---------------
Dynamic Performance Views

Depending on which features are installed and configured, an Oracle 10g database can contain approximately 350 dynamic performance views. Most of these views have names that begin with V$.

------------
A Comparison of Data Dictionary and Dynamic Performance Views

Dictionary Views                            Dynamic Performance Views

The DBA_ views usually have plural names (for example, DBA_DATA_FILES).

The names of the V$ views are generally singular(for example, V$DATAFILE).

++++
The DBA_ views are available only when the database is open and running.

Some V$ views are available even when the database is not fully open and running.

++++
The data contained in the DBA_ views is generally uppercase.

The data contained in the V$ views is usually lowercase.

++++
The data contained in the DBA_ views is static and is not cleared when the database is shutdown.

The V$ views contain dynamic statistical data that is lost each time the database is shutdown.

-----------------

Oracle namespace

Tables share a namespace with views, sequences, private synonyms, procedures, functions, packages, materialized views, and user-defined types. Objects sharing a namespace cannot have the same name.

------------------
   Oracle uses a search hierarchy when a startup command is issued without specifying either a PFILE or an SPFILE. Oracle first looks for a parameter file called spfile$ORACLE_SID.ora. If it doesn’t find that, it searches for spfile.ora. Finally it searches for a traditional text PFILE with the default name of init$ORACLE_SID.ora.

阅读(2085) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-08-18 08:43:57

killtest 1Z0-042考试题库 http://www.killtest.cn/10gDBA/1Z0-042.asp