Top Banner

of 22

iso-8859-1__Cau hoi DBA

Apr 08, 2018

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/7/2019 iso-8859-1__Cau hoi DBA

    1/22

    BI 5 :

    1. Which script creates the data dictionary views?A. catalog.sql

    B. catproc.sqlC. sql.bsqD. dictionary.sql

    2. Which prefix for the data dictionary views indicates that thecontents of the view belong to the current user?A. ALL_B. DBA_

    C. USR_D. USER_

    3. Which data dictionary view shows information about the statusof a procedure?A. DBA_SOURCEB. DBA_OBJECTSC. DBA_PROCEDURES

    D. DBA_STATUS

    4. How do you correct a procedure that has become invalid whenone of the tables it is referring to was altered to drop a constraint?A. Re-create the procedureB. ALTER PROCEDURE RECOMPILEC. ALTER PROCEDURE COMPILED. VALIDATE PROCEDURE

    5. Which of the following views does not have information aboutthe operating system locations of the components?A. V$CONTROLFILEB. V$DATAFILEC. V$PWFILE_USERSD. V$LOGFILE

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    2/22

    E. V$TEMPFILE

    6. What is the prefix for dynamic performance views?A. DBA_

    B. X$C. V$D. X#

    BI 6 :

    1. Which method is best for renaming a control file?A. Use the ALTER DATABASE RENAME FILE command.B. Shut down the database, rename the control file by using anoperating system command, and restart the database after changingthe CONTROL_FILES parameter in the initialization parameterfile.

    C. Put the database in RESTRICTED mode and issue the ALTERDATABASE RENAME FILE command.D. Shut down the database, change the CONTROL_FILES

    parameter, and start up the database.E. Re-create the control file using the new name.

    2. Which piece of information is not available in the control file?A. Instance nameB. Database name

    C. Tablespace namesD. Log sequence number

    3. When you create a control file, the database has to be:A. MountedB. Not mounted

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    3/22

    C. OpenD. Restricted

    4. Which data dictionary view provides the names of the control

    files?A. V$DATABASEB. V$INSTANCEC. V$CONTROLFILESTATUSD. None of the above

    5. What is the biggest advantage of having the control files ondifferent disks?

    A. Database performance.B. Guards against failure.C. Faster archiving.D. Writes are concurrent, so having control files on different disksspeeds up control file writes.

    BI 7 :

    1. The initialization parameter FAST_START_MTTR_TARGEThas been set to 500. What does this mean?A. A checkpoint will occur every 500 seconds regardless ofdatabase activity.B. A checkpoint will occur after writing 500 blocks to the redo logfile.C. Upon instance startup, the database will not be ready for

    connections for at least 500 seconds while instance recovery isperformed by SMON.D. Recovery from an instance failure should not take more than500 seconds.

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    4/22

    2. Which data dictionary view shows that the database is inARCHIVELOG mode?A. V$INSTANCEB. V$LOG

    C. V$DATABASED. V$THREAD

    3. Which file records all changes made to the database and is usedonly when recovering an instance?A. Archive log fileB. Redo log fileC. Control file

    D. Alert log file

    4. What will happen if ARCn could not write to a mandatoryarchive destination?A. The database will hang.B. The instance will shut down.C. ARCn starts writing to LOG_ARCHIVE_DUPLEX_DEST if itis specified.

    D. Oracle stops writing the archived log files.

    5. How many ARCn processes can be associated with an instance?A. FiveB. FourC. TenD. Operating system dependent

    6. Which of the following is an invalid status code in the

    V$LOGFILE view?A. STALEB. BlankC. ACTIVED. INVALID

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    5/22

    7. If you have two redo log groups with four members each, howmany disks does Oracle recommend to keep the redo log files?A. EightB. Two

    C. OneD. Four

    8. What will happen if you issue the following command?ALTER DATABASE ADD LOGFILE

    ('/logs/file1' REUSE, '/logs/file2' REUSE);A. Statement will fail, because the group number is missingB. Statement will fail, because log file size is missing

    C. Creates a new redo log group, with two membersD. Adds two members to the current redo log group

    9. Which of the following statements is NOT true regarding the useof OMF for redo logs?A. Dropping log files with OMF automatically drops the relatedoperating system file.B. OMF manages archived redo log files using the initialization

    parameter DB_CREATE_ARCHIVE_LOG_DEST_n.C. A new log file group can be added without specifying afilename in the ALTER DATABASE statement.D. A log file group managed with OMF can be dropped byspecifying only the log group number.

    10. Querying which view will show whether automatic archiving isenabled?A. V$ARCHIVE_LOG

    B. V$DATABASEC. V$PARAMETERD. V$LOG

    11. If you need to have your archive log files named with the logsequence numbers as arch_0000001, arch_0000002, and so on

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    6/22

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    7/22

    14. Which statement will add a member /logs/redo22.log to log filegroup 2?A. ALTER DATABASE ADD LOGFILE '/logs/redo22.log' TOGROUP 2;

    B. ALTER DATABASE ADD LOGFILE MEMBER'/logs/redo22.log' TO GROUP 2;C. ALTER DATABASE ADD MEMBER '/logs/redo22.log' TOGROUP 2;D. ALTER DATABASE ADD LOGFILE '/logs/redo22.log';

    Bi 08 :

    1. Which two of the following statements do you execute to makethe USERS tablespace read-only, if the tablespace is offline?1 ALTER TABLESPACE USERS READ ONLY2 ALTER DATABASE MAKE TABLESPACE USERS READONLY3 ALTER TABLESPACE USERS ONLINE4 ALTER TABLESPACE USERS TEMPORARY

    2. When is a sort segment that is allocated in a temporarytablespace released?A. When the sort operation completesB. When the instance is shut downC. When you issue ALTER TABLESPACE COALESCED. When SMON clears up inactive sort segments

    3. You created a tablespace using the following statement:

    CREATE TABLESPACE MYTSDATAFILE SIZE 200M AUTOEXTEND ON MAXSIZE 2GEXTENT MANAGEMENT LOCAL UNIFORM SIZE 5MSEGMENT SPACE MANAGEMENT AUTO;Which three parameters does Oracle ignore when you create atable in the MYTS tablespace?

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    8/22

    A. PCTFREEB. PCTUSEDC. FREELISTSD. FREELIST GROUPS

    E. INITIAL

    4. What will be the minimum size of the segment created in atablespace if the tablespace's default storage values are specified as(INITIAL 2M NEXT 2M MINEXTENTS 3 PCTINCREASE 50)and no storage clause is specified for the object?A. 2MBB. 4MB

    C. 5MBD. 7MBE. 8MB

    5. Which of the following would you use to add more space to atablespace? (Choose two.)A. ALTER TABLESPACE ADDDATAFILE SIZE

    B. ALTER DATABASE DATAFILE RESIZEC. ALTER DATAFILE RESIZE D. ALTER TABLESPACE DATAFILE RESIZE

    6. If the DB_BLOCK_SIZE of the database is 8KB, what will bethe size of the third extent when you specify the storage parametersas (INITIAL 8K NEXT 8K PCTINCREASE 50 MINEXTENTS

    3)?A. 16KBB. 24KBC. 12KBD. 40KB

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    9/22

    7. The standard block size for the database is 8KB. You need tocreate a tablespace with block size of 16KB. Which initialization

    parameters should be set? (Choose two.)A. DB_8K_CACHE_SIZE

    B. DB_16K_CACHE_SIZEC. DB_CACHE_SIZED. UNDO_MANAGEMENTE. DB_CREATE_FILE_DEST

    8. Which data dictionary view can you query to obtain informationabout the files that belong to locally managed temporarytablespaces?

    A. DBA_DATA_FILESB. DBA_TABLESPACESC. DBA_TEMP_FILESD. DBA_LOCAL_FILES

    9. When does the SMON process automatically coalesce thetablespaces?A. When the initialization parameter

    COALESCE_TABLESPACES is set to TRUEB. When the PCTINCREASE default storage of the tablespace isset to 0C. When the PCTINCREASE default storage of the tablespace isset to 50D. Whenever the tablespace has more than one free extent

    10. Which operation is permitted on a read-only tablespace?A. Delete data from table

    B. Drop tableC. Create new tableD. None of the above

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    10/22

    11. How would you drop a tablespace if the tablespace were notempty?A. Rename all the objects in the tablespace and then drop thetablespace

    B. Remove the data files belonging to the tablespace from the diskC. Use ALTER DATABASE DROP CASCADED. Use DROP TABLESPACE INCLUDING CONTENTS

    12. Which command is used to enable the auto-extensible featurefor a file, if the file is already part of a tablespace?

    A. ALTER DATABASE.B. ALTER TABLESPACE.C. ALTER DATA FILE.D. You cannot change the auto-extensible feature once the data filecreated.

    13. The database block size is 4KB. You created a tablespace usingthe following command.

    CREATE TABLESPACE USER_DATA DATAFILE'C:/DATA01.DBF'EXTENT MANAGEMENT DICTIONARY;If you create an object in the database without specifying anystorage parameters, what will be the size of the third extent that

    belongs to the object?A. 6KBB. 20KBC. 50KB

    D. 32KB

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    11/22

    14. Which of the following statements is false?A. You can make a dictionary-managed temporary tablespace

    permanent.B. You cannot change the size of the locally managed temporary

    tablespace file.C. Once it is created, you cannot alter the extent management of atablespace using ALTER TABLESPACE.D. You cannot make a locally managed permanent tablespacetemporary.E. If you do not specify an extent management clause whencreating a tablespace, Oracle creates a locally managed tablespace.

    15. Which of the following statements is true regarding theSYSTEM tablespace?A. Can be made read-only.B. Can be offline.C. Data files can be renamed.D. Data files cannot be resized.

    16. Which parameter specified in the DEFAULT STORAGE

    clause of CREATE TABLESPACE cannot be altered after youcreate the tablespace?A. INITIALB. NEXTC. MAXEXTENTSD. None

    17. How would you determine how much sort space is used by auser session?

    A. Query the DBA_SORT_SEGMENT view.B. Query the V$SORT_SEGMENT view.C. Query the V$SORT_USAGE view.D. You can obtain only the total sort segment size; you cannot findinformation on individual session sort space usage.

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    12/22

    18. If you issue ALTER TABLESPACE USERS OFFLINEIMMEDIATE, which of the following statements is true? (Choosetwo.)A. All data files belonging to the tablespace must be online.

    B. Does not ensure that the data files are available.C. Need not do media recovery when bringing the tablespaceonline.D. Need to do media recovery when bringing the tablespace online.

    Bi 09 :

    1. Place the following logical storage structures in order-from thesmallest logical storage unit to the largest.1 Segment2 Block3 Tablespace4 Extent

    A. 2, 4, 1, 3

    B. 2, 1, 3, 4C. 1, 4, 2, 3D. 3, 2, 4, 1

    2. Which parameter specifies the number of transaction slots in adata block?A. MAXTRANSB. INITRANSC. PCTFREE

    D. PCTUSED

    3. Which of the following database objects consists of more thanone segment?A. Nested TableB. Partitioned table

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    13/22

    C. Index PartitionD. Undo segmentE. None of the above

    4. Which of the following segment allocation parameters is ignoredwhen automatic segment space management is in effect for atablespace?A. FREELISTSB. PCTFREEC. INITRANSD. MAXTRANS

    5. Which data dictionary view would you query to see the freeextents in a tablespace?A. DBA_TABLESPACESB. DBA_FREE_SPACEC. DBA_EXTENTSD. DBA_SEGMENTS

    6. Which two data dictionary views can account for the total

    amount of space in a data file?A. DBA_FREE_SEGMENTSB. DBA_FREE_SPACEC. DBA_SEGMENTSD. DBA_EXTENTS

    7. Which portion of the data block stores information about thetable having rows in this block?A. Common and variable header

    B. Row directoryC. Table directoryD. Row data

    8. When does Oracle stop adding rows to a block?A. When free space reaches the PCTFREE threshold

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    14/22

    B. When row data reaches the PCTFREE thresholdC. When free space drops below the PCTUSED thresholdD. When row data drops below the PCTUSED threshold

    9. What main restriction is placed on tablespaces defined withautomatic segment space management?A. The tablespace cannot contain nested tables.B. The tablespace cannot be transportable.C. The tablespace cannot contain LOBs.D. The bootstrap segment cannot reside in a tablespace that hasautomatic segment space management enabled.

    10. What is the default value of PCTFREE?A. 40B. 0C. 100D. 10

    11. What is row migration?

    A. A single row spread across multiple blocksB. Moving a table from one tablespace to anotherC. Storing a row in a different block when there is not enoughroom in the current block for the row to expandD. Deleting a row and adding it back to the same table

    12. The sum of the values PCTFREE and PCTUSED cannotexceed which of the following:A. 255

    B. DB_BLOCK_SIZEC. The maximum is operating system dependent.D. 100

    13. Which of the following statements may require a temporarysegment?

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    15/22

    A. CREATE TABLEB. CREATE INDEXC. UPDATED. CREATE TABLESPACE

    14. How does Oracle determine the extent sizes for a temporarysegment?A. From the initialization parametersB. From the tables involved in the sort operationC. Using the default storage parameters for the tablespaceD. The database block size

    15. Fill in the blank: The parameter MAXTRANS specifies themaximum number of concurrent transactions per __`________.A. TableB. SegmentC. ExtentD. Block

    Bi 10 :

    1. When a table is updated, where is the before-image information(which can be used for undoing the changes) stored?A. Temporary segmentB. Redo log bufferC. Undo bufferD. Rollback segment2. Select the statement that is not true regarding undo tablespaces.A. Undo tablespaces will not be created if they are not specified in

    the CREATE DATABASE statement.B. Two undo tablespaces may be active if a new undo tablespacewas specified and there are pending transactions on the old one.C. You can switch from one undo tablespace to another.D. UNDO_MANAGEMENT cannot be changed dynamicallywhile the instance is running.

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    16/22

    3. Which dynamic performance view can help you adjust the sizeof an undo tablespace?A. V$UNDOSTAT

    B. V$ROLLSTATC. V$SESSIOND. V$ROLLNAME

    Bi 11, 12, 13 :

    1. A table is created as follows:CREATE TABLE MY_TABLE (COL1 NUMBER)

    STORAGE (INITIAL 2M NEXT 2M MINEXTENTS 6PCTINCREASE 0);When you issue the following statement, what will be the size ofthe table, if the high-water mark of the table is 200KB?ALTER TABLE MY_TABLE DEALLOCATE UNUSED KEEP1000K;

    A. 1000KB

    B. 200KBC. 12000KBD. 2MBE. 13MB

    2. Which command is used to drop a constraint?A. ALTER TABLE MODIFY CONSTRAINTB. DROP CONSTRAINTC. ALTER TABLE DROP CONSTRAINT

    D. ALTER CONSTRAINT DROP

    3. When you define a column with datatype TIMESTAMP WITHLOCAL TIME ZONE, what is the precision of seconds stored?A. 2B. 6

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    17/22

    C. 9D. 0

    4. Which data dictionary view has the timestamp of the table

    creation?A. DBA_OBJECTSB. DBA_SEGMENTSC. DBA_TABLESD. All the above

    5. What happens when you issue the following statement and theCHAINED_ROWS table does not exist in the current schema?

    ANALYZE TABLE EMPLOYEE LIST CHAINED ROWS;A. Oracle creates the CHAINED_ROWS table.B. Oracle updates the dictionary with the number of chained rowsin the table.C. Oracle creates the CHAINED_ROWS table under the SYSschema; if one already exists under SYS, Oracle uses it.D. The statement fails.

    6. The following statement is issued against the primary keyconstraint (PK_BONUS) of the BONUS table. (Choose twostatements that are true.)ALTER TABLE BONUS MODIFY CONSTRAINT PK_BONUSDISABLE VALIDATE;A. No new rows can be added to the BONUS table.B. Existing rows of the BONUS table are validated beforedisabling the constraint.C. Rows can be modified, but the primary key columns cannot

    change.D. The unique index created when defining the constraint isdropped.

    7. Which clause in the ANALYZE command checks for theintegrity of the rows in the table?

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    18/22

    A. COMPUTE STATISTICSB. VALIDATE STRUCTUREC. LIST INVALID ROWSD. None of the above

    8. Which statement is not true?A. A partition can be range-partitioned.B. A subpartition can be range-partitioned.C. A partition can be hash-partitioned.D. A subpartition can be hash-partitioned.

    9. A table is created with an INITRANS value of 2. Which value

    would you choose for INITRANS of an index created on thistable?A. 4B. 2C. 1

    10. When validating a constraint, why would you specify theEXCEPTIONS clause?

    A. To display the ROWIDs of the rows that do not satisfy theconstraintB. To move the bad rows to the table specified in theEXCEPTIONS clauseC. To save the ROWIDs of the bad rows in the table specified inthe EXCEPTIONS clauseD. To save the bad rows in the table specified in theEXCEPTIONS clause

    11. Which keyword is not valid for the BUFFER_POOL parameterof the STORAGE clause?A. DEFAULTB. LARGEC. KEEPD. RECYCLE

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    19/22

    12. Which clause in the ALTER TABLE command do you use toreorganize a table?A. REORGANIZE

    B. REBUILDC. RELOCATED. MOVE

    13. Which line in the following code has an error?1 ALTER TABLE MY_TABLE2 STORAGE (3 MINEXTENTS 4

    4 NEXT 512K)5 NOLOGGING;A. 2B. 3C. 4D. 5

    14. Which component is not part of the ROWID?

    A. TablespaceB. Data file numberC. Object IDD. Block ID

    15. Which keyword do you use in the CREATE INDEX commandto create a function-based index?A. CREATE FUNCTION INDEXB. CREATE INDEX ORGANIZATION INDEX

    C. CREATE INDEX FUNCTION BASEDD. None of the above

    16. Which data dictionary view shows statistical information fromthe ANALYZE INDEX VALIDATE STRUCTURE command?A. INDEX_STATS

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    20/22

    B. DBA_INDEXESC. INDD. None; VALIDATE STRUCTURE does not generate statistics.

    17. A constraint is created with the DEFERRABLE INITIALLYIMMEDIATE clause. What does this mean?A. Constraint checking is done only at commit time.B. Constraint checking is done after each SQL statement, but youcan change this behavior by specifying SET CONSTRAINTS ALLDEFERRED.C. Existing rows in the table are immediately checked forconstraint violation.

    D. The constraint is immediately checked in a DML operation, butsubsequent constraint verification is done at commit time.

    18. Which script creates the CHAINED_ROWS table?A. catproc.sqlB. catchain.sqlC. utlchain.sqlD. No script is necessary; ANALYZE TABLE LIST CHAINED

    ROWS creates the table.

    19. What is the difference between a unique constraint and aprimary key constraint?A. A unique key constraint requires a unique index to enforce theconstraint, whereas a primary key constraint can enforceuniqueness using a unique or non-unique index.B. A primary key column can be NULL, but a unique key columncannot be NULL.

    C. A primary key constraint can use an existing index, but a uniqueconstraint always creates an index.D. A unique constraint column can be NULL, but primary keycolumn(s) cannot be NULL.

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    21/22

    20. You can monitor an index for its usage by using theMONITORING USAGE clause of the ALTER INDEX statement.Which data dictionary view do you use to query the index usage?A. USER_INDEX_USAGE

    B. V$OBJECT_USAGEC. V$INDEX_USAGED. DBA_INDEX_USAGE

    21. You have a table with a million rows. You want tobuild an index on a column in the table that has a lowcardinality. The table is part of a Decision SupportSystem.

    Your goal is to build an index that would be efficient for queriesusing AND/OR

    predicates. Which type of index would be most suitable?

    A. B-Tree Index.B. Bitmap Index.C. Reverse Key Index.D. Compresses Indexes.

    22. What are two main advantages of using bitmap indexes?(Choose two) A. Bitmap indexes use less storage space.B. Bitmap indexes offer maximum concurrency.C. Bitmap indexes are easy to maintain when you issue DMLstatements.D. Bitmap segments are updated upon COMMIT, at the end of thetransaction.E. Bitmap indexes work very fast with multiple predicates that are

    combined with AND, OR, and NOT operators.

    23. What are two benefits of storing each table and index partitionin a separate tablespace? (Choose two)

    A. You can backup and recover each partition independently.

  • 8/7/2019 iso-8859-1__Cau hoi DBA

    22/22

    B. You can add and delete columns to partitions independentlywithout affecting all the partitions.C. You can control the mapping of partitions to disk drives, whichis important for balancing I/O LOAD.

    D. You can add and delete column constraints to partitionsindependently without affecting all the partitions.E. You can change a column data type in each partitionindependently without affectingall the other partitions.