Oracle-1z0-060new

Oracle-1z0-060new

s@lm@n

oracle

Exam 1z0-060

Upgrade to oracle Database 12c

Version: 8.6

[ Total Questions: 150 ]

oracle 1z0-060 : Practice TestQuestion no : 1Your multitenant container (cDB) contains two pluggable databases (PDB), HR_PDB andAccoUnTS_PDB, both of which use the cDB tablespace. The temp file is calledtemp01.tmp.

A user issues a query on a table on one of the PDBs and receives the following error:

ERRoR at line 1:

oRA-01565: error in identifying file ‘/u01/app/oracle/oradata/cDB1/temp01.tmp’

oRA-27037: unable to obtain file status

Identify two ways to rectify the error.

A. Add a new temp file to the temporary tablespace and drop the temp file that thatproduced the error.

B. Shut down the database instance, restore the temp01.tmp file from the backup, and thenrestart the database.

c. Take the temporary tablespace offline, recover the missing temp file by applying redologs, and then bring the temporary tablespace online.

D. Shutdown the database instance, restore and recover the temp file from the backup, andthen open the database with RESETLoGS.

E. Shut down the database instance and then restart the cDB and PDBs.

Answer: A,E

Explanation: * Because temp files cannot be backed up and because no redo is evergenerated for them, RMAn never restores or recovers temp files. RMAn does track thenames of temp files, but only so that it can automatically re-create them when needed.

* If you use RMAn in a Data Guard environment, then RMAn transparently convertsprimary control files to standby control files and vice versa. RMAn automatically updatesfile names for data files, online redo logs, standby redo logs, and temp files when you issueRESToRE and REcoVER.

Question no : 2Examine the following commands for redefining a table with Virtual Private Database (VPD)policies:

2

oracle 1z0-060 : Practice Test

Which two statements are true about redefining the table?

A. All the triggers for the table are disabled without changing any of the column names orcolumn types in the table.

B. The primary key constraint on the EMPLoYEES table is disabled during redefinition. c. VPD policies are copied from the original table to the new table during onlineredefinition.

D. You must copy the VPD policies manually from the original table to the new table duringonline redefinition.

Answer: A,c

Explanation: The triggers cloned to the interim table are disabled until the redefinition iscompleted. once the redefinition is complete, all cloned objects are renamed to the originalnames used by they objects they were cloned from.

Ref: /articles/10g/online-table-redefinition-enhancements-10gr1.php

Question no : 3Which two statements are true about the use of the procedures listed in thev$sysaux_occupants.move_procedure column?

A. The procedure may be used for some components to relocate component data to the

3

oracle 1z0-060 : Practice Test

SYSAUX tablespace from its current tablespace.

B. The procedure may be used for some components to relocate component data from theSYSAUX tablespace to another tablespace.

c. All the components may be moved into SYSAUX tablespace.

D. All the components may be moved from the SYSAUX tablespace.

Answer: A,BExplanation:

/t_v_sysaux_contents_tips.htm

Question no : 4Which statement is true about oracle net Listener?

A. It acts as the listening endpoint for the oracle database instance for all local and non-local user connections.

B. A single listener can service only one database instance and multiple remote clientconnections.

c. Service registration with the listener is performed by the process monitor (LREG)process of each database instance.

D. The listener.ora configuration file must be configured with one or more listening protocoladdresses to allow remote users to connect to a database instance. E. The listener.ora configuration file must be located in theoRAcLE_HoME/network/admin directly.

Answer: c

Question no : 5You are administering a database stored in Automatic Storage Management (ASM). Youuse RMAn to back up the database and the MD_BAcKUP command to back up the ASMmetadata 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?

A. Use the MD_RESToRE command to restore metadata for an existing disk group bypassing the existing disk group name as an input parameter and use RMAn to restore the

4

oracle 1z0-060 : Practice Test

data.

B. Use the MKDG command to restore the disk group with the same configuration as thebacked-up disk group and data on the disk group.

c. Use the MD_RESToRE command to restore the disk group with the changed disk groupspecification, failure group specification, name, and other attributes and use RMAn torestore the data.

