Professional Documents
Culture Documents
Interview Questions For DBA
Interview Questions For DBA
What are things which play major role in designing the backup strategy?
What are RTO, MTBF, and MTTR?
What are the various tape backup solutions available in the market?
What is RAID? What is RAID0? What is RAID1? What is RAID 10?
What is the difference between physical and logical backups?
What is hot backup and what is cold backup?
When do you recommend hot backup? What are the pre-reqs?
How do you generate the begin backup script?
Give me the steps for recovering the full database from cold backup?
Give me the steps for TIME based recovery from the full database from hot backup. ?
Give me the steps for SCN based recovery from the full database from hot backup. ?
Give me the steps for CANCEL based recovery from the full database from hot backup. ?
Give me the steps for recovery with missing archived redo logs?
Give me the steps for recovery with missing online redo logs?
Give me the steps for recovery of missing data file?
Give me the steps for physical standby database creation?
What is db_recovery_file_dest ? When do you need to set this value ?
Give me the steps to perform the point in time recovery with a backup which is taken before
the resetlogs of the db ?
Tell me about the steps required to enable the RMAN backup for a target database ?
What is the difference between obsolete RMAN backups and expired RMAN backups ?
What is recovery catalog ? Why do you need this ?
How do you install the RMAN recovery catalog ?
Can you skip specific tables when using RMAN DUPLICATE feature ?
What is FRA ? When do you use this ?
How do you clone the database using RMAN software ? Give me the brief steps ? when do
you use crosscheck command ?
How do you setup the RMAN tape backups ?
How do you identify the expired,active,obsolete backups ? Which RMAN command you use ?
What is channel ? How do you enable the parallel backups with RMAN ?
What is auxiliary channel in RMAN? When do you need this ?
How do you identify what are the all the target databases that are being backed-up with
RMAN database ?
Give me some of the RMAN catalog view names which contains the catalog information ?
What is oracle wallet ? Tell me about the encryption options available with RMAN ?
List atleast 6 advantages of RMAN backups compare to traditional hot backups ?
How do you identikit the block corruption in RMAN database ? How do you fix this ?
How do you verify the integrity of the image copy in RMAN environment ?
How do you enable the encryption for RMAN backups ?
What is backup set ?
What is the difference between cumulative incremental and differential incremental backups
?
How do you enable the autobackup for the controlfile using RMAN ?
What is configure command ? When do you use this ?
Give me the steps for setting up the physical stand by database with RMAN ?
Give me the steps for changing the DBID in a cloned environment ?
What is the significance of incarnation and DBID in the RMAN backups ?
What are the steps which needs to be performed in $ORACLE_HOME for enabling the RMAN
backups with netbackup or TSM tape library software ?
RMAN is an Oracle tool for taking the backup and recovering the databases. You can copy, restore,
and recover datafiles, control files and archived redo logs. It has command line utility as well as GUI-
based Enterprise Manager Backup. Here we are discussing the command line utility.
For example, we have TEST and PROD databases. Here TEST is the catalog database and PROD is the
target database for which the backup has to be taken. You may loose your backup if you have your
catalog and target databases on the same box and the box crashes .So it is always advisable to keep
a separate database for RMAN catalog .
Create two databases. One for RMAN catalog(Test) and one target(PROD). Both the Databases should
be archive log mode.
RMAN> run{
Allocate channel c1 type disk;
Backup datafile ‘c:\orawin_815\oradata\prod\system01.dbf’ format ‘c:\backup\temp01.dbf’;
}
You can change the backup fine format including the destination. In this example, this backup file is
created on the local drive of the system.
Oracle 11g Release 2 launched in August 2009. Now, the product is available on Linux platform. There are
almost 400 aditional functionality added by Oracle 11g. After watching the Oracle webcast 11g Release 2, I feel
Oracle 11g Release more focus on High Availability(easy RAC installation and implementation),Compressing
Data,Security,etc.
11g Release 2 required minimum 1gb RAM for the installation. I would recommend minimum 4gb ram will be
ideally better. Swap should have double of physical ram.
3.20ghz
L3 8mb Cache
1 Quad Core
146gb HDD (default) - This configuration can be changed, based on various factors.
The following packages is mandatory for Enterprise Linux : GNOME Desktop Environment ,Graphical Internet, X
Window System ,Editors , Development Tools ,Server Configuration Tools,System Tools and Administration
Tools.
http://www.oracle.com/technology/software/products/database/index.html
This parameter defines the maximum size in bytes for a shared memory segment. Since the SGA is comprised
of shared memory, SHMMAX can potentially limit the size of the SGA.
This parameter sets the maximum number of shared memory segments system wide.
This parameter sets the total amount of shared memory in bytes that can be used at one time on the system.
This parameter defines the maximum number of semaphores per semaphore set.
Oracle recommends to set SEMMSL to the largest PROCESSES init.ora parameter of any database on the Linux
system.
This parameter defines the maximum number of semaphore sets in the entire Linux system.
This parameter defines the total number of semaphores (not semaphore set) in the entire Linux system.
This parameter defines the maximum number of semaphore operations that can be performed per semop(2)
system call.
The maximum number of file handles denotes the maximum number of open files that you can have on the
Linux system.
The value in /proc/sys/fs/file-max sets the maximum number of file handles or open files that the Linux kernel
will allocate. When you get error messages about running out of file handles, then you might want to raise this
limit.
Change the parameters:
Copy sysctl.conf
cp sysctl.conf sysctl.confold
Cd /etc
Vi sysctl.conf
Add the following:
kernel.shmmax = 2147483648
kernel.shmall = 2097152
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536 # 512 * PROCESSES
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=262144
net.ipv4.ip_local_port_range = 1024 65000
Press Esc :wq
Cd /etc
Cp hosts hostsold
Vi hosts
IP-address Machinename.domainname Hostname
Press Esc and :wq
Vi limits.conf
Add or change /etc/security/limits.conf file:
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
to save Esc :wq
Vi login
Add or change line to the /etc/pam.d/login file
session required pam_limits.so
session required /lib/security/pam_limits.so
to save Esc :wq
Go to /etc/selinux(cd /etc/selinux)
Vi config
Change or add
SELINUX=disabled
to save Esc :wq
The following packages(rpm) required for Enterprise Linux 5.0 on various cd’s :
Insert the cd and mount the same
Adding Groups
groupadd oinstall
groupadd dba
groupadd asmadmin
Adding user and assign the group:
useradd -g oinstall -G dba,oper,asmadmin oracle
Add password for Oracle user
passwd oracle
mkdir -p /data1/app/oracle/product/11/db_1
chown -R oracle:oinstall /data1
chmod -R 777 /data1
Login as Oracle
Change/add user enviroment
Go to /home/oracle
Vi .bash_profile
Log out
Login as Oracle user