Oracle對錶的監控
Oracle10g前對錶進行監控,必須要發出監控指令。
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
PL/SQL Release 9.2.0.1.0 - Production
CORE 9.2.0.1.0 Production
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - Production
BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
PL/SQL Release 9.2.0.1.0 - Production
CORE 9.2.0.1.0 Production
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - Production
SQL> create table t_blob (b blob);
Table created
SQL> select monitoring from user_tables where table_name=upper('t_blob');
MONITORING
----------
NO
SQL> alter table t_blob monitoring;
Table altered
SQL> select monitoring from user_tables where table_name=upper('t_blob');
MONITORING
----------
YES
MONITORING
----------
NO
SQL> alter table t_blob monitoring;
Table altered
SQL> select monitoring from user_tables where table_name=upper('t_blob');
MONITORING
----------
YES
SQL> insert into t_blob values(utl_raw.cast_to_raw('denglt'));
1 row inserted
SQL> commit;
Commit complete
1 row inserted
SQL> commit;
Commit complete
SQL> insert into t_blob values(utl_raw.cast_to_raw('denglt'));
1 row inserted
SQL> commit;
Commit complete
SQL> select *from user_tab_modifications where table_name='T_BLOB';
TABLE_NAME PARTITION_NAME SUBPARTITION_NAME INSERTS UPDATES DELETES TIMESTAMP TRUNCATED
------------------------------ ------------------------------ ------------------------------ ---------- ---------- ---------- ----------- ---------
SQL>
SQL> begin
2 dbms_stats.FLUSH_DATABASE_MONITORING_INFO();
3 end;
4 /
PL/SQL procedure successfully completed
SQL> select *from user_tab_modifications where table_name='T_BLOB';
TABLE_NAME PARTITION_NAME SUBPARTITION_NAME INSERTS UPDATES DELETES TIMESTAMP TRUNCATED
------------------------------ ------------------------------ ------------------------------ ---------- ---------- ---------- ----------- ---------
T_BLOB 1 0 0 2010/11/15 NO
SQL>
10g的情況:
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL> create table t_blob (b blob);
create table t_blob (b blob)
ORA-00955: 名稱已由現有物件使用
SQL> drop table t_blob;
Table dropped
SQL> create table t_blob (b blob);
Table created
SQL> select monitoring from user_tables where table_name=upper('t_blob');
MONITORING
----------
YES --表建立好後,預設就是監控的.
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL> create table t_blob (b blob);
create table t_blob (b blob)
ORA-00955: 名稱已由現有物件使用
SQL> drop table t_blob;
Table dropped
SQL> create table t_blob (b blob);
Table created
SQL> select monitoring from user_tables where table_name=upper('t_blob');
MONITORING
----------
YES --表建立好後,預設就是監控的.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/195110/viewspace-678088/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle對儲存的監控及意義Oracle
- Oracle SQL對錶的操作OracleSQL
- Oracle索引的監控Oracle索引
- oracle表對錶的多行更新Oracle
- ORACLE 監控索引的使用Oracle索引
- Oracle-監控oracle的等待事件Oracle事件
- 一種對雲主機進行效能監控的監控系統及其監控方法
- Oracle對錶、索引和簇的分析Oracle索引
- Oracle--02對錶的基本操作Oracle
- Mysql 建立心跳錶來監控Replication的Slave是否延遲MySql
- oracle監控軟體Oracle
- oracle 長sql監控OracleSQL
- Oracle常用監控SQLOracleSQL
- oracle 監控指令碼Oracle指令碼
- itm6對tsm的監控
- 對table的操作進行監控
- AP server 對時監控Server
- 如何監控oracle的索引是否使用Oracle索引
- 利用nsca監控oracle的session數OracleSession
- Oracle 監控索引的使用率Oracle索引
- 監控Oracle索引的使用情況Oracle索引
- ORACLE監控之OSW部署Oracle
- Oracle-常用監控SQLOracleSQL
- 使用nagios監控oracleiOSOracle
- Oracle常用監控SQL(轉)OracleSQL
- oracle備庫延時的監控方法Oracle
- Oracle資料庫的監控內容Oracle資料庫
- Oracle RAC 的監控和調整 (zt)Oracle
- Zabbix如何監控Oracle的告警日誌Oracle
- Zabbix透過Orabbix監控OracleOracle
- Spotlight On Oracle 監控軟體Oracle
- oracle表空間增加監控Oracle
- Oracle DBA常用監控指令碼Oracle指令碼
- Oracle Undo使用情況監控Oracle
- 監控Oracle索引是否被使用?Oracle索引
- 監控Oracle資料庫方法Oracle資料庫
- zabbix監控oracle資料庫Oracle資料庫
- 使用Zabbix + Python對Mysql監控PythonMySql