EXAMEN PREPARACION OCA 12C

Description

WIP
David Jimenez
Quiz by David Jimenez, updated more than 1 year ago
David Jimenez
Created by David Jimenez over 7 years ago
154
0

Resource summary

Question 1

Question
Choose two SGA structures that are required in every Oracle instance
Answer
  • Large pool
  • Shared pool
  • Buffer cache
  • Java pool

Question 2

Question
Which statement is true?
Answer
  • A database can have only one control file
  • A database must have at least two control files.
  • A database may have zero or more control files.
  • A database must have at least one control file.

Question 3

Question
Which component is configured at database startup and cannot be dynamically managed?
Answer
  • Redo log buffer
  • Streams pool
  • Java pool
  • Shared pool
  • None of the above

Question 4

Question
Which component is not part of an Oracle instance?
Answer
  • System global area
  • Process monitor
  • Control file
  • Shared pool
  • None

Question 5

Question
Which background process guarantees that committed data is saved even when the changes have not been recorded in data files?
Answer
  • DBWn
  • PMON
  • LGWR
  • CKPT
  • ARCn

Question 6

Question
User John has updated several rows in a table and issued a commit. What does the DBWn (database writer) process do at this time in response to the commit event?
Answer
  • Writes the changed blocks to data files
  • Writes the changed blocks to redo log files
  • Triggers checkpoint and thus LGWR writes the changes to redo log files.
  • Does nothing.

Question 7

Question
Which of the following best describes a RAC configuration?
Answer
  • One database, multiple instances
  • One instance, multiple databases
  • Multiple databases plugged in from multiple servers
  • Multiple databases, multiple instances

Question 8

Question
Which component of the SGA contains the parsed SQL code?
Answer
  • Database buffer cache
  • Dictionary cache
  • Library cache
  • Parse cache

Question 9

Question
Which tasks are accomplished by the SMON process? (Choose all that apply.)
Answer
  • Performs recovery at instance startup
  • Performs cleanup after a user session is terminated
  • Starts any server process that stopped running
  • Coalesces contiguous free space in dictionary-managed tablespaces

Question 10

Question
Choose the best statement from the options related to segments.
Answer
  • A contiguous set of blocks constitutes a segment.
  • A nonpartitioned table can have only one segment
  • A segment can belong to more than one tablespace.
  • All of the above are true.

Question 11

Question
From the following list, choose two processes that are optional in an Oracle Database 12c database.
Answer
  • MMON
  • MMNL
  • ARCn
  • MMAN

Question 12

Question
Which SGA component will you increase or configure so that RMAN tape backups do not use memory from the shared pool?
Answer
  • Java pool
  • Streams pool
  • Recovery pool
  • Large pool

Question 13

Question
When a user session is terminated, which processes are responsible for cleaning up and releasing locks? (Choose all that apply.)
Answer
  • DBWn
  • LGWR
  • MMON
  • PMON
  • SMON

Question 14

Question
The LRU algorithm is used to manage what part of the Oracle architecture?
Answer
  • Users who log on to the database infrequently and may be candidates for being dropped
  • The data file that stores the least amount of information and will need the least frequent backup
  • The tables that users rarely access so that they can be moved to a less active tablespace
  • The shared pool and database buffer cache portions of the SGA

Question 15

Question
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?
Answer
  • An instance consists of memory structures and processes, whereas a database is composed of physical files.
  • An instance is used only during database creation; after that, the database is all that is needed.
  • An instance is started whenever the demands on the database are high, but the database is used all the time
  • An instance is configured using a pfile, whereas a database is configured using a spfile.

Question 16

Question
Which of the following is the proper order of Oracle’s storage hierarchy, from smallest to largest?
Answer
  • Operating-system block, database block, segment, extent
  • Operating-system block, database block, extent, segment
  • Segment, extent, database block, operating-system block
  • Segment, database block, extent, operating-system block

Question 17

