awr report export steps

1. Log in to the server;
2. Switch to oracle user, su-oracle;
3. Export oracle instance

ps -ef | grep smon
export ORACLE_SID=实例名
sqlplus / as sysdba

4. The export awr command
@/oracle/product/11.2.0/rdbms/admin/awrrpt.sql
specifies the type as html

5、表分析
exec DBMS_STATS.GATHER_TABLE_STATS(OWNNAME=>‘用户名’), tabname=>‘table_name’, degree=>8, cascade=>true);
select y.table_name,y.num_rows from dba_tables y where y.woner=‘user_name’ order by y.num_rows desc;

Guess you like

Origin blog.csdn.net/feifeixiongxiong/article/details/113092980