oracle 1z0-040 exam questions & answers · or used in combination with the oracle enterprise...

99
Oracle 1Z0-040 Exam Questions & Answers Number : 1Z0-040 Passing Score : 800 Time Limit : 120 min File Version : 36.6 http://www.gratisexam.com/ Oracle 1Z0-040 Exam Questions & Answers Exam Name: oracle database 10g:new features for adminsitrators For Full Set of Questions please visit: http://www.examsoon.com/1Z0-040.htm

Upload: hoangngoc

Post on 20-Jan-2019

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Oracle 1Z0-040 Exam Questions & Answers

Number: 1Z0-040Passing Score: 800Time Limit: 120 minFile Version: 36.6

http://www.gratisexam.com/

Oracle 1Z0-040 Exam Questions & Answers

Exam Name: oracle database 10g:new features for adminsitrators

For Full Set of Questions please visit: http://www.examsoon.com/1Z0-040.htm

Page 2: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Examsoon

QUESTION 1Which three methods can you use to run an Automatic Database Diagnostic Monitor (ADDM) analysis over aspecific time period? (Choose three.)

A. Enterprise Manager GUIB. DBMS_TRACE package APIsC. DBMS_ADVISOR package APIsD. DBMS_MONITOR package APIsE. $ORACLE_HOME/rdbms/admin/addmrpt.sql script

Correct Answer: ACESection: (none)Explanation

Explanation/Reference:Explanation:-----------------To make use of ADDM, a PL/SQL interface called DBMS_ADVISOR has been implemented. This PL/SQLinterface may be called through the supplied $ORACLE_HOME/rdbms/admin/addmrpt.sql script, called directly,or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package anumber of views (with names starting with the DBA_ADVISOR_ prefix) allow retrieval of the results of anyactions performed with the DBMS_ADVISOR API. The preferred way of accessing ADDM is through theEnterprise Manager interface, as it shows a complete performance overview including recommendations onhow to solve bottlenecks on a single screen. When accessing ADDM manually, you should consider using theADDMRPT.SQL script provided with your Oracle release, as it hides the complexities involved in accessing theDBMS_ADVISOR package.

QUESTION 2Which background process does Automatic Shared Memory Management use to coordinate the sizing ofmemory components?

A. PMONB. SMONC. MMNLD. MMANE. MMON

Correct Answer: DSection: (none)Explanation

Explanation/Reference:The Automatic Shared Memory Management feature uses a new background process named MemoryManager (MMAN). MMAN serves as the SGA Memory Broker and coordinates the sizing of the memorycomponents. The SGA Memory Broker keeps track of the sizes of the components and pending resizeoperations REF.: Metalink Note:268197.1: New Background Processes In 10g

QUESTION 3Which six files are maintained in the Flash Recovery Area? (Choose six.)

A. control fileB. RMAN filesC. password fileD. parameter file

Page 3: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

E. flashback logsF. data file copiesG. core dump filesH. archived log filesI. RMAN recovery scriptsJ. control file autobackpus

Correct Answer: Section: (none)Explanation

Explanation/Reference:Answer: A, B, E, F, H, JThe Flash Recovery Area is a unified storage location for all recovery-related files and activities in an OracleDatabase. It includes Control File, Archived Log Files, Flashback Logs, Control File Autobackups, Data Files,and RMAN files.

QUESTION 4Consider the following scenario:You have a directory, data, under the disk group tdgroup

A. You want to create analias for one of the data files and you execute the following command:ALTER DISKGROUP tdgroupAADD ALIAS '+tdgroupA/data/datafile.dbf'FOR '+tdgroupA.231.45678';Which task would be accomplished by the command?

B. The command drops the file +tdgroupA.231.45678C. The command physically relocates the file to +tdgroupA/data and renames the file to datafile.dbf.D. The command creates a copy of the +tdgroupA.231.45678 file and places it in +tdgroupA/data after

remaining the file to datafile.dbf.E. The command creates a synonym, datafile.dbf, and places it in +tdgroupA/data and does not remove the

+tdgroupA.231.45678 file.F. The command creates a file, datafile.dbf, in +tdgroupA/ data and removes the references for

+tdgroupA.231.45678 from the data dictionary views.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Alias names (or just "aliases") are intended to provide a more user-friendly means of referring to ASM files,rather than using the system-generated filenames. You can create an alias for a file when you create it in thedatabase, or you can add an alias to an existing file using the ADD ALIAS clause of the ALTER DISKGROUPstatement. You can create an alias in any system-generated or user-created ASM directory. You cannot createan alias at the root level (+), however. The following statement adds a new alias name for a system-generatedfile name:ALTER DISKGROUP dgroup1ADD ALIAS '+dgroup1/mydir/second.dbf'FOR '+dgroup1/sample/datafile/mytable.342.3';REF.: Oracle(r) 10g Administrator Guide, 12-28

QUESTION 5Exhibit

Page 4: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

One the evening of April 22, you are working on a database created using Oracle Database 10g. This databaseoperates in the ARCHIVELOG mode. You discover that you need crucial data that was dropped from thedatabase at 8:00 a.m. No full backup has been taken after April 15.What would you do?

A. recover the database until April 10B. recover the database until April 15C. recover the database until 22 7:59 a.m.D. recovery is not possible; manually re-create the object

Correct Answer: CSection: (none)Explanation

Explanation/Reference:RMAN simplifies recovery operations using backups taken from earlier database incarnation so that it is easyas recovering a backup from the same incarnation. The simplified recovery through RESETLOGS feature is anenhancement to recovery operations so that previous incarnation backups can be used for recovery of thecurrent database incarnation. You use this feature when you have performed an incomplete recovery (or arecovery using a backup control file) and opened the database with the RESETLOGS option.To perform incomplete recovery, use the SET UNTIL command to specify the time, SCN, restore point, or logsequence number at which recovery terminates. Alternatively, specify the UNTIL clause on the RESTORE andRECOVER commands. REF.: Oracle(r) Database 10g: New features for Oracle 8i, 18-21 and Oracle(r) 10gBackup and Recovery Basics, 3-4

QUESTION 6You are unable to move the Unified Job Scheduler occupant from the SYSAUX tablespace to the USERStablespace. What could be the reason?

http://www.gratisexam.com/

A. None of the SYSAUX occupants can be relocated.B. The USERS tablespace is a bigfile tablespace (BFT).C. The united Job Scheduler occupant cannot be relocated.D. The SYSAUX occupants can be relocated to the SYSTEM tablespace only.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

Page 5: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

A - Not true. Same off the occupants can be moveB - Not true. The USERS occupant , isn't , by default a BFT tablespace, and even tought, you should be able tomove anything to a BFT tablespace. The point it's about to move, SYSAUX occupant.C - True answer, as you con check , by the following query :SELECT occupant_name, move_procedure,FROM v$sysaux_occupants;OCCUPANT_NAME MOVE_PROCEDURE-------------- ---------------------------------AO DBMS_AW.MOVE_AWMETAEM emd_maintenance.move_em_tblspcJOB_SCHEDULER *** MOVE PROCEDURE NOT APPLICABLE **LOGMNR SYS.DBMS_LOGMNR_D.SET_TABLESPACELOGSTDBY SYS.DBMS_LOGSTDBY.SET_TABLESPACEODM MOVE_ODMORDIM *** MOVE PROCEDURE NOT APPLICABLE ***ORDIM/PLUGINS *** MOVE PROCEDURE NOT APPLICABLE ***ORDIM/SQLMM *** MOVE PROCEDURE NOT APPLICABLE ***SDO MDSYS.MOVE_SDOSTATSPACK Use export/import (see export parameter file spuexp.par) STREAMSTEXT DRI_MOVE_CTXSYSULTRASEARCH MOVE_WKWM DBMS_WM.move_procD - Not true. Can move SYSAUX occupants, whem is possible, to any tablespace that you want.REF.: Metalink Note: 243246.1: 10G : SYSAUX Tablespace

QUESTION 7You enabled block change tracking for faster incremental backups in your database.Which background process writes to the change tracking file?

A. RBALB. CKPTC. SMOND. PMONE. MMONF. CTWRG. DBWR

Correct Answer: FSection: (none)Explanation

Explanation/Reference:CTWR : This is a new process Change Tracking Writer (CTWR) which works with the new block changedtracking features in 10g for fast RMAN incremental backups. REF.: Metalink Note:268197.1: New BackgroundProcesses In 10g

QUESTION 8You want to enforce a company's business policy on several objects by using a single policy function.Which two types of policies can be assigned to the policy_type argument in the dbms_rls.add_policy procedureto achieve the above objective? (Choose two.)

A. DBMS_RLS.STATICB. DBMS_RLS.DYNAMICC. DBMS_RLS.SHARED_STATICD. DBMS_RLS.CONTEXT_SENSITIVEE. DBMS_RLS.SHARED_CONTEXT_SENSITIVE

Page 6: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Correct Answer: CESection: (none)Explanation

Explanation/Reference:DBMS_RLS. SHARED_STATICThe policy function executes once, Once, then the predicate is cached in the SGA, and it's Shared AcrossMultiple Objects, like Hosting environments, such as data warehouses where the same predicate must beapplied to multiple database objects DBMS_RLS. SHARED_CONTEXT_SENSITIVEThe policy function executes f irst time and the object is reference in a database session Predicates are cachedin the private session memory UGA so policy functions can be shared among objects.REF.: Oracle(r) Database Security Guide 10g Release 2 (10.2) - p 15-30

QUESTION 9The Automatic Database Diagnostic Monitor (ADDM) analysis runs every 60 minutes on your database. Yourdatabase if facing a series of interrelated problems over a period of two hours. You need to ensure that theADDM analysis is run over a time span of two hours in future.What would you do?

A. Create two custom ADDM tasks.B. Modify the AWR snapshot time interval to two hours.C. Create a new scheduler window for a time period of two hours.D. Modify the time interval by using the DBMS_JOB.INTERVAL procedure.E. Modify the Automatic Workload Repository (AWR) snapshot retention period to two hours.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:The Automatic Database Diagnostic Monitor (ADDM) provides a holistic tuning solution. ADDM analysis can beperformed over any time period defined by a pair of AWR snapshots taken on a particular instance. Analysis isperformed top down, first identifying symptoms and then refining them to reach the root causes of performanceproblems.The goal of the analysis is to reduce a single throughput metric called DB time. DB time is the cumulative timespent by the database server in processing user requests. It includes wait time and CPU time of all non-idleuser sessions. DB time is displayed in the V$SESS_TIME_MODEL and V$SYS_TIME_MODEL views.REF.: Oracle(r) 10g Performance Guide, 6-12

QUESTION 10The database is currently running in the NOARCHIVELOG mode. What would be the first step to configureFlashback Database?

A. Enable flashback logging.B. Start the database in the ARCHIVELOG mode.C. Issue the ALTER DATABASE FLASHBACK ON; command.D. Set the FAST_START_MTTR_TARGET initialization parameter.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

QUESTION 11Consider the following command to add a new disk group called "tdgroupA" with two failover groups:

Page 7: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

CREATE DISKGROUP tdgrouopA NORMAD REDUNDANCYFAILOVERGROUP control01 DISK'/devices/A1','/devices/A2','/devices/A3'FAILOVERGROUP control02 DISK'/devices/B1','/devices/B2','/devices/B3';The disk "/devices/A1" is currently a member disk of a disk group by name "tdgroup1"Which task would be accomplished by the command?

A. The command would result in an error because a disk group can have only one failover group.B. This command would result in an error because /devices/A1 disk is a member of another disk group

tdgroup1.C. A new disk group called tdgroupA will be added with two fialover groups and the /devices/A1 disk will get

reattached to the new disk group without being detached from the existing one.D. A new disk group called tdgroupA will be added with two failover groups and the /devices/A1 disk will be

ignored for the new disk group because it is a member of an existing disk group tdgroup1.E. A new disk group called tdgroupA will be added with two failover groups and the /devices/A1 disk gets

detached from the existing disk group tdgroup1 and attached to the new disk group tdgroupA disk group.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:You use the ADD clause of the ALTER DISKGROUP statement to add disks to a disk group, or to add a failuregroup to the disk group. The ALTER DISKGROUP clauses that you can use when adding disks to a disk groupare similar to those that can be used when specifying the disks to be included when initially creating a diskgroup. Because no FAILGROUP clauses are included in the ALTER DISKGROUP statement, each disk isassigned to its own failure group. The NAME clauses assign names to the disks, otherwise they would havebeen assigned system-generated names. Therefore, the following statement would fail because /devices/diskA1 already belong to tdgroup1.REF.: Oracle(r) 10g Administrator Guide , 12-21

QUESTION 12Exhibit

Page 8: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

You have created the following auditing policy:BEGINdmbs_fga.add_policy (object_schema => 'DNX',object_name => 'CUSTOMERS'policy_name => 'policy_acc_principal',audit_condition =>NULL,audit_column => 'ACCOUNT_ID, AMOUNT',audit_column_opts => DBMS_FGA.ALL_COLUMNS,audit_trail => DBMS_FGA.DB_EXTENDED,statement_types => 'INSERT, UPDATE');END;Which statement is true about the fine-grained auditing implemented by this policy?

A. An audit record is created for all INSERT and UPDATE statements on either the ACCOUNT_ID orAMOUNT columns.

B. An audit record is created for all INSERT and UPDATE statements on both the ACCOUNT_ID or AMOUNTcolumns.

C. An audit record is created for all INSERT and UPDATE statements and the UPDATE statement on theAMOUNT column.

D. An audit record is created for all INSERT and UPDATE statements when the ACCOUNT_ID or theAMOUNT column contains a NULL value.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Not A: DBMS_FGA.ALL_COLUMNS imply that the operation must be on BOTH account_id AND amount. Thus,options A and B are wrong! An option is provided to audit based on whether ANY or ALL of the relevantcolumns are used in the statement:audit_column_opts => DBMS_FGA.ALL_COLUMNS / DBMS_FGA.ANY_COLUMNS Audit trail writes the SQLtext and SQL bind information to LOBs.Pp 17-14

QUESTION 13

Page 9: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

You need to ensure that the database users should be able to use the various flashback query features in orderto go back in time by four hours. What should you do? (Choose two.)

A. set SQL_TRACE=trueB. set UNDO_RETENTION=14400C. set FAST_START_MTTR_TARGET=240D. set LOG_CHECKPOINT_INTERVAL=240E. set DB_FLASHBACK_RETENTION_TARGET=14400F. issue ALTER DATABASE FLASHBACK ON; commandG. set the RETENTION GUARANTEE clause for the undo tablespace

Correct Answer: BGSection: (none)Explanation

Explanation/Reference:Flashback Table, Flashback Query, Flashback Transaction Query and Flashback Version Query all rely onundo data, records of the effects of each update to an Oracle database and values overwritten in the update.Creating a guaranteed restore point at a particular SCN enforces the requirement that you can perform aFlashback Database operation to return your database to its state at that SCN, even if flashback logging is notenabled for your database.REF.: Backup and Recovery Basics - p1-12 and 5-4

QUESTION 14Which statement regarding the COMPATIBLE parameter is correct?

A. It is a dynamic parameter.B. It is an advanced parameter.C. It is a new parameter in Oracle 10g.D. It can have any value between8.0.0 and 10.1.0 in Oracle 10g database.E. After it is set to 10.0.0 or greater and the database is opened, it cannot be set back.

Correct Answer: ESection: (none)Explanation

Explanation/Reference:The default value for the COMPATIBLE parameter is the release number of the most recent major release, inOracle 10G R2 , the default value is 10.2.0. The minimum value is 9.2.0. If you create an Oracle Databaseusing the default value, you can immediately use all the new features in this release, and you can neverdowngrade the database.REF.: Oracle(r) 10g Administrator Guide , 2-34

QUESTION 15You are using Recovery Manager (RMAN) to perform backups. In which three situations would you perform acompressed backup? (Choose three.)

A. Your database includes a large number of BFILEs.B. You are making image copies, and you have not enabled tablespace compression.C. You are backing up to tape and your tape device performs its won compression.D. You are using disk-based backups and disk space in your Flash Recovery Area, or other disk-based backup

destinations are limited.E. You are performing your backups to some device over a network where reduced network bandwidth is more

important than CPU usage.F. You are using some archival backup media, such as CD or DVD, where reducing backup sizes saves

Page 10: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

media costs and archival storage.

Correct Answer: DEFSection: (none)Explanation

Explanation/Reference:D - If you are using disk-based backups and disk space in your flash recovery area or other disk-based backupdestination is limitedE - If you are performing your backups to some device over a network and reduced network bandwidth is moreimportant than CPU usageF - If you are using some archival backup media such as CD or DVD, where reducing backup sizes saves onmedia costs and archival storage REF.: Backup and Recovery Basics - p4-6

QUESTION 16You plant to create a database 'PROD' using the Database Configuration Assistant (DBCA).Which two tasks can you automate while created the database using the DBCA? (Choose two.)

A. database backupsB. user quota incrementC. tablespace defragmentationD. gathering optimizer statisticsE. data export using Data PumpF. data export using conventional export

Correct Answer: ADSection: (none)Explanation

