0% found this document useful (0 votes)
63 views22 pages

1Z0 062 Teststudyguide

The document discusses various database management tasks and concepts related to Oracle databases, including user account management, job chains, error resolution, optimizer execution plans, resource management, and database upgrades. It also covers features like Automatic Segment Space Management, Flashback Data Archive, and multitenant architectures. Additionally, it addresses performance monitoring and tuning, SQL plan management, and the creation of pluggable databases.

Uploaded by

Vipul Goyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views22 pages

1Z0 062 Teststudyguide

The document discusses various database management tasks and concepts related to Oracle databases, including user account management, job chains, error resolution, optimizer execution plans, resource management, and database upgrades. It also covers features like Automatic Segment Space Management, Flashback Data Archive, and multitenant architectures. Additionally, it addresses performance monitoring and tuning, SQL plan management, and the creation of pluggable databases.

Uploaded by

Vipul Goyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

1. A user establishes a connection to a database instance by using an Oracle Net connection.

You want to ensure the


following:
1. The user account must be locked after five unsuccessful login attempts.
2. Data read per session must be limited for the user.
3- The user cannot have more than three simultaneous sessions.
4. The user must have a maximum of 10 minutes session idle time before being logged off automatically.
How would you accomplish this?
By assigning a profile to the user.
2. Which statements are true about a job chain?
It can contain a nested chain of jobs.
It can be used to implement dependency-based scheduling.
It can be executed using event-based or time-based schedules.
3. The hr user receiver, the following error while inserting data into the sales table:
ERROR at line 1:
ORA-01653; unable to extend table HR.SALES by 128 in tablespace USERS
On investigation, you find that the user’s tablespace uses Automatic Segment Space Management (ASSM). It is the
default tablespace for the HR user with an unlimited quota on it.
Which two methods would you use to resolve this error?
Altering the data life associated with the USERS tablespace to extend automatically.
Enabling resumable space allocation by setting the RESUMABLE_TIMEOUT parameter to a nonzero value.
4. Which three factors influence the optimizer’s choice of an execution plan?
The optimizer_mode initialization parameter.
Operating system (OS) statistics.
Object statistics in the data dictionary.
5. 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;
NAMEACTIVE_SESSIONS QUEUE_LENGTH CONSUMED_CPU_WAITS
CPU_WAIT_TIME
----------------------------------- -------------------- -------------------- --------------------- ----------------
OLTP__ORDER__ENTRY1029690 467
OTHES__GROUPS 0 059823664089
60425
SYS_GROUP 1 02420704 914
19540
DS.S_QUERIES4245946603004
55700
Which two statements are true?
The CPU_WAIT_TIME column indicates the total time that sessions in the consumer group waited for the CPU due
to resource management.
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 enqueuer contention.
6. Which action takes place when a file checkpoint occurs?
The Database Writer process writes all dirty buffers in the buffer cache to data files.
7. Examine the structure of the sales table, which is stored in a locally managed tablespace with Automatic Segment
Space Management (ASSM) enabled.
NameNull?Type
-------------------------------------------- ------------------------------------- -----------------------------
PROD_IDNOT NULL NUMBER
CUST_IDNOT NULL NUMBER
TIME_IDNOT NULL DATE
CHANNEL_IDNOT NULL NUMBER
PROMO_IDNOT NULL NUMBER
QUANT I TY___S OL DNOT NULL NUMBER (10, 2) AMOUNT SOLDNOT NULL NUMBER (10,
2)
You want to perform online segment shrink to reclaim fragmented free space below the high water mark.
What should you ensure before the start of the operation?
Extra disk space equivalent to the size of the segment is available in the tablespace.
8. Which task would you recommend before using the Database Upgrade Assistant (DBUA) to upgrade a single-instance
Oracle 11g R2 database to Oracle Database 12c?
Running the Pre-Upgrade Information Tool.
9. Your database is open and the listener LISTENER is up. You issue the command:
LSNRCTL> RELOAD
What is the effect of reload on sessions that were originally established by listener?
Existing connections are not disconnected; however, they cannot perform any operations until the listener
completes the re-registration of the database instance and service handlers.
10. Which statement is true regarding the startup of a database instance?
Instance recovery is not required if the database instance was shut down using SHUTDOWN IMMEDIATE.
11. Examine the memory-related parameters set in the SPFILE of an Oracle database:
memory_max_target--6G
memory_target=5G
pga_aggregate_target=500M
sga_max_size=0
sga_target=0
Which statement is true?
The size of the PGA cannot grow automatically beyond 500 MB.
12. Which two statements are true about extents?
Data blocks in an extent are logically contiguous but can be non-contiguous on disk.
The blocks of a newly allocated extent, although free, may have been used before.
13. You execute the commands:
SQL>CREATE USER sidney
IDENTIFIED BY out_standing1
DEFAULT TABLESPACE users
QUOTA 10M ON users
TEMPORARY TABLESPACE temp
ACCOUNT UNLOCK;
SQL> GRANT CREATE SESSION TO Sidney;
Which two statements are true?
The create user command fails if any role with the name Sidney exists in the database.
The user Sidney can connect to the database instance but requires relevant privileges to create objects in the users
tablespace.
14. Examine the query and its output:
SQL> SELECT REASON, metric_value FROM dba_outstanding_alerts;
REASONMETRIC_VALUE
----------------------------------- -------------------
Tablespace [TEST] is [28 percent] 28.125 full
Metrics "Current Logons Count"29
Metrics "Database Time Spent 99.0375405
waiting (%)" is at 99.03754 for
event class "Application"
db_recovery_file_dest_size of 97
4294967296 bytes is 97.298 used
and has 116228096 remaining
bytes available.
After 30 minutes, you execute the same query:
SQL> SELECT reason, metric_value FROM dba_outstanding_alerts;
REASONMETRIC_VALUE
------------------------------ ---------------
Tablespace [TEST] is [28 percs 28.125
nt] full
What might have caused three of the alerts to disappear?
The database instance was restarted before the execution of the second query.
15. Which two statements are true?
A role can be granted to other roles.
A role can contain both system and object privileges.
16. Identify three valid options for adding a pluggable database (PDB) to an existing multitenant container database (CDB).
Use the CREATE PLUGGABLE DATABASE statement to create a PDB using the files from the SEED.
Use the DBMS_PDB package to clone an existing PDB.
Use the DBMS_PDB package to plug an Oracle 12c non-CDB database into an existing CDB.
17. 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?
Create a STS that contains the queries cached in the library cache and run the SQL Access Advisor on the workload
captured in the STS.
18. 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 above command?
It succeeds with default settings if the EMPLOYEES table belonging to HR is already defined in the database.
It fails if the HR user does not have the CREATE ANY DIRECTORY privilege.
19. After implementing full Oracle Data Redaction, you change the default value for the NUMBER data type as follows:

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:

