出自:Oracle认证

描述Oracle的逻辑存储结构的组成及相互之间的关系。
You need to design a student registration database that contains several tables storing academic information. The STUDENTS table stores information about a student. The STUDENT_GRADES table stores information about the student's grades. Both of the tables have a column named STUDENT_ID. The STUDENT_ID column in the STUDENTS table is a primary key. You need to create a foreign key on the STUDENT_ID column of the STUDENT_GRADES table that points to the STUDENT_ID column of the STUDENTS table. Which statement creates the foreign key?()
A:CREATE TABLE student_grades (student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), CONSTRAINT student_id_fk REFERENCES (student_id) FOREIGN KEY student (student_id));
B:CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id));
C:CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), CONSTRAINT FOREIGN KEY (student_id) REFERENCES student (student_id));
D:CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), CONSTRAINT student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id));
由于软硬件问题导致的读写数据库文件失败,属于()故障。
A:实例
B:语句
C:用户进程
D:介质
Examine the structure of the EMPLOYEES and NEW_EMPLOYEES tables: Which UPDATE statement is valid?()
A:
B:
C:
D:
You execute the following command to start an Automatic Storage Management (ASM) instance:   SQL>STARTUP;   In which of the following modes will the ASM instance start?()
A: OPEN
B: MOUNT
C: NORMAL
D: NOMOUNT
When a critical error occurs, which module in Enterprise Manager will automatically collect diagnostics data from WebLogic Server?()
A:Reports
B:Compliance
C:Support Workbench
D:Asset Discovery
E:visual creation of JDBC DataSource object to Oracle RAC
Examine the structure of the EMPLOYEES, DEPARTMENTS, and LOCATIONS tables. EMPLOYEES NOT NULL, EMPLOYEE_ID NUMBER Primary Key VARCHAR2 EMP_NAME (30) VARCHAR2 JOB_ID (20) SALARY NUMBER References MGR_ID NUMBER EMPLOYEE_ID column DEPARTMENT_ID NUMBER Foreign key to DEPARTMENT_ID column of the DEPARTMENTS table DEPARTMENTS NOT NULL, Primary DEPARTMENT_ID NUMBER Key VARCHAR2 DEPARTMENT_NAME (30) References NGR_ID MGR_ID NUMBER column of the EMPLOYEES table Foreign key to LOCATION_ID NUMBER LOCATION_ID column of the LOCATIONS table LOCATIONS NOT NULL, Primary LOCATION_ID NUMBER Key VARCHAR2 CITY |30) Which two SQL statements produce the name, department name, and the city of all the employees who earn more then 10000?()
A:SELECT emp_name, department_name, city FROM employees e JOIN departments d USING (department_id) JOIN locations 1 USING (location_id) WHERE salary > 10000;
B:SELECT emp_name, department_name, city FROM employees e, departments d, locations 1 JOIN ON (e.department_id = d.department id) AND (d.location_id =1.location_id) AND salary > 10000;
C:SELECT emp_name, department_name, city FROM employees e, departments d, locations 1 WHERE salary > 10000;
D:SELECT emp_name, department_name, city FROM employees e, departments d, locations 1 WHERE e.department_id = d.department_id AND d.location_id = 1.location_id AND salary > 10000;
E:SELECT emp_name, department_name, city FROM employees e NATURAL JOIN departments, locations WHERE salary > 10000;
Which of the following represents the correct way to perform an online recovery of datafile 4, which is assigned to a tablespace called USERS?()  
A: shutdown restore datafile 4; recover datafile 4; alter database open;
B: Sql alter database datafile 4 offline; restore datafile 4; recover datafile 4; alter database open;
C: Sql alter database datafile 4 offline; restore datafile 4; Sql alter database datafile 4 online;
D: Sql alter database datafile 4 offline; restore database datafile 4; recover database datafile 4;Sql alter database datafile 4 online;
E: Sql alter database datafile 4 offline; restore datafile 4; recover datafile 4; Sql alter database datafile 4 online;
Users notify you that their application is failing every time they try to add new records. Because of poor application design, the actual ORA error message is unavailable.  What might be the problem?()
A: The application user has exceeded their undo quota.
B: The FLASHBACK GUARANTEE option is set on the undo tablespace.
C: The table is currently being queried by a Flashback Transaction Query operation.
D: The table is currently being queried by a Flashback Versions Query operation.
E: The RETENTION GUARANTEE option is set on the undo tablespace.
What elements of globalization can be explicitly defined using the NLS_LANG environment variable?()
A: NLS_LANGUAGE
B: NLS_SORT
C: NLS_CALENDAR
D: NLS_CHARACTERSET
E: NLS_TERRITORY
The EMP table exists in your schema. You want to execute the following query: SELECT ename, sal FROM emp AS OF TIMESTAMP (SYSTIMESTAMP - INTERVAL '6' MINUTE) WHERE ename = 'ALLEN'; What are the minimum requirements for the statement to execute successfully? ()
A:ARCHIVELOG mode must be enabled
B:Row Movement must be enabled for the table
C:FLASHBACK must be set to ON for the database
D:The UNDO_MANAGEMENT parameter must be set to AUTO
E:The UNDO_RETENTION parameter must be set appropriately
Given the following steps, which would be the correct order to create a backup of an Oracle database in NOARCHIVELOG mode?() 1.shutdown immediate from RMAN 2.Log into RMAN 3.startup mount from RMAN 4.backup database 5.alter database open 6.backup database plus archivelog delete input
A:2,3,1,4,5
B:2,1,3,6,5
C:1,3,5,4
D:2,1,3,5,6
E:2,1,3,4,5
You have enabled resumable space allocation in your database by setting the RESUMABLE_TIMEOUTparameter set to a nonzero value.Which three statements about resumable space allocation are true? ()(Choose three.)
A:Even with resumable space allocation enabled for your database, you can disable resumable space allocation for a single session.
B:A resumable statement is suspended only if an out of space error occurs.
C:When a resumable statement is suspended, the transaction that contains the statement is also suspended.
D:A resumable statement can only be suspended and resumed once during the execution of the statement.
E:You can query the V$SESSION_WAIT dynamic performance view to identify the statements that are suspended for a session
You work as a database administrator for Supportcenter.cn. Your listener process, L1, is currently listening to three databases: CertK INDB04, SupportCenter DB05 and SupportCenter DB06. Using Database Configuration Assistant (DBCA) you create one more database, SupportCenter DB07, and enable dynamic registration. Which two commands of Listener Control Utility (lsnrct1) would you use to determine whether the dynamic registration occurred for the database, SupportCenter DB07, with the L1 listener process?()
A:SHOW L1
B:SPAWN L1
C:STATUS L1
D:SERVICES L1
E:STATUS LISTENER
F:SERVICES LISTENER
G:SHOWcurrent_listener
On Jan 11, 2005 at 2:30 P.M., an erroneous update operation modified all the values of column LASTNAME in the EMPLOYEE table in the Scott schema to an empty string. You are the system administrator, and you want to return the original values in the table. To do so, you decided to flash back the table. Which two options can you use to flash back a table?()
A: by using Oracle Enterprise Manager
B: by issuing the FLASHBACK TABLE statement at the RMAN prompt
C: by issuing the FLASHBACK TABLE statement at the SQL prompt
D: by issuing the FLASHBACK TABLE statement at the LSNRCTL prompt
You have the following requirements in relation to the detection of block corruption for your database instance: 1. Check for logical self-consistency of data blocks when modified in memory. 2. Checksums are calculated before and after the block change. 3. Checks are performed for the lost writes to the physical standby database. Which method would help you perform the above checks automatically? ()
A:Set the DB_SECUREFILE parameter to PERMITTED
B:Set the DB_ULTRA_SAFE parameter to DATA_ONLY
C:Set the DB_LOCK_CHECKSUM parameter to TYPICAL
D:Set the DB_LOST_WRITE_PROTECT parameter to TYPICAL
You work as a database administrator for Certkiller .com. After being hired, you find that there is only one database that is functional and that is being access by the applications. You want to create a replicate of the database, to be used for testing purposes.  What is the best method to create a replica?()
A:A
B:B
C:C
D:D
You are using an Automatic Storage Management (ASM) instance to manage the files of your production database. You have two disk groups, DG1 and DG2, with one device each. In the parameter file of the production database, the following parameters have been specified: DB_CREATE_ONLINE_LOG_DEST_1 = ’+dg1’  DB_CREATE_ONLINE_LOG_DEST_2 = ’+dg2’  What would be the impact of this setting?()
A:When a new log group is added, it would have one member in each disk group.
B:When a new log group is added, it would have two members in each disk group.
C:When a new tablespace is added, it would have one data file in each disk group.
D:When a new log file is added, it would have one member spread across the disk groups.
You are working on Oracle Database 10g, which is in ARCHIVELOG mode. All the archived log files are intact.  In which scenario would performing a recovery require the opening of the database with the RESETLOGS option?()
A:loss of a tempfile
B:loss of a system data file
C:loss of one of the control files
D:loss of one of the tablespaces
E:loss of a member from each redo log group
F:loss of the only member of an unarchived redo log group
Evaluate the set of SQL statements: What is true about the set?()
A:The DESCRIBE DEPT statement displays the structure of the DEPT table.
B:The ROLLBACK statement frees the storage space occupies by the DEPT table.
C:The DESCRIBE DEPT statement returns an error ORA-04043: object DEPT does not exist.
D:The DESCRIBE DEPT statement displays the structure of the DEPT table only if there is a COMMIT statement introduced before the ROLLBACK statement.
You work as a database administrator for Supportcenter.cn. In your production database, the size of Database Buffer Cache needs to be increased immediately for the current as well as future instances of the database. The Oracle instance has been configured to accommodate any changes in the size of the memory structures. At this is production database, you want to accomplish this task with no impact on the user’s connections. Which activity must you have completed before accomplishing this task?()
A:You must have started the database instance in restricted mode.
B:You must have started the database instance inNORMALmode.
C:You must have started the database instance with server parameter file.
D:You must have started the database instance but must not have mounted.
E:You must have started the database instance but must not have opened.
如果一个表空间脱机在哪里查看?()
A:dba_tablespaces
B:v$ tablespaces
C:v$database
D:dba_datafile_status
You are maintaining the SALES database for eSoft Corporation. You have not configured ASMM on the database. You want to know what size of the SGA will provide the best performance.  Which advisor would you use to determine the suitable size of the SGA?()
A: SQL Tuning Advisor
B: Undo Advisor
C: ADDM
D: Memory Advisor
Which of the following statements is true when the database is in ARCHIVELOG mode and tablespaces are in hot backup mode?()
A: Archive log generation is suspended until the tablespaces are taken out of hot backup mode. 
B: Datafiles are not written to during hot backups.
C: Changes to the database are cached during the backup and not written to the datafiles to ensure that the datafiles are consistent when recovered.
D: The datafile headers are not updated during the backup.
E: The way data is written to the online redo logs is unchanged during the backup.
Given: 12.String csv = "Sue,5,true,3"; 13.Scanner scanner = new Scanner( csv ); 14.scanner.useDelimiter(",");15. int age = scanner.nextInt(); 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.
You need to display the last names of those employees who have the letter "A" as the second character in their names.Which SQL statement displays the required results?()
A:SELECT last_name FROM EMP WHERE last_ name LIKE '_A%';
B:SELECT last_name FROM EMP WHERE last name ='*A%'
C:SELECT last_name FROM EMP WHERE last name ='_A%';
D:SELECT last_name FROM EMP WHERE last name LIKE '*A%'
假设在一个表的3个字段NAME、SEX和BIRTH中分别保存姓名、性别和出生年月数据,则应当为这三个字段分别创建()索引。
A:全部创建B树索引
B:全部创建位图索引
C:分别创建B树索引、位图索引和位图索引
D:分别创建B树索引、位图索引和给予函数的索引
You issue this statement:ALTER DATABASE BACKUP CONTROLFILE TO TRACE;  What does the statement generate?()
A:A text copy of the control file.
B:A binary copy of the control file.
C:A file containing a SQL statement which will re-create the database.
D:A file containing a SQL statement which will re-create the control file.
You work as a database administrator for Supportcenter.cn. You are working on Oracle Database 10g. To forward client connections to an instance, the listener must know information such as the name of the instance and where the instance’s ORACLE_HOME is located. How does the listener get this information?()
A:It gets it from the parameter file.
B:The listener prompts for details on startup.
C:The listener gathers information from the control file.
D:The instance automatically registers with the default listener.
E:The listener gets this information through thelistener.orafile.
Click the Exhibit button. Which statement is true about the classes and interfaces in the exhibit?()
A:Compilation will succeed for all classes and interfaces.
B:Compilation of class C will fail because of an error in line 2.
C:Compilation of class C will fail because of an error in line 6.
D:Compilation of class AImpl will fail because of an error in line 2.