SlideShare une entreprise Scribd logo
1  sur  6
Télécharger pour lire hors ligne
1 ថនសារិ
Student Name :
I. Multiple Choice Question ( Please choose the correct answers. Ex: 1 a,...) (20pt)
1. Two structures make up an Oracle server: an instance and a database. Which of the following best
describes the difference between an Oracle instance and a database?
a. An instance consists of memory structures and processes, whereas a database is composed of
physical files.
b. An instance is used only during database creation; after that, the database is all that is needed.
c. An instance is started whenever the demands on the database are high, but the database is
used all the time.
d. An instance is configured using a pfile, whereas a database is configured using an spfile.
2. Which data dictionary view is used to view the current values of parameters?
a. V$DATABASE
b. V$SPPARAMETER
c. V$PARAMETER
d. V$SYSPARAMETER
3. Your database is not responding and is in a hung state. You want to shut down and start the
database to release all resources. Which statements would you use?
a. STARTUP AFTER SHUTDOWN
b. STARTUP FORCE
c. SHUTDOWN FORCE
d. SHUTDOWN ABORT and STARTUP
4. Which parameter is used to enable Automatic Memory Management?
a. AMM_TARGET
b. MEMORY_TARGET
c. SGA_TARGET
d. All of the above
5. Which statement about an index with the status UNUSABLE in DBA_INDEXES is true?
a. The index will be automatically fixed the next time it is used.
b. The Oracle optimizer throws an error when it tries to use the index.
c. The index must be recompiled using the ALTER INDEX…RECOMPILE statement.
d. The index must be reorganized using the ALTER INDEX…REBUILD statement before it can
be used again.
6. Suppose you have used EM Database Control to drill down into ADDM findings and have found
that a single SQL statement is causing the majority of I/O on your system. Which of the following
advisors is best suited to troubleshoot this SQL statement?
a. SQL Tuning Advisor
b. SQL Access Advisor
c. Both A and B
d. Neither A nor B
7. To enable the flashback database option, the database must be in which of the following modes?
a. NOARCHIVELOG mode
b. ARCHIVELOG mode
c. FLASHBACK LOG mode
d. BEGIN BACKUP mode
2 ថនសារិ
8. When the database is in ARCHIVELOG mode, database recovery is possible up to which event or
time?
a. The last redo log file switch
b. The last checkpoint position
c. The last commit
d. The last incremental backup using RMAN
9. When should the DBA make a trace copy of the control file using ALTER DATABASE
BACKUP
CONTROLFILE TO TRACE?
a. After every backup
b. After multiplexing the control files
c. Whenever restarting the instance
d. Whenever the physical structure of the database changes
10. Which of the following statements enables the role user_admin in the current session?
a. alter session enable role user_admin;
b. alter session set role user_admin;
c. alter role user_admin enable;
d. set role user_admin;
11. Initialization parameter in an ASM instance specifies the disk groups to be automatically mounted
at instance startup
a. ASM_DISKMOUNT c. ASM_DISKSTRING
b. ASM_DISKGROUP d. ASM_MOUNTGROUP
12. Which background process coordinates the rebalance activity for disk groups?
a. ORBn c. RBAL
b. OSMB d. ASMn
13. Which type of database file is spread across all disks in a disk group?
a. All types of files are spread across all disks in the disk group.
b. Datafiles
c. Redo log files
d. Archived redo log files
e. Control files
14. You want to put a specific tablespace called MY_DATA in hot backup mode so you can back it
up. What command would you use?
a. alter tablespace MY_DATA begin backup;
b. alter tablespace MY_DATA start backup;
c. alter tablespace MY_DATA backup begin;
d. alter MY_DATA begin backup;
e. You cannot back up individual tablespaces.
15. What is the proper procedure to recover a lost tempfile?
a. Restore the backup copy of the tempfile from the backup media.
b. Re-create the tempfile with the create tempfile command.
c. Copy an existing tempfile from another database.
d. Re-create the tempfile with the create tablespace command.
e. Re-create the tempfile with the alter tablespace command.
16. Which is the correct command to back up the database, back up the archived redo logs, and then
remove the backed-up archived redo logs?
a. backup database
b. backup database and archivelogs
3 ថនសារិ
c. backup database plus archivelogs
d. backup database plus archivelog delete input
e. backup database and archivelog delete input
17. Which type of backup backs up only data blocks modified since the most recent backup at the
same level or lower?
a. Differential incremental backup
b. Different incremental backup
c. Cumulative backup
d. Cumulative incremental backup
18. Which of the following Oracle features utilize the undo tablespace? (Choose all that apply)
a. Flashback Query d. Flashback Database
b. Flashback Drop e. Transaction Processing
c. Flashback Table f. Recycle Bin
19. Given the following steps, which would be the correct order to create a backup of an Oracle
database in ARCHIVELOG mode with control-file autobackups enabled?
a. backup archivelog all;
b. backup database all;
c. backup controlfile;
d. backup archivelog, database, controlfile delete input;
e. backup database plus archivelog delete input
20. Which command is used to configure RMAN to perform a compressed backup for every backup
executed.
a. Backup as compressed backupset database
b. Backup as compressed copy of database
c. Configure device type disk backup type to compressed backupset
d. Configure device type disk backup type compress
e. Backup database compress
II. Fill in the Gap (Please fill in the blank box with correct word. Ex: 1 IP address,..) (20pt)
1. Fill in the following SQL statements results in a disconnection after a session is idle for 45
minutes for profile name DBA_profile?
SQL > ALTER PROFIL DBA_Profile LIMIT idle_Reuse_Time 45;
2. Fill in the following SQL statements to multiplex control files using an spfile?
SQL > ALTER SYSTEM set CONTROL_FILES = ‘/u01/oradata/PRD/cntrl01.ctl’,
‘/u01/oradata/PRD/cntrl02.ctl’ scope=spfile;
3. Fill in following SQL statements limits attempts to guess passwords by locking an account after 5
failed logon attempts?
SQL> ALTER PROFILE DEFAULT LIMIT IDLE_TIME 5;
4. Fill in following SQL statement to increase undo_retention to 1 Day (24hour)
SQL > ALTER SYSTEM set undo_retention =1440;
5. Fill in following SQL statement to change the read/write tablespace INVENTORY to read only.
SQL > ALTER TABLESPACE Flights Read ONLY;
6. Configure RMAN to automatic backup controlfile.
RMAN> Configure controlfile AUTOBACKUP ON;
7. Using SQL*Plus to create PFILE parameter from SPFILE parameter.
SQL> Create pfile from spfile;
8. Using SQL*Plus to switch Redo Log (The current Redo log sequence number will be archived)
4 ថនសារិ
SQL> Alter system SWITCH LOGFILE;
9. Using RMAN command to backup a database, archive log and still keep all the archivelog.
RMAN> Backup database PLUS ARCHIVELOG;
10. Using RMAN command to perform a level-1 incremental backup (include archivelog)
RMAN> Backup INCREMENTAL LEVEL 1 database plus archivelog delete input;
III. Problem Solving (30pt)
1. Your production database has some memory insufficent assigment to SGA portion and your
manager instruct you to dynamic memory allocation between SGA and PGA size. What database
parameter you should check and consider to make it change and which SQL statment you will
execute for the change request?
A. check SGA_Target and PGA_Aggreation parameter and combine together then compare with
its memory max size.
Ex:Memory max size is 6GB and SGA+PGA is 5GB then set memory target to 6GB=memory max
size
SQL>alter system set memory target=6GB scope=both;
2. Your database is up and running and then one of control files is accidentally deleted? What should
you do to bring up the database with both control files in ASM Diskgroups (+DATA & +FRA)
environment?
A. If control file are auto red in ASM disk groups, recovery options are as:
-Perform guided recovery using Enterprise Manager
-Put database in NOMOUNT mod and use an RMAN command to restore control file from
existing control file.
Ex:
3. If a data file is lost or corrupted, and if that file belongs to the SYSTEM or UNDO tablespace,
what activity need to perform to bring up the database?
A. The activity need to perform to bring up the database are:
-Mount the database
SQL>startup mount;
-Restore and recovery the missing data file
RMAN>restore database 1;
RMAN>recovery datafile 1;
-Open the database
RMAN>alter database open;
4. Please describe the procedure of instance recovery phase.
A. -Startup instance
-Roll forward(redo)
-Committed and uncommitted data in files
-Database opend
-Roll back(Undo)
-committed data in files
A. Oracle performs instance recovery when the database is restarted due to instance failure or shutdown
the database with ABORT option(shutdown abort) or startup the database with FORCE option(startup
force). Instance recovery is taken care by SMON oracle background process automatically. Instance
recovery consists of two steps. One is Roll forward, next is Roll backward.
Roll forward: Changes being made to the database are recorded in the database buffer cache and buffer
cache will be written into data files. At the same time, the changes are recorded in redo log buffer and
redo log buffer will be written to redo log file. Oracle writes the data from database buffer cache to data
5 ថនសារិ
file only when there is enough data in data buffer cache. It is not necessary that, every commit, oracle
writes the data buffer cache into data file. When instance fails before committed data are written into
data files, Oracle uses the data recorded in the online redo log files to recover the lost data when the
associated database is re-started. This process is called Roll forward or cache recovery.
Roll backward: When we make any changes in the database, the old image will be written into undo
segment. Later undo segment will be used to roll back the data when we rollback the transaction. DBWR
writes the buffer cache content into data file under different circumstances. It might be possible to write
the uncommitted data from database buffer cache into data file. When instance fails and associated
database is restarted, it rollback the uncommitted transaction in data file by using undo segment to
maintain the read consistency. This is called Roll backward or transaction recovery.
5. Please Explain Undo Data Versus Redo Data?
Answer:
Undo Redo
Record of How to undo a change How to reproduce a change
Used for Rollback, Read-Consistency Rolling forward DB Changes
Stored in Undo segments Redo log files
Protects against Inconsistent reads in
multiuser systems
Data loss
IV.Answer the Question (30pt)
1. You have just been informed of suspicious activities in the HR.JOBS table in your production
database. The highest salaries seem to fluctuate in a strange way. You decide to enable standard
database auditing and monitor data manipulation language (DML) activities in this table and store
the audit_trail log in XML format.
What SQL statement you need to enable for database auditing (audit_trail) to XML log?
A. AUDIT_TRAIL = XML
What SQL statement you need to enable audit on table HR.JOBS for DML activities (delete, insert
& update)
2. Online backups known as inconsistent backups or hot backup and which database mode can the
online backup performs database backup?
A. NOARCHIVELOG mode
6 ថនសារិ
3. What does Instance Failure referring to? Please explain in detail of instance failure means as soon
as it fails. If manual intervention is required then there may be a more serious problem that
prevents the instance from restarting, such as a memory CPU failure.
A. Instance Failure referring to error with your SQL Server. occurring when the instance shuts
down without synchronizing all the database files to the same system change number
(SCN),requiring a recovery operation the next time the instance is started. Many of the reasons
for an instance failure are out of your direct control, in these situation you can minimize the
impact of these failures by tuning instance recovery.
4. Your production database has crashed due to data file #1 belonging to the SYSTEM Tablespace is
media failure or data file #1 not found and your job as DBA is to restore back from last good
backup. What command (SQL and RMAN) need to be execute to bring up the database in open
mode?
A. command
 SQL
