实验案例:删除文件系统日志组,保留ASM日志组
实验案例:删除文件系统日志组,保留ASM日志组 说明: oracle文件系统迁移至ASM,需要删除文件系统的日志组,只保留ASM日志组。若两者均保留,会出现读写日志性能不平衡状态。向ASM中读写日志要远快于向文件系统中读写日志。 操作步骤: SQL select * from v$
实验案例:删除文件系统日志组,保留ASM日志组说明:
oracle文件系统迁移至ASM,需要删除文件系统的日志组,只保留ASM日志组。若两者均保留,会出现读写日志性能不平衡状态。向ASM中读写日志要远快于向文件系统中读写日志。
操作步骤:
SQL> select * from v$log;
--查看到当前日志组为2,第1、3日志组处于INACTIVE状态,脏块已经写完,可以将这两个日志组删除
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
---------- ---------- ---------- ---------- ---------- --- ----------------
FIRST_CHANGE# FIRST_TIM
------------- ---------
1 1 2 52428800 2 YES INACTIVE
864542 29-MAY-14
2 1 7 52428800 2 NO CURRENT
864576 29-MAY-14
3 1 3 52428800 2 YES INACTIVE
864552 29-MAY-14
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
---------- ---------- ---------- ---------- ---------- --- ----------------
FIRST_CHANGE# FIRST_TIM
------------- ---------
4 1 4 52428800 1 YES INACTIVE
864565 29-MAY-14
5 1 5 52428800 1 YES INACTIVE
864568 29-MAY-14
6 1 6 52428800 1 YES INACTIVE
864571 29-MAY-14
6 rows selected.
SQL> alter database drop logfile group 1;
Database altered.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
---------- ---------- ---------- ---------- ---------- --- ----------------
FIRST_CHANGE# FIRST_TIM
------------- ---------
2 1 7 52428800 2 NO CURRENT
864576 29-MAY-14
3 1 3 52428800 2 YES INACTIVE
864552 29-MAY-14
4 1 4 52428800 1 YES INACTIVE
864565 29-MAY-14
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
---------- ---------- ---------- ---------- ---------- --- ----------------
FIRST_CHANGE# FIRST_TIM
------------- ---------
5 1 5 52428800 1 YES INACTIVE
864568 29-MAY-14
6 1 6 52428800 1 YES INACTIVE
864571 29-MAY-14
SQL> col name for a40
SQL> set pagesize 200
SQL> r
1* select l.group#,l.sequence#,f.member as name,l.status,l.archived from v$log l,v$logfile f where f.group#=l.group#
GROUP# SEQUENCE# NAME STATUS
---------- ---------- ---------------------------------------- ----------------
ARC
---
3 3 /u01/app/oracle/oradata/metro/redo03.log INACTIVE
YES
2 7 /u01/app/oracle/oradata/metro/redo02.log CURRENT
NO
4 4 +DATA/metro/onlinelog/group_4.274.848866 INACTIVE
125YES
2 7 /disk1/metro/redofile/redo02a.log CURRENT
NO
3 3 /disk1/metro/redofile/redo03a.log INACTIVE
YES
5 5 +DATA/metro/onlinelog/group_5.275.848866 INACTIVE
171
YES
6 6 +DATA/metro/onlinelog/group_6.276.848866 INACTIVE
215
YES
7 rows selected.
SQL> set linesize 200;
SQL> r
1* select l.group#,l.sequence#,f.member as name,l.status,l.archived from v$log l,v$logfile f where f.group#=l.group#
GROUP# SEQUENCE# NAME STATUS ARC
---------- ---------- ---------------------------------------- ---------------- ---
3 3 /u01/app/oracle/oradata/metro/redo03.log INACTIVE YES
2 7 /u01/app/oracle/oradata/metro/redo02.log CURRENT NO
4 4 +DATA/metro/onlinelog/group_4.274.848866 INACTIVE YES
125
2 7 /disk1/metro/redofile/redo02a.log CURRENT NO
3 3 /disk1/metro/redofile/redo03a.log INACTIVE YES
5 5 +DATA/metro/onlinelog/group_5.275.848866 INACTIVE YES
171
6 6 +DATA/metro/onlinelog/group_6.276.848866 INACTIVE YES
215
7 rows selected.
SQL> alter database drop logfile group 3;
--删除日志组3
Database altered.
SQL> select l.group#,l.sequence#,f.member as name,l.status,l.archived from v$log l,v$logfile f where f.group#=l.group#;
GROUP# SEQUENCE# NAME STATUS ARC
---------- ---------- ---------------------------------------- ---------------- ---
2 7 /u01/app/oracle/oradata/metro/redo02.log CURRENT NO
4 4 +DATA/metro/onlinelog/group_4.274.848866 INACTIVE YES
125
2 7 /disk1/metro/redofile/redo02a.log CURRENT NO
5 5 +DATA/metro/onlinelog/group_5.275.848866 INACTIVE YES
171
6 6 +DATA/metro/onlinelog/group_6.276.848866 INACTIVE YES
215
SQL> alter system switch logfile;
--切归档,改变当前日志组
System altered.
SQL> select l.group#,l.sequence#,f.member as name,l.status,l.archived from v$log l,v$logfile f where f.group#=l.group#;
--日志组处于active状态,存在脏块没有写完,暂不可删除日志组2
GROUP# SEQUENCE# NAME STATUS ARC
---------- ---------- ---------------------------------------- ---------------- ---
2 7 /u01/app/oracle/oradata/metro/redo02.log ACTIVE YES
4 8 +DATA/metro/onlinelog/group_4.274.848866 CURRENT NO
125
2 7 /disk1/metro/redofile/redo02a.log ACTIVE YES
5 5 +DATA/metro/onlinelog/group_5.275.848866 INACTIVE YES
171
6 6 +DATA/metro/onlinelog/group_6.276.848866 INACTIVE YES
215
SQL> r
1* select l.group#,l.sequence#,f.member as name,l.status,l.archived from v$log l,v$logfile f where f.group#=l.group#
--几分钟后,再次查看日志状态,日志组2已经将脏块写完,此时可以删除该日志组了
GROUP# SEQUENCE# NAME STATUS ARC
---------- ---------- ---------------------------------------- ---------------- ---
2 7 /u01/app/oracle/oradata/metro/redo02.log INACTIVE YES
4 8 +DATA/metro/onlinelog/group_4.274.848866 CURRENT NO
125
2 7 /disk1/metro/redofile/redo02a.log INACTIVE YES
5 5 +DATA/metro/onlinelog/group_5.275.848866 INACTIVE YES
171
6 6 +DATA/metro/onlinelog/group_6.276.848866 INACTIVE YES
215
SQL> alter database drop logfile group 2;
--删除日志组2
Database altered.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to delete Xiaohongshu notes? Notes can be edited in the Xiaohongshu APP. Most users don’t know how to delete Xiaohongshu notes. Next, the editor brings users pictures and texts on how to delete Xiaohongshu notes. Tutorial, interested users come and take a look! Xiaohongshu usage tutorial How to delete Xiaohongshu notes 1. First open the Xiaohongshu APP and enter the main page, select [Me] in the lower right corner to enter the special area; 2. Then in the My area, click on the note page shown in the picture below , select the note you want to delete; 3. Enter the note page, click [three dots] in the upper right corner; 4. Finally, the function bar will expand at the bottom, click [Delete] to complete.

