Tuesday, 30 May 2017

Interview Question Answers MANAGING BACKUP & RECOVERY

MANAGING BACKUP & RECOVERY
73. What are the different methods of backing up oracle database ?
- Logical Backups - Cold Backups - Hot Backups (Archive log)
74. What is a logical backup ?
Logical backup involves reading a set of databse records and writing them into a file. Export utility is used for taking backup and Import utility is used to recover from backup.
75. What is cold backup ? What are the elements of it ?
Cold backup is taking backup of all physical files after normal shutdown of database. We need to take.
- All Data files. - All Control files. - All on-line redo log files. - The init.ora file (Optional)
76. What are the different kind of export backups ?
Full back - Complete database. Incremental - Only affected tables from last incremental date/full backup date. Cumulative backup - Only affected table from the last cumulative date/full backup date.
77. What is hot backup and how it can be taken ?
Taking backup of archive log files when database is open. For this the ARCHIVELOG mode should be enabled. The following files need to be backed up.  All data files. All Archive log, redo log files. All control files.
78. What is the use of FILE option in EXP command ?
To give the export file name.
79. What is the use of COMPRESS option in EXP command ?
Flag to indicate whether export should compress fragmented segments into single extents.
80. What is the use of GRANT option in EXP command ?
A flag to indicate whether grants on databse objects will be exported or not. Value is 'Y' or 'N'.
81. What is the use of INDEXES option in EXP command ?
A flag to indicate whether indexes on tables will be exported.
82. What is the use of ROWS option in EXP command ?
Flag to indicate whether table rows should be exported. If 'N' only DDL statements for the databse objects will be created.
83. What is the use of CONSTRAINTS option in EXP command ?
A flag to indicate whether constraints on table need to be exported.
84. What is the use of FULL option in EXP command ?
A flag to indicate whether full databse export should be performed.
85. What is the use of OWNER option in EXP command ?
List of table accounts should be exported.
86. What is the use of TABLES option in EXP command ?
List of tables should be exported.
87. What is the use of RECORD LENGTH option in EXP command ?
Record length in bytes.
88. What is the use of INCTYPE option in EXP command ?
Type export should be performed COMPLETE,CUMULATIVE,INCREMENTAL.
89. What is the use of RECORD option in EXP command ?
For Incremental exports, the flag indirects whether a record will be stores data dictionary tables recording the export.
90. What is the use of PARFILE option in EXP command ?
Name of the parameter file to be passed for export.
91. What is the use of PARFILE option in EXP command ?
Name of the parameter file to be passed for export.
92. What is the use of ANALYSE ( Ver 7) option in EXP command ?
A flag to indicate whether statistical information about the exported objects should be written to export dump file.
93. What is the use of CONSISTENT (Ver 7) option in EXP command ?
A flag to indicate whether a read consistent version of all the exported objects should be maintained.
94. What is use of LOG (Ver 7) option in EXP command ?
The name of the file which log of the export will be written.
95.What is the use of FILE option in IMP command ?
The name of the file from which import should be performed.
96. What is the use of SHOW option in IMP command ?
A flag to indicate whether file content should be displayed or not.
97. What is the use of IGNORE option in IMP command ?
A flag to indicate whether the import should ignore errors encounter when issuing CREATE commands.
98. What is the use of GRANT option in IMP command ?
A flag to indicate whether grants on database objects will be imported.
99. What is the use of INDEXES option in IMP command ?
A flag to indicate whether import should import index on tables or not.
100. What is the use of ROWS option in IMP command ?

A flag to indicate whether rows should be imported. If this is set to 'N' then only DDL for database objects will be exectued.

No comments:

Post a Comment