Question
The DBA unknowingly terminated the process ID belonging to the PMON process of Oracle Database 12c database using the kill -9 command on Unix. Choose the best answer:
Answer
  • Oracle spawns another PMON process automatically.
  • The database hangs, and the DBA must manually start a PMON process.
  • If the database is in ARCHIVELOG mode, Oracle automatically starts another PMON process and recovers from the database hang.
  • The instance crashes and needs to be restarted.

Question 18

Question
When an incremental checkpoint happens in a database, which file(s) are updated with the checkpoint position? Choose all options that are correct.
Answer
  • Data files
  • Control files
  • Initialization Parameter Files
  • Redo log files
  • Archive log files

Question 19

Question
User Isabella updates a table and commits the change after a few seconds. Which of the following actions are happening in the database? Order them in the correct sequence and ignore the actions that are not relevant.
Answer
  • Oracle reads the blocks from data file to buffer cache and updates the blocks.
  • Changed blocks from the buffer cache are written to data files.
  • The user commits the change
  • LGWR writes the changed blocks to the redo log buffer.
  • The server process writes the change vectors to the redo log buffer.
  • LGWR flushes the redo log buffer to redo log files.
  • A checkpoint occurs

Question 20

Question
Querying the V$LOG file shows the following information. Which redo group files are required for instance crash recovery? SQL> select GROUP#, ARCHIVED, STATUS from V$LOG; GROUP# ARC STATUS ---------- --- ---------------- 1 NO CURRENT 2 NO INACTIVE 3 NO INACTIVE 4 NO ACTIVE
Answer
  • Group 1 and 4
  • Group 2 and 3
  • Groups 1 through 4
  • Group 1
  • Group 4

Question 21

Question
You noticed that the current value of the UNDO_RETENTION parameter is 900 and is too low for some of your transactions. The database was created using DBCA. You issue the following statement: ALTER SYSTEM SET UNDO_RETENTION=4800; Which option is true?
Answer
  • UNDO_RETENTION is a static parameter and, therefore, cannot be changed using ALTER SYSTEM.
  • The change will be available to the instance only after a database cycle
  • The value is changed in memory, and when the database restarts the next time, the new value will be preserved when using the spfile.
  • The value is changed only in memory, and the server parameter file needs to be updated for the change to persist across database shutdowns.

Question 22

Question
You need to find the directory where the Oracle alert log is being written. Which initialization parameter can be best used to list the full directory path of the alert log location?
Answer
  • ALERT_LOG_DEST
  • BACKGROUND_DUMP_DEST
  • DIAGNOSTIC_DEST
  • INIT_LOG_DUMP_DEST

Question 23

Question
Which data dictionary view is used to view the current values of parameters?
Answer
  • V$DATABASE
  • V$SPPARAMETER
  • V$PARAMETER
  • V$SYSPARAMETER

Question 24

Question
Which startup options must be used to start the instance when you create a new database?
Answer
  • STARTUP FORCE
  • STARTUP MOUNT
  • STARTUP RESTRICT
  • STARTUP NOMOUNT

Question 25

Question
The DIAGNOSTIC_DEST parameter is not set up in the initialization-parameter file. The value of the ORACLE_HOME environment variable is /u01/app/oracle/product/12.1.0, and the value of ORACLE_BASE is /u01/app/oracle. The database and instance name is xyz. What is the location of the text-alert log file for the xyz database?
Answer
  • /u01/app/oracle/product/12.1.0/log/rdbms/xyz/xyz/trace
  • /u01/app/oracle/diag/rdbms/xyz/xyz/trace
  • /u01/app/oracle/diag/rdbms/xyz/xyz/alert
  • /u01/app/oracle/product/12.1.0/diag/rdbms/xyz/xyz/trace
  • /u01/app/oracle/log/rdbms/xyz/xyz/trace

Question 26

Question
You want to create a database using the DBCA with DB_BLOCK_SIZE as 32KB. Which statement is true?
Answer
  • A block size of 32KB is not allowed in Oracle Database 12c.
  • You must choose the Data Warehouse template in the DBCA
  • You must choose the Custom template in the DBCA.
  • You must set the environment variable DB_BLOCK_SIZE to 32,768

Question 27

Question
All of the following are database-management options within the Database Configuration Assistant except which one?
Answer
  • Change Database Initialization Parameters
  • Create a Database
  • Manage Templates
  • Delete a Database