Explanation/Reference:On the DBCA Operations window, select Create a Database to start a wizard that enables you to create andconfigure a database. The wizard requests your input on the following:* Database Templates* Database Identification* Management Options ( enable backup and* Database Credentials* Storage Options* Database File Locations* Recovery Configuration* Database Content* Initialization Parameters* Database Storage* Database Creation OptionsREF.: Oracle(r) 10g 2 Days DBA , p 2-7

QUESTION 17Which two dynamic performance views would you query to determine the endian format of your platform?(Choose two.)

A. V$DATABASEB. V$INSTANCEC. V$PLATFORMD. V$TABLESPACEE. V$CONTROLFILEF. V$TRANSPORTABLE_PLATFORM

Page 11: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Correct Answer: AFSection: (none)Explanation

Explanation/Reference:SQL>SELECT d.PLATFORM_NAME, ENDIAN_FORMATFROM V$TRANSPORTABLE_PLATFORM tp, V$DATABASE dWHERE tp.PLATFORM_NAME=d.PLATFORM_NAME;PLATFORM_NAME ENDIAN_FORMAT------------------------------------------- -------------- Linux 64-bit for AMD Little

QUESTION 18Which three statements regarding the Policy Framework in Enterprise Manager (EM) are correct? (Choosethree.)

A. Policies are evaluated automatically by Enterprise Manager.B. Policy violations are prioritized as High, Medium, or Informational by category.C. Policies can be disabled completely, or flagged as ignored, for the specified target.D. Policies are evaluated based on configuration and metrics collected in Policy Repository.E. Policies can be flagged as ignored, but never completely disabled, for the specific target.F. Policy violations must be corrected, otherwise the database will shut down until corrective action occurs.

Correct Answer: ABCSection: (none)Explanation

Explanation/Reference:The Oracle Management Agent on a host collects host configuration information for the host and databaseconfiguration information for the Oracle databases on the host and communicates that information over HTTPSto the Oracle Management Service, which stores it in the Oracle Management Repository.You can useEnterprise Manager to see whether targets in your enterprise configuration (such as hosts, databases, andlisteners) are following the policies for those target types. The policies include different categories of policyrules, such as configuration, security, and storage rules. The policy rules are given different priorities, includingHigh, Medium, and Informational. Enterprise Manager compares the targets for which policy rules exist with thepolicy rules for that target type, and identifies the policy violations for the target.You can examine the policyviolations for one or more targets and choose to fix or ignore individual violations. For more information aboutmanaging violations, see Managing Policy Violations. You can also disable one or more policy rules for a targettype. When a policy rule for a target type is disabled, targets of that type are no longer evaluated to see if theycomply with the rule.

QUESTION 19You want to retain the job entries for the last five days and purge all job entries from the job log that are olderthan five days. Select the command that will enable you to do the job.

A. EXECUTE DBMS_SCHEDULER.PURGE_LOG ( log_history => 5, which_log => 'JOB_LOG');B. EXECUTE DBMS_SCHEDULER.PURGE_LOG();C. EXECUTE DBMS_SCHEDULER.PURGE_LOG ( log_history => 5, job_name => 'JOB_LOG');D. EXECUTE DBMS_SCHEDULER.PURGE_LOG ( log_history => 5,which_log => 'WINDOW_LOG');

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Purging Logs ManuallyThe PURGE_LOG procedure enables you to manually purge logs. As an example, the following statementpurges all entries from both the job and window logs:

Page 12: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

DBMS_SCHEDULER.PURGE_LOG();Another example is the following, which purges all entries from the jog log that are older than three days. Thewindow log is not affected by this statement. DBMS_SCHEDULER.PURGE_LOG(log_history =>3, which_log=> 'JOB_LOG'); (A)The following statement purges all window log entries older than 10 days and all job log entries older than 10days that relate to job1 and to the jobs in class2:DBMS_SCHEDULER.PURGE_LOG(log_history => 10, job_name => 'job1, sys.class2');REF.: Oracle(r) 10g Administrator Guide , 28-14

QUESTION 20Which three actions are required to configure the Flashback Database? (Choose three.)

A. set Flash Recovery AreaB. enable Flashback loggingC. create FLASHBACK tablespaceD. create a user called flashoperE. start the database in the ARCHIVELOG modeF. start the database in the NOARCHIVELOG mode

Correct Answer: ABESection: (none)Explanation

Explanation/Reference:The requirements for enabling Flashback Database are:* Your database must be running in ARCHIVELOG mode, because archived logs are used in the FlashbackDatabase operation.* You must have a flash recovery area enabled, because flashback logs can only be stored in the flash recoveryarea.* Enable flashback loging . To enable logging for Flashback Database, set theDB_FLASHBACK_RETENTION_TARGET initialization parameter and issue the ALTER DATABASE FLASHBACK ON statement.REF.: Oracle(r) 10g Backup and Recovery Basics, 5-2 and 5-

QUESTION 21Which four statements regarding the Clone Database tool are correct? (Choose four.)

A. It clones Oracle databases from release 8.1.7 or later.B. It clones a source database while the database is in NOMOUNT state.C. It clones a source database while the database is in MOUNT state.D. It clones an Oracle database by using Recovery Manager (RMAN).E. It clones a source database at the specified Oracle home and starts the new database instance in the open

mode.F. It clones a source database and makes the new database instance consistent with the source database up

to the backup time of archived log.

Correct Answer: ACDFSection: (none)Explanation

Explanation/Reference:Note: The question is wrong. There isn't a "CLONE DATABASE tool". There are only DBCA and RMAN tools toclone a database.

Explanation: Observation: If we want to clone a database using the DBCA, first we create a database template;after that doesn't matter if the database source is in NOMOUNT or MOUNT state.

Page 13: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Cloning Databases Using DBCAThe "Template Management" section of the Database Configuration Assistant (DBCA) can be used to clonedatabases. The following method creates a clone of and existing database including both the structure and thedata:1. Start the Database Configuration Assistant (DBCA).2. On the "Welcome" screen click the "Next" button.3. On the "Operations" screen select the "Manage Templates" option and click the "Next" button.4. On the "Template Management" screen select the "Create a database template" option and select the "Fromand existing database (structure as well as data)" sub-option then click the "Next" button.5. On the "Source database" screen select the relevant database instance and click the "Next" button.6. On the "Template properties" screen enter a suitable name and description for the template, confirm thelocation for the template files and click the "Next" button.7. On the "Location of database related files" screen choose either to maintain the file locations or to convert toOFA structure (recommended) and click the "Finish" button.8. On the "Confirmation" screen click the "OK" button.9. Wait while the Database Configuration Assistant progress screen gathers information about the sourcedatabase, backs up the database and creates the template.By default the template files are located in the "$ORACLE_HOME/assistants/dbca/templates" directory.

QUESTION 22The ______ procedure is used to determine which statements are needed to make your materialized vieweligible for fast refresh and usable for general rewrite.

A. REFRESHB. TUNE_MVIEWC. REGISTER_MVIEWD. EXPLAIN_REWRITEE. REFRESH_DEPENDENT

Correct Answer: BSection: (none)Explanation

Explanation/Reference:The TUNE_MVIEW procedure shows you how to optimize your CREATE MATERIALIZED VIEW statement andto meet other requirements such as materialized view log and rewrite equivalence relationship for fast refreshand general query rewrite. TUNE_MVIEW analyzes and processes the CREATE MATERIALIZED VIEWstatement and generates two sets of output results: one for the materialized view implementation and the otherfor undoing the create materialized view operations REF.: Oracle Performance Guide - SQL Access Advisor17-35

QUESTION 23The ______ identifies and helps to resolve performance problems relating to the execution of SQL statementsby recommending which indexes, materialized views, or materialized view logs to create, drop, or retain.

A. Undo AdvisorB. MTTR AdvisorC. Memory AdvisorD. Segment AdvisorE. SQL Tuning AdvisorF. SQL Access Advisor

Correct Answer: FSection: (none)Explanation

Explanation/Reference:

Page 14: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

The SQL Access Advisor helps you achieve your performance goals by recommending the proper setofmaterialized views, naterialized view logs, and indexes for a given workload . The SQL Access Advisorrecommends bitmap, function-based, and B-tree indexes. A bitmap index offers a reduced response time formany types of ad hoc queries and reduced storage requirements compared to other indexing techniques. B-tree indexes are most commonly used in a data warehouse to index unique or near-unique keys. Anothercomponent of the SQL Access Advisor also recommends how to optimize materialized views so that they canbe fast refreshable and take advantage of general query rewrite.REF.: Oracle Performance Guide - SQL Access Advisor 17-1

QUESTION 24You need to create a schedule that will run a job on the second Friday of each month. What should the repeatinterval of the schedule be set to?

A. FREQ= MONTHLY; BYDAY = 2FRI;B. FREQ= MONTHLY; BYDAY = FRI2;C. FREQ= MONTHLY; BYDAY = -2FRI;D. FREQ= MONTHLY; BYDAY = FRI(2);

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Examples of Calendaring ExpressionsThe following examples illustrate simple repeat intervals. For simplicity, it is assumed that there is nocontribution to the evaluation results by the start date. Run every Friday. (All three examples are equivalent.)FREQ= DAILY; BYDAY = FRI;FREQ= WEEKLY; BYDAY = FRI;FREQ= YEARLY; BYDAY = FRI;Run on the second Wednesday of each month.FREQ= MONTHLY; BYDAY = 2WED;REF.: Oracle(r) 10g Administrator Guide , 27-14

QUESTION 25Which three file types are managed by Data Pump jobs? (Choose three.)

A. out filesB. log filesC. alert filesD. SQL filesE. error filesF. dump files

Correct Answer: BDFSection: (none)Explanation

Explanation/Reference:There are three types of files managed by Data Pump jobs:* Dump files to contain the data and metadata that is being moved* Log files to record the messages associated with an operation* SQL files to record the output of a SQLFILE operation. A SQLFILE operation is invoked using the Data PumpImport SQLFILE parameter and results in all of the SQL DDL that Import will be executing based on otherparameters, being written to a SQL file.REF.: Oracle(r) Database Utilities, 1-10

QUESTION 26

Page 15: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

You want an ASM instance to manage the files of your database. To achieve this objective, you specify thefollowing parameters in the parameter file of the database.INSTANCE_TYPE = RDBMSLARGE_POOL_SIZE = 8MBBD_BLOCK_SIZE = 4KLOG_ARCHIVE_DEST = +dgroupALOG_ARCHIVE_FORMAT = "$ORACLE_SID_%s_%t.%t"DB_CREATE_FILE_DEST = +dgroupACOMPATIBLE = 10.1.0.2.0CONTROL_FILES = +dgroupAWhich parameter would be ignored while starting up the instance?

A. DB_BLOCK_SIZEB. CONTROL_FILESC. LARGE_POOL_SIZED. LOG_ARCHIVE_DESTE. LOG_ARCHIVE_FORMATF. DB_CREATE_FILE_DEST

Correct Answer: ESection: (none)Explanation

Explanation/Reference:If you want ASM to be the default destination for creating database files, you must specify an incomplete ASMfilename in one or more of the following initialization parameters:- DB_CREATE_FILE_DEST- DB_CREATE_ONLINE_LOG_DEST_n- DB_RECOVERY_FILE_DEST- CONTROL_FILES- LOG_ARCHIVE_DEST_n- LOG_ARCHIVE_DEST- STANDBY_ARCHIVE_DESTSome additional initialization parameter considerations:- LOG_ARCHIVE_FORMAT is ignored if a disk group is specified for LOG_ARCHIVE_DEST (for example,LOG_ARCHIVE_DEST = +dgroup1).- DB_BLOCK_SIZE must be one of the standard block sizes (2K, 4K, 8K, 16K or 32K bytes).- LARGE_POOL_SIZE must be set to at least 1 MB.REF.: Oracle(r) 10g Administrator Guide , 12-39

QUESTION 27Which statement regarding the implementation of shared policy functions is correct?

A. The policies need to have the same name.B. The policy type must be DBMS_RLS.DYNAMIC.C. The shared policy function can be enforced on any number of objects.D. The shared policy function cannot be enforced on more than two objects.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Both static and context-sensitive policies can be shared across multiple database objects, so that queries onanother database object can use the same cached predicate. Shared policies enable you to further decreasethe overhead of reexecuting policy functions for every query, reducing any performance impact.REF.: Oracle(r) Database Security Guide, xxviii

Page 16: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

QUESTION 28Tom is the DBA of DNX Bank. The users of the banking system are complaining that all debit transactions aretaking too long to execute. The details of the application used for this purpose are listed below:Application - Bank_DNX to access banking accountsModule - CUSTLEDGERAction DEBIT_ENTRYWhich command should Tom execute in order to gather static for the states problem?

A. EXECUTE DBMS_MONITOR.SERV_MOD_ACT_STAT_ENABLE('BANK_DNX','CUSTLEDGER');

B. EXECUTE DBMS_MONITOR.SERV_MOD_ACT_STAT_ENALBLE('BANK_DNX');

C. EXECUTE DBMS_MONITOR.SERV_MOD_ACT_STAT_ENABLE('DEBIT_ENTRY');

D. EXECUTE DBMS_MONITOR.SERV_MOD_ACT_STAT_ENABLE('BANK_DNX','CLUSTLEDGER','DEBIT_ENTRY');

E. EXECUTE DBMS_MONITOR.SERV_MOD_ACT_STAT_ENABLE('CLUSTLEDGER','DEBIT_ENTRY');

Correct Answer: DSection: (none)Explanation

Explanation/Reference:DBMS_MONITOR.SERV_MOD_ACT_STAT_ENABLE ProcedureThis procedure enables statistic gathering for a given combination of Service Name, MODULE and ACTION.Calling this procedure enables statistic gathering for a hierarchical combination of Service name, MODULEname, and ACTION name on all instances for the same database. Statistics are accessible by means of theV$SERV_MOD_ACT_STATS view.SyntaxDBMS_MONITOR.SERV_MOD_ACT_STAT_ENABLE(service_name IN VARCHAR2,module_name N VARCHAR2,action_name IN VARCHAR2 DEFAULT ALL_ACTIONS);Parametersservice_name Name of the service for which statistic aggregation is enabled. module_name Name of theMODULE. An additional qualifier for the service. It is a required parameter.action_name Name of the ACTION. An additional qualifier for the Service and MODULE name. Omittingthe parameter (or supplying ALL_ACTIONS constant) means enabling aggregation for all Actions for a givenServer/Module combination. In this case, statistics are aggregated on the module level.REF.: Oracle(r) Database PL/SQL Packages and Types Reference

QUESTION 29You created a database (using Database Configuration Assistant [DBCA]) by using one of the defaulttemplates. The default permanent tablespace for the non-system users, excluding DBSNMP and OUTLNusers, will be set to ________.

A. USERSB. SYSTEMC. SYSAUXD. EXAMPLE

Correct Answer: ASection: (none)Explanation

Page 17: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation/Reference:USERSThis tablespace is used to store permanent user objects and data. Like the TEMP tablespace, every databaseshould have a tablespace for permanent user data that is assigned to users. Otherwise, user objects will becreated in the SYSTEM tablespace, which is not good practice. In the preconfigured database, USERS isassigned the default tablespace, and space for all objects created by non-system users comes from thistablespace. For system users, the default permanent tablespace remains SYSTEM.REF.: Oracle(r) 10g 2 Days DBA, 6-7

QUESTION 30Examine the following command to create an external table from EMPLOYEES and DEPARTMENTS databasetables.1. CREATE TABLE employee_ext2. (employee_id, first_name, department_name)3. ORGANIZATION EXTERNAL4. (5. TYPE ORACLE_LOADER6. DEFAULT DIRECTORY ext_dir7. LOCATION ('emp1.dmp')8. )9. PARALLEL10. AS11. SELECT e.emplyee_id, e.first_name, e.last_name,

A. department_name12. FROM employees e, departments d;Which line of the command would cause an error?

B. line 2, because the column names have been specifiedC. line 7, because file name must have a .dat extensionD. line 3, because ORGANIZATION EXTERNAL has been specifiedE. line 9, because the PARALLEL option cannot be specified with one file nameF. line 12, because there is no join defined between EMPLOYEES and DEPARTMENTS tableG. line 5, because ORACLE_LOADER is not a valid structure for external table creation with the SELECT

statement

Correct Answer: FSection: (none)Explanation

Explanation/Reference:External tables are created using the SQL CREATE TABLE...ORGANIZATION EXTERNAL statement. Whenyou create an external table, you specify the followingattributes:1. TYPE - specifies the type of external table. The two available types are the ORACLE_LOADER type and theORACLE_DATAPUMP type. Each type of external table is supported by its own access driver.* The ORACLE_LOADER access driver is the default. It can perform only data loads, and the data mustcomefrom text datafiles. Loads from external tables to internal tables are done by reading from the externaltables' text-only datafiles .* The ORACLE_DATAPUMP access driver can perform both loads and unloads. The data must come frombinary dump files. Loads to internal tables from external tables are done by fetching from the binary dump files.Unloads from internal tables to external tables are done by populating the external tables' binary dump files.2. DEFAULT DIRECTORY - specifies the default location of files that are read or written by external tables. Thelocation is specified with a directory object, not a directory path.3. ACCESS PARAMETERS - describe the external data source and implements the type of external table thatwas specified. Each type of external table has its own access driver that provides access parameters unique tothat type of external table.4. LOCATION - specifies the location of the external data. The location is specified as a list of directory objectsand filenames. If the directory object is not specified, then the default directory object is used as the file location.

Page 18: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

REF.: Oracle(r) Database 10g Utilities, 12-2

QUESTION 31You have three production database, HRDB, FINDB, and ORGDB, that use the ASM instance. At the end of theday, you execute the following command on the ASM instance to shut down:SQL> shutdown immediate;What is the result of executing this command?

A. All the instances, including the ASM instance, are shut down in the ABORT mode.B. The ASM instance is shut down, but the other instances are still running.C. The ASM instance is still functional, but the other instances are shut down.D. All the instances, including the ASM instance, are shut down in the IMMEDIATE mode.E. HRBD, FINDB, and ORGDB instances are shut down in the ABORT mode and the ASM instance is shut

down in the IMMEDIATE mode.F. HRDB, FINDB, and ORGDB instances are shut down in the NORMAL mode and the ASM instance is shut

down.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:When a Datapump Export or Import session is launched, a Datapump Job is automatically started. This way,we can:* detach from and reattach to long-running jobs without affecting the job itself.* monitor jobs from multiple locations* stop a job: suspend it temporarily to leave other applications requesting more resources to get them restart itlater* kill any Datapump job anytime* see the progress of the import or export operationsYou can retrieve the job, ownername and state from the following views:SQL> SELECT OWNER_NAME, JOB_NAME, STATE FROM DBA_DATAPUMP_JOBS; OWNER_NAMEJOB_NAME STATE-------------------------------------- --------------SCOTT SCOTTEXP DEFININGSYSTEM SYSEXP EXECUTINGSYSTEM SYSIMP STOPPINGSYSTEMFULLEXP NOT RUNNINGSYSTEM EXPFULL IDLINGREF.: Metalink Note: 262557.1

QUESTION 32Exhibit

Page 19: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Examine the SQL statement used to create the EMP table. You need to shrink the EMP table segment. WhichSQL statement would you execute as a prerequisite before you execute the ALTER TABLE emp SHRINKSPACE; command?

A. ALTER TABLESPACE emp OFFLINE;B. ALTER TABLESPACE emp READ ONLY;C. ALTER TABLE emp DEALLOCATE UNUSED;D. ALTER TABLE emp ENABLE ROW MOVEMENT;E. ALTER TABLE emp DISABLE ALL TRIGGERS;

F ALTER TABLE emp ENABLE NOVALIDATE CONSTRAINT emp_last_name_nn;

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Segment shrink reclaims unused space both above and below the high water mark. In contrast, spacedeallocation reclaims unused space only above the high water mark. In shrink operations, by default, thedatabase compacts the segment, adjusts the high water mark, and releases the reclaimed space.Segment shrink requires that rows be moved to new locations. Therefore, you must first enable row movementin the object you want to shrink and disable any rowid-based triggers defined on the object.REF.: Oracle(r) 10g Administrator Guide , 14-48

QUESTION 33While exporting data by using Data Pump, you find that the export runs for long period. Because this action isbeing performed during peak hours, you decide to stop the job and restart it during off-peak hours.Which view would you query to determine the name and status of the stopped job?

A. DBA_JOBSB. V$SESSIONC. V$SESSION_LONGOPSD. DBA_DATAPUMP_JOBSE. DBA_DATAPUMP_SESSIONS

Correct Answer: DSection: (none)Explanation

Explanation/Reference:When a Datapump Export or Import session is launched, a Datapump Job is automatically started. This way,we can:* detach from and reattach to long-running jobs without affecting the job itself.* monitor jobs from multiple locations* stop a job: suspend it temporarily to leave other applications requesting more resources to get them restartitlater* kill any Datapump job anytime* see the progress of the import or export operationsREF.: Metalink Note: 262557.1

QUESTION 34In the server parameter file (SPFILE), the UNDO_TABLESPACE initialization parameter is set to UNDOTBS.You executed the following SQL statement to rename the UNDOTBS undo tablespace:ALTER TABLESPACE undotbs RENAME TO undotbs_old;Which statement is correct in this scenario?

A. The tablespace will be renamed but the data file headers will not be updated.

Page 20: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

B. The above SQL statement will fail because you cannot rename an undo tablespace.C. The tablespace will be renamed and all the changes will be logged in the alert log file.D. The tablespace will be renamed but a message will be added to the alert log file indicating that you should

change the corresponding initialization parameter files.E. To be able to rename the UNDOTBS undo tablespace, you would need to set the UNDO_TABLESPACE

initialization parameter to some other tablespace name and then execute the above SQL command.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Using the RENAME TO clause of the ALTER TABLESPACE, you can rename a permanent or temporarytablespace. The COMPATIBLE parameter must be set to 10.0 or higher. If the tablespace is an undotablespace and if the following conditions are met, then the tablespace name is changed to the new tablespacename in the server parameter file (SPFILE).- The server parameter file was used to start up the database.- The tablespace name is specified as the UNDO_TABLESPACE for any instance. If a traditional initializationparameter file (PFILE) is being used then a message is written to the alert log stating that the initializationparameter file must be manually changed.REF.: Oracle(r) 10g Administrator Guide , 8-19

QUESTION 35Identify four uses of the Oracle Scheduler. (Choose four.)

A. Enables you to set idle time limits for a resource plan.B. Enables you to schedule job execution based on time.C. Enables you to execute jobs in a clustered environment.D. Enables you to assign priorities to the consumer groups.E. Enables you to map a consumer group to an Oracle user.F. Enables you to create a job that makes use of saved programs and schedules.G. Enables you to periodically execute operating system script files located on the same server as the

database.

Correct Answer: BCGFSection: (none)Explanation

Explanation/Reference:A - FALSE. Isn't a Oracle scheduler capability.B - TRUE. Schedule job execution based on time or events. The most basic capability of a job scheduler is theability to schedule a job to run at a particular date and time or when a particular event occurs.C - TRUE. Execute and manage jobs in a clustered environment. A cluster is a set of database instances thatcooperates to perform the same task. Oracle Real Application Clusters (RAC) provides scalability and reliabilitywithout any change to your applications. The Scheduler fully supports execution of jobs in such a clusteredenvironment. To balance the load on your system and for better performance, you can also specify thedatabase service where you want a job to run. D - FALSE. The Scheduler activity is logged and informationsuch as the status of the job and thelast run time of the job can be easily tracked, this way the DBA would track wich particular JOB time andstatistics , not consumer groups.E - FALSE. See DF - TRUE. For example, consider the situation where a patch needs to be applied to a database that is inproduction. To minimize disruptions, this task will need to be performed during non-peak hours. This can beeasily accomplished using the Scheduler. Instead of having IT personnel manually carry out this task duringnon-peak hours, you can instead create a job and schedule it to run at a specified time using the Scheduler. G -TRUE. Application developers can create programs and program libraries that end users can use to create ormonitor their own jobs. In addition to typical database jobs, you can schedule and monitor jobs that run as part

Page 21: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

of an application suite. REF.: Oracle(r) 10g Administrator Guide, 26-1 and 26-2

QUESTION 36You enabled Flashback Database with the following command:ALTER DATABASE FLASHBACK ON;Which view would you query to determine whether the Flashback Database has been enabled?

A. V$SGAB. V$DATABASEC. V$INSTANCED. V$FLASHBACK_DATABASE_LOGE. V$FLASHBACK_DATABASE_STATF. V$FLASHBACK_DATABASE_LOGFILE

Correct Answer: BSection: (none)Explanation

Explanation/Reference:SQL>DESC V$DATABASE;Name Type----------------------------------------- ------------- ......FLASHBACK_ON VARCHAR2(18)......SQL> select FLASHBACK_ON from V$DATABASE;FLASHBACK_ON------------------YES

QUESTION 37You flashed back the jobs table at 11:00 a.m. to its state at 9:30 a.m. At 11:15 a.m., you decided to retrieve thejobs table as it was at 10:12 a.m. What would you do to retrieve the jobs table fast and with minimum impact toother objects?

A. drop and re-create the tableB. perform point-in-time recoveryC. use the ROLLBACK command with SCND. use the FLASHBACK TABLE commandE. use the FLASHBACK DATABASE command

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Oracle Flashback Table provides the DBA the ability to recover a table or set of tables to a specified point intime in the past very quickly, easily, and without taking any part of the database offline. In many cases,Flashback Table eliminates the need to perform more complicated point-in-time recovery operations. FlashbackTable restores tables while automatically maintaining associated attributes such as current indexes, triggersand constraints, and not requiring the DBA to find and restore application-specific properties. Using FlashbackTable causes the contents of one or more individual tables to revert to their state at some past SCN or time.Flashback Table uses information in the undo tablespace to restore the table. You do not have to restore anydata from backups, and the rest of your database remains available while the Flashback Table operation isbeing performed.REF.: Oracle(r) 10g Backup and Recovery Basics, 7-4

Page 22: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

QUESTION 38You executed the following command to drop a user:DROP USER scott CASCADE;Which two statement regarding the above command are correct? (Choose two.)

A. All the objects of scott are moved to the Recycle Bin.B. Any objects in the Recycle Bin belonging to scott are purged.C. All the objects owned by scott are permanently dropped from the database.D. All the objects of scott in the Recycle Bin must be purged before executing the DROP command.E. Any objects in the Recycle Bin belonging to scott will not be affected by the above DROP command.

Correct Answer: BCSection: (none)Explanation

Explanation/Reference:When you drop a user, any objects belonging to the user are not placed in the recycle bin and any objects inthe recycle bin are purged.REF.: Oracle(r) 10g Administrator Guide, 15-39

QUESTION 39You want to execute the following statements in resumable mode:CREATE TABLE ... AS SELECTCREATE INDEXCREATE MATERIALIZED VIEWWhich two methods can be used to enable a session for resumable space allocation? (Choose two.)

A. Set the RESUMABLE_TIMEOUT initialization parameter to true.B. Set the RESUMABLE_TIMEOUT initialization parameter to none.C. Execute the ALTER SESSION ENABLE RESUMABLE statement.D. Execute the ALTER DATABASE ENABLE RESUMABLE statement.E. Set the RESUMABLE_TIMEOUT initialization parameter to a nonzero value.

Correct Answer: CESection: (none)Explanation

Explanation/Reference:The default for a new session is resumable mode disabled, unless the RESUMABLE_TIMEOUT initializationparameter is set to a nonzero value.You can enable resumable space allocation system wide and specify atimeout interval by setting the RESUMABLE_TIMEOUT initialization parameter. For example, the followingsetting of the RESUMABLE_TIMEOUT parameter in the initialization parameter file causes all sessions toinitially be enabled for resumable space allocation and sets the timeout period to 1 hour:RESUMABLE_TIMEOUT = 3600If this parameter is set to 0, then resumable space allocation is disabled initially for all sessions. This is thedefault.A user can enable resumable mode for a session, using the following SQL statement:ALTER SESSION ENABLE RESUMABLE;To disable resumable mode, a user issues the following statement:ALTER SESSION DISABLE RESUMABLE;REF.: Oracle(r) 10g Administrator Guide, 14-11

QUESTION 40You created a tablespace with the following statement:CREATE BIGFILE TABLESPACE adtbsDATAFILE '/probdb/data/adtbs.dbf' SIZE 10G;

Page 23: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

There is now a requirement to increase the size of the tablespace. Which two ALTER statements are correct inthis scenario? (Choose two.)

A. ALTER TABLESPACE adtbs RESIZE 20G;B. ALTER TABLESPACE adtbs ADD DATAFILE;C. ALTER TABLESPACE adtbs AUTOEXTEND ON;D. ALTER TABLESPACE adtbs ADD DATAFILE'/proddb/data/adtbs1.dbf' SIZE 10G;E. ALTER TABLESPACE adtbs MODIFY DATAFILE '/proddb/data/adtbs.dbf' AUTOEXTEND ON;

Correct Answer: ACSection: (none)Explanation

Explanation/Reference:C:\sqlplus /nologSQL*Plus: Release 10.2.0.1.0 - Production on Sat Jan 28 20:34:23 2006 Copyright (c) 1982, 2005, Oracle. Allrights reserved.SQL> conn / as sysdbaConnected.SQL> CREATE BIGFILE TABLESPACE adtbsDATAFILE'C:\adtbs.dbf' SIZE 1G;Tablespace created.(A)SQL> ALTER TABLESPACE adtbs RESIZE 2GTablespace altered.(B) and (D)SQL> ALTER TABLESPACE adtbs ADD DATAFILE'C:\adtbs.dbf' SIZE 1G; ALTER TABLESPACE adtbs ADDDATAFILE 'C:\adtbs.dbf' SIZE 1G ERROR at line 1:ORA-32771: cannot add file to bigfile tablespace(C)SQL> ALTER TABLESPACE adtbs AUTOEXTEND ON;Tablespace altered.(E)SQL> ALTER TABLESPACE adtbs MODIFY DATAFILE 'C:\adtbs.dbf' AUTOEXTEND ON; ALTERTABLESPACE adtbs MODIFY DATAFILE 'C:\adtbs.dbf' AUTOEXTEND ON ERROR at line 1:ORA-02142: missing or invalid ALTER TABLESPACE option

QUESTION 41You imposed a column-level Virtual Private Database (VPD) policy as follows:BEGINDBMS_RLS.ADD_POLICY (object_schema=> 'scott',object_name => 'employees',policy_name => 'hr_policy',function_schema => 'pol_hr',policy_function => 'hrpol',sec_relevant_clos => 'salary,commission_pct');END;Which statement regarding hr_policy is true?

A. The policy applies only to the INDEX statement and note to any other statementsB. The policy applies only to the SELECT statement and not to any other statements.C. The policy applies to SELECT, INSERT, UPDATE, DELETE, and INDEX statements.D. The policy applies to SELECT, INSERT, UPDATE and DELETE statements; it does not apply to INDEX

statements.

Correct Answer: DSection: (none)

Page 24: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation

Explanation/Reference:Explanation:DBMS_RLS.ADD_POLICY (object_schema IN VARCHAR2 NULL,object_name IN VARCHAR2,policy_name IN VARCHAR2,function_schema IN VARCHAR2 NULL,policy_function IN VARCHAR2,statement_types IN VARCHAR2 NULL,update_check IN BOOLEAN FALSE,enable IN BOOLEAN TRUE,static_policy IN BOOLEAN FALSE);statement_types is the statement types to which the policy applies. It can be any combination of SELECT,INSERT, UPDATE, and DELETE. The default is to apply to all of these types.The policy not applies on the INDEX statements.

QUESTION 42You are using SQL Tuning Advisor (STA) to tune SQL workload in your database. Which four types ofrecommendations do you get from Automatic Tuning Optimizer (ATO) via the STA? (Choose four.)

A. recommendation to create indexesB. recommendation to use stored outlinesC. recommendation to create a SQL profileD. recommendation to gather relevant statisticsE. recommendation to denormalize the schemaF. recommendation to restructure SQL statements

Correct Answer: ACDFSection: (none)Explanation

Explanation/Reference:For the A answer see the point n°3.For the C answer see the point n°2.Oracle 10g allows the optimizer to run in tuning mode where it can gather additional information and makerecommendations about how specific statements can be tuned further. This process may take several minutesfor a single statement so it is intended to be used on high-load resource-intensive statements.In tuning mode the optimizer performs the following analysis:1. Statistics Analysis - The optimizer recommends the gathering of statistics on objects with missing or stalestatistics. Additional statistics for these objects are stored in an SQL profile.2. SQL Profiling - The optimizer may be able to improve performance by gathering additional statistics andaltering session specific parameters such as the OPTIMIZER_MODE. If such improvements are possible theinformation is stored in an SQL profile. If accepted this information can then used by the optimizer whenrunning in normal mode. Unlike a stored outline which fixes the execution plan, an SQL profile may still be ofbenefit when the contents of the table alter drastically. Even so, it's sensible to update profiles periodically. TheSQL profiling is not performed when the tuning optimizer is run in limited mode. The SQL profile doesn'trecommend to create a SQL profile.3. Access Path Analysis - The optimizer investigates the effect of new or modified indexes on the access path.It's index recommendations relate to a specific statement so where necessary it will also suggest the use of theSQL Access Advisor to check the impact of these indexes on a representative SQL workload.4. SQL Structure Analysis - The optimizer suggests alternatives for SQL statements that contain structures thatmay impact on performance. The implementation of these suggestions requires human intervention to checktheir validity. Access Path Analysis - The optimizer investigates the effect of new or modified indexes on theaccess path. It's index recommendations relate to a specific statement so where necessary it will also suggestthe use of the SQL Access Advisor to check the impact of these indexes on a representative SQL workload.Not E: Denormalizing would not be useful.

Page 25: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

QUESTION 43You executed the following command:RMAN> RECOVER COPY OF DATAFILE'/U01/app/oracle/oradata/orcl/users01.dbf';Which statement regarding the above command is correct?

A. The '/u01/app/oracle/ordata/orcl/users01.dbf' data file is recovered from the image copy.B. The '/u01/app/oracle/ordata/orcl/users01.dbf' data file is recovered from the last incremental backup.C. Image copies of the '/u01/app/oracle/ordata/orcl/users01.dbf' data file are updated with all changes up to

incremental backup SCN.D. Image copies of the '/u01/app/oracle/ordata/orcl/users01.dbf' data file are recovered using the above

command if data file recovery fails.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:In Oracle10g, you can now recover datafile copies by applying changed blocks from a change tracking file tothe datafile image copy. This is an important feature as it will significantly speed up datafile recovery times. It isdone in 2 stages:1. Use an RMAN command to update the datafile image copy with changed blocks:RMAN> recover copy of datafile <old_datafile_name>;2. Apply any archived redo logs to fine-tune the datafile to the exact point-in-time or SCN.REF.: Oracle(r) Database 10g : New Features for Oracle 8i DBAs, 18-19

QUESTION 44You have three temporary tablespace groups named G1, G2, and G3 in your database.You are creating a new temporary tablespace as follows:CREATE TEMPORARY TABLESPACE TEMP1 TEMPFILE'/ul/data/temp1.dbf' SIZE 10M TABLESPACE GROUP ' ' ;Which statement regarding the above command is correct?

A. It will create the tablespace TEMP1 in group G1.B. It will create the tablespace TEMP1 in group G3.C. It will not add the tablespace TEMP1 to any group.D. It will create the tablespace TEMP1 in the default group.E. It will throw an error with message 'specified group is not available'.F. It will create a new group with a system-generated name and add the tablespace TEMP1 to it.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Note: The answer C is not exact, because the command not only "not add the tablespace TEMP1 to anygroup", but it will delete the TEMPORARY tablespace from the his group, if it exists.Specify an empty string (' ') will remove tablespace from the tablespace_group_name tablespace group.

QUESTION 45Which entity enables Oracle Data Pump to restart a stopped job?

A. the SQL fileB. dynamic viewsC. the master table

Page 26: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

D. the export log fileE. the repository tableF. the master control process

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Data Pump jobs use a master table, a master process, and worker processes to perform the work and keeptrack of progress. For every Data Pump Export job and Data Pump Import job, a master process is created.The master process controls the entire job, including communicating with the clients, creating and controlling apool of worker processes, and performing logging operations.REF.: Oracle Database Utilities - p 1-6

QUESTION 46You need to transport tablespaces between platforms with different endians. Which two steps are required inaddition to the regular steps needed for transporting tablespaces? (Choose two.)

A. The DB_FILE_NAME_CONVERT parameter must be set in the init.ora file.B. The CONVERT command of SQL*Plus must be used to change byte ordering.C. No other explicit action is required.D. The CONVERT command of the Recovery Manager utility must be used to change byte ordering.E. The COMPATIBLE parameter must be set to 10.0.0 or higher in both the source and the target databases.

Correct Answer: DESection: (none)Explanation

Explanation/Reference:Before a tablespace can be transported to a different platform, the datafile header must identify the platform towhich it belongs. In an Oracle Database with compatibility set to 10.0.0 or later. You also, must convert thetablespace set to the endianness of the target platform. You can perform a source-side conversion or you canperform a target-side conversion. if you want to convert before transporting the tablespace set, then convert thedatafiles composing de tablespace set. The RMAN CONVERT command is used to do the conversion. StartRMAN and connect to the target database:$ RMAN TARGET /Recovery Manager: Release 10.1.0.0.0Copyright (c) 1995, 2003, Oracle Corporation. All rights reserved. Convert the datafiles into a temporarylocation on the source platform. In this example, assume that the temporary location, directory /temp, hasalready been created. The converted datafiles are assigned names by the system.RMAN> CONVERT TABLESPACE <name>2> TO PLATFORM 'Microsoft Windows NT'3>FORMAT'/temp/%U';REF.: Oracle(r) 10g Administrator Guide, 8-29,8-33 and 8-34

QUESTION 47You used the following command to perform backup:RMAN> BACKUP AS COPY DURATION 4:00 PARTIAL MINIMIZE LOAD DATABASE;Which recommendation regarding the above command is true?

A. It is recommended that you do not use the above command in the RUN block.B. It is recommended that you do not use the MINIMIZE LOAD option with tape.C. It is recommended that you use the MINIMIZE LOAD option only when you perform tablespace backup.D. It is recommended that you use the DURATION and MINIMIZE LOAD option when you perform backup to

backup sets.

Page 27: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Note: The answer B is not exact.MINIMIZE LOAD option it's not possible with tape instead of "It is recommended that you do not use theMINIMIZE LOAD option with tape. " Your answer permit to make the backup, if you want. The correct answerdoesn't permit to make the backup, because the MINIMIZE LOAD option is not available when writing to tape.(is compatible only with the hard disk)

QUESTION 48Identify the three predefined server-generated alerts. (Choose three.)

A. Drop UserB. Privilege GrantsC. Tablespace Space UsageD. Tablespace ReoganizationE. Resumable Session SuspendedF. Recovery Area Low On Free SpaceG. SYSTEM Tablespace Size Increment

Correct Answer: CEFSection: (none)Explanation

Explanation/Reference:A server-generated alert is a notification from the Oracle Database server of an impending problem. Thenotification may contain suggestions for correcting the problem. Notifications are also provided when theproblem condition has been cleared. Alerts are automatically generated when a problem occurs or when datadoes not match expected values for metrics, such as the following:* Physical Reads Per Second* User Commits Per Second* SQL Service Response Time* Tablespace space usage (C) . For example, by default a server-generated alert is generated for tablespacespace usage when the percentage of space usage exceeds either the 85% warning or 97% critical thresholdlevel. Examples of alerts not based on threshold levels are:* Snapshot Too Old* Resumable Session Suspended (E)* Recovery Area Space Usage (F)REF.: Oracle(r) 10g Administrator Guide, 4-18 and 4-19

QUESTION 49You modified the optimizer statistics of a table by using the DBMS_STATS.GATHER_TABLE_STATSprocedure.You realized that the newly generated statistics have created suboptimal execution plans for that particulartable.What would you do to revert to the previous set of statistics as soon as possible?

A. run Automatic Database Diagnostic Monitor (ADDM) Advisor to recommend a solutionB. wait for the default automatic optimizer statistics generationC. execute the DBMS_STATS.RESTORE_TABLE_STATS procedureD. execute the DBMS_STATS.RESTORE_DATABASE_STATS procedureE. purge the existing table statistics and execute the DBMS_STATS.GATHER_TABLE procedure with a

different set of parameters

Page 28: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Correct Answer: CSection: (none)Explanation

Explanation/Reference:This procedure restores statistics of a table as of a specified timestamp ( as_of_timestamp). The procedure willrestore statistics of associated indexes and columns as well. If the table statistics were locked at the specifiedtimestamp the procedure will lock the statistics. The procedure will not restore user defined statistics. REF.:Oracle(r) Database PL/SQL Packages and Types Reference 10g Release 2 (10.2)

QUESTION 50On which two database objects can the VERSIONS clause of the Flashback Versions Query be used? (Choosetwo.)

A. viewsB. fixed tablesC. heap tablesD. external tablesE. temporary tablesF. Index-Organized Tables (IOTs)

Correct Answer: CFSection: (none)Explanation

Explanation/Reference:The VERSIONS clause CANNOT be used to query, the following database objects:* External Tables* Temporary Tables* Fixed Tables* ViewsREF.: Oracle(r) Database 10g : New Features for Oracle 8i DBAs, 19-14

QUESTION 51You define the Warning threshold for the tablespace usage metric for the USERS tablespace to be 60% andthe Critical threshold to be 80%. When space usage of the USERS tablespace exceeds 60%, an alert is raised.Which two are sources for detailed alert information? (Choose two.)

A. the alert.log fileB. the V$ALERT_TYPES viewC. the DBA_ALERT_HISTORY viewD. the Database Control Home pageE. the DBA_ALERT_ARGUMENTS viewF. the DBA_OUTSTANDING_ALERTS viewG. the Database Control Performance pageH. the Database Control Administration page

Correct Answer: DFSection: (none)Explanation

Explanation/Reference:The database issues a warning alert when reclaimable space is less than 15% and a critical alert whenreclaimable space is less than 3%. To warn the DBA of this condition, an entry is added to the alert log and tothe DBA_ OUTSTANDING _ALE R TS table (used by Enterprise Manager). However, the database continues

Page 29: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

to consume space in the Flash Recovery Area until there is no reclaimable space left. REF.: Metalink Note:305812.1- Flash Recovery area - Space management Warning & Alerts

QUESTION 52Which parameter avoids the overwriting of archived redo log files when you recover the database with theRESETLOGS option?

A. LOG_ARCHIVE_DESTB. LOG_ARCHIVE_TRACEC. LOG_ARCHIVE_FORMATD. LOG_ARCHIVE_CONFIGE. LOG_ARCHIVE_DEST_10F. LOG_ARCHIVE_LOCAL_FIRST

Correct Answer: CSection: (none)Explanation

Explanation/Reference:If the COMPATIBLE initialization parameter is set to 10.0 or higher, the database requires the specification ofresetlogs ID (%r) when you include the LOG_ARCHIVE_FORMAT parameter. The default for this parameter isoperating system dependent. For example, this is the default format for UNIX:LOG_ARCHIVE_FORMAT=%t_%s_%r.dbfThe incarnation of a database changes when you open it with the RESETLOGS option. Specifying %r causesthe database to capture the resetlogs ID in the archive log file name, enabling you to moreeasily perform recovery from a backup of a previous database incarnation.REF.: Oracle(r) 10g Administrator Guide, 7-7

QUESTION 53View the Exhibit and examine the highlighted alert.Exhibit #1

Exhibit #2

Page 30: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

You have received an alert with the Category specified as Snapshot Too Old. Which page would you open fromthe Advisor Central page to determine the system recommendations to avoid such alerts in future?

A. ADDMB. Memory AdvisorC. Segment AdvisorD. Undo ManagementE. SQL Tuning AdvisorF. SQL Access Advisor

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Improved automatic tuning of undo retention results in fewer "ORA-01555:snapshot too old" messages.Automatic tuning of undo retention now always tunes for the maximum possible retention for the undotablespace based on tablespace size and current system activity. This improves the success rate of OracleFlashback operations and long-running. This new tuning method for maximum possible retention applies only tofixed size undo tablespaces. For AUTOEXTEND tablespaces, the behavior is unchanged.REF.: Oracle(r) 10g Administrator Guide, 2-25

QUESTION 54You have 100 segments in the USERS tablespace. You realize that the USERS tablespace is running low onspace. You can use Segment Advisor to _______.

A. add data files to the tablespaceB. identify the segments that you should shrinkC. modify the storage parameters for the tablespaceD. automatically shrink the segments with unused spaceE. check the alerts generated for the table space that is running low on space

Correct Answer: BSection: (none)Explanation

Explanation/Reference:The Segment Advisor determines that an object has a significant amount of free space, it recommends onlinesegment shrink. If the object is a table that is not eligible for shrinking, as in the case of a table in a tablespacewithout automatic segment space management, the Segment Advisor recommends online table redefinition.REF.: Oracle(r) 10g Administrator Guide, 14-16

QUESTION 55You executed the following command on a partitioned table sales_test:ALTER TABLE sales_testMOVE PARTITION s_q3 TABLESPACE users2UPDATE INDEXES

Page 31: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

(sales_test_ix(PARTITION s_q3 TABLESPACE example) );Which two statements regarding the above command are correct? (Choose two.)

A. The sales_test_ix index will be rebuilt automatically.B. The UPDATE INDEXES clause is optional in the above command.C. The UPDATE INDEXES clause is used only with the MOVE operation on a partition.D. The UPDATE INDEXES clause without storage attributes will rebuild the index in the SYSTEM tablespace.

Correct Answer: ABSection: (none)Explanation

Explanation/Reference:On the statement, de clause UPDATE INDEXES had been used. By default, many table maintenanceoperations on partitioned tables invalidate (mark UNUSABLE) the corresponding indexes or index partitions.You must then rebuild the entire index or, in the case of a global index, each of its partitions. The database letsyou override this default behavior if you specify UPDATE INDEXES in your ALTER TABLE statement for themaintenance operation. Specifying this clause tells the database to update the index at the time it executes themaintenance operation DDL statement.REF.: Oracle(r) 10g Administrator Guide, 17-24

QUESTION 56Which file gets created automatically while migrating from non-ASM files to ASM disk group by using RMAN?

A. the control fileB. the alert log fileC. the parameter fileD. the server parameter fileE. the archived redo log file

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 57While creating an Oracle 10g Release 1 (10.1) database, you set the COMPATIBLE parameter to 10.0.0 in theinitialization parameter file. Which two statements are true in this situation? (Choose two)

A. You can use all the new features in 10g.B. You can change the setting of the COMPATIBLE parameter to 9.2.0.2.C. You can advance the compatibility of your database with the COMPATIBLE initialization parameter.D. You can assign any value to the COMPATIBLE parameter, but the parameter would still take the default

values as 10.0.0.

Correct Answer: ACSection: (none)Explanation

Explanation/Reference:The COMPATIBLE initialization parameter enables or disables the use of features in the database that affectfile format on disk. For example, if you create an Oracle Database 10 g database, but specify COMPATIBLE =9.2.0.2 in the initialization parameter file, then features that requires 10.0 compatibility will generate an error if

Page 32: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

you try to use them. Such a database is said to be at the 9.2.0.2 compatibility level. You can advance thecompatibility level of your database. If you do advance the compatibility of your database with theCOMPATIBLE initialization parameter, there is no way to start the database using a lower compatibility levelsetting, except by doing a point-in-time recovery to a time before the compatibility was advanced..REF.: Oracle(r) 10g Administrator Guide , 2-34

QUESTION 58Which three statements regarding collection of database usage metrics are correct? (Choose three.)

A. The metrics survive database reboots and crashes.B. The MMON process tracks and records the database usage metrics.C. The MMAN process tracks and records the database usage statistics.D. The Oracle Enterprise Manager (OEM) repository is used to store metrics.E. The SMON process tracks and records the database usage metrics once a month.F. The SYSAUX tablespace contains table, where the database usage metrics are physically stored.G. The SYSTEM tablespace by default contains tables where the database usage metrics and physically

stored.

Correct Answer: ABFSection: (none)Explanation

Explanation/Reference:

QUESTION 59Exhibit

As shown in the diagram, in-memory statistics are transferred to the disk at regular intervals. Whichbackground process performs this activity?

A. CJQB. CKPT

Page 33: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

C. MMAND. SMONE. PMONF. MMONG. DBWR

Correct Answer: FSection: (none)Explanation

Explanation/Reference:

QUESTION 60If the database is shown degraded performance, which three charts on the Database Control ConsolePerformance page will help you resolve the problem? (Choose three.)

A. overall availability chartB. instance throughput chartC. waiting and working sessions chartD. host paging and run queue information chartE. undo generation rate and tablespace usage chart

Correct Answer: BCDSection: (none)Explanation

Explanation/Reference:

QUESTION 61Identify three key features of ASM. (Choose three.)

A. file stripingB. file mirroringC. Segment AdvisorD. automatic file creationE. automatic disk rebalancingF. automatic file size incrementG. automatic undo management

Correct Answer: ABESection: (none)Explanation

Explanation/Reference:ASM extends the power of Oracle-managed files. With Oracle-managed files, files are created and managedautomatically for you, but with ASM you get the additional benefits of features such as mirroring and striping.ASM enables you to change the storage configuration without having to take the database offline. Itautomatically rebalances-redistributes file data evenly across all the disks of the disk group-after you add disksto or drop disks from a disk group. Should a disk failure occur, ASM automatically rebalances to restore fullredundancy for files that had extents on the failed disk.REF.: Oracle(r) 10g Administrator Guide, 12-2

QUESTION 62

Page 34: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Which two statements regarding unusable indexes are correct? (Choose two.)

A. You can set SKIP_UNUSABLE_INDEXES to true to skip unusable indexes.B. You can check the alert log file to get a message recorded about unusable indexes.C. You do not need to set any parameter because unusable indexes are skipped automatically.D. Your Data Definition Language (DDL) statement shows a warning message when an index is made

unusable.

Correct Answer: ABSection: (none)Explanation

Explanation/Reference:Setting this parameter to TRUE disables error reporting of indexes and index partitions markedUNUSABLE.The SKIP_UNUSABLE_INDEXES, which in earlier releases was a session parameter,is now aninitialization parameter with a default value of TRUE. In earlier releases default value of this parameter is false.REF.: Metalink Note: 281500.1- SKIP_UNUSABLE_INDEXES Initialization Parameter in Oracle Database 10g

QUESTION 63You added the following policy:EXEC DBMS_RLS.ADD_POLICY (object_schema => 'scott',object_name => 'emp',policy_name => 'hr_policy',fuction_schema => 'scott',policy_function => 'hrpol',policy_type => dbms_rls.static,sec_relevant_cols => 'sal,comm') ;Which two statements regarding the above policy are correct? (Choose two.)

http://www.gratisexam.com/

A. The policy predicate changes for each query.B. The policy function does not reexecute for each query.C. Policy predicates are cached in the System Global Area (SGA).D. The policy is useful where every query requires a different predicate and fast performance is not essential

Correct Answer: BCSection: (none)Explanation

Explanation/Reference:The execution of policy functions can consume a significant amount of system resources. If you can minimizethe number of times that policy functions must run, then you can optimize your database server performance.To avoid unnecessary policy function execution, you can choose from five different policy types, which enableyou to precisely specify how and how often a policy predicate should change. You can enable these differenttypes of policies, by setting the policy_type parameter of the DBMS_RLS.ADD POLICY procedure. On thequestion, policy_type=> ddms_rls.static , this way, static policy predicates are cached in SGA, so policyfunctions do not rerun for each query, resulting in faster performance. When you specify a static policy, thesame predicate is always enforced for all users in the instance.REF.: Oracle(r) 10g Security Guide 15-31

Page 35: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

QUESTION 64Consider an Oracle instance that is using Automatic Shared Memory Management. You set some of theSystem Global Area (SGA) parameters as shown below:SGA_TARGET = 200 MBSHARED_POOL_SIZE= 20 MBDB_KEEP_CACHE_SIZE = 30 MBWhich two statements are correct in this scenario? (Choose two.)

A. Shared pool size will never shrink below 20 MB.B. A maximum of 20 MB will be allocated to the shared pool.C. 230 MB will be allocated among the auto-tuned SGA components.D. 250 MB will be allocated among the auto-tuned SGA components.E. If SGA_TARGET is reduced to 150 MB, then it will not affect the value of the DB_KEEP_CACHE_SIZE

parameter.

Correct Answer: AESection: (none)Explanation

Explanation/Reference:The main objectives to justify this new functionality are:* Distribute the available memory depending of the current Workload. The MMAN process will take someregular memory snapshots to evaluate the needs and thereby the dispatching of the usable memory.* Enhance the memory usage depending of the activityA note on Oracle metalink, explains way much better, the use of ASMM. The main goal of this document is toshow you how to put in place the ASMM facility introduced with Oracle10g, how to configure it, and also someexamples on how to monitor its activity. REF.: Metalink Note: 295626.1How To Use Automatic Shared MemoryManagement (ASMM) In Oracle10g

QUESTION 65An online tablespace, TEST_TBS, is full and you realize that no server-managed tablespace threshold alertswere generated for the TEST_TBS tablespace. What could be the reason, if the TEST_TBS tablespace doesnot include autoextensible data files?

A. TEST_TBS is a small file tablespace.B. TEST_TBS is a bigfile tablespace (BFT).C. TEST_TBS is the default temporary tablespace.D. TEST_TBS is the dictionary-managed tablespace.E. Threshold values for the TEST_TBS tablespace are not explicitly specified.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Space management within a tablespace involves keeping track of free and used space, so that space isallocated efficiently during data insertion and deletion.Oracle recommends creating locally-managedtablespaces over dictionary-managed tablespaces. Locally-managed tablespaces keep the space allocationinformation within the tablespace, not in the data-dictionary, thus offering better performance. By default, Oraclesets all newly created tablespaces to be locally-managed with automatic segment management, a feature thatfurther improves performance. When you create a table in a locally managed tablespace and use automaticsegment space management, you should allow Oracle to build the table using its own storage algorithms. If youneed to store a table in a dictionary-managed tablespace, then you can set the storage characteristics for thetable.REF.: Oracle(r) 2 days DBA, 6-5

QUESTION 66

Page 36: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

You performed an incomplete recovery and opened the database with the RESETLOGS option. TheLOG_ARCHIVE_FORMAT parameter is set to 'ora_%t_%s_%r.log'.Which statement regarding the archived redo log files, created in an earlier incarnation of the database, is true?

A. The archived redo log files cannot be used.B. The archived redo log files will be overwritten.C. The archived redo log files are deleted automatically.D. The achieved redo log files should be moved to some other location.E. The archived redo log files are still maintained because the file names are unique.

Correct Answer: ESection: (none)Explanation

Explanation/Reference:The parameter %r represents the RESETLOGS identifier and changes every time a RESETLOGS operationoccurs, ensuring that no filename collisions exists in the flash recovery area or an archived log file destination.

QUESTION 67Exhibit

View the exhibit and examine the query output.You are logged in as user SYSTEM. You plan to relocate the Ultra Search occupant back to the SYSAUX

Page 37: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

tablespace from the OCCU_TBS tablespace by using a SQL statement. Whichcommand would you use?

A. EXEC WKSYS.MOVE_WK('SYSAUX');B. EXEC SYS.MOVE_WK('OCCU_TBS');C. EXEC WKSYS.MOVE_WK('OCCU_TBS');D. EXEC WKSYS.MOVE_WK('ULTRASEARCH','SYSAUX');E. EXEC WKSYS.MOVE_WK('ULTRASEARCH','OCCU_TBS');

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 68You explicitly specified the tablespace usage threshold values while creating a tablespace. You need to revertthe database-wide default tablespace usage threshold values for the tablespace.Which PL/SQL package would you use?

A. DBMS_STATSB. DBMS_ALERTC. DBMS_SPACED. DBMS_MONITORE. DMBS_SERVER_ALERTF. DBMS_SPACE_ADMIN

Correct Answer: ESection: (none)Explanation

Explanation/Reference:Explanation :The DBMS_SERVER_ALERT package contains a number of procedures that allows you to set, view andmodify a variety of alert conditions. There are three procedures available in the package which areSET_THRESHOLDGET_THRESHOLDEXPAND_MESSAGEThe SET_THRESHOLD procedure is used set/revert to required threshold values.e.g.SQL> executedbms_server_alert.set_threshold(dbms_server_alert.tablespace_pct_full,dbms_server_alert.operator_ge, 85,dbms_server_alert.operator_ge, 99,1,1, null,dbms_server_alert.object_type_tablespace,'USERS');The new threshold goes into effect immediately. The next time MMON process runs, an alert will be generatedif the space usage on the USERS tablespace is 85% or higher.

QUESTION 69Which three statements regarding Automatic Database Diagnostic Monitor (ADDM) are correct? (Choosethree)

A. ADDM targets the tuning of individual user response times.

Page 38: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

B. ADDM also documents the nonproblem areas of the system.C. ADDM analyzes online transaction processing (OLTP) systems only.D. An ADDM analysis is performed each time a statspack snapshot is taken.E. Each ADDM finding has one or more recommendations associated with it.F. ADDM analyzes the snapshots stored in Automatic Workload Repository (AWR) on a regular basis.

Correct Answer: BEFSection: (none)Explanation

Explanation/Reference:ADDM also documents the non-problem areas of the system. For example, wait event classes that are notsignificantly impacting the performance of the system are identified and removed from the tuning considerationat an early stage, saving time and effort that would be spent on items that do not impact overall systemperformance. ADDM analysis can be performed over any time period defined by a pair of AWR snapshotstaken on a particular instance. Analysis is performed top down, first identifying symptoms and then refiningthem to reach the root causes of performance problems. Note that ADDM does not target the tuning ofindividual user response times. Each problem finding is quantified by an impact that is an estimate of theportion of DB time caused by the finding's performance issue. A problem finding can be associated with a list ofRECOMMENDATIONs for reducing the impact of the performance problem .REF.: Oracle(r) 10g Performance Guide, 6-2

QUESTION 70You have 100 segments in the USERS tablespace. You get an alert that the USERS tablespace is running lowon space. You decide to shrink some segments.Which option would you use to determine which segment to shrink?

A. Segment AdvisorB. SQL Tuning AdvisorC. SQL Access AdvisorD. Segment Resource EstimationE. Automatic Database Diagnostic Monitor (ADDM)

Correct Answer: ASection: (none)Explanation

Explanation/Reference:The Segment Advisor identifies segments that have space available for reclamation. It performs its analysis byexamining usage and growth statistics in the Automatic Workload Repository (AWR), and by sampling the datain the segment. It is configured to run automatically at regular intervals, and you can also run it on demand(manually). The regularly scheduled Segment Advisor run is known as the Automatic Segment Advisor.REF.: Oracle(r) 10g Administrator Guide, 14-16

QUESTION 71You want to perform the database backup when user activity on your system is low, such as between 12:00a.m. and 2:00 a.m.Which command terminates with an error if the backup is not complete at the end of the specified duration?

A. RMAN> BACKUP DURATION 2:00 MINIMIZE LOAD DATABASE;B. RMAN> BACKUP DURATION 2:00 PARTIAL FILESPERSET 1 DATABASE;C. RMAN> BACKUP DURATION 2:00 PARTIAL MINIMIZE TIME DATABASE;D. RMAN> BACKUP AS COPY DURATION 2:00 PARTIAL MINIMIZE LOAD DATABASE;

Correct Answer: ASection: (none)

Page 39: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation

Explanation/Reference:By default, when a BACKUP... DURATION command runs out of time before the backup completes, RMANreports an error. (The effect of this is that if the command is running in a RUN block, the RUN blockterminates.) You can control this behavior by adding the PARTIAL option to the BACKUP... DURATIONcommand, as in this example:BACKUP DURATION 4:00 PARTIAL TABLESPACE users FILESPERSET 1; When PARTIAL is used, no erroris reported when a backup command is interrupted due to the end of the backup window. Instead, a messageshowing which files could not be backed will be displayed. If the BACKUP command is part of a RUN block,then the remaining commands in the RUN block will continue to execute. When using DURATION you can runthe backup with the maximum possible performance, or run as slowly as possible while still finishing within theallotted time, to minimize the performance impact of backup tasks. To extend the backup to use the full timeavailable, use the MINIMIZE LOAD option,REF.: Oracle(r) 10g Backup and Recovery Guide, 2-40 and 2-41

QUESTION 72Which three statements regarding compressed backups are correct? (Choose three)

A. The compression applies to only image copies.B. The compressed backup is applicable to only data files.C. The COMPATIBLE parameter must be set to 10.0.0 or higher.D. The compressed backup is applicable to only the entire database backup.E. Restoration from a compressed backup does not require any special action.F. The compression provided by media manager and the RMAN backup compression should not be used

together.

Correct Answer: CEFSection: (none)Explanation

Explanation/Reference:For any use of the BACKUP command that creates backupsets, you can take advantage of RMAN's support forbinary compression of backupsets, by using the AS COMPRESSED BACKUPSET option to the BACKUPcommand. The resulting backupsets are compressed using an algorithm optimized for efficient compression ofOracle database files. No extra uncompression steps are required during recovery if you use RMAN'sintegrated compression. If you are backing up to tape and your tape device performs its own compression, youshould not use both RMAN backupset compression and the media manager vendor's compression.REF.: Oracle(r) 10g Backup and Recovery Guide, 4-6

QUESTION 73Which two initialization parameters would you set to enable Automatic Shared Memory Management? (Choosetwo)

A. set LOG_BUFFER to zeroB. set SHARED_POOL_SIZE to zeroC. set DB_CACHE_SIZE to a non-zero valueD. set STATISTICS_LEVEL to BASICE. set SGA_TARGET to a non-zero valueF. set STATISTICS_LEVEL to TYPICAL or ALL

Correct Answer: EFSection: (none)Explanation

Explanation/Reference:

Page 40: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

The ASMM is driven by one init parameter: SGA_TARGET.When set to 0, the ASMM is disabled and you runwith the old method, so you need to define the above auto-tuned parameters by yourself. The default value forSGA_TARGET is 0 so ASMM disabled.The conditions to enable the ASMM mechanism are:STATISTICS_LEVEL=TYPICAL or ALLSGA_TARGET > 0When you use a value greater than 0, the ASMM is enabled and the memory will be spread between allcomponents: auto-tuned and manual parameters. The SGA_TARGET value will therefore define the memorysize sharable between auto-tuned and manual parameters.REF.: Metalink Note: 295626.1How To Use Automatic Shared Memory Management (ASMM) In Oracle10g

QUESTION 74Which three statements regarding the bigfile tablespace (BFT) are correct? (Choose three)

A. BFT can be dictionary managed.B. A BFT always contains a single file.C. BFT is supported for locally managed tablespaces.D. In BFT, the maximum file size ranges from 8 TB to 128 TB.E. BFT, when uses with Oracle Managed Files (OMF), provides complete data file transparency.

Correct Answer: BCESection: (none)Explanation

Explanation/Reference:Explanation:Benefits of Bigfile Tablespaces* Bigfile tablespaces can significantly increase the storage capacity of an Oracle database. Smallfiletablespaces can contain up to 1024 files, but bigfile tablespaces contain only one file that can be 1024 timeslarger than a smallfile tablespace. The total tablespace capacity is the same for smallfile tablespaces and bigfiletablespaces. However, because there is limit of 64K datafiles for each database, a database can contain 1024times more bigfile tablespaces than smallfile tablespaces, so bigfile tablespaces increase the total databasecapacity by 3 orders of magnitude. In other words, 8 exabytes is the maximum size of the Oracle databasewhen bigfile tablespaces are used with the maximum block size (32 k).* Bigfile tablespaces simplify management of datafiles in ultra large databases by reducing the number ofdatafiles needed. You can also adjust parameters to reduce the SGA space required for datafile informationand the size of the control file.* They simplify database management by providing datafile transparency.

QUESTION 75You need to determine how often a particular database feature is used in the database.Which two methods would you use to do this? (Choose two)

A. User alert log fileB. Use Database Option AdvisorC. Use the DBMS_STATS packageD. Use the DBMS_RESOURCE_MANAGER packageE. Run a query on DBA_FEATURE_USAGE_STATISTICSF. Open the Database Usage Statistics page of Enterprise Manager (EM)

Correct Answer: EFSection: (none)Explanation

Explanation/Reference:

Page 41: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

QUESTION 76You decide to define the Flash Recovery Area manually. What are the two mandatory initialization parametersyou need to set? (Choose two)

A. LOG_ARCHIVE_DEST_10B. DB_CREATE_FILE_DESTC. RECOVERY_PARALLELISMD. DB_RECOVERY_FILE_DESTE. DB_RECOVERY_FILE_DEST_SIZEF. DB_FLASHBACK_RETENTION_TARGET

Correct Answer: DESection: (none)Explanation

Explanation/Reference:

QUESTION 77Examine the following commands of Data Pump to import objects to new non-existing users hr1 and oe1.$ expdp system/managerschemas = hr,oedirectory = EXP_DIRdumpfile = export.datinclude = table$ impdp system/managerschemas = hr1,oe1directory = EXP_DIRdumpfile = export.datremap_schema = hr:hr1, oe:oe1Which objective would be achieved by the above command set?

A. expdp will fail because no path has been defined for the dumpfile.B. Expdp will succeed but Impdp will fail because users do no exist.C. impdp would create two schemas called hr1 and oe1 and copy the schema objects to the new users.D. Impdp would create two schemas called hr1 and oe1 and

import tables owned by hr and oe schemas to hr1 and oe1 schemas, respectively.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:REMAP_SCHEMADefault: nonePurposeLoads all objects from the source schema into a target schema.Syntax and DescriptionREMAP_SCHEMA=source_schema:target_schemaMultiple REMAP_SCHEMA lines can be specified, but the source schema must be different for each one.However, different source schemas can map to the same target schema. The mapping may not be 100 percentcomplete, because there are certain schema references that Import is not capable of finding. For example,Import will not find schema references embedded within the body of definitions of types, views, procedures, andpackages.If the schema you are remapping to does not already exist, the import operation creates it, provided the dumpfile set contains the necessary CREATE USERmetadata for the source schema and you are importing with

Page 42: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

enough privileges. For example, the following Export commands would create the dump file sets with thenecessary metadata to create a schema, because the user SYSTEMhas the necessary privileges

QUESTION 78Character large objects (CLOB) data is represented in Oracle database 10g as the ___- character set.

A. UCS2B. US7ASCIIC. AL16UTF16D. WE9IS08859P1E. D7SIEMENS9780XF. Same characters set as the database character set.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 79Which process performs the rebalance data extent movements across ASM disk groups in ASM?

A. Checkpoint (CKPT)B. System Monitor (SMON)C. ASM Rebalance (ARBn)D. Process Monitor (PMON)E. ASM Background (ASMB)F. ASM Rebalance Master (RBAL)

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 80You have a partitioned table called employee in USERS1 tablespace. You executed the following statement onthe partition emp_d3 of the table:ALTER TABLE employee MOVE PARTITION emp_d3 TABLESPACEUSERS2;Which two statements regarding the local index partition on the emp_d3partition are correct? (Choose two)

A. The local index partition cannot be rebuilt.B. The local index partition remains USABLE.C. The local index partition becomes UNUSABLE.D. The local index partition must be dropped and re-created manually.E. The local index partition gets dropped automatically when you move a partition of the table.F. The local index partition will be rebuilt automatically of you use the UPDATE INDEX clause in the above

command.

Correct Answer: CFSection: (none)Explanation

Page 43: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation/Reference:

QUESTION 81You want to unload data from the ORDERS, ORDER_ITEMS, and PRODUCTS database tables to four os flatfiles by using the External Table Population methods. To achieve this objective, you execute the followingcommand:Create TABLE orders_ext(order_id, order_date, product_id, product_name,quantity) ORGANIZATION EXTERNAL(TYPE ORACLE_DATAPUMPDEFAULT DIRECTORY ext_dirLOCATION ('orders1.dmp','orders2.dmp','orders3.dmp','orders4.dmp')]PARALLELASSELECT

A. order_id,o.order_date,p.product_id,p.product_name,i.quanity FROM orders o,products p,order_items iWHERE o.order_id = i.order_id and i.product_id =

B. product_id;After successful execution of the command, you find that only two files have been created and not four.Which option do you need to change to achieve your objective?

C. TYPED. LOCATIONE. PARALLELF. DEFAULT DIRECTORYG. ORGANIZATION EXTERNAL

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 82Which two statements are correct regarding renaming a tablespace? (Choose two)

A. You cannot rename a dictionary-managed tablespace.B. When you rename a tablespace, all the data files are also renamed accordingly.C. You cannot rename a tablespace that happens to be the default permanent tablespace of a user.D. You can rename a tablespace provided that COMPATIBILITY initialization parameter is set to at least

10.0.0.0.0.E. When you rename a tablespace, the Oracle 10g database updates all references to the tablespace name in

the data dictionary as well as the control file.

Correct Answer: DESection: (none)Explanation

Explanation/Reference:The COMPATIBLE parameter must be set to 10.0 or higher. When you rename a tablespace the databaseupdates all references to the tablespace name in the data dictionary, control file, and (online) datafile headers.

Page 44: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

The database does not change the tablespace ID so if this tablespace were, for example, the defaulttablespace for a user, then the renamed tablespace would show as the default tablespace for the user in theDBA_USERS view.REF.: Oracle 10g Administrator Guide, 8-19

QUESTION 83You want to have a compatible audit trail of everything that has happened to the jobs in the job class namedJOB_CLASSA.What should the logging level be for JOB_CLASSA?

A. DBMS_SCHEDULER.ENABLEB. DBMS_SCHEDULER.LOGGING_OFFC. DBMS_SCHEDULER.LOGGING_RUNSD. DBMS_SCHEDULER.LOGGING_FULLE. DBMS_SCHEDULER.LOGGING_COMPLETE

Correct Answer: DSection: (none)Explanation

Explanation/Reference:

QUESTION 84The application tables owned by the user TEST in a test database need to be exported to theAPPS schema in the production database by using Data Pump. Which option of Data Pump Import would youuse to accomplish this?

A. ownerB. touserC. attachD. fromuserE. remap_schema

Correct Answer: ESection: (none)Explanation

Explanation/Reference:The REMAP_SCHEMA parameter changes the ownership of database objects. If you do not specifyREMAP_SCHEMA, all database objects (such as tables and indexes) are created in the same user schema asin the source database, and those users must already exist in the target database. If they do not exist, then theimport utility returns an error.REF.: Oracle(r) 10g Administrator Guide , 8-36

QUESTION 85While observing database statistics, you found that the Automatic Workload Repository (AWR) snapshots arebeing purged after each day. You want the snapshots to be purged on a weekly basis.Which two options would you use to increase the purge interval? (Choose two)

A. Enterprise ManagerB. DBMS_JOB.INTERVALC. DBMS_SCHEDULER.CHANGED. DBMS_SCHEDULER.INTERVALE. DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS

Page 45: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Correct Answer: AESection: (none)Explanation

Explanation/Reference:

QUESTION 86Consider the following configuration:/devices/D1 is a member of disk group dgroupA./devices/D2 is a member of disk group dgroupA./devices/D3 is a member of disk group dgroupA.You plan to add a new disk, /devices/D4, to the disk group dgroupA and execute the following command:SQL> ALTER DISKGROUP dgroupA ADD DISK '/devices/D4' ;Which task would be accomplished by the command?

A. The command adds the new disk, D4 to the disk group.B. The command would result in an error because there is no disk by the name "/devices/D*".C. The command would result in an error because no wildcard characters can be used in the disk name.D. The command will be ignored because disks starting with "D" are already members of the disk group.E. The command first detaches all the member disks starting with "D" and then reattached all of them including

the new disk.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 87Which task would you perform to convert little-endian CLOB data to the big endian format while transportingfrom Oracle9i database to Oracle 10g database?

A. Use the CHANGE command of the RMAN utility.B. Use the CONVERT command of the RMAN utility.C. Transport the data after changing the character set of the target database to big endian.D. Transport the data after changing the character set to be an endian-independent format in the target

database.E. No action is required because Oracle RDBMS implicitly does the conversion in Oracle 10g database while

accessing the data.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:If you are transporting the tablespace set to a platform with different endianness from the source platform, youmust convert the tablespace set to the endianness of the target platform.Tablespaces can be transported fromone platform to another. The RMAN CONVERT command is used to do the conversion. The tablespaces beingtransported can be either dictionary managed or locally managed. Starting with Oracle9 i, the transportedtablespaces are not required to be of the same block size as the target database standard block size.SQL> SELECT * FROM V$TRANSPORTABLE_PLATFORM;PLATFORM_ID PLATFORM_NAME ENDIAN_FORMAT----------- -------------------------------- -------------- 1 Solaris[tm] OE (32-bit) Big2 Solaris[tm] OE (64-bit) Big7 Microsoft Windows IA (32-bit) Little

Page 46: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

10 Linux IA (32-bit) Little6 AIX-Based Systems (64-bit) Big3 HP-UX (64-bit) Big5 HP Tru64 UNIX Little4 HP-UX IA (64-bit) Big11 Linux IA (64-bit) Little15 HP Open VMS Little8 Microsoft Windows IA (64-bit) Little9 IBM zSeries Based Linux Big13 Linux 64-bit for AMD Little16 Apple Mac OS Big12 Microsoft Windows 64-bit for AMD Little17 Solaris Operating System (x86) LittleREF.: Oracle(r) 10g Administrator Guide , 8-27

QUESTION 88The system was running a normal workload during the last 24 hours. You need to ensure that with the sameworkload you should be able to flashbash tables by three hours.What would you do to find the system recommendations for the undo retention period and the undo tablespacesize?

A. Set DB_FLASHBACK_RETENTION_TARGET=10800B. Create a new scheduler window for the time period of 24 hours and use the optimizer statistics.C. Specify Flashback Retention Time as three hours in the MTTR Advisor page and use its recommendations.D. Modify the Automatic Workload Repository (AWR) snapshot time interval to three hours and use ADDM

findings.E. Specify New Undo Retention as three hours and Analysis Time period as Last One Day in the Undo Advisor

page and use its recommendations.

Correct Answer: ESection: (none)Explanation

Explanation/Reference:

QUESTION 89To which three elements is the size of the block change tracking file proportional? (Choose three)

A. Number of redo log groups.B. Number of DBWR process.C. Size of the database in bytes.D. Number of archiving destinations.E. Number of old backups maintained by the block change tracking file.F. Number of enabled threads in Real Application Cluster (RAC) environment.

Correct Answer: CEFSection: (none)Explanation

Explanation/Reference:The size of the block change tracking file is proportional to:* The database size in bytes: the block change tracking file contains data representing every data file block inthe database. The data is approximately 1/250000 of the total size of the database.* The number of enabled threads: In a Real Application Cluster (RAC) environment, the instances updatedifferent areas of the tracking file without any locking or inter-node block swapping. You enable block changetracking for the entire database and not for individual instances.

Page 47: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

* The number of old backups: The block change tracking file keeps a record of all changes between previousbackups, in addition to the modification since the last backup. It retains the change history for a maximum ofeight backups.REF.: RMAN (http://searchoracle.techtarget.com/searchOracle/downloads/10g_rman.doc)

QUESTION 90You executed the following SQL statement to shrink the EMPLOYEES table segment stored in the EXAMPLEtablespace:ALTER TABLE employee SHRINK SPACE CASCADE;Which statement is correct in this scenario?

A. The data in the segment will be compacted but the high water mark will not be adjusted.B. The EMPLOYEES tablespace will be changed to read-only mode during the shrink operation.C. The indexes created on the EMPLOYEES table will need to be rebuilt after the shrink operation is over.D. The shrink behavior will be cascaded to all dependent segments of the table that support a shrink operation.E. Data manipulation language (DML) operations will not be possible on the EMPLOYEE table during the

COMPACTION phase of the shrink operation.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:The CASCADE clause extends the segment shrink operation to all dependent segments of the object. Forexample, if you specify CASCADE when shrinking a table segment, all indexes of the table will also be shrunk.REF.: Oracle 10g Administrator Guide 14-29

QUESTION 91Exhibit:

View the Exhibit and examine the Data Pump architecture.Identify the numbered components.

Page 48: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

A. 1 - Oracle Loader, 2 - Oracle Data Pump, 3 - Direct Path APIB. 1 - Oracle Data Pump, 2 - Direct Path API, 3 - Oracle LoaderC. 1 - Direct Path API, 2 - Oracle Loader, 3 - Oracle Data PumpD. 1 - Oracle Loader, 2 - Direct Path API, 3 - Oracle Data PumpE. 1 - Oracle Data Pump, 2 - Oracle Loader, 3 - Direct Path API

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 92How frequently does the Automatic Database Diagnostic Monitor (ADDM) analysis run by default?

A. Every 30 minutesB. Every 45 minutesC. Every 15 minutesD. Every 60 minutesE. Each time a statspack snapshot is taken

Correct Answer: DSection: (none)Explanation

Explanation/Reference:ADDM is invoked automatically every time that a new AWR snapshot is generated (by default every 60minutes) and the results of the analysis are stored in the AWR repository tagged with the snapshot id.Therefore, the DBA can find historical executions of the advisor and its recommendations.REF.:Note:276103.1 PERFORMANCE TUNING USING 10g ADVISORS AND MANAGEABILITY FEATURES

QUESTION 93Which three statements regarding resumable statements are correct? (Choose three)

A. Resumable statements cannot contain a distributed transaction.B. Resumable statements can only be enabled at the system level.C. Resumable statements can be enabled at the system level as well as the session level.D. RESUMABLE_TIMEOUT=0 disabled resumable space allocation for all sessions.E. The ALTER SESSION ENABLE RESUMABLE command is obsolete in Oracle Database 10g.F. Only the local instance is affected when changing the resumable timeout parameter in a distribution

transaction.

Correct Answer: CDFSection: (none)Explanation

Explanation/Reference:C : At the system level:ALTER SYSTEM SET RESUMABLE_TIMEOUT = 72000;At the session level:ALTER SESSION SET RESUMABLE_TIMEOUT = 72000;E. ALTER SESSION ENABLE RESUMABLE ; is still supported in Oracle 10g

QUESTION 94

Page 49: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Which two sources may be used for a running session by SQL Tuning Advisor (STA)? (Choose two)

A. SQL ProfilesB. Recovery Manager (RMAN) RepositoryC. Automatic Workload Repository (AWR)D. Automatic Database Diagnostic Monitor (ADDM)

Correct Answer: CDSection: (none)Explanation

Explanation/Reference:Explanation:Not A: A SQL profile is a result of running the tuning advisor.

QUESTION 95Immediately after adding a new disk to or removing an existing disk from an ASM instance, you find that theperformance of the database goes down initially until the time the addition or removal process is completed,and then gradually becomes normal.Which two activities would you perform to maintain a consistent performance of the database while adding orremoving disks? (Choose two)

A. Increase the number of checkpoint processes.B. Define the POWER option while adding or removing the disks.C. Increase the number of ARB processes by setting up a higher value for ASM_POWER_LIMIT.D. Increase the number of DBWR processes by setting up a higher value for DB_WRITER_PROCSSES.E. Increase the number of slave database writer processes by setting up a higher value for

DBWR_IO_SLAVES.

Correct Answer: BCSection: (none)Explanation

Explanation/Reference:If the POWER clause is not specified in an ALTER DISKGROUP command, or when rebalance is implicitlyinvoked by adding or dropping a disk, the rebalance power defaults to the value of the ASM_POWER_LIMITinitialization parameter. You can adjust this parameter dynamically. The higher the limit, the faster a rebalanceoperation may complete. Lower values cause rebalancing to take longer, but consume fewer processing and I/O resources. This leaves these resources available for other applications, such as the database. The defaultvalue of 1 minimizes disruption to other applications. The appropriate value is dependent upon your hardwareconfiguration as well as performance and availability requirements.REF.: Oracle 10g Administrator Guide 12-9

QUESTION 96Which four statements regarding the block change track file are correct? (Choose four)

A. The minimum size of this file is 10 MB.B. The maintenance of this file is fully automatic.C. The changed blocks are tracked in this file as redo is generated.D. The location of this file must be different from that of the database files.E. The Oracle database records block change information in this file by default.F. The V$BLOCK_CHANGE_TRACKING view contains the name and location of this file.

Correct Answer: ABCFSection: (none)

Page 50: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation

Explanation/Reference:A - True. Should say "start" not "minimum". The size of the change tracking file is proportional to the size of thedatabase and the number of enabled threads of redo. The size is not related to the frequency of updates to thedatabase. Typically, the space required for block change tracking is Overview of Reporting on Backups and theRMAN Repository approximately 1/30,000 the size of the data blocks to be tracked. B - True. Based on thebook from the Oracle class Oracle Database 10g New Features for Administrators - page 13-18C - True. Changed blocks are tracked by the CTWR background process as redo is generated. Databaseincremental backups, automatically use the change tracking file; D - False. You can also create the changetracking file in a location you choose yourself, using the following SQL statement:SQL> ALTER DATABASE ENABLE BLOCK CHANGE TRACKINGUSING FILE '/mydir/rman_change_track.f' REUSE;E - False. Because this is not the default behavior of Oracle.. F - True. From SQL*Plus, you can queryV$BLOCK_CHANGE_TRACKING.STATUS to determine whether change tracking is enabled, and if it is, queryV$BLOCK_CHANGE_TRACKING.FILENAME to display the filename. REF.: Oracle(r) Backup and RecoveryBasics, 4-19, 4-20 and 4-21

QUESTION 97You define the Warning threshold for the tablespace usage metric for the USERS tablespace to be 35%.Because of this, several alerts are being raised. After observing this, you decide to increase the Warningthreshold and clear all old alerts related to tablespace usage metric.Where would you fund the information about cleared alerts?

A. The alert.log fileB. The DBA_ALERT_HISTORY data dictionary tableC. The DBA_ALERT_ARGUMENTS data dictionary tableD. The DBA_TAB_STATS_HISTORY data dictionary tableE. The DBA_OUTSTANDING_ALERTS data dictionary tableF. The V$ACTIVE_SESSION_HISTORY data dictionary table

Correct Answer: BSection: (none)Explanation

Explanation/Reference:The following dictionary views provide information about server alerts:* DBA_THRESHOLDS lists the threshold settings defined for the instance.* DBA_OUTSTANDING_ALERTS describes the outstanding alerts in the database. *DBA_ALERT_HISTORYlists a history of alerts that have been cleared. (B)* V$ALERT_TYPES provides information such as group and type for each alert.* V$METRICNAME contains the names, identifiers, and other information about the system metrics.* V$METRIC and V$METRIC_HISTORY views contain system-level metric values in memory.REF.: Oracle 10g Administrator Guide, 4-21REF.: Oracle 10g Administrator Guide, 4-21

QUESTION 98Which data dictionary view would you query to find the name of the default permanent tablespace of thedatabase?

A. DICTIONARYB. DBA_TABLESPACESC. DBA_DIRECTORIESD. DBA_STORED_SETTINGSE. DATABASE_PROPERTIESF. DBA_TABLESPACE_GROUPS

Page 51: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Correct Answer: ESection: (none)Explanation

Explanation/Reference:SQL*Plus: Release 10.2.0.1.0 - Production on Sat Feb 4 20:31:26 2006 Copyright (c) 1982, 2005, Oracle. Allrights reserved.SQL> conn / as sysdbaConnected.SQL> desc DATABASE_PROPERTIESName Null? Type----------------------------------------- -------- -------------------- PROPERTY_NAME NOT NULL VARCHAR2(30)PROPERTY_VALUE VARCHAR2(4000)DESCRIPTION VARCHAR2(4000)SQL> SELECT PROPERTY_NAME, PROPERTY_VALUE2 FROM DATABASE_PROPERTIES3WHERE PROPERTY_NAME='DEFAULT_PERMANENT_TABLESPACE;PROPERTY_NAME PROPERTY_VALUE---------- ----------------------------DEFAULT_PERMANENT_TABLESPACE USERS

QUESTION 99Which three statements regarding the properties of a temporary tablespace group are correct? (Choose three)

A. It is created explicitly.B. It has the same namespace as tablespaces.C. It contains at least one temporary tablespace.D. It can contain a maximum of 1024 tablespaces in it.E. It has to be removed manually after the last temporary tablespace is removed.F. It is created automatically when the first temporary tablespace is assigned to it.

Correct Answer: BCFSection: (none)Explanation

Explanation/Reference:Using a tablespace group, rather than a single temporary tablespace, can alleviate problems caused where onetablespace is inadequate to hold the results of a sort, particularly on a table that has many partitions. Atablespace group enables parallel execution servers in a single parallel operation to use multiple temporarytablespaces.A - see FB - It shares the namespace of tablespaces, so its name cannot be the same as any tablespace.C - It contains at least one tablespace. There is no explicit limit on the maximum number of tablespaces thatare contained in a group.D - see CE - The group is deleted when the last temporary tablespace it contains is removed from it.F - You do not explicitly create a tablespace group. Rather, it is created implicitly when you assign the firsttemporary tablespace to the group.REF.: Oracle 10g Administrator Guide 8-11

QUESTION 100The SQL Access Advisor may recommend additional structures to improve the performance of SQLstatements. You can select the type of structure recommended by the SQL Access Advisor.Which two structures can you select? (Choose two)

A. IndexesB. Partitions

Page 52: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

C. SynonymsD. SequencesE. Database linksF. Materialized viewsG. Hash or index clustersH. Index-Organized Table

Correct Answer: AFSection: (none)Explanation

Explanation/Reference:Materialized views and indexes are essential when tuning a database to achieve optimum performance forcomplex, data-intensive queries. The SQL Access Advisor helps you achieve your performance goals byrecommending the proper set of materialized views, materialized view logs, and indexes for a given workload.REF.: Oracle 10g Performance Tuning Guide 17-1

QUESTION 101

Sam is a DBA of an OLTP system that has a large number of users. He receives a complaint from two userswith client ids Richard and Hardy that the Application response time is poor. To understand the problem facedby Richard and Hardy better, Sam wants to gather the statistics for all active sessions of these clients for aparticular instance.Which two of these steps should Sam perform and in which order to view the relevant information?

A. 1, 3B. 1, 4C. 2, 3D. 2, 4

Correct Answer: ASection: (none)Explanation

Explanation/Reference:The question asks for "to gather the statistics for all" and not to enable tracing. Thus it can be assumed that weneed to do DBMS_MONITOR.CLIENT_ID_STAT_ENABLE (p18-10) and notDBMS_MONITOR.CLIENT_ID_TRACE_ENABLE (p18-13)

CLIENT_ID_STAT_ENABLE Enable / Disable Statisticsgathering for a given Client1. Statistics can be seenIdentifierthroughVSCLIENT_STATS

CLIENT_ID_STAT_DISABLE

LEEnable / Disable1. Trace data may beTracing for a given Client

Page 53: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

writtenIdentifierto many trace files as theCLIENT_ID_TRACE_ENABtrace may effect multipleconnectedsessions with the

QUESTION 102You are using the Automatic Shared Memory Management configuration. Which four initialization parameterswill be tuned automatically? (Choose four)

A. LOG_BUFFERB. DB_CACHE_SIZEC. JAVA_POOL_SIZED. LARGE_POOL_SIZEE. STREAMS_POOL_SIZEF. DB_Nk_CACHE_SIZEG. SHARED_POOL_SIZEH. DB_KEEP_CACHE_SIZEI. DB_RECYCLE_CACHE_SIZE

Correct Answer: BCDGSection: (none)Explanation

Explanation/Reference:ASMM will tune automatically Db_cache_size, Shared_pool_size, large_pool_size and Java_pool_size

QUESTION 103In which three cases should you collect statistics manually? (Choose three)

A. For large objects (LOBs)B. For fixed objectsC. For external tablesD. For undo tablespacesE. For schema statisticsF. For tables that are bulk loaded

Correct Answer: BCFSection: (none)Explanation

Explanation/Reference:You must gather statistics manually for the following situations:1. When a table is loaded using bulk operation2. When using external tables3. To collect system statisticsTo collect statistics on fixed objects.

QUESTION 104In an online transaction processing (OLTP) environment, you find that the transaction tables get heavilyfragmented during the week. You decide to defragment the transaction tables on every Friday at 9:30 p.m. togain performance. Which two new features of the Oracle 10g database could you use to automate this task?(Choose two)

Page 54: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

A. The DBMS_AQ packageB. The DBMS_JOB packageC. The OS level job automation toolD. The DBMS_SCHEDULER packageE. Enterprise Manager job scheduling

Correct Answer: DESection: (none)Explanation

Explanation/Reference:D: Oracle 10g's new DBMS_SCHEDULER package offers significant improvements over DBMS_JOB forscheduling jobs and tasks.Here is an example of scheduling with DBMS_SCHEDULER. Note that the syntax is now much clearer, and theparameters even now make sense when compared to DBMS_JOB. And gone at last is that wacky INTERVALparameter! BEGIN DBMS_SCHEDULER.CREATE_JOB ( job_name => 'HR_STATS_REFRESH' ,job_type =>'PLSQL_BLOCK' ,job_action => 'BEGINDBMS_STATS.GATHER_SCHEMA_STATS("HR");END;',start_date =>'09/01/200409:30 PM' ,repeat_interval => 'WEEKLY BYDAY=5' ,enabled => TRUE ,comments => Refreshes the HRSchema every Friday at 9.30 PM');END; Not B: DBMS_JOB is not new with 10g)