SQL> STARTUP
 RMAN
STARTUP FORCE MOUNT DBA PFILE=/tmp/initTRGT.ora;
5. What RMAN command use to backup database online with database archivelog file?
A. RMAN> BACKUP AS BACKUPSET DATABASE PLUS ARCHIVELOG;

Contenu connexe

Tendances

Dba 3+ exp qus
Dba 3+ exp qusDba 3+ exp qus
Dba 3+ exp quskrreddy21
 
1z0 034 exam-upgrade oracle9i10g oca to oracle database 11g ocp
1z0 034 exam-upgrade oracle9i10g oca to oracle database 11g ocp1z0 034 exam-upgrade oracle9i10g oca to oracle database 11g ocp
1z0 034 exam-upgrade oracle9i10g oca to oracle database 11g ocpIsabella789
 
Oracle dba interview question
Oracle dba interview questionOracle dba interview question
Oracle dba interview questionAmarendra Sharma
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradationinfluxbob
 
香港六合彩
香港六合彩香港六合彩
香港六合彩iewsxc
 
576 oracle-dba-interview-questions
576 oracle-dba-interview-questions576 oracle-dba-interview-questions
576 oracle-dba-interview-questionsNaveen P
 
0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorialKlausePaulino
 
SCWCD : Servlet web applications : CHAP : 3
SCWCD : Servlet web applications : CHAP : 3SCWCD : Servlet web applications : CHAP : 3
SCWCD : Servlet web applications : CHAP : 3Ben Abdallah Helmi
 
