Brief overviewThe Perfstat is a NetApp storage diagnostic data Command-line collection tool that collects detailed information about NetApp storage, including configuration information and performance data, with two versions for NetApp storage OS 2 modes:
Storage mode
Perfstat version
7 mode
Perfstat 7
Clust
As the saying goes, to do a good job, you must first sharpen it. A good tool is also required for database performance analysis. Statspack is a powerful and free performance analysis tool provided by oracle.To install statspack, you must have sysdba permissions. First, log in with sysdba to create a separate tablespace for statspack.SQL code1. SQL> create tablespace perfstat datafile 'd: \ oracle \ oradata \ epcit \ data_file \
The performance collection using Statspack is achieved through snapshot, that is, Statspack takes a snapshot of the system performance data at a certain time point, and saves the snapshot in perfst.
The performance collection using Statspack is achieved through snapshot, that is, Statspack takes a snapshot of the system performance data at a certain time point, and saves the snapshot in perfst.
Perfcreate
Use the sys user to connect to the database and run the spcreate. SQL script. First, en
Environment: CentOS 6.2 + Oracle 11.2.0.3 1. the Statspack installation and installation process is to create a user perfstat and create corresponding objects under this user. Oracle provides existing scripts to create these objects, we only need to use SYSDBA to run this script. The Statspack creation script spcreate. the SQL statement is located in the $ ORACLE_HOME/rdbms/admin directory. The process for creating Statspack is as follows: SQL> @/u/or
How to delete historical data generated by statspack
When $ Oracle_HOME/rdbms/admin/spauto is used. after SQL creates a default job, snapshots are collected every hour in the database, so that you can use $ ORACLE_HOME/rdbms/admin/spreport at any time. SQL generates a report diagnosis analysis report, but the amount of sampled data is quite astonishing. If this job is ignored or the remaining space is not regularly checked, some production environments may cause other unpredictable conditions du
add the service$ Srvctl add service-d orcl10-s statspack_suse11a_srvc-r orcl101$ Srvctl add service-d orcl10-s statspack_suse11b_srvc-r orcl102$ Srvctl start service-d orcl10-s statspack_suse11a_srvc$ Srvctl start service-d orcl10-s statspack_suse11b_srvc$ Srvctl status service-d orcl10Service orcl10_srv is running on instance (s) orcl102, orcl101Service statspack_suse11a_srvc is running on instance (s) orcl101Service statspack_suse11b_srvc is running on instance (s) orcl102$ Srvctl config serv
Recently used Statspack on a customer's 8i production library and found an error in alert:
Mon June 16 13:17:52 2014
Errors in FILE/ORACLE/8.1.7/ADMIN/PROD/BDUMP/SNP0_96626_PROD.TRC:
Ora-12012:error on Auto execute of Job 304
Ora-01631:max # Extents (505) reached in table Perfstat. Stats$sql_summary
Ora-06512:at "Perfstat. Statspack ", line 978
Ora-06512:at "Perfs
/as sysdbacreate tablespacePerfstat datafile ' +asm_data ' size 500m autoextend on; @?/rdbms/admin/spcreategrant EXECUTE on Dbms_lock to Perfstat; GRANT CREATE JOB to Perfstat; GRANT EXECUTE on sys. Dbms_scheduler to Perfstat; GRANT EXECUTE on sys. Dbms_isched to Perfstat;3) create Job Classbegin dbms_scheduler.create_
Recently used Statspack on a customer's 8i production library. Found an error in alert:Mon June 16 13:17:52 2014Errors in FILE/ORACLE/8.1.7/ADMIN/PROD/BDUMP/SNP0_96626_PROD.TRC:Ora-12012:error on Auto execute of Job 304Ora-01631:max # Extents (505) reached in table Perfstat. Stats$sql_summaryOra-06512:at "Perfstat. Statspack ", line 978Ora-06512:at "Perfstat. Sta
A recent use of statspack on a customer's 8i production library found an error in alert:Mon June 16 13:17:52 2014Errors in FILE/ORACLE/8.1.7/ADMIN/PROD/BDUMP/SNP0_96626_PROD.TRC:Ora-12012:error on Auto execute of Job 304Ora-01631:max # Extents (505) reached in table Perfstat. Stats$sql_summaryOra-06512:at "Perfstat. Statspack ", line 978Ora-06512:at "Perfstat. St
without installing it.Before installation, make sure that the timed_statistics parameter is true. (Oracle 8i needs to be changed. 9i defaults to true)
SQL> show parameter timed_statistics
Name type value-----------------------------------------------------------------------------Timed_statistics Boolean true
Change method:SQL> alter system set timed_statistics = true;
The system has been changed.
Note: The timed_statistics parameter is used to collect time information.
In addition, make sure th
11g -- statspack install statspack in 11g2, preferably sys user installation. The installation process is as follows: 1. First, create a tablespace for storing the data generated by statspack: create tablespace perfstat datafile '/u01/app/oracle/oradata/orcl/perfstat01.dbf' size 500 m; 2: Execute SQL> @? /Rdbms/admin/spcreate. SQL where @: Indicates executing an SQL?: Number indicates that oracle will automatically create the user
I recently used statspack on a 8i production database of the customer and found that alert has an error:
Mon Jun 16 13:17:52 2014Errors in file/oracle/8.1.7/admin/prod/bdump/snp0_96626_prod.trc:ORA-12012: error on auto execute of job 304ORA-01631: max # extents (505) reached in table PERFSTAT. STATS $ SQL _SUMMARYORA-06512: at "PERFSTAT. STATSPACK", line 978ORA-06512: at "
In Oracle, using statpack for performance statistics is a good choice, but it is not a graphical interface. It is more troublesome and has many usage options. Generally, you can master the basic usage.You can use it to query it.
1 InstallationFirst, create a separate tablespace as SYS. The requirement is relatively large, preferably 1, 2gCreate tablespace perfstat datafile 'f: "oracle" oradata "jssweb" perfstat
>@?/rdbms/admin/spcreate.sql;
L The main actions during the installation process:
1 installation generates a user Perfstat/perfstat =>spcusr.sql,
At install time: DEFAULT tablespace/temporary tablespace
2 Create the required table =>spctab.sql
3 Generate Dbms_shared_pool and dbms_job pl/sql packages =>spcpkg.sql
Statspack software package execution/data acquisition
When the response speed of the system decr
of tablespace, you can use the report schema command in RMAN to view the name of the tablespace.
Man> report Schema;Report of database schema
List of permanent datafiles======================================File size (MB) tablespace RB segs datafile name---------------------------------------------------------------480 system ***/home/Oracle/oradata/ora10g/system01.dbf2 25 undotbs1 ***/home/Oracle/oradata/ora10g/undotbs01.dbf3 250 sysaux ***/home/Oracle/oradata/ora10g/sysaux01.dbf4 5 Users *
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
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.