QUESTION 105You have the following requirements with respect to optimizer statistics:The statistics should be generated automatically during weekdays (Monday to Friday) between 10:00 p.m. and7:00 a.m.The objects that need updated statistics the most should be processed first.What should you do?

A. Modify the AUTO_TASKS_JOB_CLASS Scheduler class.B. Use the DBMS_STATS.GATHER_DATABASE_STATS procedure with the GATHER AUTO option.C. Modify the duration of the default WEEKNIGHT_WINDOW scheduler window to

10:00 pm.7:00 a.m.D. Not make any medications, because by default the WEEKNIGHT_WINDOW scheduler window

automatically generates statistics during weekdays between 10:00 p.m.and 7:00 a.m.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:A Scheduler program GATHER_STATS_PROG and Scheduler job GATHER_STATS_JOB are predefined oninstallation of Oracle Database. GATHER_STATS_PROG collects optimizer statistics for all objects in thedatabase for which there are no statistics or only stale statistics. GATHER_STATS_JOB is defined onGATHER_STATS_PROG and is scheduled to run in theMAINTENANCE_WINDOW_GROUP.The Oracle Scheduler enables you to create time windows during which jobs are automatically run. A typicalScheduler window defines a start time, a duration, and optionally a resource plan to activate. A Scheduler jobcan then name a window as its schedule. (When the window "opens," the job begins to run.) In addition,windows can be combined into window groups, and if a job names a window group as its schedule instead ofnaming a window, the job runs whenever any of the windows in the window group opens.Two Scheduler windows are predefined upon installation of Oracle Database:* WEEKNIGHT_WINDOW starts at 10 p.m . and ends at 6 a.m. every Monday through Friday.* WEEKEND_WINDOW covers whole days Saturday and Sunday. Together these windows constitute theMAINTENANCE_WINDOW_GROUP in which all system maintenance tasks are scheduled. Oracle Databaseuses the maintenance windows for automatic statistics collection and for some other internal systemmaintenance jobs .

Page 55: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

REF.: Oracle 10g Administrator Guide, 23-1

QUESTION 106You are working on a database that was created using Oracle Database 10g, the default tablespace typeproperty was not changed. You execute the following statement to create a tablespace, mytbs:CREATE TABLESAPCE mythbs DATAFILE '/u1/data/mytbs.dbf' SIZE 100M;Which two statements are correct regarding the mytbs tablespace? (Choose two)

A. It is a smallfile tablespace.B. It is a bigfile tablespace (BFT).C. It is a default bigfile tablespace.D. It is a locally managed tablespace.E. It is a dictionary-managed tablespace.

Correct Answer: ADSection: (none)Explanation

Explanation/Reference:Explanation:Specify either SET DEFAULT BIGFILE TABLESPACE or SET DEFAULT SMALLFILETABLESPACE. If you omit this clause, the default is a smallfile tablespace, which is the traditional type ofOracle Database tablespace.Verify also:SELECT tablespace_name, extent_management, bigfileFROM dba_tablespacesWHERE tablespace_name = 'MYTHBS';TABLESPACE_NAME EXTENT_MANAGEMENT BIGFILEMYTHBS LOCAL NO

QUESTION 107You executed the following command to back up the control file:ALTER DATABASE BACKUP CONTROLFILE TO TRACE;What do you find in the trace file?

