1Z0-062 | All About Guaranteed 1Z0-062 practice test


Q81. Which 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 client connections. 

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

D. The listener.ora configuration file must be configured with one or more listening protocol addresses to allow remote users to connect to a database instance. 

E. The listener.ora configuration file must be located in the ORACLE_HOME/network/admin directly. 

Answer:

Explanation: Supported services, that is, the services to which the listener forwards client requests, can be configured in the listener.ora file or this information can be dynamically registered with the listener. This dynamic registration feature is called service registration. 

The registration is performed by the PMON process—an instance background process—of each database instance that has the necessary configuration in the database initialization parameter file. Dynamic service registration does not require any configuration in the listener.ora file. 

Incorrect: 

Not B: Service registration reduces the need for the SID_LIST_listener_name parameter setting, which specifies information about the databases served by the listener, in the listener.ora file. 

Note: 

* Oracle Net Listener is a separate process that runs on the database server computer. It receives incoming client connection requests and manages the traffic of these requests to the database server. 

* A remote listener is a listener residing on one computer that redirects connections to a database instance on another computer. Remote listeners are typically used in an Oracle Real Application Clusters (Oracle RAC) environment. You can configure registration to remote listeners, such as in the case of Oracle RAC, for dedicated server or shared server environments. 

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

A. The C # # B_ADMIN user can perform all backup and recovery operations using RMAN only. 

B. The C # # C_ADMIN user can perform the data guard operation with Data Guard Broker. 

C. The C # # A_ADMIN user can perform wallet operations. 

D. The C # # D_ADMIN user can perform backup and recovery operations for Automatic Storage Management (ASM). 

E. The C # # B_ADMIN user can perform all backup and recovery operations using RMAN or SQL* Plus. 

Answer: B,D,E Explanation: 

B: SYSDG administrative privilege has ability to perform Data Guard operations (including startup and shutdown) using Data Guard Broker or dgmgrl. 

D: SYSASM The new (introduced in 11g) SYSASM role to manage the ASM instance, variable extent sizes to reduce shared pool usage, and the ability of an instance to read from a specific disk of a diskgroup 

E (Not A): SYSDBA is like a role in the sense that it is granted, but SYSDBA is a special built-in privilege to allow the DBA full control over the database 

Incorrect: 

Not C: SYSKM. SYSKM administrative privilege has ability to perform transparent data encryption wallet operations. 

Note: 

Use the V$PWFILE_USERS view to see the users who have been granted administrative privileges. 

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

A. It executes successfully and the CREATE TABLE privilege is revoked from C # # A_ADMIN in root only. 

B. It fails and reports an error because the CONTAINER=ALL clause is not used. 

C. It excludes successfully and the CREATE TABLE privilege is revoked from C # # A_ADMIN in root and all PDBs. 

D. It fails and reports an error because the CONTAINER=CURRENT clause is not used. 

E. It executes successfully and the CREATE TABLE privilege is revoked from C # # A_ADMIN in all PDBs. 

Answer:

Explanation: REVOKE ..FROM 

If the current container is the root: 

/ Specify CONTAINER = CURRENT to revoke a locally granted system privilege, object privilege, or role from a common user or common role. The privilege or role is revoked from the user or role only in the root. This clause does not revoke privileges granted with CONTAINER = ALL. 

/ Specify CONTAINER = ALL to revoke a commonly granted system privilege, object privilege on a common object, or role from a common user or common role. The privilege or role is revoked from the user or role across the entire CDB. This clause can revoke only a privilege or role granted with CONTAINER = ALL from the specified common user or common role. This clause does not revoke privileges granted locally with CONTAINER = CURRENT. However, any locally granted privileges that depend on the commonly granted privilege being revoked are also revoked. 

If you omit this clause, then CONTAINER = CURRENT is the default. 

Reference: Oracle Database SQL Language Reference 12c, Revoke 

Q84. 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. 

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

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

C. Take the temporary tablespace offline, recover the missing temp file by applying redo logs, and then bring the temporary tablespace online. 

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

E. 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 ever generated for them, RMAN never restores or recovers temp files. RMAN does track the names 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 converts primary control files to standby control files and vice versa. RMAN automatically updates file names for data files, online redo logs, standby redo logs, and temp files when you issue RESTORE and RECOVER. 

Q85. 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 users tablespace uses Automnrif 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? 

A. Altering the data life associated with the USERS tablespace to ex automatically 

B. Adding a data life to the USERS tablespace 

C. Changing segment space management for the USERS tablespace to manual 

D. Creating a new tablespace with autoextend enabled and changing the default tablespace of the HR user to the new tablespace 

E. Enabling resumable space allocation by setting the RESUMABLE_TIMEOUT parameter to a nonzero value 

Answer: A,D 

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

A. Only 1 

B. Only 2 

C. Only 3 

D. 3 and 1 

E. 1 and 2 

Answer:

Explanation: Example (see step23): 