D. Use the MKDG command to restore the disk group with the same configuration as thebacked-up disk group name and same set of disks and failure group configuration, and useRMAn to restore the data.

E. Use the MD_RESToRE command to restore both the metadata and data for the faileddisk group.

F. Use the MKDG command to add a new disk group DG1 with the same or differentspecifications for failure group and other attributes and use RMAn to restore the data.

Answer: c,D,F

Question no : 6Your multitenant container database, cDB1, is running in ARcHIVELoG mode and hastwo pluggable databases, HR_PDB and AccoUnTS_PDB. An RMAn backup exists forthe database.

You issue the command to open AccoUnTS_PDB and find that the USERDATA.DBFdata file for the default permanent tablespace USERDATA belonging to AccoUnTS_PDBis corrupted.

What should you do before executing the commands to restore and recover the data file inAccoUnTS_PDB?

A. Place cDB1 in the mount stage and then the USERDATA tablespace offline inAccoUnTS_PDB.

B. Place cDB1 in the mount stage and issue the ALTER PLUGGABLE DATABASEaccounts_pdb cLoSE IMMEDIATE command.

c. Issue the ALTER PLUGGABLE DATABASE accounts_pdb RESTRIcTED command. D. Take the USERDATA tablespace offline in AccoUnTS_PDB.

Answer: D

Explanation: * You can take an online tablespace offline so that it is temporarily

unavailable for general use. The rest of the database remains open and available for usersto access data. conversely, you can bring an offline tablespace online to make the schemaobjects within the tablespace available to database users. The database must be open to

5

oracle 1z0-060 : Practice Test

alter the availability of a tablespace.

Question no : 7Which oracle Database component is audited by default if the unified Auditing option isenabled?

A. oracle Data Pump

B. oracle Recovery Manager (RMAn) c. oracle Label Security D. oracle Database Vault

E. oracle Real Application Security

Answer: B

Question no : 8Your multitenant container (cDB) containing three pluggable databases (PDBs) is runningin ARcHIVELoG mode. You find that the SYSAUX tablespace is corrupted in the rootcontainer.

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.

6

oracle 1z0-060 : Practice Test

10. Execute the command SHUTDoWn ABoRT.

Which option identifies the correct sequence to recover the SYSAUX tablespace?

A. 6, 5, 4, 7 B. 10, 1, 2, 5, 8

c. 10, 1, 2, 5, 4, 9, 8 D. 10, 1, 5, 8, 10

Answer: A

Explanation: RMAn> ALTER TABLESPAcE sysaux oFFLInE IMMEDIATE; RMAn> RESToRE TABLESPAcE sysaux; RMAn> REcoVER TABLESPAcE sysaux;

RMAn> ALTER TABLESPAcE sysaux onLInE;

* Example:

While evaluating the 12c beta3 I was not able to do the recover while testing “all pdb fileslost”.

cannot close the pdb as the system datafile was missing… So only option to recover was: Shutdown cdb (10) startup mount; (1)

restore pluggable database recover pluggable database alter database open;

alter pluggable database name open;

oracle support says: You should be able to close the pdb and restore/recover the systemtablespace of PDB.

* Inconsistent backups are usually created by taking online database backups. You canalso make an inconsistent backup by backing up data files while a database is closed,either:

/ Immediately after the crash of an oracle instance (or, in an oracle RAc configuration, allinstances)

/ After shutting down the database using SHUTDoWn ABoRT

Inconsistent backups are only useful if the database is in ARcHIVELoG mode and allarchived redo logs created since the backup are available.

* open the database with the RESETLoGS option after finishing recovery:

7

oracle 1z0-060 : Practice Test

SQL> ALTER DATABASE oPEn RESETLoGS;

Question no : 9Which three are direct benefits of the multiprocess, multithreaded architecture of oracleDatabase 12c when it is enabled?

A. Reduced logical I/o

B. Reduced virtual memory utilization

c. Improved parallel Execution performance D. Improved Serial Execution performance E. Reduced physical I/o F. Reduced cPU utilization

Answer: B,c,F

Explanation: * Multiprocess and Multithreaded oracle Database Systems

