zoukankan      html  css  js  c++  java
  • 了解oracle数据库的情况

    1.了解你的数据库版本号

    2.是否配置了DataGuard?

    SQL> select protection_mode, protection_level, remote_archive,
    database_role, dataguard_broker,guard_status
    from v$database;

    3.是否起用了flashback database特性?

    SQL> select flashback_on from v$database;

    4.是否关闭回收站?

    SQL> show parameter recyclebin

    5.是否起用了force logging和补充日志?

    SQL> select force_logging,supplemental_log_data_min,
    supplemental_log_data_pk, supplemental_log_data_ui,
    supplemental_log_data_fk, supplemental_log_data_all
    from v$database;

    6.控制文件,参数文件是否设置了自动备份?

    RMAN> show controlfile autobackup;

    7.系统中是否存在invalid对象、无效索引

    SQL> select owner, object_type, COUNT(*)
    from dba_objects
    where status = 'INVALID' group by owner, object_type;
    SQL> select owner, index_name, index_type
    from dba_indexes
    where status not in ('VALID', 'N/A') order by 1,3,2;

    8. 数据库需要归档的情形

  • 相关阅读:
    & 微信支付对比
    # MySQL性能优化技巧
    & mysql简单定时增量全量备份
    & Mysql高级总结
    python面向对象
    django虚拟环境的安装
    Python 内置函数
    Python列表解析式
    函数练习
    Python装饰器
  • 原文地址:https://www.cnblogs.com/andy6/p/6119484.html
Copyright © 2011-2022 走看看