Install statspack 9i




















Notify me of new comments via email. Notify me of new posts via email. Main menu Skip to content. SQL : Creates the package Ask me for the password for user perfstat in clear text ; Next ask me for tablespace where locate tables with the data are recolected from the system.

You need a temporary tablespace too; if all is okay you get a reply similar to the next window, however it is necessary to review the spcpkg. Share this: Twitter Facebook. Like this: Like Loading Leave a Reply Cancel reply Enter your comment here This level includes all statistics gathered in the lower levels, as well as parent and child latch information.

Sometimes data gathered at this level can cause the snapshot to take longer to complete. This level can be resource-intensive, and it should only be used when advised by Oracle personnel. If you want to gather session statistics and wait events for a particular session in addition to the instance statistics and wait events , specify the session ID in the call to Statspack. The statistics gathered for the session include session statistics, session events, and lock activity.

The default behavior is to not gather session level statistics. Oracle supports capturing certain performance data with microsecond granularity. Views that include microsecond timing include the following:. Because microsecond timing might not be appropriate for rolled-up data, Statspack displays most times in seconds. It displays average times in milliseconds for easier comparison with operating system monitoring utilities, which often report timing in milliseconds.

For clarity, the time units used are specified in the column headings of each timed column in the Statspack report. The following convention are used:. If timings are available, the Statspack report orders wait events by time in the Top-5 and background and foreground wait events sections. The Top-5 section also looks unusual in this situation. PAR is supplied for this purpose. To use this file, supply the export command with the userid parameter, along with the export parameter file name.

If you want to load the data into another database, use the import command. Oracle9i Database Utilities for more information on using export and import.

SQL script. This deletes snapshots that fall between the begin and end snapshot IDs you specify. You should export the schema as a backup before running this script, either using your own export parameters or those provided in SPUEXP.

Purging can require the use of a large rollback segment, because all data relating to each snapshot ID to be purged is deleted. You can avoid rollback segment extension errors in one of two ways:. Oracle9i SQL Reference. It then prompts you for the low snap ID and high snap ID.

All snapshots that fall within this range are purged. SQL deletes all snapshots ranging between the lower and upper bound snapshot IDs specified for the database instance connected to. You might want to export this data before continuing. This script truncates all statistics data gathered. Oracle Corporation recommends that you export the schema as a backup before running this script, either using your own export parameters or those provided in SPUEXP.

SQL removes all data from Statspack tables. You might want to export the data before continuing. This happens only under the following set of conditions:. LIS to ensure that the package was completely deinstalled. Do not use this script unless you wan to remove all data in the schema you are using. You can choose to export the data as a backup before using this script. TXT file contains instructions and documentation on the Statspack package. See Also: Oracle9i Database Concepts for more information on temporary tablespaces.

SQL script, then rerun the installation. Note: In an Oracle Real Application Clusters environment, you must connect to the instance for which you want to collect data. Note: In Oracle9 i Release 2 9. Note: It is not correct to specify begin and end snapshots where the begin snapshot and end snapshot were taken from different instance startups.

Note: In an Oracle Real Application Clusters environment, you must connect to the instance on which you want to report. See Also: "Snapshot Levels" for information about levels.

See Also: "Snapshot Levels". So, we need another snapshot maybe after 30 minutes, to be able to compare the change in the statistics values in a well-defined time span. Long story, short, we need at least two snapshots to be able to generate a statspack report. This is also the same pronciple for AWR reports. Schedule a job for snapshots: We should schedule the snapshots so that, we can create reports later. It is usually convenient to create snapshots in every 30 minutes. Modify the default statspack level: We can change the detail of statistics gathered by the Statspack by specifying a snapshot level.

If you want to be able to read the whole SQL statement, apply the below fix. Package created.



0コメント

  • 1000 / 1000