Which two statements are true?


Fine-Grained Auditing (FGQ) is enabled for the PRICE column in the PRODUCTS table for SELECT statements only
when a row with PRICE > 10000 is accessed. FGA is enabled for the PRODUCTS.PRICE column and an audit record is
written whenever a row with PRICE > 10000 is accessed.
62. You execute the following commands to audit database activities:
SQL > ALTER SYSTEM SET AUDIT_TRIAL=DB, EXTENDED SCOPE=SPFILE;
SQL > AUDIT SELECT TABLE, INSERT TABLE, DELETE TABLE BY JOHN By SESSION WHENEVER SUCCESSFUL;
Which statement is true about the audit record that generated when auditing after instance restarts?
One audit record is created for every successful execution of a SELECT, INSERT, OR DELETE command on a table, and
contains the SQL text for the SQL statements.
63. You support Oracle Database 12c Oracle Database 11g, and Oracle Database log on the same server. All databases of
all versions use Automatic Storage Management (ASM). Which three statements are true about the ASM disk group
compatibility attributes that are set for a disk group?
The ASM compatibility attribute controls the format of the disk group metadata. RDBMS compatibility together
with the database version determines whether a database Instance can mount the ASM disk group. The ASM
compatibility attribute determines some of the ASM features that may be used by the Oracle disk group.
64. 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?
It results in an error because these parameter settings are invalid.
65. You executed this command to create a password file:
$ orapwd file = orapworcl entries = 10 ignorecase = N
Which two statements are true about the password file?
It will permit the use of uppercase passwords for database users who have been granted the SYSOPER role. It will
permit the use of lowercase passwords for database users who have granted the SYSDBA role.
66. Identify three valid methods of opening pluggable databases.
ALTER PLUGGABLE DATABASE OPEN ALL issued from the root
ALTER DATABASE OPEN issued from that PDB
ALTER PLUGGABLE DATABASE OPEN issued from that PDB
67. 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.
68. You are administering a database and you receive a requirement to apply the following restrictions:
1. A connection must be terminated after four unsuccessful login attempts by user.
2. A user should not be able to create more than four simultaneous sessions.
3. User session must be terminated after 15 minutes of inactivity.
4. Users must be prompted to change their passwords every 15 days.
How would you accomplish these requirements?
By granting a secure application role to the users.
69. A senior DBA asked you to execute the following command to improve performance:
SQL> ALTER TABLE subscribe log STORAGE (BUFFER_POOL recycle);
You checked the data in the SUBSCRIBE_LOG table and found that it is a large table containing one million rows.
What could be a reason for this recommendation?
The data blocks in the SUSCRIBE_LOG table are rarely accessed.
70. 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.
71. Which two partitioned table maintenance operations support asynchronous Global Index Maintenance in Oracle
Database 12c?
ALTER TABLE TRUNCATE PARTITION; ALTER TABLE DROP PARTITION
72. You configure your database instance to support shared server connections. Which two memory areas that are part of
PGA are stored in the SGA instead, for shared server connection?
User session data; Private SQL area.
73. Which two statements are true about Oracle Managed Files (OMF)?
OMF automatically creates unique file names for tablespaces and control files. OMF may affect the location of the
redo log files and the archived log files.
74. Which three statements are true when the listener handles connection requests to an Oracle 12c database instance
with multithreaded architecture enabled in UNIX?
Thread creation must be routed through a dispatcher process. Each multithreaded Oracle process has a SCMN
thread. The local listener may pass the request to an existing process which in turn will create a thread.
75. Which three operations can be performed as multipartition operations in Oracle?
Merge partitions of a list partitioned table; drop partitions of a list partitioned table; merge partitions of a reference
partitioned index.
76. You are connected using SQL*Plus to a multitenant container database 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.
77. Examine the details of the Top 5 Timed Events in the following AWR report:

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 two statements are true?


