Oracle 11g 變更記錄檔組大小

來源:互聯網
上載者:User

Oracle 11g 變更記錄檔組大小

Oracle 11g 變更記錄檔組大小

1、建立新的日誌組

1.alter database add logfile group 4 (‘/u01/app/oracle/oradata/jian/redo04.log’) size 1024k;

2.alter database add logfile group 5 (‘/u01/app/oracle/oradata/jian/redo05.log’) size 1024k;

2、切換當前日誌到新的日誌組

1.alter system switch logfile;

2.alter system switch logfile;

3、刪除舊的日誌組

1.alter database drop logfile group 1;

2.alter database drop logfile group 2;

3.alter database drop logfile group 3;

4、作業系統下刪除原日誌組1、2、3中的檔案

5、重建日誌組1、2、3

1.alter database add logfile group 1 (’/u01/app/oracle/oradata/jian/redo01.log’) size 10M;

2.alter database add logfile group 2 (’/u01/app/oracle/oradata/jian/redo02.log’) size 10M;

3.alter database add logfile group 3 (’/u01/app/oracle/oradata/jian/redo03.log’) size 10M;

6、切換日誌組

1.alter system switch logfile;

2.alter system switch logfile;

3.alter system switch logfile;

7、刪除日誌組4、5

1.alter database drop logfile group 4;

2.alter database drop logfile group 5;

8、到作業系統下刪除原日誌組4、5中的檔案

9、備份當前的最新的控制檔案

SQL> alter database backup controlfile to trace resetlogs

--------------------------------------分割線 --------------------------------------

在CentOS 6.4下安裝Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虛擬機器中安裝步驟

Debian 下 安裝 Oracle 11g XE R2

--------------------------------------分割線 --------------------------------------

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.