11.07.2015 Views

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

96 CHAPTER 2 ■ DATABASE DIAGNOSABILITY AND FAILURE REPAIRSQL Test Case BuilderWhen you’re reporting a problem to the <strong>Oracle</strong> Support folks, it’s often difficult to gather andreproduce the exact scenario under which the problem occurred. The new SQL Test Case Builderlets you easily capture information regarding a SQL problem and upload it to <strong>Oracle</strong> Support, so<strong>Oracle</strong> Support can reproduce the problem and test it. The SQL Test Case Builder gathers datasuch as the SQL query particulars, object definitions, stored code such as packages, initializationparameters, and optimizer statistics. The SQL Test Case Builder doesn’t collect the actualdata used by the query.You can use either <strong>Database</strong> Control or the new DBMS_SQLDIAG package to access the SQLTest Case Builder. Here are the key procedures in the DBMS_SQLIDIAG package that deal with theSQL Test Case Builder functionality:• The explain_sql_testcase function explains a SQL test case.• The get_sql function imports a SQL test case.• The export_sql_testcase procedure exports a SQL test case to a directory.• The export_sql_testcase_dir_by_inc function generates SQL test cases that correspondto an incident ID.• The export_sql_testcase_dir_by_txt function generates SQL test cases that correspondto a SQL statement.It’s a snap to build a SQL test case from <strong>Database</strong> Control. Note that you can use the SQLTest Case Builder from <strong>Database</strong> Control only when a SQL-related incident occurs. Here arethe steps to access the SQL Test Case Builder from <strong>Database</strong> Control:1. On the Home page, click Advisor Central under Related Links to access the AdvisorCentral page. Click SQL Advisors and then the link Click Here to Go to Support Workbench.2. To investigate a particular problem, click an incident ID.3. Click <strong>Oracle</strong> Support in the Investigate and Resolve section.4. Click Generate Additional Dumps and Test Cases5. To run the SQL Test Case Builder for a specific incident, click the icon in the Go To Taskcolumn.You must provide a name for the output as well as a directory to save it. The output consists ofcommands that’ll let you re-create the environment and the objects to test the problem SQLquery or queries.Improvements in Handling Data Corruption<strong>Oracle</strong> <strong>Database</strong> <strong>11</strong>g provides several new innovations that help catch incidents of data corruptionbefore they mushroom into major problems. These include the new integrated mechanism fordata corruption checking through the use of the new initialization parameter db_ultra_safe

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!