7 Oracle Trobulshoting Questions Answers 1
7 Oracle Trobulshoting Questions Answers 1
**********************************************************************************
4) What command will you start to run the installation of Oracle software on Linux?
runInstaller
8) What file will you use to establish Oracle connections from a remote client?
tnsnames.ora
11) What is the most important requirement in order to use RMAN to make consistent
hotbackups?
Your database has to be in ARCHIVELOG mode
13) How can you view all the users account in the database?
SELECT USERNAME FROM DBA_USERS;
14) How can you view all the current users connected in your database in this
moment?
SELECT COUNT(*),USERNAME FROM V$SESSION GROUP BY USERNAME;
15) Is it possible to backup your database without the use of an RMAN database to
store thecatalog?
Yes, but the catalog would be stored in the controlfile
17) How to clear database buffer cache ,redolog buffer cache and shared pool.
shared Pool-ALTER SYSTEM FLUSH SHARED_POOL;
database buffer cache-
15) What are the scripts run at the time of manual daataabase creation.
1.Catalog.sql
2.catproc.sql
conn / as sysdba
3.pupbld.sql
26) If a transaction is running and DBA has taken particular rollback segment
offline. What happens to that transaction?
It will start using SYSTEM tablespace
28) You are trying to add a datafile, but its not allowing and saying you cannot
add it. What might be the reason?
Either MAXDATAFILES controlfile parameter or DB_FILES parameter in pfile
might have reached its max value
29) Your standby database was out of reach because of network issue. How will you
synchronize it with primary database again?
Data Guard automatically resynchronizes the standby following network or
standby outages using redo data that has been archived at the primary.
31) You loss one datafile and DB is running in ARCHIVELOG mode. You have full
database backup of 1 week/day old and don�t have backup of this (newly created)
datafile. How do you restore/recover file?
Create data file and recover datafile.
32) In catalog database, if some of the blocks are corrupted due to system crash,
How will you recover?
using RMAN BLOCK RECOVER command
33) There was a media failure. How can you find which files you must recover?
By querying the V$RECOVER_FILE view, which lists all files that need media
recovery.
34) Can one FRA directory be used for more than one database?
You can use the same flash recovery area for as many databases as you want.
The RMAN backup process will create a subdirectory called <SID_NAME>, the same name
as the database you are backing up.
35) Can Recovery Catalog database also be shutdown from RMAN prompt like TARGET
Database can be done?
All the shutdown and startup commands applies only to the target database.
You can�t start and stop the recovery catalog instance from RMAN. The only way to
start up and shut down the recovery catalog instance is by connecting to the
recovery catalog database as the target database and by issuing the relevant
commands to start or stop the instance.
36) Does using recovery catalog means RMAN won�t use the control file to store
information?
No. Even when you choose to use a recovery catalog, backup information will
continue to be stored in the control file as well by default.
37) You want to move your recovery catalog from one database to another. How you
can do it?
a) Create a new recovery catalog in the target database. You don�t need to
register any database to it
b) Use the import catalog command in RMAN after connecting to the target
database:
38) Is there a way to force rman to use these obsolete backups or once it is marked
obsolete?
As per my understanding it is just a report, they are still there until you
delete them.
39) Can I use the same snapshot controlfile to backup multiple databases(one after
another) running on the same server?
This file is only use temporarily like a scratch file. Only one rman session
can access the snapshot controlfile at any time so this would tend to serialize
your backups if you do that.
40) Why does not oracle keep RMAN info after recreating the controlfile?
Creating the new controlfile from scratch how do you expect the create
controlfile to "make up" the missing data?
that would be like saying similarly we have drop and recreated my table and
now it is empty similarly here recreating from the scratch means the contents there
will be naturally will be gone.
Use the rman catalog to deal this situation. It is just a suggestion.
42) You recreated the control file by �using backup control file to trace� and
using alter database backup controlfile to �location� command what have you lost in
that case?
You lost all of the backup information as using backup controlfile to trace
where as using other ALTER DATABASE BACKUP CONTROLFILE to �D:\Backup\
control01.ctl�.
All backup information is retained when you take binary control file backup.
43) If a backup is issued after �shutdown abort� command what kind of backup is
that?
It is an inconsistent backup.
If you are in noarchivelog mode ensure that you issue the shutdown immediate
command or startup force is another option that you can issue:
startup force->shutdown abort;
followed by
shutdown immediate;
45) Can I have datafiles and contolfile backup in a single backup set?
Yes, If the controlfile autobackup is not ON then RMAN takes backup of
controlfile along with the datafile 1, whenever you take backup of the database or
System tablespace
46) Can I regulate the size of backup piece and backup set?
Yes!
You can set max size of the backupset as well as the backup piece
By default one RMAN channel creates a single backupset with one backup
piece in it
You can use the MAXPIECESIZE channel parameter to set limits on the size of
backup pieces
You can also use the MAXSETSIZE parameter on the BACKUP and CONFIGURE
commands to set a limit for the size of backup sets
48) Do I need to place the database in begin backup mode while taking RMAN
inconsistent backup?
RMAN does not require extra logging or backup mode because it knows the
format of data blocks
RMAN is guaranteed not to back up fractured blocks
No extra redo is generated during RMAN backup
49) If an oracle database is crashed? How would you recover that transaction which
is not in backup?
If the database is in archivelog we can recover that transaction otherwise we
cannot recover that transaction which is not in backup.
51) Can we take incremental backup without taking the full backup?
No, full backup should be taken before the incremental backup.
54) If the database is running in the noarchivelog mode, then which type of backups
can you take?
In this case, you can take only cold backups
57) Can you take online backups if the database is running in the NOARCHIVELOG
mode?
No
58) Can we take incremental backup without taking the full backup?
No, full backup should be taken before the incremental backup.
60) Can you take the backup of log files if the database is running in the
ARCHIVELOG mode?
No, you cannot take the backup of log files if the database is running in the
ARCHIVELOG mode.
61) How can you manage storage options during export or import?
You can manage storage options during export or import by using the compress
option. It ensures that the storage is compressed whenever the parameter value is
Y.
63) Can we use backup set create by rman with any other utility.?
NO
65) Can we take online rman backup if database is runing in noarchivelog mode.?
No database wants to be in archivelog mode.
========================================================================THE
END===============================================================================
-3