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

Oracle 1z0-063 Oracle Database 12c: Advanced Administration Exam Practice Test

Demo: 41 questions
Total 276 questions

Oracle Database 12c: Advanced Administration Questions and Answers

Question 1

Your multitenant container database (CDB) CDB1 that is running in ARCHIVELOG mode contains two pluggable databases (PDBs), PDB2_1 and PDB2_2. RMAN is connected to the target database PDB2_1.

Examine the command executed to back up PDB2_1:

RMAN> BACKUP DATABASE PLUS ARCHIVELOG;

Which statement is true about the execution of this command?

Options:

A.

It fails because archive log files cannot be backed up using a connection to a PDB.

B.

It succeeds but only the data files belonging to the PDB2_1 pluggable database are backed up.

C.

It succeeds and all data files belonging to PDB2_1 are backed up along with the archive log files.

D.

It fails because the PLUGGABLE clause is missing.

Question 2

You set the following parameters in the parameter file and restart the database instance:

NEMORY_MAX_TARGET=0

MEMORY__TARGET=500M

PGA_AGGREGATE_TARGET=90M

SGA_TARGET=270M

Which two statements are true? (Choose two.)

Options:

A.

The memory_max_target parameter is automatically set to 500 MB.

B.

The pga_aggregate_target and sga_target parameters are automatically set to zero.

C.

The value of the memory_max_target parameter remains zero for the database instance.

D.

The lower limits of the pga_aggregate_target and sga_target parameters are set to 90 MB and 270 MB respectively.

E.

The instance does not start up because Automatic Memory Management (AMM) is enabled but pga_aggregate_target and sga_target parameters are set to nonzero values.

Question 3

Examine the commands:

SQL> ALTER SESSION SET RECYCLEBIN = ON;

Session altered.

SQL> DROP TABLE emp; --(First EMP table)

Table dropped.

SQL> CREATE TABLE emp(id NUMBER CONSTRAINT emp_id_idx PRIMARY KEY, name VARCHAR2 (15), salary NUMBER(7,2));

Table created.

You then execute multiple INSERT statements to insert rows into the EMP table and drop the table again:

SQL> DROP TABLE emp; -- (Second EMP table)

Table dropped.

SQL> FLASHBACK TABLE emp TO BEFORE DROP;

Which statement is true about the FLASHBACK command?

Options:

A.

It recovers the structure, data, and indexes of the first EMP table.

B.

It recovers only the structure of the second EMP table.

C.

It returns an error because two tables with the same name exist in the recycle bin.

D.

It recovers the structure, data, and indexes of the second EMP table.

Question 4

Which three statements are true about automated maintenance tasks? (Choose three.)

Options:

A.

Predefined maintenance tasks consist of automatic optimizer statistics collection, running Automatic Segment Advisor, and running Automatic SQL Tuning Advisor.

B.

A repository is maintained in the SYSTEM tablespace to store the history of execution of all tasks.

C.

They run at predefined time intervals that are intended to occur during a period of low system loads.

D.

An Oracle Scheduler job is created for each maintenance tasks that is scheduled to run in a maintenance window.

E.

A maintenance window is automatically extended until all the maintenance tasks defined are completed.

Question 5

Your multitenant container database (CDB) contains multiple pluggable databases (PDBs). You execute the command to create a common user:

SQL> CREATE USER c##a_admin

IDENTIFIED BY password

DEFAULT TABLESPACE users

QUOTA 100M ON users

TEMPORARY TABLESPACE temp;

Which statement is true about the execution of the command?

Options:

A.

The common user is created in the CDB and all the PDBs, and uses the USERS and TEMP tablespaces of the CDB to store schema objects.

B.

The command succeeds only if all the PDBs have the USERS and TEMP tablespaces.

C.

The command gives an error because the CONTAINER=ALL clause is missing.

D.

The command succeeds and sets the default permanent tablespace of a PDB as the default tablespace for the C##A_ADMIN user if the USERS tablespace does not exist in that PDB.

Question 6