A. Image of the control fileB. Location of the control fileC. Contents of the control file in text formatD. SQL command to re-create the databaseE. SQL command to re-create the control fileF. Contents of the control file in binary format

Correct Answer: ESection: (none)Explanation

Explanation/Reference:Use the ALTER DATABASE BACKUP CONTROLFILE statement to back up your control files. You have twooptions:1. Back up the control file to a binary file (duplicate of existing control file) using the following statement:ALTER DATABASE BACKUP CONTROLFILE TO '/oracle/backup/control.bkp';2. Produce SQL statements that can later be used to re-create your control file:ALTER DATABASE BACKUP CONTROLFILE TO TRACE;This command writes a SQL script to the database trace file where it can be captured and edited to reproducethe control file.REF.: Oracle 10g Administrator Guide, 5-8

Page 56: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

QUESTION 108Your boss at Certkiller .com wants you to clarify Oracle 10g. Which two steps are performed the first time anyUPDATE statement is issued after the instance is started? Choose two

A. Creating the parse tree of the statementB. Writing the modified data blocks to the data filesC. Writing the modified data to the archived redo log filesD. Updating the control file to indicate the most recent checkpointE. Updating the data file header to indicate the most recent checkpointF. Reading the blocks to database buffer cache if they are not already there

Correct Answer: AFSection: (none)Explanation

Explanation/Reference:

QUESTION 109You work as a database administrator for Certkiller .com. You have been asked to use a centralizedadministrative tool to administer your database servers and application servers. In order to achieve theobjective, which component would you configure on each database server?

A. Database ControlB. Management ServerC. Management RepositoryD. Application Server ControlE. Oracle Management Agent

Correct Answer: ESection: (none)Explanation

Explanation/Reference:

QUESTION 110The data file belonging to the SYSTEM tablespace is corrupted and no backup of the file is available.How do you recover the data file?

A. The data file cannot be recovered.B. The date file can be restored from the SYSTEM auto backup.C. Take the tablespace offline, drop, and re-create it.D. Recovery Manager (RMAN) is used to recover the data file.E. The ALTER DATABSE CREATE DATAFILE.. command is used to recover the data file.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:The tablespace that contains the Oracle data dictionary for a database, which is the metadata that describesthe complete contnents of the database. The SYSTEM tablespace is unlike other tablespaces in that alldatafiles contained in the tablespace must be online for Oracle to function. If a media failure affects one of thedatafiles in SYSTEM, then you must mount the database and recover. The question ask to "How to recover?",

Page 57: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

but also says that there is NO BACKUP AVAILABLE.To restore a datafile or control file from backup is to retrieve the file onto disk from a backup location on tape,disk or other media, and make it available to the database server. To recover a datafile (also called performingrecovery on a datafile), is to take a restored copy of the datafile and apply to it changes recorded in thedatabase's redo logs. To recover a whole database is to perform recovery on each of its datafiles.REF.: Oracle(r) 10g Backup and Recovery Guide 1-5

QUESTION 111You work as a database administrator for Certkiller .com. You started the instance using the init.ora file. Youhave two control files and three redo log groups in your database. You decided to protect the database againstfailures by adding one more control file.Which file is the appropriate way to perform this task?

A. Shut down the instance, copy the control file to the third location and open the database.B. Abort the instance, copy the control file to the third location, modify the CONTROL_FILES parameter in the

init.ora file and open the database.C. Copy the control file to the third location, modify the CONTROL_FILES parameter in the init.ora file, restart

the instance and open the database.D. Shut down the instance, copy the control file to the third location, modify the CONTROL_FILES parameter

in the init.ora file and open the database.E. Shut down the instance, startup in the mount state, copy the control file to the third location, modify the

CONTROL_FILES parameter in init.ora and open the database.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:You can create an additional control file copy for multiplexing by copying an existing control file to a newlocation and adding the file name to the list of control files. Similarly, you rename an existing control file bycopying the file to its new name or location, and changing the file name in the control file list. In both cases, toguarantee that control files do not change during the procedure, shut down the database before copying thecontrol file.To add a multiplexed copy of the current control file or to rename a control file:1. Shut down the database2. Copy an existing control file to a new location, using operating system commands.3. Edit the CONTROL_FILES parameter in the database initialization parameter file to add the new control filename, or to change the existing control filename.4. Restart the database.REF.: Oracle 10g Administrator Guide, 5-4

QUESTION 112You work as a database administrator for Certkiller .com. You find that the database performance degradeswhile you backup the Certkiller database using Recovery Manager (RMAN). The Certkiller database is runningin shared server mode. The database instance is currently using 60% of total operating system memory. Yoususpect the shared pool fragmentation to be the reason. Which action would you consider to overcome theperformance degradation?

A. Configure Java Pool to cache the java objects.B. Configure Streams Pool to enable parallel processing.C. Increase Shared Pool size to cache more PL/SQL objects.D. Increase Database Buffer Cache size to increase cache hits.E. Configure Large Pool to be used by RMAN and shared server.F. Increase the total System Global Area (SGA) size to increase memory hits.

Correct Answer: ESection: (none)

Page 58: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation

Explanation/Reference:When attempting to get shared buffers for I/O slaves, the database does the following:* If LARGE_POOL_SIZE is set, then the database attempts to get memory from the large pool. If this value isnot large enough, then an error is recorded in the alert log, the database does not try to get buffers from theshared pool, and asynchronous I/O is not used.* If LARGE_POOL_SIZE is not set, then the database attempts to get memory from the shared pool.* If the database cannot get enough memory, then it obtains I/O buffer memory from the PGA and writes amessage to the alert.log file indicating that synchronous I/O is used for this backup.The memory from the large pool is used for many features, including the shared server (formerly called multi-threaded server), parallel query, and RMAN I/O slave buffers.Configuring the large pool prevents RMAN fromcompeting with other subsystems for the same memory. Se the LARGE_POOL_SIZE initialization parameter toconfigure the large pool. To see in which pool (shared pool or large pool) the memory for an object resides,query $SGASTAT.POOL.REF.: Oracle(r) 10g Backup and Recovery Guide 11-6 and 11-7

QUESTION 113You work as a database administrator for Certkiller .com. You decided to manage client and server connectionsusing Local Naming method in Certkiller .com. When you try to connect to the database you get the followingerror:ERROR:ORA-12154: TNS:could not resolve service nameWhich network configuration files would you look into to resolve this error? Choose two.

A. snmp.oraB. names.oraC. spfile.oraD. sqlnet.oraE. listener.oraF. tnsnames.ora

Correct Answer: DFSection: (none)Explanation

Explanation/Reference:Error: ORA-12154 / TNS-12154Text: TNS:could not resolve service name--------------------------------Cause: The service name specified is not defined correctly in the TNSNAMES.ORA file. Action: Make thefollowing checks and correct the error:- Verify that a TNSNAMES.ORA file exists and is in the proper place and accessible. See the operating systemspecific manual for details on the required name and location.

Explanation:The SQL*Net layer cannot find a definition for the alias supplied Diagnosis:1) Check the tnsnames.ora file you are using, verify that it is accessible.5) Check the default domain name being used, and the path used to locate aliases, in the SQLNET.ORA file.The default domain is specified in the NAMES.DEFAULT_DOMAIN parameter - this is appended to the aliasspecified in the connect string if there is no domain given.REF.: Metalink Note:21321.1 ORA 12154 "TNS: could not resolve service name"

QUESTION 114You work as a database administrator for Certkiller .com. In your production database, the size of DatabaseBuffer Cache needs to be increased immediately for the current as well as future instances of the database.The Oracle instance has been configured to accommodate any changes in the size of the memory structures.At this is production database, you want to accomplish this task with no impact on the user's connections.

Page 59: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Which activity must you have completed before accomplishing this task?

A. You must have started the database instance in restricted mode.B. You must have started the database instance in NORMAL mode.C. You must have started the database instance with server parameter file.D. You must have started the database instance but must not have mounted.E. You must have started the database instance but must not have opened.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 115Which three statements regarding the column-level Virtual Database Policy (VPD) policy are true? (Choosethree.)

A. The column-level VPD policy can be applied only to tables.B. The security policy is applied whenever the column is referenced in a query.C. The column-level VPD policy can be applied to tables and views, but not to synonyms.D. The security policy cannot be applied to data manipulation language (DML) statements.E. The security policy is applied and statements are rewritten when they access security-relevant

Correct Answer: BCESection: (none)Explanation

Explanation/Reference:A - False. Virtual private database (VPD) enables you to enforce security, to a fine level of granularity, directlyon tables, views, or synonyms. B - True. When a user directly or indirectly accesses a table, view, or synonymprotected with aVPD policy, the server dynamically modifies the SQL statement of the user. Themodificationcreates a WHERE condition (known as a predicate) returned by a function implementing the security policy.The statement is modified dynamically, transparently to the user, using any condition that can be expressed inor returned by a function. VPD policies can be applied to SELECT, INSERT, UPDATE, INDEX, and DELETEstatements.C - True. see BD - False. see BE - True. see BREF.: Oracle 10g Security Guide 14-2

QUESTION 116Which four policy rule categories are available in the Policy Framework? (Choose four.)

A. ObjectsB. StorageC. SecurityD. NetworkE. Configuration

Correct Answer: ABCESection: (none)Explanation

Page 60: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation/Reference:

QUESTION 117Which three files can be managed using an ASM Instance? (Choose three.)

A. Data filesB. Audit filesC. Trace filesD. Export filesE. Alert log filesF. Archived log filesG. Change tracking files

Correct Answer: AFGSection: (none)Explanation

Explanation/Reference:File Types Supported by Automatic Storage ManagementControl files yesDatafiles yesRedo log files yesArchive log files yesTrace files noTemporary files yesDatafile backup pieces yesDatafile incremental backup pieces yesArchive log backup piece yesDatafile copy yesPersistent initialization parameter file (SPFILE) yesDisaster recovery configurations yesFlashback logs yesChange tracking file yesData Pump dumpset yesAutomatically generated control file backup yesCross-platform transportable datafiles yesOperating system files noREF.: Oracle(r) 10G Admin Guide 12-33

QUESTION 118You are checking every 10 minutes for alerts regarding the violation of tablespace usage threshold. Some ofthe tablespaces' fullness was not detected on time. As a result the transactions were aborted before you had achance to resolve the space issue. What would you do to avoid transactional failures?

A. Use bigfile tablespaces (BFTs)B. Enable resumable space allocationC. Modify the background process PMON settingsD. Modify the LOG_CHECKPOINT_TIMEOUT parameterE. Reduce the default tablespace usage threshold values for the database.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

Page 61: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation:That is the purpose of resumable space allocation.

QUESTION 119You create a locally managed tablespace by using the following SQL statement:CREATE TABLESPACE hr_tbsDATAFILE 'data.dat' SIZE 1M REUSEAUTOEXTEND ON MAXSIZE 100M;The warning and critical tablespace usage threshold values are set to 85% and 97%, respectively. Which twostatements regarding the threshold-based alerts generation for the HR_TBS tablespace are correct? (Choosetwo.)

A. A critical alert will be generated when 97 MB space is used.B. A critical alert will be generated when 970 KB space is used.C. A warning alert will be generated when 85 MB space is used.D. A warning alert will be generated when 850 KB space is used.E. A critical alert will be generated when 970 KB is left as free space.F. A warning alert will be generated when 850 KB is left as free space.G. No critical alert will be generated because it is a small file tablespace.H. No warning alert will be generated because the tablespace is autoextensible.

Correct Answer: ACSection: (none)Explanation

Explanation/Reference:By default a server-generated alert is generated for tablespace space usage when the percentage of spaceusage exceeds either the 85% warning or 97% critical threshold level. MAXSIZE 100M , then 97 MB and 85MB,are the correct answers.REF.: Oracle(r) 10g Administrator Guide , 4-19

QUESTION 120While using buffer cache advisory, you find that no statistics have been collected. Which task would youperform to collect the statistics?

A. Restart the database instance.B. Set DB_CACHE_ADVICE to ON.C. Set TIMED_STATISTICS to TRUE.D. Set TIMED_OS_STATISTICS to 100.E. Set ACTIVE_INSTANCE_COUNT to 2.F. Set STATISTICS_LEVEL to TYPICAL.G. Modify the AUTO_TASK_JOB_CLASS schedule class.H. Wait for the default automatic optimizer statistics generation.I. Create a custom Automatic Database Diagnostic Monitor (ADDM) task.

Correct Answer: FSection: (none)Explanation

Explanation/Reference:If no statistics have been collected, them the automatic statistics colletion isn't enable. The Oracle gatheringand monitoring features are mainly automatic, managed by an Oracle background processes. To enableautomatic statistics collection and automatic performance features, the STATISTICS_LEVEL initializationparameter must be set to TYPICAL or ALL.REF.: Oracle(r) 10g Performance Guide , 1-4

Page 62: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

QUESTION 121You are using disk-based backups and the disk space in the backup destination is limited. A normal completebackupset will not fit onto the disk. You need to perform a full database backup in the same disk.Which two commands in this scenario are correct? (Choose two.)

