You accepted the recommended SQL Profile by executing the following code: DECLARE sqlprofile_name varchar2(30); BEGIN sqlprofile_name := DBMS_SQLTUNE.ACCEPT_SQL_PROFILE( task_name => ’my_task’, profile_name => ’my_profile’); END; Which advisor will analyze this profile?()
第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题:
You have an SQL query that takes one minute to execute. You use the following code segment to execute the SQL query asynchronously.Dim ar As IAsyncResult = cmd.BeginExecuteReader( )You need to execute a method named DoWork( ) that takes one second to run while the SQL query is executing. DoWork( ) must run as many times as possible while the SQL query is executing. Which code segment should you use?()
第3题:
You run the SQL Tuning Advisor (STA) to tune a SQL statement that is part of a fixed SQL plan baseline. The STA generates a SQL profile for the SQL statement, which recommends that you accept the profile. Which statement is true when you accept the suggested SQL profile?()
第4题:
Examine the following PL/SQL block: DECLARE my_plans pls_integer; BEGIN my_plans := DBMS_SPM.LOAD_PLANS_FROM_CURSOR_CACHE (sql_id=> ?9twu5t2dn5xd?; END; Which statement is true about the plan being loaded into the SQL plan baseline by the above command?()
第5题:
What happens when you run the SQL Tuning Advisor with limited scope?()
第6题:
You have created a resource plan, DAY. You execute the following code: SQL> BEGIN DBMS_RESOURCE_MANAGER.CREATE_SIMPLE_DIRECTIVE ( PLAN => ’DAY’, COMMENT => ’DEPARTMENTS PLAN’, GROUP_OR_SUBPLAN => ’DEPARTMENTS’, CPU_P1=0); END; Then, you issue the following code: SQL> BEGIN DBMS_RESOURCE_MANAGER.CREATE_SIMPLE_DIRECTIVE ( PLAN => ’DAY’, COMMENT => ’DEPARTMENTS PLAN’, GROUP_OR_SUBPLAN => ’DEVELOPERS’, CPU_P2=100); END; What will be the impact of executing the above code?()
第7题:
You issued the following block of code: SQL>BEGIN DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP( ’PROG_ROLE’, ’DEVELOPERS’ ,FALSE); END; SQL>/ Which option is NOT a result of executing the above code?()
第8题:
SQL Access Advisor
Undo Advisor
Segment Advisor
SQL Tuning Advisor
第9题:
Access path analysis is not performed for the SQL statements.
SQL structure analysis is not performed for the SQL statements.
SQL Profile recommendations are not generated for the SQL statements.
The staleness and absence of the statistics are not checked for the objects in the query supplied to the SQL Tuning Advisor.
第10题:
It creates a task and workload, and executes the task.
It creates a task and workload but does not execute the task.
It produces an error because a template has not been created.
It produces an error because the SQL Tuning Set has not been created.
第11题:
It performs parallel recompilation of only the stored PL/SQL code.
It performs sequential recompilation of only the stored PL/SQL code.
It performs parallel recompilation of any stored PL/SQL as well as Java code.
It performs sequential recompilation of any stored PL/SQL as well as Java code.
第12题:
The switch privilege is granted to the PROG_ROLE role.
The users granted the role PROG_ROLE will be able to switch to the DEVELOPERS group.
The users cannot grant the switch privilege to other users.
The above code will not be executed successfully because the GRANT_SWITCH_CONSUMER_GROUP procedure is an invalid procedure in Oracle10g.
第13题:
Which traversal method for a binary tree does the following Pascal code illustrate? procedure traverse (p:pointer); begin if p<>nil then begin traverse(p ↑ .left); process(p); traverse(p ↑ .right); end end;
A.preorder
B.postorder
C.reorder
D.inorder
第14题:
Which of these appropriately describes the results of a manual SQL Tuning Advisor task?()
第15题:
Which statement is true when you run the SQL Tuning Advisor with limited scope?()
第16题:
Your organization decided to upgrade the existing Oracle 10g database to Oracle 11g database in a multiprocessor environment. At the end of the upgrade,you observe that the DBA executes the following script: SQL> @utlrp.sql What is the significance of executing this script?()
第17题:
Evaluate the following code: SQL>VARIABLE task_name VARCHAR2(255); SQL>VARIABLE sql_stmt VARCHAR2(4000); SQL>BEGIN :sql_stmt := ’SELECT COUNT(*) FROM customers WHERE cust_state_province =’’CA’’’; :task_name := ’MY_QUICKTUNE_TASK’; DBMS_ADVISOR.QUICK_TUNE(DBMS_ADVISOR.SQLACCESS_ADVISOR, :task_name, :sql_stmt); END; What is the outcome of this block of code?()
第18题:
Your organization decided to upgrade the existing Oracle 10g database to Oracle 11g database in a multiprocessor environment. At the end of the upgrade, you observe that the DBA executes the following script: SQL> @utlrp.sql What is the significance of executing this script?()
第19题:
You are creating a stored procedure that will delete data from the Contact table in a SQL Server 2005 database. The stored procedure includes the following Transact-SQL statement to handle any errors that occur. BEGIN TRY BEGIN TRANSACTION DELETE FROM Person.Contact WHERE ContactID = @ContactID COMMIT TRANSACTION END TRY BEGIN CATCH DECLARE @ErrorMessage nvarchar(2000) DECLARE @ErrorSeverity int DECLARE @ErrorState int SELECT @ErrorMessage = ERROR MESSAGE(),@ErrorSeverity=ERROR SEVERITY(),@ErrorState = ERROR STATE() RAISERROR (@ErrorMessage, @ErrorSeverity, @ErrorState) END CATCH; You test the stored procedure and discover that it leaves open transactions. You need to modify the stored procedure so that it properly handles the open transactions. What should you do?()
第20题:
The tuned plan is not added to the SQL plan baseline.
The tuned plan is added to the fixed SQL plan baseline as a fixed plan.
The tuned plan is added to the fixed SQL plan baseline as a nonfixed plan.
The tuned plan is added to a new nonfixed SQL plan baseline as a nonfixed plan.
第21题:
It performs parallel recompilation of only the stored PL/SQL code.
It performs sequential recompilation of only the stored PL/SQL code.
It performs parallel recompilation of any stored PL/SQL as well as Java code.
It performs sequential recompilation of any stored PL/SQL as well as Java code.
第22题:
Access path analysis is not performed for SQL statements.
SQL structure analysis is not performed for SQL statements.
SQL Profile recommendations are not generated for SQL statements.
Staleness and absence of statistics are not checked for the objects in the SQL Tuning Advisor. In this case, SQL Tuning Advisor produces recommendations based on statistical checks, access path analysis, and SQL structure analysis. SQL profile recommendations are not generated.
第23题:
A template needs to be associated with the task.
A workload needs to be associated with the task.
The partial or complete workload scope needs to be associated with the task.
The type of structures (indexes, materialized views, or partitions) to be recommended need to be specified for the task.