手机版
你好,游客 登录 注册
背景:
阅读新闻

Oracle通过视图和告警日志检查主库,物理和快照备库

[日期:2015-07-20] 来源:Linux社区  作者:Linux [字体:大 中 小]

Oracle通过视图和告警日志检查主库,物理和快照备库

主库动作 主库信息 备库信息
是否启用redo线程

alert log

v$thread

alert log

展示数据库角色,保护模式,保护级别,切换状态,快速启用,失效转换信息 v$database v$database
增删redo日志文件组

alert log

v$log

v$logfile的status字段

alert log
控制文件的创建

alert log

alert log

表空间状态的改变

v$recover_file

dba_tablespace

alert log

v$recover_file

dba_tablespace

增删数据文件或表空间

dba_data_files

alert log

v$datafile

alert log

重命名数据文件

v$datafile

alert log

v$datafile

alert log

未记录日志或未恢复的操作

v$datafile

v$database

alert log

监控redo传输

v$archive_dest_status

v$archived_log

v$archived_dest

alert log

v$archived_log

alert log

 

发布open resetlogs 或 clear unarchived logfiles 语句

alert log

alert log

 

修改初始化参数

alert log

alert log

通过以下语句获取主备库的当前角色,保护模式,保护级别,切换状态,快速启用,失效转换信息
 select protection_mode,
 
      protection_level,
 
      database_role role,
 
      switchover_status
 
  from v$database;

获取fast-start 失效切换状态
 select fs_failover_status          "fsfo status",
 
      fs_failover_current_target  target,
 
      fs_failover_threshold        threshold,
 
      fs_failover_observer_present "observer present"
 
  from v$database;

获取物理备库上的redo应用和传输状态
 select process, status, thread#, sequence#, block#, blocks
 
  from v$managed_standby;

查询归档日志文件的信息和历史归档信息
select thread#, sequence#, first_change#, next_change#
 
  from v$archived_log;
 
select thread#, sequence#, first_change#, next_change# from v$log_history;

查看被写入alert log中关于DG的事件信息
select message from v$dataguard_status

查看主库redo日志传输到目标端的状态,SCN表示最后一个在standby库上应用的redo日志的系统改变号。
select dest_id, applied_scn from v$archive_dest where target='standby';

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-07/120185.htm

linux
相关资讯       Oracle告警日志  Oracle视图 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款