1Z0 062 Teststudyguide
1Z0 062 Teststudyguide
After changing the value, you notice the FULL redaction continues to redact numeric data with zero.
What must you do to activate the new default value for numeric full redaction?
Restart the database instance.
20. You must track all transactions that modify certain tables in the sales schema for at least three years.
Automatic undo management is enabled for the database with a retention of one day.
Which two must you do to track the transactions?
Create a Flashback Data Archive in any suitable tablespace.
Enable Flashback Data Archiving for the tables that require tracking.
21. 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?
Online Table Redefinition.
22. To implement Automatic Management (AMM), you set the following parameters:
When you try to start the database instance with these parameter settings, you receive the following error message:
SQL > startup
ORA-00824: cannot set SGA_TARGET or MEMORY_TARGET due to existing internal settings, see alert log for more
information.
Identify the reason the instance failed to start.
The STATISITCS_LEVEL is set to BASIC.
23. What are two benefits of installing Grid Infrastructure software for a stand-alone server before installing and creating
an Oracle database?
Effectively implements role separation; automatically registers the database with Oracle Restart.
24. Identify two correct statements about multitenant architectures.
Multiple PDBs share certain multitenant container database (CDB) resources.
Patches are always applied at the CDB level.
25. You upgrade your Oracle database in a multiprocessor environment. As a recommended you execute the following
script:
SQL > @utlrp.sql
Which two actions does the script perform?
Parallel recompilation of any stored PL/SQL code; Parallel recompilation of Java code.
26. Which two statements are true concerning dropping a PDB?
The PDB must be in mount state; The PDB must be unplugged.
27. You notice a high number of waits for the db file scattered read and db file sequential read events in the recent
Automatic Database Diagnostic Monitor (ADDM) report. After further investigation, you find that queries are
performing too many full table scans and indexes are not being used even though the filter columns are indexed.
Identify three possible reasons for this.
Missing or stale histogram statistics; high clustering factor for the indexes; high value for the
DB_FILE_MULTIBLOCK_READ_COUNT parameter.
28. Which three features work together, to allow a SQL statement to have different cursors for the same statement based
on different selectivity ranges?
Bind Variable Peeking; Adaptive Cursor Sharing; Literals in a SQL statement
29. You want to capture column group usage and gather extended statistics for better cardinality estimates for the
CUSTOMERS table in the SH schema.
Examine the following steps:
1. Issue the SELECT DBMS_STATS.CREATE_EXTENDED_STATS (`SH', `CUSTOMERS')
FROM dual statement.
2. Execute the DBMS_STATS.SEED_COL_USAGE (null, `SH', 500) procedure.
3. Execute the required queries on the CUSTOMERS table.
4. Issue the SELECT DBMS_STATS.REPORT_COL_USAGE (`SH', `CUSTOMERS') FROM dual statement.
Identify the correct sequence of steps.
2,3,4,1
30. Which three statements are true about Automatic Workload Repository (AWR)?
The AWR data is stored in memory and in the database.
The snapshots collected by AWR are used by the self-tuning components in the database.
AWR contains system wide tracing and logging information.
31. You upgraded your database from pre-12c to a multitenant container database (CDB) containing pluggable databases
(PDBs).
Examine the query and its output:
Which two tasks must you perform to add users with SYSBACKUP, SYSDG, and SYSKM privilege to the password file?
Grant SYSBACKUP, SYSDG, and SYSKM privileges to the intended users.
Re-create the password file with SYSBACKUP, SYSDG, and SYSKM privilege, and FORCE arguments set to Yes.
32. An application accesses a small lookup table frequently. You notice that the required data blocks are getting aged out
of the default buffer cache. How would you guarantee that the blocks for the table never age out?
Configure the KEEP buffer pool and alter the table with the corresponding storage clause.
33. You conned using SQL Plus to the root container of a multitenant container database (CDB) with SYSDBA privilege.
The CDB has several pluggable databases (PDBs) open in the read/write mode.
There are ongoing transactions in both the CDB and PDBs.
What happens alter issuing the SHUTDOWN TRANSACTIONAL statement?
The shutdown proceeds as soon as all transactions in the CDB are either committed or rolled back.
34. You are planning the creation of a new multitenant container database and want to store the ROOT and SEED
container data files in separate directories. You plan to create the database using SQL statements. Which three
techniques can you use to achieve this?
Use Oracle Managed Files.
Specify the SEED FILE_NAME_CONVERT clause.
Specify the PDB_FILE_NAME_CONVERT initialization parameter.
35. You are about to plug a multi-terabyte non-CDB into an existing multitenant container database (CDB).
The characteristics of the non-CDB are as follows:
- Version: Oracle Database 11g Release 2 (11.2.0.2.0) 64-bit
- Character set: AL32UTF8
- National character set: AL16UTF16
- O/S: Oracle Linux 6 64-bit
The characteristics of the CDB are as follows:
- Version: Oracle Database 12c Release 1 64-bit
- Character Set: AL32UTF8
- National character set: AL16UTF16
- O/S: Oracle Linux 6 64-bit
Which technique should you use to minimize down time while plugging this non-CDB into the CDB?
Transportable tablespace.
36. Your database supports an online transaction processing (OLTP) application. The application is undergoing some major
schema changes, such as addition of new indexes and materialized views. You want to check the impact of these
changes on workload performance. What should you use to achieve this?
SQL Performance Analyzer.
37. An administrator account is granted the CREATE SESSION and SET CONTAINER system privileges.
A multitenant container database (CDB) instant has the following parameter set:
THREADED_EXECUTION = FALSE
Which four statements are true about this administrator establishing connections to root in a CDB that has been
opened in read only mode?
You can connect using easy connect; you can connect by using OS authentication; you can connect by using a Net
Service name; and you can connect as a local user by using the SET CONTAINER statement.
38. Examine the following query output:
You issue the following command to import tables into the hr schema:
$ > impdp hr/hr directory = dumpdir dumpfile = hr_new.dmp schemas=hr TRANSFORM=DISABLE_ARCHIVE_LOGGING:
Y
Which statement is true?
Only CREATE TABLE and ALTER TABLE statements generated by the import are logged.
39. 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 that report?
It detects any configuration change that caused a performance difference in both time periods.
It identifies any workload change that caused a performance difference in both time periods.
It shows the resource usage for CPU, memory, and I/O in both time periods.
40. 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:
Identify the reason why the optimizer chose different execution plans.
The optimizer chose different plans because automatic dynamic sampling was enabled.
41. Which three statements are true about adaptive SQL plan management?
It automatically performs verification or evolves non-accepted plans, in COMPREHENSIVE mode when they perform
better than existing accepted plans. The non-accepted plans are automatically accepted and become usable by the
optimizer if they perform better than the existing accepted plans. 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.
42. You create a new pluggable database, HR_PDB, from the seed database. Which three tablespaces are created by
default in HR_PDB?
SYSTEM, SYSAUX, TEMP
43. Which two statements are true about variable extent size support for large ASM files?
The metadata used to track extents in SGA is reduced. An ASM Instance automatically allocates an appropriate
extent size.
44. You executed a DROP USER CASCADE on an Oracle 11g release 1 database and immediately realized that you forgot to
copy the OCA.EXAM_RESULTS table to the OCP schema. The RECYCLE_BIN enabled before the DROP USER was
executed and the OCP user has been granted the FLASHBACK ANY TABLE system privilege.
What is the quickest way to recover the contents of the OCA.EXAM_RESULTS table to the OCP schema?
Recover the table using Automated Tablespace Point in Time Recovery.
45. In your multitenant container database (CDB) containing pluggable database (PDBs), the HR user executes the
following commands to create and grant privileges on a procedure:
CREATE OR REPLACE PROCEDURE create_test_v (v_emp_id NUMBER, v_ename VARCHAR2, v_SALARY NUMBER,
v_dept_id NUMBER)
BEGIN
INSERT INTO hr.test VALUES (V_emp_id, V_ename, V_salary, V_dept_id);
END;
/
GRANT EXECUTE ON CREATE_TEST TO john, jim, smith, king;
How can you prevent users having the EXECUTE privilege on the CREATE_TEST procedure from inserting values into
tables on which they do not have any privileges? Create the CREATE_TEST procedure with invoker’s rights.
46. You created a new database using the “create database” statement without specifying the “ENABLE PLUGGABLE”
clause. What are two effects of not using the “ENABLE PLUGGABLE” clause?
The database is created as a non-CDB and can never contain a PDB. The database is created as a non-CDB but can
be plugged into an existing CDB.
47. What is the effect of specifying the “ENABLE PLUGGABLE DATABASE” clause in a “CREATE DATABASE” statement?
It will create a CDB with root opened and seed read only.
48. You have installed two 64G flash devices to support the Database Smart Flash Cache feature on your database server
that is running on Oracle Linux. You have set the DB_SMART_FLASH_FILE parameter:
DB_FLASH_CACHE_FILE= `/dev/flash_device_1 `,' /dev/flash_device_2'
How should the DB_FLASH_CACHE_SIZE be configured to use both devices?
Set DB_FLASH_CACHE_SIZE=64G, 64G
49. Examine the following parameters for a database instance:
MEMORY_MAX_TARGET=0
MEMORY_TARGET=0
SGA_TARGET=0
PGA_AGGREGATE_TARGET=500m
Which three initialization parameters are controlled by Automatic Shared Memory Management (ASMM)?
SORT_AREA_SIZE, JAVA_POOL_SIZE, STREAMS_POOL_SIZE
50. Examine the contents of SQL loader control file:
Which three statements are true regarding the SQL* Loader operation performed using the control file?
An EMP table is created if a table does not exist. Otherwise, if the EMP table is appended with the loaded data. The
SQL* Loader data file myfile1.dat has the column names for the EMP table. The SQL* Loader operation assumes
that the file must be a stream record format file with the normal carriage return string as the record terminator.
51. In your multitenant container database (CDB) containing pluggable database (PDBs), you granted the CREATE TABLE
privilege to the common user C # #A_ADMIN in root and all PDBs. You execute the following command from the root
container:
SQL > REVOKE create table FROM C # # A_ADMIN;
What is the result?
It executes successfully and the CREATE TABLE privilege is revoked from C # # A_ADMIN in root only.
52. Which two statements are true concerning the Resource Manager plans for individual pluggable databases (PDB
plans) in a multitenant container database (CDB)?
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. 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.
53. 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?
Checks are performed for physical corruptions. Checks are performed to confirm whether all database files exist in
correct locations.
54. Which three statements are true concerning the multitenant architecture?
A PDB can have a private temp tablespace. Log switches occur only at the multitenant container database (CDB)
level. Instance recovery is always performed at the CDB level.
55. You notice that the elapsed time for an important database scheduler job is unacceptably long. The job belongs to a
scheduler job class and window. Which two actions would reduce the job’s elapsed time?
Increasing the job’s relative priority within the Job class to which it belongs. Increasing the resource allocation for
the consumer group mapped to the scheduler job’s job class within the plan mapped to the scheduler window.
56. You plan to migrate your database from a File system to Automatic Storage Management (ASM) on same platform.
Which two methods or commands would you use to accomplish this task?
RMAN CONVERT command; The BACKUP AS COPY DATABASE…command of RMAN
57. You run a script that completes successfully using SQL*Plus that performs these actions:
1. Creates a multitenant container database (CDB)
2. Plugs in three pluggable databases (PDBs)
3. Shuts down the CDB instance
4. Starts up the CDB instance using STARTUP OPEN READ WRITE
Which two statements are true about the outcome after running the script?
The seed will be opened in read-only. The other PDBs will be in mount state.
58. You execute the following piece of code with appropriate privileges:
User SCOTT has been granted the CREATE SESSION privilege and the MGR role. Which two statements are true when a
session logged in as SCOTT queries the SAL column in the view and the table?
Data is redacted for the EMP.SAL column only if the SCOTT session does not have the MGR role set. Data is never
redacted for the EMP_V.SAL column.
59. Your database is open and the LISTENER listener running. You stopped the wrong listener LISTENER by issuing the
following command:
1snrctl > STOP
What happens to the sessions that are presently connected to the database Instance?
They are not affected and continue to function normally.
60. Which three statements are true about using flashback database in a multitenant container database (CDB)?
To enable flashback database, the CDB must be mounted. The DB_FLASHBACK RETENTION_TARGET parameter must
be set to enable flashback of the CDB. A CDB can be flashed back specifying the desired target point in time or an SCN,
but not at restore point.
61. You execute the following PL/SQL:
What are three possible causes for the latch-related wait events?
The size of the shared pool is too small. Cursors are not being shared. The buffers are being read into the buffer cache,
but some other session is changing the buffers.
78. You enabled an audit policy by issuing the following statements:
SQL> AUDIT POLICY ORA_DATABASE_PARAMETER BY SCOTT;
SQL> AUDIT POLICY ORA_DATABASE_PARAMETER BY SYS, SYSTEM;
For which database users and for which executions is the audit policy now active? Select two.
SYS, SYSTEM; Both successful and failed executions
79. A redaction policy was added to the SAL column of the SCOTT.EMP table:
All users have their default set of system privileges. For which three situations will data not be redacted?
SYS sessions, regardless of the roles that are set in the session. SCOTT sessions, only if the MGR role is granted to
SCOTT. SYSTEM sessions, only if the MGR role is set in the session.
80. What is the result of executing a TRUNCATE TABLE command on a table that has Flashback Archiving enabled?
The rows in the table are truncated without being archived.
81. Which three activities are supported by the Data Recovery Advisor?
Advising on block checksum failures; advising on inaccessible control files; advising on invalid block header field
values.
82. You create a table with the PERIOD FOR clause to enable the use of the Temporal Validity feature of Oracle Database
12c. Examine the table definition:
Which three statements are true concerning the use of the Valid Time Temporal feature for the EMPLOYEES table?
The valid time columns employee_time_start and employee_time_end are automatically created. The same
statement may filter on both transaction time and valid temporal time by using the AS OF TIMESTAMP and PERIOD
FOR clauses. 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.
83. Which three statements are true regarding the use of the Database Migration Assistant for Unicode (DMU)?
A DBA can check specific tables with the DMU. The DMU can report columns that are too long in the converted
character set. The DMU can report columns that are not represented in the converted character set.
84. 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?
When a database instance is started by using the SRVCTL utility and listener startup fails, the instance is still started.
85. Your multitenant container database (CDB) contains some pluggable databases (PDBs), you execute the following
command in the root container:
Which method is used by the optimizer to limit the rows being returned?
A view is created during execution and a filter on the view limits the rows to 20 percent of the total rows.
88. Flashback is enabled for your multitenant container database (CDB), which contains two pluggable database (PDBs). A
local user was accidently dropped from one of the PDBs. You want to flash back the PDB to the time before the local
user was dropped. You connect to the CDB and execute the following commands:
SQL > SHUTDOWN IMMEDIATE
SQL > STARTUP MOUNT
SQL > FLASHBACK DATABASE to TIME "TO_DATE (`08/20/12' , `MM/DD/YY')";
Examine following commands:
1. ALTER PLUGGABLE DATABASE ALL OPEN;
2. ALTER DATABASE OPEN;
3. ALTER DATABASE OPEN RESETLOGS;
Which command or commands should you execute next to allow updates to the flashback back schema?
3 and 1
89. Which three statements are true about the working of system privileges in a multitenant control database (CDB) that
has pluggable databases (PDBs)?
System privileges apply only to the PDB in which they are used. The granter of the system privileges must possess
the set container privilege. System privileges with the with grant option container all clause must be granted to a
common user before the common user can grant privileges to other users.
90. Identify two situations in which the alert log file is updated.
Running a query on a table returns ORA-600: Internal Error. Rebuilding an index using ALTER INDEX…REBUILD fails
with an ORA-01578: ORACLE data block corrupted (file #14, block #50) error.
91. Which three statements are true about Oracle Data Pump export and import operations?
You can detach from a data pump export job and reattach later. Data pump uses parallel execution server processes
to implement parallel import. The master table is the last object to be exported by the data pump.
92. Examine the query and its output executed in an RDBMS instance:
Which three statements are true about the users (other than sys) in the output?
The C # # C_ADMIN user can perform the data guard operation with Data Guard Broker. The C # # D_ADMIN user
can perform backup and recovery operations for Automatic Storage Management (ASM). The C # # B_ADMIN user
can perform all backup and recovery operations using RMAN or SQL* Plus.
93. In your Database, the TBS PERCENT USED parameter is set to 60 and the TBS PERCENT FREE parameter is set to 20.
Which two storage-tiering actions might be automated when using information Lifecycle Management (ILM) to
automate data movement?
Setting the target tablespace to read-only. The movement of some segments to a target tablespace with a higher
degree of compression, on a different storage tier, when the source tablespace exceeds TBS PERCENT USED.
94. Which three statements are true about Flashback Database?
Flashback Database uses a restored control file to recover a database. The Oracle database automatically creates,
deletes, and resides flashback logs in the FRA. Flashback logs are used to restore to the blocks’ before images, and
then the redo data may be used to roll forward to the desired flashback time.
95. Which statement is true about Enterprise Manager (EM) express in Oracle Database 12c?
By default, EM express is available for a database after database creation.
96. In which two scenarios do you use SQL* Loader to load data?
Transform the data while it is being loaded into the database. Generate unique sequential key values in specified
columns.
97. You are connected to a pluggable database (PDB) as a common user with DBA privileges. The STATISTICS_LEVEL
parameter is PDB_MODIFIABLE. You execute the following:
SQL > ALTER SYSTEM SET STATISTICS_LEVEL = ALL SID = `*' SCOPE = SPFILE;
Which is true about the result of this command?
The STATISTICS_LEVEL parameter is set to all whenever the multitenant container database (CDB) is restarted.
98. Which two are prerequisites for performing a flashback transaction?
Flashback Database must be enabled. EXECUTE privilege on the DBMS_FLASHBACK package must be granted to the
user flashing back transaction.
99. A database is stored in an ASM disk group, DGROUP1 with SQL:
There is enough free space in the disk group for mirroring to be done. What happens if the CONTROLLER1 failure
group becomes unavailable due to an error from maintenance?
Mirroring of allocation units will be done to ASM disks in the CONTROLLER2 failure group until the CONTROLLER1
for failure group is brought back online.
100. On your Oracle 12c database, you Issue the following commands to create indexes
SQL > CREATE INDEX oe.ord_customer_ix1 ON oe.orders (customers_id, sales_rep_id)
INVISIBLE;
SQL> CREATE BITMAP INDEX oe.ord_customer_ix2 ON oe.orders (customers_id, sales_rep_id);
Which two statement are correct?
Both of the indexes are created; however, only the ORD_CUSTOMER index is visible. Both of the indexes are
updated when a new row is inserted, updated, or deleted in the orders table.
101. Your multitenant container database has three pluggable databases (PDBs): PDB1, PDB2, and PDB3. Which two RMAN
commands may be; used to back up only the PDB1 pluggable database?
BACKUP PLUGGABLE DATABASE PDB1 while connected to the root container
BACKUP DATABASE while connected to the PDB1 container
102. Identify three benefits of Unified Auditing.
Decreased use of storage to store audit trail rows in the database. It improves overall auditing performance. It
automatically audits RMAN events.
103. You upgraded from a previous Oracle database version to Oracle Database version to Oracle Database 12c. Your
database supports a mixed workload. During the day, lots of insert, update, and delete operations are performed. At
night, Extract, Transform, Load (ETL) and batch reporting jobs are run. The ETL jobs perform certain database
operations using two or more concurrent sessions. After the upgrade, you notice that the performance of ETL jobs has
degraded. To ascertain the cause of performance degradation, you want to collect basic statistics such as the level of
parallelism, total database time, and the number of I/O requests for the ETL jobs. How do you accomplish this?
Enable real-time database operation monitoring using the DBMS_SQL_MONITOR.BEGIN_OPERATION function, and
then use the DBMS_SQL_MONITOR.REPORT_SQL_MONITOR function to view the required information.
104. Your multitenant container (CDB) contains two pluggable databases (PDB), HR_PDB and ACCOUNTS_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.
Add a new temp file to the temporary tablespace and drop the temp file that produced the error. Shutdown the
database instance and then restart the CDB and PDBs.
105. Examine the following commands for redefining a table with Virtual Private Database (VPD) policies:
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:
Identify the reason why the optimizer chose different execution plans.
The optimizer chose different plans because automatic dynamic sampling was enabled.
121. You executed a DROP USER CASCADE on an Oracle 11g release 1 database and immediately realized that you forgot to
copy the OCA.EXAM_RESULTS table to the OCP schema. The RECYCLE_BIN enabled before the DROP USER was
executed and the OCP user has been granted the FLASHBACK ANY TABLE system privilege. What is the quickest way to
recover the contents of the OCA.EXAM_RESULTS table to the OCP schema?
Recovery the table using Database Point in Time Recovery.
122. Examine the contents of SQL Loader control file:
Which three statements are true regarding the SQL*Loader operation performed using the control file?
An EMP table is created if a table does not exist. Otherwise, if the EMP table is appended with the loaded data. The
SQL*Loader data file myfile1.dat has the column names for the EMP table. The SQL*Loader operation assumes that
the file must be a stream record format file with the normal carriage return string as the record terminator.
123. Which two statements are true concerning the Resource Manager plans for individual pluggable databases (PDB
plans) in a multitenant container database (CDB)?
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. 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.
124. You plan to migrate your database from a File system to Automata Storage Management (ASM) on same platform.
Which two methods or commands would you use to accomplish this task?
RMAN CONVERT command; The BACKUP AS COPY DATABASE…command of RMAN.
125. You administer an online transaction processing (OLTP) system whose database is stored in Automatic Storage
Management (ASM) and whose disk group use normal redundancy. One of the ASM disks goes offline, and is then
dropped because it was not brought online before DISK_REPAIR_TIME elapsed. When the disk is replaced and added
back to the disk group, the ensuing rebalance operation is too slow. Which two recommendations should you make to
speed up the rebalance operation if this type of failure happens again?
Increase the value of the ASM_POWER_LIMIT parameter. Increase the number of ASMB processes.
126. Which three tasks can be automatically performed by the Automatic Data Optimization feature of Information lifecycle
Management (ILM)?
Tracking the most recent read time for a table segment in a user tablespace. Tracking the most recent write time for a
table segment in a user tablespace. Tracking the most recent write time for a table block.
127. Which two statements are true about the RMAN validate database command?
It checks the database for intrablock corruptions. It can detect corrupt spfiles.
128. In your multitenant container database (CDB) with two pluggable database (PDBs). You want to create a new PDB by
using SQL Developer.
The CDB must be open.
129. You are connected using SQL* Plus to a multitenant container database (CDB) with SYSDBA privileges and execute the
following sequence statements:
What is the result of the last SET CONTAINER statement and why is it so?
It fails because local users are unable to use the SET CONTAINER statement.
130. You enabled an audit policy by issuing the following statements:
SQL> AUDIT POLICY ORA_DATABASE_PARAMETER BY SCOTT;
SQL> AUDIT POLICY ORA_DATABASE_PARAMETER BY SYS, SYSTEM;
For which database users and for which executions is the audit policy now active? Select two.
SYS, SYSTEM; Both successful and failed executions.
131. Your multitenant container database (CDB) contains some pluggable databases (PDBs), you execute the following
command in the root container:
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?
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.
169. On your Oracle Database, you issue the following commands to create indexes:
SQL > CREATE INDEX oe.ord_customer_ix1 ON oe.orders (customer_id, sales_rep_id) INVISIBLE;
SQL> CREATE BITMAP INDEX oe.ord_customer_ix2 ON oe.orders (customer_id, sales_rep_id);
Which two statements are true?
Both the indexes are updated when a row is inserted, updated, or deleted in the ORDERS table. Both the indexes
are created: however, only ORD_CUSTOMERS_IX2 is used by the optimizer for queries on the ORDERS table.
170. Which two statements are true when row archival management is enabled?
The ORA_ARCHIVE_STATE column visibility is controlled by the ROW ARCHIVAL VISIBILITY session parameter. 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.
171. A warehouse fact table in your Oracle 12c 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 a month. You want an execution plan to be generated that uses indexed access when only a few rows
are accessed from a segment, while still allowing full scans for segments where many rows are returned. Which three
methods could transparently help to achieve this result?
Using a partial local Index on the warehouse fact table month column with indexing disabled for the table partitions
that return a few rows to the queries. 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. Using a 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.
172. You use the segment advisor to help determine objects for which space may be reclaimed. Which three statements
are true about the advisor given by the segment advisor?
It may advise the use of online table redefinition for tables in dictionary managed tablespace. It will detect and
advise about chained rows. It may advise the use of segment shrink for free list managed tables.
173. You have altered a non-unique index to be invisible to determine if queries execute within an acceptable response
time without using this index. Which two are possible if table updates are performed which affect the invisible index
columns?
The index remains invisible. The index is updated by the DML on the table.
174. In your multitenant container database (CDB) containing same pluggable databases (PDBs), you execute the following
commands in the root container:
Which two statements are true?
The C # # ROLE1 role is created in the root database and all the PDBs. Privileges are granted to the C##A_ADMIN user
only in the root database.
175. The persistent configuration settings for RMAN have default for all parameters. Identify four RMAN commands that
produce a multi-section backup.
BACKUP TABLESPACE SYSTEM SECTION SIZE 100M; BACKUP AS COPY TABLESPACE SYSTEM SECTION SIZE 100M;
BACKUP TABLESPACE "UNDO" INCLUDE CURRENT CONTROLFILE SECTION SIZE 100M; BACKUP INCREMENTAL LEVEL
0 TABLESPACE SYSAUX SECTION SIZE 100M;
176. The following parameter are set for your Oracle 12c database instance:
OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES=FALSE
OPTIMIZER_USE_SQL_PLAN_BASELINES=TRUE
You want to manage the SQL plan evolution task manually. Examine the following steps:
1. Set the evolve task parameters.
2. Create the evolve task by using the DBMS_SPM.CREATE_EVOLVE_TASK function.
3. Implement the recommendations in the task by using the
DBMS_SPM.IMPLEMENT_EVOLVE_TASK function.
4. Execute the evolve task by using the DBMS_SPM.EXECUTE_EVOLVE_TASK function.
5. Report the task outcome by using the DBMS_SPM.REPORT_EVOLVE_TASK function.
Identify the correct sequence of steps:
2, 1, 4, 3, 5
177. In a recent Automatic Workload Repository (AWR) report for your database, you notice a high number of buffer busy
waits. The database consists of locally managed tablespaces with free list managed segments. On further
investigation, you find that buffer busy waits is caused by contention on data blocks. Which option would you consider
first to decrease the wait event immediately?
Using Automatic Segment Space Management (ASSM)
178. Examine this command:
SQL > exec DBMS_STATS.SET_TABLE_PREFS (`SH', `CUSTOMERS', `PUBLISH', `false');
Which three statements are true about the effect of this command?
Any existing statistics for the CUSTOMERS table are still available to the optimizer at parse time. Statistics gathered
on the CUSTOMERS table when schema stats are gathered are stored as pending statistics. Statistics gathered on
the CUSTOMERS table when database stats are gathered are stored as pending statistics.
179. Examine the following impdp command to import a database over the network from a pre-12c Oracle database
(source):