0% found this document useful (0 votes)
117 views29 pages

Oracle: Part I: The Questions As I Remember

1) The document discusses questions related to Oracle database administration including questions about database backups, shutdowns, tablespaces, and statistics. 2) It provides answers to questions about which files must be backed up to ensure a consistent restore, when data is written to transaction logs, and the purpose of the sapbackup directory. 3) The document also contains questions about database startup and shutdown processes, table statistics maintenance, and performance monitoring checks.

Uploaded by

Kauam Santos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
117 views29 pages

Oracle: Part I: The Questions As I Remember

1) The document discusses questions related to Oracle database administration including questions about database backups, shutdowns, tablespaces, and statistics. 2) It provides answers to questions about which files must be backed up to ensure a consistent restore, when data is written to transaction logs, and the purpose of the sapbackup directory. 3) The document also contains questions about database startup and shutdown processes, table statistics maintenance, and performance monitoring checks.

Uploaded by

Kauam Santos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 29

ORACLE

Part I: The questions as I remember:

If you have a defect tape C11BE19, then ..

a) the backup is run on an unlabeled tape

b) the backup can be run with the symbolic volume name scratch, and it will be renamed
to C11BE19.

c) The backup will choose the next tape C11BE20

d) ….
To shutdown the database you can use:

a) brtools to shutdown with options abort & force

b) brtools to shutdown with options immediate & force


c) SQL> shutdown immediate
d) SQL> shutdown abort
e) brtools to shutdown with options abort & without force
f) brtools to shutdown with options immediate & without force
Regarding table reorganization with BRSPACE, which ones are correct ?

a) SAP recommends to do the reorg. online.

b) SAP recommends to use export/import

c) …
Locally managed and dictionary managed tablespace …

a) BRSPACE can be used to convert from dictionary managed tablespaces to locally


managed tablespaces
b) Locally managed tablespaces have less fragmentations compared with dictionary
managed tablespaces.
c) The next extent size can be determined by Oracle
d) The next extent size can be determined by brconnect –f next
What does the command (brconnect –f check) do?

a) checks when the last failed backup was

b) gives a list of datafiles, their paths, and their sizes

c) a list of tablespaces with large free space

d) a list of critical objects

e) …
Part II: The questions from the sample exams and question
banks:
During an offline backup, which customer files does brbackup save to ensure that the Oracle
database can be restored to an internally consistent state?

Please choose the correct answer.

O Oracle executable files.

O Oracle database transaction log files and offline redo log files.

O Offline redo log files and the R/3 SYSLOG file.

X Tablespace data files, database online redo log files, and the database control file.

O Database transaction log files and R/3 transport structures.


During an online database backup, which customer files must be saved to ensure that the
Oracle database can be restored to an internally consistent state?

Please choose the correct answer.

X Tablespace data files, the database control file, and all database redo logs written during the online backup.

O Oracle online redo log files and the database control file.

O Offline redo log files, the database control file, and the Oracle executables.

O The Oracle executables, the database parameter file, and the tablespace data files.

O The tablespace data files, the database control file, and the database parameter file.
Which of the following statements are correct in regards to using a single run of BRBACKUP
to save both the database files and the offline redo log files?

More than one answer is correct. Decide whether each answer is true or false.

True
False
X O BRARCHIVE is started immediately after the database backup is complete: no further
intervention by the database administrator is necessary. (Gewichtung: 1)

O X This technique can only be used for offline database backups, not online backups. (Gewichtung:
1)

O X The database backup and the backup of the offline redo log files must fit on one tape because
changing tapes is not supported. (Gewichtung: 1)

X O You can backup the database using multiple tape devices in parallel. (Gewichtung: 1)

X O The tapes used must have been initialized by BRBACKUP. (Gewichtung: 1)


When is data written to the Oracle transaction logs (redo logs)?

Please choose the correct answer.

O Sometimes before, sometimes after being written to the database files.

O After being written to the database files.

O At the same time as being written to the database files.

O After a transaction failed.

X Before being written to the database files.


What is the primary function of the "sapbackup" directory?

Please choose the correct answer.

O Storing database transaction logs (redo logs) temporarily before they are automatically written to tape.

O Providing a work area for R/3 Instance tasks.

X Storing database backup log files.

O Storing the offline redo log files.

O Providing a work area for R/3 database utilities during database reorganizations.
SAP recommends checking the database for corrupt data blocks at least once per backup cycle.
How can this be done?

More than one answer is correct. Decide whether each answer is true or false.

True
False
O X Oracle always checks for corrupted data blocks when a backup is performed. (Gewichtung: 1)

O X The tool brbackup always checks for corrupted data blocks when a backup is performed.
(Gewichtung: 1)

X O You can perform a level 0 backup using the Oracle Recovery Manager (RMAN) together with
SAP tools, because this method checks all blocks for corruption. (Gewichtung: 1)

X O Use the verify option (-w |verify use_dbv) when running brbackup. (Gewichtung: 1)

