Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

Oracle 1z0-067 Upgrade Oracle9i/10g/11g OCA to Oracle Database 12c OCP Exam Practice Test

Demo: 38 questions
Total 263 questions

Upgrade Oracle9i/10g/11g OCA to Oracle Database 12c OCP Questions and Answers

Question 1

Your database is running in ARCHIVELOG mode. You backup your database regularly. If certain files are lost, an incomplete recovery is required.

In which two cases is this true?

Options:

A.

flashback logs

B.

inactive online redo log

C.

current online redo log member

D.

all control files

E.

archived log files required to perform recovery

Question 2

Which three statements correctly describe the relationship amongst jobs, programs, and schedules within the Oracle Job Scheduler?

Options:

A.

A job is specified as part of a program definition.

B.

A program can be used in the definition of multiple jobs.

C.

A program and job can be specified as part of a schedule definition.

D.

A program and schedule can be specified as part of a job definition.

E.

A program and window can be specified as part of a job definition.

Question 3

Which two statements are true about encrypted backups performed by using RMAN?

Choose two.

Options:

A.

Encrypted backups can only be written to disk.

B.

Image copy backups can be created by using password encryption.

C.

A database uses the same encryption key for every encrypted backup.

D.

Transparent encryption of backups uses an encryption wallet.

E.

A password encryption of backups uses the password while creating and restoring backups.

Question 4

Your database is running in archivelog mode. Examine the parameters for your database instance:

LOG_ARCHIVE_DEST_l ='LOCATION=/disk1/arch MANDATORY'

LOG_ARCHIVE_DEST_2 ='LOCATION=/disk2/arch'

LOG_ARCHIVE_DEST_3 ='LOCATIO=/disk3/arch'

LOG_ARCHIVE_DEST _4 ='LOCATIONs/disk4/arch'

LOG_ARCHIVE _MIN_SUCCEED_DEST = 2

While the database is open, you notice that the destination set by the log_archive_dest_1 parameter is not available. All redo log groups have been used.

What happens at the next log switch?

Options:

A.

The database instance hangs and the redo log files are not overwritten.

B.

The archived redo log files are written to the fast recovery area until the mandatory destination is made available.

C.

The database instance is shutdown immediately.

D.

The destination set by the log_archive_dest parameter is ignored and the archived redo log files are created in the next two available locations to guarantee archive log success.

Question 5

Examine the following set of RMAN commands:

RMAN> CONFIGURE CHANNEL dc1 DEVICE TYPE DISK FORMAT ' /u02/backup/%U' ; RMAN> RUN

{

ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;

EXECUTE SCRIPT arc_backup;

}

Which statement is true about the RMAN RUN block execution?

Options:

A.

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

B.

The execution of the script fails because multiple channels cannot exist simultaneously.

C.

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

D.

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

Question 6

Examine the command to create a pluggable database (PDB):

SQL> CREATE PLUGGABLE DATABASE pdb2 FROM pdb1