Multiprocess oracle Database (also called multiuser oracle Database) uses severalprocesses to run different parts of the oracle Database code and additional oracleprocesses for the users—either one process for each connected user or one or moreprocesses shared by multiple users. Most databases are multiuser because a primaryadvantage of a database is managing data needed by multiple users simultaneously.

Each process in a database instance performs a specific job. By dividing the work of thedatabase and applications into several processes, multiple users and applications canconnect to an instance simultaneously while the system gives good performance.

* In previous releases, oracle processes did not run as threads on UnIX and Linuxsystems. Starting in oracle Database 12c, the multithreaded oracle Database modelenables oracle processes to execute as operating system threads in separate addressspaces.

Question no : 10In order to exploit some new storage tiers that have been provisioned by a storage

8

oracle 1z0-060 : Practice Test

administrator, the partitions of a large heap table must be moved to other tablespaces inyour 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 oftransactions access it at night and during weekends.

Minimal disrupt ion to availability is required.

Which three statements are true about this requirement?

A. The partitions can be moved online to new tablespaces.

B. Global indexes must be rebuilt manually after moving the partitions. c. The partitions can be compressed in the same tablespaces. D. The partitions can be compressed in the new tablespaces.

E. Local indexes must be rebuilt manually after moving the partitions.

Answer: A,c,D

Explanation: A: You can create and rebuild indexes online. Therefore, you can updatebase tables at

the same time you are building or rebuilding indexes on that table. You can perform DML operations while the index build is taking place, but DDL operations are not allowed. Parallel execution is not supported when creating or rebuilding an index online.

D: Moving (Rebuilding) Index-organized Tables

Because index-organized tables are primarily stored in a B-tree index, you can

encounter fragmentation as a consequence of incremental updates. However, you can use the ALTER TABLE...MoVE statement to rebuild the index and reduce this fragmentation.

c: If a table can be compressed in the new tablespace, also it can be compressed in thesame tablespace.

/technetwork/issue-archive/2014/14-may/o34dba-2193424.html

Incorrect:

not B, not E: Local and Global indexes can be automatically rebuild with UPDATEInDEXES when you move the table.

9

oracle 1z0-060 : Practice TestQuestion no : 11Which three are true about the large pool for an oracle database instance that supportsshared server connections?

A. Allocates memory for RMAn backup and restore operations B. Allocates memory for shared and private SQL areas

c. contains a cursor area for storing runtime information about cursors D. contains stack space

E. contains a hash area performing hash joins of tables

Answer: A,B,c

Explanation: The large pool can provide large memory allocations for the following: / (B)UGA (User Global Area) for the shared server and the oracle XA interface (usedwhere transactions interact with multiple databases)

/Message buffers used in the parallel execution of statements / (A) Buffers for Recovery Manager (RMAn) I/o slaves

note:

* large pool

optional area in the SGA that provides large memory allocations for backup and restoreoperations, I/o server processes, and session memory for the shared server and oracleXA.

* oracle XA

An external interface that allows global transactions to be coordinated by a transactionmanager other than oracle Database.

* UGA

User global area. Session memory that stores session variables, such as logoninformation, and can also contain the oLAP pool.

* configuring the Large Pool

Unlike the shared pool, the large pool does not have an LRU list (not D). oracle Databasedoes not attempt to age objects out of the large pool. consider configuring a large pool ifthe database instance uses any of the following oracle Database features:

* Shared server

In a shared server architecture, the session memory for each client process is included inthe shared pool.

10

oracle 1z0-060 : Practice Test

* Parallel query

Parallel query uses shared pool memory to cache parallel execution message buffers.

* Recovery Manager

Recovery Manager (RMAn) uses the shared pool to cache I/o buffers during backup andrestore operations. For I/o server processes, backup, and restore operations, oracleDatabase allocates buffers that are a few hundred kilobytes in size.

Question no : 12What are three purposes of the RMAn “FRoM” clause?

A. to support PUSH-based active database duplication

B. to support synchronization of a standby database with the primary database in a Dataenvironment

c. To support PULL-based active database duplication

