出自:Oracle认证

简述游标的作用和游标操作的基本步骤。
You work as a database administrator for Supportcenter.cn. You added atablespaceto your database. Because of the changes to the physical structure of your database, you performed a backup of the control file to trace. After this, you lost only the control files and the instance aborted due to a hardware failure. How would you proceed to recover the database?()
A:Start the instance and open the database, instance recovery automatically recoverscontrol files
B:Create a file based on the contents of the trace file and save it to the control file locations and start the database
C:Re-create the database (The recovery of the control file is not possible because you have lost all the control files.)
D:Start the instance, in the NOMOUNTstate,re-create the control file using the CREATE CONTROLFILE command stored in the trace file.
E:Start the instance and MOUNT the database, then re-create the control file using the CREATE CONTROLFILE command stored in the trace file.
View the Exhibit and examine the output.  Which two statements are true regarding the LISTENER2 listener()
A:The ORCL instance is registered dynamically with the listener.
B:The ORCL instance is registered statically in the listener.ora file.
C:The number of current client connections handled by the service handler is two.
D:The total number of client connections handled so far by the service handler is two.
The application tables owned by the user TEST in a test database need to be exported to the APPS schema in the production database by using Data Pump.  Which option of Data Pump Import would you use to accomplish this?()  
A: owner
B: touser
C: attach
D: remap_schema
在Oracle中,可以用一个SELECT语句同时从多个表中取出数据,只需在SELECT语句的()子句中列出要从中取出数据的表名称即可。
A:ORDER BY
B:FROM
C:GROUP BY
D:JOIN
DRAG DROP Click the Task button.
On which two database objects can the VERSIONS clause of the Flashback Versions Query be used?()
A: fixed tables
B: heap tables
C: external tables
D: temporary tables
E: Index-Organized Tables (IOTs)
Oracle9i 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 thedbms_redefinition_start_redef table procedure call?()
A:Grand privileges on the interim table.
B:Invoke the dbms_redefinition.can_redef_table procedure.
C:Invoke the dbms_redefinition.sync_interim_table procedure.
D:Create any triggers, indexes, or constraints on the interim table.
E:Create an empty interim table with all the desired characteristics.
You are attempting to increase the checkpoint interval on your database. Each of the following choices will affect the duration and/or frequency of checkpoints, except one.  Which is it?()
A:Size of redo logs 
B:Number of datafiles 
C:LOG_CHECKPOINT_INTERVAL 
D:LOG_CHECKPOINT_TIMEOUT
Which two statements about subqueries are true?()
A:A single row subquery can retrieve data from only one table.
B:A SQL query statement cannot display data from table B that is referred to in its subquery, unless table B is included in the main query's FROM clause.
C:A SQL query statement can display data from table B that is referred to in its subquery, without including table B in its own FROM clause.
D:A single row subquery can retrieve data from more than one table.
E:A single row subquery cannot be used in a condition where the LIKE operator is used for comparison.
F:A multiple-row subquery cannot be used in a condition where the LIKE operator is used for comparison.
The database is running in ARCHIVELOG mode and the FORMAT option is not configured in RMAN for disk backups. You configured the flash recovery area location and size by using the DB_RECOVERY_FILE_DEST and DB_RECOVERY_FILE_DEST_SIZE initialization parameters. Which statement is correct in this scenario?()
A: If the FORMAT option to the RMAN BACKUP command is specified, then RMAN creates backup pieces and image copies in the flash recovery area with names in the Oracle Managed Files (OMF) format.
B: If any local destinations for LOG_ARCHIVE_DEST_n are set, then archived redo logs are stored in these destinations as well as in the flash recovery area.
C: If the flash recovery area location is configured using the DB_RECOVERY_FILE_DEST initialization parameter, then the RMAN backup of Oracle managed datafiles (OMF) only will go to the flash recovery area by default.
D: If no other destination is configured for recovery files, then RMAN places the control file autobackups in the flash recovery area by default.
You plan to control the sessions performing a huge number of I/O operations. Your requirement is to kill the session when it exceeds a specified number of I/Os. Which statement describes a solution to the above?()
A:Set a threshold for the default system-defined moving window baseline.
B:Add directives to the Automatic Database Diagnostic Monitor (ADDM).
C:Modify the profile for the targeted users for which control needs to be imposed.
D:Implement the database resource manager to add the SWITCH_IO_REQS and SWITCH_GROUP directives.
What components are present in an ASM instance?()
A: SGA
B: Database processes
C: Database datafiles
D: Control files
E: Database parameter file or spfile
A data file became corrupted in your database due to bad sectors on the disk. Because of corruption, you lost all the important tables in that data file. Which method would you use for recovery?()
A:flash back all the tables in the data file, one by one
B:restore the data file to a new location and perform a media recovery
C:flash back the database; there is no need to restore the data file
D:restore the data file from the most recent backup and flash back the database
On Friday at 11:30 am you decided to flash back the database because of a user error that occurred at 8:30 am. Which option must you use to check whether a flashback operation can recover the database to the specified time? ()
A:Check the alert log file
B:Query the V$FLASHBACK_DATABASE_LOG view
C:Query the V$RECOVERY_FILE_DEST_SIZE view
D:Query the V$FLASHBACK_DATABASE_STAT view
E:Check the value assigned for the UNDO_RETENTION parameter
You execute the following RMAN commands in the order shown below:  BACKUP VALIDATE DATABASE;  BLOCKRECOVER CORRUPTION LIST;  What will these commands do?()
A:create a backup of the database and recover all corrupted blocks found in the backup
B:run a backup validation and list all the logically corrupt blocks as well as physically corrupt blocks in the database
C:run a backup validation to populate V$COPY_CORRUPTION view, and then list any corrupt blocks recorded in the view
D:run a backup validation to populate V$DATABASE_BLOCK_CORRUPTION view, and then repair any corrupt blocks recorded in the view
E:run a backup validation, repair any corrupt blocks found during the validation process, and then update V$DATABASE_BLOCK_CORRUPTION view to indicate which corrupt blocks have been repaired
You are using Recovery Manager (RMAN) with a recovery catalog to back up your production database. The backups and the archived redo log files are copied to a tape drive on a daily basis. Because of media failure, you lost your production database completely along with the recovery catalog database. You want to recover the target database and make it functional. You consider performing the following steps to accomplish the task: Which option illustrates the correct sequence that you must use?()
A:8, 1, 3, 2, 4, 5, 7, 6
B:1, 8, 3, 4, 2, 5, 7, 6
C:1, 3, 4, 2, 8, 5, 6, 7
D:1, 3, 2, 4, 6, 5, 7, 8
You have set Tablespace Full Metrics Threshold values for the USERS tablespace as follows:Warning (%): 90Critical (%): 95 Which background process is responsible for issuing alerts when the threshold is crossed()
A:System monitor (SMON)
B:Process monitor (PMON)
C:Memory manager process (MMAN)
D:Manageability Monitor process (MMON)
How many individual archive-log destination directories are supported by Oracle Database11g?()
A:7
B:1
C:10
D:11
E:21
The ORDERS table has these columns: ORDER_ID NUMBER(4) NOT NULL CUSTOMER_ID NUMBER(12) NOT NULL ORDER_TOTAL NUMBER(10,2) The ORDERS table tracks the Order number, the order total, and the customer to whom the Order belongs. Which two statements retrieve orders with an inclusive total that ranges between 100.00 and 2000.00 dollars? ()
A:SELECT customer_id, order_id, order_total FROM orders RANGE ON order _ total (100 AND 2000) INCLUSIVE;
B:SELECT customer_id, order_id, order_total FROM orders HAVING order _ total BETWEEN 100 and 2000;
C:SELECT customer_id, order_id, order_total FROM orders WHERE order _ total BETWEEN 100 and 2000;
D:SELECT customer_id, order_id, order_total FROM orders WHERE order_total>= 100 and <= 2000;
E:SELECT customer_id, order_id, order_total FROM orders WHERE order_total>= 100 and order_total <= 2000;
You want to display the titles of books that meet these criteria: 1. Purchased before January 21, 2001 2. Price is less then $500 or greater than $900 You want to sort the results by their data of purchase, starting with the most recently bought book. Which statement should you use?()
A:SELECT book_title FROM books WHERE price between 500 and 900 AND purchase_date < '21-JAN-2001' ORDER BY purchase_date;
B:SELECT book_title FROM books WHERE price IN (500,900) AND purchase_date < '21-JAN-2001' ORDER BY purchase date ASC;
C:SELECT book_title FROM books WHERE price < 500 or > 900 AND purchase_date < '21-JAN-2001' ORDER BY purchase date DESC;
D:SELECT book_title FROM books WHERE (price < 500 OR price > 900) AND purchase_date < '21-JAN-2001' ORDER BY purchase date DESC;
Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) HIRE_DATE DATE Which UPDATE statement is valid?()
A:UPDATE employees SET first_name = 'John' SET last_name ='Smith' WHERE employee_id = 180;
B:UPDATE employees SET first_name = 'John', SET last_name ='Smith' WHERE employee_id = 180;
C:UPDATE employees SET first_name = 'John' AND last_name ='Smith' WHERE employee_id = 180;
D:UPDATE employees SET first_name = 'John', last_name ='Smith' WHERE employee_id = 180;
Examine the description of the EMPLOYEES table: EMP_ID NUMBER(4) NOT NULL LAST_ NAME VARCHAR2(30) NOT NULL FIRST_NAME VARCHAR2(30) DEPT_ID NUMBER(2) JOB_CAT VARCHAR2(30) SALARY NUMBER(8,2) Which statement shows the department ID, minimum salary, and maximum salary paid in that department, only if the minimum salary is less than 5000 and maximum salary is more than 15000?()
A:SELECT dept_id, MIN(salary), MAX(salary) FROM employees WHERE MIN(salary) < 5000 AND MAX(salary) > 15000;
B:SELECT dept_id, MIN(salary), MAX(salary) FROM employees WHERE MIN(salary) < 5000 AND MAX(salary) > 15000 GROUP BY dept_id;
C:SELECT dept_id, MIN(salary), MAX(salary) FROM employees HAVING MIN(salary) < 5000 AND MAX(salary) > 15000;
D:SELECT dept_id, MIN(salary), MAX(salary) FROM employees GROUP BY dept_id HAVING MIN(salary) < 5000 AND MAX(salary) > 15000;
E:SELECT dept_id, MIN(salary), MAX(salary) FROM employees GROUP BY dept_id, salary HAVING MIN(salary) < 5000 AND MAX(salary) > 15000;
What happens if you shutdown abort ASM instance?()
A:The RDBMSs connected will shutdown abort too
B:CLUSTER SERVICE will shutdown
C:ASM wil do instance recovery after startup
You execute the following RMAN command in the order shown below: BACKUP VALIDATE DATABASE; BLOCKRECOVER CORRUPTION LIST; What will these commands do?()
A: Create a backup of the database and recover all corrupted blocks found in the backup.
B: Run a backup validation and list all the logically corrupt blocks as well as physically corrupt blocks in the database.
C: Run a backup validation to populate V$COPY_CORRUPTION view, and then list any corrupt blocks recorded in the view.
D: Run a backup validation to populate V$DATABASE_BLOCK_CORRUPTION view, and then repair any corrupt blocks recorded in the view.
E: Run a backup validation, repair any corrupt blocks found during the validation process, and then update V$DATABASE_BLOCK_CORRUPTION view to indicate which corrupt blocks have been repaired.
如果要启用所有角色,则应该使用哪一个命令?()
A:SET ROLE ALL
B:SET ROLE ENABLE ALL
C:ALTER SESSION ALL
D:ALTER USER ROLE ALL
Given: Which two, inserted at line 11, will allow the code to compile?()
A:public class MinMax {
B:public class MinMax {
C:public class MinMax {
D:public class MinMax {
E:public class MinMax {
F:public class MinMax {
Exhibit, One of the important tables in the USERStablespace was dropped and purged from the recycle bin at 9:00 a.m. You noticed this at 11:00 a.m. and you want to perform an incomplete recovery to recover the table. Which statement is true?()
A: You must recover all data files to the required system change number (SCN).
B: You must recover all data files, except those that are offline, to the required SCN.
C: You must recover all data files belonging to the USERS tablespace to the required SCN.
D: You cannot recover all data files because segment space management is performed manually for the undo tablespace.
You company has four DBAs. You need to know which DBA added a column to the JOB_HISTORY table. The database cannot be offline during work hours. Which LogMiner command can you use to find out which user made the table change?()
A:A
B:B
C:C
D:D
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