1Z0-062 Premium Bundle

1Z0-062 Premium Bundle

Oracle Database 12c: Installation and Administration Certification Exam

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

Oracle 1Z0-062 Free Practice Questions

Q1. Which two statements correctly describe the relationship between data files and logical database structures? 

A. A segment cannot span data files. 

B. A data file can belong to only one tablespace. 

C. An extent cannot span data files. 

D. The size of an Oracle data block in a data file should be the same as the size of an OS block. 

Answer: B,C 

Reference: https://mohibalvi.wordpress.com/tag/alter-tablespace/ 

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

Q3. You are required to migrate your 11.2.0.3 database as a pluggable database (PDB) to a multitenant container database (CDB). 

The following are the possible steps to accomplish this task: 

1. Place all the user-defined tablespace in read-only mode on the source database. 

2. Upgrade the source database to a 12c version. 

3. Create a new PDB in the target container database. 

4. Perform a full transportable export on the source database with the VERSION parameter set to 12 using the expdp utility. 

5. Copy the associated data files and export the dump file to the desired location in the target database. 

6. Invoke the Data Pump import utility on the new PDB database as a user with the DATAPUMP_IMP_FULL_DATABASE role and specify the full transportable import options. 

7. Synchronize the PDB on the target container database by using the DBMS_PDS.SYNC_ODB function. 

Identify the correct order of the required steps. 

A. 2, 1, 3, 4, 5, 6 

B. 1, 3, 4, 5, 6, 7 

C. 1, 4, 3, 5, 6, 7 

D. 2, 1, 3, 4, 5, 6, 7 

E. 1, 5, 6, 4, 3, 2 

Answer:

Explanation: 

1. Set user tablespaces in the source database to READ ONLY. 

2. From the Oracle Database 11g Release 2 {11.2.0.3) environment, export the metadata and any data residing in administrative tablespaces from the source database using the FULL=Y and TRANSPORTABLE=ALWAYS parameters. Note that the VER$ION=12 parameter is required only when exporting from an Oracle Database llg Release 2 database: 

3. Copy the tablespace data files from the source system to the destination system. Note that the log file from the export operation will list the data files required to be moved. 

4. Create a COB on the destination system, including a PDB into which you will import the source database. 

5. In the Oracle Database 12c environment, connect to the pre-created PDB and import the dump file. The act of importing the dump file will plug the tablespace data files into the destination PDB Oracle White Paper - Upgrading to Oracle Database 12c -August 2013 

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

Q5. Your database has the SRV1 service configured for an application that runs on middle-tier application server. The application has multiple modules. You enable tracing at the service level by executing the following command: 

SQL > exec DBMS_MONITOR.SERV_MOD_ACT_TRACE_ENABLE (‘SRV1’); 

The possible outcome and actions to aggregate the trace files are as follows: 

1. The command fails because a module name is not specified. 

2. A trace file is created for each session that is running the SRV1 service. 

3. An aggregated trace file is created for all the sessions that are running the SRV1 service. 

4. The trace files may be aggregated by using the trcess utility. 

5. The trace files be aggregated by using the tkprof utility. 

Identify the correct outcome and the step to aggregate by using tkprof utility? 

A. 1 

B. 2 and 4 

C. 2 and 5 

D. 3 and 4 

E. 3 and 5 

Answer:

Explanation: Tracing information is present in multiple trace files and you must use the trcsess tool to collect it into a single file. 

Incorrect: 

Not 1: Parameter service_name 

Name of the service for which tracing is enabled. 

module_name 

Name of the MODULE. An optional additional qualifier for the service. 

Note: 

* The procedure enables a trace for a given combination of Service, MODULE and ACTION name. The specification is strictly hierarchical: Service Name or Service Name/MODULE, or Service Name, MODULE, and ACTION name must be specified. Omitting a qualifier behaves like a wild-card, so that not specifying an ACTION means all ACTIONs. Using the ALL_ACTIONS constant achieves the same purpose. 

* SERV_MOD_ACT_TRACE_ENABLE Procedure 

This procedure will enable SQL tracing for a given combination of Service Name, MODULE and ACTION globally unless an instance_name is specified. 

* DBMS_MONITOR.SERV_MOD_ACT_TRACE_ENABLE( 

service_name IN VARCHAR2, 

module_name IN VARCHAR2 DEFAULT ANY_MODULE, 

action_name IN VARCHAR2 DEFAULT ANY_ACTION, 

waits IN BOOLEAN DEFAULT TRUE, 

binds IN BOOLEAN DEFAULT FALSE, 

instance_name IN VARCHAR2 DEFAULT NULL); 