D. To support file restores over the network in a Data Guard environment E. To support file recovery over the network in a Data Guard environment

Answer: B,D,EExplanation: DE:

* With a control file autobackup, RMAn can recover the database even if the currentcontrol file, recovery catalog, and server parameter file are inaccessible.

* RMAn uses a recovery catalog to track filenames for all database files in a Data Guardenvironment. A recovery catalog is a database schema used by RMAn to store metadataabout one or more oracle databases. The catalog also records where the online redo logs,standby redo logs, tempfiles, archived redo logs, backup sets, and image copies arecreated.

Question no : 13You notice that the performance of your production 24/7 oracle database significantlydegraded. Sometimes you are not able to connect to the instance because it hangs. Youdo not want to restart the database instance.

11

oracle 1z0-060 : Practice Test

How can you detect the cause of the degraded performance?

A. Enable Memory Access Mode, which reads performance data from SGA. B. Use emergency monitoring to fetch data directly from SGA analysis.

c. Run Automatic Database Diagnostic Monitor (ADDM) to fetch information from the latestAutomatic Workload Repository (AWR) snapshots.

D. Use Active Session History (ASH) data and hang analysis in regular performancemonitoring.

E. Run ADDM in diagnostic mode.

Answer: B

Question no : 14You plan to use the In Database Archiving feature of oracle Database 12c, and store rowsthat are inactive for over three months, in Hybrid columnar compressed (Hcc) format.

Which three storage options support the use of Hcc?

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

B. ASM disk groups with ASM disks consisting of LUnS on any Storage Area networkarray

c. ASM disk groups with ASM disks consisting of any zero padded nFS-mounted files D. Database files stored in ZFS and accessed using conventional nFS mounts. E. Database files stored in ZFS and accessed using the oracle Direct nFS feature F. Database files stored in any file system and accessed using the oracle Direct nFSfeature

G. ASM disk groups with ASM disks consisting of LUns on Pillar Axiom Storage arrays

Answer: A,E,G

Explanation: Hcc requires the use of oracle Storage – Exadata (A), Pillar Axiom (G) orSun ZFS Storage Appliance (ZFSSA).

note:

* Hybrid columnar compression, initially only available on Exadata, has been extended tosupport Pillar Axiom and Sun ZFS Storage Appliance (ZFSSA) storage when used withoracle Database Enterprise Edition 11.2.0.3 and above

* oracle offers the ability to manage nFS using a feature called oracle Direct nFS (dnFS).oracle Direct nFS implements nFS V3 protocol within the oracle database kernel itself.oracle Direct nFS client overcomes many of the challenges associated with using nFS

12

oracle 1z0-060 : Practice Test

with the oracle Database with simple configuration, better performance than traditionalnFS clients, and offers consistent configuration across platforms.

Question no : 15In your multitenant container database (cDB) containing pluggable databases (PDB), userscomplain about performance degradation.

How does real-time Automatic database Diagnostic Monitor (ADDM) check performancedegradation and provide solutions?

A. It collects data from SGA and compares it with a preserved snapshot. B. It collects data from SGA, analyzes it, and provides a report.

c. It collects data from SGA and compares it with the latest snapshot.

D. It collects data from both SGA and PGA, analyzes it, and provides a report.

Answer: BExplanation: note:

* The multitenant architecture enables an oracle database to function as a multitenantcontainer database (cDB) that includes zero, one, or many customer-created pluggabledatabases (PDBs). A PDB is a portable collection of schemas, schema objects, andnonschema objects that appears to an oracle net client as a non-cDB. All oracledatabases before oracle Database 12c were non-cDBs.

* The System Global Area (SGA) is a group of shared memory areas that are dedicated toan oracle “instance” (an instance is your database programs and RAM).

* The PGA (Program or Process Global Area) is a memory area (RAM) that stores dataand control information for a single process.

Question no : 16The tnsnames.ora file has an entry for the service alias oRcL as follows:

13

oracle 1z0-060 : Practice Test

The TnS ping command executes successfully when tested with oRcL; however, from thesame oS user session, you are not able to connect to the database instance with thefollowing command:

SQL > connEcT scott/tiger@orcl

