aiotestking uk

1Z0-062 Exam Questions - Online Test


1Z0-062 Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Q1. 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? 

A. The database must have multiplexed redo logs for the flashback to succeed. 

B. The database must be MOUNTED for the flashback to succeed. 

C. The database must use block change tracking for the flashback to succeed. 

D. The database must be opened in restricted mode for the flashback to succeed. 

E. The database must be opened with the RESETLOGS option after the flashback is complete. 

F. The database must be opened in read-only mode to check if the database has been flashed back to the correct SCN. 

Answer: B,E 

Q2. Which two tasks can be performed on an external table? 

A. partitioning the table 

B. creating an invisible index 

C. updating the table by using an update statement 

D. creating a public synonym 

E. creating a view 

Answer: C,D 

Q3. Which four actions are possible during an Online Data file Move operation? 

A. Creating and dropping tables in the data file being moved 

B. Performing file shrink of the data file being moved 

C. Querying tables in the data file being moved 

D. Performing Block Media Recovery for a data block in the data file being moved 

E. Flashing back the database 

F. Executing DML statements on objects stored in the data file being moved 

Answer: A,C,E,F 

Explanation: - You can now move On line Datafile without hove to stop Monoged Recovery and manually copy and rename Files. This can even be used to move Datafiles from or to ASM. 

-New in Oracle Database 12c: FROM METAUNK. Physical Standby Database is in Active Data Guard Mode (opened READ ONLY and Managed Recovery is running): It is now possible to online move a Datafile while Managed Recovery is running, ie. the Physical Standby Database is in Active Data Guard Mode. You con use this Command to move the Datafile 

-A flashback operation does not relocate a moved data file to its previous location. If you move a data file online from one location to another and later flash back the database to a point in time before the move, then the Data file remains in the new location, but the contents of the Data file ore changed to the contents at the time specified in the flashback. Oracle0 Database Administrator's Guide 12c Release 1 (12.1) 

Q4. 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? 

A. The command fails as a transaction is still pending. 

B. The transaction in Scott's session is rolled back and the tablespace becomes readonly. 

C. The command waits and the user SCOTT can execute data manipulation language (DML) statements only as part of the current transaction. 

D. The command hangs until all transactions on the objects in the tablespace commit or rollback, and then the tablespace is placed in readonly mode. 

Answer:

Q5. Examine the following commands for redefining a table with Virtual Private Database (VPD) policies: 

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 or column 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 online redefinition. 

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

Answer: B,C 

Explanation: C (not D): CONS_VPD_AUTO Used to indicate to copy VPD policies automatically 

* DBMS_RLS.ADD_POLICY / The DBMS_RLS package contains the fine-grained access control administrative interface, which is used to implement Virtual Private Database (VPD).DBMS_RLS is available with the Enterprise Edition only. 

Note: 

* CONS_USE_PK and CONS_USE_ROWID are constants used as input to the "options_flag" parameter in both the START_REDEF_TABLE Procedure and CAN_REDEF_TABLE Procedure. CONS_USE_ROWID is used to indicate that the 

redefinition should be done using rowids while CONS_USE_PK implies that the redefinition should be done using primary keys or pseudo-primary keys (which are unique keys with all component columns having NOT NULL constraints). 

* DBMS_REDEFINITION.START_REDEF_TABLE To achieve online redefinition, incrementally maintainable local materialized views are used. These logs keep track of the changes to the master tables and are used by the materialized views during refresh synchronization. 

* START_REDEF_TABLE Procedure Prior to calling this procedure, you must manually create an empty interim table (in the same schema as the table to be redefined) with the desired attributes of the post-redefinition table, and then call this procedure to initiate the redefinition. 

Q6. You configure your database Instance to support shared server connections. 

Which two memory areas that are part of PGA are stored in SGA instead, for shared server connection? 

A. User session data 

B. Stack space 

C. Private SQL area 

D. Location of the runtime area for DML and DDL Statements 

E. Location of a part of the runtime area for SELECT statements 

Answer: A,C 

Explanation: A: PGA itself is subdivided. The UGA (User Global Area) contains session state information, including stuff like package-level variables, cursor state, etc. Note that, with shared server, the UGA is in the SGA. It has to be, because shared server means that the session state needs to be accessible to all server processes, as any one of them could be assigned a particular session. However, with dedicated server (which likely what you're using), the UGA is allocated in the PGA. 

C: The Location of a private SQL area depends on the type of connection established for a session. If a session is connected through a dedicated server, private SQL areas are located in the server process’ PGA. However, if a session is connected through a shared server, part of the private SQL area is kept in the SGA. 

Note: 

* System global area (SGA) The SGA is a group of shared memory structures, known as SGA components, that contain data and control information for one Oracle Database instance. The SGA is shared by all server and background processes. Examples of data stored in the SGA include cached data blocks and shared SQL areas. 

* Program global area (PGA) 

A PGA is a memory region that contains data and control information for a server process. It is nonshared memory created by Oracle Database when a server process is started. Access to the PGA is exclusive to the server process. There is one PGA for each server process. Background processes also allocate their own PGAs. The total memory used by all individual PGAs is known as the total instance PGA memory, and the collection of individual PGAs is referred to as the total instance PGA, or just instance PGA. You use database initialization parameters to set the size of the instance PGA, not individual PGAs. 

Reference: Oracle Database Concepts 12c 

Q7. 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? 

A. Both the indexes are created; however, only the ORD_COSTOMER index is visible. 

B. The optimizer evaluates index access from both the Indexes before deciding on which index to use for query execution plan. 

C. Only the ORD_CUSTOMER_IX1 index is created. 

D. Only the ORD_CUSTOMER_IX2 index is created. 

E. Both the indexes are updated when a new row is inserted, updated, or deleted In the orders table. 

Answer: A,E 

Explanation: 11G has a new feature called Invisible Indexes. An invisible index is invisible to the optimizer as default. Using this feature we can test a new index without effecting the execution plans of the existing sql statements or we can test the effect of dropping an index without dropping it. 

Q8. 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? 

A. BACKUP PLUGGABLE DATABASE PDB1 while connected to the root container 

B. BACKUP PLUGGABLE DATABASE PDB1 while connected to the PDB1 container 

C. BACKUP DATABASE while connected to the PDB1 container 

D. BACKUP DATABASE while connected to the boot container 

E. BACKUP PLUGGABLE database PDB1 while connected to PDB2 

Answer: A,C 

Explanation: To perform operations on a single PDB, you can connect as target either to the root or directly to the PDB. 

* (A) If you connect to the root, you must use the PLUGGABLE DATABASE syntax in your RMAN commands. For example, to back up a PDB, you use the BACKUP PLUGGABLE DATABASE command. 

* (C)If instead you connect directly to a PDB, you can use the same commands that you would use when connecting to a non-CDB. For example, to back up a PDB, you would use the BACKUP DATABASE command. 

Reference: Oracle Database Backup and Recovery User's Guide 12c, About Backup and Recovery of CDBs 

Q9. 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? 

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

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

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

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

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

Answer: C,E 

Q10. 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? 

A. Use the MD_RESTORE command to restore metadata for an existing disk group by passing the existing disk group name as an input parameter and use RMAN to restore the data. 

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

C. Use the MD_RESTORE command to restore the disk group with the changed disk group specification, failure group specification, name, and other attributes and use RMAN to restore the data. 

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

E. Use the MD_RESTORE command to restore both the metadata and data for the failed disk group. 

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

Answer: A,C,F 

Explanation: AC (not E): 

The md_restore command allows you to restore a disk group from the metadata created by 

the md_backup command. 

md_restore can’t restore data, only metadata.