A. RMAN> BACKUP DATABASE;B. RMAN> BACKUP AS BACKUPSET DATABASE;C. RMAN> BACKUP AS COMPRESSED BACKUPSET DATABASE;D. RMAN> BACKUP DURATION 2:00 PARTIAL MINIMIZE TIME DATABASE;E. RMAN> BACKUP DURATION 1:00 PARTIAL FILESPERSET 1 DATABASE;F. RMAN> BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS

ARCHIVELOG;

Correct Answer: CFSection: (none)Explanation

Explanation/Reference:For any use of the BACKUP command that creates backupsets, you can take advantage of RMAN's support forbinary compression of backupsets, by using the AS COMPRESSED BACKUPSET option to the BACKUPcommand. The resulting backupsets are compressed using an algorithm optimized for efficient compression ofOracle database files. No extra uncompression steps are required during recovery if you use RMAN'sintegrated compression.REF.: Oracle(r) 10g Backup and Recovery Basics, 4-6

QUESTION 122Which two statements regarding the Flashback Table feature are correct? (Choose two.)

A. Flashback Table can be performed on system tables.B. Flashback Table operation does not shrink the segments.C. Flashback Table uses log mining to extract SQL_REDO and SQL_UNDO statements.D. Flashback Table operation acquires exclusive data manipulation language (DML) locks.

Correct Answer: BDSection: (none)Explanation

Explanation/Reference:

QUESTION 123You have a materialized view called emp-mv on the emp table. You want to stop the following query fromexecuting if it does not rewrite:SELECT deptno, sum(sal) FROM emp GROUP BY deptno;Which statement wold you use?

A. SELECT /*+ USE_CONCAT */deptno,sum(sal) FROM emp GROUOP BE deptno;B. SELECT /*+ NO_EXPAND */deptno,sum(sal) FROM emp GROUOP BE deptno;C. SELECT /*+ NO_REWRITE */deptno,sum(sal) FROM emp GROUOP BE deptno;D. SELECT /*+ REWRITE_OR_ERROR */deptno,sum(sal) FROM emp GROUP BY deptno;E. SELECT /*+ NO_QUERY_TRANSFORMATION */deptno,sum(sal) FROM emp GROUP BY deptno;

Correct Answer: DSection: (none)

Page 63: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation

Explanation/Reference:REWRITE_OR_ERROR HintThere may be situations where you want to stop the query from executing if it did not rewrite . One suchsituation can be when you expect the un-rewritten query to take an unacceptably long time to execute. Tosupport this requirement, Oracle Database 10g provides a new hint called REWRITE_OR_ERROR. This is aquery block-level hint. For example, if the SELECT statement is not rewritten, the error displayed in themessage is thrown. The REWRITE_OR_ERROR hint allows you to runDBMS_MVIEW.EXPLAIN_REWRITE() on the query, resolve the problems that caused rewrite to fail, and runthe query again

QUESTION 124Which method would you use to undo the changes made by a particular transaction without affecting thechanges made by other transaction?

A. point-in-time recoveryB. manually enter the appropriate data againC. execute the ROLLBACK command with transaction numberD. flashback the database to before the transaction was committedE. determine all the necessary undo SQL statements from

FLASHBACK_TRANSACTION_QUERY and use them for recovery.

Correct Answer: ESection: (none)Explanation

Explanation/Reference:

QUESTION 125Which four tablespaces can be renamed? (Choose four.)

A. an undo tablespaceB. an offline tablespaceC. a read-only tablespaceD. a temporary tablespaceE. the SYSTEM tablespaceF. the default permanent tablespace for the non-SYSTEM users

Correct Answer: ACDFSection: (none)Explanation

Explanation/Reference:Besides any other, The COMPATIBLE parameter must be set to 10.0 or higher. A - True. UNDO Tablespace. Ifthe tablespace is an undo tablespace and if the following conditions are met, then the tablespace name ischanged to the new tablespace name in the server parameter file (SPFILE).- The server parameter file was used to start up the database.- The tablespace name is specified as the UNDO_TABLESPACE for any instance. If a traditional initializationparameter file (PFILE) is being used then a message is written to the alert log stating that the initializationparameter file must bemanually changed.B - False. Offline Tablespaces. If any datafile in the tablespace is offline, or if the tablespace is offline, then thetablespace is not renamed and an error is raised. C - True. Read-only Tablespace. If the tablespace is readonly, then datafile headers are not updated. This shouldnot be regarded as corruption; instead, it causes a message to be written to the alert log indicating that datafileheaders have not been renamed. The data dictionary and control file are updated.

Page 64: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

D - True.Temporary Tablespace.If the tablespace is the default temporary tablespace, then the correspondingentry in the database properties table is updated and the DATABASE_PROPERTIES viewshows the new name.E - False. SYSTEM Tablespace. If the tablespace being renamed is the SYSTEM tablespace or the SYSAUXtablespace, then it will not be renamed and an error is raised. F - True. When you rename a tablespace thedatabase updates all references to the tablespace name in the data dictionary, control file, and (online) datafileheaders. The database does not change the tablespace ID so if this tablespace were, for example, the defaulttablespace for a user, then the renamed tablespace would show as the default tablespace for the user in theDBA_USERS view.REF.: Oracle(r) Database Administration Guide,8-19

QUESTION 126Exhibit 1-5:

View the exhibit and examine the sparsely populated EMP table segment.

Page 65: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

You execute the following SQL command:ALERT TABLE emp SHRINK SPACEIdentify how the data in the segment will be reorganized as a result of the above statement.

A. Exhibit 1.B. Exhibit 2.C. Exhibit 3D. Exhibit 4E. Exhibit 5

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Segment shrink reclaims unused space both above and below the high water mark. In contrast, spacedeallocation reclaims unused space only above the high water mark. In shrink operations, by default, thedatabase compacts the segment, adjusts the high water mark, and releases the reclaimed space.REF.: Oracle(r) Database Administration Guide,14-28

QUESTION 127You want to convert your existing non-ASM files to ASM filesfor the database PROD. Which method orcommand would you use to accomplish this task?

A. the CONVERT command of RMANB. Data Pump Export and Import

Page 66: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

C. Conventional export and importD. The BACKUP .. RESTORE command of RMANE. The BACKUP AS COPY DATABASE .. command of RMAN

Correct Answer: ESection: (none)Explanation

Explanation/Reference:If you have enough disk space that you can have both your entire non-ASM database and your ASM disk groupon disk at the same time, you can do the migration directly without using tapes.1. Back up your database files as copies to the ASM disk group. BACKUP AS COPY INCREMENTAL LEVEL 0DATABASE FORMAT '+DISK' TAG 'ORA_ASM_MIGRATION';REF.: Oracle(r) 10g Backup and Recovery Advance User's Guide, 16-2

QUESTION 128View the Exhibit and examine the recommendation graph provided for a test database by the Undo Advisor.

The graph recommends that the size of undo tablespace should be set to _______.

A. 1 MBB. 6 MBC. 10 MBD. 15 MBE. 11 MB

Correct Answer: ESection: (none)Explanation

Explanation/Reference:

QUESTION 129

Page 67: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

At 6:00 p.m. you notice that the database performance was slow between 2:00 p.m. and 6:00 p.m. due to aseries of interrelated problems. You plan to use the Automatic Database Diagnostic Monitor (ADDM) findingsfor the time period 2:00

A. m. to 6:00 p.m. to resolve the performance issue. The Automatic Workload Repository (AWR) snapshotsare made every 30 minutes.What would you do?

B. Lock at the latest ADDM report.C. Check the alert log to see if it contains ADDM advice.D. Modify the time interval used by the DBMS_JOB.INTERVAL procedureE. Check for the ADDM advice trace file in the BACKGROUND_DUMP_DEST directoryF. Modify the Automatic Workload Repository (AWR) snapshot retention period to four hoursG. Create a custom ADDM task over the period defined by the snapshots taken at 2:00H. m. and 6:00 p.m.

Correct Answer: FSection: (none)Explanation

Explanation/Reference:

QUESTION 130In the Oracle 10g Data Guard architecture, what is the purpose of the Log Transport Services?

A. to control the automated transfer or redo data from the production database to one or more archivaldestinations

B. to apply redo log records sent from the primary database to a stadby database at the receiving locationC. to synchronize changes to the control files on all standby database with changes on the primary database

when a log switch occursD. to batch archived log files on the primary database until a defined number of checkpoints have been

processed and then to distribute the arcives to each standby database

Correct Answer: ASection: (none)Explanation

Explanation/Reference:A - True. Redo Transport Services control the automated transfer of redo data from the production database toone or more archival destinations. Redo transport services also perform the following tasks:*Transmit redo data from the primary system to the standby systems in the configuration;* Manage the process of resolving any gaps in the archived redo log files due to a network failure;*Enforce the database protection modes;* Automatically detect missing or corrupted archived redo log files on a standby system and automaticallyretrieve replacement archived redo log files from the primary database or another standby databaseB - False . Apply redo service do thisC - False . Apply redo service do thisD - FalseREF.: Oracle(r) Data Guard Concepts and Administration 10g Release 2 (10.2), 1-3

QUESTION 131Examine the statement:SQL> CREATE TABLESPACE user_data2> EXTENT MANAGEMENT LOCAL3> SEGMENT SPACE MANAGEMENT AUTO;Which two assumptions must be true for this statement to execute successfully? (choose two)

Page 68: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

A. Oracle Managed Files are used for this instanceB. The USER_DATA tablespace is managed using FET$/UET$ tablesC. The database will manage the free space of segments in the tablesapce using a bitmap.D. Space within segments in the USER_DATA tablespac is managed with freelists

Correct Answer: ACSection: (none)Explanation

Explanation/Reference:A - True. No datafile location had been specified, because OMF. Using Oracle-managed files simplifies theadministration of an Oracle Database. Through initialization parameters, you specify the file system directory tobe used for a particular type of file. The database then ensures that a unique file, an Oracle-managed file, iscreated and deleted when no longer needed. The database internally uses standard file system interfaces tocreate and delete files as needed for the following database structures:* Tablespaces* Redo log files* Control files* Archived logs* Block change tracking files* Flashback logs* RMAN backupsB - False. See CC - True. The clause, MANAGEMENT LOCAL, tells us that tocally managed tablespaces track all extentinformation in the tablespace itself by using bitmaps, resulting in the following benefits:* Fast, concurrent space operations. Space allocations and deallocations modify locally managed resources(bitmaps stored in header files).* Enhanced performance* Readable standby databases are allowed, because locally managed temporary tablespaces do not generateany undo or redo.* Space allocation is simplified, because when the AUTOALLOCATE clause is specified, the databaseautomatically selects the appropriate extent size.* User reliance on the data dictionary is reduced, because the necessary information is stored in file headersand bitmap blocks.* Coalescing free extents is unnecessary for locally managed tablespaces.D - False. See CREF.: Oracle(r) Database Administration Guide, 8-3 and 11-1

QUESTION 132What is the Character Set Scanner?

A. a separate program that searches the database for invalid stringsB. a package (DBMS_CSS) that searches the database for invalid stringsC. a separate program that searches for strings that require Unicode conversion if you want to support multiple

languagesD. a separate program that identifies character data loss if you change the character sets of the database

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Before altering the character set of a database, check the convertibility of the data before converting. Characterset conversions can cause data loss or data corruption. The Character Set Scanner utility provides this 2features:1) convertibility check of existing data and potential issues. The Scanner checks all character data in thedatabase including the data dictionary and tests for the effects and problems of changing the character set

Page 69: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

encoding (characterset). At the end of the scan, it generates a summary and exception report of the databasescan.2) from csscan V1.1 onwards it allows you also to do a check if there is no data in the database that isincorrectly stored.REF.: Metalink Note : 123670.1 - Use Scanner Utility before Altering the Database Character Set

QUESTION 133In an online transaction processing(OLTP) environment you find that the transaction tables get heavilyfragmented during the week. You decide to defragment the transaction tables on every Friday at 9:30 p,m togain performance. Which two new features of the Oracle 10G database could you use to automate this task?

A. the DBMS_AQ packageB. th DBMS_IJOB packageC. the OS levl job automation toolD. the DBMS_SCHEDULER packageE. Enterprise Manager job scheduling

Correct Answer: DESection: (none)Explanation

Explanation/Reference:

QUESTION 134Standby redo logs are used in Data Guard environments for a number of reasons. Which three statements aretrue regarding standby redo logs?

A. They are required to implement a no-data-loss disaster recovery solution.B. They are used on the primary database to allow the primary and a standby database to switch roles easily

and quickly without additional DBA intervention.C. They must be archived before being applied to a standby database, requiring the ARCH process to be

running on the standby irrespective of the archive log mode.D. They must be updated on the standby database server in asynchronous mode to guarantee data availability.

Correct Answer: ABCSection: (none)Explanation

Explanation/Reference:

QUESTION 135When enabling a flashback, you must identify the version of the database contents you want to see. Which twooptions can you use to identify this version? (choose two)

A. a point in timeB. a start and an end timeC. a start and an end SCND. a System Change Number (SCN)E. a transaction ID

Correct Answer: ADSection: (none)Explanation

Page 70: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation/Reference:

QUESTION 136Which two data types can be converted to LOBs using an ALTERMODIFY command?

A. rawB. longC. varcharD. long raw

Correct Answer: BDSection: (none)Explanation

Explanation/Reference:

QUESTION 137You want to perform the database backup when user activity on your system is low, such as between 12:00a.m. and 2:00 a.m.Which command terminates with an error if the backup is not complete at the end of th specified duration?

A. RMAN> BACKUP DURATION 2:00 PARTIAL LOAD DATABASE;B. RMAN> BACKUP DURATION 2:00 PARTIAL FILESPERSET 1 DATABASE;C. RMAN> BACKUP DURATION 2:00 PARTIAL MINIMIZE TIME DATABASE;D. RMAN> BACKUP AS COPY DURATION 2:00PARTIAL MINIMIZE LOAD DATABASE;

Correct Answer: ASection: (none)Explanation

Explanation/Reference:By default, when a BACKUP... DURATION command runs out of time before the backup completes, RMANreports an error. (The effect of this is that if the command is running in a RUN block, the RUN blockterminates.) You can control this behavior by adding the PARTIAL option to the BACKUP... DURATIONcommand, as in this example:BACKUP DURATION 4:00 PARTIAL TABLESPACE users FILESPERSET 1; When PARTIAL is used, no erroris reported when a backup command is interrupted due to the end of the backup window. Instead, a messageshowing which files could not be backed will be displayed. If the BACKUP command is part of a RUN block,then the remaining commands in the RUN block will continue to execute. When using DURATION the leastrecently backed up files are backed up first. Thus, if you retry a job that was interrupted when the availableduration expired, each successive attempt covers more of the files needing backup. REF.: Oracle(r) Backupand Recovery Advanced User's Guide, 2-41

QUESTION 138What is the result of setting the CURSOR_SHARING = SIMILAR initialization parameter?

A. turn off all literal replacement for the shared cursorB. causes the optimizer to share cursors for all statementsC. causes the optimizer to examine the statement of ensure cursor sharing occurs for safe literals onlyD. causes the optimizer to ignore all indexes and static's to establish the appropriate execution path

Correct Answer: CSection: (none)Explanation

Page 71: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation/Reference:

QUESTION 139In order to speed forign key certain, Oracle 10G will cache the first_____primary key values only where thereare multirow DML statements.

A. 32B. 128C. 256D. 512

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 140Which four are true regarding the workspace Manager in Oracle 10G? (choose four)

A. automatically versions all tablesB. automatically installed with Oracle 10G.C. provides concurrency by isolating versions of data until they are explicity merged with production data or

discardedD. provides mechanism to identify and resolve conflictsE. allows for version enabling tables by use of a packaged procedureF. creates a database wide system table that maps row versions to workspaces and is visible to all users

Correct Answer: ABCESection: (none)Explanation

Explanation/Reference:Workspace Manager lets you version-enable one or more user tables in the database. When a table is version-enabled, all rows in the table can support multiple versions of the data.A workspace is a virtual environment that one or more users can share to make changes to the data in thedatabase. A workspace logically groups collections of new row versions from one or more version-enabledtables, and isolates these versions until they are explicitly merged with production data or discarded, thusproviding maximum concurrency.Workspace Manager automatically detects conflicts, which are differences in data values resulting fromchanges to the same row in a workspace and its parent workspace. You can use workspace locks to avoidconflicts.Workspace Manager is installed by default in the seed database and in all databases created by the DatabaseConfiguration Assistant (DBCA). D - False. The Workspace manager detects conflicts, but YOU must resolveconflicts before merging changes from a workspace into its parent workspace. F- False. Will be visible onlyAFTER making the changes public. REF.: Oracle(r) Application Developer's Guide - Workspace Manager 10gRelease 2 (10.2), 1-2 and 1-3

QUESTION 141Examine the list of variables and their data types:Name Data TypeTS, TS1 TIMESTAMPTSZ TIMESTAMP WITH TIME ZONETLZ TIMESTAMP WITH LOCAL TIME ZONE

Page 72: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

IYM INTERVAL YEAR TO MONTHIDS, IDS1 INTERVAL DAY TO SECONDWhich three expressions using the new date and time data types are valid?

A. IDS*2B. TS + IYMC. TS - TS1D. IDS -TSE. IDS +IYM

Correct Answer: ABDSection: (none)Explanation

Explanation/Reference:

QUESTION 142Which statement regarding the COMPATIABLE parameter is correct?

A. It is dynamic parameter.B. It is an advanced parameterC. It is a new parameter in Oracle 10GD. It can have any value between 8:0:0 and 10.1.0 in Oracle 10G databaseE. After is set to 10.0.0 or greater and the database is opened, it cannot be set back.

Correct Answer: ESection: (none)Explanation

Explanation/Reference:The default value is 10.2.0. The minimum value is 9.2.0. If you create an Oracle Database using the defaultvalue, you can immediately use all the new features in this release, and you can never downgrade thedatabase.REF.: Oracle(r) 10g Administrator Guide , 2-34

QUESTION 143You have a materialized view called emp_mv on the emp table. You want to stop following query fromexecuting if it does not rewrite:SELECT deptno,sum (sal) FROM emp GROUP BY deptno;Which statement should you use?

A. SELECT /*+USE_CONTACT*/deptno,sum(sal) FROM emp GROUP BY deptno;B. SELECT /*+NO_EXPAND*/deptno,sum(sal) FROM emp GROUP BY deptno;C. SELECT /*+NO_REWRITE*/deptno,sum(sal) FROM emp GROUP BY deptno;D. SELECT / *+REWRITE_OR_ERROR */deptno,sum(sal) FROM emp GROUP BY deptno;

Correct Answer: DSection: (none)Explanation

Explanation/Reference:REWRITE_OR_ERROR HintThere may be situations where you want to stop the query from executing if it did not rewrite . One suchsituation can be when you expect the un-rewritten query to take an unacceptably long time to execute. Tosupport this requirement, Oracle Database 10g provides a new hint called REWRITE_OR_ERROR. This is a

Page 73: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

query block-level hint. For example, if the SELECT statement is not rewritten, the error displayed in themessage is thrown. The REWRITE_OR_ERROR hint allows you to runDBMS_MVIEW.EXPLAIN_REWRITE() on the query, resolve the problems that caused rewrite to fail, and runthe query again

QUESTION 144Which two procedures or functions are part of the DBMS_METADATA package?

A. GET_DDLB. GET_XMLC. GET_TYPED. GET_VIEWE. GET_TABLE

Correct Answer: ABSection: (none)Explanation

Explanation/Reference:Procedures in DBMS_METADATA that use Object Types==================================================DBMS_METADATA.OPENDBMS_METADATA.GET_XMLDBMS_METADATA.GET_DDLDBMS_METADATA.GET_DEPENDENT_XMLDBMS_METADATA.GET_DEPENDENT_DDLDBMS_METADATA.GET_GRANTED_XMLDBMS_METADATA.GET_GRANTED_DDLREF.: Metalink Note : 207859.1- Object types for DBMS_METADATA

QUESTION 145Which three are true for a version-enabled table? (choose three)

A. must have a primary keyB. can be owned by the SYS userC. triggers that are not supported for version-enabled tables are deactivated when versioning is enabledD. a child table cannot be version-enabled without the parent table being version-enabledE. can be enabled or disabled by the table owner only

Correct Answer: ACDSection: (none)Explanation

Explanation/Reference:A - True. Must have a PK. The table that is being version-enabled must have a primary key defined. Theprimarykey can be a composite (multicolumn) primary key. B - False. Tables owned by SYS CAN'T be version-enabled. C - True . Any triggers that are not supported for version-enabled tables are deactivated whenversioning is enabled, and are activated when versioning is disabled. D - True - a workspace can be a parent toone or more workspaces (child workspaces).By default, when aworkspace is created, it is created from the topmost, or LIVE, database workspace. E - False - The owner of atable or a user with the WM_ADMIN_ROLE role can disable versioning on the table.REF.: Oracle(r) Application Developer's Guide - Workspace Manager 10g Release 2 (10.2), 4-40 and 4-44

QUESTION 146The database was started up using a text parameter file. What will be default scope of changes made by usingthe SET clause of the ALTER SYSTEM statement?

Page 74: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

A. Only MEMORY is updated.B. Only SPFILE values are updated.C. Only init<SID>.ora parmeters are updated.D. Both SPFILE and MEMORY memoryvalues are updated.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:The ALTER SYSTEM statement lets you set, change, or restore to default the values of initialization parameter.If you are using a text initialization parameter file, the ALTER SYSTEM statement changes the value of aparameter only for the current instance, because there is no mechanism for automatically updating initializationparameters on disk. You must update them manually to be passed to a future instance. Using a serverparameter file overcomes this limitation.REF.: Oracle(r) 10g Administrator Guide, 2-38

QUESTION 147What should you look at first to computer the number of undo blocks that are consumed and estimate the sizeof the undo tablespace needed to handle the workload on your system?

A. V$UNDOSTATB. V$ROLLSTATC. V$TRANSACTIOND. DBA_UNDO_EXTENTSE. DBA_ROLLBACK_SEGS

Correct Answer: ASection: (none)Explanation

Explanation/Reference:V$UNDOSTAT Contains statistics for monitoring and tuning undo space. Use this view to help estimate theamount of undo space required for the current workload. The database also uses this information to help tuneundo usage in the system. This view is meaningful only in automatic undo management mode.REF.: Oracle(r) 10g Administrator Guide, 10-10

QUESTION 148Character large object (CLOB) data is represented in Oracle database log as the_____character set.

A. UCS2B. US7ASCIIC. AL16UTF16D. WE81SO8859P1E. D7SIEMENS9780XF. Same character set as the databes charactr set

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

Page 75: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

QUESTION 149You enable Flashback Database with the following command:ALTER DATABASE FLASHBACK ON;Which view would you query to determine whether the Flashback Database has been enabled?

A. V$SGAB. V$DATABASEC. V$INSTANCED. V$FLASHBACK_DATABASE_LOGE. V$FLASHBACK_DATABASE_STATF. V$FLASHBACK_DATABASE_LOGFILE

Correct Answer: BSection: (none)Explanation

Explanation/Reference:SQL>DESC V$DATABASE;Name Type----------------------------------------- ------------- FLASHBACK_ON VARCHAR2(18)SQL>select FLASHBACK_ON from V$DATABASE;FLASHBACK_ON------------------YES

QUESTION 150Examine the following parameter settings from an initialization (init.oraa)file:DB_CREATE_FILE_DEST = '/u01/oradata/'DB_CREATE_ONLINE_LOGDEST 1 = '/u02/oradata/'DB_CREATE_ONLINE_LOG_DEST2 = '/u03/oradata/'If you create an Oracle Managed Files (OMF) database using these settings, what is the result?

A. The data files, temp files, and control file will be on device/u01; one online redo log group will be on device /u02; another redo log group will be on device/u03.

B. The data files and temp files will be on device /u02; another copy of the control file and one online redo loggroup will be on device /u02; another copy of the control file and a second redo log group will be on device /u03.

C. The data filesm temp files, online redo log files and control file will be on device/u01; multiplexed copies ofthe archive log files will be created; one set on device /u02, and another set on device /u03.

D. The data files and temp files will be on device/u01; one copy of the control file and the first member in eachonline redo log group will be on device/u02; another copy of the control file and a second member of eachredo log group will be on device /u03.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:a - DB_CREATE_FILE_DEST sets the default location for datafile, control file, and online log creation.* Datafiles* Tempfiles* Redo log files* Control files* Block change tracking filesYou specify the name of a file system directory that becomes the default location for the creation of theoperating system files for these entities. b - DB_CREATE_ONLINE_LOG_DEST_n initialization parameter inyour initialization parameter identify the default location for the database server to create:

Page 76: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