You want to consolidate databases for the CRM, ERP, and SCM applications by migrating them to pluggable databases (PDBs).

You have already created a test system to support the consolidation of databases in a multitenant container database (CDB) that has multiple PDBs.

What is the easiest way to perform capacity planning for consolidation?

Options:

A.

capturing the most resource-intensive SQL statements in a SQL Tuning Set on the production system and using the SQL Performance Analyzer on the test system

B.

capturing the workload on the production system and replaying the workload for one PDB at a time on the test system

C.

capturing the workload on the production system and using Consolidated Database Replay to replay the workload of all production systems simultaneously for all PDBs

D.

capturing the most resource-intensive SQL statements in a SQL Tuning Set on the production system and using the SQL Tuning Advisor on the test system

Question 7

Examine this query:

SELECT cust_name, amt_due

FROM customers

AS OF TIMESTAMP (SYSTIMESTAMP - INTERVAL '6' MINUTE)

WHERE cust_no = 'AYR2011';

Which two requirements guarantee that the query will execute successfully? (Choose two.)

Options:

A.

Row movement must be enabled for CUSTOMERS.

B.

Automatic Undo Management must be configured.

C.

FLASHBACK must be ON for the database.

D.

Undo retention guarantee must be enabled.

E.

The database must be in ARCHIVELOG mode.

F.

Supplemental logging must be enabled.

Question 8

You are administering a multitenant container database (CDB) that contains two pluggable databases (PDBs), PDB1 and PDB2. You are connected to PDB2 as a common user with DBA privileges.

The STATISTICS_LEVEL parameter is PDB modifiable.

As the user SYS, execute the following command on PDB2:

SQL> ALTER SYSTEM SET STATISTICS_LEVEL=ALL SID='*' SCOPE=SPFILE;

Which statement is true about the result of this command?

Options:

A.

The STATISTICS_LEVEL parameter is set to ALL when any of the PDBs is reopened.

B.

The STATISTICS_LEVEL parameter is set to ALL only for PDB2 when it is reopened.

C.

The STATISTICS_LEVEL parameter is set to ALL when the root database is restarted.

D.

The statement is ignored because there is no SPFILE for a PDB.

Question 9

In CDB$ROOT of your multitenant container database (CDB), you create a common user, C##A_ADMIN, and then execute the command:

Which statement is true?

Options:

A.

The command executes successfully, enabling the C##A_ADMIN user to create a tablespace only in the root database.

B.

The command executes successfully, enabling the C##A_ADMIN user to create tablespaces in the root database, as well as in the pluggable databases (PDBs).

C.

The command fails because the CONTAINER clause is not used.

D.

The command fails because system privileges cannot be granted to a common user.

Question 10

RMAN is configured to create backupset backups for your database. You issue the command to back up the database:

RMAN> BACKUP DATABASE PLUS ARCHIVELOG DELETE INPUT;

Which two statements are true about the backup performed by the command? (Choose two.)

Options:

A.

Only the used blocks in the data files are backed up.

B.

It backs up all the data files and deletes obsolete backups after the backup is complete.

C.

It backs up only those archived log files that are not backed up at least once.

D.

It backs up all the archived log files and deletes the ones that were just backed up.

E.

It backs up all archived redo log files and online log files and deletes the archived log files after the backup is complete.

Question 11

Identify three reasons for using a recovery catalog with Recovery Manager (RMAN). (Choose three.)

Options:

A.

to store backup information of multiple databases in one place

B.

to restrict the amount of space that is used by backups

C.

to maintain a backup for an indefinite period of time by using the KEEP FOREVER clause

D.

to store RMAN scripts that are available to any RMAN client that can connect to target databases registered in the recovery catalog

E.

to automatically delete obsolete backups after a specified period of time

Question 12

You issue commands in SQL*Plus as the Oracle owner, to enable multithreading for your UNIX-based Oracle 12c database:

CONNECT /AS SYSDBA

ALTER SYSTEM SET THREADED_EXECUTION=TRUE SCOPE=SPFILE;