The command will create a common user whose description is contained in the root and each PDB. The schema for
the common user C##A_ADMIN can be different in each container.
86. You performed an incremental level 0 backup of a database:
RMAN > BACKUP INCREMENTAL LEVEL 0 DATABASE;
To enable block change tracking after the incremental level 0 backup, you issued the command:
SQL > ALTER DATABASE ENABLE BLOCK CHANGE TRACKING USING FILE ` /mydir/rman_change_track.f';
To perform an incremental level 1 cumulative backup, you issued this command:
RMAN > BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE;
Which three statements are true?
Block change tracking will always reduce I/O performed during cumulative incremental backups. More than one
database block may be read by an incremental backup for a change made to a single block. The incremental level 1
backup that immediately follows the enabling of block change tracking will not read the change tracking file to
discover changed blocks.
87. You find this query being used in your Oracle 12c database:

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:

Which two statements are true about redefining the table?


The primary key constraint on the EMPLOYEES table is disabled during redefinition. VPD policies are copied from
the original table to the new table during online redefinition.
106. Which two statements are true about the use of procedures listed in the v$sysaux_occupants.move_procedure
column?
The procedure may be used for some components to relocate component data to the SYSAUX tablespace from its
current tablespace. The procedure may be used for some components to relocate component data from the
SYSAUX tablespace to another tablespace.
107. Which statement is true about Oracle Net Listener?
Service registration with the listener is performed by the process monitor (LREG) process of each database instance.
108. You are administering a database stored in Automatic Storage Management (ASM). You use RMAN to back up the
database and the MD_BACKUP command to back up the ASM metadata regularly. You lost an ASM disk group DG1 due
to hardware failure. In which three ways can you re-create the lost disk group and restore the data?
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. 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. 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.
109. 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 restore and recover the data
file in ACCOUNTS_PDB?
Take the USERDATA tablespace offline in ACCOUNTS_PDB.
110. Which Oracle Database component is audited by default if the unified Auditing option is enabled?
Oracle Recovery Manager (RMAN)
111. Your multitenant container (CDB) containing three pluggable databases (PDBs) is running in ARCHIVELOG mode. You
find that the SYSAUX tablespace is corrupted in the root container. The steps to recover the tablespace are as follows:
1. Mount the CDB.
2. Close all the PDBs.
3. Open the database.
4. Apply the archive redo logs.
5. Restore the data file.
6. Take the SYSAUX tablespace offline.
7. Place the SYSAUX tablespace online.
8. Open all the PDBs with RESETLOGS.
9. Open the database with RESETLOGS.
10. Execute the command SHUTDOWN ABORT.
Which option identifies the correct sequence to recover the SYSAUX tablespace?
6, 5, 4, 7
112. Which three are direct benefits of the multiprocess, multithreaded architecture of Oracle Database 12c when it is
enabled?
Reduced virtual memory utilization, improved parallel execution performance, reduced CPU utilization.
113. In order to exploit some new storage tiers that have been provisioned by a storage administrator, the partitions of a
large heap table must be moved to other tablespaces in your Oracle 12c database. Both local and global partitioned B-
tree Indexes are defined on the table. A high volume of transactions access the table during the day and a medium
volume of transactions access it at night and during weekends. Minimal disrupt ion to availability is required.
Which three statements are true about this requirement?
The partitions can be moved online to new tablespaces. The partitions can be compressed in the same tablespaces.
The partitions can be compressed in the new tablespaces.
114. Which two statements are true about the Automatic Database Diagnostic Monitor (ADDM)?
The ADDM runs after each AWR snapshot is collected automatically by MMON. The results of the ADDM analysis
are stored in the AWR.
115. In your production database, data manipulation language (DML) operations are executed on the SALES table. You have
noticed some dubious values in the SALES table during the last few days. You are able to track users, actions taken,
and the time of the action for this particular period but the changes in data are not tracked. You decide to keep track
of both the old data and new data in the table long with the user information.
What action would you take to achieve this task?
Implement value-based auditing.
116. The user SCOTT owns the CUST table that is placed in the SALES tablespace. The user SCOTT opens a session and
executes commands as follows:
SQL> INSERT INTO cust VALUES(101, 'JACK');
1 row created.
SQL> INSERT INTO cust VALUES(102, 'SMITH');
1 row created.
As a DBA, you execute the following command from another session:
ALTER TABLESPACE sales READ ONLY;
Which statement is true regarding the effect of this command on the transaction in Scott's session?
The command waits and the user SCOTT can execute DML statements only as part of the current transaction.
117. You plan to implement the distributed database system in your company. You invoke Database Configuration Assistant
(DBCA) to create a database on the server. During the installation, DBCA prompts you to specify the Global Database
Name. What must this name be made up of?
It must be made up of a database name and a domain name.
118. Which two statements are true about standard database auditing?
DDL statements can be audited. Statements that refer to standalone procedure can be audited.
119. You executed the following command to create a password file in the database server:
$ orapwd file = orapworcl entries = 5 ignorecase=N
Which statement describes the purpose of the above password file?
It is used by Oracle to authenticate users for remote database administrator.
120. 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.
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:

Which two statements are true?


The command will create a common user whose description is contained in the root and each PDB. The schema for
the common user C # # A_ADMIN can be different in each container.
132. Which two resources might be prioritized between competing pluggable databases when creating a multitenant
container database plan (CDB plan) using Oracle Database Resource Manager?
Parallel server limit; CPU.
133. 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.
134. 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.
135. You are about to plug a multi-terabyte non-CDB into an existing multitenant container database (CDB) as a pluggable
database (PDB). The characteristics of the non-CDB are as follows:
- Version: Oracle Database 12c Releases 1 64-bit
- Character set: WE8ISO8859P15
- 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
- O/S: Oracle Linux 6 64-bit
Which technique should you use to minimize down time while plugging this non-CDB into the CDB?
The DBMS_PDB package.
136. You want to flash back a test database by five hours. You issue this command:
SQL > FLASHBACK DATABASE TO TIMESTAMP (SYSDATE - 5/24);
Which two statements are true about this flashback scenario?
The database must be MOUNTED for the flashback to succeed. The database must be opened with the RESETLOGS
option after the flashback is complete.
137. You Execute the Following command to create a password file in the database server:
$ orapwd file = `+DATA/PROD/orapwprod entries = 5 ignorecase = N format = 12'
Which two statements are true about the password file?
Is used by Oracle to authenticate users for remote database administration. It supports the SYSBACKUP, SYSDG, and
SYSKM system privileges.
138. 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.
139. 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.
140. 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.
141. 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 restore and recover the data
file in ACCOUNTS_PDB?
Take the USERDATA tablespace offline in ACCOUNTS_PDB.
142. Which two statements a
re true about the Automatic Database Diagnostic Monitor (ADDM)? (Choose two.)
The ADDM runs after each AWR snapshot is collected automatically by MMON. The results of the ADDM analysis
are stored in the Automatic Workload Repository (AWR).
143. As a user of the ORCL database, you establish a database link to the remote HQ database such that all users in the
ORCL database may access tables only from the SCOTT schema in the HQ database. SCOTT's password is TIGER. The
service mane "HQ" is used to connect to the remote HQ database. Which command would you execute to create the
database link?
CREATE DATABASE LINK HQ CONNECT TO CXJRRENT_USER USING HQ' S
144. What happens if a maintenance window closes before a job that collects optimizer statistics completes?
The job is terminated and statistics for the remaining objects are collected the next time the maintenance window
opens.
145. You plan to create a database by using the Database Configuration Assistant (DBCA), with the following specifications:
- Applications will connect to the database via a middle tier.
- The number of concurrent user connections will be high.
- The database will have mixed workload, with the execution of complex BI queries scheduled at night.
Which DBCA option must you choose to create the database?
A General Purpose database template, with the shared server mode option and Automatic Memory Management
(AMM) enabled.
146. Which two statements are true about the logical storage structure of an Oracle database?
An extent can span multiple segments. It is possible to have tablespaces of different block sizes.
147. Which two statements correctly describe the relationship between data files and logical database structures?
A data file can belong to only one tablespace. An extent cannot span data files.
148. Which statement is true about the Log Writer process?
It writes when a user commits a transaction.
149. The ORCL database is configured to support shared server mode. You want to ensure that a user connecting remotely
to the database instance has a one-to-one ratio between client and server processes. Which connection method
guarantees that this requirement is met?
Creating a service in the database by using the dbms_service.create_service procedure and using this service for
creating a local naming service". Connecting by using a directory naming method.
150. Which two tasks can be performed on an external table?
Creating a public synonym. Creating a view.
151. You are about to plug a multi-terabyte non-CDB into an existing multitenant container database (CDB) as a pluggable
database (PDB). The characteristics of the non-CDB are as follows:
- Version: Oracle Database 12c Releases 1 64-bit
- Character set: WE8ISO8859P15
- 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
- O/S: Oracle Linux 6 64-bit
Which technique should you use to minimize down time while plugging this non-CDB into the CDB?
The DBMS_PDB package.
152. Your database has the SRV1 service configured for an application that runs on middle-tier application server. The
application has multiple modules. You enable tracing at the service level by executing the following command:
SQL > exec DBMS_MONITOR.SERV_MOD_ACT_TRACE_ENABLE (`SRV1');
The possible outcome and actions to aggregate the trace files are as follows:
1. The command fails because a module name is not specified.
2. A trace file is created for each session that is running the SRV1 service.
3. An aggregated trace file is created for all the sessions that are running the SRV1 service.
4. The trace files may be aggregated by using the trcess utility.
5. The trace files be aggregated by using the tkprof utility.
Identify the correct outcome and the step to aggregate by using tkprof utility?
2 and 4.
153. Which three statements are true about SQL plan directives?
They instruct the maintenance job to collect missing statistics or perform dynamic sampling to generate a more
optimal plan. They are created for a query expression where statistics are missing or the cardinality estimates by
the optimizer are incorrect. They instruct the optimizer to create only column group statistics.
154. You want to flash back a test database by five hours. You issue this command:
SQL > FLASHBACK DATABASE TO TIMESTAMP (SYSDATE - 5/24);
Which two statements are true about this flashback scenario?
The database must be MOUNTED for the flashback to succeed. The database must be opened with the RESETLOGS
option after the flashback is complete.
155. Examine these two statements:
Which three are true about the MRKT tablespace?
The MRKT tablespace may be dropped if it has no contents. Users who were using the old default tablespace will
have their default tablespaces changed to the MRKT tablespace. No more data files can be added to the tablespace.
156. In your database, you want to ensure that idle sessions that are blocking active are automatically terminated after a
specified period of time. How would you accomplish this?
Decreasing the value of the IDLE_TIME resource limit in the default profile.
157. You Execute the Following command to create a password file in the database server:
$ orapwd file = `+DATA/PROD/orapwprod entries = 5 ignorecase = N format = 12'
Which two statements are true about the password file?
Is used by Oracle to authenticate users for remote database administration. It supports the SYSBACKUP, SYSDG, and
SYSKM system privileges.
158. Which four actions are possible during an Online Data file Move operation?
Creating and dropping tables in the data file being moved. Querying tables in the data file being moved. Flashing
back the database, Executing DML statements on objects stored in the data file being moved.
159. 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?
Place the root container in ARCHIVELOG mode.
160. Identify three scenarios in which you would recommend the use of SQL Performance Analyzer to analyze impact on
the performance of SQL statements.
Change in the Oracle Database version. Change in the hardware configuration of the database server. Database and
operating system upgrade.
161. Which two statements are true about the RMAN validate database command?
It checks the database for intrablock corruptions. It can detect corrupt spfiles.
162. You install a non-RAC Oracle Database. During Installation, the Oracle Universal Installer (OUI) prompts you to enter
the path of the Inventory directory and also to specify an operating system group name. Which statement is true?
The operating system group that is specified must have permission to write to the inventory directory.
163. You are required to migrate your 11.2.0.3 database as a pluggable database (PDB) to a multitenant container database
(CDB). The following are the possible steps to accomplish this task:
1. Place all the user-defined tablespace in read-only mode on the source database.
2. Upgrade the source database to a 12c version.
3. Create a new PDB in the target container database.
4. Perform a full transportable export on the source database with the VERSION parameter set to 12 using the expdp
utility.
5. Copy the associated data files and export the dump file to the desired location in the target database.
6. Invoke the Data Pump import utility on the new PDB database as a user with the DATAPUMP_IMP_FULL_DATABASE
role and specify the full transportable
import options.
7. Synchronize the PDB on the target container database by using the DBMS_PDS.SYNC_ODB function.
Identify the correct order of the required steps.
1, 4, 3, 5, 6, 7
164. In your multitenant container database (CDB) with two pluggable database (PDBs). You want to create a new PDB by
using SQL Developer. Which statement is true?
The CDB must be open.
165. Which two statements are true about the Oracle Direct Network File system (DNFS)?
Oracle Disk Manager can manage NFS on its own, without using the operating kernel NFS driver. Direct NFS can
load-balance I/O traffic across multiple network adapters.
166. Examine the parameters for your database instance:
Which three statements are true about the process of automatic optimization by using cardinality feedback?
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. The optimizer enables monitoring for cardinality feedback
after the first execution of a query. The optimizer does not monitor cardinality feedback if dynamic sampling and
multicolumn statistics are enabled.
167. Which two resources might be prioritized between competing pluggable databases when creating a multitenant
container database plan (CDB plan) using Oracle Database Resource Manager?
Parallel server limit and CPU.
168. 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?
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):

