Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

201.

What Is Logical Backup?

Answer»

Logical BACKUP is a process of extracting DATA in the FORM of SQL statements, where it is useful to recover in case the objects are lost. The MAIN drawback of using this backup is that MEAN TIME TO RECOVER is high.

Logical backup is a process of extracting data in the form of SQL statements, where it is useful to recover in case the objects are lost. The main drawback of using this backup is that MEAN TIME TO RECOVER is high.

202.

Can You Take Online Backup Of A Control File?

Answer»

Yes, by USING the following statement:
ALTER database backup CONTROLFILE to '<location>' or TRACE

Yes, by using the following statement:
alter database backup controlfile to '<location>' or trace

203.

Where Should You Place Archive Log Files- In The Same Disk Where Database Exists Or In Another Disk?

Answer»

Archive log FILES should not be SAVED in the same disk as datafiles to ENSURE recovery in CASE of media failure. They should be kept on SEPARATE mount points or disk.

Archive log files should not be saved in the same disk as datafiles to ensure recovery in case of media failure. They should be kept on separate mount points or disk.

204.

Can You Take Online Backups If The Database Is Running In The Noarchivelog Mode?

Answer»

No. The DATABASE NEEDS to be in the ARCHIVELOG MODE to SUPPORT online backups.

No. The database needs to be in the ARCHIVELOG mode to support online backups.

205.

Can You Take Partial Backups If The Database Is Running In The Noarchivelog Mode?

Answer»

In this case, partial BACKUP is POSSIBLE; HOWEVER, they are not useful.

In this case, partial backup is possible; however, they are not useful.

206.

If The Database Is Running In The Noarchivelog Then Which Type Of Backups Can You Take?

Answer»

In this CASE, you can TAKE only COLD BACKUPS.

In this case, you can take only cold backups.

207.

What Is A Backup Set?

Answer»

Backup set is a LOGICAL grouping of backup files that are created when you issue an RMAN backup command. It is RMAN's NAME for a COLLECTION of files associated with a backup. A backup set is composed of ONE or more backup PIECES.

Backup set is a logical grouping of backup files that are created when you issue an RMAN backup command. It is RMAN's name for a collection of files associated with a backup. A backup set is composed of one or more backup pieces.

208.

What Does Rman Backup Consist Of?

Answer»

RMAN backup CONSISTS of a backup of all or part of a database. This results from ISSUING an RMAN backup command. A backup consists of one or more backup SETS.

RMAN backup consists of a backup of all or part of a database. This results from issuing an RMAN backup command. A backup consists of one or more backup sets.

209.

Why Is The Catalog Optional?

Answer»

Catalog is optional because RMAN manages BACKUP and recovery operations and it REQUIRES a place to store necessary INFORMATION about the database. RMAN always stores this information in the target database control file. You can also store the RMAN metadata in a recovery catalog schema contained in a separate database. The recovery catalog schema must be STORED in a database other than the target database.

Catalog is optional because RMAN manages backup and recovery operations and it requires a place to store necessary information about the database. RMAN always stores this information in the target database control file. You can also store the RMAN metadata in a recovery catalog schema contained in a separate database. The recovery catalog schema must be stored in a database other than the target database.

210.

Can You Use Rman Without Recovery Catalog?

Answer»

YES, RMAN can be USED without RECOVERY CATALOG.

Yes, RMAN can be used without recovery catalog.

211.

What Is A Recovery Catalog?

Answer»

Recovery CATALOG is an inventory of the backup TAKEN by RMAN for the DATABASE. It is used to restore a physical backup, reconstruct it, and make it AVAILABLE to the Oracle server.

Recovery catalog is an inventory of the backup taken by RMAN for the database. It is used to restore a physical backup, reconstruct it, and make it available to the Oracle server.

212.

Can You Take Offline Backup With Rman?

Answer»

YES, you can TAKE OFFLINE BACKUP with RMAN.

Yes, you can take offline backup with RMAN.

213.

What Are Channels?

Answer»

RMAN process uses channel to communicate with I/O DEVICES. You can control the type of I/O DEVICE, PARALLELISM, number of files, and size of files by allocating CHANNELS.