SHUTDOWN IMMEDIATE

You then restart the instance and get an error:

STARTUP

ORA-01031: insufficient privileges

Why does the startup command return the error shown?

Options:

A.

because the threaded architecture requires exiting from sql*plus and reconnecting with sql*Plus / as sysdba before issuing a startup command

B.

because the threaded architecture requires issuing a new connect / as sysdba from within sql*plus before issuing a startup command

C.

because the threaded architecture requires authentication using a password file before issuing a startup command

D.

because the threaded architecture requires connecting to the instance via a listener before issuing a startup command

E.

because the threaded architecture requires restarting the listener before issuing a startup command

Question 13

Examine the statements that use flashback technologies:

1. FLASHBACK TABLE customers TO TIMESTAMP TO_TIMESTAMP(‘2013-02-04 09:30:00’, ‘YYYY-MM-DD HH:MI:SS’);

2. SELECT * FROM customers AS OF SCN 123456;

3. FLASHBACK TABLE customers TO BEFORE DROP;

4. FLASHBACK DATABASE TO TIMESTAMP TO_TIMESTAMP(‘2013-02-04 09:30:00’, ‘YYYY-MM-DD HH:MI:SS’);

5. SELECT * FROM customers VERSIONS BETWEEM SCN 123456 AND 123999;

6. ALTER TABLE customers FLASHBACK ARCHIVE;

Which set of statements depends on the availability of relevant undo data in the undo tablespace?

Options:

A.

1, 2, 5

B.

1, 3, 6

C.

2, 3, 5, 6

D.

3, 4, 5

Question 14

Automatic Undo Management is enabled for your database. You want a user to retrieve metadata and historical data for a given transaction or for transactions in a given time interval.

Which three are prerequisites to fulfill this requirement? (Choose three.)

Options:

A.

Minimal supplemental logging must be enabled.

B.

The database must be running in archivelog mode.

C.

Flashback Data Archive must be created and the flashback archive administer system privilege must be granted to the user.

D.

The flashback any table privilege must be granted to the user.

E.

The select any transaction privilege must be granted to the user.

F.

The recycle bin parameter must be set to on.

Question 15

You want to create a duplicate database DUP_DB from your production database PROD on the same host. The PROD database uses Automatic Storage Management (ASM) for storage. Regular backups are taken using RMAN connected to a recovery catalog.

You create an auxiliary instance and want to execute the command:

What is a prerequisite for the successful execution of this command?

Options:

A.

The target database must be in MOUNT state.

B.

RMAN must be connected to the target database instance and the auxiliary instance.

C.

A most recent backup set of the PROD database must exist.

D.

Flashback must be enabled for the PROD database.

Question 16

Examine the resources consumed by a database instance whose current Resource Manager plan is displayed.

SQL> SELECT name, active_sessions, queue_length,

consumed_cpu_time, cpu_waits, cpu_wait_time

FROM v$rsrc_consumer_group;

Which two statements are true? (Choose two.)

Options:

A.

An attempt to start a new session by a user belonging to DSS_QUERIES fails with an error.

B.

An attempt to start a new session by a user belonging to OTHE_GROUPS fails with an error.

C.

The CPU_WAIT_TIME column indicates the total time that sessions in the consumer group waited for the CPU due to resource management.

D.

The CPU_WAIT_TIME column indicates the total time that sessions in the consumer group waited for the CPU due to I/O waits and latch or enqueue contention.

E.

A user belonging to the DSS_QUERIES resource consumer group can create a new session but the session will be queued.

Question 17

You issue the RMAN command:

RMAN> BACKUP SECTION SIZE 300M TABLESPACE users;

Which statement is true about the execution of the command?

Options:

A.

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

B.

RMAN uses multiplexing to perform the backup.

C.

RMAN always performs this type of backup in parallel.

D.

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

E.

The backup set size is limited to 300 MB.

Question 18

Examine the output:

SQL> ARCHIVE LOG LIST

Database log modeArchive Mode

