zoukankan      html  css  js  c++  java
  • Oracle 启用归档

    [applprod@erp10 ~]$ watch ps -fu applprod
    [applprod@erp10 ~]$ kill -9 82902 84923
    [applprod@erp10 ~]$ watch ps -fu applprod
    [applprod@erp10 ~]$ cd
    You have new mail in /var/spool/mail/applprod

    [oraprod@erp10 ~]$ sqlplus / as sysdba
    SQL*Plus: Release 12.1.0.2.0 Production on Tue Jun 27 18:35:31 2017
    Copyright (c) 1982, 2014, Oracle.  All rights reserved.

    Connected to:
    Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
    SQL> archive log list;
    Database log mode        No Archive Mode
    Automatic archival        Disabled
    Archive destination        /erp/prod/db/data/archive
    Oldest online log sequence     55
    Current log sequence        56
    SQL> exit
    Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
    [oraprod@erp10 ~]$ ls /erp/prod/db/data/archive
    [oraprod@erp10 ~]$ ls
    startdb.sh  stopdb.sh
    [oraprod@erp10 ~]$ sqlplus / as sysdba
    SQL*Plus: Release 12.1.0.2.0 Production on Tue Jun 27 18:38:08 2017
    Copyright (c) 1982, 2014, Oracle.  All rights reserved.

    Connected to:
    Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> SQL>
    SQL>
    SQL> startup mount;
    ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
    ORACLE instance started.
    Total System Global Area 2.1475E+10 bytes
    Fixed Size      7654304 bytes
    Variable Size   2751464544 bytes
    Database Buffers  1.8656E+10 bytes
    Redo Buffers     59453440 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database open;
    Database altered.
    SQL> alter system switch logfile;
    System altered.
    SQL> exit
    Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
    [oraprod@erp10 ~]$ ls /erp/prod/db/data/archive
    1_56_943217062.dbf
    [oraprod@erp10 ~]$
    [oraprod@erp10 ~]$
    [oraprod@erp10 ~]$
    土豆君
  • 相关阅读:
    BZOJ 3122 SDOI2013 随机数生成器
    【BZOJ 1178】【APIO 2009】CONVENTION会议中心
    【BZOJ 3242】【UOJ #126】【CodeVS 3047】【NOI 2013】快餐店
    【BZOJ 2118】墨墨的等式
    【BZOJ 4547】【HDU 5157】小奇的集合
    【BZOJ 4455】【UOJ #185】【ZJOI 2016】小星星
    【BZOJ 3879】SvT
    【BZOJ 4104】【THUSC 2015】解密运算
    【POJ 2482】Stars in Your Window
    【HDU 2089】不要62
  • 原文地址:https://www.cnblogs.com/jenrry/p/10006893.html
Copyright © 2011-2022 走看看