RMAN process uses channel to communicate with I/O devices. You can control the type of I/O device, parallelism, number of files, and size of files by allocating channels.

214.

How Does Rman Improve Performance Of Backup?

Answer»

RMAN uses multiple CHANNELS and does not TAKE backup of free BLOCKS. This is the reason why performance of RMAN backup is BETTER.

RMAN uses multiple channels and does not take backup of free blocks. This is the reason why performance of RMAN backup is better.

215.

What Are The Architectural Components Of Rman?

Answer»

Following are the architectural components of RMAN:

  1. RMAN EXECUTABLE
  2. Server processes
  3. Channels
  4. Target DATABASE
  5. RECOVERY catalog database (optional)
  6. Media management layer (optional)
  7. BACKUPS, backup sets, and backup pieces

Following are the architectural components of RMAN:

216.

Can You Track Changes To Blocks During Hot Backup?

Answer»

ORACLE database 11G offers bock change tracking FEATURE. It records the information in block change tracking FILE. RMAN uses this information to determine SPECIFIC blocks to be backed up again without re-scanning the entire datafile.

Oracle database 11g offers bock change tracking feature. It records the information in block change tracking file. RMAN uses this information to determine specific blocks to be backed up again without re-scanning the entire datafile.

217.

How Do You Find The Total Database Size In The Database?

Answer»

You can use the FOLLOWING database views to get the information on database size:

  •  dba_segments —Gives the information about the used space. You can take a total of all the BYTES in the dba_segments VIEW to get the used space.
  •  dba_data__files —Gives the Information on space allocated to datafiles for permanent tablespaces.
  •  V$log— Gives the information on redo log files.

You can use the following database views to get the information on database size:

218.

What Is Rman?

Answer»

RMAN is an ORACLE SUPPLIED TOOL or utility that can be USED to manage backup and recovery activities.

RMAN is an Oracle supplied tool or utility that can be used to manage backup and recovery activities.

219.

Can We Take Incremental Backup Without Taking The Full Backup?

Answer»

No, FULL BACKUP should be TAKEN before the INCREMENTAL backup.

No, full backup should be taken before the incremental backup.

220.

Why More Redo Is Generated During Hot Backup?

Answer»

During the HOT backup, when a TABLESPACE is put up in the backup mode, all the datafiles that belongs to the tablespace get their checkpoint frozen.
When DBWR process writes the changed data BLOCKS to the datafile, the same data blocks are written to redo log files to support roll forward process to MAINTAIN the consistency of a hot backup. This is the reason for large redo generation and requirement of archive logs for hot backup.

During the hot backup, when a tablespace is put up in the backup mode, all the datafiles that belongs to the tablespace get their checkpoint frozen.
When DBWR process writes the changed data blocks to the datafile, the same data blocks are written to redo log files to support roll forward process to maintain the consistency of a hot backup. This is the reason for large redo generation and requirement of archive logs for hot backup.

221.

What Is The Difference Between Hot Backup And Cold Backup?

Answer»

Hot BACKUP is taken when database is STILL online while cold backup is taken when database is OFFLINE.
Database needs to be in the archive LOG MODE for the hot backup but there is no such requirement for the cold backup.

Hot backup is taken when database is still online while cold backup is taken when database is offline.
Database needs to be in the archive log mode for the hot backup but there is no such requirement for the cold backup.

222.

Can You Backup The Online Redo Log Files?

Answer»

We cannot BACKUP the online REDO logs; HOWEVER, online redo logs are PROTECTED by multiplexing and optionally by archiving.

We cannot backup the online redo logs; however, online redo logs are protected by multiplexing and optionally by archiving.

223.

Which Tools Can You Use For Full Backup?

Answer»

You can use either the OPERATING system UTILITIES or the RMAN UTILITY for full backup.
However, Oracle recommends the use of RMAN utility.

You can use either the operating system utilities or the RMAN utility for full backup.
However, Oracle recommends the use of RMAN utility.

224.

Which Files Must Be Backed Up?

Answer»

The FOLLOWING FILES MUST be backed up:

  •  Database files
  •  Control files
  •  Archived LOG files
  •  INIT.ORA
  •  PASSWORD files