Automatic archival Enabled

Archive DestinationUSE_DB_RECOVERY_FILE_DEST

Oldest online log sequence376

Next log sequence to archive378

Current log sequence378

Which three types of files are automatically placed in the fast recovery area? (Choose three.)

Options:

A.

Flashback data archives (FDA)

B.

Archived redo log files

C.

Control file autobackups

D.

Server parameter file (SPFILE)

E.

Recovery Manager (RMAN) backup pieces

Question 19

RMAN is connected to a target database instance and an auxiliary instance. You execute the command:

What is the outcome?

Options:

A.

RMAN uses the push method to transfer image copies.

B.

RMAN uses the push method to transfer backup sets.

C.

RMAN uses the pull method to restore files using backup sets.

D.

RMAN uses the pull method to restore files using image copies.

Question 20

You want RMAN to make duplicate copies of data files when using the BACKUP command.

What must you set using the RMAN CONFIGURE command to achieve this?

Options:

A.

MAXSETSIZE TO 2;

B.

DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;

C.

CHANNEL DEVICE TYPE DISK FORMAT '/disk1/%U' , '/disk2/%U';

D.

DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 2;

Question 21

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

Options:

A.

Use PDB$SEED for creating a PDB.

B.

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

C.

Clone an existing PDB.

D.

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

E.

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

Question 22

Which three RMAN persistent settings can be set explicitly? (Choose three.)

Options:

A.

archivelog deletion policy

B.

SPFILE backup duplexing

C.

image copy duplexing

D.

archivelog backup duplexing

E.

redo log backup duplexing

F.

controlfile autobackup formats

Question 23

Which two statements are true about the Automatic Diagnostic Repository (ADR)? (Choose two.)

Options:

A.

The ADR base is shared across multiple instances.

B.

The ADR base keeps all diagnostic information in binary format.

C.

The ADR can be used to store statspack snapshots to diagnose database performance issues.

D.

The ADR can be used for problem diagnosis even when the database instance is down.

E.

The ADR is used to store Automatic Workload Repository (AWR) snapshots.

Question 24

You create two Resource Manager plans, one for night time workloads, the other for day time.

How would you make the plans switch automatically?

Options:

A.

Use job classes.

B.

Use scheduler windows.

C.

Use the mapping rule for the consumer groups.

D.

Set the switch_time plan directive for both plans.

E.

Use scheduler schedules.

Question 25

Which four actions are possible during an Online Datafile Move operation? (Choose four.)

Options:

A.

Creating and dropping tables in the datafile being moved

B.

Performing file shrink of the data file being moved

C.

Querying tables in the datafile being moved

D.

Performing Block Media Recovery for a data block in the datafile being moved

E.

Flashing back the database

F.

Executing DML statements on objects stored in the datafile being moved

Question 26

You are administering a database that supports a data warehousing workload and is running in noarchivelog mode. You use RMAN to perform a level 0 backup on Sundays and level 1 incremental backups on all the other days of the week.

One of the data files is corrupted and the current online redo log file is lost because of a media failure.

Which action must you take for recovery?

Options:

A.

Restore the data file, recover it by using the recover datafilenoredo command, and use the resetlogs option to open the database.

B.

Restore the control file and all the data files, recover them by using the recover database noredo command, and use the resetlogs option to open the database.

C.

Restore all the data files, recover them by using the recover database command, and open the database.

D.

Restore all the data files, recover them by using the recover database noredo command, and use the resetlogs option to open the database.

Question 27

You execute the commands to configure settings in RMAN:

Then, you issue the following command to take a backup:

Which statement is true about the execution of these commands?

Options:

A.

The backup terminates because the backup destination for disk is not specified in the BACKUP command.

B.

It backs up two copies each of the data files to disk and media, and two copies of archived logs to media.

C.

It backup up the data files and archived logs, making one copy of each data file and archived log on disk and media.

D.

It backs up the data files and archived logs to media, making two copies of each data file and archived logs.

Question 28