Question 28

Question
The Oracle Universal Installer is started by executing which program?
Answer
  • emctl
  • runInstaller
  • ouistart
  • isqlplusctl

Question 29

Question
You’ve been asked to install Oracle Database 12c on a new Linux server. You’re likely to ask the Unix system administrator to do all but which one of the following for you in order to get the new server ready for Oracle?
Answer
  • Modify the server’s kernel parameters
  • Create a new Unix user to own the Oracle software
  • Create the mount points and directory structure using the OFA model
  • Determine which directory will be used for $ORACLE_HOME.

Question 30

Question
Your database name is OCA12C. The options show the files that are available in the $ORACLE_HOME/dbs directory. Which file is used to start up the database instance when you issue the STARTUP command?
Answer
  • initOCA12C.ora
  • OCA12Cspfile.ora
  • spfile.ora
  • init.ora

Question 31

Question
Which initialization parameter cannot be changed after the database is created?
Answer
  • DB_BLOCK_SIZE
  • DB_NAME
  • CONTROL_FILES
  • None. All parameters can be changed as and when required.

Question 32

Question
Which script creates the database dictionary?
Answer
  • dictionary.sql
  • catdict.sql
  • catproc.sql
  • catalog.sql

Question 33

Question
If your database name is PROD and your instance name is PROD1, what would be the name of the text-alert log file?
Answer
  • alertPROD.log
  • alert_PROD1.log
  • PROD1alert.log
  • PROD_alert.log

Question 34

Question
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?
Answer
  • STARTUP AFTER SHUTDOWN
  • STARTUP FORCE
  • SHUTDOWN FORCE
  • SHUTDOWN ABORT and STARTUP

Question 35

Question
Which of the following startup options does not perform a database recovery?
Answer
  • STARTUP
  • STARTUP FORCE RESTRICT
  • STARTUP NOMOUNT
  • STARTUP OPEN
  • STARTUP RESTRICT

Question 36

Question
Which of the following shutdown statements does not perform a clean shutdown?
Answer
  • SHUTDOWN ABORT
  • SHUTDOWN TRANSACTIONAL
  • SHUTDOWN
  • SHUTDOWN IMMEDIATE
  • All of these are considered clean shutdowns

Question 37

Question
You would like to perform maintenance on the system and limit access to only the DBA staff during the maintenance window. Which of the following startup options should you use?
Answer
  • STARTUP NOMOUNT RESTRICT
  • STARTUP RESTRICT
  • STARTUP MOUNT RESTRICT
  • STARTUP MOUNT FORCE RESTRICT

Question 38

Question
You want to start up the database using a binary initialization file. What is another name for this file?
Answer
  • Configfile
  • Pfile
  • Spfile
  • init_pfile.ora

Question 39

Question
Under normal circumstances, which of the following actions or events is not found in the Oracle alert log?
Answer
  • Database startup and shutdown information
  • Nondefault initialization parameters
  • ORA-00600 errors
  • New columns added to a user table

Question 40

Question
Which of the following is true about EM Database Express? (Choose all that apply.)
Answer
  • You can start up and shut down a database using Database Express.
  • You can read the contents of the alert log file.
  • You can modify static initialization parameters.
  • The CREATE DATABASE statement creates the Database Control repository in the database

Question 41

Question
Which of the following statements about tablespaces is true?
Answer
  • A tablespace is the physical implementation of a logical structure called a namespace.
  • A tablespace can hold the objects of only one schema.
  • A bigfile tablespace can have only one data file.
  • The SYSAUX tablespace is an optional tablespace created only if you install certain database options.

Question 42

Question
Automatic segment space management on the tablespace causes which of the following table attributes in that tablespace to be ignored?
Answer
  • The whole storage clause
  • NEXT and PCTINCREASE
  • BUFFERPOOL and FREEPOOL
  • PCTFREE and PCTUSED

Question 43

Question
Which is not a type of segment that is stored in a tablespace?
Answer
  • Undo
  • Redo
  • Permanent
  • Temporary

Question 44