Which three are prerequisites for successful execution of the command?


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_EXD_FULL_DATABASE role. All the user-defined tablespaces must be in read-only mode on the
source database. The source and target database must be running on the same platform with the same endianness.
180. Which two are true concerning a multitenant container database with three pluggable database?
The pluggable databases are patched together. Pluggable databases are only used for database consolidation.
181. Examine the current value for the following parameters in your database instance:
SGA_MAX_SIZE = 1024M
SGA_TARGET = 700M
DB_8K_CACHE_SIZE = 124M
LOG_BUFFER = 200M
You issue the following command to increase the value of DB_8K_CACHE_SIZE:
SQL> ALTER SYSTEM SET DB_8K_CACHE_SIZE=140M;
Which statement is true?
It fails because an increase in DB_8K_CACHE_SIZE cannot be accommodated within SGA_MAX_SIZE.
182. Which three statements are true concerning unplugging a pluggable database (PDB)?
The PDB must be closed. The unplugged PDB can be plugged into the same multitenant container database (CDB).
The unplugged PDB can be plugged into another CDB.
183. Examine the following command:
CREATE TABLE (prod_id number(4),
Prod_name varchar2 (20),
Category_id number(30),
Quantity_on_hand number (3) INVISIBLE);
Which three statements are true about using an invisible column in the PRODUCTS table?
The %ROWTYPE attribute declarations in PL/SQL to access a row will not display the invisible column in the output.
The DESCRIBE commands in SQL *Plus will not display the invisible column in the output. A primary key constraint
can be added on the invisible column.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy