出自: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));
RMAN offers the equivalent of the SQL command alter database backup controlfile to trace.()
A: True
B: False
WebLogic Node Manager can be used to manage the life cycle of WebLogic servers. WebLogic Node Manager is installed and started ().
A:Per Machine
B:Per Domain
C:Per Managed Server
D:Per Admin Server
数据库必须拥有至少几个控制文件()
A:1
B:2
C:3
D:4
E:由初始参数指定
You have the following online redo log configuration:    Group       Member   1     ’/disk1/oradata/redo01a.log’   2     ’/disk2/oradata/redo02a.log’   3     ’/disk3/oradata/redo03a.log’   You decide to multiplex the online redo log groups for recovery of redo log files in case of any disaster. Which two statements will you NOT issue to multiplex the online redo log files?()
A: ALTER DATABASE ADD LOGFILE MEMBER ’/disk1/oradata/redo01b.log’ TO GROUP 1;
B: ALTER DATABASE ADD LOGFILE MEMBER ’/disk2/oradata/redo01b.log’ TO GROUP 1;
C: ALTER DATABASE ADD LOGFILE MEMBER ’/disk1/oradata/redo02b.log’ TO GROUP 2;
D: ALTER DATABASE ADD LOGFILE MEMBER ’/disk2/oradata/redo02b.log’ TO GROUP 2;
E: ALTER DATABASE ADD LOGFILE MEMBER ’/disk1/oradata/redo3b.log’ TO GROUP 3;
F: ALTER DATABASE ADD LOGFILE MEMBER ’/disk2/oradata/redo3b.log’ TO GROUP3;
 The IT department is creating a human resources application that will require several new tables. You need to develop a standard alone executable that will defines these tables and their relationships. Which developer/2000 component could you use to create the executable?()
