I went through Oracle training and read study material helped me to get through this exam.
This exam has two section.
Section 1 is New features of Oracle database 12c. Passing score is 64%. I scored 86%.
Section 2 is Key DBA skills. Passing score is 65%. I scored 90%.
Here are some sample OCP questions.
Question 1
A database is stored in Automatic storage management(ASM) disk group, disk group, DGROUP1
with SQL :
SQL > CREATE DISKGROUP dgroup1 NORMAL REDUNDANCY
FAILGROUP controller1 DISK '/devices/diska1','/devices/diska2'
FAILGROUP controller2 DISK '/devices/diskb1','/devices/diskb2';
There is enough free space in the disk gorup for mirroring to be done.
What happens if the CONTROLLER1 failure group becomes unavailable due to maintenance error?
Question 2
In your Multitenant container database(CDB) containing pluggable database(CDB), users complain about performance degradation.
How does real - time automatic database diagnostic monitor check performance degradation and provide solutions?
a) It collects data from SGA and compares it with a preserved snapshot.
b) It collects data from SGA, analyze it and provides a report.
c) It collects data from SGA and compares it with a latest snapshot.
d) It collects data from both SGA and PGA, analyze it and provides a report.
Question 3
Your Multitenant container database(CDB) has three pluggable database(PDB's) : PDB1,PDB2,PDB3.
Which two RMAN commands may be, used to backup only the PDB1 pluggable database?
a) BACKUP PLUGGABLE DATABASE PDB1 while connected to the root container.
b) BACKUP PLUGGABLE DATABASE PDB1 while connected to the PDB1 container.
c) BACKUP DATABASE while connected to the PDB1 container.
d) BACKUP DATABASE while connected to the boot container.
e) BACKUP PLUGGABLE database PDB1 while connected to PDB2.
The answer A and C.
Question 4
To enable the Database Smart Flash Cache, you configure the following parameters:
DB_FLASH_CACHE_FILE='/dev/flash_device_1','/dev/flash_device_2'
DB_FLASH_CACHE_SIZE=64G
What is the result when you start up the database instance?
a)It result in an error because these parameter settings are invalid
b)One 64G flash cache file will be used
c)Two 64G flash cache file will be used
d)Two 32G flash cache file will be used
The answer A
Question 5
Your database is running an ARCHIVELOG mode,
The following parameter are set in your database instance.
LOG_ARCHIVE_FORMAT=arch+%t_%r.arc
LOG_ARCHIVE_DEST_1='LOCATION=/disk1/archive'
DB_RECOVERY_FILE_DEST_SIZE=50G
DB_RECOVERY_FILE='/u01/oradata'
Which statement is true about the archived log redo files?
a)They are created only in the location specified by the LOG_ARCHIVE_DEST_1 parameter
b) They are created only in the Fast Recovery Area
c) They are created in the location specified by the LOG_ARCHIVE_DEST_1 parameter and in the default location $ORACLE_HOME/dbs/arch
d) They are created in the location specified by the DB_RECOVERY_FILE_DEST_1 parameter and location specified by DB_RECOVERY_FILE_DEST parameter.
The answer A
Question 6
Your multitenant container(CDB) contains two pluggable database(PDB), HR_PDB and ACCOUINTS_PDB, both of which use the CDB tablespace. The temp file is
called temp01.tmp.
A user issues a query on a table on one of the PDBs and receives the following error.
ERROR at line 1:
ORA-01565: error in identifying file '/u01/app/oracle/oradata/CDB1/temp01.tmp'
ORA-27037: unable to obtain file status
Identify two ways to rectify the error.
a) Add a new temp file to the temporary tablespace and drop the temp file that produced the error
b) Shut down the database instance, restore the temp01.tmp file from the backup, and then restart the database
c) Take the temporary tablespace offline, recover the missing temp file by applying redo logs, and then bring the temporary tablespace online
d) shutdown the database instance, restore and recover the temp file from the backup, and then open the database with RESETLOGS
e) shutdwon the database instance and then restart CDB and PDBs
The answer A and E.
Question 7
The persistent configuration settings for RMAN have defualt for all parameters.
Identify four RMAN commands that produce a multi-section backup.
a) BACKUP TABLESPACE SYSTEM SECTION SIZE 100M
b) BACKUP AS COPY TABLESPACE SYSTEM SECTION SIZE 100M
c) BACKUP ARCHIVELOG ALL SECTION SIZE 25M
d) BACKUP TABLESPACE "TEMP" SECTION SIZE 10M
e) BACKUP TABLESPACE "UNDO" INCLUDE CURRENT CONTROLFILE SECTION SIZE 100M
f) BACKUP SPFILE SECTION SIZE 1M
g) BACKUP INCREMENTAL LEVEL 0 TABLESPACE SYSAUX SECTION SIZE 100M
Question 8
Which two are prerequisite for performing a flashback transaction?
a) Flashback Database must be enabled
b) Undo retention guarantee for the database must be configure
c) EXECUTE privilege on the DBMS_FLASHBACK package must be granted to the user flashing back transaction
d) Supplemental logging must be enabled
e) Recycle bin must be enabled for the database
f) Block change tracking must be enabled for the database
Answer C and D
Question 9
Which three statements are true about Automatic Workload Repository(AWR)?
a) All AWR tables belong to the SYSTEM schema
b) The AWR data is stored in memory and in the database
c) The snapshots collected by AWR are used by the self tuning components in the database
d) AWR computes time model statistics based on time usage for activities, which are displayed in the v$SYS time model and V$SESS_TIME_MODEL views
e) AWR contains system wide tracing and logging information
Answer B, C and D
Question 10
Which three statements are true about using flashback database in a multitenant container database(CBD)?
a) The root container can be flashed back without flashing back the pluggable database(PDBs)
b) To enable flashback database, the CDB must be mounted.
c) Individual PDB's can be flashed back without flashing back the entire CDB
d) The DB_FLASHBACK RETENTION_TARGET parameter must be set to enable flashback of the CDB
e) A CDB can be flashed back specifying the desired target point in time or an SCN, but not a restore point
Answer B,D and E
Which two statements are true when row archival management is enabled?
a) The ORA_ARCHIVE_STATE column visibility is controlled by the ROW ARCHIVAL VISIBILITY session parameter
b)The ORA_ARCHIVE_STATE column is updated manually or by a program that could reference activity tracking columns, to indicate that a row is no longer considered active.
c)The ROW ARCHIVAL VISIBILITY session parameter defaults to active rows only
d)The ORA_ARCHIVE_STATE column is visible if referenced in the select list of a query
e)The ORA_ARCHIVE_STATE column is updated automatically by the Oracle Server based on activity tracking columns, to indicate that a row is no longer considered active.
Answer C and D.
Question 12
Which Oracle Database component is audited by default if the unified Auditing Option is enabled?
a) Oracle Data Pump
b) Oracle Recovery Manager(RMAN)
c) Oracle Label Security
d) Oracle Database Vault
e) Oracle Real Application Security
Answer B
Question 13
Oracle Grid Infrastructure for a stand-alone server is installed on your production host before installing the Oracle Database server. The database and listener are configured by using oracle Restart.
Examine the following command and its output:
$ crsctl config has
CRS-4622: Oracle High Availability Services auto start is enabled.
What does this imply?
a) When you start an instance on a high with SQL *Plus dependent listeners and ASM disk groups are automatically started.
b) When a database instance is started by using the SRVCTL utility and listener startup fails, the instance is still started.
c) When database is created by using SQL * PLUS, it is automatically added to the Oracle Restart configuration.
d) When you create a database service by modifying the SERVICE_NAMES initialization parameter, it is automatically added to the Oracle Restart configuration.
Answer : B
Question 14
Which three statements are true regarding the use of the Database Migration Assistant for Unicode(DMU)?
a) A DBA can check specific tables with the DMU
b) The database to be migrated must be opened read-only
c)The release of the database to be converted can be any release since 9.2.0.8
d)The DMU can report columns that are too long in the converted characterset
e)The DMU can report columns that are not represented in the converted characterset.
Answer : A,D,E
Question 15
Your multitenant container database (CDB) contains a pluggable database, HR_PDB. The default
permanent tablespace in HR_PDB is USERDATA. The container database (CDB) is open and you
connect RMAN.
You want to issue the following RMAN command:
RMAN > BACKUP TABLESPACE hr_pdb:userdata;
Which task should you perform before issuing the command?
a)Place the root container in ARHCHIVELOG mode.
b)Take the user data tablespace offline.
c) Place the root container in the nomount stage.
d) Ensure that HR_PDB is open.
Answer : A
Question 16
Which three features work together, to allow a SQL statement to have different cursors for the same statement based on different selectivity ranges?
a) Bind Variable Peeking
b)SQL Plan Baselines
c) Adaptive Cursor Sharing
d) Bind variable used in a SQL statement
e) Literals in a SQL statement
Answer : A,C,E
Question 17
Which three statements are true about Oracle Data Pump export and import operations?
a) You can detach from a data pump export job and reattach later
b)Data pump uses parallel execution server processes to implement parallel import
c)Data pump import requires the import file to be a directory owned by the oracle owner
d)The Master table is the last object to be exported by the data pump
e) You can detach from a data pump import job and reattach later.
Answer : A,D,E
Question 18
Which three statements are true about adaptive SQL plan management?
a)It automatically performs verification or evolves non-accepted plans, in COMPREHENSIVE mode when they perform better than existing accepted plans.
b)The optimizer always uses the fixed plan, if the fixed plan exists in the plan baseline.
c)It adds new, better plans automatically as fixed plans to the baseline
d)The non-accepted plans are automatically accepted and become usable by the optimizer if they perform better than the existing accepted plans
e)The non-accepted plans in a SQL plan baseline are automatically evolved, in COMPREHENSIVE mode, during the nightly maintenance window and a persistent verification report is generated.
Answer : A,D,E
Question 19
On your Oracle 12c database, you invoked SQL * Loader to load data into the EMPLOYEES table in the HR schema by issuing the following command.
$> sqlldr hr/hr@pdb table=employees
which two statements are true regarding the command?
a)It succeeds with default settings if the EMPLOYEES table belonging to HR is already defined in the database
b) It fails because no SQL * Loader data file location is specified
c)It fails if the HR user does not have the CREATE ANY DIRECTORY privilege
d)It fails because no SQL * Loader control file location is specified.
Answers : A,C
You plan to Migrate your database from a file system to ASM on same platform.
Which two methods or commands would you use to accomplish this task?
a)RMAN convert command
b)Data Pump Export and import
c)Conventional Export and Import
d)The BACKUP AS COPY DATABASE... command of RMAN
e)DBMS_FILE_TRANSFER with transportable tablespace
Question 21
Which two statements are true about the RMAN validate database command?
a)It checks the database for intrablock corruptions
b)It can detect corrupt pfiles
c)It can detect corrupt spfiles
d)It checks the database for interblock corruptions
e)It can detect corrupt block change tracking files
Question 22
Your multitenant container database, CDB1, is running in ARCHIVELOG mode and has two pluggable databases, HR_PDB and ACCOUNTS_PDB. An RMAN backup exists for the database.
You issue the command to open ACCOUNTS_PDB and find that the USERDATA.DBF data file for the default permanent tablespace USERDATA belonging to ACCOUNTS_PDB is corrupted.
What should you do before executing the commands to retore and recover the data in ACCOUNTS_PDB?
a)Place CDB1 in the mount stage and then the USERDATA tablespace offline in ACCOUNTS_PDB
b)Place CDB1 in the mount stage and issue the
ALTER PLUGGABLE DATABASE accounts_pdb CLOSE IMMEDIATE command.
c)Issue the ALTER PLUGGABLE DATABASE accounts_pdb RESTRICTED command
d)Take the USERDATA tablespace offline in ACCOUNTS_PDB
Question 23
You use a recovery catalog for maintaining your database backups.
You execute the following command:
$rman TARGET/CATALOG rman/cat@catdb
RMAN> BACKUP VALIDATE DATABASE ARCHIVELOG ALL;
Which two statements are true?
a)Corrupted blocks, if any are repaired
b)Checks are performed for physical corruptions
c)Checks are performed for logical corruptions
d)Checks are performed to confirm whether all database files exists in correct locations
e)backup sets containing both data files and archive logs are created.
Question 24
You notice a performance change in your production oracle database and you want to know which change has made this performance difference.
You generate the compare period Automatic Database Diagnostic Monitor(ADDM) report to further investigation.
Which three findings would you get from the report?
a)It detects any configuration change that caused a performance difference in both time period.
b)It identifies any workload change that caused a performance difference in both time period.
c)It detects the top wait events causing performance degradation.
d)It shows the resource usage for CPU, memory, and I/O in both time periods.
e)It shows the difference in the size of memory pools in both time period,
f)It gives information about statistics collection in both time periods.
Question 25
Which three statements are true about SQL plan directives?
a)They are tied to specific statement or SQL ID.
b)They instruct the maintenance job to collect missing statistics or perform dynamic sampling to generate a more optimal plan.
c)They used to gather only missing statistics.
d)They are created for a query expression where statistics are missing or the cardinality estimates by the optimizer are incorrect.
e)They instruct the optimizer to create only column group statistics.
f)Improve plan accuracy by persisting both compilation and execution statistics in the SYSAUX tablespace.
Question 26
Which four actions are possible during an online Data file Move operations?
a)Creating and dropping tables in the data file being moved.
b)Performing file shrink of the data file being moved.
c)Querying tables in the data file being moved.
d)Performing Block Media Recovery for a data block in the data file being moved.
e)Flashing back the database
f)Executing DML statements on objects stored in the data file being moved.
Question 27
a)Fine Grained Auditing(FGA) is enabled for the PRICE column in the PRODUCT tables for SELECT statements only when a row with PRICE > 10000 is accessed.
a)Use the MD_RESTORE command to restore metadata for an existing disk group by passing the existing disk group name as an input parameter and use RMAN to restore the data.
b)Use the MKDG command to restore the disk group with the same configuration as the backed -up disk group and data on the disk group.
c)Use the MD_RESTORE command to restore the disk group with the changed disk group specification, failure group specification name, and other attributes and use RMAN to restore the data.
d)Use the MKDG command to restore the disk group with the same configuration as the backed-up disk group name and same set of disks and failure group configuration, and use RMAN to restore the data.
e)Use the MD_RESTORE command to restore both the metadata and data for the failed disk group.
f)Use the MKDG command to add a new disk group DG1 with the same or different specifications for failure group and other attributes and use RMAN to restore the data.
Which three statements are true about the process of automatic optimization by using cardinality feedback?
a)The optimizer automatically changes a plan during subsequent execution of a SQL statement if there is a huge difference in optimizer estimates and execution statistics.
b)The optimizer can re optimize a query only once using cardinality feedback.
c)The optimizer enables monitoring for cardinaltiy feedback after the first execution of a query.
d)The optimizer does not monitor cardinality feedback if dynamic sampling and multicolumn statistics are enabled.
e)After the optimizer identifies a query as a re-optimization candidate, statistics collected by the collectors are submitted to the optimizer.
Which two are possible if table updates are performed which affect the invisible index columns?
a)The index remains invisible
b)The index is not updated by the DML statements on the indexed table
c)The index automatically becomes visible in order to have it updated by DML on the table.
d)The index becomes unusable but the table is updated by DML
e)The index is updated by the DML on the table.
Question 31
Which three are direct benefits of the multiprocess, multithreaded architecture of Oracle Database 12c when it is enabled?
a)Reduced Logical I/O
b)Reduced virtual memory utilization
c)Improved Parallel Execution performance
d)Improved Serial Execution Performance
e)Reduced Physical I/O
f)Reduced CPU utilization
Question 32
You are using SQL Plus to the root container of a multitenant container database(CDB) with SYSDBA privilege.
The CDB has several pluggable databases(PDB's) open in the read/write mode.
There are ongoing transactions in both the CDB and PDBs
What happens after issuing the SHUTDOWN TRANSACTIONAL statement?
a) The shutdown proceeds immediately. The shutdown proceeds as soon as all transactions in the PDB's are either committed or rolled back.
b)The shutdown proceeds as soon as all transactionals in the CDB are either committed or rolledback.
c)The shutdown proceeds as soon as all transactions in both the CDB and PDBs are either committed or rolled back.
d)The statement results in an error because there are open PDBs
Question 33
Which two statements are true about the use of the procedures listed in the v$sysaux_occupants.move_procedure column?
a)The procedure may be used for some components to relocate component data to the SYSAUX tablespace from its current tablespace.
b)The procedure may be used for some components to relocate component data from the SYSAUX tablespace to another tablespace.
Which two statements are true when a session logged in as SCOTT queries the SAL column in the view and the table?
a) Data is redacted for the EMP.SAL column only if the SCOTT session does not have the MGR role set.
b)Data is redacted for EMP.SAL column only if the SCOTT session has the MGR role set.
c)Data is never redacted for the EMP_V.SAL column
d)Data is redacted for the EMP_V.SAL column only if the SCOTT session has the MGR role set.
e)Data is redacted for the EMP_V.SAL column only if the SCOTT session does not have the MGR role set.
Question 35
Examine the parameter for your database instance.
You generated the execution plan for the following query in the plan table and noticed that the nested loop join was done. After actual execution of the query, you notice that the hash join was done in the execution plan:
a)The optimizer used a dynamic plan for the query
b)The optimizer chose different plans because automatic dynamic sampling was enabled.
c)The optimizer used re-optimization cardinality feedback for the query
d)The optimizer chose different plan because extended statistics were created for the column used.
Question 36
You are the DBA supporting an Oracle 11g Release 2 database and wish to move a table containing several DATE, CHAR, VARCHAR2 and NUMBER data types, and the table's indexes, to another tablespace.
The table does not have a primary key and is used by an OLTP application
Which technique will move the table and indexes while maintaining the highest level of availability to the application?
a)Oracle Data Pump
b)An ALTER TABLE MOVE to move the table and ALTER INDEX REBUILD to move the indexes
c)An ALTER TABLE MOVE to move the table and ALTER INDEX REBUILD ONLINE to move the indexes
What are three possible causes for the latch-related wait events?
a)The size of the shared pool is too small
b)Cursors are not being shared
c)A large number of COMMITS are being performed
d)There are frequent logons and logoffs
e)The buffers are being read into the buffer cache. but some other session is changing the buffers.
Question 39
Which statement is true about EM express in oracle 12c?
a)By default, EM express is available for a database after database creation
b)You can use EM express to manage multiple databases running on the same server
c)You can perform basic administrative tasks for pluggable databases by using the EM express interface
d)You can not startup or shut down a database instance by using EM express
e)You can create and configure pluggable databases by using EM express.
Question 40
Examine the following command.
ALTER SYSTEM SET enable_ddl_logging=FALSE;
Which statement is true?
a)None of the DDL statemets are logged in the trace file
b)Only DDL commands that resulted in errors are logged in the alert log file
c)A new log xml file that contains the DDL statements is created, and the DDL command details are removed from the alert log file.
d)Only DDL commands that resulted in the creation of new database files are logged.
Question 41
What is the result of executing a TRUNCATE TABLE command on a table that has Flashback Archiving enabled?
a)It fails with the ORA-665610 Invalid DDL statement on history-tracked message
b)The rows in the table are truncated without being archived
c)The rows in the table are archived, and then truncated
d)The rows in both the table and the archive are truncated.
Question 42
A warehouse fact table in your Oracle12c Database is range-partitioned by month and accessed
frequently with queries that span multiple partitions.
The table has a local prefixed, range partitioned index.
Some of these queries access very few rows in some partitions and all the rows in other partitions, but these queries still perform a full scan for all accessed partitions.
This commonly occurs when the range of dates begins at the end of a month or ends close to the start of month.
You want an execution plan to be generated that uses indexes access when only a few rows are accessed form a segment, while still allowing full scans for segments where many rows are returned.
Which three methods could transparently help to achieve this result?
a)Using a partial local index on the warehouse fact table month column with indexing disabled to the table partition that return most of their rows to the queries.
b)Using the partial local index on the warehouse fact table month column with indexing disabled for the table partition that return a few rows to the queries.
c)Using a partitioned view that does a UNION ALL query on the partitions of the warehouse fact table, which retains the existing local partitioned column.
d)Converting the partitioned table to a partitioned view that does a UNION ALL query on the monthly tables, which retains the existing local partitioned column.
e)Using the partial global index on the warehouse fact table month column with indexing disabling for the table partitions that return most of their rows to the queries.
f)Using a partial global index on the warehouse fact table month column with indexing for disabled for the table partition that return a few rows to the queries.
Question 43
Your upgraded your database from pre-12c to a multitenant container database(CDB)
containing pluggable database(PDBs).
Examine the query and its output.
Which two tasks must you perform to add users with SYSBAKCUP,SYSDG and SYSKM privilege to the password file?
a)Assign appropriate OS groups to SYSBAKCUP,SYSDG and SYSKM.
b)Grant SYSBAKCUP,SYSDG and SYSKM privilege to the intended users.
c)Re-create the password file with SYSBAKCUP,SYSDG and SYSKM privilege and the FORCE argument set to No.
d)Re-create the password file with SYSBAKCUP,SYSDG and SYSKM privilege, and FORCE arguments set to Yes.
e) Re-create the password file in the Oracle Database 12c format
Question 44
Examine the table definition.
Which three statements are true concerning the use of the Valid Time Temporal features for the EMPLOYEES table?
a) The Valid time columns employee_time_start and employee_time_end are automatically created.
b) The same statement may filter on both transaction time and valid temporal time by using the AS OF TIMESTAMP and PERIOD FOR clause.
c)The Valid time columns are not populated by the oracle server automatically
d)The valid time columns are visible by default when the table is described.
e)Setting the session valid time using DBMS_FLASHBACK_ARCHIVE_ENABLE_AT_VALID_TIME sets the visibility for DML , DDL and queries performed by the session.
Question 45
Which two statements are true concerning the Resource Manager plans for individual pluggable databases(PDB plans) in a multitenant container database(CDB)?
a)If no PDB plan is enabled for a pluggable database, then all sessions for that PDB are treated to an equal degree of the resource share of that PDB
b)In a PDB plan, subplans may be used with up to eight consumer groups
c)If a PDB plan is enabeld for a pluggable database, then resources are allocated to consumer groups across all PDBs in the CDB.
d)If no PDB plan is enabled for a pluggable database, then the PDB share in the CDB plan is dynamically calculated.
e)If a PDB plan is enabled for a pluggable database, then resources are allocated to consumer groups based on the shares provided to the PDB in the CDB plan and the shares provided to the consumer groups in the PDB plan.
Question 46
Your Database supports a DSS workload that involves the execution of complex queries. Currently, the library cache contains the ideal workload for analysis. You want to analyze some of the queries for an application that are cached in the library cache.
What must you do to receive recommendations about the efficient use of indexes and materialized views to improve query performance?
a)Create a SQL Tuning Set (STS) that contains the queries cached in the library cache and run the SQL Tuning Advisor(STA) on the workload captured in the STS.
b)Run the Automatic workload Repository Monitor(ADDM)
c)Create an STS that contains the queries cached in the library cache and run the SQL performance analyzer (SPA) on the workload captured in the STS.
d)Create an STS that contains the queries cached in the library cache and run the SQL access advisor on the workload captured in the STS
Question 49
Question 54
Question 61
You created an encrypted tablespace.
You then closed the encryption wallet because you were advised that this is secure.
Later in the day, you attempt to create the EMPLOYEES table in the SECURESPACE tablespace with the SALT option on the EMPLOYEE column.
Which is true about the result?
a)It creates the table successfully but does not encrypt any inserted data in the EMPNAME column because the wallet must be opened to encrypt columns with SALT.
b) It generates an error when creating the table because the wallet is closed
c) It creates the table successfully, and encrypts any inserted data in the EMPNAME column because the wallet needs to be open only for tablespace creation.
e)It generates error when creating the table, because the salt option cannot be used with encrypted tablespaces.
Question 63
Question 72
The following are the possible steps to accomplish this task
- Place all the user-defined tablespace in read-only mode on the source database
- Upgrade the source database to a 12c version
- Create a new PDB in the target container database
- Perform a full transportable export on the source database with the VERSION parameter set to 12 using the expdp utility.
- Copy the associated data files and export the dump file to the desired location in the target database.
- Invoke the Data Pump import utility on the new PDB database as a user with DATAPUMP_IMP_FULL_DATABASE role and specify the full transportable import options
- Synchronize the PDB on the target container database by using the DBMS_PDS.SYNC_ODB function
Which two statements are true?
Question 84
Question 85
Question 86
Question 87