What could be the reason for this?

A. The listener is not running on the database node.

B. The TnS_ADMIn environment variable is set to the wrong value.

c. The orcl.oracle.com database service is not registered with the listener.

D. The DEFAULT_DoMAIn parameter is set to the wrong value in the sqlnet.ora file. E. The listener is running on a different port.

Answer: c

Explanation: Service registration enables the listener to determine whether a databaseservice and its service handlers are available. A service handler is a dedicated server

process or dispatcher that acts as a connection point to a database. During registration, theLREG process provides the listener with the instance name, database service names, andthe type and addresses of service handlers. This information enables the listener to start aservice handler when a client request arrives.

Question no : 17Examine the following steps of privilege analysis for checking and revoking excessive,unused privileges granted to users:

1. create a policy to capture the privilege used by a user for privilege analysis.

2. Generate a report with the data captured for a specified privilege capture.

3. Start analyzing the data captured by the policy.

4. Revoke the unused privileges.

14

oracle 1z0-060 : Practice Test

5. compare the used and unused privileges’ lists.

6. Stop analyzing the data.

Identify the correct sequence of steps.

A. 1, 3, 5, 6, 2, 4 B. 1, 3, 6, 2, 5, 4 c. 1, 3, 2, 5, 6, 4 D. 1, 3, 2, 5, 6, 4 E. 1, 3, 5, 2, 6, 4

Answer: B

Explanation: 1. create a policy to capture the privilege used by a user for privilegeanalysis.

3. Start analyzing the data captured by the policy. 6. Stop analyzing the data.

2. Generate a report with the data captured for a specified privilege capture. 5. compare the used and unused privileges’ lists. 4. Revoke the unused privileges.

Question no : 18You database is running an ARcHIVELoG mode.

The following parameter are set in your database instance:

LoG_ARcHIVE_FoRMAT = arch+%t_%r.arc

LoG_ARcHIVE_DEST_1 = ‘LocATIon = /disk1/archive’

DB_REcoVERY_FILE_DEST_SIZE = 50G

DB_REcoVERY_FILE = ‘/u01/oradata’

Which statement is true about the archived redo log files?

A. They are created only in the location specified by the LoG_ARcHIVE_DEST_1parameter.

15

oracle 1z0-060 : Practice Test

B. They are created only in the Fast Recovery Area.

c. They are created in the location specified by the LoG_ARcHIVE_DEST_1 parameterand in the default location $oRAcLE_HoME/dbs/arch.

D. They are created in the location specified by the LoG_ARcHIVE_DEST_1 parameterand the location specified by the DB_REcoVERY_FILE_DEST parameter.

Answer: A

Explanation: You can choose to archive redo logs to a single destination or to multipledestinations.

Destinations can be local—within the local file system or an oracle Automatic Storage Management (oracle ASM) disk group—or remote (on a standby database). When you archive to multiple destinations, a copy of each filled redo log file is written to each destination. These redundant copies help ensure that archived logs are always available in the event of a failure at one of the destinations.

To archive to only a single destination, specify that destination using the

LoG_ARcHIVE_DEST and LoG_ARcHIVE_DUPLEX_DEST initialization parameters. ARcHIVE_DEST initialization parameter. To archive to multiple destinations, you can

choose to archive to two or more locations using the LoG_ARcHIVE_DEST_n initialization parameters, or to archive only to a primary and secondary destination using the LoG_ ARcHIVE_DEST and LoG_ARcHIVE_DUPLEX_DEST initialization parameters.

Question no : 19Your multitenant container database (cDB) is running in ARcHIVELoG mode. Youconnect to the cDB RMAn.

Examine the following command and its output:

You execute the following command:

RMAn > BAcKUP DATABASE PLUS ARcHIVELoG;

16

oracle 1z0-060 : Practice Test

Which data files will be backed up?

A. Data files that belong to only the root container

B. Data files that belong to the root container and all the pluggable databases (PDBs) c. Data files that belong to only the root container and PDB$SEED

D. Data files that belong to the root container and all the PDBs excluding PDB$SEED

Answer: B

Explanation: Backing Up a Whole cDB