Q6. In your Database, the TBS PERCENT USED parameter is set to 60 and the TBS PERCENT FREE parameter is set to 20. 

Which two storage-tiering actions might be automated when using information Lifecycle Management (ILM) to automate data movement? 

A. The movement of all segments to a target tablespace with a higher degree of compression, on a different storage tier, when the source tablespace exceeds TBS PERCENT USED 

B. Setting the target tablespace to read-only 

C. The movement of some segments to a target tablespace with a higher degree of compression, on a different storage tier, when the source tablespace exceeds TBS PERCENT USED 

D. Setting the target tablespace offline E. The movement of some blocks to a target tablespace with a lower degree of compression, on a different storage tier, when the source tablespace exceeds TBS PERCENT USED 

Answer: B,C 

Explanation: 

The value for TBS_PERCENT_USED specifies the percentage of the tablespace quota when a tablespace is considered full. The value for TBS_PERCENT_FREE specifies the targeted free percentage for the tablespace. When the percentage of the tablespace quota reaches the value of TBS_PERCENT_USED, ADO begins to move data so that percent free of the tablespace quota approaches the value of TBS_PERCENT_FREE. This action by ADO is a best effort and not a guarantee. 

Q7. You performed an incremental level 0 backup of a database: 

RMAN > BACKUP INCREMENTAL LEVEL 0 DATABASE; 

To enable block change tracking after the incremental level 0 backup, you issued this 

command: 

SQL > ALTER DATABASE ENABLE BLOCK CHANGE TRACKING USING FILE 

‘ /mydir/rman_change_track.f’; 

To perform an incremental level 1 cumulative backup, you issued this command: 

RMAN> BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE; 

Which three statements are true? 

A. Backup change tracking will sometimes reduce I/O performed during cumulative incremental backups. 

B. The change tracking file must always be backed up when you perform a full database backup. 

C. Block change tracking will always reduce I/O performed during cumulative incremental backups. 

D. More than one database block may be read by an incremental backup for a change made to a single block. 

E. The incremental level 1 backup that immediately follows the enabling of block change tracking will not read the change tracking file to discover changed blocks. 

Answer: A,D,E 

Explanation: A: In a cumulative level 1 backup, RMAN backs up all the blocks used since the most recent level 0 incremental backup. 

E:.Oracle Block Change Tracking Once enabled; this new 10g feature records the modified since last backup and stores the log of it in a block change tracking file using the CTW (Change Tracking Writer) process. During backups RMAN uses the log file to identify the specific blocks that must be backed up. This improves RMAN's performance as it does not have to scan whole datafiles to detect changed blocks. Logging of changed blocks is performed by the CTRW process which is also responsible for writing data to the block change tracking file. 

Note: 

* An incremental level 0 backup backs up all blocks that have ever been in use in this database. 

Q8. Which two statements are true about extents? 

A. Blocks belonging to an extent can be spread across multiple data files. 

B. Data blocks in an extent are logically contiguous but can be non-contiguous on disk. 

C. The blocks of a newly allocated extent, although free, may have been used before. 

D. Data blocks in an extent are automatically reclaimed for use by other objects in a tablespaee when all the rows in a table are deleted. 

Answer: B,C 

Q9. You conned using SQL Plus to the root container of a multitenant container database (CDB) with SYSDBA privilege. 

The CDB has several pluggable databases (PDBs) open in the read/write mode. 

There are ongoing transactions in both the CDB and PDBs. 

What happens alter issuing the SHUTDOWN TRANSACTIONAL statement? 

A. The shutdown proceeds immediately. 

The shutdown proceeds as soon as all transactions in the PDBs are either committed or rolled hack. 

B. The shutdown proceeds as soon as all transactions in the CDB are either committed or rolled back. 

C. The shutdown proceeds as soon as all transactions in both the CDB and PDBs are either committed or rolled back. 

D. The statement results in an error because there are open PDBs. 

Answer:

Explanation: * SHUTDOWN [ABORT | IMMEDIATE | NORMAL | TRANSACTIONAL [LOCAL]] 

Shuts down a currently running Oracle Database instance, optionally closing and dismounting a database. If the current database is a pluggable database, only the pluggable database is closed. The consolidated instance continues to run. 

Shutdown commands that wait for current calls to complete or users to disconnect such as SHUTDOWN NORMAL and SHUTDOWN TRANSACTIONAL have a time limit that the SHUTDOWN command will wait. If all events blocking the shutdown have not occurred within the time limit, the shutdown command cancels with the following message: 

