1Z0-062 Premium Bundle

1Z0-062 Premium Bundle

Oracle Database 12c: Installation and Administration Certification Exam

4.5 
(7215 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
December 4, 2024Last update

Oracle 1Z0-062 Free Practice Questions

Q1. Which task would you recommend before using the Database Upgrade Assistant (DBUA) to upgrade a single-instance Oracle 11g R2 database to Oracle Database 12c? 

A. shutting down the database instance that is being upgraded 

B. executing the catctl.pl script to run the upgrade processes in parallel 

C. running the Pre-Upgrade Information Tool 

D. copying the listener.ora file to the new ORACLE_HOME 

Answer:

Reference: http://docs.oracle.com/cd/E11882_01/server.112/e23633/upgrade.htm#UPGRD12395 

Q2. You have altered a non-unique index to be invisible to determine if queries execute within an acceptable response time without using this index. 

Which two are possible if table updates are performed which affect the invisible index columns? 

A. The index remains invisible. 

B. The index is not updated by the DML statements on the indexed table. 

C. The index automatically becomes visible in order to have it updated by DML on the table. 

D. The index becomes unusable but the table is updated by the DML. 

E. The index is updated by the DML on the table. 

Answer: A,E 

Explanation: Unlike unusable indexes, an invisible index is maintained during DML statements. 

Note: 

* Oracle 11g allows indexes to be marked as invisible. Invisible indexes are maintained like any other index, but they are ignored by the optimizer unless the OPTIMIZER_USE_INVISIBLE_INDEXES parameter is set to TRUE at the instance or session level. Indexes can be created as invisible by using the INVISIBLE keyword, and their visibility can be toggled using the ALTER INDEX command. 

Q3. Your multitenant container database (CDB) contains a pluggable database, HR_PDB. The default permanent tablespace in HR_PDB is USERDATA. The container database (CDB) is open and you connect RMAN. 

You want to issue the following RMAN command: 

RMAN > BACKUP TABLESPACE hr_pdb:userdata; 

Which task should you perform before issuing the command? 

A. Place the root container in ARHCHIVELOG mode. 

B. Take the user data tablespace offline. 

C. Place the root container in the nomount stage. 

D. Ensure that HR_PDB is open. 

Answer:

Q4. You install a non-RAC Oracle Database. During Installation, the Oracle Universal Installer (OUI) prompts you to enter the path of the Inventory directory and also to specify an operating system group name. 

Which statement is true? 

A. The ORACLE_BASE base parameter is not set. 

B. The installation is being performed by the root user. 

C. The operating system group that is specified should have the root user as its member. 

D. The operating system group that is specified must have permission to write to the inventory directory. 

Answer:

Explanation: 

Note: 

Providing a UNIX Group Name 

If you are installing a product on a UNIX system, the Installer will also prompt you to provide the name of the group which should own the base directory. 

You must choose a UNIX group name which will have permissions to update, install, and deinstall Oracle software. Members of this group must have write permissions to the base directory chosen. 

Only users who belong to this group are able to install or deinstall software on this machine. 

Q5. You find this query being used in your Oracle 12c database: 

Which method a used by the optimizer to limit the rows being returned? 

A. A filter is added to the table query dynamically using ROWNUM to limit the rows to 20 percent of the total rows 

B. All the rows are returned to the client or middle tier but only the first 20 percent are returned to the screen or the application. 

C. A view is created during execution and a filter on the view limits the rows to 20 percent of the total rows. 

D. A TOP-N query is created to limit the rows to 20 percent of the total rows 

Answer:

Q6. Which two statements are true? 

A. A role cannot be assigned external authentication. 

B. A role can be granted to other roles. 

C. A role can contain both system and object privileges. 

D. The predefined resource role includes the unlimited_tablespace privilege. 

E. All roles are owned by the sys user. 

F. The predefined connect role is always automatically granted to all new users at the time of their creation. 

Answer: B,C 

Reference: http://docs.oracle.com/cd/E11882_01/network.112/e36292/authorization.htm#DBSEG9987 

8 (the functionality of roles) 

Q7. You plan to create a database by using the Database Configuration Assistant (DBCA), with the following specifications: 

Applications will connect to the database via a middle tier. 

The number of concurrent user connections will be high. 

The database will have mixed workload, with the execution of complex BI queries scheduled at night. 

Which DBCA option must you choose to create the database? 

A. a General Purpose database template with default memory allocation 

B. a Data Warehouse database template, with the dedicated server mode option and AMM enabled 

C. a General Purpose database template, with the shared server mode option and Automatic Memory Management (AMM) enabled 

D. a default database configuration 

Answer:

Reference: http://www.oracledistilled.com/oracle-database/administration/creating-a-database-using-database-configuration-assistant/ 

Q8. In your database, you want to ensure that idle sessions that are blocking active are automatically terminated after a specified period of time. 

How would you accomplish this? 

A. Setting a metric threshold 

B. Implementing Database Resource Manager 

C. Enabling resumable timeout for user sessions 

D. Decreasing the value of the IDLE_TIME resource limit in the default profile 

Answer:

Explanation: An Oracle session is sniped when you set the idle_time parameter to disconnect inactive sessions. (It's only like sniping on ebay in that a time is set for an action to occur.) 

Oracle has several ways to disconnect inactive or idle sessions, both from within SQL*Plus via resources profiles (connect_time, idle_time), and with the SQL*net expire time parameter. Here are two ways to disconnect an idle session: 

Set the idle_time parameter in the user profile Set the sqlnet.ora parameter expire_time 

Q9. You must track all transactions that modify certain tables in the sales schema for at least three years. 

Automatic undo management is enabled for the database with a retention of one day. 

Which two must you do to track the transactions? 

A. Enable supplemental logging for the database. 

B. Specify undo retention guarantee for the database. 

C. Create a Flashback Data Archive in the tablespace where the tables are stored. 

D. Create a Flashback Data Archive in any suitable tablespace. 

E. Enable Flashback Data Archiving for the tables that require tracking. 

Answer: D,E 

Explanation: E: By default, flashback archiving is disabled for any table. You can enable flashback archiving for a table if you have the FLASHBACK ARCHIVE object privilege on the Flashback Data Archive that you want to use for that table. 

D: Creating a Flashback Data Archive 

/ Create a Flashback Data Archive with the CREATE FLASHBACK ARCHIVE statement, specifying the following: 

Name of the Flashback Data Archive 

Name of the first tablespace of the Flashback Data Archive 

(Optional) Maximum amount of space that the Flashback Data Archive can use in the first tablespace 

/ Create a Flashback Data Archive named fla2 that uses tablespace tbs2, whose data will be retained for two years: 

CREATE FLASHBACK ARCHIVE fla2 TABLESPACE tbs2 RETENTION 2 YEAR; 

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

Q11. Which three tasks can be automatically performed by the Automatic Data Optimization feature of Information lifecycle Management (ILM)? 

A. Tracking the most recent read time for a table segment in a user tablespace 

B. Tracking the most recent write time for a table segment in a user tablespace 

C. Tracking insert time by row for table rows 

D. Tracking the most recent write time for a table block 

E. Tracking the most recent read time for a table segment in the SYSAUX tablespace 

F. Tracking the most recent write time for a table segment in the SYSAUX tablespace 

Answer: A,B,D 

Explanation: 

Incorrect: 

Not E, Not F When Heat Map is enabled, all accesses are tracked by the in-memory activity tracking module. Objects in the SYSTEM and SYSAUX tablespaces are not tracked. 

* To implement your ILM strategy, you can use Heat Map in Oracle Database to track data access and modification. 

Heat Map provides data access tracking at the segment-level and data modification tracking at the segment and row level. 

* To implement your ILM strategy, you can use Heat Map in Oracle Database to track data access and modification. You can also use Automatic Data Optimization (ADO) to automate the compression and movement of data between different tiers of storage within the database. Reference: Automatic Data Optimization with Oracle Database 12c with Oracle Database 12c 

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

Q13. You are about to plug a multi-terabyte non-CDB into an existing multitenant container database (CDB) as a pluggable database (PDB). 

The characteristics of the non-CDB are as follows: 

Version: Oracle Database 12c Releases 1 64-bit Character set: WE8ISO8859P15 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 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: D Explanation: 

Note: 

* Generating a Pluggable Database Manifest File for the Non-CDB 

Execute the dbms_pdb.describe procedure to generate the manifest file. 

exec dbms_pdb.describe(pdb_descr_file=>'/u01/app/oracle/oradata/noncdb/noncdb.xml'); 

Shut down the noncdb instance to prepare to copy the data files in the next section. 

shutdown immediate exit 

Q14. You Execute the Following command to create a password file in the database server: 

$ orapwd file = ‘+DATA/PROD/orapwprod entries = 5 ignorecase = N format = 12’ Which two statements are true about the password file? 

A. It records the usernames and passwords of users when granted the DBA role. 

B. It contains the usernames and passwords of users for whom auditing is enabled. 

C. Is used by Oracle to authenticate users for remote database administration. 

D. It records the usernames and passwords of all users when they are added to the OSDBA or OSOPER operating system groups. 

E. It supports the SYSBACKUP, SYSDG, and SYSKM system privileges. 

Answer: C,E 

Q15. Which three features work together, to allow a SQL statement to have different cursors for the same statement based on different selectivity ranges? 

A. Bind Variable Peeking 

B. SQL Plan Baselines 

C. Adaptive Cursor Sharing 

D. Bind variable used in a SQL statement 

E. Literals in a SQL statement 

Answer: A,C,E 

Explanation: * In bind variable peeking (also known as bind peeking), the optimizer looks at the value in a bind variable when the database performs a hard parse of a statement. 

When a query uses literals, the optimizer can use the literal values to find the best plan. However, when a query uses bind variables, the optimizer must select the best plan without the presence of literals in the SQL text. This task can be extremely difficult. By peeking at bind values the optimizer can determine the selectivity of a WHERE clause condition as if literals had been used, thereby improving the plan. 

C: Oracle 11g/12g uses Adaptive Cursor Sharing to solve this problem by allowing the server to compare the effectiveness of execution plans between executions with different bind variable values. If it notices suboptimal plans, it allows certain bind variable values, or ranges of values, to use alternate execution plans for the same statement. This functionality requires no additional configuration. 

Q16. As a user of the ORCL database, you establish a database link to the remote HQ database such that all users in the ORCL database may access tables only from the SCOTT schema in the HQ database. SCOTT’s password is TIGER. The service mane “HQ” is used to connect to the remote HQ database. 

Which command would you execute to create the database link? 

A. CREATE DATABASE LINK HQ USING 'HQ' 

B. CREATE DATABASE LINK HQ CONNECT TO CXJRRENT_USER USING HQ' S 

C. CREATE PUBLIC DATABASE LINK HQ CONNECT TO scott IDENTIFIED BY tiger USING 'HQ' 

D. CREATE DATABASE LINK HQ CONNECT TO scott IDENTIFIED BY tiger USING 'HQ' 

Answer:

START 1Z0-062 EXAM