A:Procedure builder. 
B:Query builder. 
C:Schema builder. 
D:Form builder. 
E:Project builder. 
F:Transactional builder.
下列哪个对象属于模式对象()。
A:数据段
B:盘区
C:表
D:表空间
Which three statements are true about Oracle Data Pump export and import operations?()
A:You can detach from a data pump export job and reattach later.
B:Data pump uses parallel execution server processes to implement parallel import.
C:Data pump import requires the import file to be in a directory owned by the oracle owner.
D:The master table is the last object to be exported by the data pump.
E:You can detach from a data pump import job and reattach later.
The user Sue issues this SQL statement: GRANT SELECT ON sue. EMP TO alice WITH GRANT OPTION; The user Alice issues this SQL statement: GRANT SELECT ON sue. EMP TO reena WITH GRANT OPTION; The user Reena issues this SQL statement: GRANT SELECT ON sue. EMP TO timber; The user Sue issues this SQL statement: REVOKE select on sue. EMP FROM alice; For which users does the revoke command revoke SELECT privileges on the SUE.EMP table?()
A:Alice only
B:Alice and Reena
C:Alice, Reena, and Timber
D:Sue, Alice, Reena, and Timber
in your database instance, the STATISTICS_LEVEL initialization parameter is set to BASIC.  What is the impactof this setting()
A:Optimizer statistics are collected automatically.
B:Only timed operating system (OS) statistics and plan execution statistics are collected.
C:The snapshots for the Automatic Workload Repository (AWR) are not generated automatically.
D:Snapshots cannot be collected manually by using the DBMS_WORKLOAD_REPOSITORY package.
E:The Oracle server dynamically generates the necessary statistics on tables as part of query optimization.
Click the Exhibit button. Which three code fragments, added individually at line 29, produce the output 100?()
A:n = 100;
B:i.setX( 100 );
C:o.getY().setX( 100 );
D:i = new Inner(); i.setX( 100 );
E:o.setY( i ); i = new Inner(); i.setX( 100 );
F:i = new Inner(); i.setX( 100 ); o.setY( i );
You received the following error:   ORA-01578: ORACLE data block corrupted   (file # %s, block # %s)   Which file will you check to view additional information regarding the cause of this error?()
A:the alert log file and the trace files
B: the redo log files
C: the control file
D: the change tracking file
Examine the following commands executed in your database: SQL> ALTER SESSION RECYCLEBIN=ON; Session altered  SQL> CREATE TABLE emp TABLESPACE tbsfd AS SELECT * FROM hr.employees;  Table created.  Further, you executed the following command to drop the table:  SQL> DROP TABLE emp; Table dropped.  What happens in this scenario? ()
A:The table is moved to the SYSAUX tablespace.
B:The table is moved to the SYSTEM tablespace.
C:The table is removed from the database permanently.
D:The table is renamed and remains in the TBSFD tablespace.
What purpose would you achieve by enabling the block change tracking feature?()
A: Eliminate the necessity for backups.
B: Perform optimized image copy backups.
C: Perform optimized incremental backups.
D: Enable checkpoint (CKPT) to perform checkpointing at every block change.
E: Enable database writer (DBWn) to write changed blocks to data files faster.
Evaluate the SQL statement: SELECT LPAD (salary,10,*) FROM EMP WHERE EMP _ ID = 1001; If the employee with the EMP_ID 1001 has a salary of 17000, what is displayed?()
A:17000.00
B:17000*****
C:****170.00
D:**17000.00
E:an error statement
The datafiles of your database are ASM files. You are performing a check for datafile block corruption by using the DBVERIFY utility.   What is a prerequisite for checking block corruption on an ASM datafile by using the DBVERIFY utility?()  
A: The block change tracking feature must be enabled.
B: OMF must be configured on your database.
C: The database must be in ARCHIVELOG mode.
D: A USERID must be supplied.
You executed the following command:   RMAN> RECOVER COPY OF DATAFILE ’/u01/app/oracle/oradata/orcl/users01.dbf’;   Which statement regarding the above command is correct?()  
A: The ’/u01/app/oracle/oradata/orcl/users01.dbf’ data file is recovered from the image copy.
B: The ’/u01/app/oracle/oradata/orcl/users01.dbf’ data file is recovered from the last incremental backup.
C: Image copies of the ’/u01/app/oracle/oradata/orcl/users01.dbf’ data file are updated with all changes up to incremental backup SCN.
D: Image copies of the ’/u01/app/oracle/oradata/orcl/users01.dbf’ data file are recovered using the above command if data file recovery fails.
Which two statements are true regarding the database in ARCHIVELOG mode?()
A:You have to shut down the database to perform the backups.
B:Archiving information is written to the data files and redo log files.
C:You can perform complete database backups without closing the database.
D:Online redo log files have to be multiplexed before putting the database in ARCHIVELOG mode.
E:All the previous database backups become invalid after you configure the database to ARCHIVELOG mode.
You are using the Database Resource Manager to manage database resources. You created a resource plan directive for the MANAGERS resource consumer group under the SALES_PLAN by using the following statement:   SQL>EXEC DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE   (PLAN => ’SALES_PLAN’,   GROUP_OR_SUBPLAN => ’MANAGERS’,   CPU_P1 => 100, CPU_P2 =>0,   SWITCH_GROUP => ’CLERKS’,   SWITCH_TIME_IN_CALL => 600);   A user, SCOTT, who is assigned to the MANAGERS group, starts a database session and executes a query on the database. What is the outcome if the query takes approximately 15 minutes to complete?()  
A: The query starts under the CLERKS group and the user, SCOTT, switches back to the MANAGERS group after the query completes.
B: The query starts under the MANAGERS group but terminates with an error when the execution time exceeds 10 minutes.
C: The query starts under the MANAGERS group and switches automatically to the CLERKS group when the execution time exceeds 10 minutes. The query does not switch back to the MANAGERS group after the query completes.
D: The query starts under the MANAGERS group, the user SCOTT switches automatically to the CLERKS group when the execution time exceeds 10 minutes, and then switches back to the MANAGERS group after the query completes.
What RMAN command is used to execute a tablespace point-in-time recovery?()
A: recover
B: duplicate
C: restore
D: copy
E: None of the above
What command would you use to set a persistent setting in RMAN so that backups are all written to a tape device?()
A:CONFIGURE DEFAULT DEVICE TYPE TO TAPE MEDIA 
B:CONFIGURE DEFAULT DEVICE TYPE TO TAPE 
C:CONFIGURE DEFAULT DEVICE TYPE TO SBT 
D:CONFIGURE DEFAULT DEVICE TYPE TO SBT_TAPE
In which two aspects does hot patching differ from conventional patching?()
A:It consumes more memory compared with conventional patching.
B:It can be installed and uninstalled via OPatch unlike conventional patching.
C:It takes more time to install or uninstall compared with conventional patching.
D:It does not require down time to apply or remove unlike conventional patching.
E:It is not persistent across instance startup and shutdown unlike conventional patching.
在SQL*PLUS中显示EMP表结构的命令是()
A:LIST EMP
B:DESC EMP
C:SHOW DESC EMP
D:STRUCTURE EMP
E:SHOW STRUCTURE EMP
You want to enable the user, Scott, to change to the GRP1 consumer group by issuing the following code:        SQL> EXEC DBMS_SESSION.SWITCH_CURRENT_CONSUMER_GROUP  (’SCOTT’,       ’GRP1’, FALSE);   How will you grant the switch privilege to the user, Scott?()  
A: by using the DBMS_SESSION package
B: by granting the DBA role
C: by using the DBMS_RESOURCE_MANAGER package
D: by using the DBMS_RESOURCE_MANAGER_PRIVS package
When tuning Automatic PGA Memory Management, which of the following views will provide the information specified?()  
A: The V$PGA_TARGET_ADVICE view shows the predicted cache hit-ratio improvement if you increase PGA_AGGREGATE_TARGET
B: The V$PGA_TARGET_ADVICE view shows how the V$SQL_WORKAREA histogram will change if you change the value of PGA_AGGREGATE_TARGET
C: The V$PGA_TARGET_ADVICE_HISTOGRAM view shows how the V$SQL_WORKAREA_HISTOGRAM will change if you switch between Manual and Automatic PGA Memory Management
D: The V$PGA_TARGET_ADVICE view shows how performance will improve for the different work areas if you switch from Manual to Automatic PGA Memory Management
Where can you obtain information about full database backup set created using RMAN, if the control file was used as the repository?()
A:V$BACKUPSET
B:RC_DATABASE
C:V$BACKUP_SET
D:RC_BACKUP_SET
You are managing an Oracle Database 11g instance with ASM storage. The ASM instance is down. To know the details of the disks in the DATA disk group , you issued the following ASMCMD command: ASMCMD> lsdsk -I -d DATA Which statement is true regarding the outcome of this command?()
A:The command succeeds but it retrieves only the disk names.
B:The command produces an error because the ASM instance is down.
C:The command succeeds but it shows only the status of the ASM instance.
D:The command succeeds and retrieves information by scanning the disk headers based on an ASM_DISKSTRING value.
You are analyzing how Oracle processes user statements. SQL and PL/SQL parse information is stored in which of the following database memory areas? ()
A:Library cache 
B:Row cache
C:Dictionary cache 
D:Large area 
E:Buffer cache
You upgraded from a previous Oracle database version to Oracle Database version to Oracle Database12c. Your database supports a mixed workload. During the day, lots of insert, update, and deleteoperations are performed. At night, Extract, Transform, Load (ETL) and batch reporting jobs are run. The ETL jobs perform certain database operations using two or more concurrent sessions.After the upgrade, you notice that the performance of ETL jobs has degraded. To ascertain the cause ofperformance degradation, you want to collect basic statistics such as the level of parallelism, totaldatabase time, and the number of I/O requests for the ETL jobs. How do you accomplish this?()
A:Examine the Active Session History (ASH) reports for the time period of the ETL or batch reporting runs.
B:Enable SQL tracing for the queries in the ETL and batch reporting queries and gather diagnostic data from the trace file.
C:Enable real-time SQL monitoring for ETL jobs and gather diagnostic data from the V$SQL_MONITOR view.
D:Enable real-time database operation monitoring using the DBMS_SQL_MONITOR.BEGIN_OPERATION function, and then use the DBMS_SQL_MONITOR.REPORT_SQL_MONITOR function to view the required information.
What is true about version-enabled tables?()
A:The unit of versioning is the schema.
B:It is possible to version enable a table pertaining to SYS.
C:There are as many segments as versions for the same base table.
D:It is possible to create workspaces if there is no version-enabled table in the database.