121. You want to create a new optimized database for your transactional production environment to be used by a financial application. While creating the database, you want the Oracle software to take care of all basic settings to optimize the database performance. Which method would you use to achieve this objective?
A) Use the CREATE DATABASE.. command to create the database with Oracle-managed files.
B) Use the Database Configuration Assistant (DBCA) to create the database with Oracle-managed files.
C) Use Enterprise Manager to create a new database with the Online Transaction Processing (OLTP) option.
D) Use Database Configuration Assistant (DBCA) to create the database with Transaction Processing template.
E) Use the CREATE DATABASE.. command to create the database with Automatic Storage Management (ASM) file system.
答案: D
122. You received complaints about the degradation of SQL query performance. You identified top SQL queries that consume time. What would be your next step to find out recommendations about statistics collection and restructuring of the SQL statement to improve query performance?
A) run Segment Advisor
B) run SQL Tuning Advisor on top SQL statements
C) run the Automatic Workload Repository (AWR) report
D) run the Automatic Database Diagnostic Monitor (ADDM) on top SQL statements
答案:B
123. View the Exhibit.
Which statement regarding the dept and emp tables is true?
A) When you delete a row from the emp table, you would receive a constraint violation error.
B) When you delete a row from the dept table, you would receive a constraint violation error.
C) When you delete a row from the emp table, automatically the corresponding rows are deleted from the dept table.
D) When you delete a row from the dept table, automatically the corresponding rows are deleted from the emp table.
E) When you delete a row from the dept table, automatically the corresponding rows are updated with null values in the emp table.
F) When you delete a row from the emp table, automatically the corresponding rows are updated with null values in the dept table.
答案:D
124. User Scott has updated the salary of one of the employees in the EMPLOYEES table and has not committed the transaction. What are the two types of locks that this scenario would lead to? (Choose two.)
A) null lock on the row being updated
B) null lock on the table containing the row
C) ROW SHARE lock for the row being updated
D) ROW EXCLUSIVE lock for the row being updated
E) shared row-exclusive lock for the row being updated
F) a shareable table lock for the table containing the row
G) exclusive table-level lock for the table containing the row
答案:DF
125. View the Exhibit and examine the output.
Which statement describes the conclusion?
A) The users should use bind variables instead of literals in the query.
B) The dictionary cache is consuming more space than the library cache.
C) The shared pool size should be increased to accommodate the SQL statements.
D) Preparing indexes on the tables used in the SQL statements would improve the library cache performance.
答案:A
126. Your database is configured in NOARCHIVELOG mode. All the control files have been lost due to a hard disk failure but the data files are not lost. You have the closed whole database backup available to you. Which two statements are true in this scenario? (Choose two.)
A) The instance aborts.
B) The database cannot be recovered.
C) The database can be recovered by restoring the control files from the backup.
D) The database remains opened and you have to shut it down with the ABORT option.
E) The database can be restored till the point of the last closed whole database backup.
答案:AE
127. While running the Oracle Universal Installer on a Unix platform to install Oracle Database 10g software, you are prompted to run orainstRoot.sh script. What does this script accomplish?
A) It creates the pointer file.
B) It creates the base directory.
C) It creates the Inventory pointer file.
D) It creates the Oracle user for installation.
E) It modifies the Unix kernel parameters to match Oracle's requirement.
答案: C
128. Your database is started with SPFILE. You want the database instance to be dynamically registered with a
listener L2 with the following details:
Protocol: TCP
Host: indl151e
Port: 1525
Which is the correct order of the steps that you would follow to achieve this?
1. Set the LOCAL_LISTENER parameter to L2 dynamically.
2. Make an entry for L2 in tnsnames.ora on the database server.
3. Restart L2.
4. Modify the listener.ora file to add the instance name in SID_LIST of L2.
A) 1, 2, 4, 3
B) 1, 2, 3; 4 is not required.
C) 2, 1; 3 and 4 are not required.
D) 1, 2; 3 and 4 are not required.
答案:C
129. The junior DBA in your organization has accidentally deleted the alert log file. What will you do to create new alert log file?
A) Create the new text file file as ALERT.LOG.
B) You have to recover the alert log file from the valid backup.
C) Change the value for the BACKGROUND_DUMP_DEST parameter.
D) No action required.The file would be created automatically by the instance.
答案: D
130. View the Exhibit.
Your Oracle 10g database has 6 tablespaces in which)
-TEMP is the default temporary tablespace
-UNDOTBS1 is the default undo tablespace
-USERS is the default permanent tablespace
In this database, which two tablespaces can be made read only? (Choose two.)
A) TEMP
B) PROD
C) USERS
D) SYSAUX
E) SYSTEM
F) UNDOTBS1
答案: BC
131. You are using the backup scheduler in Enterprise Manager (EM) to schedule a backup of your database. Which type of script does the backup scheduler generate?
A) SQL script
B) PL/SQL script
C) Operating System (OS) script
D) Enterprise Manager (EM) script
E) Recovery Manager (RMAN) script
答案: E
132. You are in the middle of a transaction and very crucial data has been modified. Because of a hardware failure, the instance has shut down before synchronizing all the database files. Which two statements are true? (Choose two.)
A) On startup, SMON coordinates instance recovery.
B) On startup, CKPT coordinates instance recovery.
C) On startup, use RMAN to perform instance recovery.
D) Uncommitted changes will be rolled back after the database is opened.
E) On startup, perform media recovery and then instance recovery.
F) On startup, all the files will be synchronized and you get both committed and uncommitted data.
答案:AD
133. After being hired as a database administrator, you find that there is only one database that is functional and that is being accessed by the applications. You want to create a replica of the database, to be used for testing purposes. What is the best method to create the replica?
A) create a database by using CREATE DATABASE .. command and manually copy the data
B) use Database Configuration Assistant (DBCA) to create a template from the existing database to contain the database structure
C) use DBCA to create a template from the existing database to contain the database structure and then manually copy the data using Oracle Data Pump
D) use DBCA to create a template from the existing database to contain the database structure with data files and then use the same template to create the database in the new location
答案:D
134. You are working on an online transaction processing (OLTP) system. You notice that a PL/SQL procedure got executed twice at 2:00 p.m. This has incorrectly updated the EMP_SAL table. How would you revert the table to its state at 2:00 p.m.?
A) Perform point-in-time recovery to 2: 00 p.m.
B) Use Flashback Table feature to revert the changes.
C) Restore the entire database from the recent backup and open it.
D) Issue the rollback statement with system change number (SCN).
答案:B
135. View the Exhibit.
What would happen if you change the value of Desired Mean Time To Recover to 30?
A) The MTTR Advisor would be enabled.
B) The Redo Log Advisor would be disabled.
C) Automatic checkpoint tuning would be disabled.
D) The redo log from log buffers would be written to redo log files at a slower rate.
答案: A
136. View the Exhibit to observe the privileges granted to the MGR_ROLE role.
The SCOTT user has been granted the CONNECT and RESOURCE roles only. The database administrator (DBA) grants MGR_ROLE to the SCOTT user by using this command:
SQL> GRANT MGR_ROLE TO SCOTT WITH ADMIN OPTION;
Which statement is true about the SCOTT user after he is granted this role?
A) The SCOTT user can grant the MGR_ROLE role and the privileges in it to other users.
B) The SCOTT user can grant the privileges in the MGR_ROLE role to other users but not with ADMIN_OPTION.
C) The SCOTT user can grant only the MGR_ROLE role to other users but not the privileges in it.
D) The SCOTT user can grant the privileges in the MGR_ROLE role to other users but cannot revoke privileges from them.
答案:C
137. Which two statements are true about simple views? (Choose two.)
A) Views can be created as read only.
B) Views are data segments like tables.
C) Views can be created on the basis of more than one table.
D) Data manipulation language (DML) operations cannot be performed on views.
答案:AC
138. Which naming method uses the tnsnames.ora file to store the connect descriptor used by the client while connecting to the database instance from a remote machine?
A) host naming method
B) local naming method
C) external naming method
D) directory naming method
答案:B
139. Your database is running in the ARCHIVELOG mode. You placed a tablespace, tbs_1, offline with the immediate option. Which statement is correct in this scenario?
A) The operation would fail if tbs_1 were a read-only tablespace.
B) The operation would fail if tbs_1 were a read/write tablespace.
C) The operation would fail if tbs_1 were the default tablespace for the database.
D) If the above operation were successful, media recovery would be required to bring the tablespace online.
E) If the above operation were successful, instance recovery would be required to bring the tablespace online.
答案:D
140. You work in a data warehouse environment that involves the execution of complex queries. The current content of the SQL cache holds the ideal workload for analysis. You want to analyze only few most resource-intensive statements. What would be your suggestion to receive recommendations on the efficient use of indexes and materialized views to improve query performance?
A) Run the SQL Access Advisor.
B) Run the SQL Tuning Advisor (STA).
C) Run the Automatic Workload Repository (AWR) report.
D) Run the Automatic Database Diagnostic Monitor (ADDM).
答案:A
141. You have a large amount of historical data in an operating system file. Some analysts in your organization need to query this data. The file is too large to load into your current database. Which is the most effective method to accomplish the task?
A) Upgrade the hardware/memory to accommodate the data.
B) Load the data into your database by using the PARALLEL clause.
C) Give analysts DBA privilege, so that they can query DBA_EXTERNAL_TABLES.
D) Use an external table so you can have the metadata available in your database, but leave the data in the operating system files.
答案:D
142. Which two statements are true about a bitmap index? (Choose two.)
A) It is recommended for the columns that have unique values.
B) It can be converted to a B-tree index by using the ALTER INDEX command.
C) It has a bitmap segment for each distinct value in the key column, containing a string of bits in which each bit represents the presence or absence of a key column value.
D) Updating the key column locks the whole bitmap segment that contains the bit for the key value to be updated.
答案:CD
143. User SCOTT wants to export his objects using Oracle Data Pump and executes the following command:
$ expdp scott/tiger
directory = EXPORT_DIR
dumpfile = scott.dmp
include = table
include = view:"like '%DEPARTMENTS%'"
content = DATA_ONLY
Which task would the command accomplish?
A) Oracle Data Pump would export only the data of all of the tables and views.
B) Oracle Data Pump would export all of the table structures along with data and all the views.
C) Oracle Data Pump would export the table data and the view definitions where the view name contains a string named DEPARTMENTS.
D) Oracle Data Pump would export the table data and the view definitions with data where view name contains a string named DEPARTMENTS.
E) Oracle Data Pump would export all of the table structures and the view definitions with data where view name contains a string named DEPARTMENTS.
答案:C
144. Which two statements regarding the LOGGING clause of the CREATE TABLESPACE... statement are correct? (Choose two.)
A) This clause is not valid for a temporary or undo tablespace.
B) If the tablespace is in the NOLOGGING mode, no operation on the tablespace will generate redo.
C) The tablespace will be in the NOLOGGING mode by default, if not specified while creating a tablespace.
D) The tablespace-level logging attribute can be overridden by logging specifications at the table, index, materialized view, materialized view log, and partition levels.
答案:AD
145. You want to monitor and control the resource usage by sessions. You want to be warned automatically when more than 100 sessions are opened with your database. What action would you take to achieve this?
A) Use the Database Resource Manager.
B) Set the limits in the profiles used by users.
C) Modify the SESSIONS initialization parameter.
D) Set the warning threshold for the Current Logons Count metric.
答案:D
146. In your database, the STATISTICS_LEVEL initialization parameter is set to BASIC. What is the impact of this setting?
A) The optimizer statistics are collected automatically.
B) Only the timed operating system (OS) statistics and plan execution statistics are collected.
C) The Oracle server dynamically generates the necessary statistics on tables as part of query optimization.
D) The snapshots for the Automatic Workload Repository (AWR) are not generated automatically.
E) Snapshots cannot be collected manually by using DBMS_WORKLOAD_REPOSITORY PACKAGE.
答案:D
147. You have a large amount of historical data in an operating system file. Some analysts in your organization need to query this data. The file is too large to load into your current database. Which is the most effective method to accomplish the task?
A) Upgrade the hardware/memory to accommodate the data.
B) Load the data into your database by using the PARALLEL clause.
C) Give analysts DBA privilege, so that they can query DBA_EXTERNAL_TABLES.
D) Use an external table so you can have the metadata available in your database, but leave the data in the operating system files.
答案:D
148. The HR user creates a view with this command:
SQL> CREATE VIEW emp_v AS SELECT * FROM scott.emp;
Now HR wants to grant the SELECT privilege on the EMP_V view to the JIM user. Which statement is true in this scenario?
A) HR can grant the privilege to JIM but without GRANT OPTION.
B) HR can grant the privilege to JIM because HR is the owner of the view.
C) SCOTT has to grant the SELECT privilege on the EMP table to JIM before this operation.
D) HR needs the SELECT privilege on the EMP table with GRANT OPTION from SCOTT for this operation.
答案:D
149. You execute the following set of commands to create a database user and to grant the system privileges in your production environment.
SQL> CREATE USER user01
IDENTIFIED BY oracle
DEFAULT TABLESPACE tbs1
TEMPORARY TABLESPACE temp
PROFILE default
/
SQL> GRANT create session, create table TO user01;
While executing the command to create a table, the user gets the following error message and the CREATE
TABLE.. command fails.
ERROR at line 1:
ORA-01950: no privileges on tablespace
What could be the possible reason for this error message?
A) The tablespace TBS1 is full.
B) The user is not the owner of the SYSTEM tablespace.
C) The user does not have quota on the TBS1 tablespace.
D) The user does not have sufficient system privileges to create table in the TBS1 tablespace.
E) The user does not have sufficient privileges to create table on the default permanent tablespace.
答案:C
150. Which two statements about Flashback Query are true? (Choose two.)
A) It is generated by using the redo log files.
B) It helps in row-level recovery from user errors.
C) It can be performed to recover ALTER TABLE statements
D) It fails when undo data pertaining to the transaction is overwritten.
E) The database has to be opened with the resetlogs option after performing Flashback Query.
答案:BD
151. Your alert log file has the following information:
Tue May 25 17:43: 38 2004
ORA-00060: Deadlock detected. More info in file
/u01/app/oracle/admin/ORCL/udump/orcl_ora_3173.trc.
What would you do to ensure that database is still running correctly?
A) examine the trace file and kill the session that caused the deadlock
B) examine the trace file and kill both the sessions responsible for the deadlock
C) examine the trace file for details and ask the user who caused the deadlock to rollback the transaction
D) examine the trace file for details and remember that deadlocks are resolved automatically by Oracle database
E) examine the trace file for details and use the Undo Advisor to rollback the transaction that caused the deadlock
答案:D
152. The ST_INFO master table has millions of rows that are updated very rarely. It has a STATE_CODE column that contains the value for 25 states. The table is frequently queried on the STATE_CODE column. Which type of index would you suggest to improve the query performance?
A) B-tree
B) bitmap
C) reverse key
D) function based
答案:B
153. Your database is in NOARCHIVELOG mode and a logswitch happens every 20 minutes. On Thursday morning, media failure resulted in corruption of a data file belonging to the TOOLS tablespace. Backups are taken on every Sunday. What would you do in this situation?
A) recover using Oracle Flashback Database technology
B) restore the data files from backup and perform a complete recovery
C) restore only the corrupted data file and perform tablespace recovery
D) restore the data files from backup and perform cancel-based recovery
E) restore the entire database from the most recent backup and start the instance and open the database
答案:E
154. Which two operations can be flashed back using the Flashback technology? (Choose two.)
A) DROP USER SMITH;
B) DROP TABLE EMPLOYEES;
C) DROP TABLESPACE USERS;
D) ALTER TABLE SALES_REP DROP PARTITION P1;
E) ALTER TABLE EMPLOYEES DROP COLUMN DESIG_ID;
答案:AB
155. While setting up an Oracle database for one of your critical applications, you want to ensure that the database is backed up at regular intervals without your intervention. What should you do to achieve the objective?
A) configure the database to run in ARCHIVELOG mode
B) configure the Flash Recovery Area to enable automatic database backup
C) schedule the database backup using DBMS_JOB package after creating the database
D) schedule the database backup using Recovery Manager (RMAN) commands after creating the database
E) schedule the database backup using Database Configuration Assistant (DBCA) while creating the database
答案:E
156. You created a response file and want to check it before starting installations in silent mode. You started installation of Oracle software in interactive mode by providing the response file. In the middle of the installation, you realize that the behavior of the Oracle Universal Installer (OUI) is not consistent with the response file. What action would you take to detect the cause of this behavior?
A) Compare the contents of the install.log file with the response file.
B) Refer to the contents of the oraInst.loc file to verify the steps performed by OUI.
C) Compare the contents of the installActions.log file with that of the response file.
D) Refer to the alert log file for information regarding the actions performed by OUI during installation.
答案:C
157. Which step do you need to perform to enable a user with the SYSDBA privilege to log in as SYSDBA in iSQL*Plus?
A) The user must be granted the database administrator (DBA) privilege.
B) The user must be listed in the password file for the authentication.
C) No special setup is needed for the user to connect as SYSDBA in iSQL*Plus.
D) Set up a user in the Oracle Application Server Containers for J2EE (OC4J) user manager, and grant the web Dba role to the user.
答案:D
158. You want to create a tablespace with the following specifications:
1. The tablespace extends automatically.
2. Used and free extents should be managed by bitmaps.
3. Default PCTUSED attribute is set to 60.
4. All the extents would be of size 1 MB.
Which three options would you choose to create the tablespace? (Choose three.)
A) tablespace with AUTOEXTEND enabled
B) tablespace with dictionary-managed extents
C) tablespace with a uniform extent allocation of 1 MB
D) tablespace with segment space management as manual
E) tablespace with segment space management as automatic
答案:ACD
159. Which two database operations can be performed at the MOUNT stage of database startup? (Choose two.)
A) renaming of data files
B) dropping the database user
C) renaming of control files
D) multiplexing of control files
E) configuring the database in ARCHIVELOG mode
答案:AE
160. You are using flat files as the data source for one of your data warehousing applications. You plan to move the data from the flat file structures to an Oracle database to optimize the application performance. In your database you have clustered tables. While migrating the data, you want to have minimal impact on the database performance and optimize the data load operation. Which method would you use to load data into Oracle database?
A) use the external table population
B) use the Oracle Data Pump export and import utility
C) use the conventional path data load of SQL*Loader utility
D) use the direct path data load of Oracle export and import utility
答案:C