1Z0-063 Premium Bundle

1Z0-063 Premium Bundle

Oracle Database 12c: Advanced Administration Certification Exam

4.5 
(23040 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 5, 2024Last update

Oracle 1Z0-063 Free Practice Questions

Q1. Which two resources might be prioritized between competing pluggable databases (PDBs) when creating a multitenant container database(COB) plan using Oracle Database Resource Manager? 

A. maximum undo per consumer group 

B. maximum idle time for a session in a PDB 

C. parallel server limit 

D. CPU 

E. maximum number of sessions for a PDB 

Answer: C,D 

Q2. You want to capture column group usage and gather extended statistics for better cardinality estimates for the customers table in the SH schema. 

Examine the following steps: 

1. Issue the SELECTDBMS_STATS. CREATE_EXTENDED_STATS(‘SH’, 'CUSTOMERS')from dual statement. 

2.Execute the dbms_stats.seed_col_usage (null,‘SH’,500) procedure. 3.Execute the required queries on the customers table. 

4.Issue the select dbms_stats.reportwcol_usage(‘SH’, 'customers') from dual statement. 

Identify the correct sequence of steps. 

A. 3, 2, 1, 4 

B. 2, 3, 4, 1 

C. 4, 1, 3, 2 

D. 3, 2, 4, 1 

Answer:

Explanation: Step 1 (2). Seed column usage Oracle must observe a representative workload, in order to determine the appropriate column groups. Using the new procedure DBMS_STATS.SEED_COL_USAGE, you tell Oracle how long it should observe the workload. Step 2: (3)You don't need to execute all of the queries in your work during this window. You can simply run explain plan for some of your longer running queries to ensure column group information is recorded for these queries. Step 3. (1) Create the column groups Atthis point you can get Oracle to automatically create the column groups for each of the tables based on the usage information captured during the monitoring window. You simply have to call the DBMS_STATS.CREATE_EXTENDED_STATS function for each table.This function requires just two arguments, the schema name and the table name. From then on, statistics will be maintained for each column group whenever statistics are gathered on the table. 

Note: 

DBMS_STATS.REPORT_COL_USAGE reports column usage informationand records all 

the SQL operations the database has processed for a given object. 

The Oracle SQL optimizer has always been ignorant of the implied relationships between 

data columns within the same table. While the optimizer has traditionally analyzedthe 

distribution of values within a column, he does not collect value-based relationships 

between columns. 

Creating extended statistics 

Here are the steps to create extended statistics for related table columns 

withdbms_stats.created_extended_stats: 

1 -The first step is to create column histograms for the related columns. 

2 – Next, we run dbms_stats.create_extended_stats to relate the columns together. Unlike a traditional procedure that is invoked via an execute (“exec”) statement, Oracle extended statistics are created via a select statement. 

Q3. Examinethe commands: 

SQL> ALTER SESSION SET RECYCLBIN = ON; 

Session altered. 

SQL> DROP TABLE emp; --(First EMP table) 

Total dropped. 

SQL> CREATE TABLE emp (id NUMBER CONSTRAINT emp_id_idx PRIMARY KEY, name VARCHAR2 (15), salary NUMBER(7,2) ); 

Table created. 

You then execute multiple INSERT statements to insert rows into EMP table and drop the table again: SQL> DROP TABLE emp; -- (Second EMP table) 

Table dropped. 

SQL> FLASHBACK TABLE emp TO BEFORE DROP; 

Which statement is true about the FLASHBACK command? 

A. It recovers the structure, data, and indexes of the first emp table. 

B. It recovers only the structure of the second emp table. 

C. It returns an error because two tables with the same name exist in the recycle bin. 

D. It recovers the structure, data, and indexes of the second emp table. 

Answer:

Q4. You issue the command: 

SQL>ALTER DATABASE BACKUP CONTROLFILE TO TRACE; 

Which statement is true about the command? 

A. It creates a copy of the control file and stores it in the location specified in the diagnostic_dest initialization parameter. 

B. It creates a file that contains theSQL statement, which is required to re-create the control file. 

C. It updates the alert log file with the location and contents of the control file. 

D. It creates a binary backup of the control file. 

Answer:

Q5. View the Exhibit showing steps to create a database resource manager plan. 

SQL>executedbms_resource_manager.create_pendingarea(); PL/SQLproceduresuccessfully completed. 3QL>execdbms_resource_manager,create_consumergroup 

(consumer_group=>’OLTP,,comment=>,onlineuser’) PL/SQLproceduresuccessfullycompleted. SQL>execdbras_resource_raanager.create_plan(plan=>’PRIU3ER3',comment=>'dssprio’); SQL>exec Dbms_resource_manager.create_plan_directive(plan=>’PRIU3ER3’,group_or_subplan=>' 

OLTP’,comraent=>'onlinegrp'CPU_Pl=>60); 

PL/3QLproceduresuccessfullycompleted. 

After execting the steps in the exhibit you execute this procedure, which results in an error: 

SQL> EXECUTEdbms_resource_manager. validate_pending_area (); 

What is the reason for the error? 

A. The pending area is automatically submitted when creating plan directives. 

B. The procedure must be executedbefore creating any plan directive. 

C. The sys_group group is not included in the resource plan. 

D. The other_groups group is not included in the resource plan. 

E. Pending areas can not be validated until submitted. 

Answer:

Q6. You create a table with the period for clause to enable the use of the Temporal Validity feature of Oracle Database 12c. 

Examine the table definition: 

create table employees 

(empno number, salary number, 

deptid number, name varchar2(100), 

period for employee_time); 

Which three statements are true concerning the use of the Valid Time Temporal feature for the EMPLOYEES table? 

A. The valid time columns employee_time_start and employee_time_end are automatically created. 

B. The same statement may filter on both transaction time and valid temporal time by using the AS OF TIMESTAMP and PERIOD FOR clauses. 

C. The valid time columns are not populated bythe Oracle Server automatically. 

D. The valid time columns are visible by default when the table is described. 

E. Setting the session valid time using DBMS_FLASHBACK_ARCHIVE.ENABLE_AT_VALID_TIME sets the visibility for data manipulation language (DML), data definition language (DDL), and queries performed by the session. 

Answer: A,B,E 

Explanation: A: To implement Temporal Validity(TV), 12c offers the option to have two date columns in that table which is having TV enabled using the new clause Period For in the CreateTable for the newly created tables or in the Alter Table for the existing ones. The columns that are used can be defined while creating the table itself and will be used in the Period For clause or you can skip having them in the table’s definition in thecase of which, the Period For clause would be creating them internally. 

E: ENABLE_AT_VALID_TIME Procedure 

This procedure enables session level valid time flashback. 

Q7. You are administering a database that supports data warehousing workload and Is running in noarchivelog mode. You use RMAN to perform a level 0 backup on Sundays and level 1 Incremental backups on all the other days of the week. 

One of the data files is corrupted and the current online redo log file is lost because of a media failure. 

You want to recover the data file. 

Examine the steps involved in the recovery process: 

1.Shut down the database instance. 

2.Start up the database instance in nomount state. 

3.Mount the database. 

4.Take the data file offline. 

5.Put the data file online. 

6.Restore the control file. 

7.Restore the database. 

8.Restore the data file. 

9.Open the database with the resetlog option. 

10.Recover the database withthe noredo option. 

11.Recover the data file with the noredo option. 

Identify the required steps in the correct order. 

A. 4, 8, 11, 5 

B. 1, 3, 8, 11, 9 

C. 1, 2, 6, 3, 7, 10, 9 

D. 1, 3, 7, 10, 9 

E. 1, 2, 6, 3, 8, 11, 9 

Answer:

Q8. Which three statements are true about the SQL*Loader utility? 

A. It can be used to load data from multiple external files into multiple tables. 

B. It can be used to extract and reorganize data from external files, and then load it into a table. 

C. It can be used to load data from external files using direct path only. 

D. It can be used to create tables using data that is stored in external files. 

E. It can be used to generate unique sequential values in specified columns while loading data. 

Answer: A,D,E 

38. You wish to create jobs to satisfy these requirements: 

1. Automatically bulk load data from a flat file. 

2.Rebuild indexes on the SALES table after completion of the bulk load. 

How would you create these jobs? 

A. Create both jobs by using Scheduler raised events. 

B. Create both jobs using application raised events. 

C. Create one job to rebuild indexes using application raised events and another job to perform bulk load using Scheduler raised events. 

D. Create one job to rebuild indexes using Scheduler raised events and another job to perform bulk load by using events raised by the application. 

Q9. A complete database backup to media is taken for your database every day. Which three actions would you take to improve backup performance? 

A. Set the backup_tape_io_slaves parameter to true. 

B. Set the dbwr_io_slaves parameter to a nonzero value if synchronous I/O is in use. 

C. Configure large pool if not already done. 

D. Remove the rate parameter, if specified, in the allocate channel command. 

E. Always use RMAN compression for tape backups ratherthan the compression provided by media manager. 

F. Always use synchronous I/O for the database. 

Answer: B,C,D 

Reference:http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmtunin.htm 

Q10. You notice that the performance of your production 24x7 Oracle 12c database has significantly degraded. Sometimes, you are not able toconnect to the database instance because it hangs. 

How can you detect the cause of the degraded performance? 

A. by performing emergency monitoring using Real-Time Automatic Database Diagnostic Monitor (ADDM) to fetch data directly from SGA for analysis 

B. by running ADDM to fetch information from the latest Automatic Workload Repository (AWR) snapshots 

C. by using Active Session History (ASH) data and performing hang analysis 

D. by running ADDM in diagnostic mode 

Answer:

Q11. Which two statements are true about Flashback Version Query? 

A. The result of a query can be used as part of a DML statement. 

B. It can be used to create views. 

C. It can be used only if Flashback Data Archive is enabled for a table. 

D. It retrieves all versions of rows that exist in a time interval, including the start time and end time. 

E. It can be used to retrieve the SQL that is required to undo a row change and the user responsible for the change. 

Answer: A,C 

Q12. View the SPFILE parameter settings in the Exhibit. 

You issue this command and get errors: 

SQL> startup 

ORA-00824:cannotsetSGAJTARGET or MEMORY_TARGET dueto existing internalsettings,seealertlog for moreinformation 

Why did the instance fail to start? 

A. because pga_aggregate_target is not set 

B. because statistics_level is set to basic 

C. because memory_target and memory_max_target cannot be equal 

D. because sga_target and memory_target are both set 

Answer:

Q13. The environmental variable oracle_Base is set to /u01/app/oracleand oracle_home is set to /u01/app/oracle/product/12.1.0/db 1. 

You want to check the diagnostic files created as part of the Automatic Diagnostic Repository (ADR). Examine the initialization parameters set in your database. 

NAMETYPEVALUE 

audit_file_deststring/u01/app/oracle/admin/eml2rep/adump 

background_dump_deststring 

core_dump_deststring 

db_create_file_deststring 

db_recovery_file_deststring/u01/app/oracle/fast_recovery_area 

diagnostic_deststring 

What is the location of the ADR base? 

A. It is set to/u01/app/oracle/product:/12.1.0/db_1/log. 

B. It is set to /u01/app/oracle/admin/enl2r&p/adump. 

C. It is set to /u01/app/oracle. 

D. It is set to/u01/app/oracle/flash_recovery_area. 

Answer:

Explanation: 

http://docs.oracle.com/cd/B28359_01/server.111/b28310/diag001.htm#ADMIN11008 The Automatic Diagnostic Repository (ADR) is a directory structure that is stored outside of the database. It is therefore available for problem diagnosis when the database is down. The ADR root directory is known as ADR base. Its location is set by the DIAGNOSTIC_DEST initialization parameter. If this parameter is omitted or left null, the database sets DIAGNOSTIC_DEST upon startup as follows: If environment variable ORACLE_BASE is set, DIAGNOSTIC_DEST is set to the directory designated by ORACLE_BASE. If environment variable ORACLE_BASE is not set, DIAGNOSTIC_DEST is set to ORACLE_HOME/log. 

Q14. You have set the value of the NLS_TIMESTAMP_TZ_FORMAT parameterto YYYY-MM-DD. The default format of which two data types would be affected by this setting? 

A. DATE 

B. TIMESTAMP 

C. INTERVAL YEAR TO MONTH 

D. INTERVAL DAY TO SECOND 

E. TIMESTAMP WITH LOCAL TIME ZONE 

Answer: B,E 

Q15. While performing database backupto tape via the media manager interface, you notice that tape streaming is not happening because RMAN is not sending data blocks fast enough to the tape drive. 

Which two actions would you take for tape streaming to happen during the backup? 

A. Configure backup optimization. 

B. Configure the channel to increase maxopenfiles. 

C. Configure a backup policy by using incremental backups. 

D. Configure the channel to increase capacity with the rate parameter. 

E. Configure the channel to adjust the tape buffer size byusing the 3LKSIZE option. 

F. Configure large_pool, if not done already. Alternatively, you can increase the size of 

G. LARGE_POOL. 

Answer: A,D 

Q16. Which two statements are true about recovering logically corrupted tables or table partitions from an RMAN backup? 

A. Tables or table partitions can be recovered by using an auxiliary instance only. 

B. Tables or table partitions with a foreign key cannot be recovered. 

C. Tables or table partitions can be recovered only when the database is in mount state. 

D. Tables or table partitions from the system and sysauxtablespaces cannot be recovered. 

E. Tables with not null constraints cannot be recovered. 

Answer: A,D 

Reference:http://docs.oracle.com/database/121/BRADV/rcmresind.htm#BRADV695(Limitat ions of Recovering Tablesand Table Partitions from RMAN Backups) 

START 1Z0-063 EXAM