* Redo log files* Control filesYou specify the name of a file system directory that becomes the default location for the creation of theoperating system files for these entities. You can specify up to five multiplexed locations.For the creation of redo log files and control files only , this parameter overrides any default location specified inthe DB_CREATE_FILE_DEST and DB_RECOVERY_FILE_DEST initialization parameters. If you do notspecify a DB_CREATE_FILE_DEST parameter,but you do specify theDB_CREATE_ONLINE_LOG_DEST_ n parameter, then only redo log files and control files can be created asOracle-managed files.REF.: Oracle(r) 10g Administrator Guide, 11-5

QUESTION 151The Oracle 10G LogMiner needs a data dictionary copy to display the object names.From which three locations can LogMiner retrieve the data dictionary information?

A. separate supplemental log file.B. Information in the control fileC. The current online data dictionaryD. A Data Dictionary copy stored in the redo log fileE. A Data Dictionary copy stored in an operating system flat file

Correct Answer: BCDSection: (none)Explanation

Explanation/Reference:Explanation:LogMiner gives you following three options for supplying the dictionary 1.2.2.1 Using the Online Catalog1.2.2.2 Extracting a LogMiner Dictionary to the Redo Log Files 1.2.2.3 Extracting the LogMiner Dictionary to aFlat File

QUESTION 152Examine this startup script called startmydb.sql:CONNECT myid/mypwd AS SYSDBASTARTUPEXITIn Oracle 8i, you could have executed this script by invoking server manager with the command:Svrmgr1 @startmydb.sqlWhich alternative command could you use to run the startmydb.sql script with SQL*Plus to start your Oracle10g database?

A. sqlplus @startmydb.sqlB. sqlplus -Sstartmydb.sqlC. sqlplus -S @startmydb.sqlD. sqlplus /NOLOG @startmydb.sql

Correct Answer: DSection: (none)Explanation

Explanation/Reference:

Page 77: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

http://www.gratisexam.com/

QUESTION 153Oracle 10g support block media recovery. This reduces the smallest until of recovery from a data file to adatabase block. What are the two main benefits that block media recovery provides over file-level recovery?(choose two)

A. supports incomplete recoveryB. does not require Recovery ManagerC. lowers the mean time to recoverD. allows increased data availability during media recovery

Correct Answer: CDSection: (none)Explanation

Explanation/Reference:If a small number of blocks within one or more datafiles are corrupt, you can perform block media recoveryinstead of restoring the datafiles from backup and performing complete media recovery of those files. TheRecovery Manager BLOCKRECOVER command can be used to restore and recover specified data blockswhile the database is open and the corrupted datafile is online.Block media recovery may be better than datafilemedia recovery if availability is critical. While block media recovery is possible even if you do not base yourbackup and recovery strategy on RMAN, RMAN-based block media recovery can be performed more quicklyand with less effort . REF.: Oracle(r) Backup and Recovery Advanced User's Guide, 2-2 and 2-5

QUESTION 154After changing the PCTFREE value of the automatic space management table EMPLOYEES, which task canyou perform in order for your change to take effect immediately?

A. Execute a full table scan of the EMPLOYEES tableB. Execute thecommand ANALYZE TABLE employees COMPUTE STATISTICSC. Execute the command DBNS_STATS.GATHER_TABLE_STATISTICS on the EMPLOYEES table.D. Execute the DBMS_REPAIR.SEGMENT_FIX_STATUS procedure on the EMPLOYEES table.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:

QUESTION 155What is true regarding a shared, server-side parameter file for a Real Application Cluster database?

A. It can contain parameters with distinct values for each instanceB. It can contain only parameters with identical values for each instanceC. It must contain an IFILE parameter for each instance's individual parameters file.D. It must be located in the default location for the primary instance's parameter file.

Page 78: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 156What are three benefits provided by the enhanced Unicode support? (choose three)

A. support for the AL24UTFFSS character setB. support for fixed-width character encodingC. Unicode support in the database character setD. Richer support for more character sets languages and territories

Correct Answer: BCDSection: (none)Explanation

Explanation/Reference:Globalization and Unicode support have been enhanced in Oracle Database 10 g Release2. Consistent linguistic ordering support has been added for all SQL functions, enhancing the ability to writeinternationalized applications without regard to locale. The Globalization Development Kit (GDK) for PL/SQLprovides new locale mapping tables and Japanese transliteration support. SQL Regular Expression support hasbeen updated to support key Perl conventions used in the Life Science community. This release also supportsthe latest version of Unicode 4.0. Identification of potential problems when migrating to another databasecharacter set has also been enhanced. The Character Set Scanner (CSSCAN) now offers selective scanningand provides support for new data types. The Language and Character Set Scanner (LCSSCAN) has improveddetection quality of shorter text strings and now supports HTML files.REF.: Oracle(r) Database New Features Guide, 1-2

QUESTION 157Online table redefinition includes which three features?

A. Tables without primary keys are supportedB. Parallel support can be added or removedC. Storage parameters for the table can be modified.D. The redefinition can be done across different schemas.E. User-defined data types BFILES or LONG columns are supportedF. Organization can be changed from heap-organized to IOT structure or vice versa

Correct Answer: BCFSection: (none)Explanation

Explanation/Reference:Online table redefinition enables you to:? Modify the storage parameters of a table or cluster (C) ? Move a table or cluster to a different tablespace inthe same schema ? Add, modify, or drop one or more columns in a table or cluster ? Add or drop partitioningsupport (non-clustered tables only) ? Change partition structure? Change physical properties of a single table partition, including moving it to a different tablespace in the sameschema? Change physical properties of a materialized view log or an Oracle Streams Advanced Queueing queue table? Add support for parallel queries (B)? Re-create a table or cluster to reduce fragmentation ? Change the organization of a normal table (heaporganized) to an index-organized table, or do the reverse .(F)? Convert a relational table into a table with object columns, or do the reverse. ? Convert an object table into a

Page 79: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

relational table or a table with object columns, or do the reverse.REF.: Oracle(r) Database New Features Guide, 15-22

QUESTION 158View the Exhibit and examine the Data Pump architecture.

Identify the numbered Components.

A. 1-Oracle Loader, 2-Oracle Data Pump, 3-Direct Path APIB. 1-Oracle Data Pump, 2-Direct Path API 3-Oracle LoaderC. 1-Direct Path API 2-Oracle Loader,3-Oracle data pumpD. 1-Oracle Loader, 2-Direct Path API, 3-Oracle Data PumpE. 1-Oracle Data Pump, 2-Oracle Loader 3-Direct Path API

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 159Examine this statement, which creates a Cartesian product of the COUNTRIES and REGION tables:SQL> SELECT C.COUNTRY_name.2> r.region_name3> FROM countries c, region r;Oracle SQL 1999syntax supports the same functionality with which join type?

A. EquijoinB. Cross joinC. Merge joinD. Natural join

Correct Answer: BSection: (none)Explanation

Page 80: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation/Reference:

QUESTION 160Which data dictionary view would you query to find the name of the default permanent tablespace of thedatabase?

A. DICTIONARYB. DBA_TABLESPACSC. DBA_DIRECTORIESD. DBA_STORED_SETTINGSE. DATABASE_PROPERTIESF. DBA_TABLESPAC_GROUPS

Correct Answer: ESection: (none)Explanation

Explanation/Reference:SQL*Plus: Release 10.2.0.1.0 - Production onMon Feb6 21:41:04 2006 Copyright (c) 1982, 2005, Oracle. Allrights reserved.SQL> conn / as sysdbaConnected.SQL> desc DATABASE_PROPERTIESName Null? Type----------------------------------------- -------- -------------------- PROPERTY_NAME NOT NULL VARCHAR2(30)PROPERTY_VALUE VARCHAR2(4000)DESCRIPTION VARCHAR2(4000)SQL> SELECT PROPERTY_NAME, PROPERTY_VALUE2 FROM DATABASE_PROPERTIES3 WHERE PROPERTY_NAME = 'DEFAULT_PERMANENT_TABLESPACE'; PROPERTY_NAMEPROPERTY_VALUE---------- ----------------------------DEFAULT_PERMANENT_TABLESPACE USERS

QUESTION 161The list below display four step that you need to execute in order to switch from the primary database role to thestandby database role.Choose the correct order of execution for the steps;1.Shut down and start up the former primary instance without mounting the database.2.Issue the ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY command.3.Issue the ALTER DATABASE MOUNT STANDBY DATABASE comman. 4.End read or update activity on theformer primary and standby database.

A. 1,2,3,4B. 3,2,4,1C. 4,2,1,3D. 4,3,2,1

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Stop read or update activity on the primary and standby databases. You must have exclusive database accessbefore beginning a switchover. Ask users to log off the primary and standby databases, or query the

Page 81: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

V$SESSION view to identify users that are connected to the databases and close all open sessions except theSQL*Plus session from which you are going to execute the switchover statement. Switch the primary databaseto the physical standby role. On the primary database (in New York), execute the following statement:SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY 2> WITH SESSIONSHUTDOWN;This statement does the following:? Closes the primary database, terminating any active sessions ? Transmits any unarchived redo log files andapplies them to the standby database ? Adds an end-of-redo marker to the header of the last log file beingarchived ? Creates a backup of the current control file? Converts the current control file into a standby control file Shut down and start up the former primary instance,and mount the database. Execute the following statement on the former primary database:SQL> SHUTDOWN NORMAL;SQL> STARTUP MOUNT;Switch the original standby database to the primary role.Issue the following SQL statement:SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARYDATABASE;REF.: Oracle(r) Data Guard Concepts and Administration 10g Release 2 (10.2), 12-39

QUESTION 162You decided to activate the resumable space allocation feature for all your database users by enabling thefeature in a logon trigger.This causes a statement that requires space beyond a user's quota________

A. to wait indefinitely for the quota to be increased, regardless of the timeout setting for other space allocationproblem

B. to fail because quota limits do not activate the resumable space allocation featureC. to wait in a suspended state until the quota increased or until the timeout value is reachedD. to invoke the default trigger that resets user quota, if there is free space in the related tablespace

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 163Which statements are true regarding the new Persistent CONFIGURATION FEATURE IN RMAN? (Choosetwo)

A. It allows you to set the retention period of backups.B. It remember the last backup command you used so that you can rescheule it easily.C. It enables you to store your channel attribute settings in the Recovery catalog with each script.D. It enables you to store the settings for channel attributes so that you do not have to specify them in each

backup o restore command

Correct Answer: ADSection: (none)Explanation

Explanation/Reference:When implementing an RMAN-based backup strategy, you can use RMAN more effectively if you understandthe more common options available to you. Many of these can be set in the RMAN environment on a persistentbasis, so that you do not have to specify the same options every time you issue a command.To simplifyongoing use of RMAN for backup and recovery, the RMAN lets you set a number of persistent configurationsettings for each target database. These settings control many aspects of RMAN's behavior when working withthat database, such as backup retention policy, default destinations for backups to tape or disk, default backup

Page 82: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

device type (tape or disk), and so on.REF.: Oracle(r) Backup and Recovery Basics 10g Release 2 (10.2), 3-7 and 3-8

QUESTION 164Which four statements regarding the block change track file are correct?

A. The minimum size of this file is 10MBB. The maintenance of this file is fully automatic.C. The changed block are tracked in this fils as redo is generatedD. The location of this file must be different from that of the database files.E. The Oracle database records block change information in this file by default

Correct Answer: ABCESection: (none)Explanation

Explanation/Reference:- True. Should say "start" not "minimum".The size of the change tracking file is proportional to the size of thedatabase and the number of enabled threads of redo. The size is not related to the frequency of updates to thedatabase. Typically, the space required for block change tracking is Overview of Reporting on Backups and theRMAN Repository approximately 1/30,000 the size of the data blocks to be tracked. Note, however, thefollowing two factors that may cause the file to be larger than this estimate suggests:? To avoid overhead of allocating space as your database grows, the change tracking file size starts at 10MB,and new space is allocated in 10MB increments; ? For each datafile, a minimum of 320K of space is allocatedin the change tracking file, regardless of the size of the file.B - True. Change tracking is disabled by default, because it does introduce some minimal performanceoverhead on your database during normal operations. Although RMAN does not support backup and recoveryof the change-tracking file itself, if the whole database or a subset needs to be restored and recovered, thenrecovery has no user-visible effect on change tracking. After the restore and recovery, the change tracking fileis cleared, and starts recording block changes again. The next incremental backup after any recovery is able touse change-tracking data. C - True. Changed blocks are tracked by the CTWR background process as redo isgenerated. Database incremental backups, automatically use the change tracking file; D - False. By default, thechange tracking file is created as an Oracle managed file in DB_CREATE_FILE_DEST. You can also specifythe name of the block change tracking file, placing it in any location you choose. You can also change thelocation of the change tracking file while preserving its contents.E - True. One change tracking file is created for the whole database. RMAN's change tracking feature forincremental backups improves incremental backup performance by recording changed blocks in each datafilein a change tracking file. REF.: Oracle(r) Backup and Recovery Basics 10g - BASICS , 4-19, 4-20 and 4-21

QUESTION 165What must you do to enable Automated SQL Execution Memory Magement?

A. Execute the DBMS_STATS.GATHER_SYSTEM_STATES procedure with appropriate valuesB. Set the instance parameters PGA_AGGREGATE_TARGET and

WORKAREA_SIZE_POLICY to appropriate values.C. Set the instance parameters SORT_AREA_SIZE,BITMAP_MERGE_AREA_SIZE,

CREATE_BITMAP_AREA-SIZE,HASH_AREA_SIZE,SORT_AREA_SIZE, andSORT_AREA_RETAINED_SIZE, all to Auto.

D. Unset the instance parameters SORT_AREA_SIZE,BITMAP_MERGE_AREA_SIZE, CREATE_BITMAP_AREA_SIZE,HASH_AREA_SIZE,SORT_AREA_SIZE, and SORT_AREA_RETAINED_SIZE.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

Page 83: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

The automatic SQL execution memory management feature is enabled by setting the parameterWORKAREA_SIZE_POLICY to AUTO and by specifying a size of PGA_AGGREGATE_TARGET in theinitialization file.REF.: Metalink Note :262946.1

QUESTION 166You added the following policy to enable managers to access information about only their employees:EXEC DBMS_RLS.ADD_POLICY (object_schema => 'scott',object_name => 'emp',policy_name => 'hr_policy',fuction_schema => 'scott',policy_function => 'hrpol',sec_relevant_cols => 'sal,comm') ;hr_policy is of the____________type.

A. DBMS_RLS.STATICB. DBMS_RLS.DYNAMICC. DBMS_RLS.SHARED_STATICD. DBMS_RLS.CONTEXT_SENSITIVEE. DBMS_RLS.SHARED_CONTEXT_SENSITIVE

Correct Answer: BSection: (none)Explanation

Explanation/Reference:A dynamic predicate for a table, view, or synonym is generated by a PL/SQL function, which you write andassociate with a security policy through a PL/SQL interface. Dynamic predicates are acquired at statementparse time, when the base table or view is referenced in a query using SELECT or a DML statement. Thefunction or package that implements the security policy you create returns a predicate (a WHERE condition).This predicate controls access according to the policyyou specify. Rewritten queries are fully optimized and shareable. Whenever the EMPLOYEES table, under theHR schema, is referenced in a query or subquery (SELECT), the server calls the EMP_SEC function (under theHR schema). This function returns a predicate (called P1) defined in the function, which in this example couldbe specific to the current user for the HR_POLICY policy.REF.: Oracle(r) 10g Security Guide 6-4

QUESTION 167You want to implement ASM for the existing database instances and define the following parameters in theparameter file of the ASM instance.DB_UNIQUE_NAME = +ASMASM_POWER_LIMIT = 1ASM_DISKSTRING = '/dev/dsk/*s2','´/dev/dsk/c1*'ASM_DISKGROUPS = dgroupA, dgroup BLARGE_POOL_SIZE = 8MBWhile starting the ASM interface, you get the following error message:ORA-15021: parameter "asm_diskstring" is not valid in RDBMS instance.And the instance startup fails.What causes the instance startup to fail?

A. ASM:DISKGROUPS cannot have two values.B. LARGE_POOL_SIZE should be set to lower value.C. ASM_POWER_LIMIT should be set to higher value.D. DB_NAME parameter should have been defined add set to ASME. INSTANCE_TYPE parameter should have been defined add set to ASMF. AMS_DISKSTRING parameter should not contain any wildcard characters.

Page 84: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Correct Answer: ESection: (none)Explanation

Explanation/Reference:Some initialization parameters are specifically relevant to an ASM instance. Of those initialization parametersintended for a database instance, only a few are relevant to an ASM instance. You can set those parameters atdatabase creation time using Database Configuration Assistant or later using Enterprise Manager. TheINSTANCE_TYPE parameter must be set to ASM. This is the only required parameter. All other parameterstake suitable defaults for most environments.REF.: Oracle(r) 10g Administrator Guide, 12-8

QUESTION 168What does the DBMS_WM.GETWORKSPACE function return?

A. the name of your current workspaceB. a comma-delimited list of all the workspaces in the database.C. a comma-delimited list of all the users assigned to the current workspaceD. a comma-delimited list of all the workspaces to which you have been assigned

Correct Answer: ASection: (none)Explanation

Explanation/Reference:GetWorkspaceReturns the current workspace for the session.FormatDBMS_WM.GetWorkspace() RETURN VARCHAR2;ParametersNone.Usage NotesNone.ExamplesThe following example displays the current workspace for the session.SELECT DBMS_WM.GetWorkspace FROM DUAL;GETWORKSPACEB_focus_2REF.: Oracle(r) 10g Application Developer's Guide - Workspace Manager, 4-69

QUESTION 169What is true a bout version-enabled tables?

A. the unit of versioning is the schema.B. It is possible to version enable a table pertaining to SYSC. There are as many segment as versions for the same base table.D. It is possible to create workspaces if there is no version-enabled table in the database

Correct Answer: DSection: (none)Explanation

Explanation/Reference:

QUESTION 170Which two statements regarding a SQL profile are true? (Choose two)

Page 85: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

A. it is built by automatic Tuning Optimizer.B. It cannot be stored persistently in the data dictionary.C. It can be used by the query optimizer automatically.D. It can be created manually by using the CREATE PROFILE command

Correct Answer: ACSection: (none)Explanation

Explanation/Reference:The query optimizer can sometimes produce inaccurate estimates about an attribute of a statement due to lackof information, leading to poor execution plans. Traditionally, users have corrected this problem by manuallyadding hints to the application code to guide the optimizer into making correct decisions. For packagedapplications, changing application code is not an option and the only alternative available is to log a bu with theapplication vendor and wait for a fix. Automatic SQL Tuning deals with this problem with its SQL Profilingcapability. The Automatic Tuning Optimizer creates a profile of the SQL statement called a SQL Profile,consisting of auxiliary statistics specific to that statement. The query optimizer under normal mode makesestimates about cardinality, selectivity, and cost that can smetimes be off by a significant amount resulting inpoor execution plans .REF.: Oracle(r) Database 10g Performance Guide , 12-2

QUESTION 171Oracle provides a database package called dbms_redefinition to perform an online rebuild of a table.Which two steps are you recommended to do prior to issuing the dbms _redefinition.start_redef_tableprocedure call? (Choose two)

A. grant privileges on the interim tableB. invoke the dbms_redefinition.can_redef_table procedureC. invoke the dbms_redefinition.sync_interim_table procedureD. create any triggers, indexes, or constraints on the interim tableE. create an empty interim table with all the desired characteristics

Correct Answer: BESection: (none)Explanation

Explanation/Reference:To perform online redefinition of a table with the DBMS_REDEFINITION package:1. Choose the redefinition method: by key or by rowid2. Verify that the table can be online redefined by invoking the CAN_REDEF_TABLE procedure.(B)3. Create an empty interim table (in the same schema as the table to be redefined) with all of the desired logicaland physical attributes. (E)4. Start the redefinition process by calling START_REDEF_TABLE, providing the following:? The schema and table name of the table to be redefined ? The interim table name? A column mapping string that maps the columns of table to be redefined tothe columns of the interim table? The redefinition method.If not specified, the default method of redefinition (using keys) is assumed.? Optionally, the columns to be used in ordering rows? If redefining only a single partition of a partitioned table, the partition name5. Copy dependent objects (such as triggers, indexes, grants, and constraints) and statistics from the tablebeing redefined to the interim table,6. Execute the FINISH_REDEF_TABLE procedure to complete the redefinition of thetable.REF.: Oracle(r) 10g Administrator Guide, 15-22

QUESTION 172Users complain that SQL statements using a particular index fail Using DBVERIFY, you find that two separateblocks in the index have become corrupt. The database data files for user data and index are very large. What

Page 86: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

is the least disruptive recovery strategy available in Oracle 10g?

A. Rebuild the index using the online optionB. Take the individual data file offline (not the whole tablespace), restore and recover the data file from backup

with RMAN, then set the data file online againC. Without setting the individual data file offline, use RMAN with Block Media Recovery to restore and recover

only those blocks.D. Take the individual data file (not the whole tablespace) offline, use RMAN with Block Media Recovery to

restore and recover only those blocks, then set the data file online again

Correct Answer: CSection: (none)Explanation

Explanation/Reference:If a small number of blocks within one or more datafiles are corrupt, you can perform bl ock media recoveryinstead of restoring the datafiles from backup and performing complete media recovery of those files. TheRecovery Manager BLOCKRECOVER command can be used to restore and recover specified data blockswhile the database is open and the corrupted datafile is online.REF.: Oracle(r) 10g Backup and Recovery Guide, 2-5

QUESTION 173When you are performing a backup, the Flash Recovery Area is low on free space. Under which twocircumstances would warnings be issued to you? (Choose two.)

A. When the used space is at 85%, a warning is issued.B. When the used space is at 90%, a warning is issued.C. When the used space is at 95%, a warning is issued.D. When the used space is at 95%, a critical warning is issued.E. When the used space is at 99%, a critical warning is issued.F. When the used space is at 97%, a critical warning is issued.

Correct Answer: AFSection: (none)Explanation

Explanation/Reference:By default a server-generated alert is generated for tablespace space usage when the percentage of spaceusage exceeds either the 85%warning or 97% critical threshold level.REF.: Oracle(r) 10g Administrator Guide, 4-19

QUESTION 174You want the database to send an e-mail to the senior database administrator whenever the Warning thresholdfor the Database CPU time metric is reached. Which option would you use to accomplish this activity?

A. the DBMS_MAIL packageB. the DBMS_PIPE packageC. the DBMS_HTTP packageD. the DBMS_ALERT packageE. the Database Control page

Correct Answer: ESection: (none)Explanation

Page 87: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation/Reference:Use Database Control for Database Management to manage your database locally. If you choose this option,you can additionally check Enable Email Notifications for Oracle to e-mail you alerts regarding potentialproblems, and check Enable Daily Backup.REF.: Oracle(r) 10g Database 2 Day DBA, 2-8

QUESTION 175Identify three key features of Oracle Data Pump (Choose three.)

A. Data Pump can stop a running job and resume it laterB. Data Pump can perform import using database linkC. Data Pump uses absolute path instead of relative pathD. Data Pump uses relative path instead of absolute pathE. Data Pump can perform incremental and cumulative exports

Correct Answer: ABDSection: (none)Explanation

Explanation/Reference:? The ability to restart Data Pump jobs. The START_JOB command restarts the current job to which you areattached (the job cannot be currently executing). The job is restarted with no data loss or corruption after anunexpected failure or after you issued a STOP_JOB command, provided the dump file set and master tablehave not been altered in any way.? The NETWORK_LINK parameter initiates an export using a database link. This means that the system towhich the expdp client is connected contacts the source database referenced by the source_database_link,retrieves data from it, and writes the data to a dump file set back on the connected system.? When data is moved, Data Pump automatically uses either direct path load (or unload) or the external tablesmechanism, or a combination of both.REF.: Oracle(r) 10g Database Utilities ,1-2 and 1-3

QUESTION 176Which two statements are true regarding the use of UTF-16 encoding? (Choose two.)

A. enables easier loading of multinational dataB. uses a fixed-width multibyte encoding sequenceC. Asian characters are represented in three charactersD. uses a variable-width multibyte encoding sequenceE. European characters are represented in one or two bytes

Correct Answer: ABSection: (none)Explanation

Explanation/Reference:

QUESTION 177When WORKAREA_SIZE_POLICY is set to AUTO, the work areas are sized to accomplish which two goals?(Choose two)

A. To tune memory using the existing *_AREA_SIZE parametersB. To allocate memory to work areas in order to optimize throughput onlyC. To allocate memory to work areas in order to optimize response time onlyD. To allocate memory to work areas in order to optimize both throughput and response timeE. To ensure that the overall size of the PGA will never exceed the value of PGA_AGGREGATE_TARGET