The following files must be backed up:

225.

What Is A Listener Process?

Answer»

The listener or Transparent Network Substrate (TNS) listener is a SERVER process that provides network connectivity to the Oracle database. The listener is configured to LISTEN for CONNECTION requests on a specified port on the database server. When an incoming request is received on the port, the listener attempts to resolve the request and forward the connection information to the appropriate database instance.

The listener or Transparent Network Substrate (TNS) listener is a server process that provides network connectivity to the Oracle database. The listener is configured to listen for connection requests on a specified port on the database server. When an incoming request is received on the port, the listener attempts to resolve the request and forward the connection information to the appropriate database instance.

226.

What Is The Difference Between Multithreaded/shared Server And Dedicated Server?

Answer»
  • In case of a DEDICATED server, a server PROCESS is associated with a single user process and serves it dedicatedly.
  • In case of a SHARED server, a single server process can serve multiple user processes. This is achieved with the help of a DISPATCHER process, which places each user process in a single request queue. Server process picks up the user process whenever it is free. After that, the server process puts the result in the INDIVIDUAL response queue associated with different dispatcher processes.

227.

What Happens During Startup Mount?

Answer»

In case of startup mount, the parameter and control files can be READ but the DATAFILES and the log files cannot be ACCESSED because database is not yet open. Generally, this MODE is USED when a datafile recovery is required.

In case of startup mount, the parameter and control files can be read but the datafiles and the log files cannot be accessed because database is not yet open. Generally, this mode is used when a datafile recovery is required.

228.

What Happens After A User Process Fails?

Answer»

PMON cleans up the memory after USER PROCESS FAILS.

PMON cleans up the memory after user process fails.

229.

How Do You View Parameter Values When You Are Using Pfile Or Spfile?

Answer»

You can use the SHOW PARAMETER command from SQL*PLUS or query V$PARAMETER VIEW to see the value of the PARAMETERS.

You can use the SHOW PARAMETER command from SQL*Plus or query v$PARAMETER view to see the value of the parameters.

230.

What Are The Advantages Of Using Spfile?

Answer»

SPFILE supports dynamic changes in parameter VALUES. The changes in SPFILE can only be made by using the Oracle statements; therefore, there is no chance of ACCEPTING impossible changes as it will be checked by the system. As a result, chances of HUMAN errors are REDUCED.
Moreover, back up of SPFILE is possible through RMAN.

SPFILE supports dynamic changes in parameter values. The changes in SPFILE can only be made by using the Oracle statements; therefore, there is no chance of accepting impossible changes as it will be checked by the system. As a result, chances of human errors are reduced.
Moreover, back up of SPFILE is possible through RMAN.

231.

How Do You Control The Maximum Number Of Redo Log Files In A Database?

Answer»

The maximum NUMBER of REDO LOG FILES can be controlled by the parameter MAXLOGFILES.

The maximum number of redo log files can be controlled by the parameter MAXLOGFILES.

232.

How Do You Control The Number Of Datafiles In An Oracle Database?

Answer»

The number of datafiles in an ORACLE DATABASE is CONTROLLED by the INITIALIZATION parameter DB_FILES.

The number of datafiles in an Oracle database is controlled by the initialization parameter DB_FILES.

233.

Which File Is Accessed First When You Start An Oracle Database?

Answer»

Initialization PARAMETER FILE or SPFILE is always accessed first when an Oracle DATABASE is started.
This file is used to determine database LEVEL setting because those VALUES are stored as parameters in this file.

Initialization parameter file or SPFILE is always accessed first when an Oracle database is started.
This file is used to determine database level setting because those values are stored as parameters in this file.

234.

Name A Tablespace, Which Is Automatically Created When You Create A Database.

Answer»

The SYSTEM tablespace is created automatically during database creation. It contains data DICTIONARY OBJECTS. All data stored on BEHALF of stored PL/SQL program UNITS (procedures, functions, packages, and triggers) resides in the SYSTEM tablespace, which is always online when the database is open.

The SYSTEM tablespace is created automatically during database creation. It contains data dictionary objects. All data stored on behalf of stored PL/SQL program units (procedures, functions, packages, and triggers) resides in the SYSTEM tablespace, which is always online when the database is open.