Question
Which allocation unit is the smallest?
Answer
  • Data file
  • Extent
  • Data block
  • Segment

Question 45

Question
You performed the following statement in the database. What actions can you perform on the CUST_INFO table in the CUST_DATA tablespace. (Choose all that apply.) ALTER TABLESPACE CUST_DATA READ ONLY;
Answer
  • ALTER TABLE CUST_INFO DROP COLUMN xx;
  • TRUNCATE TABLE CUST_INFO;
  • INSERT INTO CUST_INFO VALUES (…);
  • DROP TABLE CUST_INFO;
  • RENAME CUST_INFO TO CUSTOMER_INFO;

Question 46

Question
If the tablespace is offline, which statements should be executed to make the USERS tablespace read-only? (Choose all that apply.)
Answer
  • ALTER TABLESPACE USERS READ ONLY
  • ALTER DATABASE MAKE TABLESPACE USERS READ ONLY
  • ALTER TABLESPACE USERS ONLINE
  • ALTER TABLESPACE USERS TEMPORARY

Question 47

Question
How would you add more space to a tablespace? (Choose all that apply.)
Answer
  • ALTER TABLESPACE <TABLESPACE NAME> ADD DATAFILE SIZE <N>
  • ALTER DATABASE DATAFILE <FILENAME> RESIZE <N>
  • ALTER DATAFILE <FILENAME> RESIZE <N>
  • ALTER TABLESPACE <TABLESPACE NAME> DATAFILE <FILENAME> RESIZE <N>

Question 48

Question
The database is using automatic memory management. The standard block size for the database is 8KB. You need to create a tablespace with a block size of 16KB. Which initialization parameter should be set?
Answer
  • DB_8K_CACHE_SIZE
  • DB_16K_CACHE_SIZE
  • DB_CACHE_SIZE
  • None of the above

Question 49

Question
Which data dictionary view can be queried to obtain information about the files that belong to locally managed temporary tablespaces?
Answer
  • DBA_DATA_FILES
  • DBA_TABLESPACES
  • DBA_TEMP_FILES
  • DBA_LOCAL_FILES

Question 50

Question
How would you drop a tablespace if the tablespace were not empty?
Answer
  • Rename all the objects in the tablespace, and then drop the tablespace.
  • Remove the data files belonging to the tablespace from the disk.
  • Use ALTER DATABASE DROP <TABLESPACE NAME> CASCADE
  • Use DROP TABLESPACE <TABLESPACE NAME> INCLUDING CONTENTS.

Question 51

Question
Which command is used to enable the autoextensible feature for a file if the file is already part of a tablespace?
Answer
  • ALTER DATABASE
  • ALTER TABLESPACE.
  • ALTER DATA FILE
  • You cannot change the autoextensible feature once the data file is created.

Question 52

Question
Which statement is true regarding the SYSTEM tablespace?
Answer
  • It can be made read-only.
  • It can be offline.
  • Data files can be renamed.
  • Data files cannot be resized.

Question 53

Question
The default critical threshold for a tablespace is set at 97 percent, and you think that is too low. Which two options can you use to change the threshold value to 90 percent for tablespace APPS_DATA?
Answer
  • Use Oracle Enterprise Manager Database Express.
  • Use Oracle Enterprise Manager Cloud Control.
  • Use DBMS_SERVER_ALERT package.
  • Use DBMS_SPACE package.

Question 54

Question
Choose the statements that are resumable. (Choose three.)
Answer
  • ALTER TABLE … SPLIT PARTITION
  • SELECT
  • INSERT INTO … SELECT
  • CREATE TABLESPACE
  • ALTER TABLE … SHRINK SPACE

Question 55

Question
How do you ensure you are notified when a resumable session is suspended? (Choose two.)
Answer
  • You’ll be notified by email at the address registered in database properties.
  • Write a custom script to look for “statement in resumable session * was suspended” in the alert log and notify the DBA.
  • Create an AFTER SUSPEND trigger and a code notification
  • A suspended session displays a message on the screen.

Question 56

