GeekInterview.com
Series: Subject: Topic:

Oracle Backup and Recovery Interview Questions

Showing Questions 1 - 20 of 44 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

What is the difference between recovery and restoring of the database.

Asked By: ebymon | Asked On: Apr 10th, 2006

Answered by: Rajesh Singh on: Jan 15th, 2012

Restoring a database is copying the physical files from a backup medium (disk or tape) to the appropriate file locations for database operation. Recovery is process of updating database files to roll...

Answered by: haroon on: Jan 8th, 2012

Simply the restoration means copy the database object from the backup media to the destination where actually it is required. Whereas recovery means to apply the database object copied earlier in order to bring the database to the consistent state.

If an Oracle database has crashed. How would you recover the transactions that are not in the backups?

Asked By: Ed | Asked On: Jun 25th, 2007

Answered by: V.SOMASUNDARAM on: Sep 16th, 2011

Restore: just back up from back up media

recover: during the transaction in case of incomplete transaction due to power failure or some other reasons, that time either to complete the transaction or cancel the transaction is called recover

Answered by: Shikha31 on: Mar 31st, 2011

If the database is in ARCHIVELOG mode we can recover the transactions using archive logs otherwise we can not recover the transactions that are not in the backups.

What  are  the  advantages of operating a database in archivelog mode over operating it in no archivelog mode ?

Asked By: Interview Candidate | Asked On: Sep 6th, 2004

Complete database recovery from disk failure is possible only in archivelog mode.Online database backup is possible only in archivelog     mode.

Answered by: kiran on: Jul 20th, 2011

If a Database is running in NoArchive log mode , when ever log switch happens there will be a loss of some redo log information in order to avoid this, redo logs must be archived. This can be achived by configuring database to run in Archivelog mode

Answered by: sandy8m on: Apr 5th, 2011

Archive log is for maintaining the database in safest mode. If any data is loss in future, u can easily recover using archive logs. Recover command and reco background process uses archive logs to do ...

Diagnose the problem

Asked By: harit79 | Asked On: Jul 8th, 2009

Suppose you have two servers, one at 2nd floor and another on 3rd floor,if you have to configure the server on 3rd floor while sitting on 2nd floor how will you do it?

Answered by: Merlin5by5 on: Jul 19th, 2011

Sign on as Oracle, connect to the Target DB on third floor as DBA, and perform your commands.

This only requires a Good OracleNet client arrangement.

Answered by: Merlin5by5 on: Jul 19th, 2011

Disconnect from your current target DB, and connect to the target DB on the next floor.

This assumes you have connected to the Target DB as DBA, on YOUR floor.

What are the steps involved in database shutdown ?

Asked By: Interview Candidate | Asked On: Sep 6th, 2004

Close the database, dismount the database and shutdown the instance

Answered by: Mukunda on: Jul 19th, 2011

Before shut down better to take up the back up of the database and then disconnect the database and then shutdown the database

Answered by: satyam_2007 on: Oct 25th, 2007

There are the following steps of shutting down the database and it's associated instance:1)Close the database.2) Unmount the database.3)Shut down the instance.1) Close a database:When we close the...

Inconsistant backup

Asked By: akanksha pancholi | Asked On: Jul 12th, 2009

Why is the header of datafile and information of control file different at the time of inconsistant backup?

Answered by: Sekaran Narsimhan on: Jun 16th, 2011

inconsistent backup means online backup . when v r doing the online backup the database will be running and query ill be hitting the server in that time scn no ill differ from header of the datafile and the control file . so the both the info will be differ from each other in inconsistent backup 

Answered by: narendra05 on: Apr 23rd, 2010

When begin backup command is issued the datafile header's are blocked. While the controlfile SCN does gets changed. During startup of the database the database has to do a rollforward based on the SCN between the header of datafile and control file.

Thanks
Narendra

Authentication methods for DBAs

Asked By: Archy | Asked On: Jul 2nd, 2008

What are the steps to creating a password authentication file?

Answered by: ashokbabugaddipati on: Jun 2nd, 2011

1.set the remote_login_passwordfile='EXCLUSIVE'