235.

What Is The Logical Structure Of The Disk Resources?

Answer»

Following is the logical structure of the disk resources:

  •  DATA block :Refers to the SMALLEST logical storage unit. Size of a data block is a MULTIPLE of operating system block size.
  •  Extent :Refers to the contiguous set of data blocks, which is allocated as a unit to a SEGMENT.
  •  TABLESPACE :Refers to the final logical storage unit. It is mapped to physical datafile.
  •  Segment:Allocates a logical structure, such as table. It is a set of extents, which are stored in the same tablespace.

Following is the logical structure of the disk resources:

236.

When Does Lgwr Write To The Log File?

Answer»

Following are the situations when LGWR writes to the log FILE:

  1. When a user process commits a transaction
  2. When redo log buffer is one-third FULL
  3. When more than a MEGABYTE of CHANGES are recorded into the redo log buffer
  4. Before DBWR writes modified blocks to the DATAFILES

Following are the situations when LGWR writes to the log file:

237.

What Is Log Writer (lgwr)?

Answer»

LGWR is the background process that WRITES redo information from redo log BUFFERS to the log files.

LGWR is the background process that writes redo information from redo log buffers to the log files.

238.

What Is System Change Number (scn)?

Answer»

SCN is an ID that Oracle GENERATES for every transaction. It is recorded with the corresponding CHANGE in a redo entry.

SCN is an ID that Oracle generates for every transaction. It is recorded with the corresponding change in a redo entry.

239.

What Is The Process Of Updating Or Inserting Certain Data In The Database?

Answer»

Following is the process to update or insert data in the DATABASE:

  •  RDBMS searches for parsed statement in library cache or parses the statement to generate execution plan.
  •  Server process retrieves relevant data from disk to the BUFFER cache. In case of inserting data in the database, the data block with sufficient free space will be retrieved.
  •  Lock is acquired. The data block is updated in the buffer cache.
  •  A lock is acquired on ROLLBACK segment as well to store old VERSION of data in case rollback is required.
  •  User process creates a redo entry in the redo log buffer to SUPPORT recovery.

Following is the process to update or insert data in the database:

240.

How Long Does The Rollback Segment Hold Data To Maintain Consistency?

Answer»

ROLLBACK segment holds the previous VERSION of data block until either it gets committed or the space is not available for reuse. If a session is reading specific block from rollback segment while the other session has committed the INFORMATION, then more rollback space is required to maintain more rollback information. In that case, this specific block ages out of the rollback segment and the reading or selecting session gets an ERROR.

Rollback segment holds the previous version of data block until either it gets committed or the space is not available for reuse. If a session is reading specific block from rollback segment while the other session has committed the information, then more rollback space is required to maintain more rollback information. In that case, this specific block ages out of the rollback segment and the reading or selecting session gets an error.

241.

What Happens When Multiple Users Try To Update The Same Set Of Data?

Answer»

ORACLE uses locking mechanism to ENSURE that only one session or user can update a single set of data at given point in TIME.

Oracle uses locking mechanism to ensure that only one session or user can update a single set of data at given point in time.

242.

What Do You Mean By Data Consistency? How Does Oracle Maintain Consistency Of Data?

Answer»

In a multi-user environment, there can be SITUATIONS when one or more users are reading certain set of data while other is modifying the same set of data. Data consistency provides a stable or CONSISTENT data to the users throughout the session.
Data consistency is maintained through rollback segments. A rollback SEGMENT holds the data image before CHANGE; therefore, one or more sessions will get the same image of the data throughout the session that were reading the data while another session is updating.

In a multi-user environment, there can be situations when one or more users are reading certain set of data while other is modifying the same set of data. Data consistency provides a stable or consistent data to the users throughout the session.
Data consistency is maintained through rollback segments. A rollback segment holds the data image before change; therefore, one or more sessions will get the same image of the data throughout the session that were reading the data while another session is updating.

243.

What Happens When A User Requests For Some Information From Rdbms?

Answer»

