Skip to main content

1Z0-034 Online Practice Questions

Upgrade Oracle9i/10g OCA to Oracle Database OCP

148 questions available · Page 1 of 15

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Multiple choice

The database is configured in ARCHIEVELOG mode and regular complete database backups are taken.
The loss of which two types of files may require a recovery with the RESETLOGS option?

  1. A

    Control files

  2. B

    Password file

  3. C

    Inactive online redo log file

  4. D

    Archived log files required to perform recovery

  5. E

    Newly created tablespace which is not backed up

Show answer and explanation

Correct answers: A, D

Question 2 Single choice

The database users regularly complain about the difficulty in performing transactions. On investigation, you find that some users perform long-running transactions that consume huge amounts of space in the undo tablespace, which caused the problem. You want to control the usage of the undo tablespace only for these user sessions and you do not want these sessions to perform long-running operations.

How would you achieve this?

  1. A

    Implement a profile for the users.

  2. B

    Implement external roles for the users.

  3. C

    Set the threshold for the undo tablespace.

  4. D

    Implement a Database Resource Manager plan.

Show answer and explanation

Correct answer: B

Question 3 Single choice

You are managing an Oracle Database 11g ASM instance with a disk group dg01 having three disks.
One of the disks in the disk group becomes unavailable because of power failure. You issued the following command to change the DISK_REPAIR_TIME attribute from 3.6 hours to 5 hours:

ALTER DISKGROUP dg01 SET ATTRIBUTE *disk_repair_time' = '5h';

To which disks in the disk group will the new value be applicable?

  1. A

    all disks in the disk group

  2. B

    all disks that are currently in OFFLINE mode

  3. C

    all disks that are not currently in OFFLINE mode

  4. D

    all disks in the disk group only if all of them are ONLINE

Show answer and explanation

Correct answer: C

Question 4 Multiple choice

Which two commands never trigger an implicit rebalancing within the disk group?. (Choose two.)

  1. A

    ALTER DISKGROUP misc MOUNT;

  2. B

    ALTER DISKGROUP misc DROP DISK misc2;

  3. C

    ALTER DISKGROUP misc CHECK ALL NOREPAIR;

  4. D

    ALTER DISKGROUP misc RESIZE ALL SIZE 1023m;

  5. E

    ALTER DISKGROUP dgroupA ADD DISK '/devices/A*';

Show answer and explanation

Correct answers: A, C

Question 5 Single choice
SQL> SELECT blocks FROM user_segments WHERE segment_name=,ALTBT; BLOCKS
----------------
SQL> ALTER TABLE altb SHRINK SPACE COMPACT;

Table altered.

SQL> SELECT blocks FROM user_segments WHERE segment_name=*ALTB*;

BLOCKS
-------------------------
View the Exhibit and examine the output and commands executed on the ALTB table.

Why does the number of blocks for the table remain the same after the shrink operation?

  1. A

    because the table did not contain migrated or chained rows

  2. B

    because the row IDs remain the same for all rows during the shrink operation

  3. C

    because the progress of the shrink operation is not saved in the bitmap blocks of the table

  4. D

    because the high-water mark (HWM) did not move due to the compact option that is used in the shrink operation

Show answer and explanation

Correct answer: D

Question 6 Single choice

You are in the middle of a transaction updating a very important table. The machine on which a database was running reboots because of power outage. This caused a database instance failure.

Which statement is true in this situation?

  1. A

    The online redo log files and archived redo log files are required to accomplish the recovery

  2. B

    The uncommitted transaction will be committed at the next startup of the database instance

  3. C

    The uncommitted transaction is rolled back automatically at the next opening of the database

  4. D

    The DBA has to perform the recovery on the database to recover the uncommitted transaction

Show answer and explanation

Correct answer: C

Question 7 Multiple choice

You have set the value of the NLS_TIMESTAMP_TZ_FORMAT parameter to YYYY-MM-DD.
The default format of which two data types would be affected by this setting?

  1. A

    DATE

  2. B

    TIMESTAMP

  3. C

    INTERVAL YEAR TO MONTH

  4. D

    INTERVAL DAY TO SECOND

  5. E

    TIMESTAMP WITH LOCAL TIME ZONE

Show answer and explanation

Correct answers: B, E

Question 8 Single choice

Examine the following set of RMAN commands:

RMAN> CONFIGURE CHANNELdelDEVICETYPEDISK FORMAT '/u02/backup/%U*; RKAN>RUN
{
ALLOCATECHANNELchlDEVICETYPEDISK;
EXECUTESCRIPTfull_backup;
}

Which statement is true when the RMAN run block is executed?

  1. A

    The execution of the script fails because multiple channels cannot coexist.

  2. B

    The script is executed and both the channels are used for the script execution.

  3. C

    The new channel, CH1, is ignored because a channel has been configured already.

  4. D

    The persistent configuration parameter DC1 is overridden because a new channel is allocated in the RMAN run block.

Show answer and explanation

Correct answer: D

Question 9 Single choice

As part of archiving the historical data, you want to transfer data from one database to another database, whichis on another server. All tablespaces in the source database are read/write and online. The source and targetdatabases use the same compatibility level and character sets. View the Exhibit and examine the features inthe source and target database.

Which of the following steps are required to transport a tablespace from the database to the targetdatabase:

1. Make the tablespace read-only at the source database.
2. Export metadata from the source database.
3. Convert data filed by using Recovery Manager (RMAN).
4. Transfer the dump file and data filed to the target machine.
5. Import metadata at the target database.
6. Make the tablespace read/write at the target database.

Exhibit:

  1. A

    2, 4, and 5

  2. B

    All the steps

  3. C

    2, 3, 4 and 5

  4. D

    1, 2, 4, 5 and 6

Show answer and explanation

Correct answer: D

Question 10 Single choice

View the Exhibit and examine the parameter settings in your server-side parameter file (SPFILE). When you tried to start the database instance, you received the following error:

SQL> startup
ORA-00824: cannot set SGA_TARGET or MEMORY_TARGET due to existing internal settings, see alert log for more information

Why did the instance fail to start?

Exhibit:

  1. A

    Because the PGA_AGGREGATE_TARGET parameter is not set

  2. B

    Because the STATISTICS_LEVEL parameter is set to BASIC

  3. C

    Because MEMORY_TARGET and MEMORY_MAX_TARGET cannot be equal

  4. D

    Because both the SGA_TARGET and MEMORY_TARGET parameters are set.

Show answer and explanation

Correct answer: B