R12 d49656 gc10-apps dba 27
R12 d49656 gc10-apps dba 27R12 d49656 gc10-apps dba 27
R12 d49656 gc10-apps dba 27zeesniper
 
R12 d49656 gc10-apps dba 10
R12 d49656 gc10-apps dba 10R12 d49656 gc10-apps dba 10
R12 d49656 gc10-apps dba 10zeesniper
 
Server control utility reference
Server control utility referenceServer control utility reference
Server control utility referenceFemi Adeyemi
 
Oracle Database Backup
Oracle Database BackupOracle Database Backup
Oracle Database BackupHandy_Backup
 
Spring Hibernate with Ehcache
Spring Hibernate with EhcacheSpring Hibernate with Ehcache
Spring Hibernate with EhcacheInnovationM
 
Exam 1z0 062 Oracle Database 12c: Installation and Administration
Exam 1z0 062 Oracle Database 12c: Installation and AdministrationExam 1z0 062 Oracle Database 12c: Installation and Administration
Exam 1z0 062 Oracle Database 12c: Installation and AdministrationKylieJonathan
 

Tendances (20)

Dba 3+ exp qus
Dba 3+ exp qusDba 3+ exp qus
Dba 3+ exp qus
 
1z0 034 exam-upgrade oracle9i10g oca to oracle database 11g ocp
1z0 034 exam-upgrade oracle9i10g oca to oracle database 11g ocp1z0 034 exam-upgrade oracle9i10g oca to oracle database 11g ocp
1z0 034 exam-upgrade oracle9i10g oca to oracle database 11g ocp
 