Your database is running in ARCHIVELOG mode and a nightly backup of the database, along with an autobackup of the control file, is taken by using RMAN. Because of a media failure, the SPFILE and the control files are lost.

Examine the steps to restore the SPFILE and the control file to mount the database:

1. Set DBID of the target database in RMAN.

2. Start the database instance by using the STARTUP FORCE NOMOUNT command in RMAN.

3. Restore the control files from the backup.

4. Mount the database.

5. Restore the SPFILE from the autobackup.

6. Create a PFILE from the recovered SPFILE.

7. Restart the instance in NOMOUNT state.

Identify the required steps in the correct order.

Options:

A.

1, 2, 5, 3, 6, 4

B.

1, 2, 3, 5, 6, 4

C.

2, 1, 5, 7, 3, 4

D.

2, 1, 5, 6, 7, 4, 3

Question 29

You are administering a multitenant container database (CDB) CDB1 with two pluggable databases (PDBs), PDB1 and PDB2. You execute the following commands on CBD$ROOT as the SYS user:

SQL> CREATE USER c##scott IDENTIFIED BY scottorcl1;

SQL> GRANT CREATE SESSION TO c##scott;

Which statement is true about the C##SCOTT user?

Options:

A.

It is created in all the PDBs with the CREATE SESSION privilege.

B.

It is created in all the PDBs but has the CREATE SESSION privilege only in CDB$ROOT.

C.

It is created and has the CREATE SESSION privilege only in a PDB that is open.

D.

It is created only in CDB$ROOT and has the CREATE SESSION privilege.

Question 30

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

The CATDB11 database contains an Oracle Database l1g catalog schema owned by the RC11 user.

A database with DBID=1423241 is registered in the CATDB11 catalog. Both the recovery catalog databases are open.

In the CATDB12c database, you execute the commands:

What is the outcome of the import?

Options:

A.

It fails because the target database and recovery catalog database are of different versions.

B.

It succeeds and all global scripts in the RC11 catalog that have the same name as existing global scripts in the RC12C catalog are automatically renamed.

C.

It succeeds but the database is not automatically registered in the RC12c catalog.

D.

It fails because RMAN is not connected to the target database with DBID=1423241.

Question 31

Which activity is audited by default and recorded in the operating system audit trail irrespective of whether or not database auditing is enabled?

Options:

A.

configuration of unified auditing mode

B.

execution of SQL statements by users connected with the SYSDBA privilege

C.

usage of the AUDIT statement

D.

creation of a fine grained audit policy

Question 32

In which three situations must you use a recovery catalog? (Choose three.)

Options:

A.

when you want to store RMAN global scripts that can be used across multiple databases

B.

when you want to restrict the amount of space used by backups

C.

when you want to perform incremental backups by using a block change tracking file

D.

when you want to list data files that were in a target database at a given time by using the AT clause with the REPORT SCHEMA command

E.

when you want to maintain backup metadata longer than the period specified by the CONTROL_FILE_RECORD_KEEP_TIME parameter

Question 33

One of your databases supports a data warehousing workload and is in NOARCHIVELOG mode. You perform RMAN level 0 backup on Sundays and level 1 incremental backups on other days.

One data file is corrupt and the current online redo log is missing due to media failure.

Which four actions must you take for recovery? (Choose four.)

Options:

A.

Restore the missing data file.

B.

Recover the database by using RECOVER DATABASE NOREDO;

C.

Recover the database by using RECOVER DATABASE;

D.

Restore the control file.

E.

Open the database by using the RESETLOGS option.

F.

Recover the corrupt file by using RECOVER DATAFILE.

G.

Restore all data files.

Question 34

Which three requirements should be successfully met by an Oracle Secure Backup (OSB) user so that OSB performs RMAN backup or restore requests? (Choose three.)

Options:

A.

RMAN preauthorization on the host

B.

OSB encryption for data in transport and on tape

C.

matching the OS user identity of the Oracle instance associated with the database username

D.

assigned to a class with rights to back up or restore Oracle database

E.

