In this document
@ Oracle confidential (internal). Do notdistribute to mers MERs
@ Reason: has internal information
@ (Authwiz 2.5.1)
Applies:
Oracle Server-Enterprise Edition-version:
Information in this document applies to any platform.
Oracle RDBMS Server
Purpose
What is Bootstrap?
What happens during database startup?
Which objects are classified as Bootstrap objects in Oracle Database?
How the dictionaries are loaded?
Why Bootstrap (ORA-00704) process failure is so serious if it occurs on startupor while recovery?
Scope and application
This article intend to explain thebootstrap operations of oracle.
Understanding Bootstrap of Oracle Database
What is Bootstrap?
In general, bootstrap is a technique forloading the first few instructions of a computer program into active memory andthen using them to bring in the rest of the program.
What is Bootstrap in Oracle?
In Oracle, bootstrap refers to loading of metadata (data dictionary) before we open the database.
Bootstrap objects are classified as the objects (tables/indexes/clusters) with the object_id below 56 as Bootstrap objects.
These objects are mandatory to bring up an instance, as this contains the mostimportant metadata of the database.
What happens on Database startup?
This shall be explained by setting thesql_trace while opening the database.
Connect as sysdba and do the following
Startup Mount; Alter session set events '10046 trace name context forever, level 12 ′; Alter database open; Alter session set events '10046 trace name context off '; Show parameter user_dump_dest Oradebug setmypid Oradebug tracefile_name |
The SQL _trace of the above process explainsthe following operations behind startup.
The bootstrap operation happens between Mount stage and open stage.
1. The first SQL after in the above trace shows the creation of the bootstrap $ table.
Something similar to the following:
----------------
Create Table Bootstrap $ (line # number not null, OBJ # number not null, SQL _textvarchar2 (4000) not null) Storage (initial 50 K objno 56 extents (File 1 block377 ))
----------------
This sys. Bootstrap $ table contains theddl's for other Bootstrap tables (object_id below 56 ).
-> Actually these tables were createdinternally by the time of database creation (by SQL. bsq), The create DDL passedbetween mount and open stage will be executed through different driverroutines. in simple words these are not standard create ddls.
While starting up the database Oracle will load these objects into memory (shared_pool), (IE) It will assign the relevant object number and refer to thedatafile and the block associated with that.
And such operations happen only while warm startup.
@ The internals of the above explained in 'kqlb. C '.
2. Now a query executedagainst the SYS. Bootstrap $ table, which holds the create SQL's for other basetables.
Select line #, SQL _text from Bootstrap $ where OBJ #! =: 1 (56)
Subsequently it willcreate those objects by running those queries.
Object number 0-(system rollback segment)
Object Number 2 to 55 (other base tables)
Object Number 1 is not used by any of the objects.
3. performs variousoperations to keep the bootstrap objects in consistent state.
-Upon the successful completion ofbootstrap the database will do the other tasks like recovery and will open thedatabase.
Which objects are classified as bootstrapobjects in Oracle Database?
Objects with data_object_id less than 56are classified as core Bootstrap objects.
The objects are added tothe Bootstrap. The objects affected are:
Hist_head $
Histgrm $
I _hh_obj # _ Col #
I _hh_obj # _ intcol #
I _obj # _ intcol #
I _h_obj # _ Col #
C_obj # _ intcol #
From 10.1 The followingobjects have been added:
Fixed_obj $
Tab_stats $
Ind_stats $
I _fixed_obj $ _ OBJ #
I _tab_stats $ _ OBJ #
I _ind_stats $ _ OBJ #
Object_usage
These additional objectsshall be re-classified (OR) ignored by following methods.
1. Opening the database in migrate Mode
2. Using Event 38003
Event 38003 affects the bootstrap process of loading the fixed cache in kqlblfc (). per default certain objects are marked as Bootstrap objects (eventhough they are not defined as such in SYS. bootstrap $) but by setting the eventthey will be left as non-bootstrapped.
What is bootstrap process failure? ORA-00704
This ORA-00704 error serious if reported atstartup. This error refers to some problem during Bootstrap operation.
Any ORA-00704 error on startup/recover is serous, this error normally rosedue to some inconsistency with the bootstrap segments (OR) Data Partition uption onbootstrap $ (OR) Any of the base tables below object_id 56. after this error itmight not allow to open that database.
When ORA-00704 shall occur?
1. There is a probable of this error whenany unsupported operations are tried to force open the database.
2. This error can also occur when system datafile has upted blocks. (ORA-01578)
3. In earlier releases of Oracle (prior to 7.3.4 and 8.0.3) This issue shallarise due to bug 434596
The option is to restore it from a goodbackup and recover it.
-> If the underlying cause is physical transaction uption that is due to hardwareproblems then do complete recovery.
-> If the issue is not relating to any physical uption, then the problemcocould be due some unsupported actions on Bootstrap, and a point in timerecovery wocould be an option in such cas
Bytes -------------------------------------------------------------------------------------------------------
Blog: http://blog.csdn.net/tianlesoftware
WEAVER: http://weibo.com/tianlesoftware
Email: dvd.dba@gmail.com
Dba1 group: 62697716 (full); dba2 group: 62697977 (full) dba3 group: 62697850 (full)
Super DBA group: 63306533 (full); dba4 group: 83829929 (full) dba5 group: 142216823 (full)
Dba6 group: 158654907 (full) dba7 group: 69087192 (full) dba8 group: 172855474
DBA super group 2: 151508914 dba9 group: 102954821 chat group: 40132017 (full)
-- Add the group to describe the relationship between Oracle tablespace and data files in the remarks section. Otherwise, the application is rejected.