1. First of all, it is false to block and delete someone permanently and not add them permanently. If you want to add the other party after you have blocked them and deleted them, you only need the other party's consent. 2. If a user blocks someone, the other party will not be able to send messages to the user, view the user's circle of friends, or make calls with the user. 3. Blocking does not mean deleting the other party from the user's WeChat contact list. 4. If the user deletes the other party from the user's WeChat contact list after blocking them, there is no way to recover after deletion. 5. If the user wants to add the other party as a friend again, the other party needs to agree and add the user again.

General Matrix Multiplication (GEMM) is a vital part of many applications and algorithms, and is also one of the important indicators for evaluating computer hardware performance. In-depth research and optimization of the implementation of GEMM can help us better understand high-performance computing and the relationship between software and hardware systems. In computer science, effective optimization of GEMM can increase computing speed and save resources, which is crucial to improving the overall performance of a computer system. An in-depth understanding of the working principle and optimization method of GEMM will help us better utilize the potential of modern computing hardware and provide more efficient solutions for various complex computing tasks. By optimizing the performance of GEMM

As a popular social e-commerce platform, Xiaohongshu has attracted a large number of users to share their daily life and shopping experiences. Sometimes we may inadvertently publish some inappropriate content, which needs to be deleted in time to better maintain our personal image or comply with platform regulations. 1. How to delete Xiaohongshu releases? 1. Log in to your Xiaohongshu account and enter your personal homepage. 2. At the bottom of the personal homepage, find the "My Creations" option and click to enter. 3. On the "My Creations" page, you can see all published content, including notes, videos, etc. 4. Find the content that needs to be deleted and click the "..." button on the right. 5. In the pop-up menu, select the "Delete" option. 6. After confirming the deletion, the content will disappear from your personal homepage and public page.

On July 29, at the roll-off ceremony of AITO Wenjie's 400,000th new car, Yu Chengdong, Huawei's Managing Director, Chairman of Terminal BG, and Chairman of Smart Car Solutions BU, attended and delivered a speech and announced that Wenjie series models will be launched this year In August, Huawei Qiankun ADS 3.0 version was launched, and it is planned to successively push upgrades from August to September. The Xiangjie S9, which will be released on August 6, will debut Huawei’s ADS3.0 intelligent driving system. With the assistance of lidar, Huawei Qiankun ADS3.0 version will greatly improve its intelligent driving capabilities, have end-to-end integrated capabilities, and adopt a new end-to-end architecture of GOD (general obstacle identification)/PDP (predictive decision-making and control) , providing the NCA function of smart driving from parking space to parking space, and upgrading CAS3.0

When deleting or decompressing a folder on your computer, sometimes a prompt dialog box "Error 0x80004005: Unspecified Error" will pop up. How should you solve this situation? There are actually many reasons why the error code 0x80004005 is prompted, but most of them are caused by viruses. We can re-register the dll to solve the problem. Below, the editor will explain to you the experience of handling the 0x80004005 error code. Some users are prompted with error code 0X80004005 when using their computers. The 0x80004005 error is mainly caused by the computer not correctly registering certain dynamic link library files, or by a firewall that does not allow HTTPS connections between the computer and the Internet. So how about

1. Open the Douyin app, click [Message] at the bottom of the interface, and click the chat conversation entry that needs to be deleted. 2. Long press any chat record, click [Multiple Select], and check the chat records you want to delete. 3. Click the [Delete] button in the lower right corner and select [Confirm deletion] in the pop-up window to permanently delete these records.

On Douyin, users can not only share their life details and talents, but also interact with other users. In this process, sometimes we need to send files to other users, such as pictures, videos, etc. So, how to send files to others on Douyin? 1. How to send files to others on Douyin? 1. Open Douyin and enter the chat interface where you want to send files. 2. Click the "+" sign in the chat interface and select "File". 3. In the file options, you can choose to send pictures, videos, audio and other files. After selecting the file you want to send, click "Send". 4. Wait for the other party to accept your file. Once the other party accepts it, the file will be transferred successfully. 2. How to delete files sent to others on Douyin? 1. Open Douyin and enter the text you sent.
