Control files and log files are placed in different disks

查看控制文件的位置
show parameter control_fi
Here Insert Picture Description
创建控制文件的目录
mkdir -p /u02/controlfile/cdb1/
mkdir -p /u03/controlfile/cdb1/
mkdir -p /u04/controlfile/cdb1/
Here Insert Picture Description
chown -R oracle:oinstall /u02
chown -R oracle:oinstall /u03
chown -R oracle:oinstall /u04
Here Insert Picture Description
chmod -R 775 /u02
chmod -R 775 /u03
chmod -R 775 /u04
Here Insert Picture Description
ls -ld /u02/controlfile/cdb1/
ls -ld /u03/controlfile/cdb1/
ls -ld /u04/controlfile/cdb1/
Here Insert Picture Description
alter system set control_files=’/u01/app/oracle/oradata/cdb1/control01.ctl’,
‘/u01/app/oracle/fast_recovery_area/cdb1/control02.ctl’,
‘/u02/controlfile/cdb1/control03.ctl’,
‘/u03/controlfile/cdb1/control04.ctl’,
'/u04/controlfile/cdb1/control05.ctl' scope = spfile;
Here Insert Picture Description
close the database
shutdown immediate;
Here Insert Picture Description
switch user
Here Insert Picture Description
the control file is copied to a new location
cp /u01/app/oracle/oradata/cdb1/control01.ctl / u02 / controlfile /cdb1/control03.ctl
cp /u01/app/oracle/oradata/cdb1/control01.ctl /u03/controlfile/cdb1/control04.ctl
cp /u01/app/oracle/oradata/cdb1/control01.ctl / U04 / controlfile /cdb1/control05.ctl
Here Insert Picture Description
LL /u02/controlfile/cdb1/control03.ctl
Here Insert Picture Description
start database
Here Insert Picture Description
show parameter control_fi
Here Insert Picture Description
increase the log to a different location
main view log size and log groups and log a few members
select group #, members, bytes, bytes / 1024/1024 daxiao from v $ log;
Here Insert Picture Description
creates a new log location
mkdir -p / u02 / redolog / CDB1 /
Here Insert Picture Description
Here Insert Picture Description
the ALTER DATABASE the ADD LOGFILE MEMBER '/u02/redolog/cdb1/redo0102.log' the TO the GROUP 1
Here Insert Picture Description
Increase good log member
Here Insert Picture Description

select * from v l O g , v log, v logfile
where vKaTeX parse error: Expected 'EOF', got '#' at position 10: log.group#̲=vlogfile.group#;
Here Insert Picture Description

Published 34 original articles · won praise 1 · views 978

Guess you like

Origin blog.csdn.net/weixin_39568073/article/details/104075525