出自:Oracle认证

Your system has been upgraded from Oracle Database 10g to Oracle Database 11g. You imported SQL Tuning Sets (STS) from the previous version. After changing the OPTIMIZER_FEATURE_ENABLE parameter to 10.2.0.4 and running the SQL Performance Analyzer, you observed performance regression for a few SQL statements. What would you do with these SQL statements?()
A:Set OPTIMIZER_USE_PLAN_BASELINES to FALSE to prevent the use of regressed plans.
B:Capture the plans from the previous version using STS and then load them into the stored outline.
C:Capture the plans from the previous version using STS and then load them into SQL Management Base (SMB).
D:Set OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES to FALSE to prevent the plans from being loaded to the SQL plan baseline.
Given:10. interface Data { public void load( ); }11. abstract class Info { public abstract void load( ); }Which class correctly uses the Data interface and Info class?()()
A:
B:
C:
D:
E:
F:
Which two are true regarding direct-path exports?()
A:Direct-path export is typically faster.
B:Direct-path export can be invoked interactively.
C:Direct-path export is character set independent.
D:Direct-path export bypasses the SQL-command processing layer.
E:Direct-path export can be used to export rows containing LOBs and BFILEs.
The EMPLOYEES table contains these columns: EMPLOYEE_ID NUMBER(4) ENAME VARCHAR2 (25) JOB_ID VARCHAR2(10) Which SQL statement will return the ENAME, length of the ENAME, and the numeric position of the letter "a" in the ENAME column, for those employees whose ENAME ends with a the letter "n"?()
A:SELECT ENAME, LENGTH(ENAME), INSTR(ENAME, 'a') FROM EMPLOYEES WHERE SUBSTR (ENAME, -1,1) = 'n';
B:SELECT ENAME, LENGTH(ENAME), INSTR(ENAME, ,-1,1) FROM EMPLOYEES WHERE SUBSTR (ENAME, -1,1) = 'n';
C:SELECT ENAME, LENGTH(ENAME), SUBSTR(ENAME, -1,1) FROM EMPLOYEES WHERE INSTR (ENAME, 1,1) = 'n';
D:SELECT ENAME, LENGTH(ENAME), SUBSTR(ENAME, -1,1) FROM EMPLOYEES WHERE INSTR (ENAME, -1,1) = 'n';
DRAG DROP Click the Task button.
You need to replicate a table from a master to a slave. The master and slave copies of the table will have different number of columns. Which two conditions must be true?()
A:Each extra column in the copy with more columns must not have a default value
B:Columns that are common to both versions of the table must be defined in the same order on the master and the slave
C:The slave database cannot have more columns than the master. Only the master database can have more columns
D:Columns that are common to both versions of the table must come first in the table definition, before any additional columns are additional columns are defined on either server
E:The master database cannot have more columns than the slave. Only the slave deatbase can have more columns
Which is a valid CREATE TABLE statement? ()
A:CREATE TABLE EMP9$# AS (empid number(2));
B:CREATE TABLE EMP*123 AS (empid number(2));
C:CREATE TABLE PACKAGE AS (packid number(2));
D:CREATE TABLE 1EMP_TEST AS (empid number(2));
Which three actions are required to configure the Flashback Database?()  
A: set Flash Recovery Area
B: enable Flashback logging
C: create FLASHBACK tablespace
D: start the database in the ARCHIVELOG mode
E: start the database in the NOARCHIVELOG mode
An index called ORD_CUSTNAME_IX has been created on the CUSTNAME column in the ORDERS table using the following command:   SQL>CREATE INDEX ord_custname_ix ON orders(custname);   The ORDERS table is frequently queried using the CUSTNAME column in the WHERE clause. You want to check the impact on the performance of the queries if the index is not available. You do not want the index to be dropped or rebuilt to perform this test.  Which is the most efficient method of performing this task?()
A: disabling the index
B: making the index invisible
C: making the index unusable
D: using the MONITORING USAGE clause for the index
When you try to start the Database Control by using the emctl start dbconsole command the following error is displayed:  TZ set to America/New_york  OC4J Configuration issue.  /u01/app/oracle/product/10.1.0/db_1/oc4j/j2ee/OC4J_DBConsole_orcl.us.oracle.com not found.  Which two environment variables do you need to set appropriately to avoid such errors and start the Database Control successfully?()
A:NLS_LANG
B:ORACLE_SID
C:ORACLE_HOME
D:ORACLE_BASE
E:LD_LIBRARY_PATH
The /export/home file system is running out of space on c0t0d0s7. You added a new disk to the system and it is named c1t1d0. You need to move the /export/home file system to slice 7 on the new disk.  Which command is used to move the data from /export/home to the new disk after booting the server to the single-user milestone? ()
A:A
B:B
C:C
D:D
You work as a database administrator for Supportcenter.cn. You want to be notified when the number of disk I/O increases by 10% of what it was yesterday. You create a baseline metric for yesterday’s disk I/O performance. How do you use the baseline metrics to achieve your objective?()
A:Save the baseline in the database
B:Save the baseline in the Database Control Home Page
C:Create a procedure to read and apply the baseline to disk I/O metrics
D:Apply the baseline to the disk I/O metrics in the Mange Metrics page
E:Alter the disk I/O metrics to include baseline by using the ALTER METRICScommnd
Oracle创建()来处理连接到实例的用户进程的请求。
A:服务器进程
B:SGA
C:应用程序代码
D:网络服务进程
You set the following parameters in the parameter file and restarted the database:MEMORY_MAX_TARGET=0MEMORY_TARGET=500M PGA_AGGREGATE_TARGET=90MSGA_TARGET=270M Which two statements are true about these parameters after the database instance is restarted()
A:The MEMORY_MAX_TARGET parameter is automatically set to 500 mb.
B:The pga_AGGREGATE_TARGET and sga_TARGET parameters are automatically set to zero.
C:The value of the MEMORY_MAX_TARGET parameter remains zero until it is changed manually.
D:The lower bounds of pga_AGGREGATE_TARGET and sga_TARGET parameters are set to 90 nb and270 mb, respectively
In your Oracle 10g database , you have scheduled a job to update the optimizer statistics at 05:00 pm every Friday. The job has successfully completed. Which three pieces of information would you check to confirm that the statistics have been collected?()
A:average row size
B:last analyzed date
C:size of table in bytes
D:size of table in database blocks
E:number of free blocks in the free list
F:number of extents present in the table
You have a range-partitioned table in your database. Each partition in the table contains the sales data for a quarter.  The partition related to the current quarter is modified frequently and other partitions undergo fewer data manipulations. The preferences for the table are set to their default values. You collect statistics for the table using the following command in regular intervals: SQL> EXECUTE  DBMS_STATS.GATHER_TABLE_STATS(’SH’,’SALES’,GRANULARITY=>’GLOBAL’);   You need statistics to be collected more quickly.  What can you do to achieve this?()
A: Set DYNAMIC_SAMPLING to level 4
B: Set the STATISTICS_LEVEL parameter to BASIC
C: Set the INCREMENTAL value to TRUE for the partition table
D: Increase the value of STALE_PERCENT for the partition table
Examine the command:   ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY) COLUMNS;   What does the command accomplish?()
A:Creates an additional copy of the database online redo log files. 
B:Stores the primary key column values of each row involved in a DML operation in the online redo log files. 
C:Stores the primary key column values of each row involved in a DML operation in the supplemental log files. 
D:Stores the old and new primary key column values of each row involved in a DML operation only when the primary key is modified in the online redo log files.
Given: A programmer iterates over the TreeSet and prints the name of each Drink object. What is the result?()
A:Tea
B:Coffee
C:CoffeeTea
D:Compilation fails
Given: Which two, independently, will allow Sub to compile?()
A:
B:
C:
D:
E:
Automatic Shared Memory Management (ASMM) has been enabled for your database instance. The initialization parameters for the components that are managed by ASMM are not set. After observing the effectsof ASMM, you executed the following command: SQL> ALTER SYSTEM SET DB_CACHE_SIZE = 100M; Which statement is true in this scenario( )
A:The minimum memory size for the database buffer cache is set to 100 mb.
B:The maximum memory size that can be obtained by the database buffer cache during ASMM is set to 100mb
C:The minimum memory size allocated for a server process in the database buffer cache in dedicated modeis set to 100 mb.
D:The maximum memory size from the database buffer cache that can be released for dynamic distributionduring ASMM is set to 100 mb
Which two statements are true about setting the FAST_START_MTTR_TARGET initialization parameter to anonzero value()
A:The MTTR advisor will be disabled.
B:Automatic checkpoint tuning will be enabled.
C:The value for the LOG_CHECKPOINT_INTERVAL initialization parameter will be override the value forFAST_START_MTTR_TARGET.
D:The time taken to recover the instance after the crash is always exactly the same as the value given for theinitialization parameter.
Examine the structure of the STUDENTS table: STUDENT_ID NUMBER NOT NULL, Primary Key STUDENT_NAME VARCHAR2(30) COURSE_ID VARCHAR2(10) NOT NULL MARKS NUMBER START_DATE DATE FINISH_DATE DATE You need to create a report of the 10 students who achieved the highest ranking in the course INT SQL and who completed the course in the year 1999. Which SQL statement accomplishes this task? ()
A:SELECT student_ id, marks, ROWNUM "Rank" FROM students WHERE ROWNUM <= 10 AND finish_date BETWEEN '01-JAN-99' AND '31-DEC-99 AND course_id = 'INT_SQL' ORDER BY mark DESC;
B:SELECT student_id, marks, ROWID "Rank" FROM students WHERE ROWID <= 10 AND finish_date BETWEEN '01-JAN-99' AND '31-DEC-99' AND course_id = 'INT_SQL' ORDER BY mark;
C:SELECT student_id, marks, ROWNUM "Rank" FROM (SELECT student_id, marks FROM students WHERE ROWNUM <= 10 AND finish_date BETWEEN '01-JAN-99' AND '31-DEC- 99' AND course_id = 'INT_SQL' ORDER BY mark DESC;
D:SELECT student_id, marks, ROWNUM "Rank" FROM (SELECT student_id, marks FROM students WHERE (finish_date BETWEEN '01-JAN-99 AND '31-DEC-99' AND course_id = 'INT_SQL' ORDER BY marks DESC) WHERE ROWNUM <= 10;
E:SELECT student id, marks, ROWNUM "Rank" FROM (SELECT student_id, marks FROM students ORDER BY marks) WHERE ROWNUM <= 10 AND finish date BETWEEN '01-JAN-99' AND '31-DEC-99' AND course _ id 'INT_SQL';
What two statements are true regarding the recommendations received from the SQL Access Advisor?()
A: It cannot generate recommendations that support multiple workload queries.
B: It can recommend partitioning on tables provided that the workloads have some predicates and joins on the columns of the NUMBER or DATE type.
C: It can recommend partitioning only on tables that have at least 10,000 rows.
D: It can recommend only B-tree indexes and not bitmap or function-based indexes.
What is true regarding direct-load insert?()
A:A direct-load insert can be invoked by suing the APPEND hint.
B:Inserting using the NOLOGGING option is the default for direct-load inserts.
C:All data loaded using direct-load insert is loaded below the high-water mark.
D:An object that is modifies using parallel direct-load can be queried within the same Transaction.
Identify the memory component from which memory may be allocated for: () 1: Session memory for the shared server  2: Buffers for I/O slaves  3: Oracle Database Recovery Manager (RMAN) backup and restore operations 
A:Large Pool
B:Redo Log Buffer
C:Database Buffer Cache
D:Program Global Area (PGA)
Which three statements about performance analysis by SQL Performance Analyzer are true?()
A: It detects changes in SQL execution plans.
B: It produces results that can be used to create the SQL plan baseline.
C: The importance of SQL statements is based on the size of the objects accessed.
D: It generates recommendations to run SQL Tuning Advisor to tune regressed SQLs.
E: It shows only the overall impact on workload and not the net SQL impact on workload.
Exhibit: View the Exhibit to see the structure of the EMPLOYEES and DEPARTMENTS tables.  Your organization plans to dissolve the department with department ID 30. You execute the following command to delete rows from the DEPARTMENTS table: SQL>delete from DEPARTMENTS where DEPT_ID = 30;  The command fails and displays the following error:  ERROR at line 1:  ORA-02292: integrity constraint (HR.SYS_C005374) violated - child record found Which two actions would you take to overcome this error?()
A:A
B:B
C:C
D:D
E:E
F:F
Given that Triangle implements Runnable, and: Which two statements, inserted independently at both lines 35 and 41, tend to allow both threads totemporarily pause and allow the other thread to execute?()
A:Thread.wait();
B:Thread.join();
C:Thread.yield();
D:Thread.sleep(1);
E:Thread.notify();
Which two statements are true about a job chain?()
A:A job chain can contain a nested chain of jobs.
B:The jobs in a job chain cannot have more than one dependency.
C:A job of the CHAIN type can be run using event-based or time-based schedules.
D:The jobs in a job chain can be executed only by using the events generated by the Scheduler
下面有关子查询,说法错误的是()。
A:子查询必须使用括号括起来,否则无法确定其开始和结束
B:在子查询中,可以使用函数
C:在子查询中,可以使用排序子句order by
D:在子查询中,还可以包含子查询,称为嵌套子查询,但是最多嵌套255层