2.orapwd  file=pwdsid.ora password=xxxxxx  force=y

we have to check the password file is created or not using the following query

SQL> select * from v$pwfile_users;

Answered by: g.mrunalini on: Jul 22nd, 2008

There are two types of authenticationsOS levelDB levelFor OS level authentication:1. Shutdown the database2. Set OS_AUTHENT_PREFIX=' '    in init.ora file3.$ connect  '...

How do you setup a physical stanby for Oracle 9i in LINUX ?

Asked By: ds_singh29 | Asked On: Apr 18th, 2007

Answered by: matabrez on: Jan 9th, 2011

Steps for Physical standby for Oracle 9i in LINUX.On Primary Side 1. Take rman fullbackup with controlfile and spfile.2. Take standby controlfile backup as SQL> ALTER DATABASE CREATE STANDBY CONTRO...

Answered by: naveen5555 on: Sep 21st, 2007

Creating a physical standby using RMAN

Corrupted archieve logs

Asked By: shanthiavari | Asked On: Jun 10th, 2008

There are 100 datafiles, numbered from 1 to 100. File number 10 is deleted and it has 500 MB of data. The database is working in archive log mode. How can be the database recovered ? While doing recovery the archive logs applied are from nos 1 to 100, but 50 gets corrupted. What do we do? Can we proceed...

Answered by: nvkchaitanya on: Dec 7th, 2010

In this critical situation I had a pritical example which follows this.SQL> recover database until cancel using backup controlfile;ORA-00279: change 9867098396261 generated at 03/21/2008 13:37:44 n...

Answered by: Kamran Agayev A. on: Sep 8th, 2009

In this situation you're not able to recover the database. Of course, it can be done by using nonsupported and nondocumented parameter "_ALLOW_RESETLOGS_CORRUPTED" but you HAVE NOT to us...

You can take a coldbackup from solaris and use it on windows nt?A) yesb) yes, if RMAN backup performed from NT serverc) yes, after running RMAN convertd) no

Asked By: dinesh1909 | Asked On: Nov 16th, 2007

Answered by: vishnusivathej on: Nov 25th, 2010

Yes we can use it... RMAN can convert the datafiles from little endian to big endian... The only exception is that both the databases have to use the same national character set and character set...

Answered by: jafar.labhai on: Jul 24th, 2008

NO, Because here OS is different this cold backup can be used in solaris only.

Corrupted os

Asked By: rohit.jha3 | Asked On: Sep 1st, 2010

How will you recover database if os is corrupted. Assume you have hot backup on same hard drive.

Answered by: vasantksaxena on: Oct 10th, 2010

OS Corruption doen't mean hard disk crashed.Connect this hard disk as secondary device in a working system, copy the back files/folder to other location, and proceed.

Answered by: ramshon on: Sep 9th, 2010

Cannot be recovered.

Configure command

Asked By: shanthiavari | Asked On: Jun 10th, 2008

What is configure command? When do you use this?

Answered by: oraclemanconsulting on: Aug 19th, 2010

CONFIGURE allows you to set options and have the setting stick around (persistence)

common things to set:
SNAPSHOT CONTROLFILE NAME
RETENTION POLICY
CHANNEL DEVICE TYPE
CONTROLFILE AUTOBACKUP

See what is set (or standing default values now)
SHOW ALL;

assumes the use of a recovery catalog

Answered by: imran44 on: Jan 14th, 2009

show all; command at RMAN will show all configure command in default or update configuration mode

Background processes

Asked By: kvnvk82 | Asked On: Jun 16th, 2010

Which processes will run when we take online backup?

Answered by: narendra05 on: Aug 16th, 2010

The rman process runs in case of backup running in parallel multiple such processes would run.

select sid,program,osuser,status from v$session where program like '%rman%' query will give the status of such sessions.

Answered by: slavaostapenko on: Jul 13th, 2010

I suppose no other database background process is performed. RMAN appears as usual client for database. So, there are only several RMAN processes launched in OS, but no database background processes.

RMAN calatalog database

Asked By: krishnaprasad.sola | Asked On: Feb 10th, 2009