Step 1: 

Run the RMAN FLASHBACK DATABASE command. 

You can specify the target time by using a form of the command shown in the following 

examples: 

FLASHBACK DATABASE TO SCN 46963; 

FLASHBACK DATABASE 

TO RESTORE POINT BEFORE_CHANGES; 

FLASHBACK DATABASE TO TIME 

"TO_DATE('09/20/05','MM/DD/YY')"; 

When the FLASHBACK DATABASE command completes, the database is left mounted and recovered to the specified target time. 

Step 2: 

Make the database available for updates by opening the database with the RESETLOGS option. If the database is currently open read-only, then execute the following commands in SQL*Plus: 

SHUTDOWN IMMEDIATE 

STARTUP MOUNT 

ALTER DATABASE OPEN RESETLOGS; 

Q87. 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 

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

A. The %ROWTYPE attribute declarations in PL/SQL to access a row will not display the invisible column in the output. 

B. The DESCRIBE commands in SQL *Plus will not display the invisible column in the output. 

C. Referential integrity constraint cannot be set on the invisible column. 

D. The invisible column cannot be made visible and can only be marked as unused. 

E. A primary key constraint can be added on the invisible column. 

Answer: A,B,E 

Explanation: AB: You can make individual table columns invisible. Any generic access of a table does not show the invisible columns in the table. For example, the following operations do not display invisible columns in the output: 

* SELECT * FROM statements in SQL 

* DESCRIBE commands in SQL*Plus 

* %ROWTYPE attribute declarations in PL/SQL 

* Describes in Oracle Call Interface (OCI) 

Incorrect: 

Not D: You can make invisible columns visible. 

You can make a column invisible during table creation or when you add a column to a table, and you can later alter the table to make the same column visible. 

Reference: Understand Invisible Columns 

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

A. Data is redacted for the EMP.SAL column only if the SCOTT session does not have the MGR role set. 

B. Data is redacted for EMP.SAL column only if the SCOTT session has the MGR role set. 

C. Data is never redacted for the EMP_V.SAL column. 

D. Data is redacted for the EMP_V.SAL column only if the SCOTT session has the MGR role set. 

E. Data is redacted for the EMP_V.SAL column only if the SCOTT session does not have the MGR role set. 

Answer: A,C 

Explanation: 

Note: 

* DBMS_REDACT.FULL completely redacts the column data. 

* DBMS_REDACT.NONE applies no redaction on the column data. Use this function for development testing purposes. LOB columns are not supported. 

* The DBMS_REDACT package provides an interface to Oracle Data Redaction, which enables you to mask (redact) data that is returned from queries issued by low-privileged users or an application. 

* If you create a view chain (that is, a view based on another view), then the Data Redaction policy also applies throughout this view chain. The policies remain in effect all of the way up through this view chain, but if another policy is created for one of these views, then for the columns affected in the subsequent views, this new policy takes precedence. 

Q90. Identify two correct statements about multitenant architectures. 

A. Multitenant architecture can be deployed only in a Real Application Clusters (RAC) configuration. 

B. Multiple pluggable databases (PDBs) share certain multitenant container database (CDB) resources. 

C. Multiple CDBs share certain PDB resources. 

D. Multiple non-RAC CDB instances can mount the same PDB as long as they are on the same server. 

E. Patches are always applied at the CDB level. 

F. A PDB can have a private undo tablespace. 

Answer: B,E 

Explanation: B: Using 12c Resource manager you will be able control CPU, Exadata I/O, sessions and parallel servers. A new 12c CDB Resource Manager Plan will use so-called “Shares” (resource allocations) to specify how CPU is distributed between PDBs. A CDB Resource Manager Plan also can use “utilization limits” to limit the CPU usage for a PDB. With a default directive, you do not need to modify the resource plan for each PDB plug and unplug. 

E: New paradigms for rapid patching and upgrades. 

The investment of time and effort to patch one multitenant container database results in patching all of its many pluggable databases. To patch a single pluggable database, you simply unplug/plug to a multitenant container database at a different Oracle Database software version. 

Incorrect: Not A: 

* The Oracle RAC documentation describes special considerations for a CDB in an Oracle RAC environment. 

* Oracle Multitenant is a new option for Oracle Database 12c Enterprise Edition that helps customers reduce IT costs by simplifying consolidation, provisioning, upgrades, and more. It is supported by a new architecture that allows a container database to hold many pluggable databases. And it fully complements other options, including Oracle Real Application Clusters and Oracle Active Data Guard. An existing database can be simply adopted, with no change, as a pluggable database; and no changes are needed in the other tiers of the application. Not D: You can unplug a PDB from one CDB and plug it into a different CDB without altering your schemas or applications. A PDB can be plugged into only one CDB at a time. 

not F: 

* UNDO tablespace can NOT be local and stays on the CDB level. 

* Redo and undo go hand in hand, and so the CDB as a whole has a single undo tablespace per RAC instance.