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
第1题:
Evaluatethefollowingcode:SQL>VARIABLEtask_nameVARCHAR2(255);SQL>VARIABLEsql_stmtVARCHAR2(4000);SQL>BEGIN:sql_stmt:=’SELECTCOUNT(*)FROMcustomersWHEREcust_state_province=’’CA’’’;:task_name:=’MY_QUICKTUNE_TASK’;DBMS_ADVISOR.QUICK_TUNE(DBMS_ADVISOR.SQLACCESS_ADVISOR,:task_name,:sql_stmt);END;Whatistheoutcomeofthisblockofcode?()
A.Itcreatesataskandworkload,andexecutesthetask.
B.Itcreatesataskandworkloadbutdoesnotexecutethetask.
C.Itproducesanerrorbecauseatemplatehasnotbeencreated.
D.ItproducesanerrorbecausetheSQLTuningSethasnotbeencreated.
第2题:
在SQL中,集合成员算术比较操作“元组<>ALL(集合)”中的“<>ALL”的等价操作符是( )。
A. NOT IN
B. IN
C. <>SOME
D. =SOME
第3题:
SQL子查询使用的量词包括______。
A.EXISTS
B.ANY
C.SOME
D.ALL
第4题:
A new report process containing a complex query is written, with high impact on the database. You wantto collect basic statistics about query, such as the level of parallelism, total database time, and the number of I/O requests.For the database instance STATISTICS_LEVEL, the initialization parameter is set to TYPICAL and theCONTROL_MANAGEMENT_PACK_ACCESS parameter is set to DIAGNOSTIC+TUNING.What should you do to accomplish this task?()
A. Execute the query and view Active Session History (ASH) for information about the query.
B. Enable SQL trace for the query.
C. Create a database operation, execute the query, and use the DBMS_SQL_MONITOR. REPORT_SQL_MONITOR function to view the report.
D. Use the DBMS_APPLICATION_INFO.SET_SESSION_LONGOPS procedure to monitor query execution and view the information from the V$SESSION_LONGOPS view.
第5题:
在SQL中,集合成员算术比较操作“元组<>ALL(集合)”中的“<>ALL”的等价操作符是( )。
A.NOT IN
B.IN
C.<>SOME
D.=SOME
第6题:
在SQL的嵌套查询中,如何区分谓词ANY和ALL,请用实例进行说明。