Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle 11g change log group size

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. Create a new log group

1.alter database add logfile group 4 ('/ u01ax size size 1024k)

2.alter database add logfile group 5 ('/ u01ax size size 1024k)

2. Switch the current log to a new log group

1.alter system switch logfile

2.alter system switch logfile

3. Delete the old log group

1.alter database drop logfile group 1

2.alter database drop logfile group 2

3.alter database drop logfile group 3

4. Delete the files in the original log group 1, 2, 3 under the operating system

5. Rebuild log group 1, 2, 3

1.alter database add logfile group 1 ('/ u01 size) size 10m

2.alter database add logfile group 2 ('/ u01 size) size 10m

3.alter database add logfile group 3 ('/ u01ax size size 10m)

6. Switch log groups

1.alter system switch logfile

2.alter system switch logfile

3.alter system switch logfile

7. Delete log groups 4 and 5

1.alter database drop logfile group 4

2.alter database drop logfile group 5

8. Delete the files in the original log group 4 and 5 under the operating system

9. Back up the latest control files

SQL > alter database backup controlfile to trace resetlogs

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report