How to configure the STATSPACK performance report of ORACLE 11g adg, adgstatspack
Create a normal STATSPACK report user on the master database
Sqlplus/as sysdbaSQL> @? /Rdbms/admin/spcreate. SQL
SQL> -- cancel some settings of $ ORACLE_HOME/sqlplus/glogin. SQL.
SQL> -- in some cases, the password, tablespace, and temporary files are required.
Perfstat 235619
-- Create an SB userSQL> @? /Rdbms/admin/sbcreate. SQL
Enter the password for the temporar
Zookeeper AIX6.1 notes on installing oracle 11204
1. Check the memory size.
#/Usr/sbin/lsattr-E-l sys0-a realmem
Minimum 1 GB, 2 GB or more
2. Check the size of swap space.
#/Usr/sbin/lsps-
3. Check whether the operating system structure can run oracle software
#/Usr/bin/getconf HARDWARE_BITMODE
Want to know if the system is started in 64-Bit mode
# Bootinfo-K
4. Check the size of the temporary space.
# Df-k/tmp
The requirement must be at least 1 GB, and the software installation interface is
How to configure the STATSPACK performance report of Oracle 11g ADG
Create a normal STATSPACK report user on the master database
Sqlplus/as sysdba
SQL> @? /Rdbms/admin/spcreate. SQLSQL> -- cancel some settings of $ Oracle_HOME/sqlplus/glogin. SQL.SQL> -- in some cases, the password, tablespace, and temporary files are required.
Perfstat 235619
-- Create an SB user
SQL> @? /Rdbms/admin/sbcreate. SQLEnter the password for the temporary tablespace.Then,
How to configure the statspack performance report of Oracle11gADG
How to configure the STATSPACK performance report of Oracle 11g ADG
Create a normal STATSPACK report user on the master database
Sqlplus/as sysdba
SQL> @? /Rdbms/admin/spcreate. SQLSQL> -- cancel some settings of $ Oracle_HOME/sqlplus/glogin. SQL.SQL> -- in some cases, the password, tablespace, and temporary files are required.
Perfstat 235619
-- Create an SB user
SQL> @? /Rdbms/ad
, through virtual memory, you can move the RAM segment to the special disk segment of swap disk, this will appear the Virtual memory page export and page import phenomenon, page export does not explain the ram bottleneck, Virtual Memory systems often page export of memory segments, but the page import operation indicates that the server needs more memory, and page import needs to replicate the memory segment from swap disk back to RAM, causing the server to slow down.There are several solutions:
users and do not need to install if they are not needed
· Ctxsys/ctxsys
Oracle intermedia (context cartridge) Admin user
Create script:?/ctx/admin/dr0csys.sql
· Tracesvr/trace
Oracle Trace Server
Create script:?/rdbms/admin/otrcsvr.sql
· Ordplugins/ordplugins
Object Relational Data (ORD) User used by Time Series, etc.
Create script:?/ord/admin/ordinst.sql
· Ordsys/ordsys
Object Relational Data (ORD) User used by Time Series, etc
Create script:?/ord/admin/ordinst.sql
· Dssys/dssys
Oracle Dynamic
The Topas command is used to monitor various system resources, such as CPU usage, CPU events and queues, memory and paging space usage, disk performance, network performance, and NFS statistics. It also reports on the consumption of system resources by processes assigned to different WLM classes. It also reports popular classes in the most popular processes and workload managers (WLM) in the system. Information about the WLM class is displayed only when WLM is active. The Topas command defines a
' SIZE 100M autoextend on NEXT 100M MAXS IZE 500M EXTENT MANAGEMENT local UNIFORM SIZE 128K SEGMENT SPACE MANAGEMENT Auto;2.2 For Statspack Installation$ cd/doiido/oracle/product/11.2.0.1/db_1/rdbms/admin$ sqlplus/as SYSDBA> @spcreate. sql# #接下来会自动创建一个用户, you need to enter the password for this user, and also let you choose the default tablespace, the default temp table space2.3 Use Statspack to generate performance reports manually. To crawl a snapshot, you must2 times or moresql> Conn
, wrote new name DataFile C:\ORACLE\ORADATA\VILEN\USERS01. Dbf-dbid changed, wrote new name DataFile C:\ORACLE\ORADATA\VILEN\TEMP01. Dbf-dbid changed, WROTe new name DataFile C:\ORACLE\ORADATA\VILEN\TOOLS01. Dbf-dbid changed, wrote new name DataFile C:\ORACLE\ORADATA\VILEN\INDX01. Dbf-dbid changed, wrote new name DataFile C:\ORACLE\ORADATA\VILEN\EQSP01. Dbf-dbid changed, wrote new name DataFile C:\ORACLE\ORADATA\VILEN\PERFSTAT. Dbf-dbid changed, wrote
section of code opens monitoring of the indexes used in the system.
Set pages 999;
Set heading off;
Spool Run_monitor.sql
Select
' Alter index ' | | owner| | '. ' | | index_name| | ' monitoring usage; '
From
Dba_indexes
where
Ower not in (' SYS ', ' SYSTEM ', ' Perfstat ')
;
Spool off;
@run_monitor
Wait until these important SQL is executed in the database, and search for the new V$object_usage view
Select
Index_name,
TABLE_NAME,
Mon
Used
From
V$obje
$LOG _base Directo Ry:/var/opt/oracle/otk/1.0/log------------------------------------------------------# sqlplus/as SYSDBA sql*plus: Release 11.2.0.1.0 Production on Sat Apr 11:27:47 2014 Copyright (c) 1982, 2009, Oracle.
All rights reserved. Connected to:oracle Database 11g Enterprise Edition release 11.2.0.1.0-64bit Production with the partitioning, OLAP,
Data Mining and real application testing options
Sql>
View which users of the database
Sql>select username from dba_users;
the output content
verify output variable content
Feedback the number of record rows returned
markup HTML Output HTML format content
main.sql set environment, invoke specific execution script
set linesize,
set term off verify off feedback off pagesize 999
SE T markup html on ENTMAP in spool on Preformat off
spool tables.xls
@get_tables. SQL
spool off
EXIT
get_tables.sql Specific execution script
select owner,table_name,tablespace_name,blocks,last_analyzed from All_tables ORDE
Create a normal statspack report user on the main librarySqlplus/as SYSDBASql>@?/rdbms/admin/spcreate.sqlSql>--Notice to cancel $oracle_home/sqlplus/glogin.sql some settingsSql>--some normal words will appear asking for password and tablespace and temporary filesPerfstat 235619--Create SB UserSql>@?/rdbms/admin/sbcreate.sqlEnter the password tablespace temporary table space.Then ask if you want to configure network (y/n) input yConfigure the Tnsname of the standby library;Build Dblink use
installation users. If you do not need to install· CTXSYS/CTXSYSOracle interMedia (ConText Cartridge) Management UserCreate Script :? /Ctx/admin/dr0csys. SQL· TRACESVR/TRACEOracle Trace serverCreate Script :? /Rdbms/admin/otrcsvr. SQL· ORDPLUGINS/ORDPLUGINSObject Relational Data (ORD) User used by Time Series, etc.Create Script :? /Ord/admin/ordinst. SQL· ORDSYS/ORDSYSObject Relational Data (ORD) User used by Time Series, etcCreate Script :? /Ord/admin/ordinst. SQL· DSSYS/DSSYSOracle Dynamic Se
Begin_snap: 41234. Begin Snapshot Id specified:41235.6. Enter the value of the End_snap: 41617. End Snapshot Id specified:4161The ID of the starting snapshot in this example is 4123, and the ID of the ending snapshot is 4161.Specifies the name of the report.Enter the value of the Report_name: myreport.htmlNote: Enter the report name after carriage return appears ORA-00904:: Invalid identified valueWORKAROUND: Use the SYS user to execute or authorize the user grant all on dbms_workload_repositor
following script to obtain the set serveroutput ONDECLAREl_level NUMBER; BEGINFOR l_event IN 10000 .. 10999LOOPdbms_system.read_ev (l_event, l_level); IF l_level> 0 THENdbms_output.put_line ('event' | TO_CHAR (l_event) | 'is set at level' | TO_CHAR (l_level )); end if; end loop; END ;/[Q] what is statspack? How can I use it?[A] Statspack is an excellent performance monitoring and diagnosis tool provided by Oracle 8i and above. It basically includes the BSTAT/ESTAT function, for more information
, The job_queue_processesInitialization parameter must be set to greater than 0 in the configurationFile used to start the instance for the job to be run automatically.
Example of an init. ora entry:# Set to enable the Job Queue process to start. This allows dbms_job# To schedule automatic statistics collection using statspackJob_queue_processes = 1
If using statsauto. SQL in Ops environment, the statsauto. SQL script must beRun Once on each instance in the cluster. Similarly, the job_queue_proc
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.