O X Use the verify option (-w|verify use_dbv) when running brarchive. (Gewichtung: 1)
Administration

What happens during the shutdown of an Oracle database?

More than one answer is correct. Decide whether each answer is true or false.

True
False
O X When you shutdown the database with the NORMAL option, the database system disconnects all
users before shutting down the database. (Gewichtung: 1)

X O When you shutdown the database with the NORMAL or IMMEDIATE option, the database
system writes a checkpoint before shutting down the database. (Gewichtung: 1)

X O When you shutdown the database with the IMMEDIATE option, open transactions are rolled back
before the database is shut down. (Gewichtung: 1)

O X When you shut down the database with the ABORT option, the R/3 system is shut down, too.
(Gewichtung: 1)

O X Shutting down the database with the IMMEDIATE option requires an instance recovery at the
next database startup. (Gewichtung: 1)
Which of the following statements are correct for the SAP-recommended strategy for creating
and updating table statistics used by the cost-based optimizer?

More than one answer is correct. Decide whether each answer is true or false.

True
False
X O No statistics are created for R/3 pool and cluster tables. (Gewichtung: 1)

O X Statistics are created for all transparent tables that have no statistics. (Gewichtung: 1)

O X Table DBSTATC contains all statistics and therefore only this table is updated. (Gewichtung: 1)

O X The update for table statistics refreshes all transparent tables. (Gewichtung: 1)

O X The table DBSTATC is used to detect which table statistics need to be refreshed. (Gewichtung: 1)
What happens during the startup of an Oracle database?

More than one answer is correct. Decide whether each answer is true or false.

True
False
X O The SGA is created in shared memory according to the settings in spfile <DBSID>.ora or
init<DBSID>.ora (Gewichtung: 1)

O X The Oracle shadow processes are created. (Gewichtung: 1)

X O In the mount phase, the database control files are evaluated. (Gewichtung: 1)

O X At every startup, Oracle automatically performs a media recovery. (Gewichtung: 1)

O X As the last step, the online redo log files are cleared and the data files are opened. (Gewichtung:
1)
Which of the following statements is correct in regard to OPS$connect?

Please choose the correct answer.

X OPS$connect authorization allows an operating system user to connect to the database without being
prompted for a password.

O OPS$connect is an Oracle command enabling whoever executes it to administer the database without using
the oracle tool SQL*Plus. (UNIX:svrmgrl, NT:svrmgr30).

O OPS$connect is used by BR*Tools to startup the database in restricted mode.

O OPS$connect authorization is required for all users connecting to the Oracle database.

O OPS$connect enables the R/3 saposcol process to communicate and exchange data with the Oracle
database.
Which Oracle component dynamically maintains information about the status of the database
redo logs, the database mode, the names and paths of database files, and is essential during a
database recovery?

Please choose the correct answer.

O The Oracle parameter file, init<DBSID>.ora.

O Each tablespace data file contains this data for the whole database.

O The SGA definition file, sgadef<DBSID>.def.

X The Oracle control file, cntrl<DBSID>.dbf.

O The sapdba parameter file, init<DBSID>.dba.


When the R/3 update task aborts with an Oracle error ORA1653 – failure to allocate an extent
for a table in a specific tablespace – what action needs to be taken?

Please choose the correct answer.

O The tablespace should be reorganized.

X The tablespace should be increased (add new data file or resize existing data file)

O The table should be reorganized.

O The storage parameter MAXEXTENTS must be increased.

O The table should be moved to another tablespace.


Which of the following checks are useful for database performance monitoring?

More than one answer is correct. Decide whether each answer is true or false.

True
False
X O Checking that the cost based optimizer (CBO) statistics are refreshed once a week according to the
strategy recommended by SAP. (Gewichtung: 1)

O X Checking that the archive directory contains enough free space. (Gewichtung: 1)

X O Checking the data buffer quality. (Gewichtung: 1)

X O Checking the shared cursor cache for expensive SQL statements. (Gewichtung: 1)

O X Checking for tables with more than 100 extents. (Gewichtung: 1)


What information can be found in the Oracle alert log file?

More than one answer is correct. Decide whether each answer is true or false.

True
False
X O DB error messages caused by an archiver stuck. (Gewichtung: 1)

O X R/3 instance startup and shutdown messages. (Gewichtung: 1)

X O Information about redo log switches. (Gewichtung: 1)

O X Information about aborted ABAP programs. (Gewichtung: 1)

O X Information about backups with brbackup. (Gewichtung: 1)


Performance Optimization

Which of the following is true for the SQL statement highlighted on the "Shared SQL" screen?

Please choose the correct answer.

O The statement is an expensive statement, because it is on top of the list.

O The statement is an expensive statement, because it shows more than one million buffer gets.

X The statement is an expensive statement, because the buffer gets in this statement exceed 5% of the total
buffer gets (reads) in this system.

O The statement is an expensive statement, because the buffer gets in this statement exceed 5% of the
physical reads (disk reads) in this system.

