Data dictionary used during database creation

Source: Internet
Author: User

The data dictionary
The most important part of the Oracle database is the data dictionary.
The data dictionary is a set of tables and views that hold the database's metadata
Information. You cannot update the dictionary directly; Oracle updates
The dictionary when you issue any Data Definition Language (DDL) commands.
The dictionary is provided as read-only for users and administrators.
The contents of the data dictionary and obtaining information from the dictionary
Are discussed in the section "querying the dictionary ."

 

The data dictionary consists of base tables and user-accessible views.
Base tables are normalized and contain cryptic, version-specific information.
You use the views to query the dictionary and extract meaningful information.
To create the views, install the additional Oracle-supplied scripts after
The database is created.
The base tables contain information such as the users of the database and
Their permissions, the amount of the used and unused space for database
Objects, constraint information, and so on. users and administrators rarely,
If ever, need to access the base tables, with the exception of tables such
AUD $, which contains auditing information for objects in the database.
When the database is created, Oracle creates two users, sys and system.
Sys is the owner of the data dictionary, and system is a DBA account.
Initial password for sys is change_on_install; the initial password
System is manager. Change these passwords once the database is created.

Creating the dictionary
The Oracle database is functional only when you create the dictionary
Views and additional tablespaces, rollback segments, users, and so on. Creating
The dictionary views is the next step after you create the database
Using the create database Command. Running certain Oracle-supplied
Scripts creates the dictionary views. We'll discuss all these topics in this section
As well as give you some basics of how PL/SQL packages are created and
Maintained in the data dictionary.

Data Dictionary scripts
The data dictionary base tables are created under the Sys schema in
System tablespace when you issue the create database Command. Oracle
Automatically creates the tablespace and tables using the SQL. bsq script found
Under the $ ORACLE_HOME/rdbms/Admin directory. This script creates
Following:
The system tablespace by using the data file (s) specified in the create
DATABASE Command
A rollback segment named system in the system tablespace
The sys and System User Accounts
The dictionary base tables and clusters
Indexes on dictionary tables and sequences for dictionary use
The roles public, connect, resource, DBA, delete_catalog_role,
Execute_catalog_role, and select_catalog_role
The dual table
Don't modify the definitions in the SQL. bsq script-for example,
Adding columns, removing columns, or changing the data types or width.
You can change these storage parameters: initial, next, minextents,
Maxextents, pctincrease, freelists, freelist groups, and optimal.

The dual table is a dummyTable owned by sys and accessible to all users
The database. The table has only one column, named dummy, and only one row.
Do not add more rows to this table.

Running the scriptCatalog. SQLCreates the data dictionary views. This
Script creates synonyms on the views to allow users easy access to the Views.
Before running any data dictionary script, connect to the database as sys.
The dictionary creation scripts are under the $ ORACLE_HOME/rdbms/admin
Directory on most platforms.
The scriptCatproc. SQLCreates the dictionary items necessary for PL/SQL
Functionality. The other scripts necessary for creating dictionary objects
Depend on the operating system and the functionality you want in the database.
For example, if you are not using real Application Clusters (RACs ),
You need not install any Rac-related dictionary items. At a minimum, run
TheCatalog. SQLAnd catproc. SQL scripts after creating the database.
The dictionary creation scripts all begin with Cat. pointer of the scripts call
Other scripts. For example, when you execute catalog. SQL, it callthe following
Scripts:
Standard. SQLCreates a package called standard, which contains
SQL functions to implement basic language features
Cataudit. SQLCreates data dictionary views to support auditing
Oracle
Objective
Identify the contents and uses of the data dictionary

The dictionary creation scripts all begin with Cat. pointer of the scripts call
Other scripts. For example, when you execute catalog. SQL, it callthe following
Scripts:

Standard. SQLCreates a package called standard, which contains
SQL functions to implement basic language features

Cataudit. SQLCreates data dictionary views to support auditing

Catexp. SQLCreates data dictionary views to support import/export

Catldr. SQLCreates data dictionary views to support direct-path Load
Of SQL * Loader

Catpart. SQLCreates data dictionary views to support partitioning

Catadt. SQLCreates data dictionary views to support Oracle Objects
And types

Catsum. SQLCreates data dictionary views to support Oracle Summary
Management
From the name of a script, you can sometimes identify its purpose.
Following list indicates the categories of scripts.

Cat *. SQLCatalog and data dictionary scripts

DBMS *. SQLPL/SQL administrative package Definitions

Prvt *. PLBPL/SQL administrative package code, in wrapped
(Encrypted) Form

Unnnnnn. SQLDatabase Upgrade/migration scripts

Dnnnnnn. SQLDatabase downgrade scripts

Utl *. SQLAdditional tables and views needed for Database Utilities

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.