Tuesday, October 9, 2007

Overview Of Physical Structure Of a Database

The following sections explain the physical database structures of an Oracle database, including datafiles, control files, redo log files, archive log files, parameter files, alert and trace log files, and backup files.



This section includes the following topics:

Datafiles
Control Files
Online Redo Log Files
Archived Redo Log Files
Parameter Files
Alert and Trace Log Files
Backup Files


Datafiles

Every Oracle database has one or more physical datafiles, which contain all the database data. The data of logical database structures, such as tables and indexes, is physically stored in the datafiles allocated for a database.



Datafiles have the characteristics:

A datafile can be associated with only one database.
Datafiles can be defined to extend automatically when they are full.
One or more datafiles form a logical unit of database storage called a tablespace.


Data in a datafile is read, as needed, during normal database operation and stored in the memory cache of Oracle Database. For example, if a user wants to access some data in a table of a database, and if the requested information is not already in the memory cache for the database, then it is read from the appropriate datafiles and stored in memory.



Modified or new data is not necessarily written to a datafile immediately. To reduce the amount of disk access and to increase performance, data is pooled in memory and written to the appropriate datafiles all at once, as determined by the background process database writer process (DBWn).



Datafiles that are stored in temporary tablespaces are called tempfiles. Tempfiles are subject to some restrictions.



Control Files

Every Oracle database has a control file. A control file contains entries that specify the physical structure of the database, including the following information:

Database name
Names and locations of datafiles and redo log files
Timestamp of database creation


Oracle Database can multiplex the control file, that is, simultaneously maintain a number of identical control file copies, to protect against a failure involving the control file.



Every time an instance of an Oracle database is started, its control file identifies the datafiles, tempfiles, and redo log files that must be opened for database operation to proceed. If the physical makeup of the database is altered (for example, if a new datafile or redo log file is created), then the control file is automatically modified by Oracle Database to reflect the change. A control file is also used in database recovery.



Online Redo Log Files

Every Oracle Database has a set of two or more online redo log files. These online redo log files, together with archived copies of redo log files, are collectively known as the redo log for the database. A redo log is made up of redo entries (also called redo records), which record all changes made to data. If a failure prevents modified data from being permanently written to the datafiles, then the changes can be obtained from the redo log, so work is never lost.



To protect against a failure involving the redo log itself, Oracle Database lets you create a multiplexed redo log so that two or more copies of the redo log can be maintained on different disks.



Archived Redo Log Files

When online redo log files are written to disk, they become archived redo log files. Oracle recommends that you enable automatic archiving of the redo log. Oracle Database automatically archives redo log files when the database is in ARCHIVELOG mode.



Parameter Files

Parameter files contain a list of configuration parameters for that instance and database. Both parameter files (pfiles) and server parameter files (spfiles) let you store and manage your initialization parameters persistently in a server-side disk file. A server parameter file has these additional advantages:

The file is concurrently updated when some parameter values are changed in the active instance.
The file is centrally located for access by all instance in a Real Application Services database.
Oracle recommends that you create a server parameter file as a dynamic means of maintaining initialization parameters.



Alert and Trace Log Files

Each server and background process can write to an associated trace file. When an internal error is detected by a process, the process dumps information about the error to its trace file. Some of the information written to a trace file is intended for the database administrator, while other information is for Oracle Support Services. Trace file information is also used to tune applications and instances. The alert file, or alert log, is a special trace file. The alert log of a database is a chronological log of messages and errors.

The following features provide automation and assistance in the collection and interpretation of trace and alert file information:

The Automatic Diagnostic Repository (ADR) is a system-managed repository for storing and organizing trace files and other error diagnostic data. ADR provides a comprehensive view of all the critical errors encountered by the database and maintains all relevant data needed for problem diagnosis and eventual resolution. When the same type of incident occurs too frequently, ADR performs flood control to avoid excessive dumping of diagnostic information.
The Incident Packaging Service (IPS) extracts diagnostic and test case data associated with critical errors from the ADR and packages the data for transport to Oracle.


Backup Files

To restore a file is to replace it with a backup file. Typically, you restore a file when a media failure or user error has damaged or deleted the original file.

User-managed backup and recovery requires you to actually restore backup files before you can perform a trial recovery of the backups.

Server-managed backup and recovery manages the backup process, such as scheduling of backups, as well as the recovery process, such as applying the correct backup file when recovery is needed.

24 comments:

Rohan said...

hey mr. i am a btech student and i have an assignment to submit tommorow on oracle database str. this post of ur's helped me,thanks...

Anonymous said...

Good website! I really love how it is easy on my eyes and the data
are well written. I am wondering how I could be
notified when a new post has been made. I have subscribed to your RSS which must do the trick!
Have a great day!

My web page: dating and chat site

Anonymous said...

Heya i am for the first time here. I found this
board and I find It truly useful & it helped me out a lot.

I hope to give one thing back and aid others
such as you helped me.

Here is my homepage :: facebook of sex