FILE_NAME-_CONVERT = ('/disk1/oracle/pdb1/', '/disk2/oracle/pdb2/’) PATH_PREFIX = '/disk2/oracle/pdb2';

Which two statements are true?

Options:

A.

The pluggable database pdb2 is created by cloning pdb1 and is in mount state.

B.

Details about the metadata describing pdb2 are stored in an XML file in the '/disk2/oracle/pdb2/' directory.

C.

The tablespace specifications of pdb2 are the same as pdb1.

D.

All database objects belonging to common users in PD3I are cloned in PD32.

E.

pdb2 is created with its own private undo and temp tablespaces.

Question 7

Which three conditions must be met before you create a Virtual Private Catalog (VPC)?

Options:

A.

A base recovery catalog should exist.

B.

The owner of VPC cannot own recovery catalog.

C.

At least one target database should be registered in the recovery catalog.

D.

The register database privilege should be granted to the virtual catalog owner.

E.

The DBA role should be granted to the virtual catalog owner.

Question 8

Which three methods can be used to create a pluggable database (PDB) in an existing multitenant container database (CDB)? (Choose three.)

Options:

A.

Use Enterprise Manager Database Express to create a PDB in an existing CDB.

B.

Use the DBMS_PDB package to plug a non-CDB into an existing CDB.

C.

Use PDB$SEED for creating a PDB.

D.

To clone an existing PDB.

E.

Use the DBMS_PDB package to plug a pre-Oracle 12c database into an existing CDB.

Question 9

You issue the RMAN commands:

RMAN> CONFIGURE DEFAULT DEVICE TYPE TO disk;

RMAN> CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY;

RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;

RMAN> BACKUP DATABASE PLUS ARCHIVELOG DELETE INPUT;

Which three tasks are performed by the BACKUP DATABASE command?

Options:

A.

switching the online redo log file

B.

backing up all data files as image copies and archive log files, and deleting those archive log files

C.

backing up only the used blocks in the data files

D.

backing up all used and unused blocks in the data files

E.

backing up all archived log files and marking them as obsolete

Question 10

View the SPFILE parameter settings in the Exhibit.

You issue this command and get errors:

SQL> startup

ORA-00824:cannotsetSGAJTARGET or MEMORY_TARGET dueto existing internalsettings,seealertlog for moreinformation

Why did the instance fail to start?

Options:

A.

because pga_aggregate_target is not set

B.

because statistics_level is set to basic

C.

because memory_target and memory_max_target cannot be equal

D.

because sga_target and memory_target are both set

Question 11

You execute the RMAN commands:

RMAN> CONFIGURE DEFAULT DEVICE TYPE TO disk

RMAN> CONFIGURE DEVICE TYPE disk PARALLELISM 2;

RMAN> CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT “/disk/%U’;

RMAN> CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT “/disk/%U’;

RMAN> BACKUP DATABASE;

Which statement is true about the backup set created by the BACKUP command?

Options:

A.

Two channels are allocated and two copies of the backup set are taken in parallel in both locations

B.

Two channels are allocated and backup pieces for the backup set are created in both the specified destinations

C.

The default channel is allocated and the backup set is created in only one destination

D.

Two channels are allocated and a copy of the backup set is taken in the location specified by CHANNEL 2

Question 12

You plan to use the In-Database Archiving feature of Oracle Database 12c, and store rows that are inactive for over three months, in Hybrid Columnar Compressed (HCC) format.

Which three storage options support the use of HCC?

Options:

A.

ASM disk groups with ASM disks consisting of Exadata Grid Disks.

B.

ASM disk groups with ASM disks consisting of LUNS on any Storage Area Network array

C.

ASM disk groups with ASM disks consisting of any zero padded NFS-mounted files

D.

Database files stored in ZFS and accessed using conventional NFS mounts.

E.

Database files stored in ZFS and accessed using the Oracle Direct NFS feature

F.

Database files stored in any file system and accessed using the Oracle Direct NFS feature

G.

ASM disk groups with ASM disks consisting of LUNs on Pillar Axiom Storage arrays

Question 13

RMAN is connected to the target database PROD1 and an auxiliary instance in NOMOUNT state. Examine the command to create a duplicate database:

RMAN> DUPLICATE TARGET DATABASE TO dup1

FROM ACTIVE DATABASE

NOFILENAMECHECK

PASSWORD FILE

SPFILE;

Which two statements are true about the execution of the DUPLICATE command?

Options:

A.

All archive redo log files are automatically copied to the duplicate database.

B.

The duplicate database has the same directory structure as the source database.

C.

The duplicate database is created by using the backups created during the execution of the DUPLICATE command.

D.

The password file and SPFILE for the duplicate database DUP1 are created in their respective default locations.

E.

The duplicate database is created without using RMAN backups and PROD1 is allowed to remain open during duplication.

Question 14

A user issues a query on the sales table and receives the following error:

ERROR at line 1:

ORA-01565: error in identifying file '/u0l/app/oracle/oradata/ORCL/temp01.dbf'

ORA-27037: unable to obtain file status

Which two actions would you take to recover the temporary tablespace?

Options:

A.

Drop the temp01.dbf file, and then re-create the temp file.

B.

Add a new temp file to the temporary tablespace and drop the temp01.dbf file.

C.

Shut down the database instance, start up the database instance in mount state, create a new temporary tablespace, and then open the database.

D.

Take the temporary tablespace offline, recover the missing temp file, and then bring the temporary tablespace online.

E.

Create a new temporary tablespace and assign it as the default to the user.

Question 15

Which three types of backups can be performed for a database running in NOARCHIVELOG mode? (Choose three.)

Options:

A.

backup of only the used blocks in a critical tablespace (SYSTEM or SYSAUX) while the database is open

B.

backup of noncritical tablespaces without shutting down the instance

C.

backup of only those blocks that have changed since the last backup while the database is mounted

D.

backup of the database without shutting down the instance

E.

consistent whole database backup

Question 16

Your database is running on the host OUSERVER. You back up your database regularly using RMAN and the backups are cataloged in a recovery catalog. For testing purposes, you want to replicate your database to another host, OUSERVER1, with the same directory structure. So, you copy the backups to the new host. What must you do to make the database operational in OUSERVER1?

Options:

A.

Restore the data files by using the NOCATALOG option and use the SET NEWNAME command to change the location

B.

Restore the control file from the backup by using the CATALOG options, restore the data files by using the SET NEWNAME command, and recover the data files

C.

Restore the data files from the backup by using the recovery catalog, use the SWITCH command to change the location, and recover the data files

D.

Restore the control file from the backup by using the NOCATALOG option, and then restore and recover the data files

Question 17

Which three statements are true about compression of backup sets?

Options:

A.

Compressed backups can only be written to media.

B.

Binary compression creates performance overhead during a backup operation.

C.

Unused blocks below the high-water mark are not backed up.

D.

Compressed backups cannot have section size defined during a backup operation

E.

It works only for locally managed tablespaces.

Question 18

Your production database is running in archivelog mode. You use RMAN with a recovery catalog to back up your database to media and the database is uniquely identified in the recovery catalog.

You want to create a test database from the production database and allow the production database to remain open during the duplicate process. You restore the database backups to a new host with the same directory structure as the production database and want to use the recovery catalog for future backups after the database is successfully restored to the new host.

How would you achieve this?

Options:

A.

by using the RMAN switch command to set the new location for the data files

B.

by using the RMAN duplicate command with no filename check to recover the database to the new host

C.

by using the RMAN duplicate command with dbid and set newname for tablespace to recover the database to the new host

D.

by creating a new database in the new host, and then using the RMAN recover command

Question 19

You need to perform a block media recovery on the tools01.dbf data file in your database by using Recovery Manager (RMAN).

Which two are prerequisites for performing this operation?

Choose two.

Options:

A.

You must take the tools01.dbf data file offline.

B.

You must ensure that the database is mounted or open.

C.

You must use an incremental level-1 backup to restore blocks.

D.

You must configure a block change tracking file.

E.

You must have full or level-0 backups to restore blocks.

Question 20

Which two statements are true about unified auditing?

Options:

A.

A unified audit trail captures audit information from unified audit policies and audit settings.

B.

Unified auditing is enabled by executing make-fins_rdbms.mk uniaud_onioracle ORACLE_HOME=SORACLE_HOME.

C.

Audit records are created for all users except sys.

D.

Audit records are created only for the DML and DDL operations performed on database objects.

E.

Unified auditing is enabled by setting the audit_trail parameter to db, extended.

F.

A unified audit trail resides in a read-only table in the audsys schema in the system tablespace.

Question 21

You enable Flashback Data Archive for a table for which you want to track and save all transactions for four years. After some time, the requirement changes for keeping transactions from four to two years.

You execute the following command to change the requirement:

SQL> ALTER FLASHBACK ARCHIVE fdal MODIFY RETENTION 2 YEAR;

What is the outcome?

Options:

A.

An error is returned because the retention period cannot be reduced

B.

All historical data older than two years, if any, is archived to flashback logs and the flashback archive is set to new retention time

C.

All historical data older than two years, if any, is purged from the flashback archive FDA1.

D.

All the flashback data archives are purged and the subsequently created flashback archives are maintained for two years

Question 22

Your multitenant container database (CDB) CDB1 has two pluggable databases, PDB1 and PDB2. The local net service name CDB1 connects to the root database, and the service names PDB1 and PDB2 connect to the pluggable databases (PDBs), PDB1 and PDB2, respectively.

Examine the commands to change the value of the PDB modifiable initialization parameter:

$> sqlplus sys/oracle_4U@pdb1 AS SYSDBA

SQL> ALTER SYSTEM SET optimizer_use_sql_plan_baselines=FALSE SCOPE=BOTH;

SQL> CONN sys/oracle_4U@pdb2 AS SYSDBA

SQL> ALTER SYSTEM SET optimizer_use_sql_plan_baselines=TRUE SCOPE=BOTH;

SQL> CONN sys/oracle_4U@pdb1 AS SYSDBA

SQL> ALTER SYSTEM SET optimizer_use_sql_plan_baselines=TRUE SCOPE=BOTH;

Which statement is true about the OPTIMIZER_USER_SQL_PLAN_BASELINES parameter? (Choose the best answer.)

Options:

A.

It gives an error because it cannot be set for the root database.

B.

It is set to TRUE for the root database and the pluggable database PDB2, because values can be set for this parameter at the PDB level in a PDB.

C.

It is set to TRUE for the root database and all the PDBs, because the value set at the root level has higher precedence.

D.

It is set to TRUE for the root database and all the PDBs, but is effective only when CDB is restarted and the PDBs are reopened.

Question 23

Identify two scenarios in which the RMAN crosscheck command can be used.

Options:

A.

when checking for backups that are not required as per the retention policy

B.

when updating the RMAN repository if any of the archived redo log files have been deleted without using RMAN to do the deletes

C.

when updating outdated information about backups that disappeared from disk or media or became corrupted and inaccessible

D.

when synchronizing backups, which were not performed by using RMAN, with the RMAN repository

E.

when listing backups that are required for recovery operations

Question 24

Which three statements are true about transportable databases? (Choose three.)

Options:

A.

The transported database must have the same database identifier (DBID) as the source database

B.

Recovery Manager (RMAN) is used to convert the necessary data files of a database if the endian format of the target platform is different

C.

The COMPATIBLE parameter must be set to 10.0.0 or higher and the database must be opened in read-only mode before being transported

D.

Redo logs and control files are also transported

E.

Both the source and target databases must use the same character set

Question 25

You issue the RMAN command:

RMAN> BACKUP SECTION SIZE 300M TABLESPACE users;

Which statement is true about the execution of the command?

Choose the best answer.

Options:

A.

The backup succeeds only if the USERS tablespace is locally managed.

B.

RMAN uses multiplexing to perform the backup.

C.

The resulting backupset has backup pieces that cannot exceed 300 MB.

D.

RMAN always performs this type of backup in parallel.

E.

The backup set size is limited to 300 MB.

Question 26

The CATDB12c database contains an Oracle Database version 12c catalog schema owned by the RC12C user.

The RCAT11 database contains an Oracle Database version 11g catalog schema owned by the RC11 user in which several databases are registered. Both the databases are open.

You execute the RMAN commands:

RMAN> CONNECT CATALOG rc12c/pass12c@catdb12c

RMAN> IMPORT CATALOG rc11/pwdcat11@ract11

Which two tasks are performed as part of the import? (Choose two.)

Options:

A.

All databases registered in the RC11 catalog are registered in the RC12C catalog.

B.

Databases from the RC12C catalog are implicitly unregistered if the RC11 catalog has registered databases with same name.

C.

Local and global stored scripts that have the same name as existing scripts in the RC12C catalog are automatically renamed.

D.

Imported databases are unregistered from the RC11 catalog.

E.

Recovery catalog is resynchronized with the control files of the registered databases.

Question 27

Examine these Data Pump commands to export and import objects from and to the same database.

The dba has not yet created users hr1 and oe1.

$expdp system/manager

schemas = hr.oe

directory = EXP_DIR

dumpfile = export.dat

include = table

$ impdpsysten/manager

schemas = hr1,oe1

directory = EXP_DIR

dumpfile = export.dat

remap_schena=hr:hrl, oe:oe1

What will happen when running these commands?

Options:

A.

expdp will fail because no path has been defined for the dumpfile.

B.

expdp will succeed but impdp will fail because the users do not exist.

C.

inpdp will create two users called hr1 and oe1 and import all objects to the new schemas.

D.

impdp will create two users called hr1 and oe1 and import only the tables owned by hr and oe schemas to ht1 and oe1 schemas, respectively.

Question 28

Your database supports an OLTP workload. Examine the output of the query:

SQL> SELECT target_mttr, estimated_mttr

FROM v$instance_recovery

Target_mttr estimated_mttr

---------------------- ---------------------------

0 76

To ensure faster instance recovery, you set the fast_start_mttr_target initialization parameter to 30.

What is the effect of this setting on the database?

Options:

A.

Automatic checkpoint tuning is disabled.

B.

The frequency of log switches is increased.

C.

The overhead on database performance is increased because of frequent writes to disk.

D.

The MTTR advisor is disabled.

Question 29

You are installing Oracle Database 12c with the Oracle Universal Installer (OUI). You select the option to create a database by using file system storage but you do not explicitly set ORACLE_BASE. What is the effect on the installation?

Options:

A.

The installation proceeds with the default value but a message is generated in the alert log file

B.

The installation terminates with an error

C.

The installation proceeds with the default value but the database creation is not attempted

D.

The software installation proceeds with the default value but database creation fails

Question 30

Which two statements are true about Enterprise Manager (EM) Express in Oracle Database 12c? (Choose two.)

Options:

A.

You can perform basic administrative tasks for all pluggable databases hosted by the same container database using a single instance of EM Express

B.

You can create and configure pluggable databases by using EM Express

C.

You can use a single instance of EM Express to manage multiple databases running on the same server

D.

You cannot start up or shut down a database instance by using EM Express

E.

By default, EM Express is available for a database after database creation using DBCA

Question 31

Users report this error message when inserting rows into the orders table:

ERROR atline1:

ORA-01654f:unable to extend index USERS.ORDERS_IND by 8in tablespace INDEXES

You determine that the indexes tablespace is out of space and there is no free space on the filesystem used by the Oracle database.

Which two must you do to fix this problem without affecting currently executing queries?

Options:

A.

drop and re-create the index

B.

coalesce the orders„ind index

C.

coalesce the indexes tablespace

D.

perform an on line table rebuild using dbns_redefir.ition.

E.

rebuild the index online moving it to another tablespace that has enough free space for the index

Question 32

Examine the following impdp command to import a database over the network from a pre-12c Oracle database (source):

$> impdp full=Y network_link=hrdb_test transportable=always

transport_datafiles=

‘/u01/app/oracle/oradata/hrdb/sales01.dbf’,

‘/u01/app/oracle/oradata/hrdb/cust01.dbf’,

‘/u01/app/oracle/oradata/hrdb/emp01.dbf’,

version=12 logfile=import.log

Which three are prerequisites for successful execution of the command?

Options:

A.

The impdp operation must be performed by the same user that performed the expdp operation.

B.

The path of data files on the target database must be the same as that on the source database.

C.

The export dump file must be created before starting the import on the target database.

D.

All the user defined tablespaces must be in read-only mode on the source database.

E.

The import operation must be performed by a user on the target database with the DATAPUMP_IMP_FULL_DATABASE role, and the database link must connect to a user on the source database with the DATAPUMP_EXP_FULL_DATABASE role.

F.

The source and target databases must be running on the same platform with the same endianness.

Question 33

Your Oracle 12c multitenant container database (CDB) contains multiple pluggable databases (PDBs). In the PDB hr_pdb, the common user c##admin and the local user b_admin have only the connect privilege.

You create a common role c##role1 with the create table and select any table privileges.

You then execute the commands:

SQL> GRANTc##role1 TO##Madmin CONTAINER=ALL;

SQL>CONNsys/oracle@HR_PDB as sysdba

SQL> GRANTc##role1TO b_admin CONTAINER=CURRENT;

Which two statements are true?

Options:

A.

C##admin can create and select any table, and grant the c##role1 role to users only in the root container.

B.

B_admin can create and select any table in both the root container and Hr_pdb.

C.

c##admin can create and select any table in the root container and all the PDBs.

D.

B_admin can create and select any table only in hr_pdb.

E.

The grant c##role1 to b_admin command returns an error because container should be set to ALL.

Question 34

You are administering a multitenant container database (CDB) that contains multiple pluggable databases (PDBs). RMAN is connected to CDB$ROOT.

Examine the command:

RMAN> LIST FAILURE;

Which statement is true about this command?

Options:

A.

It lists failures only if RMAN is connected to a PDB.

B.

It lists failures for the CDB and all the PDBs in this CDB.

C.

It lists failures for a PDB only when RMAN is connected to a recovery catalog.

D.

It lists failures only for the CDB root database.

Question 35

Which four tablespace types can be renamed?

Choose four.

Options:

A.

the default permanent tablespace

B.

the SYSTEM tablespace

C.

a temporary tablespace

D.

a read-only tablespace

E.

an offline tablespace

F.

an undo tablespace

Question 36

You plan to migrate a production database to Real Application Clusters (RAC).

You created a test RAC database by cloning the production database and plan to replay a workload, captured from the production database.

Examine these steps:

1) Preprocess the captured workload.

2) Restart the database instance in RESTRICTED mode.

3) Set up Replay Clients.

4) Restore the test database to the point when the capture started on the production database.

5) Remap connections.

Which is the correct sequence of required steps?

Options:

A.

1, 4, 3, 5

B.

1, 4, 5, 3

C.

2, 1, 5, 3, 4

D.

1, 2, 4, 5, 3

Question 37

The SYS user creates this job:

Which two statements are true about this job? (Choose two.)

Options:

A.

It executes with the privileges of SYS

B.

It is automatically dropped after the last run

C.

The globalization environment that exist at job creation is used run time

D.

It executes with the privileges of OPS

Question 38

Which two statements are true regarding SecureFile lobs?

Options:

A.

The amount of undo retained is user controlled.

B.

They can be used only for nonpartitioned tables.

C.

Fragmentation is minimized by using variable-sized chunks.

D.

They support random reads and writes of encrypted LOB data.

Demo: 38 questions
Total 263 questions