1Z0-062 Exam - Oracle Database 12c: Installation and Administration

certleader.com

Q1. Which two statements are true about the use of the procedures listed in the v$sysaux_occupants.move_procedure column? 

A. The procedure may be used for some components to relocate component data to the SYSAUX tablespace from its current tablespace. 

B. The procedure may be used for some components to relocate component data from the SYSAUX 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,B 

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

A. by granting a secure application role to the user 

B. by implementing Database Resource Manager 

C. by using Oracle Label Security options 

D. by assigning a profile to the user 

Answer:

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

A. by granting a secure application role to the users 

B. by creating and assigning a profile to the users and setting the REMOTE_OS_AUTHENT parameter to FALSE 

C. By creating and assigning a profile to the users and setting the SEC_MAX_FAILED_LOGIN_ATTEMPTS parameter to 4 

D. By Implementing Fine-Grained Auditing (FGA) and setting the REMOTE_LOGIN_PASSWORD_FILE parameter to NONE. 

E. By implementing the database resource Manager plan and setting the SEC_MAX_FAILED_LOGIN_ATTEMPTS parameters to 4. 

Answer:

Explanation: You can design your applications to automatically grant a role to the user who is trying to log in, provided the user meets criteria that you specify. To do so, you create a secure application role, which is a role that is associated with a PL/SQL procedure (or PL/SQL package that contains multiple procedures). The procedure validates the user: if the user fails the validation, then the user cannot log in. If the user passes the validation, then the procedure grants the user a role so that he or she can use the application. The user has this role only as long as he or she is logged in to the application. When the user logs out, the role is revoked. 

Incorrect: 

Not B: REMOTE_OS_AUTHENT specifies whether remote clients will be authenticated with the value of the OS_AUTHENT_PREFIX parameter. 

Not C, not E: SEC_MAX_FAILED_LOGIN_ATTEMPTS specifies the number of authentication attempts that can be made by a client on a connection to the server process. 

After the specified number of failure attempts, the connection will be automatically dropped by the server process. 

Not D: REMOTE_LOGIN_PASSWORDFILE specifies whether Oracle checks for a password file. 

Values: 

shared 

One or more databases can use the password file. The password file can contain SYS as well as non-SYS users. 

exclusive 

The password file can be used by only one database. The password file can contain SYS as well as non-SYS users. 

none 

Oracle ignores any password file. Therefore, privileged users must be authenticated by the operating system. 

Note: 

The REMOTE_OS_AUTHENT parameter is deprecated. It is retained for backward compatibility only. 

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

A. Using a partial local Index on the warehouse fact table month column with indexing disabled to the table partitions that return most of their rows to the queries. 

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

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

D. Converting the partitioned table to a partitioned view that does a UNION ALL query on the monthly tables, which retains the existing local partitioned column. 

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

F. Using a partial global index on the warehouse fact table month column with indexing disabled for the table partitions that return a few rows to the queries. 

Answer: B,C,E 

Explanation: 

Note: 

* Oracle 12c now provides the ability to index a subset of partitions and to exclude the others. 

Local and global indexes can now be created on a subset of the partitions of a table. Partial Global indexes provide more flexibility in index creation for partitioned tables. For example, index segments can be omitted for the most recent partitions to ensure maximum data ingest rates without impacting the overall data model and access for the partitioned object. 

Partial Global Indexes save space and improve performance during loads and queries. This feature supports global indexes that include or index a certain subset of table partitions or subpartitions, and exclude the others. This operation is supported using a default table indexing property. When a table is created or altered, a default indexing property can be specified for the table or its partitions. 

Q5. Identify three valid options for adding a pluggable database (PDB) to an existing multitenant container database (CDB). 

A. Use the CREATE PLUGGABLE DATABASE statement to create a PDB using the files from the SEED. 

B. Use the CREATE DATABASE . . . ENABLE PLUGGABLE DATABASE statement to provision 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 existing CDB. 

E. Use the DBMS_PDB package to plug an Oracle 11 g Release 2 (11.2.0.3.0) non-CDB database into an existing CDB. 

Answer: A,C,D 

Explanation: Use the CREATE PLUGGABLE DATABASE statement to create a pluggable database (PDB). 

This statement enables you to perform the following tasks: 

* (A) Create a PDB by using the seed as a template 

Use the create_pdb_from_seed clause to create a PDB by using the seed in the multitenant container database (CDB) as a template. The files associated with the seed are copied to a new location and the copied files are then associated with the new PDB. 

* (C) Create a PDB by cloning an existing PDB 

Use the create_pdb_clone clause to create a PDB by copying an existing PDB (the source PDB) and then plugging the copy into the CDB. The files associated with the source PDB are copied to a new location and the copied files are associated with the new PDB. This operation is called cloning a PDB. 

The source PDB can be plugged in or unplugged. If plugged in, then the source PDB can be in the same CDB or in a remote CDB. If the source PDB is in a remote CDB, then a database link is used to connect to the remote CDB and copy the files. 

* Create a PDB by plugging an unplugged PDB or a non-CDB into a CDB 

Use the create_pdb_from_xml clause to plug an unplugged PDB or a non-CDB into a CDB, using an XML metadata file. 

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

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

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

A. You can conned as a common user by using the connect statement. 

B. You can connect as a local user by using the connect statement. 

C. You can connect by using easy connect. 

D. You can connect by using OS authentication. 

E. You can connect by using a Net Service name. 

F. You can connect as a local user by using the SET CONTAINER statement. 

Answer: C,D,E,F 

Explanation: 

* The choice of threading model is dictated by the THREADED_EXECUTION initialization parameter. 

THREADED_EXECUTION=FALSE : The default value causes Oracle to run using the multiprocess model. 

THREADED_EXECUTION=TRUE : Oracle runs with the multithreaded model. 

* OS Authentication is not supported with the multithreaded model. 

* THREADED_EXECUTION When this initialization parameter is set to TRUE, which enables the multithreaded Oracle model, operating system authentication is not supported. Attempts to connect to the database using operating system authentication (for example, CONNECT / AS SYSDBA or

CONNECT / ) when this initialization parameter is set to TRUE receive an ORA-01031"insufficient privileges" error. 

F: The new SET CONTAINER statement within a call back function: 

The advantage of SET CONTAINER is that the pool does not have to create a new connection to a PDB, if there is an exisitng connection to a different PDB. The pool can use the existing connection, and through SET CONTAINER, can connect to the desired PDB. This can be done using: 

ALTER SESSION SET CONTAINER=<PDB Name> 

This avoids the need to create a new connection from scratch. 

Q9. Examine these two statements: 

Which three are true about the MRKT tablespace? 

A. The MRKT tablespace is created as a small file tablespace, because the file size is less than the minimum required for big file files. 

B. The MRKT tablespace may be dropped if it has no contents. 

C. Users who were using the old default tablespace will have their default tablespaces changed to the MRKT tablespace. 

D. No more data files can be added to the tablespace. 

E. The relative file number of the tablespace is not stored in rowids for the table rows that are stored in the MRKT tablespace. 

Answer: B,C,D