O The statement is not an expensive statement.

3op100 Screenshot

They brought the same picture and the same numbers !


During a workload analysis session, an expensive SQL statement on table ZLARGE was
identified in report ZZSLOW. Which of the following statements is a correct option to solve
the problem?

More than one answer is correct. Decide whether each answer is true or false.

True
False
O X Creating a new secondary index on ZLARGE always solves the problem without
any impact to the rest of the R/3 system. (Gewichtung: 1)

X O Creating a new secondary index on ZLARGE has an impact on the cost based
optimizer which can lead to bad optimizer decisions. (Gewichtung: 1)

O X Dropping and recreating all indexes of ZLARGE solves the problem. (Gewichtung:
1)

O X By SAP recommendation, creating an index on table ZLARGE is preferable to (has


priority over) changing the expensive statement in the code of ZZSLOW . (Gewichtung: 1)

X O By SAP recommendation, changing the expensive statement in the code of


ZZSLOW is preferable to (has priority over) creating an index on table ZLARGE.
(Gewichtung: 1)
Restore and Recovery

The R/3 System Oracle database has four online redo logs, also known as database transaction
logs. Each online redo log has a mirrored copy. What is the effect of a log file switch?

Please choose the correct answer.

O The current online redo log is copied to its mirrored copy, then the next online redo log
becomes open for writing.

O The database alternates between writing to the online and offline redo log files.

O The database switches between writing to the original redo log files and the mirrored redo
log files.

X The current online redo log is closed and the next online redo log becomes open for
writing. The ARCH process is triggered to begin backing up the recently closed redo log.

O The current R/3 SYSLOG file is copied to the SAPARCH directory and a new SYSLOG
file is created.
Which of the following statements is correct regarding online Oracle database backups?

Please choose the correct answer.

O Users may only read data and may not enter data until after the backup is done.

X The database must be running in archivelog mode.

O A complete online backup consists of tablespace data files and the control file, all that are
necessary for restoring the database to a consistent status.

O The database does not write to transaction logs (online redo logs) during online backups.

O Online database backups are not supported by Oracle.


Which of the following statements are correct in regard to the restore and recovery option
"Complete database recovery”?

More than one answer is correct. Decide whether each answer is true or false.

True
False
X O To use this option, at least one member of each redo log group must be intact.
(Gewichtung: 1)

O X You can also use this option for incomplete recoveries to an earlier point in time.
(Gewichtung: 1)

X O To use this option, all of the control file copies defined in the configuration file
init<SID>.ora must be available. (Gewichtung: 1)

X O To use this option, the complete, undamaged BRBACKUP and BRARCHIVE logs
must be available. (Gewichtung: 1)

O X To use this option, the SYSTEM tablespace must be intact. (Gewichtung: 1)


What is the primary purpose of the "sapreorg" directory?

Please choose the correct answer.

O Storing the offline redo log files.

O Providing a work area for R/3 dialog instance tasks.

O Storing online database backups instead of writing them to tape.

O Storing transaction log files.

X Providing a work area for BR*Tools.


For optimal monitoring of the Oracle database within the CCMS alert
monitor, you must:
Choose the correct answer(s).

a) Maintain check conditions in table DBCHECKORA using


transaction DB17.

b) Schedule the database system check to run daily.

c) Maintain thresholds in the CCMS alert monitor itself.

d) Schedule report RSDBMON0 to run daily.

As I remember, the statement (d) was replaced by:

- The check conditions are hardcoded in BRCONNECT and cannot be changed.


25 - Which of the following oracle parameters should never be modified in the init<SID>.ora file?
Note: There is more than one right answer! Click on the buttons next to the right answers.

A. db_block_buffers

B. db_block_size

C. db_name

D. controlfiles

E. shared_pool_size
29. brbackup tool can create a database backup when the database is up and running or when it has been
shutdown. During an online database backup which of the following is TRUE? Click on the button next to the
right answer.

A. Users must stop entering data but may continue working using read-only transactions.

B. Users must stop working because their work would be unrecoverable in case of problems with the backup.

C.Users may continue working without interruption.

D.Power-users may continue working but data-entry users must log off.

E.Users must log off until the online backup is started but then may continue working
During the upgrade you encounter a serious problem and decide to restore and recover the
database until the time when you started the upgrade which was Friday, 3:00 pm. The Last
backup taken was an offline backup taken on Thursday 8pm. Which is the correct recovery
scenario from BRRECOVER in this case (Please choose the correct answer)

a) Perform a restore and recovery using the complete database recovery scenario of
BRRECOVER to recover the database until Friday 3pm

b) Perform a whole database reset using the offline backup taken on Thruday 8PM
then perform a manual recovery until Firday 3 pm

c) Perform a whole database reset using the offline backup taken on Thursday 8 pm

d) Perform a restore and recovery using the point in time recovery scenario of
VRRECOVER to recover the database until Friday 3pm

You might also like