Page 88: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Correct Answer: DESection: (none)Explanation

Explanation/Reference:

QUESTION 178Oracle 10g supports the creation of constraints on views. Which constraint states are supported?

A. enforcedB. EXCEPTIONS INTO clauseC. [RELY|NORELY] DISABLE NOVALIDATED. ON DELETE actions for foreign key constraints

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 179Which three attributes of the LOG_ARCHIVE_DEST_n initialization parameter control the data availability modeof a Data Guard standby database? (Choose three.)

A. SYNC or ASYNC to specify that network I/O is to be done synchronously or asynchronouslyB. LGWR or ARCH to specify the process that will perform archival operationsC. AFFIRM or NOAFFIRM to control whether log archiving disk write operations are to be performed

synchronously or asynchronously.D. VERIFY and NOVERIFY to verify the correctness of the contents of a completed archived redo log file

Correct Answer: ABCSection: (none)Explanation

Explanation/Reference:The attributes of the LOG_ARCHIVE_DEST_n initialization parameter. The following list shows the attributes:* AFFIRM and NOAFFIRM (C) Controls whether redo transport services use synchronous or asynchronous I/Otowrite redo data to disk* ALTERNATE* ARCH and LGWR (B) Specifies whether redo transport services use archiver processes (ARCn) or the logwriter process (LGWR) to collect transaction redo data and transmit it to standby destinations. If neither theARCH or LGWR attributes are specified, the default is ARCH.* DB_UNIQUE_NAME* DELAY* DEPENDENCY* LOCATION and SERVICE* MANDATORY and OPTIONAL* MAX_CONNECTIONS* MAX_FAILURE* NET_TIMEOUT* NOREGISTER* REOPEN* SYNC and ASYNC (A) Specifies that network I/O is to be done synchronously (SYNC) or asynchronously(ASYNC) when archival is performed using the log writer process (LGWR).

Page 89: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

* TEMPLATE* VALID_FOR* VERIFYREF.: Oracle(r) Data Guard Concepts and Administration 10g Release 2 (10.2), 14-1

QUESTION 180What does the Metadata Application Programming Interface (API) allow you to do?

A. repair damaged data dictionary entriesB. delete data dictionary information about database objects you n o longer needC. extract data definition commands from the data dictionary in a variety of formatsD. prepare pseudocode modules for conversion to Java or PL/SQL programs with a Metadata code generator

Correct Answer: CSection: (none)Explanation

Explanation/Reference:When you fetch metadata for an object, you may want to use it to re-create the object in a different database orschema. You may not be ready to make remapping decisions when you fetch the metadata. You may want todefer these decisions until later. To accomplish this, you fetch the metadata as XML and store it in a file ortable. Later you can use the submit interface to re-create the object.The submit interface is similar in form to the retrieval interface. It has an OPENW procedure in which youspecify the object type of the object to be created. You can specify transforms, transform parameters, andparse items. You can call the CONVERT function to convert the XML to DDL, or you can call the PUT functionto both convert XML to DDL and submit the DDL to create the object.REF.: Oracle(r) Database Utilities, 18-10

QUESTION 181What is true if you want to switch undo tablespaces from the current one, called UND01, to a new one calledUND02?

A. It is NOT possible to switch unless no active transaction exists in UND01B. It is possible to switch to UND02,but current active transactions will abortC. It is possible to switch to UND02; current active transmissions will be automatically migrated to UND02D. It is possible to switch to to UND02; only current active transactions will continue to execute insideUND01

Correct Answer: DSection: (none)Explanation

Explanation/Reference:The switch operation does not wait for transactions in the old undo tablespace to commit. If there are anypending transactions in the old undo tablespace, the old undo tablespace enters into a PENDING OFFLINEmode (status). In this mode, existing transactions can continue to execute, but undo records for new usertransactions cannot be stored in this undo tablespace.An undo tablespace can exist in this PENDING OFFLINE mode, even after the switch operation completessuccessfully. A PENDING OFFLINE undo tablespace cannot be used by another instance, nor can it bedropped. Eventually, after all active transactions have committed, the undo tablespace automatically goes fromthe PENDING OFFLINE mode to the OFFLINE mode. From then on, the undo tablespace is available for otherinstances (in an Oracle Real Application Cluster environment).REF.: Oracle(r) 10g Administrator Guide, 10-9

QUESTION 182In Oracle 10g, the LogMiner allows storage of a copy of the data dictionary in .....(Choose all that apply.)

A. a database file

Page 90: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

B. the control fileC. the online redo log filesD. the supplemental log fileE. an operating system flat file

Correct Answer: BCESection: (none)Explanation

Explanation/Reference:LogMiner requires a dictionary to translate object IDs into object names when it returns redo data to you.LogMiner gives you three options for supplying the dictionary:- Using the Online CatalogOracle recommends that you use this option when you will have access to the source database from which theredo log files were created and when no changes to the column definitions in the tables of interest areanticipated. This is the most efficient and easy-to-use option.- Extracting a LogMiner Dictionary to the Redo Log Files Oracle recommends that you use this option when youdo not expect to have access to the source database from which the redo log files were created, or if youanticipate that changes will be made to the column definitions in the tables of interest.- Extracting the LogMiner Dictionary to a Flat FileThis option is maintained for backward compatibility with previous releases. This option does not guaranteetransactional consistency. Oracle recommends that you use either the online catalog or extract the dictionaryfrom redo log files instead.REF.: Oracle(r) Database Utilities, 17-5

QUESTION 183Which three statements are true about the privileged connection options available in Oracle 10g? (Choosethree.)

A. The CONNECT INTERNAL is disallowedB. The Server Manager tool is no longer suppliedC. The listener must be running to make a connectionD. The use of a remote password login file (orapwd) is unchanged

Correct Answer: ABDSection: (none)Explanation

Explanation/Reference:

QUESTION 184Consider this syntax :MERGE INTO t1USING t2 ON (join predicate)?.What does the MERGE syntax do?

A. It performs a merge join of the row from T2 only if it doesn't exist in the T1 tableB. It creates a natural join of tables T1 and T2 for all columns that have the same nameC. It creates a Cartesian product of table T1 and table T2 for all columns that have the same nameD. For each row from T2, it updates the row if it exists within table T1, otherwise it inserts the row into T1

Correct Answer: DSection: (none)Explanation

Page 91: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Explanation/Reference:

QUESTION 185The new time and date data types support greater precision for capturing fractional seconds and time zoneinformation. This gives the Oracle database greater flexibility in supporting locality preferences.What is the default degree of precision of fractional seconds when specifying the TIMESTAMP data type?

A. 6 digitsB. 9 digitsC. 12 digitsD. 22 digits

Correct Answer: ASection: (none)Explanation

Explanation/Reference:TIMESTAMP[(precision)]where the optional parameter precision specifies the number of digits in the fractional part of the seconds field.You cannot use a symbolic constant or variable to specify the precision; you must use an integer literal in therange 0 .. 9. The default is 6. REF.: Oracle(r) PL/SQL User's Guide and Reference, 3-13

QUESTION 186What are three characteristics of the Data Guard Broker? (Choose three.)

A. It runs as a process called DMONB. It can be controlled through the Data Guard Manager GUI and command-line interfaceC. It is started by setting the DRS_START parameter to TRUE in your initialization fileD. It uses a configuration file stored on the primary database server and, optionally, on one of your standby

database servers

Correct Answer: ABCSection: (none)Explanation

Explanation/Reference:A - TRUE.The Data Guard monitor process (DMON) is an Oracle background process that runs for every databaseinstance that is managed by the broker. When you start the Data Guard broker, a DMON process is created.B - TRUE. You can perform all management operations locally or remotely through the broker's easy-to-useinterfaces: the Data Guard management pages in Oracle Enterprise Manager, which is the broker's graphicaluser interface (GUI), and the Data Guard command-line interface called DGMGRL.Obs.: The right parameter should be DG_BROKER_START. The DRS_START initialization parameter hasbeen deprecated in favor of the new parameter DG_BROKER_START, since 9iR2 (Metalink Note: 208768.1)C - TRUE. The DG_BROKER_START initialization parameter must be set to TRUE for each database to startthe DMON processes. By default, the DG_BROKER_START initialization parameter is set to FALSE. However,you can set the value in the following ways:* If you are using Oracle Enterprise Manager, it automatically sets the DG_BROKER_START initializationparameter to TRUE for new standby databases that it creates.* If you are using DGMGRL, you must explicitly set the DG_BROKER_START initialization parameter to TRUE;otherwise, the DMON process will not start. You can set the DG_BROKER_START initialization parameter withthe following SQLstatement:SQL> ALTER SYSTEM SET DG_BROKER_START=TRUE;D - FALSE. The DG_BROKER_START initialization parameter must be set to TRUE for each databaseREF.: Oracle(r) Data Guard Broker, 1-10, 1-2 and 3-6

Page 92: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

QUESTION 187Which three parameters are ignored when creating an automatic space management segment? (Choosethree.)

A. PCTFREEB. PCTUSEDC. INITRANSD. MAXTRANSE. FREELISTS change it to FREELISTF. FREELIST GROUP

Correct Answer: BEFSection: (none)Explanation

Explanation/Reference:Automatic segment-space management in locally managed tablespaces eliminates the need to specify thePCTUSED, FREELISTS, and FREELIST GROUPS parameters. If possible, switch from manual spacemanagement to automatic segment-space management (ASSM).REF.: Oracle(r) Database 10g Performance Guide , 10-19

QUESTION 188Which four are true when implementing automatic segment-space management? (Choose four.)

A. You can specify automatic segment-space management only for permanent, locally managed tablespacesB. Specification of automatic management is at the tablespace levelC. Free and used space is tracked with bitmaps rather than free listsD. Automatic segment-space management simplifies space management within a segmentE. The PCTUSED, FREELISTS and FREELIST GROUPS parameters must be specified at table creation

Correct Answer: ABCDSection: (none)Explanation

Explanation/Reference:

QUESTION 189An Oracle flashback view can be enabled__________.

A. At the session levelB. At the system levelC. by any valid database userD. during execution of a transaction provided it involves only NOLOGGING operations

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 190Which statement correctly describes setup of a server-persistent parameter file (SPFILE) when used with RealApplication Clusters?

Page 93: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

A. One SPFILE, created from a text parameter file (PFILE), is required for each instanceB. You must create a separate text parameter file (PFILE) for each instance and merge them with the

CREATIVE SPFILE FROM PFILE= ( list of files); command to create one common SPFILEC. You can add the instance-specific parameters to a common SPFILE with the ALTER SYSTEM ?

SCOPE=SPFILE SID=name ; command.D. One common SPFILE is required for all instances; it has a parameter INSTANCE_name_SPFILE, which in

turn points to the instance-specific SPFILE

Correct Answer: CSection: (none)Explanation

Explanation/Reference:All instances in the cluster database use the same SPFILE at startup. Oracle recommends, you to use oneshared server parameter file (SPFILE) with instance-specific entries. For example, you assign undotablespaces in your RAC database by specifying a different value for the UNDO_TABLESPACE parameter foreach instance in your SPFILE or individual PFILEs.REF.: Oracle(r) 10g Database Oracle Clusterware and Oracle Real Application Clusters Guide, 5-7

QUESTION 191Which command meets these two criteria?1 Runs the backup at full speed2 Either finishes the task in the allotted time, or terminates Recovery Manager (RMAN) with an error if it fails tofinish the task in the allotted time.

A. RMAN> BACKUP AS COPY DURATION 3:00 MINIMIZE LOAD DATABASE;B. RMAN> BACKUP AS COPY DURATION 3:00 MINIMIZE TIME DATABASE;C. RMAN> BACKUP AS COPY DURATION 3:00 PARTIAL MINIMIZE LOAD DATABASE;D. RMAN> BACKUP AS COPY DURATION 3:00 PARTIAL MINIMIZE TIME DATABASE;

Correct Answer: BSection: (none)Explanation

Explanation/Reference:By default, when a BACKUP... DURATION command runs out of time before the backup completes, RMANreports an error. (The effect of this is that if the command is running in a RUN block, the RUN blockterminates.) You can control this behavior by adding the PARTIAL option to the BACKUP... DURATIONcommand, as in this example:BACKUP DURATION 4:00 PARTIAL TABLESPACE users FILESPERSET 1; When PARTIAL is used, no erroris reported when a backup command is interrupted due to the end of the backup window. Instead, a messageshowing which files could not be backed will be displayed. If the BACKUP command is part of a RUN block,then the remaining commands in the RUN block will continue to execute. When using DURATION you can runthe backup with the maximum possible performance, or run as slowly as possible while still finishing within theallotted time, to minimize the performance impact of backup tasks. To extend the backup to use the full timeavailable, use the MINIMIZE LOAD option,REF.: Oracle(r) 10g Backup and Recovery Guide, 2-40 and 2-41

QUESTION 192Exhibit:

Page 94: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Which two statements regarding the result of the query shown in the Exhibit are correct? (Choose two.)

A. The LAST_SCN value in the first row is NULL which means that version of the row still exists at SCN6636300

B. The LAST_SCN value in the second row is NULL which means that version of the row still exists at SCN6636300

C. The LAST_SCN value in the second row is NULL which means that version of the row no longer existsbecause it was deleted

D. The LAST_SCN value in the third row is 6636280 which means that version of the row exists above SCN6636280

Correct Answer: ACSection: (none)Explanation

Explanation/Reference:VERSIONS_STARTSCN or VERSIONS_STARTTIMEStarting SCN and TIMESTAMP when row took on this value. The value of NULL is returned if the row wascreated before the lower bound SCN or TIMESTAMP.VERSIONS_ENDSCN or VERSIONS_ENDTIMEEnding SCN and TIMESTAMP when row last contained this value. The value of NULL is returned if the value ofthe row is still current at the upper bound SCN ot TIMESTAMP.VERSIONS_XID - ID of the transaction that created the row in it's current state. VERSIONS_OPERATION -Operation performed by the transaction ((I)nsert, ( U)pdate or (D)elete)REF.: Metalink Note:270270.1 - Flashback Version Query & Flashback Transaction Query - Oracle 10GEnhancement

QUESTION 193A query on the sales table returned the following error:Tue May 11 07:05:40 2004Some indexes or index [sub]partitions of tableSCOTT. SALES have been marked unusable.Which statement caused this error to be returned when you issued the query?

Page 95: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

A. DELETE FROM sales;B. UPDATE sales SET prod_status='sold' WHERE prod_cat='pens';C. ALTER TABLE sales MOVE PARTITIONsal_ql TABLESPACE EXAMPLE;D. ALTER TABLE sales MOVE PARTITION sal_q1 TABLESPACE EXAMPLE UPDATE INDEXES;

Correct Answer: CSection: (none)Explanation

Explanation/Reference:The statement ALTER TABLE sales MOVE PARTITION sal_q1 TABLESPACE EXAMPLE, won't have aUPADATE INDEXES clause. By default, many table maintenance operations on partitioned tables invalidate(mark UNUSABLE) the corresponding indexes or index partitions. You must then rebuild the entire index or, inthe case of a global index, each of its partitions. The database lets you override this default behavior if youspecify UPDATE INDEXES in your ALTER TABLE statement for the maintenance operation. Specifying thisclause tells the database to update the index at the time it executes the maintenance operation DDL statement.REF.: Oracle(r) 10g Administrator Guide, 17-24

QUESTION 194You set SGA parameters in your database as:DB_CACHE_SIZE=24MBJAVA_POOL_SIZE=48MBSHARED_POOL_SIZE=96MBYou plan to upgrade to Oracle Database 10g. You need to provide an additional 20 MB memory space toaccommodate internal overhead allocations for metadata.Which SGA parameter(s) would you modify?

A. change JAVA_POOL SIZE to 68MBB. change DB_CACHE_SIZE to 44MBC. change SHARED_POOL_SIZE to 116MBD. change JAVA_POOL_SIZE to 58MB and DB_CACHE_SIZE to 34MBE. change SHARED_POOL_SIZE to 106MB and DB_CACHE_SIZE to 34MB

Correct Answer: CSection: (none)Explanation

Explanation/Reference:The SHARED_POOL_SIZE initialization parameter is a dynamic parameter that lets you specify or adjust thesize of the shared pool component of the SG A. Oracle Databaseselects an appropriate default value. Starting with Oracle Database 10 g Release 1, the size of internal SGAoverhead is included in the user-specified value of SHARED_POOL_SIZE. In other words, if you are not usingthe automatic shared memory management feature, then the amount of shared pool memory that is allocatedat startup is exactly equal to the value of SHARED_POOL_SIZE initialization parameter. In manual SGA mode,this parameter must be set so that it includes the internal SGA overhead in addition to the desired value ofshared pool size.REF.: Oracle(r) 10g Administrator Guide, 2-31

QUESTION 195What does the Character Set Scanner command line utility do?

A. reports only on any Unicode character conversions requiredB. performs character set conversions to the new specified charactersetC. scans on any character set conversion required, then converts the dataD. checks for any character definitions that will fail conversion to the new characterset

Page 96: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Correct Answer: DSection: (none)Explanation

Explanation/Reference:The character set scanner (csscan) allows the users to evaluate the impact of migrating an existing database toa new character set or to check if a database contains codepoints outside the current character set (from V1.1onwards). The tool scans the data in the database including the data dictionary and provides an analysis of thecurrent data, highlighting data which will be converted when migrated to the new database character set orwhat data is incorrectly stored in the database.These findings are summarized in the database scan summaryreport and individual exception report. REF.: Metalink Note:179843.1Availability & versioning of the CharacterSet Scanner

QUESTION 196An AFTER SUSPEND system event trigger containing no exception handler is fired, and runs out of space afterinserting some audit records.Which two events happen? (Choose two.)

A. The trigger is abortedB. The trigger is recursively firedC. The original operation (the one that fired the trigger) continuesD. The original operation (the one that fired the trigger) is aborted

Correct Answer: ADSection: (none)Explanation

Explanation/Reference:Different parallel execution server processes may encounter one or more correctable errors. This may result infiring an AFTER SUSPEND trigger multiple times, in parallel. Also, if a parallel execution server processencounters a non-correctable error while another parallel execution server process is suspended, thesuspended statement is immediately aborted. If the user registered a trigger on the AFTER SUSPEND systemevent, the user trigger is executed. A user supplied PL/SQL procedure can access the error message datausing the DBMS_RESUMABLE package and the DBA_ or USER_RESUMABLE view.REF.: Oracle(r) 10g Administrator Guide, 14-9 and 14-10

QUESTION 197Automatic Consumer Group Switching is an important new feature of the Database Resource Manager.Which three plan directive parameters are used to control this feature? (choose three)

A. SWITCH_TIMEB. SWITCH_GROUPC. MAX_SESS_POOLD. SWITCH_ESTIMATE

Correct Answer: ABDSection: (none)Explanation

Explanation/Reference:The SWITCH_CONSUMMER_GROUP_FOR_SESS causes the specified session to immediately be movedinto the specified resource consumer group. In effect, this statement can raise or lower priority.SWITCH_GROUP : Specifies consumer group to which this session is switched if other switch criteria are met.If the group name is 'CANCEL_SQL', then the current call will be canceled when other switch criteria are met. Ifthe group name is 'KILL_SESSION', then the session will be killed when other switch criteria are met. Default isNULL. SWITCH_TIME : Specifies time (in seconds) that a session can execute before an action is taken.

Page 97: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Default in UNLIMITED. You cannot specify both SWITCH_TIME and SWITCH_TIME_IN_CALL.SWITCH_ESTIMATE : If TRUE, tells the database to use its execution time estimate to automatically switchtheconsumer group of an operation prior to beginning its execution. Default is FALSE.REF.: Oracle(r) 10g Administrator Guide, 24-17

QUESTION 198Which Oracle-supplied package is used by Data Pump Export and Import worker processes to load and unloadmetadata information?

A. DBMS_STREAMS_DATAPUMP_UTILB. DBMS_METADATA_UTILC. DBMS_METADATAD. DBMS_STREAMS_DATAPUMPE. DBMS_DATAPUMP

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 199Consider the following configuration: /devices/D1 is a member of disk group dgroupA . /devices/D2 is amember of disk group dgroupA . /devices/D3 is a member of disk group dgroupA . You plan to add a newdisk, /devices/D4, to the disk group dgroupA and execute the following command: SQL> ALTER DISKGROUPdgroupA ADD DISK '/devices/D*'; Which task would be accomplished by the command?

A. The command first detaches all the member disks starting with "D" and then reattaches all of them includingthe new disk.

B. The command adds the new disk, D4 , to the disk group.C. The command will be ignored because disks starting with "D" are already members of the disk group.D. The command would result in an error because there is no disk by the name " /devices/D* ".E. The command would result in an error because no wildcard characters can be used in the disk name.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

QUESTION 200You set SGA parameters in your database as: DB_CACHE_SIZE =24 MB JAVA_POOL_SIZE =48 MBSHARED_POOL_SIZE =96 MB You plan to upgrade to Oracle Database 10 g . You need to provide anadditional 20 MB memory space to accommodate internal overhead allocations for metadata. Which SGAparameter(s) would you modify?

A. change DB_CACHE_SIZE to 44 MBB. change SHARED_POOL_SIZE to 106 MB and DB_CACHE_SIZE to 34 MBC. change JAVA_POOL_SIZE to 58 MB and DB_CACHE_SIZE to 34 MBD. change JAVA_POOL_SIZE to 68 MBE. change SHARED_POOL_SIZE to 116 MB

Correct Answer: E

Page 98: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

Section: (none)Explanation

Explanation/Reference:

QUESTION 201Which six files are maintained in the Flash Recovery Area? (Choose six.)

A. control fileB. RMAN filesC. password fileD. parameter fileE. flashback logsF. data file copiesG. core dump filesH. archived log filesI. RMAN recovery scriptsJ. control file autobackpus

Correct Answer: Section: (none)Explanation

Explanation/Reference:Answer: A, B, E, F, H, JThe Flash Recovery Area is a unified storage location for all recovery-related files and activities in an OracleDatabase. It includes Control File, Archived Log Files, Flashback Logs, Control File Autobackups, Data Files,and RMAN files.

QUESTION 202If the database is shown degraded performance, which three charts on the Database Control ConsolePerformance page will help you resolve the problem? (Choose three.)

A. overall availability chartB. instance throughput chartC. waiting and working sessions chartD. host paging and run queue information chartE. undo generation rate and tablespace usage chart

Correct Answer: BCDSection: (none)Explanation

Explanation/Reference:

QUESTION 203You have a materialized view called emp-mv on the emp table. You want to stop the following query fromexecuting if it does not rewrite:SELECT deptno, sum(sal) FROM emp GROUP BY deptno;Which statement wold you use?

A. SELECT /*+ USE_CONCAT */deptno,sum(sal) FROM emp GROUOP BE deptno;B. SELECT /*+ NO_EXPAND */deptno,sum(sal) FROM emp GROUOP BE deptno;

Page 99: Oracle 1Z0-040 Exam Questions & Answers · or used in combination with the Oracle Enterprise Manager application. Besides this PL/SQL package a number of views (with names starting

C. SELECT /*+ NO_REWRITE */deptno,sum(sal) FROM emp GROUOP BE deptno;D. SELECT /*+ REWRITE_OR_ERROR */deptno,sum(sal) FROM emp GROUP BY deptno;E. SELECT /*+ NO_QUERY_TRANSFORMATION */deptno,sum(sal) FROM emp GROUP BY deptno;

Correct Answer: DSection: (none)Explanation

Explanation/Reference:REWRITE_OR_ERROR HintThere may be situations where you want to stop the query from executing if it did not rewrite . One suchsituation can be when you expect the un-rewritten query to take an unacceptably long time to execute. Tosupport this requirement, Oracle Database 10g provides a new hint called REWRITE_OR_ERROR. This is aquery block-level hint. For example, if the SELECT statement is not rewritten, the error displayed in themessage is thrown. The REWRITE_OR_ERROR hint allows you to runDBMS_MVIEW.EXPLAIN_REWRITE() on the query, resolve the problems that caused rewrite to fail, and runthe query again

QUESTION 204Which three parameters are ignored when creating an automatic space management segment? (Choosethree.)

A. PCTFREEB. PCTUSEDC. INITRANSD. MAXTRANSE. FREELISTS change it to FREELISTF. FREELIST GROUP

Correct Answer: BEFSection: (none)Explanation

Explanation/Reference:Automatic segment-space management in locally managed tablespaces eliminates the need to specify thePCTUSED, FREELISTS, and FREELIST GROUPS parameters. If possible, switch from manual spacemanagement to automatic segment-space management (ASSM).REF.: Oracle(r) Database 10g Performance Guide , 10-19

http://www.gratisexam.com/