ORA-01013: user requested cancel of current operation 

* If logged into a CDB, shutdown closes the CDB instance. 

To shutdown a CDB or non CDB, you must be connected to the CDB or non CDB instance that you want to close, and then enter 

SHUTDOWN 

Database closed. 

Database dismounted. 

Oracle instance shut down. 

To shutdown a PDB, you must log into the PDB to issue the SHUTDOWN command. 

SHUTDOWN 

Pluggable Database closed. 

Note: 

* Prerequisites for PDB Shutdown 

When the current container is a pluggable database (PDB), the SHUTDOWN command can only be used if: 

The current user has SYSDBA, SYSOPER, SYSBACKUP, or SYSDG system privilege. 

The privilege is either commonly granted or locally granted in the PDB. 

The current user exercises the privilege using AS SYSDBA, AS SYSOPER, AS 

SYSBACKUP, or AS SYSDG at connect time. To close a PDB, the PDB must be open. 

Q10. Which two statements are true about the Oracle Direct Network File system (DNFS)? 

A. It utilizes the OS file system cache. 

B. A traditional NFS mount is not required when using Direct NFS. 

C. Oracle Disk Manager can manage NFS on its own, without using the operating kernel NFS driver. 

D. Direct NFS is available only in UNIX platforms. 

E. Direct NFS can load-balance I/O traffic across multiple network adapters. 

Answer: C,E 

Explanation: E: Performance is improved by load balancing across multiple network interfaces (if available). 

Note: 

* To enable Direct NFS Client, you must replace the standard Oracle Disk Manager (ODM) library with one that supports Direct NFS Client. 

Incorrect: Not A: Direct NFS Client is capable of performing concurrent direct I/O, which bypasses any operating system level caches and eliminates any operating system write-ordering locks Not B: 

* To use Direct NFS Client, the NFS file systems must first be mounted and available over regular NFS mounts. 

* Oracle Direct NFS (dNFS) is an optimized NFS (Network File System) client that provides faster and more scalable access to NFS storage located on NAS storage devices (accessible over TCP/IP). Not D: Direct NFS is provided as part of the database kernel, and is thus available on all supported database platforms - even those that don't support NFS natively, like Windows. 

Note: 

* Oracle Direct NFS (dNFS) is an optimized NFS (Network File System) client that provides faster and more scalable access to NFS storage located on NAS storage devices (accessible over TCP/IP). Direct NFS is built directly into the database kernel - just like ASM which is mainly used when using DAS or SAN storage. 

* Oracle Direct NFS (dNFS) is an internal I/O layer that provides faster access to large NFS files than traditional NFS clients. 

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

Q12. Examine the following query output: 

You issue the following command to import tables into the hr schema: 

$ > impdp hr/hr directory = dumpdir dumpfile = hr_new.dmp schemas=hr TRANSFORM=DISABLE_ARCHIVE_LOGGING: Y 

Which statement is true? 

A. All database operations performed by the impdp command are logged. 

B. Only CREATE INDEX and CREATE TABLE statements generated by the import are logged. 

C. Only CREATE TABLE and ALTER TABLE statements generated by the import are logged. 

D. None of the operations against the master table used by Oracle Data Pump to coordinate its activities are logged. 

Answer:

Explanation: Oracle Data Pump disable redo logging when loading data into tables and when creating indexes. The new TRANSFORM option introduced in data pumps import provides the flexibility to turn off the redo generation for the objects during the course of import. The Master Table is used to track the detailed progress information of a Data Pump job. The Master Table is created in the schema of the current user running the Pump Dump export or import, and it keeps tracks of lots of detailed information. 

Q13. You executed the following command to create a password file in the database server: 

$ orapwd file = orapworcl entries = 5 ignorecase=N 

Which statement describes the purpose of the above password file? 

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

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

C. It is used by Oracle to authenticate users for remote database administrator 

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

Answer:

Q14. Which statement is true about the Log Writer process? 

A. It writes when it receives a signal from the checkpoint process (CKPT). 

B. It writes concurrently to all members of multiplexed redo log groups. 

C. It writes after the Database Writer process writes dirty buffers to disk. 

D. It writes when a user commits a transaction. 

Answer:

Reference: http://docs.oracle.com/cd/B19306_01/server.102/b14220/process.htm (see log writer process (LGWR)) 

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

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

START 1Z0-062 EXAM