Backing up a whole cDB is similar to backing up a non-cDB. When you back up a wholecDB, RMAn backs up the root, all the PDBs, and the archived redo logs. You can thenrecover either the whole cDB, the root only, or one or more PDBs from the cDB backup.

note:

* You can back up and recover a whole cDB, the root only, or one or more PDBs.

* Backing Up Archived Redo Logs with RMAn

Archived redo logs are the key to successful media recovery. Back them up regularly. Youcan back up logs with BAcKUP ARcHIVELoG, or back up logs while backing up datafilesand control files by specifying BAcKUP ... PLUS ARcHIVELoG.

Question no : 20You are administering a database stored in Automatic Storage management (ASM). Thefiles are stored in the DATA disk group. You execute the following command:

SQL > ALTER DISKGRoUP data ADD ALIAS ‘+data/prod/myfile.dbf’ FoR ‘+data/prod/myfile.dbf’

What is the result?

A. The file ‘+data.231.54769’ is physically relocated to ‘+data/prod’ and renamed as‘myfile.dbf’.

B. The file ‘+data.231.54769’ is renamed as ‘myfile.dbf’, and copied to ‘+data/prod’. c. The file ‘+data.231.54769’ remains in the same location and a synonym "myfile.dbf" is

17

oracle 1z0-060 : Practice Test

created.

D. The file ‘myfile.dbf’ is created in ‘+data/prod’ and the reference to ‘+data.231.54769’ inthe data dictionary removed.

Answer: c

Explanation: ADD ALIAS

Use this clause to create an alias name for an oracle ASM filename. The alias_nameconsists of the full directory path and the alias itself.

Question no : 21Which three functions are performed by the SQL Tuning Advisor?

A. Building and implementing SQL profiles

B. Recommending the optimization of materialized views c. checking query objects for missing and stale statistics

D. Recommending bitmap, function-based, and B-tree indexes

E. Recommending the restructuring of SQL queries that are using bad plans

Answer: A,c,E

Explanation: The SQL Tuning Advisor takes one or more SQL statements as an input andinvokes the Automatic Tuning optimizer to perform SQL tuning on the statements. Theoutput of the SQL Tuning Advisor is in the form of an advice or recommendations, alongwith a rationale for each recommendation and its expected benefit. The recommendationrelates to collection of statistics on objects (c), creation of new indexes, restructuring of theSQL statement (E), or creation of a SQL profile (A). You can choose to accept therecommendation to complete the tuning of the SQL statements.

Question no : 22Examine the following command:

ALTER SYSTEM SET enable_ddl_logging=FALSE;

Which statement is true?

18

oracle 1z0-060 : Practice Test

A. none of the data definition language (DDL) statements are logged in the trace file. B. only DDL commands that resulted in errors are logged in the alert log file.

c. A new log.xml file that contains the DDL statements is created, and the DDL commanddetails are removed from the alert log file.

D. only DDL commands that resulted in the creation of new database files are logged.

Answer: A

Explanation: EnABLE_DDL_LoGGInG enables or disables the writing of a subset of datadefinition language (DDL) statements to a DDL alert log.

The DDL log is a file that has the same format and basic behavior as the alert log, but itonly contains the DDL statements issued by the database. The DDL log is created only forthe RDBMS component and only if the EnABLE_DDL_LoGGInG initialization parameter isset to true. When this parameter is set to false, DDL statements are not included in any log.

Question no : 23Your multitenant container database (cDB) contains three pluggable database (PDBs).You find that the control file is damaged. You plan to use RMAn to recover the control file.There are no startup triggers associated with the PDBs.

Which three steps should you perform to recover the control file and make the databasefully operational?

A. Mount the container database (cDB) and restore the control file from the control file autobackup.

B. Recover and open the cDB in noRMAL mode.

c. Mount the cDB and then recover and open the database, with the RESETLoGS option. D. open all the pluggable databases. E. Recover each pluggable database.

F. Start the database instance in the nomount stage and restore the control file from controlfile auto backup.

Answer: c,D,F

Explanation: Step 1: F Step 2: D

