HTTP://WWW - Sioug.si/predavanja/97/platinum/sld012.htm : 1.what Is An Oracle Instance?
HTTP://WWW - Sioug.si/predavanja/97/platinum/sld012.htm : 1.what Is An Oracle Instance?
html***
*** http://www.quest.com/presentations/A...0Internals.pdf***
***http://www.sioug.si/predavanja/97/platinum/sld012.htm***
The names and locations of associated datafiles and redo log files
Tablespace information
SMON :- System monitor process recovers after an instance failure and monitors temporary
segments and extents.
PMON :- Process monitor process cleans up processes and releases locks and resources after an
abnormal termination of a process.
When an Oracle instance fails,Oracle performs an instance recovery when the associated
database is re-started.
the database buffer cache. These changes are also recorded in online redo log
files simultaneously. When there are enough data in the database buffer cache,
they are written to data files. If an Oracle instance fails before the data in
the database buffer cache are written to data files, Oracle uses the data
recorded in the online redo log files to recover the lost data when the
database, the before image of the modified data is stored in an undo segment.
The data stored in the undo segment is used to restore the original values in
read consistency, Oracle rolls back all uncommitted transactions when the
associated database is re-started. Oracle uses the undo data stored in undo
7. How do you control number of Datafiles one can have in an Oracle database?
When starting an Oracle instance, the database's parameter file indicates the amount of SGA
space to reserve for datafile information; the maximum number of datafiles is controlled by the
DB_FILES parameter. This limit applies only for the life of the instance.
9. What is a Tablespace?
Ans) A database is divided into Logical Storage Unit called tablespaces. A tablespace is used to
grouped related logical structures together.
Ans) The purpose of redo log file is to record all changes made to the data during the recovery of
database.
T always advisable to have two or more redo log files and keep them in a separate disk So you
can recover the data during the system crash.
11. Which default Database roles are created when you create a Database?
Ans) Shared Pool compromises of Library Cache and Dictionary Cache.Library Cache
stores and shares sql stmts where as plsql stmts in memory.
Dictionary Cache: Oracle continously request and update information in the data
dictionary of the db.To maximize the performance of the system internal operation.Data
Dictionary cache holds dictionary information.
Ans) Database Buffer cache is one of the most important components of System Global
Area (SGA). Database Buffer Cache is the place where data blocks are copied from
datafiles to perform SQL operations. Buffer Cache is shared memory structure and it is
concurrently accessed by all server processes.
18. How many maximum Redo Logfiles one can have in a Database?
Ans) Depends on what you specified for MAXLOGFILES during database creation
(manually) or what you specified for "Maximum no. Of redo log files" with DBCA. You
can check the current max with:
Ans)
Ans) Large Pool is an optional memory structure used for the following purposes :-
The role of Large Pool is important because otherwise memory would be allocated from the
Shared pool. Hence Large pool also reduces overhead of Shared pool.
Ans) PCTINCREASE: It take place when two extent are already allocated.it work for third
or subsequent extent. Third extent size last extent size+ pctincrease of last extent size.
Ans) Pct Free is used to denote the percentage of the free space that is to be left when
creating a table. Similarly Pct Used is used to denote the percentage of the used space that
is to be used when creating a table
Ans) Row Chaining:-The row is too large to fit into an EMPTY data block.In this Oracle
stores the DATA for the row in a CHAIN of one or more Data BLOCKS.
Row chaining can happen for very large rows such as rows that contain LOB.Row chaining
in such cases is Unavoidable.
Row Migration:-An UPDATE statement increases the amount of DATA in a ROW so that
the Row NO LONGER FITS in to its DATA BLOCK.
Oracle tries to find another Blockwith enough free space to hold the entire row.If such
block is available Oracle moves the entire ROW to the NEW BLOCK.Oracle keeps the
original Row piece of a Migrated row row to POINT to the NEW BLOCK containing the
actual row.The ROWID of the MIGRATED rows does not change.INDEXES are not
updated and they point to the ORIGINAL row LOCATION.
25. What is 01555 - Snapshot Too Old error and how do you avoid it?
Ans) he SNAPSHOT_TOO_OLD erro will come ... the query will goves into cartesion
product or infinite loop .
Other case is suppose ur updated loarge no of rows at atime without saveing the records .
In this case u can use commit statement for every 500 records then u can avoid this
problam. Or ask DBA to extend the table space for this segment.
-----------
Snapshot_too_old exception is thrown when ur performing very large DML operation without
commiting this can be resolved by increasing undo retention period. contact ur DBA to check
for Undo retention period.