Oracle dba interview question
Oracle dba interview questionOracle dba interview question
Oracle dba interview question
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
 
香港六合彩
香港六合彩香港六合彩
香港六合彩
 
576 oracle-dba-interview-questions
576 oracle-dba-interview-questions576 oracle-dba-interview-questions
576 oracle-dba-interview-questions
 
Less11 Security
Less11 SecurityLess11 Security
Less11 Security
 
Less17 Util
Less17  UtilLess17  Util
Less17 Util
 
0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial
 
SCWCD : Servlet web applications : CHAP : 3
SCWCD : Servlet web applications : CHAP : 3SCWCD : Servlet web applications : CHAP : 3
SCWCD : Servlet web applications : CHAP : 3
 
R12 d49656 gc10-apps dba 27
R12 d49656 gc10-apps dba 27R12 d49656 gc10-apps dba 27
R12 d49656 gc10-apps dba 27
 
R12 d49656 gc10-apps dba 10
R12 d49656 gc10-apps dba 10R12 d49656 gc10-apps dba 10
R12 d49656 gc10-apps dba 10
 
Server control utility reference
Server control utility referenceServer control utility reference
Server control utility reference
 
21 Rac
21 Rac21 Rac
21 Rac
 
Formats
FormatsFormats
Formats
 
Oracle Database Backup
Oracle Database BackupOracle Database Backup
Oracle Database Backup
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
 
Spring Hibernate with Ehcache
Spring Hibernate with EhcacheSpring Hibernate with Ehcache
Spring Hibernate with Ehcache
 
261 Pdfsam
261 Pdfsam261 Pdfsam
261 Pdfsam
 
Exam 1z0 062 Oracle Database 12c: Installation and Administration
Exam 1z0 062 Oracle Database 12c: Installation and AdministrationExam 1z0 062 Oracle Database 12c: Installation and Administration
Exam 1z0 062 Oracle Database 12c: Installation and Administration
 

Similaire à Mid term & final- preparation- student-review(Oracle)

Oracle database hot backup and recovery
Oracle database hot backup and recoveryOracle database hot backup and recovery
Oracle database hot backup and recoveryArun Sharma
 
2020 New Updated 1Z0-060 Questions and Answers
2020 New Updated 1Z0-060 Questions and Answers2020 New Updated 1Z0-060 Questions and Answers
2020 New Updated 1Z0-060 Questions and Answersdouglascarnicelli
 
Les 06 Perform Rec
Les 06 Perform RecLes 06 Perform Rec
Les 06 Perform Recvivaankumar
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklistpraveen_01236
 
