Install and configure statspack

Source: Internet
Author: User

Note:OracleStatspack is a performance tuning tool provided by Oracle. When statspack automatically collects activities, it obtains relevant information in the memory structure and stores it in the statspack table.

Environment: WindowsXP, release 10.2.0.1.0

InstallPrerequisites:Sysdba permission

Process:

1. log on to sqlplus

Sqlplus/As sysdba

2. Create a perfstat tablespace

Create tablespacePerfstatDatafile 'd: \ oracle \ product \ 10.2.0 \ oradata \Orcl\ Perfstat. dbf'size 500 m;

2. Execute spcreate. SQL in sqlplus

SQL> @ D: \ oracle \ product \ 10.2.0 \ db_1 \ RDBMS \ admin \ spcreate. SQL

Input parameter values during execution

Enter the perfstat_password value:Perfstat

Enter the value of defalut_tablespace:Perfstat

Enter the value of temporary_tablespace:Temp

......

After the installation is complete, the system exits under the SQL> prompt symbol.

After the installation is complete, it will be changed to the perfstat user by default, which can be viewed through show user.

 

Installation Complete

 

If the input is incorrect or the installation is accidentally canceled, you should first use spdrop. SQL to delete the user (perfstat) and installed views before the next attempt to install statspack. After statspack is installed, a file named spcpkg. Lis is created. If an error occurs, check the file. However, as long as a valid tablespace name is provided (and no perfstat user is available), the statspack package can be installed smoothly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.