The following steps are PERFORMED when a user requests for some information:
1. RDBMS checks if a copy of the parsed SQL statement exists in the library cache. If parsed copy exists, then steps 2 to 6 are skipped.
2. RDBMS VALIDATES the syntax of the statement.
3. RDBMS ENSURES that all the columns and tables referenced in the statement exist.
4. RDBMS acquires parse locks on objects referenced in the statement so that their definitions do not change while statement is parsed.
5. RDBMS ensures that the user has sufficient privileges.
6. Statement is parsed and execution plan is created.
7. Statement is executed.
8. Values are fetched.

The following steps are performed when a user requests for some information:
1. RDBMS checks if a copy of the parsed SQL statement exists in the library cache. If parsed copy exists, then steps 2 to 6 are skipped.
2. RDBMS validates the syntax of the statement.
3. RDBMS ensures that all the columns and tables referenced in the statement exist.
4. RDBMS acquires parse locks on objects referenced in the statement so that their definitions do not change while statement is parsed.
5. RDBMS ensures that the user has sufficient privileges.
6. Statement is parsed and execution plan is created.
7. Statement is executed.
8. Values are fetched.

244.

What Is Join Dependency?

Answer»

A join DEPENDENCY is a SITUATION where a table can be CREATED by JOINING TWO or more tables.

A join dependency is a situation where a table can be created by joining two or more tables.

245.

What Is The Standard Normal Form For Most Online Transaction Processing (oltp) Databases?

Answer»

3NF is the STANDARD NORMAL FORM for most OLTP DATABASES.

3NF is the standard normal form for most OLTP databases.

246.

What Is Transitive Dependency?

Answer»

A TRANSITIVE DEPENDENCY is the SITUATION when an ATTRIBUTE indirectly depends on ANOTHER attribute through a third attribute.

A transitive dependency is the situation when an attribute indirectly depends on another attribute through a third attribute.

247.

What Is Multi-valued Dependency?

Answer»

A multi-valued dependency is the situation when an attribute (ASSUME B) is dependent on another attribute (assume A). However, there are MULTIPLE rows in a table representing the dependency. This situation can happen when there is at least one more attribute which is dependent on A and it requires to have multiple rows of A and B to represent all the POSSIBLE COMBINATIONS. A multi-valued dependency is represented by A-&GT;> B.

A multi-valued dependency is the situation when an attribute (assume B) is dependent on another attribute (assume A). However, there are multiple rows in a table representing the dependency. This situation can happen when there is at least one more attribute which is dependent on A and it requires to have multiple rows of A and B to represent all the possible combinations. A multi-valued dependency is represented by A->> B.

248.

What Is Full Functional Dependency?

Answer»

FULL functional dependency is the situation when an ATTRIBUTE depends on a GROUP of attributes completely but not on the subset of the attributes.

Full functional dependency is the situation when an attribute depends on a group of attributes completely but not on the subset of the attributes.

249.

What Is Trivial Functional Dependency?

Answer»

A trivial FUNCTIONAL DEPENDENCY is the situation, which shows a RELATION between an attribute with a superset of itself such that the attribute is dependent on the superset.
CONSIDER an attribute of the DRESS entity, say length. If the length attribute is dependent on the dress code attribute of the dress entity, then it is a non-trivial dependency; however, if the length attribute is dependent on the color and length attributes of the dress entity, then it is a trivial dependency.

A trivial functional dependency is the situation, which shows a relation between an attribute with a superset of itself such that the attribute is dependent on the superset.
Consider an attribute of the dress entity, say length. If the length attribute is dependent on the dress code attribute of the dress entity, then it is a non-trivial dependency; however, if the length attribute is dependent on the color and length attributes of the dress entity, then it is a trivial dependency.

250.

What Is The Difference Between Logical Data Model And Physical Data Model?

Answer»

PHYSICAL data model depicts DATABASE in terms of physical objects, such as TABLES and constraints; whereas, logical data model depicts database in terms of logical objects, such as entities and relationships, and it is represented by the entity- RELATIONSHIP model.

Physical data model depicts database in terms of physical objects, such as tables and constraints; whereas, logical data model depicts database in terms of logical objects, such as entities and relationships, and it is represented by the entity- relationship model.