Professional Documents
Culture Documents
Unit 2 Tablespaces and Storage Managementt
Unit 2 Tablespaces and Storage Managementt
Unit 2 Tablespaces and Storage Managementt
Things to remember:
Databases, tablespaces, and datafiles are closely related, but they have important
differences:
The figure shows one tablespace that contains two datafiles. The datafiles area, the
physical structures associated with only one tablespace. Inside the datafiles there
are objects, like tables and indexes. Objects stored in tablespaces can span several
datafiles.
Types of Tabalespace:
There are many tablespaces available in the oracle database, following are the
tablespace created in the oracle database.
To take advantage of the locally managed tablespaces, you can create a locally
managed SYSTEM tablespace, or you can migrate an existing dictionary
managed SYSTEM tablespace to a locally managed format.
The SYSTEM tablespace always contains the data dictionary tables for the entire
database. The data dictionary tables are stored in datafile 1.
During normal database operation, the Oracle database server does not allow
the SYSAUX tablespace to be dropped or renamed. Transportable tablespaces
for SYSAUX is not supported.
Undo Tablespaces
Undo tablespaces are special tablespaces used solely for storing undo information.
You cannot create any other segment types (for example, tables or indexes) in
undo tablespaces. Each database contains zero or more undo tablespaces. In
automatic undo management mode, each Oracle instance is assigned one (and only
one) undo tablespace. Undo data is managed within an undo tablespace using undo
segments that are automatically created and maintained by Oracle.
When the first DML (Data Manipulation Language) operation is run within a
transaction, the transaction is bound (assigned) to an undo segment (and therefore
Each undo tablespace is composed of a set of undo files and is locally managed.
Like other types of tablespaces, undo blocks are grouped in extents and the status
of each extent is represented in the bitmap. At any point in time, an extent is either
allocated to (and used by) a transaction table, or it is free.
Temporary Tablespace
When the SYSTEM tablespace is locally managed, you must define at least one
default temporary tablespace when creating a database. A locally
managed SYSTEM tablespace cannot be used for default temporary storage.
If you drop all default temporary tablespaces, then the SYSTEM tablespace is used
as the default temporary tablespace. You can create bigfile temporary tablespaces.
A bigfile temporary tablespaces uses tempfiles instead of datafiles.
Read-Only Tablespaces
Because read-only tablespaces cannot be modified, and as long as they have not
been made read/write at any point, they do not need repeated backup. Also, if you
need to recover your database, you do not need to recover any read-only
tablespaces, because they could not have been modified.
Creating Tablespaces
The steps for creating tablespaces vary by operating system, but the first step is
always to use your operating system to create a directory structure in which your
datafiles will be allocated. On most operating systems, you specify the size and
fully specified filenames of datafiles when you create a new tablespace or alter an
existing tablespace by adding datafiles. Whether you are creating a new tablespace
or modifying an existing one, the database automatically allocates and formats the
datafiles as specified.
To create a new tablespace, use the SQL statement CREATE TABLESPACE or CREATE
TEMPORARY TABLESPACE to create tablespace and temporary tablespace respectively.
You must have the CREATE TABLESPACE system privilege to create a tablespace.
Later, you can use the ALTER TABLESPACE or ALTER DATABASE statements to alter the
tablespace. You must have the ALTER TABLESPACE or ALTER DATABASE system
privilege, correspondingly.
You can also use the CREATE UNDO TABLESPACE statement to create a special type of
tablespace called an undo tablespace, which is specifically designed to contain
undo records. These are records generated by the database that are used to roll
back, or undo, changes to the database for recovery, read consistency, or as
requested by a ROLLBACK statement.
Locally managed tablespaces track all extent information in the tablespace itself by
using bitmaps, resulting in the following benefits:
The following statement creates a locally managed tablespace named lmtbsb and
specifies AUTOALLOCATE:
SIZE 50M
The following example creates a tablespace with uniform 128K extents. (In a
database with 2K blocks, each extent would be equivalent to 64 database blocks).
Each 128K extent is represented by a bit in the extent bitmap for this file.
SIZE 50M
You cannot specify the DEFAULT storage clause, MINIMUM EXTENT, or TEMPORARY when
you explicitly specify EXTENT MANAGEMENT LOCAL. If you want to create a temporary
locally managed tablespace, use the CREATE TEMPORARY TABLESPACE statement.
Automatic
Manual
Manual segment space management uses linked lists called "freelists" to manage
free space in the segment, while automatic segment space management uses
bitmaps. Automatic segment space management is the more efficient method, and
is the default for all new permanent, locally managed tablespaces.
The following statement creates tablespace lmtbsb with automatic segment space
management:
SIZE 50M
SIZE 1M;
Bigfile Tablespaces
A bigfile tablespace is a tablespace with a single, but very large (up to 4G blocks)
datafile. Traditional smallfile tablespaces, in contrast, can contain multiple
datafiles, but the files cannot be as large.
Bigfile tablespaces are supported only for locally managed tablespaces with
automatic segment space management, with three exceptions: locally managed
undo tablespaces, temporary tablespaces, and the SYSTEM tablespace.
DATAFILE '/u02/oracle/data/bigtbs01.dbf'
SIZE 50G
You can specify SIZE in kilobytes (K), megabytes (M), gigabytes (G), or terabytes
(T).
If the default tablespace type was set to BIGFILE at database creation, you need not
specify the keyword BIGFILE in the CREATE TABLESPACE statement. A bigfile
tablespace is created by default.
If the default tablespace type was set to BIGFILE at database creation, but you want
to create a traditional (smallfile) tablespace, then specify
a CREATE SMALLFILE TABLESPACE statement to override the default tablespace type for
the tablespace that you are creating.
RESIZE: The RESIZE clause lets you resize the single datafile in a bigfile tablespace
to an absolute size, without referring to the datafile. For example:
AUTOEXTEND (used outside of the ADD DATAFILE clause): With a bigfile tablespace, you
can use the AUTOEXTEND clause outside of the ADD DATAFILE clause. For example:
An error is raised if you specify an ADD DATAFILE clause for a bigfile tablespace.
You can also identify a bigfile tablespace by the relative file number of its single
datafile. That number is 1024 on most platforms, but 4096 on OS/390.
To alter the availability of a tablespace, use the ALTER TABLESPACE statement. You
must have the ALTER TABLESPACE or MANAGE TABLESPACE system privilege.
You may want to take a tablespace offline for any of the following reasons:
When a tablespace is taken offline, the database takes all the associated files
offline.You cannot take the following tablespaces offline:
SYSTEM
The undo tablespace
Temporary tablespaces
You can specify any of the following parameters as part of the ALTER
TABLESPACE...OFFLINE statement:
Clause Description
TEMPORARY A tablespace can be taken offline temporarily, even if there are error
conditions for one or more files of the tablespace. When you
specify OFFLINE TEMPORARY, the database takes offline the datafiles that
are not already offline, checkpointing them as it does so.
If no files are offline, but you use the temporary clause, media
Clause Description
You can bring any tablespace in an Oracle Database online whenever the database
is open. A tablespace is normally online so that the data contained within it is
available to database users.
Datafiles
Data files are physical files of the operating system that store the data of all logical
structures in the database. They must be explicitly created for each tablespace.
Oracle creates a datafile for a tablespace by allocating the specified amount of disk
space plus the overhead required for the file header. When a datafile is created, the
operating system under which Oracle runs is responsible for clearing old
By Lec. Pratik Chand, Page 12
Elective-Database Administration – BCA 7th Semester
information and authorizations from a file before allocating it to Oracle. If the file
is large, this process can take a significant amount of time. The first tablespace in
any database is always the SYSTEM tablespace, so Oracle automatically allocates
the first datafiles of any database for the SYSTEM tablespace during database
creation.
Oracle Database assigns each data file two associated file numbers, an absolute file
number and a relative file number, that are used to uniquely identify it. These
numbers are described in the following table:
Type of File
Number Description
You can create data files and associate them with a tablespace using several
different SQL statements.
In all cases, you can either specify the file specifications for the data files being
created, or you can use the Oracle Managed Files feature to create files that are
created and managed by the database server. The table includes a brief description
of the statement, as used to create data files:
ALTER DATABASE ... CREATE Creates a new empty data file in place of
DATAFILE
an old one--useful to re-create a data file
that was lost with no backup.
If you add new data files to a tablespace and do not fully specify the file names, the
database creates the data files in the default database directory or the current
directory, depending upon your operating system. Oracle recommends you always
specify a fully qualified name for a data file. Unless you want to reuse existing
files, make sure the new file names do not conflict with other files. Old files that
have been previously dropped will be overwritten.
If a statement that creates a data file fails, the database removes any created
operating system files. However, because of the large number of potential errors
that can occur with file systems and storage subsystems, there can be situations
where you must manually remove the files using operating system commands.
You can alter the size of a data file. For example, you can increase the size of one
or more data files when more space is needed in the database.
There are two ways of changing the data file size as follows:
Reduces the need for immediate intervention when a tablespace runs out of
space
Ensures applications will not halt or be suspended because of failures to
allocate extents
SIZE 10M
AUTOEXTEND ON
NEXT 512K
MAXSIZE 250M;
The value of NEXT is the minimum size of the increments added to the file when it
extends. The value of MAXSIZE is the maximum size to which the file can
automatically extend.
AUTOEXTEND OFF;
Therefore, you can add more space to your database without adding more data
files. This is beneficial if you are concerned about reaching the maximum number
of data files allowed in your database.
For a bigfile tablespace, you can use the ALTER TABLESPACE statement to resize a data
file. You are not allowed to add a data file to a bigfile tablespace.
Manually reducing the sizes of data files enables you to reclaim unused space in
the database. This is useful for correcting errors in estimates of space requirements.
RESIZE 100M;
You can alter the availability of individual data files or temp files by taking them
offline or bringing them online. Offline data files are unavailable to the database
and cannot be accessed until they are brought back online.
The data files of a read-only tablespace can be taken offline or brought online, but
bringing a file online does not affect the read-only status of the tablespace. You
cannot write to the data file until the tablespace is returned to the read/write state.
To take a data file offline or bring it online, you must have the ALTER
DATABASE system privilege. To take all data files or temp files offline using
the ALTER TABLESPACE statement, you must have the ALTER
TABLESPACE or MANAGE TABLESPACE system privilege. In an Oracle Real
Application Clusters environment, the database must be open in exclusive mode.
To use this form of the ALTER DATABASE statement, the database must be
in ARCHIVELOG mode. This requirement prevents you from accidentally losing the
data file, since taking the data file offline while in NOARCHIVELOG mode is likely to
result in losing the file.
The OFFLINE keyword causes the database to mark the data file OFFLINE,
whether or not it is corrupted, so that you can open the database.
The FOR DROP keywords mark the data file for subsequent dropping. Such a
data file can no longer be brought back online.
The following statement takes the specified data file offline and marks it to be
dropped:
You are required only to enter the tablespace name, not the individual data files or
temp files. All of the data files or temp files are affected, but the online/offline
status of the tablespace itself is not changed.
You can rename online or offline data files to either change their names or relocate
them.
When you rename or relocate online data files, the pointers to the data files, as
recorded in the database control file, are changed. The files are also physically
renamed or relocated at the operating system level.
You might rename or relocate online data files because you want to allow users to
access the data files when you perform one of the following tasks:
Step 1: In SQL*Plus, connect to the database as a user with ALTER DATABASE system
privilege.
Step 2: Issue the ALTER DATABASE MOVE DATAFILE statement and specify the data file.
This example renames the data file user1.dbf to user01.dbf while keeping the data
file in the same location.
TO '/u01/oracle/rbdb1/user01.dbf';
This example moves the data file user1.dbf from the /u01/oracle/rbdb1/ directory
to the /u02/oracle/rbdb1/ directory. After the operation, the file is no longer in the
/u01/oracle/rbdb1/ directory.
TO '/u02/oracle/rbdb1/user1.dbf';
This example copies the data file user1.dbf from the /u01/oracle/rbdb1/ directory
to the /u02/oracle/rbdb1/ directory. After the operation, the old file is retained in
the /u01/oracle/rbdb1/ directory.
TO '/u02/oracle/rbdb1/user1.dbf' KEEP;
This example moves the data file user1.dbf from the /u01/oracle/rbdb1/ directory
to the /u02/oracle/rbdb1/ directory. If a file with the same name exists in the
/u02/oracle/rbdb1/ directory, then the statement overwrites the file.
TO '/u02/oracle/rbdb1/user1.dbf' REUSE;
This example moves the data file user1.dbf from the /u01/oracle/rbdb1/ directory
to an Oracle ASM location.
TO '+dgroup_01/data/orcl/datafile/user1.dbf';
Example 6: Moving a File from One ASM Location to Another ASM Location
This example moves the data file from one Oracle ASM location to another Oracle
ASM location.
TO '+dgroup_02/data/orcl/datafile/user1.dbf';
You can rename and relocate offline data files. When you rename and relocate
offline data files, only the pointers to the data files, as recorded in the database
control file, are changed. Files are not physically renamed, and they are not copied
at the operating system level.
Step 1: Take the tablespace that contains the data files offline. The database must
be open.
Step 3: Use the ALTER TABLESPACE statement with the RENAME DATAFILE clause to
change the file names within the database.
'/u02/oracle/rbdb1/user2.dbf'
TO '/u02/oracle/rbdb1/users01.dbf',
'/u02/oracle/rbdb1/users02.dbf';
Always provide complete file names (including their paths) to properly identify the
old and new data files. In particular, specify the old data file name exactly as it
appears in the DBA_DATA_FILES view of the data dictionary.
Step 4: Back up the database. After making any structural changes to a database,
always perform an immediate and complete backup.
Sept 5: Bring the tablespace back online using an ALTER TABLESPACE statement with
the ONLINE clause:
An open database has a tablespace named users that is made up of data files
all located on the same disk.
The data files of the users tablespace are to be relocated to different and
separate disk drives.
You are currently connected with administrator privileges to the open
database.
You have a current backup of the database.
Step 1: If you do not know the specific file names or sizes, you can obtain this
information by issuing the following query of the data dictionary
view DBA_DATA_FILES:
FILE_NAME BYTES
------------------------------------------ ----------------
/u02/oracle/rbdb1/users01.dbf 102400000
/u02/oracle/rbdb1/users02.dbf 102400000
Step 3: Copy the data files to their new locations and rename them using the
operating system. You can copy the files using the DBMS_FILE_TRANSFER package.
The data file pointers for the files that comprise the users tablespace, recorded in
the control file of the associated database, must now be changed from the old
names to the new names.
'/u02/oracle/rbdb1/users02.dbf'
TO '/u03/oracle/rbdb1/users01.dbf',
By Lec. Pratik Chand, Page 24
Elective-Database Administration – BCA 7th Semester
'/u04/oracle/rbdb1/users02.dbf';
Step 5: Back up the database. After making any structural changes to a database,
always perform an immediate and complete backup.
Step 6: Bring the tablespace back online using an ALTER TABLESPACE statement with
the ONLINE clause:
The data file must be empty. (A data file is considered to be empty when no
extents remain allocated from it.) When you drop a data file or temp file,
references to the data file or temp file are removed from the data dictionary and
control files, and the physical file is deleted from the file system or Oracle
Automatic Storage Management (Oracle ASM) disk group.
Example 1: To drops the data file identified by the alias example_df3.f in the
Oracle ASM disk group DGROUP1. The data file belongs to the example tablespace.
INCLUDING DATAFILES;
Control Files
Every Oracle Database has a control file, which is a small binary file that records
the physical structure of the database.
The control file must be available for writing by the Oracle Database server
whenever the database is open. Without the control file, the database cannot be
mounted and recovery is difficult.
The control file of an Oracle Database is created at the same time as the database.
By default, at least one copy of the control file is created during database creation.
On some operating systems the default is to create multiple copies. You should
create two or more copies of the control file during database creation. You can also
create control files later, if you lose control files or want to change particular
settings in the control files.
The initial control files of an Oracle Database are created when you issue
the CREATE DATABASE statement.
The names of the control files are specified by the CONTROL_FILES parameter in the
initialization parameter file used during database creation. The file names specified
in CONTROL_FILES should be fully specified and are operating system specific. The
following is an example of a CONTROL_FILES initialization parameter:
CONTROL_FILES = (/u01/oracle/prod/control01.ctl,
/u02/oracle/prod/control02.ctl,
/u03/oracle/prod/control03.ctl)
If files with the specified names currently exist at the time of database creation,
you must specify the CONTROLFILE REUSE clause in the CREATE DATABASE statement, or
else an error occurs. Also, if the size of the old control file differs from
the SIZE parameter of the new one, you cannot use the REUSE clause.
You can create an additional control file copy for multiplexing by copying an
existing control file to a new location and adding the file name to the list of control
files.
Similarly, you rename an existing control file by copying the file to its new name
or location, and changing the file name in the control file list. In both cases, to
guarantee that control files do not change during the procedure, shut down the
database before copying the control file.
To add a multiplexed copy of the current control file or to rename a control file:
All control files for the database have been permanently damaged and you
do not have a control file backup.
You want to change the database name.
For example, you would change a database name if it conflicted with another
database name in a distributed environment.
If the database is open, shut down the database normally if possible. Use
the IMMEDIATE or ABORT clauses only as a last resort.
Step 3: Back up all data files and redo log files of the database.
Sep 4: Start up a new instance, but do not mount or open the database using
following command
STARTUP NOMOUNT
Step 5: Create a new control file for the database using the CREATE
CONTROLFILE statement, following is the example of creating control file for
database test
CREATE CONTROLFILE
'/u01/oracle/prod/redo01_02.log'),
GROUP 2 ('/u01/oracle/prod/redo02_01.log',
'/u01/oracle/prod/redo02_02.log'),
GROUP 3 ('/u01/oracle/prod/redo03_01.log',
'/u01/oracle/prod/redo03_02.log')
RESETLOGS
'/u01/oracle/prod/temp01.dbs' SIZE 5M
MAXLOGFILES 50
MAXLOGMEMBERS 3
MAXLOGHISTORY 400
MAXDATAFILES 200
MAXINSTANCES 6
ARCHIVELOG;
Step 6: Store a backup of the new control file on an offline storage device
Step 7: Edit the CONTROL_FILES initialization parameter for the database to indicate
all of the control files now part of your database as created in step 5 (not including
the backup control file). If you are renaming the database, edit
the DB_NAME parameter in your instance parameter file to specify the new name.
Sept 8: Recover the database if necessary. If you are not recovering the database,
skip to step 9.
If you did not perform recovery, or you performed complete, closed database
recovery in step 8, open the database normally.
If you specified RESETLOGS when creating the control file, use the ALTER
DATABASE statement, indicating RESETLOGS.
Every Oracle Database should have at least two control files, each stored on a
different physical disk.
If a control file is damaged due to a disk failure, the associated instance must be
shut down. Once the disk drive is repaired, the damaged control file can be
restored using the intact copy of the control file from the other disk and the
instance can be restarted. In this case, no media recovery is required.
One way to multiplex control files is to store a control file copy on every disk drive
that stores members of redo log groups, if the redo log is multiplexed. By storing
control files in these locations, you minimize the risk that all control files and all
groups of the redo log will be lost in a single disk failure.
1. The database writes to all file names listed for the initialization
parameter CONTROL_FILES in the database initialization parameter file.
2. The database reads only the first file listed in the CONTROL_FILES parameter
during database operation.
3. If any of the control files become unavailable during database operation, the
instance becomes inoperable and should be terminated.
Note: Oracle strongly recommends that your database has a minimum of two
control files and that they are located on separate physical disks.
It is very important that you back up your control files. This is true initially, and
every time you change the physical structure of your database.
Use the ALTER DATABASE BACKUP CONTROLFILE statement to back up your control files.
Back up the control file to a binary file (duplicate of existing control file)
using the following statement:
Produce SQL statements that can later be used to re-create your control file:
This command writes a SQL script to a trace file where it can be captured and
edited to reproduce the control file. View the alert log to determine the name and
location of the trace file.
If a control file becomes corrupted, then you can recover it using a control file
copy.
Step 1: With the instance shut down, use an operating system command to
overwrite the bad control file with a good copy:
% cp
/u03/oracle/prod/control03.ctl
/u02/oracle/prod/control02.ctl
SQL> STARTUP
If there is permanent media failure, then you can recover by using a control file
copy.
Step 1: With the instance shut down, use an operating system command to copy
the current copy of the control file to a new, accessible location:
% cp
/u01/oracle/prod/control01.ctl
/u04/oracle/prod/control03.ctl
CONTROL_FILES = (/u01/oracle/prod/control01.ctl,
/u02/oracle/prod/control02.ctl,
/u04/oracle/prod/control03.ctl)
SQL> STARTUP
You can drop control files, but the database should have at least two control files at
all times.
You want to drop control files from the database, for example, if the location of a
control file is no longer appropriate.
This operation does not physically delete the unwanted control file from the disk.
Use operating system commands to delete the unnecessary file after you have
dropped the control file from the database.
Redo log files are filled with redo records. A redo record, also called a redo entry,
is made up of a group of change vectors, each of which is a description of a
change made to a single block in the database. For example, if you change a salary
value in an employee table, you generate a redo record containing change vectors
that describe changes to the data segment block for the table, the undo segment
data block, and the transaction table of the undo segments.
Redo Threads
When speaking in the context of multiple database instances, the redo log for each
database instance is also referred to as a redo thread. In typical configurations,
only one database instance accesses an Oracle Database, so only one thread is
present. In an Oracle Real Application Clusters environment, however, two or
more instances concurrently access a single database and each instance has its own
thread of redo.
LGWR writes to redo log files in a circular fashion. When the current redo log file
fills, LGWR begins writing to the next available redo log file. When the last
available redo log file is filled, LGWR returns to the first redo log file and writes to
it, starting the cycle again. Following figure illustrates the circular writing of the
redo log file. The numbers next to each line indicate the sequence in which LGWR
writes to each redo log file.
The process of turning redo log files into archived redo log files is called archiving.
This process is only possible if the database is running in ARCHIVELOG mode.
You can choose automatic or manual archiving.
An archived redo log file is a copy of one of the filled members of a redo log
group. It includes the redo entries and the unique log sequence number of the
identical member of the redo log group. For example, if you are multiplexing your
redo log, and if group 1 contains identical member files a_log1 and b_log1, then
the archiver process (ARCn) will archive one of these member files.
If a_log1 become corrupted, then ARCn can still archive the identical b_log1. The
archived redo log contains a copy of every group created since you enabled
archiving.
When the database is running in ARCHIVELOG mode, the log writer process
(LGWR) cannot reuse and hence overwrite a redo log group until it has been
archived. The background process ARCn automates archiving operations when
automatic archiving is enabled. The database starts multiple archiver processes as
needed to ensure that the archiving of filled redo logs does not fall behind.
Recover a database
Update a standby database
Get information about the history of a database using the LogMiner utility
You can configure an instance to archive filled redo log files automatically, or you
can archive manually. For convenience and efficiency, automatic archiving is
usually best. Figure bellow illustrates how the archiver process (ARC0 in this
illustration) writes filled redo log files to the database archived redo log.
A database backup, together with online and archived redo log files,
guarantees that you can recover all committed transactions in the event of an
operating system or disk failure.
If you keep archived logs available, you can use a backup taken while the
database is open and in normal system use.
You can keep a standby database current with its original database by
continuously applying the original archived redo log files to the standby.
To protect against a failure involving the redo log itself, Oracle Database allows
a multiplexed redo log, meaning that two or more identical copies of the redo log
can be automatically maintained in separate locations. For the most benefit, these
locations should be on separate disks. Even if all copies of the redo log are on the
same disk, however, the redundancy can help protect against I/O errors, file
corruption, and so on. When redo log files are multiplexed, LGWR concurrently
writes the same redo log information to multiple identical redo log files, thereby
eliminating a single point of redo log failure.
Each member of a log file group is concurrently active that is, concurrently written
to by LGWR as indicated by the identical log sequence numbers assigned by
LGWR. In Figure, first LGWR writes concurrently to both A_LOG1 and B_LOG1. Then
it writes concurrently to both A_LOG2 and B_LOG2, and so on. LGWR never writes
concurrently to members of different groups (for example, to A_LOG1 and B_LOG2).
The following statement adds a new group of redo logs to the database:
ALTER DATABASE
You can also specify the number that identifies the group using the GROUP clause:
ALTER DATABASE
SIZE 500K;
Using group numbers can make administering redo log groups easier. However,
the group number must be between 1 and MAXLOGFILES. Do not skip redo log file
group numbers (that is, do not number your groups 10, 20, 30, and so on), or you
will consume unnecessary space in the control files of the database.
To create new redo log members for an existing group, use the SQL
statement ALTER DATABASE with the ADD LOGFILE MEMBER clause. The following
statement adds a new redo log member to redo log group number 2:
Notice that filenames must be specified, but sizes need not be. The size of the new
members is determined from the size of the existing members of the group.
When using the ALTER DATABASE statement, you can alternatively identify the target
group by specifying all of the other members of the group in the TO clause, as
shown in the following example:
TO ('/oracle/dbs/log2a.rdo', '/oracle/dbs/log2b.rdo');
configuration protects against disk failures that temporarily affect some redo log
members but leave others intact.
The only requirement for an instance redo log is that it should have at least two
groups. In figure bellow shows legal and illegal multiplexed redo log
configurations. The second configuration is illegal because it has only one group.
Assignment:
1. Define the tablespace and datafile. Explain their relationship with block
diagram.
2. Explain the types of tablespace available in Oracle Database.
3. What is locally managed tablespace? Explain how it is creates?
4. What is Biffile Tablespace? Explain how it is creates?
5. What is the difference between online and offline tablespace?
6. Define Datafile. Explain the process of renaming and relocating the online
datafiles.
7. What is control file? Explain the two ways of creating control file.
8. Explain online and archive redo log.
9. How we can multiplex the redo log file? Explain with diagram.
End of Unit-2