Step 3: c: If all copies of the current control file are lost or damaged, then you must restoreand mount a backup control file. You must then run the REcoVERcommand, even if nodata files have been restored, and open the database with the RESETLoGS option.

19

oracle 1z0-060 : Practice Test

note:

* RMAn and oracle Enterprise Manager cloud control (cloud control) provide full supportfor backup and recovery in a multitenant environment. You can back up and recover awhole multitenant container database (cDB), root only, or one or more pluggabledatabases (PDBs).

Question no : 24A new report process containing a complex query is written, with high impact on the

database. You want to collect basic statistics about query, such as the level of parallelism,total database time, and the number of I/o requests.

For the database instance STATISTIcS_LEVEL, the initialization parameter is set toTYPIcAL and the conTRoL_MAnAGEMEnT_PAcK_AccESS parameter is set toDIAGnoSTIc+TUnInG.

What should you do to accomplish this task?

A. Execute the query and view Active Session History (ASH) for information about thequery.

B. Enable SQL trace for the query.

c. create a database operation, execute the query, and use the

DBMS_SQL_MonIToR.REPoRT_SQL_MonIToR function to view the report.

D. Use the DBMS_APPLIcATIon_InFo.SET_SESSIon_LonGoPS procedure to monitorquery execution and view the information from the V$SESSIon_LonGoPS view.

Answer: c

Explanation: The REPoRT_SQL_MonIToR function is used to return a SQL monitoringreport for a specific SQL statement. Incorrect:

not A: not interested in session statistics, only in statistics for the particular SQL query. not B: We are interested in statistics, not tracing. not D: SET_SESSIon_LonGoPS Procedure

This procedure sets a row in the V$SESSIon_LonGoPS view. This is a view that is usedto indicate the on-going progress of a long running operation. Some oracle functions, suchas parallel execution and Server Managed Recovery, use rows in this view to indicate the

20

oracle 1z0-060 : Practice Test

status of, for example, a database backup.

Applications may use the SET_SESSIon_LonGoPS procedure to advertise informationon the progress of application specific long running tasks so that the progress can bemonitored by way of the V$SESSIon_LonGoPS view.

Question no : 25Identify two valid options for adding a pluggable database (PDB) to an existing multitenantcontainer database (cDB).

A. Use the cREATE PLUGGABLE DATABASE statement to create a PDB using the filesfrom the SEED.

B. Use the cREATE DATABASE . . . EnABLE PLUGGABLE DATABASE statement toprovision a PDB by copying file from the SEED.

c. Use the DBMS_PDB package to clone an existing PDB.

D. Use the DBMS_PDB package to plug an oracle 12c non-cDB database into an existingcDB.

E. Use the DBMS_PDB package to plug an oracle 11 g Release 2 (11.2.0.3.0) non-cDBdatabase into an existing cDB.

Answer: A,D

Question no : 26Your 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 analyzesome 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 andmaterialized views to improve query performance?

A. create a SQL Tuning Set (STS) that contains the queries cached in the library cacheand run the SQL Tuning Advisor (STA) on the workload captured in the STS. B. Run the Automatic Workload Repository Monitor (ADDM).

c. create an STS that contains the queries cached in the library cache and run the SQL

21

oracle 1z0-060 : Practice Test

Performance Analyzer (SPA) on the workload captured in the STS.

D. create an STS that contains the queries cached in the library cache and run the SQLAccess Advisor on the workload captured in the STS.

Answer: D

Explanation: * SQL Access Advisor is primarily responsible for making schema

modification recommendations, such as adding or dropping indexes and materialized

views. SQL Tuning Advisor makes other types of recommendations, such as creating SQLprofiles and restructuring SQL statements.

* The query optimizer can also help you tune SQL statements. By using SQL Tuning

Advisor and SQL Access Advisor, you can invoke the query optimizer in advisory mode toexamine a SQL statement or set of statements and determine how to improve theirefficiency. SQL Tuning Advisor and SQL Access Advisor can make various

recommendations, such as creating SQL profiles, restructuring SQL statements, creatingadditional indexes or materialized views, and refreshing optimizer statistics.

note:

* Decision support system (DSS) workload

