Create the Query Workload
A query workload is a sample set of physical queries to optimize.
See the Oracle Database documentation set for detailed information about creating the query workload.
Before you create the workload, you generate a Trace file with information on the slowest-running queries.
You can generate the Trace file of the slowest-running queries using a tool that's appropriate to your database version, as described in the following list:
-
Usage Tracking: Use this capability in Oracle Analytics Server to log queries and how long they take to run. Long-running queries can then be run as a script and used with the Trace feature in the Oracle Database to capture the Oracle Database SQL code for these queries.
-
Oracle Database Trace: Use this tool to identify the slowest physical query. You can enable the Trace feature either within Oracle Enterprise Manager Database Control or by entering SQL commands with the
DBMS_MONITORpackage. Once you enable the Trace feature, you use a script to create a Trace file to capture the SQL code for queries in a query workload table. -
Oracle Enterprise Manager: Use this tool to track slow-running queries.
The capabilities that are described in the following sections are available in Oracle Database, rather than as part of Oracle Analytics Server.