出自:Oracle认证

Which three possible values can be set for the TIME_ZONE session parameter by using the ALTER SESSION command?()
A: ’os’
B: local
C: -8:00’
D: dbtimezone Li
E: ’Australia’
()是对事物的符号表示,是用于表示事物的未经加工的原始素材。
A:信息
B:数据
C:文本
D:文件
在循环语句中,退出循环体的关键字是()。
A:BREAK
B:EXIT
C:UNLOAD
D:GO
Given: Which method will complete this class?()
A:public int compareTo(Object o){}
B:public int compareTo(Score other){}
C:public int compare(Score s1,Score s2){}
D:public int compare(Object o1,Object o2){}
Examine the data in the EMPLOYEES and EMP_HIST tables: EMPLOYEES NAME DEPT_ID MGR_ID JOB_ID SALARY EMPLOYEE_ID 101 Smith 20 120 SA_REP 4000 102 Martin 10 105 CLERK 2500 103 Chris 20 120 IT_ADMIN 4200 104 John 30 108 HR_CLERK 2500 105 Diana 30 108 IT_ADMIN 5000 106 Smith 40 110 AD_ASST 3000 108 Jennifer 30 110 HR_DIR 6500 110 Bob 40 EX_DIR 8000 120 Ravi 20 110 SA_DIR 6500 EMP HIST EMPLOYEE_ID NAME JOB_ID SALARY 101 Smith SA_CLERK 2000 103 Chris IT_CLERK 2200 104 John HR_CLERK 2000 106 Smith AD_ASST 3000 108 Jennifer HR_MGR 4500 The EMP_HIST table is updated at the end of every year. The employee ID, name, job ID, and salary of each existing employee are modified with the latest data. New employee details are added to the table. Which statement accomplishes this task?()
A:UPDATE emp_hist SET employee_id, name, job_id, salary = (SELECT employee_id, name, job_id, salary FROM employees) WHERE employee_id IN (SELECT employee_id FROM employees);
B:MERGE INTO emp_hist eh USING employees e ON (eh.employee_id = e.employee_id) WHEN MATCHED THEN UPDATE SET eh.name = e.name, eh.job_id = e.job_id, eh.salary = e.salary WHEN NOT MATCHED THEN INSERT VALUES (e.employee id, e.name, job id, e.salary);
C:MERGE INTO emp_hist eh USING employees e ON (eh.employee_id = e.employee_id) WHEN MATCHED THEN UPDATE emp hist SET eh.name = e.name, eh.job_id = e.job_id, eh.salary = e.salary WHEN NOT MATCHED THEN INSERT INTO emp_hist VALUES (e.employees_id, e.name, e.job_id, e.salary);
D:MERGE INTO emp_hist eh USING employees e WHEN MATCHED THEN UPDATE emp_hist SET eh.name = e.name, eh.job_id = e.job_id, eh.salary = e.salary WHEN NOT MATCHED THEN INSERT INTO emp_hist VALUES (e.employees_id, e.name, e.job_id, e.salary);
()表示虽然iBATIS向数据库发送了SQL语句,但是,只有在访问该对象时才会执行该SQL语句。
A:立即加载
B:提交事务
C:回滚事务
D:延迟加载
Users in your production database complain that they are getting the following error message while trying to insert rows into the ORDERS table:  ERROR at line 1:  ORA/x7f01654: unable to extend index USERS.ORDERS_IND by 8 in tablespace INDEXES  While investigating, you find that the INDEXES tablespace has run out of space and there is no more free space on the disk where the data files are available.  Which two actions could you perform to overcome this error without affecting the queries that are currently being executed?()
A:drop and re­create the index
B:coalesce the ORDERS_IND index
C:coalesce the INDEXES tablespace
D:drop and re­create the ORDERS table
E:rebuild the index online and move it to another tablespace
You create a data block based on a relation table containing a REF column. You select the REF column for your form module. Which statement about the REF column is true?()
A:It is created as a nondisplay item. 
B:The Lock Record property is set to Yes. 
C:It cannot be referenced in item level triggers. 
D:It is placed on the canvas with the highest sequence number.
A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar.  Which three, taken independently, will allow the developer to use the Paper class while compiling the Bookclass?()
A:The JAR file is located at $JAVA_HOME/jre/classes/myLib.jar.
B:The JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jar..
C:The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar/Paper.class.
D:The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar.
E:The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac - cp /foo/myLib.jar/Paper Book.java.
F:The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac - classpath /foo/myLib.jar Book.java
Which are the prerequisites for performing flashback transactions on your database?()
A: Undo retention guarantee for the database must be configured.
B: Supplemental log must be enabled for the primary key.
C: Supplemental log must be enabled.
D: Execute permission on the DBMS_FLASHBACK package must be granted to the user.
Which console allows me to choose between stopping a WebLogicmsanaged server immediately versus quiescing it and stopping the server when all requests complete ?()
A: Grid Control Console
B: Fusion Middleware Console
C: WebLogic Administration Console
D: CAMM Console
One of the tablespaces is read-only in your database. The loss of all control files forced you to re-create the control file. Which operation do you need to perform after re-creating the control file and opening the database?()
A: drop and re-create the read-only tablespaces
B: rename the read-only data files to their correct file names
C: change the tablespace status from read/write to read-only
D: re-create the read-only tablespace because it is automatically removed
Evaluate these two SQL statements: SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY salary DESC; SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY 2 DESC; What is true about them?()
A:The two statements produce identical results.
B:The second statement returns a syntax error.
C:There is no need to specify DESC because the results are sorted in descending order by default.
D:The two statements can be made to produce identical results by adding a column alias for the salary column in the second SQL statement.
Given: What is the result?()
A:Afoo Afoo
B:Afoo Bfoo
C:Bfoo Afoo
D:Bfoo Bfoo
E:Compilation fails.
F:An exception is thrown at runtime.
You are working on a test database where instance recovery takes a considerable amount of time. How can reduce the recovery time?()
A:By multiplexing the control files
B:By multiplexing the redo log files
C:By decreasing the size of redo log files
D:By configuring mean time to recover (MTTR) to a lower value
E:By setting the UNDO_RETENTION parameter to a higher value
Which two are true about aggregate functions?()
A:You can use aggregate functions in any clause of a SELECT statement.
B:You can use aggregate functions only in the column list of the select clause and in the WHERE clause of a SELECT statement.
C:You can mix single row columns with aggregate functions in the column list of a SELECT statement by grouping on the single row columns.
D:You can pass column names, expressions, constants, or functions as parameter to an aggregate function.
E:You can use aggregate functions on a table, only by grouping the whole table as one single group.
F:You cannot group the rows of a table by more than one column while using aggregate functions.
Examine the SQL statement that creates ORDERS table: CREATE TABLE orders (SER_NO NUMBER UNIQUE, ORDER_ID NUMBER, ORDER_DATE DATE NOT NULL, STATUS VARCHAR2(10) CHECK (status IN ('CREDIT', 'CASH')), PROD_ID NUMBER REFERENCES PRODUCTS(PRODUCT_ID), ORD_TOTAL NUMBER, PRIMARY KEY (order_id, order_date)); For which columns would an index be automatically created when you execute the above SQL statement? ()
A:SER_NO
B:ORDER_ID
C:STATUS
D:PROD_ID
E:ORD_TOTAL
F:composite index on ORDER_ID and ORDER_DATE
Evaluate this SQL statement: SELECT e.employee_id, (.15* e.salary) + (.5 * e.commission_pct) + (s.sales amount * (.35 * e.bonus)) AS CALC_VALUE FROM employees e, sales s WHERE e.employee_id = s.emp_id; What will happen if you remove all the parentheses from the calculation?()
A:The value displayed in the CALC_VALUE column will be lower.
B:The value displayed in the CALC_VALUE column will be higher.
C:There will be no difference in the value displayed in the CALC_VALUE column.
D:An error will be reported.
Which of the following cannot be used as input to the SQL Tuning Advisor?()
A: A single SQL statement provided by a user
B: An existing SQL Tuning Set (STS)
C: A preprocessed Database Replay workload
D: A schema name
E: SQL statement identified in EM as using excessive resources
Which two statements are true regarding the functionality of the remap command in ASMCMD?()
A: It repairs blocks that have read disk I/O errors.
B: It checks whether the alias metadata directory and the file directory are linked correctly.
C: It repairs blocks by always reading them from the mirror copy and writing them to the original location.
D: It reads the blocks from a good copy of an ASM mirror and rewrites them to an alternate location on disk if the blocks on the original location cannot be read properly.
View the Exhibit for some of the parameter settings. You start a session and issue the following command: SQL>CREATE INDEX emp_ename ON emp(ename) TABLESPACE users INVISIBLE; What is the outcome of the above command?()
A:The index is not used by the optimizer but is maintained during DML operations.
B:The index is not used by the optimizer and is not maintained during DML operations.
C:The index is used by the optimizer only if a hint is specified in the query statement and is maintained during DML operations.
D:The index is used by the optimizer only if a hint is specified in the query statement but is not maintained during DML operations.
The CUSTOMERS table has these columns: CUSTOMER_ID NUMBER(4) NOT NULL CUSTOMER_NAME VARCHAR2(100) NOT NULL STREET_ADDRESS VARCHAR2(150) CITY_ADDRESS VARCHAR2(50) STATE_ADDRESS VARCHAR2(50) PROVINCE_ADDRESS VARCHAR2(50) COUNTRY_ADDRESS VARCHAR2(50) POSTAL_CODE VARCHAR2(12) CUSTOMER_PHONE VARCHAR2(20) The CUSTOMER_ID column is the primary key for the table. Which two statements find the number of customers?()
A:SELECT TOTAL(*) FROM customer;
B:SELECT COUNT(*) FROM customer;
C:SELECT TOTAL(customer_id) FROM customer;
D:SELECT COUNT(customer_id) FROM customer;
E:SELECT COUNT(customers) FROM customer;
F:SELECT TOTAL(customer_name) FROM customer;
Examine the description of the MARKS table: STD_ID NUMBER(4) STUDENT_NAME VARCHAR2(30) SUBJ1 NUMBER(3) SUBJ2 NUMBER(3) SUBJ1 and SUBJ2 indicate the marks obtained by a student in two subjects. Examine this SELECT statement based on the MARKS table: SELECT subj1+subj2 total_marks, std_id FROM marks WHERE subj1 > AVG(subj1) AND subj2 > AVG(subj2) ORDER BY total_ marks; What is the result of the SELECT statement? ()
A:The statement executes successfully and returns the student ID and sum of all marks for each student who obtained more than the average mark in each subject.
B:The statement returns an error at the SELECT clause.
C:The statement returns an error at the WHERE clause.
D:The statement returns an error at the ORDER BY clause.
You are tuning RMAN to optimize performance.You want tape I/O to be asynchronous when you perform tape backups. Which action should you take?()
A:Set the BACKUP_TAPE_IO_SLAVES parameter to FALSE
B:Set the BACKUP_TAPE_IO_SLAVES parameter to TRUE
C:Use compression when performing tape backups
D:Configure multiple SBT channels
Given: Which three are true?()
A:Cat is-a Animal
B:Cat is-a Jumper
C:Dog is-a Animal
D:Dog is-a Jumper
E:Cat has-a Animal
F:Beagle has-a Tail
Every Sunday, consistent backups are performed on your database. Because of a user error, you performed an incomplete recovery on Tuesday and opened the database with the RESETLOGS option. A user error occurs again on Thursday, which necessitates an incomplete recovery. Sunday’s backup is the most recent backup available.What would you do in this scenario?()
A: recovery cannot be performed because a backup was not performed after the last incomplete recovery
B: restore all the files from Sunday’s backup, and then recover up to the point in time when the RESETLOGS operation was performed on Tuesday
C: restore all the files from Sunday’s backup, and open the database to reset the database to the point in time when the backup was performed on Sunday
D: restore all the files from Sunday’s backup, and then perform an incomplete recovery up to the point in time when the user error occurred on Thursday
Given: What is the result?()
A:null
B:finally
C:null finally
D:Compilation fails
E:finally exception
在SQL语句执行前的解析阶段,要判断其中涉及的表名和列名是否合法,判断所依据的信息存放在()
A:PGA
B:SHARED POOL
C:DATABASE BUFFER CACHE
D:REDO LOG BUFFER CACHE
E:LARGE POOL
Examine the data from the ORDERS and CUSTOMERS table. Which SQL statement retrieves the order ID, customer ID, and order total for the orders that are placed on the same day that Martin places his orders?()
A:
B:
C:
D:
Which two statements regarding compressed backups in Recovery Manager (RMAN) are true?()
A: Backup compression is disabled by default.
B: Backup compression can be used with both backup sets and image copies.
C: Backup compression cannot be enabled using the CONFIGURE command.
D: Backup compression works only if the COMPATIBILITY parameter is set to 9.0.0.0 or higher.
E: Backup compression applies to only backup sets.
F: Backup compression applies to only image copies.