Question
Which statement regarding reclaiming wasted space is true?
Answer
  • Segment shrink is accomplished using the ALTER TABLE … MOVE and ALTER INDEX … REBUILD statements.
  • Segment shrink and reorganize are similar operations.
  • When a table segment shrink operation is completed, the dependent indexes are in invalid state and need to be rebuilt.
  • A segment shrink operation is applicable only on tablespaces with automatic segment space management.

Question 57

Question
Which compression option should be specified to compress blocks of tables that are used by the OLTP application?
Answer
  • COMPRESS
  • NOCOMPRESS
  • COMPRESS FOR OLTP
  • COMPRESS FOR ONLINE DML

Question 58

Question
Choose the best option regarding extents.
Answer
  • An extent is a grouping of Oracle blocks.
  • An extent is a grouping of OS blocks
  • An extent is a grouping of segments.
  • An extent is allocated when a table is created

Question 59

Question
You issue the statement CREATE TABLESPACE X;. Which of the following is the best option?
Answer
  • The statement fails because mandatory properties are not defined.
  • The 100MB tablespace is created.
  • The mandatory DATAFILE clause is missing
  • The tablespace name should be at least three characters long.

Question 60

Question
Choose the information that is not part of a ROWID.
Answer
  • Data object number
  • Relative file number
  • Segment ID where the block belongs
  • Block number in the file

Question 61

Question
Changes made with an UPDATE statement in a transaction are permanent in the database and visible to other users after what occurs?
Answer
  • DBWR flushes the changes to disk.
  • You issue a SAVEPOINT statement.
  • You issue a COMMIT statement.
  • A checkpoint occurs.

Question 62

Question
Which of the following commands returns an error if the transaction starts with SET TRANSACTION READ ONLY?
Answer
  • ALTER SYSTEM
  • SET ROLE
  • ALTER USER
  • None of the above

Question 63

Question
Guaranteed undo retention can be specified for which of the following objects?
Answer
  • A tablespace
  • A table
  • The database
  • A transaction
  • The instance

Question 64

Question
Which of the following lock modes permits concurrent queries on a table but prohibits updates to the locked table?
Answer
  • ROW SHARE
  • ROW EXCLUSIVE
  • SHARE ROW EXCLUSIVE
  • All of the above

Question 65

Question
Select the statement that is not true regarding undo tablespaces
Answer
  • Undo tablespaces will not be created if they are not specified in the CREATE DATABASE command.
  • Two undo tablespaces can be active if a new undo tablespace was specified and the old one contains pending transactions
  • You can switch from one undo tablespace to another while the database is online
  • UNDO_MANAGEMENT cannot be changed dynamically while the instance is running.

Question 66

Question
To resolve a lock conflict, which of the following methods can you use? Choose all that apply.
Answer
  • Oracle automatically resolves the lock after a short but predefined time period by killing the session that is holding the lock.
  • The DBA can kill the session holding the lock.
  • The user can either roll back or commit the transaction that is holding the lock.
  • Oracle automatically resolves the lock after a short but predefined period by killing the session that is requesting the lock.

Question 67

Question
Two transactions occur at the wall clock times in the following table. What happens at 10:05?
Answer
  • Session 2 will wait for session 1 to commit or roll back.
  • Session 1 will wait for session 2 to commit or roll back
  • A deadlock will occur, and both sessions will hang unless one of the users cancels their statement or the DBA kills one of the sessions.
  • A deadlock will occur, and Oracle will cancel one of the statements.
  • Neither session is updating the same column, so no waiting or deadlock will occur
Show full summary Hide full summary

Similar

Accounting Definitions
Tess Morris
Blood brothers-Context
umber_k
OCR GATEWAY CHEMISTRY C1 TEST
Olivia Farrow
Lord of the Flies Quotes
sstead98
Restless Earth Notes
Gladys Mba
Romeo and Juliet: Key Points
mbennett
Frankenstein Key Quotes
michelle.lau
Interactive Multimodal Learning Environments
kaylamclaughlin8
Renal System A&P
Kirsty Jayne Buckley
The Digestive System Slide Show
Hamza Ahmed
Passing Dark Colored Urine
Batool Aldaher