• 将ORACLE数据库从归档改成非归档状态


    数据库打开到mount状态,生产库记住要先shutdown immediate,
    然后再startup mount,shutdown abort容易带来灾难性问题
    sys@HYJT> startup force mount
    ORACLE instance started.

    Total System Global Area  184549376 bytes
    Fixed Size                  1218412 bytes
    Variable Size              67111060 bytes
    Database Buffers          113246208 bytes
    Redo Buffers                2973696 bytes
    Database mounted.

    在mount状态下修改数据库归档模式
    sys@HYJT> alter database noarchivelog;

    Database altered.

    查看修改结果
    sys@HYJT> select log_mode from v$database;

    LOG_MODE
    ------------
    NOARCHIVELOG

    打开数据库到open
    sys@HYJT> alter database open;

    Database altered.

    查看归档状态
    sys@HYJT> archive log list;
    Database log mode              No Archive Mode
    Automatic archival             Disabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     1
    Current log sequence           3

  • 相关阅读:
    超图 wpf地图控件加载地图
    MySql常用内容
    超图资料下载与环境安装
    超图SampleCode运行须知
    英语感叹词
    英语之妻子,老婆
    Pycharm设置
    yizhihx ubuntu config
    Ubuntu之网易云音乐无法启动
    linux之错误输出重定向
  • 原文地址:https://www.cnblogs.com/wbzhao/p/2414261.html
Copyright © 2020-2023  润新知