Your success in Oracle 1z0 062 pdf is our sole target and we develop all our oracle database 12c installation and administration 1z0 062 pdf braindumps in a way that facilitates the attainment of this target. Not only is our 1z0 062 dumps study material the best you can find, it is also the most detailed and the most updated. 1z0 062 dumps Practice Exams for Oracle Database 12c 1z0 062 dumps are written to the highest standards of technical accuracy.

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

A. Create the CREATE_TEST procedure with definer’s rights. 

B. Grant the EXECUTE privilege to users with GRANT OPTION on the CREATE_TEST procedure. 

C. Create the CREATE_TEST procedure with invoker’s rights. 

D. Create the CREATE_TEST procedure as part of a package and grant users the EXECUTE privilege the package. 

Answer:

Explanation: If a program unit does not need to be executed with the escalated privileges of the definer, you should specify that the program unit executes with the privileges of the caller, also known as the invoker. Invoker's rights can mitigate the risk of SQL injection. 

Incorrect: 

Not A: By default, stored procedures and SQL methods execute with the privileges of their owner, not their current user. Such definer-rights subprograms are bound to the schema in which they reside. 

not B: Using the GRANT option, a user can grant an Object privilege to another user or to PUBLIC. 


Q10. What happens if a maintenance window closes before a job that collects optimizer statistics completes? 

A. The job is terminated and the gathered statistics are not saved. 

B. The job is terminated but the gathered statistics are not published. 

C. The job continues to run until all statistics are gathered. 

D. The job is terminated and statistics for the remaining objects are collected the next time the maintenance window opens. 

Answer:


Q11. A database is stored in an Automatic Storage Management (ASM) disk group, 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 error of for maintenance? 

A. Transactions and queries accessing database objects contained in any tablespace stored in DGROUP1 will fall. 

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

C. The data in the CONTROLLER1 failure group is copied to the controller2 failure group and rebalancing is initiated. 

D. ASM does not mirror any data until the controller failure group is brought back online, and newly allocated primary allocation units (AU) are stored in the controller2 failure group, without mirroring. 

E. Transactions accessing database objects contained in any tablespace stored in DGROUP1 will fail but queries will succeed. 

Answer:

Explanation: CREATE DISKGROUP NORMAL REDUNDANCY 

* For Oracle ASM to mirror files, specify the redundancy level as NORMAL REDUNDANCY (2-way mirroring by default for most file types) or HIGH REDUNDANCY (3-way mirroring for all files). 


Q12. Which three statements are true about SQL plan directives? 

A. They are tied to a specific statement or SQL ID. 

B. They instruct the maintenance job to collect missing statistics or perform dynamic sampling to generate a more optimal plan. 

C. They are used to gather only missing statistics. 

D. They are created for a query expression where statistics are missing or the cardinality estimates by the optimizer are incorrect. 

E. They instruct the optimizer to create only column group statistics. 

F. Improve plan accuracy by persisting both compilation and execution statistics in the SYSAUX tablespace. 

Answer: B,D,E 

Explanation: During SQL execution, if a cardinality misestimate occurs, then the database creates SQL plan directives. During SQL compilation, the optimizer examines the query corresponding to the directive to determine whether missing extensions or histograms exist (D). The optimizer records any missing extensions. Subsequent DBMS_STATS calls collect statistics for the extensions. 

The optimizer uses dynamic sampling whenever it does not have sufficient statistics corresponding to the directive. (B, not C) 

E: Currently, the optimizer monitors only column groups. The optimizer does not create an extension on expressions. 

Incorrect: 

Not A: SQL plan directives are not tied to a specific SQL statement or SQL ID. 

Note: 

* A SQL plan directive is additional information and instructions that the optimizer can use to generate a more optimal plan. For example, a SQL plan directive can instruct the optimizer to record a missing extension. 


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

A. The STATISTICS_LEVEL parameter is set to all whenever this PDB is re-opened. 

B. The STATISTICS_LEVEL parameter is set to ALL whenever any PDB is reopened. 

C. The STATISTICS_LEVEL parameter is set to all whenever the multitenant container database (CDB) is restarted. 

D. Nothing happens; because there is no SPFILE for each PDB, the statement is ignored. 

Answer:

Explanation: 

Note: 

* In a container architecture, the parameters for PDB will inherit from the root database. That means if statistics_level=all in the root that will cascade to the PDB databases. 

You can over ride this by using Alter system set, if that parameter is pdb modifiable, there is a new column in v$system_parameter for the same. 


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

A. Transportable database 

B. Transportable tablespace 

C. Data Pump full export/import 

D. The DBMS_PDB package 

E. RMAN 

Answer:

Explanation: * Overview, example: 

-Log into ncdb12c as sys 

-Get the database in a consistent state by shutting it down cleanly. 

-Open the database in read only mode 

-Run DBMS_PDB.DESCRIBE to create an XML file describing the database. 

-Shut down ncdb12c 

-Connect to target CDB (CDB2) 

-Check whether non-cdb (NCDB12c) can be plugged into CDB(CDB2) 

-Plug-in Non-CDB (NCDB12c) as PDB(NCDB12c) into target CDB(CDB2). 

-Access the PDB and run the noncdb_to_pdb.sql script. 

-Open the new PDB in read/write mode. 

* You can easily plug an Oracle Database 12c non-CDB into a CDB. Just create a PDB manifest file for the non-CDB, and then use the manifest file to create a cloned PDB in the CDB. 

* Note that to plugin a non-CDB database into a CDB, the non-CDB database needs to be of version 12c as well. So existing 11g databases will need to be upgraded to 12c before they can be part of a 12c CDB. 


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

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

B. All the user-defined tablespaces must be in read-only mode on the source database. 

C. The export dump file must be created before starting the import on the target database. 

D. The source and target database must be running on the same platform with the same endianness. 

E. The path of data files on the target database must be the same as that on the source database. 

F. The impdp operation must be performed by the same user that performed the expdp operation. 

Answer: A,B,D 

Explanation: In this case we have run the impdp without performing any conversion if 

endian format is different then we have to first perform conversion. 


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

A. Only SGA components are sized automatically-

B. Memory is dynamically re-allocated between the SGA and PGA as needed. 

C. The size of the PGA cannot grow automatically beyond 500 MB. 

D. The value of the MEMORY_TARGET parameter cannot be changed dynamically. 

Answer: