出自:Oracle认证

Examine the following command used to perform incremental level 0 backup: RMAN> BACKUP INCREMENTAL LEVEL 0 DATABASE; To enable the block change tracking, after the incremental level 0 backup you issued the following command: SQL> ALTER DATABASE ENABLE BLOCK CHANGE TRACKING USING FILE '/mydir/ rman_change_track.f'; To perform incremental level 1 cumulative backup, you issued the following command: RMAN> BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE; Which two statements are true in the above situation?()
A:The block change tracking data will be used only from the next incremental 0 backup.
B:The incremental backup will use change tracking data for accomplishing the backup.
C:The incremental backup will not use change tracking data for accomplishing the backup.
D:The block track file will scan all the blocks and create bitmap for all the blocks backed up in the level 0 backup.
You are working as a DBA on Oracle Database 9i. You plan to upgrade your 9i database to Oracle 10g. To be familiar with the new database technology, you decide to install Oracle Database 10g on your workstation at home. You create a general purpose database.   After the installation, you make the following changes in your initialization parameter file:LOG_ARCHIVE_DEST_1=’LOCATION=USE_DB_RECOVERY_FILE_DEST’   DB_RECOVERY_FILE_DEST =    ’LOCATION=d:/product/10.1.0/flash_recovery_area’  DB_RECOVERY_FILE_DEST_SIZE=10g   Where are the archived redo logs stored for your database?()
A: The archived redo logs are stored in an operating system-dependent location.
B: The archived redo logs are stored in the location specified by LOG_ARCHIVE_DEST_1.
C: The archived redo logs are stored in the location specified by DB_RECOVERY_FILE_DEST.
D: The archived redo logs are stored in the locations specified by both LOG_ARCHIVE_DEST_1 and  DB_RECOVERY_FILE_DEST.
Which three pieces of information are to be mandatorily provided while creating a new listener using Enterprise Manager Database Control?()
A:the port used by the listener
B:the protocol used by the listener
C:the server name where the listener runs
D:the log file and trace file destination for the listener
E:the database services to be registered with the listener
In which case would you use the Flashback Database feature to perform a recovery?()
A:to recover a dropped tablespace
B:to recover data from a truncated table
C:to recover a data file that has been shrunk
D:to recover a database to the state that existed before the RESETLOGS operation
You backed up the database at 8 a.m. today using an online backup. Accounting made a large change to the underlying data between 10 a.m. and noon.  Which of the following actions would ensure that the changes could be recovered using the 8 a.m. backup?()  
A: Create a manual incremental online database backup.
B: Back up all the archived redo logs generated since the 8 a.m. backup.
C: Create a brand-new backup after all the changes have been applied.
D: There is no way to make the changes recoverable based on the 8 a.m. backup.
E: Perform an online backup of the tablespace(s) that contained changed data.
Given: Which statement is true?()
A:420 is the output.
B:An exception is thrown at runtime.
C:All constructors must be declared public.
D:Constructors CANNOT use the private modifier.
E:Constructors CANNOT use the protected modifier.
How can you modify the application to return more meaningful error messages to the user?()
A:Create a custom messages table. Include the necessary error handling code in the form modules to display the meaningful custom message instead of the ORA- error message. 
B:Provide users with a form in the application to query the ORA- error, that will return a custom message to replace the ORA- message. 
C:Eliminate constraints where possible, thereby limiting the number of error messages returned. 
D:Create a procedure to include the RETRIEVE_MESSAGE built-in that automatically translates common server errors into meaningful messages for use in Forms.
Given a pre-generics implementation of a method: What three changes allow the class to be used with generics and avoid an unchecked warning?()
A:Remove line 14.
B:Replace line 14 with "int i = iter.next();".
C:Replace line 13 with "for (int i : intList) {".
D:Replace line 13 with "for (Iterator iter : intList) {".
E:Replace the method declaration with "sum(List intList)".
Review the definition of the phone_list view. CHEATE OR REPLACE ALGORITHM=MERGE DEFINER= 'root'@localhost' SQL SECURITY DEFINER VIEW 'phone_list' AS SELECT e . id as id 'e . first_name AS 'first_name' 'e . last_name AS 'last_name' 'coalesce ( ph1.phone_no, ' – ') AS 'office_no' 'coalesce (ph2 .phone_no, ' – ') AS 'cell_no' FROM employees e LEFT JOIN employee_phone ph1 ON ph1.emp_id = e.id AND ph1.type = 'office' LEFT JOIN employee_phone ph2 ON ph2 .emp_id = e.id AND ph2 .type = 'mobile' The tables employees and employee_phone are InnoDB tables; all columns are used in this view. The contents of the phone_list view are as follows: Mysql> select * from phone_list; 1 row in set (0.00 sec) Which method can you use to change the cell_no value to '555-8888' for John Doe?()
A:INSERT INTO employee_phone (emp_id, phone_no, type) VALUES (1, '555-8888','mobile')
B:UPDATE phone_list SET cell_name '555-8888' WHERE first_name= 'John' and last_name= 'Doe'
C:DELETE FROM phone_list WHERE first_name= 'John' and last_name= 'Doe'; INSERT INTO phone_list (first_name, last_name, office_no, cell_no) VALUES ('John' , 'Doe' , 'x1234' , '555-8888)
D:UPDATE employee_phone SET phone_no= '555-8888' where emp_id=1
当CKPT进程工作时,会对哪类文件执行I/O操作()
A:数据文件
B:控制文件
C:重做日志文件
D:归档日志文件
E:警告文件
Examine the output of the query that you executed to list the objects in the recycle bin: You verified that no table named SALES_TAB exists in the schema. Then you executed the following command to purge the objects in the recycle bin: SQL> PURGE TABLE sales_tab; What would be the outcome of this command?()
A:All three tables in the recycle bin are purged
B:Only the table with the oldest DROPSCN is purged
C:The command returns an error because multiple entries with the same name exist in the recycle bin
D:Only the table with the latest DROPSCN is purged
Which three scenarios describe appropriate uses for key triggers?()
A:Alter data in a database table. 
B:Add custom item validation code. 
C:Disable the Next Block key and menu item. 
D:Display a custom form in place of a List of Values. 
E:Change the navigational order of the blocks in a form. 
F:Perform a complex calculation each time the F10 key is pressed. 
To generate recommendations to improve the performance of a set of SQL queries in an application, you execute the following blocks of code:   BEGIN  dbms_advisor.create_task(dbms_advisor.sqlaccess_advisor,’TASK1’);  END; /  BEGIN  dbms_advisor.set_task_parameter(’TASK1’,’ANALYSIS_SCOPE’,’ALL’); dbms_advisor.set_task_parameter(’TASK1’,’MODE’,’COMPREHENSIVE’);  END;  /  BEGIN  dbms_advisor.execute_task(’TASK1’);  dbms_output.put_line(dbms_advisor.get_task_script(’TASK1’));  END;  /  The blocks of code execute successfully;however,you do not get the required outcome.  What could be the reason?()  
A: A template needs to be associated with the task.
B: A workload needs to be associated with the task.
C: The partial or complete workload scope needs to be associated with the task.
D: The type of structures (indexes, materialized views, or partitions) to be recommended need to be  specified for the task.
Why would you execute the report obsolete command?()  
A: To list all backups that were no longer available for restore operations
B: To list all backups that had aged beyond the RMAN retention criteria
C: To list all backup set pieces listed in control-file or recovery-catalog metadata that are not on the backup media
D: To list all datafiles that are no longer part of the database and thus do not need to be backed up
E: To list all archived redo logs that are no longer needed for any database recovery
Examine the structure of the EMPLOYEES and DEPARTMENTS tables: EMPLOYEES EMPLOYEE_ID NUMBER DEPARTMENT_ID NUMBER MANAGER_ID NUMBER LAST_NAME VARCHAR2(25) DEPARTMENTS DEPARTMENT_ID NUMBER MANAGER_ID NUMBER DEPARTMENT_NAME VARCHAR2(35) LOCATION_ID NUMBER You want to create a report displaying employee last names, department names, and locations. Which query should you use?()
A:SELECT e.last_name, d. department_name, d.location_id FROM employees e NATURAL JOIN departments D USING department_id ;
B:SELECT last_name, department_name, location_id FROM employees NATURAL JOIN departments WHERE e.department_id =d.department_id;
C:SELECT e.last_name, d.department_name, d.location_id FROM employees e NATURAL JOIN departments d;
D:SELECT e.last_name, d.department_name, d.location_id FROM employees e JOIN departments d USING (department_id );
下面数据类型中()不属于数据库类型但属于PL/SQL数据类型。
A:Number
B:Varchar2
C:%type
D:date
The BOOKINGS table contains online booking information. When a booking is confirmed, the details are transferred to an archival table BOOKINGS_HIST and deleted from the BOOKINGS table. There is no fixed time interval between each online booking and its confirmation. Because sufficient space is not always available from the delete operations the high-water mark (HWM) is moved up and many rows are inserted below the HWM of the table. The BOOKINGS table has Automatic Segment Space Management (ASSM) and row movement enabled. The table is accessible in 24x7 mode. What is the most efficient method to reclaim the space released by the delete operations in the BOOKINGS table?()
A:Perform EXPORT, DROP, and IMPORT operations on the BOOKINGS table sequentially
B:Shrink the BOOKINGS table by using the ALTER TABLE SHRINK SPACE command
C:Move the BOOKINGS table to a different location by using the ALTER TABLE MOVE command
D:Deallocate the space in the BOOKINGS table by using the ALTER TABLE DEALLOCATE UNUSED command
The loss of which two types of files may require a recovery with the RESETLOGS option?()
A: control files
B: password file
C: archived log files
D: system-critical data files for which all the redo entries are present
E: non-system-critical data files for which all the redo entries are present
You want to perform an RMAN backup of database as a copy. Which two factors will you consider while performing the backup operation?()
A: The backup as copy can only be taken to disk
B: The backup as copy can only be taken to tape
C: Backup can be performed only when the instance is shutdown
D: Backup will constitute all used and unused blocks in the database
The SAVE_AMT column in the ACCOUNTS table contains the balance details of customers in a bank. As part of the year/x7fend tax and interest calculation process, all the rows in the table need to be accessed. The bank authorities want to track access to the rows containing balance amounts exceeding $200,000, and then send an alert message to the administrator.  Which method would you suggest to the bank for achieving this task?()
A:implementing value­based auditing by using triggers
B:implementing fine­grained auditing with audit condition and event handler
C:performing standard database auditing to audit object privileges by setting the AUDIT_TRAIL parameter to EXTENDED
D:performing standard database auditing to audit SQL statements with granularity level set to ACCESS
Which three statements are true about database recovery operations?()
A:Damaged or lost data files are restored from backups.
B:Redo log file entries are used to roll forward the database.
C:Undo segments are used to roll back any uncommitted transactions.
D:Transactions that were active when the failure occurred are restarted.
E:Transactions that were active when the failure occurred are automatically committed during the recover procedure.
Given: What is the result?()
A:Compilation fails.
B:After line 15, the value of age is 5.
C:After line 15, the value of age is 3.
D:An exception is thrown at runtime.
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 VARCHARD2(30) SALARY NUMBER(8,2) Which statement shows the maximum salary paid in each job category of each department? ()
A:SELECT dept_id, job_cat, MAX(salary) FROM employees WHERE salary > MAX (salary);
B:SELECT dept_id, job_cat, MAX(salary) FROM employees GROUP BY dept_id,job_cat;
C:SELECT dept_id, job_cat, MAX(salary) FROM employees;
D:SELECT dept_id, job_cat, MAX(salary) FROM employees GROUP BY dept_id;
E:SELECT dept_id, job_cat, MAX(salary) FROM employees GROUP BY dept _ id job _ cat salary;
Which statement describes the ROWID data type? ()
A:Binary data up to 4 gigabytes.
B:Character data up to 4 gigabytes.
C:Raw binary data of variable length up to 2 gigabytes.
D:Binary data stored in an external file, up to 4 gigabytes.
E:A hexadecimal string representing the unique address of a row in its table.
Which of the following choices identifies a database component that will be used for multiplexing control files?()
A:V$CONTROLFILE 
B:V$DATABASE 
C:init.ora 
D:DBA FILES
Manually, you set the consumer group of all of the newly created users to MYDB_GRP. You want the users to be able to change their consumer groups as per the application requirement. What was the first step that was needed in the process to achieve this objective?() 
A:The user must have been granted the DBA role.
B:The user must have been granted the switch privilege as a part of a role.
C:The user must have been granted the Resource Manager administrator privilege.
D:The user must have been granted the switch privilege by using the DBMS_RESOURCE_MANAGER_PRIVS package.
Given: foo and bar are public references available to many other threads. foo refers to a Thread and bar is anObject.  The thread foo is currently executing bar.wait().  From another thread,what provides the most reliable wayto ensure that foo will stop executing wait()?
A:foo.notify();
B:bar.notify();
C:foo.notifyAll();
D:Thread.notify();
E:bar.notifyAll();
Given: Which two, inserted at line 11, will allow the code to compile?()
A:public&ensp;class&ensp;MinMax<;?>;&ensp;{
B:public&ensp;class&ensp;MinMax<;?extends&ensp;Number>;&ensp;{
C:public&ensp;class&ensp;MinMax<;Nextends&ensp;Object>;&ensp;{
D:public&ensp;class&ensp;MinMax<;Nextends&ensp;Number>;&ensp;{
E:public&ensp;class&ensp;MinMax<;?extends&ensp;Object>;&ensp;{
F:public&ensp;class&ensp;MinMax<;Nextends&ensp;Integer>;&ensp;{
Which three actions are allowed in event details? ()(Choose three.)
A:Send
B:Raise
C:Delete
D:Receive
E:Acknowledge
Examine the following statement that is used to modify the constraint on the SALES table: SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE; Which three statements are true regarding the above command()
A:The constraint remains valid.
B:The index on the constraint is dropped.
C:It allows the loading of data into the table using SQL*Loader.
D:New data conforms to the constraint, but existing data is not checked
E:It allows the data manipulation on the table using INSERT/UPDATE/DELETE SQL statements.