Anonymous said...

Today, I went to the beach front with my children.
I found a sea shell and gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She placed
the shell to her ear and screamed. There was a hermit crab inside and
it pinched her ear. She never wants to go back! LoL I know this is entirely off topic but I had to
tell someone!

Feel free to surf to my website; free dating websit

Anonymous said...

This really answered my downside, thank you!

my web-site - muslim dating

Anonymous said...

F*ckin� remarkable things here. I�m very satisfied to see your article.
Thanks a lot and i'm having a look forward to touch you. Will you please drop me a mail?

my web-site :: sex facebook

Anonymous said...

Thanks a lot for providing individuals with
such a special opportunity to check tips from this website.
It is usually very excellent plus full of a good time for me personally and my
office peers to visit your web site really three times a week to learn the fresh secrets you
have. And definitely, I'm so usually fulfilled considering the astonishing pointers served by you. Some 1 points on this page are undoubtedly the most effective we've ever had.


Feel free to visit my site - free dating at

Anonymous said...

Magnificent web site. Plenty of useful information here.
I am sending it to several friends ans also sharing in delicious.

And of course, thanks for your effort!

Also visit my page - the dating site

Anonymous said...

Wow! This could be one particular of the most beneficial
blogs We've ever arrive across on this subject. Actually Great. I am also a specialist in this topic so I can understand your effort.

Also visit my website www.teichvital.de

Anonymous said...

I�ve been exploring for a little for any high quality articles or
blog posts on this sort of area . Exploring
in Yahoo I ultimately stumbled upon this website.
Reading this information So i�m happy to show that I have
an incredibly just right uncanny feeling I came upon just what I needed.
I most definitely will make certain to do not forget this
website and give it a glance on a relentless basis.



my blog post face book of sex

Anonymous said...

Hi, I think your blog might be having browser compatibility
issues. When I look at your website in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up! Other then that, very good blog!


Here is my blog post: facebook sex

Anonymous said...



Here is my web blog ... french dating

Anonymous said...

Thanks for these guidelines. One thing I should also believe is credit
cards offering a 0% interest often bait consumers along with zero rate, instant authorization and easy on the web balance transfers, however beware of the most recognized factor that will void your own 0% easy streets annual
percentage rate and also th

my webpage; asian dating

Anonymous said...

An fascinating dialogue is value comment. I think that you need to write more on
this matter, it may not be a taboo topic however typically individuals are
not enough to talk on such topics. To the next. Cheers

Look at my blog post; http://wiki.codekin.com/index.php?title=사용자:Daniel34T

Anonymous said...

I'm curious to find out what blog platform you happen to be using? I'm experiencing some small security issues with my latest
site and I would like to find something more secure. Do you have any recommendations?


my page: freedatingsites

Anonymous said...

I know this if off topic but I'm looking into starting my own blog and was curious what all is required to get set up? I'm assuming having a blog like yours
would cost a pretty penny? I'm not very internet savvy so I'm not
100% certain. Any tips or advice would be greatly appreciated. Thank you

Also visit my web site - fuck book

Anonymous said...

I have been browsing on-line more than three
hours today, yet I never discovered any fascinating article like yours.
It is lovely worth sufficient for me. In my opinion, if all website owners and bloggers made excellent content as you probably
did, the net shall be a lot more useful than ever before.


my blog :: adult personals

Anonymous said...

I cherished up to you'll receive carried out right here. The sketch is attractive, your authored subject matter stylish. nevertheless, you command get bought an nervousness over that you wish be turning in the following. in poor health undoubtedly come more earlier again as precisely the same just about a lot regularly within case you protect this hike.

Stop by my site :: robotconcert.org

Anonymous said...

Nice post. I be taught one thing more challenging
on completely different blogs everyday. It
is going to always be stimulating to learn content
from different writers and apply a little bit one thing from their store.
I�d prefer to use some with the content
on my weblog whether or not you don�t mind. Natually I�ll provide you
with a link in your net blog. Thanks for sharing.

Feel free to visit my homepage; facebook for sex

Anonymous said...

Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your webpage?
My blog site is in the exact same area of interest as yours and
my users would certainly benefit from a lot of
the information you provide here. Please let me know if
this okay with you. Cheers!

Visit my website - adult sex

Anonymous said...

I will right away snatch your rss as I can not in finding your e-mail subscription
hyperlink or e-newsletter service. Do you have any?
Kindly allow me know so that I could subscribe.
Thanks.

my blog post; diets that work

jeje said...

nfl jerseys
michael kors
hermes birkin
lebron 13 shoes
nike dunk low
converse shoes
yeezy boost
adidas yeezy boost
chrome hearts online
light up shoes

yanmaneee said...

kenzo
canada goose outlet
yeezy 350
yeezy boost 350 v2
jordan shoes
off white x jordan 1
supreme
paul george shoes
off white jordan 1
off white

tothen said...

original site replica wallets read good quality replica bags internet replica designer backpacks