scheduling of the RMAN backup to occur automatically at user-defined intervals

F.

assigned to a class with rights to browse all directories and catalogs

Question 35

You execute the command to recover your database:

Which statement is true?

Options:

A.

It restores all data files from the specified time, and then applies the redo logs.

B.

It restores all data files, redo log files, and control files, and then applies the redo logs up to the specified time.

C.

It restores all data files and control files from the most recent backup taken before the “until time”, and then recovers up to the “until time” using any restored archive logs that are needed to complete the task.

D.

It restores the control file and all data files from the most recent backups, and then applies the redo logs up to the “until time”.

Question 36

You are administering a multitenant container database (CDB) that contains multiple pluggable databases (PDBs). You are connected to cdb$root as the sys user. You execute the commands:

SQL> CREATE USER C##ADMIN IDENTIFIED BY orcll23;

SQL> CREATE ROLE C##CONNECT;

SQL> GRANT CREATE SESSION, CREATE TABLE, SELECT ANY TABLE TO C##CONNECT;

SQL> GRANT C##CONNECT to C##ADMIN CONTAINER=ALL;

Which statement is true about the c##connect role?

Options:

A.

It is created only in cdb$root and cannot be granted to the c##admin user with the container=all clause.

B.

It is granted to the c##admin user only in the CDB.

C.

It is granted to the c##admin user in all PDBs and can be granted only to a local user in a PDB.

D.

It is granted to the c##admin user in all PDBs and can be granted object and system privileges for a PDB.

Question 37

You want to create a guaranteed restore point for one of your databases by executing the command:

SQL> CREATE RESTORE POINT dbrsp1 GUARANTEE FLASHBACK DATABASE;

Which two are required for the successful execution? (Choose two.)

Options:

A.

The database must be in ARCHIVELOG mode.

B.

Flashback Database must be enabled.

C.

The Fast Recovery Area must be configured.

D.

The database must be mounted.

E.

Undo retention guarantee must be enabled.

F.

The database must be opened.

Question 38

You want to export the pluggable database (PDB) HR_PDB1 from the multitenant container database (CDB) CDB1 and import it into the CDB2 CDB as the EMP_PDB1 PDB.

Examine the list of possible steps required to perform the task:

1. Create a PDB named EMP_PDB1.

2. Export the HR_PDB1 PDB by using the FULL clause.

3. Open the EMP_PDB1 PDB.

4. Mount the EMP_PDB1 PDB.

5. Synchronize the EMP_PDB1 PDB in restricted mode.

6. Copy the dump file to the Data Pump directory.

7. Create a Data Pump directory in the EMP_PDB1 PDB.

8. Import data into EMP_PDB1 with the FULL and REMAP clauses.

9. Create the same tablespaces in EMP_PDB1 as in HR_PDB1 for new local user objects.

Identify the required steps in the correct order.

Options:

A.

2, 1, 3, 7, 6, and 8

B.

2, 1, 4, 5, 3, 7, 6, 9, and 8

C.

2, 1, 3, 7, 6, 9, and 8

D.

2, 1, 3, 5, 7, 6, and 8

Question 39

Your multitenant container database (CDB) CDB1, has no startup triggers and contains multiple pluggable databases (PDBs).

It was started up by using the command which executed successfully with no errors:

SQL> STARTUP MOUNT

Which two statements are true? (Choose two.)

Options:

A.

All redo logs are opened.

B.

All control files are opened.

C.

All tempfiles are opened.

D.

CDB$ROOT is opened.

E.

The SPFILE is opened.

Question 40

You notice a performance change in your production Oracle 12c database. You want to know which change caused this performance difference.

Which method or feature should you use?

Options:

A.

Compare Period ADDM report

B.

AWR Compare Period report

C.

Active Session History (ASH) report

D.

Taking a new snapshot and comparing it with a preserved snapshot

Question 41

Identify two scenarios in which the RMAN CROSSCHECK command can be used. (Choose two.)

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

Demo: 41 questions
Total 276 questions