* The library cache is a shared pool memory structure that stores executable SQL andPL/SQL code. This cache contains the shared SQL and PL/SQL areas and controlstructures such as locks and library cache handles.

Reference: Tuning SQL Statements

Question no : 27The 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.

22

oracle 1z0-060 : Practice Test

3. Implement the recommendations in the task by using theDBMS_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:

A. 2, 4, 5

B. 2, 1, 4, 3, 5 c. 1, 2, 3, 4, 5 D. 1, 2, 4, 5

Answer: B

Explanation: * Evolving SQL Plan Baselines

Description of Figure 23-4 follows *

2. create the evolve task by using the DBMS_SPM.cREATE_EVoLVE_TASK function. This function creates an advisor task to prepare the plan evolution of one or more plans fora specified SQL statement. The input parameters can be a SQL handle, plan name or a listof plan names, time limit, task name, and description. 1. Set the evolve task parameters. SET_EVoLVE_TASK_PARAMETER

This function updates the value of an evolve task parameter. In this release, the only validparameter is TIME_LIMIT.

23

oracle 1z0-060 : Practice Test

4. Execute the evolve task by using the DBMS_SPM.EXEcUTE_EVoLVE_TASK function. This function executes an evolution task. The input parameters can be the task name,execution name, and execution description. If not specified, the advisor generates thename, which is returned by the function. 3: IMPLEMEnT_EVoLVE_TASK

This function implements all recommendations for an evolve task. Essentially, this functionis equivalent to using AccEPT_SQL_PLAn_BASELInE for all recommended plans. Inputparameters include task name, plan name, owner name, and execution name. 5. Report the task outcome by using the DBMS_SPM_EVoLVE_TASK function.

This function displays the results of an evolve task as a cLoB. Input parameters includethe task name and section of the report to include.

Reference: oracle Database SQL Tuning Guide 12c, Managing SQL Plan Baselines

Question no : 28In a recent Automatic Workload Repository (AWR) report for your database, you notice ahigh number of buffer busy waits. The database consists of locally managed tablespaceswith free list managed segments.

on further investigation, you find that buffer busy waits is caused by contention on datablocks.

Which option would you consider first to decrease the wait event immediately?

A. Decreasing PcTUSED B. Decreasing PcTFREE

c. Increasing the number of DBWn process

D. Using Automatic Segment Space Management (ASSM)

E. Increasing db_buffer_cache based on the V$DB_cAcHE_ADVIcE recommendation

Answer: D

Explanation: * Automatic segment space management (ASSM) is a simpler and moreefficient way of managing space within a segment. It completely eliminates any need tospecify and tune the pctused,freelists, and freelist groups storage parameters for schemaobjects created in the tablespace. If any of these attributes are specified, they are ignored.

24

oracle 1z0-060 : Practice Test

* oracle introduced Automatic Segment Storage Management (ASSM) as a replacementfor traditional freelists management which used one-way linked-lists to manage free blockswith tables and indexes. ASSM is commonly called \oracle implement the internal data structures for free block management.

note:

* Buffer busy waits are most commonly associated with segment header contention onsidethe data buffer pool (db_cache_size, etc.).

* The most common remedies for high buffer busy waits include database writer (DBWR)contention tuning, adding freelists (or ASSM), and adding missing indexes.

Question no : 29Examine this command:

SQL > exec DBMS_STATS.SET_TABLE_PREFS (‘SH’, ‘cUSToMERS’, ‘PUBLISH’,‘false’);

Which three statements are true about the effect of this command?

A. Statistics collection is not done for the cUSToMERS table when schema stats aregathered.

B. Statistics collection is not done for the cUSToMERS table when database stats aregathered.

c. Any existing statistics for the cUSToMERS table are still available to the optimizer atparse time.

D. Statistics gathered on the cUSToMERS table when schema stats are gathered arestored as pending statistics.

E. Statistics gathered on the cUSToMERS table when database stats are gathered arestored as pending statistics.

Answer: c,D,E

Explanation: * SET_TABLE_PREFS Procedure

This procedure is used to set the statistics preferences of the specified table in thespecified schema.

* Example:

25

首页