[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery[Altibase] 13 backup and recovery
[Altibase] 13 backup and recoveryaltistory
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recoveryYogiji Creations
 
Less14 Br Concepts
Less14 Br ConceptsLess14 Br Concepts
Less14 Br Conceptsvivaankumar
 
Les 02 Config Rec
Les 02 Config RecLes 02 Config Rec
Les 02 Config Recvivaankumar
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklistمسلم islam
 
Creating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsCreating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsRoo Wall
 
iLAB OVERVIEWScenario and SummarySuccessful database recovery re.docx
iLAB OVERVIEWScenario and SummarySuccessful database recovery re.docxiLAB OVERVIEWScenario and SummarySuccessful database recovery re.docx
iLAB OVERVIEWScenario and SummarySuccessful database recovery re.docxrochellscroop
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.subhani shaik
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.subhani shaik
 
You Oracle Technical Interview
You Oracle Technical InterviewYou Oracle Technical Interview
You Oracle Technical InterviewHossam El-Faxe
 

Similaire à Mid term & final- preparation- student-review(Oracle) (20)

Oracle database hot backup and recovery
Oracle database hot backup and recoveryOracle database hot backup and recovery
Oracle database hot backup and recovery
 
2020 New Updated 1Z0-060 Questions and Answers
2020 New Updated 1Z0-060 Questions and Answers2020 New Updated 1Z0-060 Questions and Answers
2020 New Updated 1Z0-060 Questions and Answers
 
Xpp c user_rec
Xpp c user_recXpp c user_rec
Xpp c user_rec
 
Les 06 Perform Rec
Les 06 Perform RecLes 06 Perform Rec
Les 06 Perform Rec
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklist
 
[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
 
1 z0 052
1 z0 0521 z0 052
1 z0 052
 
Less14 Br Concepts
Less14 Br ConceptsLess14 Br Concepts
Less14 Br Concepts
 
Les 02 Config Rec
Les 02 Config RecLes 02 Config Rec
Les 02 Config Rec
 
Les 07 rman_rec
Les 07 rman_recLes 07 rman_rec
Les 07 rman_rec
 
Les 08 Dupe Db
Les 08 Dupe DbLes 08 Dupe Db
Les 08 Dupe Db
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklist
 
Creating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsCreating a physical standby database 11g on windows
Creating a physical standby database 11g on windows
 
iLAB OVERVIEWScenario and SummarySuccessful database recovery re.docx
iLAB OVERVIEWScenario and SummarySuccessful database recovery re.docxiLAB OVERVIEWScenario and SummarySuccessful database recovery re.docx
iLAB OVERVIEWScenario and SummarySuccessful database recovery re.docx
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
 
Les 07 Rman Rec
Les 07 Rman RecLes 07 Rman Rec
Les 07 Rman Rec
 
You Oracle Technical Interview
You Oracle Technical InterviewYou Oracle Technical Interview
You Oracle Technical Interview
 
Les 02 config
Les 02 configLes 02 config
Les 02 config
 

Plus de than sare

Project Management_Review_2018
Project Management_Review_2018Project Management_Review_2018
Project Management_Review_2018than sare
 
Android review_for final Semester II of Year4
Android review_for final Semester II of Year4Android review_for final Semester II of Year4
Android review_for final Semester II of Year4than sare
 
Importain questions e_commerce_preview questions
Importain questions e_commerce_preview questionsImportain questions e_commerce_preview questions
Importain questions e_commerce_preview questionsthan sare
 
E commerce preview questions23 jul-2018
E commerce preview questions23 jul-2018E commerce preview questions23 jul-2018
E commerce preview questions23 jul-2018than sare
 
Physic grade-12
Physic grade-12Physic grade-12
Physic grade-12than sare
 
Business plan
Business planBusiness plan
Business planthan sare
 
Share point answer the question
Share point answer the questionShare point answer the question
Share point answer the questionthan sare
 
Judging rubric
Judging rubricJudging rubric
Judging rubricthan sare
 
Smartphone v ideo editing manual-ios(Tech By Ms.THAN Sare)
Smartphone v ideo  editing manual-ios(Tech By Ms.THAN Sare)Smartphone v ideo  editing manual-ios(Tech By Ms.THAN Sare)
Smartphone v ideo editing manual-ios(Tech By Ms.THAN Sare)than sare
 
Database(db sql) review
Database(db sql) reviewDatabase(db sql) review
Database(db sql) reviewthan sare
 
Answer ado.net pre-exam2018
Answer ado.net pre-exam2018Answer ado.net pre-exam2018
Answer ado.net pre-exam2018than sare
 
Review oop and ood
Review oop and oodReview oop and ood
Review oop and oodthan sare
 
Technovation week6 planning_yourcode
Technovation week6 planning_yourcodeTechnovation week6 planning_yourcode
Technovation week6 planning_yourcodethan sare
 
Sen sors(technovation) week6_thansare
Sen sors(technovation) week6_thansareSen sors(technovation) week6_thansare
Sen sors(technovation) week6_thansarethan sare
 
Week5(technovation)-Teach by Mr.than Sare
Week5(technovation)-Teach by Mr.than SareWeek5(technovation)-Teach by Mr.than Sare
Week5(technovation)-Teach by Mr.than Sarethan sare
 
App inventor week4(technovation)
App inventor week4(technovation)App inventor week4(technovation)
App inventor week4(technovation)than sare
 
Algorithm week2(technovation)
Algorithm week2(technovation)Algorithm week2(technovation)
Algorithm week2(technovation)than sare
 
Html training part1
Html training part1Html training part1
Html training part1than sare
 

Plus de than sare (20)

Project Management_Review_2018
Project Management_Review_2018Project Management_Review_2018
Project Management_Review_2018
 
Android review_for final Semester II of Year4
Android review_for final Semester II of Year4Android review_for final Semester II of Year4
Android review_for final Semester II of Year4
 
Importain questions e_commerce_preview questions
Importain questions e_commerce_preview questionsImportain questions e_commerce_preview questions
Importain questions e_commerce_preview questions
 
E commerce preview questions23 jul-2018
E commerce preview questions23 jul-2018E commerce preview questions23 jul-2018
E commerce preview questions23 jul-2018
 
Physic 12-2
Physic 12-2Physic 12-2
Physic 12-2
 
Physic grade-12
Physic grade-12Physic grade-12
Physic grade-12
 
Business plan
Business planBusiness plan
Business plan
 
Share point answer the question
Share point answer the questionShare point answer the question
Share point answer the question
 
Judging rubric
Judging rubricJudging rubric
Judging rubric
 
Smartphone v ideo editing manual-ios(Tech By Ms.THAN Sare)
Smartphone v ideo  editing manual-ios(Tech By Ms.THAN Sare)Smartphone v ideo  editing manual-ios(Tech By Ms.THAN Sare)
Smartphone v ideo editing manual-ios(Tech By Ms.THAN Sare)
 
Database(db sql) review
Database(db sql) reviewDatabase(db sql) review
Database(db sql) review
 
Answer ado.net pre-exam2018
Answer ado.net pre-exam2018Answer ado.net pre-exam2018
Answer ado.net pre-exam2018
 
Review oop and ood
Review oop and oodReview oop and ood
Review oop and ood
 
Technovation week6 planning_yourcode
Technovation week6 planning_yourcodeTechnovation week6 planning_yourcode
Technovation week6 planning_yourcode
 
Sen sors(technovation) week6_thansare
Sen sors(technovation) week6_thansareSen sors(technovation) week6_thansare
Sen sors(technovation) week6_thansare
 
Week5(technovation)-Teach by Mr.than Sare
Week5(technovation)-Teach by Mr.than SareWeek5(technovation)-Teach by Mr.than Sare
Week5(technovation)-Teach by Mr.than Sare
 
App inventor week4(technovation)
App inventor week4(technovation)App inventor week4(technovation)
App inventor week4(technovation)
 
Algorithm week2(technovation)
Algorithm week2(technovation)Algorithm week2(technovation)
Algorithm week2(technovation)
 
Sharepoint
SharepointSharepoint
Sharepoint
 
Html training part1
Html training part1Html training part1
Html training part1
 

Dernier

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Dernier (20)

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

Mid term & final- preparation- student-review(Oracle)

  • 1. 1 ថនសារិ Student Name : I. Multiple Choice Question ( Please choose the correct answers. Ex: 1 a,...) (20pt) 1. Two structures make up an Oracle server: an instance and a database. Which of the following best describes the difference between an Oracle instance and a database? a. An instance consists of memory structures and processes, whereas a database is composed of physical files. b. An instance is used only during database creation; after that, the database is all that is needed. c. An instance is started whenever the demands on the database are high, but the database is used all the time. d. An instance is configured using a pfile, whereas a database is configured using an spfile. 2. Which data dictionary view is used to view the current values of parameters? a. V$DATABASE b. V$SPPARAMETER c. V$PARAMETER d. V$SYSPARAMETER 3. Your database is not responding and is in a hung state. You want to shut down and start the database to release all resources. Which statements would you use? a. STARTUP AFTER SHUTDOWN b. STARTUP FORCE c. SHUTDOWN FORCE d. SHUTDOWN ABORT and STARTUP 4. Which parameter is used to enable Automatic Memory Management? a. AMM_TARGET b. MEMORY_TARGET c. SGA_TARGET d. All of the above 5. Which statement about an index with the status UNUSABLE in DBA_INDEXES is true? a. The index will be automatically fixed the next time it is used. b. The Oracle optimizer throws an error when it tries to use the index. c. The index must be recompiled using the ALTER INDEX…RECOMPILE statement. d. The index must be reorganized using the ALTER INDEX…REBUILD statement before it can be used again. 6. Suppose you have used EM Database Control to drill down into ADDM findings and have found that a single SQL statement is causing the majority of I/O on your system. Which of the following advisors is best suited to troubleshoot this SQL statement? a. SQL Tuning Advisor b. SQL Access Advisor c. Both A and B d. Neither A nor B 7. To enable the flashback database option, the database must be in which of the following modes? a. NOARCHIVELOG mode b. ARCHIVELOG mode c. FLASHBACK LOG mode d. BEGIN BACKUP mode
  • 2. 2 ថនសារិ 8. When the database is in ARCHIVELOG mode, database recovery is possible up to which event or time? a. The last redo log file switch b. The last checkpoint position c. The last commit d. The last incremental backup using RMAN 9. When should the DBA make a trace copy of the control file using ALTER DATABASE BACKUP CONTROLFILE TO TRACE? a. After every backup b. After multiplexing the control files c. Whenever restarting the instance d. Whenever the physical structure of the database changes 10. Which of the following statements enables the role user_admin in the current session? a. alter session enable role user_admin; b. alter session set role user_admin; c. alter role user_admin enable; d. set role user_admin; 11. Initialization parameter in an ASM instance specifies the disk groups to be automatically mounted at instance startup a. ASM_DISKMOUNT c. ASM_DISKSTRING b. ASM_DISKGROUP d. ASM_MOUNTGROUP 12. Which background process coordinates the rebalance activity for disk groups? a. ORBn c. RBAL b. OSMB d. ASMn 13. Which type of database file is spread across all disks in a disk group? a. All types of files are spread across all disks in the disk group. b. Datafiles c. Redo log files d. Archived redo log files e. Control files 14. You want to put a specific tablespace called MY_DATA in hot backup mode so you can back it up. What command would you use? a. alter tablespace MY_DATA begin backup; b. alter tablespace MY_DATA start backup; c. alter tablespace MY_DATA backup begin; d. alter MY_DATA begin backup; e. You cannot back up individual tablespaces. 15. What is the proper procedure to recover a lost tempfile? a. Restore the backup copy of the tempfile from the backup media. b. Re-create the tempfile with the create tempfile command. c. Copy an existing tempfile from another database. d. Re-create the tempfile with the create tablespace command. e. Re-create the tempfile with the alter tablespace command. 16. Which is the correct command to back up the database, back up the archived redo logs, and then remove the backed-up archived redo logs? a. backup database b. backup database and archivelogs
  • 3. 3 ថនសារិ c. backup database plus archivelogs d. backup database plus archivelog delete input e. backup database and archivelog delete input 17. Which type of backup backs up only data blocks modified since the most recent backup at the same level or lower? a. Differential incremental backup b. Different incremental backup c. Cumulative backup d. Cumulative incremental backup 18. Which of the following Oracle features utilize the undo tablespace? (Choose all that apply) a. Flashback Query d. Flashback Database b. Flashback Drop e. Transaction Processing c. Flashback Table f. Recycle Bin 19. Given the following steps, which would be the correct order to create a backup of an Oracle database in ARCHIVELOG mode with control-file autobackups enabled? a. backup archivelog all; b. backup database all; c. backup controlfile; d. backup archivelog, database, controlfile delete input; e. backup database plus archivelog delete input 20. Which command is used to configure RMAN to perform a compressed backup for every backup executed. a. Backup as compressed backupset database b. Backup as compressed copy of database c. Configure device type disk backup type to compressed backupset d. Configure device type disk backup type compress e. Backup database compress II. Fill in the Gap (Please fill in the blank box with correct word. Ex: 1 IP address,..) (20pt) 1. Fill in the following SQL statements results in a disconnection after a session is idle for 45 minutes for profile name DBA_profile? SQL > ALTER PROFIL DBA_Profile LIMIT idle_Reuse_Time 45; 2. Fill in the following SQL statements to multiplex control files using an spfile? SQL > ALTER SYSTEM set CONTROL_FILES = ‘/u01/oradata/PRD/cntrl01.ctl’, ‘/u01/oradata/PRD/cntrl02.ctl’ scope=spfile; 3. Fill in following SQL statements limits attempts to guess passwords by locking an account after 5 failed logon attempts? SQL> ALTER PROFILE DEFAULT LIMIT IDLE_TIME 5; 4. Fill in following SQL statement to increase undo_retention to 1 Day (24hour) SQL > ALTER SYSTEM set undo_retention =1440; 5. Fill in following SQL statement to change the read/write tablespace INVENTORY to read only. SQL > ALTER TABLESPACE Flights Read ONLY; 6. Configure RMAN to automatic backup controlfile. RMAN> Configure controlfile AUTOBACKUP ON; 7. Using SQL*Plus to create PFILE parameter from SPFILE parameter. SQL> Create pfile from spfile; 8. Using SQL*Plus to switch Redo Log (The current Redo log sequence number will be archived)
  • 4. 4 ថនសារិ SQL> Alter system SWITCH LOGFILE; 9. Using RMAN command to backup a database, archive log and still keep all the archivelog. RMAN> Backup database PLUS ARCHIVELOG; 10. Using RMAN command to perform a level-1 incremental backup (include archivelog) RMAN> Backup INCREMENTAL LEVEL 1 database plus archivelog delete input; III. Problem Solving (30pt) 1. Your production database has some memory insufficent assigment to SGA portion and your manager instruct you to dynamic memory allocation between SGA and PGA size. What database parameter you should check and consider to make it change and which SQL statment you will execute for the change request? A. check SGA_Target and PGA_Aggreation parameter and combine together then compare with its memory max size. Ex:Memory max size is 6GB and SGA+PGA is 5GB then set memory target to 6GB=memory max size SQL>alter system set memory target=6GB scope=both; 2. Your database is up and running and then one of control files is accidentally deleted? What should you do to bring up the database with both control files in ASM Diskgroups (+DATA & +FRA) environment? A. If control file are auto red in ASM disk groups, recovery options are as: -Perform guided recovery using Enterprise Manager -Put database in NOMOUNT mod and use an RMAN command to restore control file from existing control file. Ex: 3. If a data file is lost or corrupted, and if that file belongs to the SYSTEM or UNDO tablespace, what activity need to perform to bring up the database? A. The activity need to perform to bring up the database are: -Mount the database SQL>startup mount; -Restore and recovery the missing data file RMAN>restore database 1; RMAN>recovery datafile 1; -Open the database RMAN>alter database open; 4. Please describe the procedure of instance recovery phase. A. -Startup instance -Roll forward(redo) -Committed and uncommitted data in files -Database opend -Roll back(Undo) -committed data in files A. Oracle performs instance recovery when the database is restarted due to instance failure or shutdown the database with ABORT option(shutdown abort) or startup the database with FORCE option(startup force). Instance recovery is taken care by SMON oracle background process automatically. Instance recovery consists of two steps. One is Roll forward, next is Roll backward. Roll forward: Changes being made to the database are recorded in the database buffer cache and buffer cache will be written into data files. At the same time, the changes are recorded in redo log buffer and redo log buffer will be written to redo log file. Oracle writes the data from database buffer cache to data
  • 5. 5 ថនសារិ file only when there is enough data in data buffer cache. It is not necessary that, every commit, oracle writes the data buffer cache into data file. When instance fails before committed data are written into data files, Oracle uses the data recorded in the online redo log files to recover the lost data when the associated database is re-started. This process is called Roll forward or cache recovery. Roll backward: When we make any changes in the database, the old image will be written into undo segment. Later undo segment will be used to roll back the data when we rollback the transaction. DBWR writes the buffer cache content into data file under different circumstances. It might be possible to write the uncommitted data from database buffer cache into data file. When instance fails and associated database is restarted, it rollback the uncommitted transaction in data file by using undo segment to maintain the read consistency. This is called Roll backward or transaction recovery. 5. Please Explain Undo Data Versus Redo Data? Answer: Undo Redo Record of How to undo a change How to reproduce a change Used for Rollback, Read-Consistency Rolling forward DB Changes Stored in Undo segments Redo log files Protects against Inconsistent reads in multiuser systems Data loss IV.Answer the Question (30pt) 1. You have just been informed of suspicious activities in the HR.JOBS table in your production database. The highest salaries seem to fluctuate in a strange way. You decide to enable standard database auditing and monitor data manipulation language (DML) activities in this table and store the audit_trail log in XML format. What SQL statement you need to enable for database auditing (audit_trail) to XML log? A. AUDIT_TRAIL = XML What SQL statement you need to enable audit on table HR.JOBS for DML activities (delete, insert & update) 2. Online backups known as inconsistent backups or hot backup and which database mode can the online backup performs database backup? A. NOARCHIVELOG mode
  • 6. 6 ថនសារិ 3. What does Instance Failure referring to? Please explain in detail of instance failure means as soon as it fails. If manual intervention is required then there may be a more serious problem that prevents the instance from restarting, such as a memory CPU failure. A. Instance Failure referring to error with your SQL Server. occurring when the instance shuts down without synchronizing all the database files to the same system change number (SCN),requiring a recovery operation the next time the instance is started. Many of the reasons for an instance failure are out of your direct control, in these situation you can minimize the impact of these failures by tuning instance recovery. 4. Your production database has crashed due to data file #1 belonging to the SYSTEM Tablespace is media failure or data file #1 not found and your job as DBA is to restore back from last good backup. What command (SQL and RMAN) need to be execute to bring up the database in open mode? A. command  SQL SQL> STARTUP  RMAN STARTUP FORCE MOUNT DBA PFILE=/tmp/initTRGT.ora; 5. What RMAN command use to backup database online with database archivelog file? A. RMAN> BACKUP AS BACKUPSET DATABASE PLUS ARCHIVELOG;