Is it possible to take backup of catalog database using RMAN? If yes, how?

Answered by: slavaostapenko on: Jul 13th, 2010

RMAN catalog is a usual database, so just backup is with RMAN as any other database, using it as target database:

RMAN sys/password@<RMAN catalog tnsname>.
It can be done with no catalog or any other catalog (surely not using itself as catalog)/

Answered by: naveen_rc on: Aug 6th, 2009

Yes, Schedule a Schema level Export backup of the RMAN Catalog Database in Task Scheduler or CRON Exporting the Recovery Catalog This example uses the Original Export utility described in Oracle Dat...

What is mean live dead lock? How to prevent it.?

Asked By: ashutoshtodkar05 | Asked On: Jul 24th, 2006

Answered by: prahlad_786 on: Jun 23rd, 2010

Whenever you have competing DML running against the same data, you run the risk of a deadlock.Tune the application - Single-threading related updates and other application changes can often remove dea...

Answered by: naveen5555 on: Sep 22nd, 2007

A deadlock occurs when two or more users are waiting for data locked by each other(Not commited by user01).To fix this, recreate the segment with higher INITTRANS and/or PCTFREE values. This will allo...

Backup mode redo generation

Asked By: md.sarf | Asked On: Aug 18th, 2009

Why more redos are generated when the database is in begin backup mode?

Answered by: ddj1966 on: May 28th, 2010

When a user managed Hot backup is executed, the tablespace or database has to be placed in backup mode. This informs the Oracle kernel that SCNs should not be updated on the datafile. i.e. the header ...

Answered by: dhandapanik on: Dec 30th, 2009

During begin backup mode, the data file headers get freezed and it doesn’t get updated until the end backup. So it causes a checkpoint to the datafile.  This causes all dirty blocks to be w...

What do you mean by media recovery..?

Asked By: opk_pavan | Asked On: Feb 14th, 2006

Answered by: narendra05 on: Apr 23rd, 2010

Recovery is method of making the database consitent.  The database keeps this by way of SCN in headrer of all the datafile and controlfile. In case the SCN on datafile and controlfile database th...

Answered by: kannan7 on: Apr 14th, 2010

Media recovery is used to recover from a damaged(or lost) datafile, controlfile, or spfile. The goal of media recovery is to restore database integrity.

How can I export 9i data in 8 ? I mean when I export from 9i and import in 8, I face errors. What sould I do and my pc is not in network.

Asked By: kartik | Asked On: Oct 7th, 2006

Answered by: narendra05 on: Apr 23rd, 2010

I would suggest create a db link in Oracle 8 to Oracle 9i and run the CREATE TABLE AS SELECT FROM another database.

I would suggest you move to Oracle 10g /11g soon as Oracle support is already stopped to 9i and 8i release.

Narendra

Answered by: sanjayoracle on: Apr 24th, 2008

we can do it. but first we have to confirm that parameter NLS_LANG is same in both database. otherwise in IMP process oracle will give error

How do you verify and validate the datafile which is backed up?

Asked By: prakashpichika | Asked On: Oct 3rd, 2006

Answered by: pakusno on: Feb 5th, 2010

Use RMAN Backup validate database.

It will performs a validation of the datafiles by checking for logical and physical block corruption.
No backupsets are created. 

Answered by: fmiao on: Jun 5th, 2008

in rman list recoverable backup of database

What is  restricted mode of instance startup ?

Asked By: Interview Candidate | Asked On: Sep 6th, 2004

An  instance  can be started in (or later altered to be in) restricted mode so  that  when  the  database is open connections are limited only to those whose  user  accounts  have  been  granted  the  restricted  session system privilege.

Answered by: satish_manukonda on: Jan 24th, 2010

Restricted mode comes into picture when your taking backup and maintance activites. In the restricted mode no user is allowed to access..
Bring the database to mount , that it will makes Restricted mode active.

Answered by: satyam_2007 on: Oct 25th, 2007

RESTRICT is one of an important option used with an open database.It performs a database startup with the database in the restricted user mode. User must having the privileges of RESTRICT, u...

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.