查看控制文件的位置
show parameter control_fi
创建控制文件的目录
mkdir -p /u02/controlfile/cdb1/
mkdir -p /u03/controlfile/cdb1/
mkdir -p /u04/controlfile/cdb1/
chown -R oracle:oinstall /u02
chown -R oracle:oinstall /u03
chown -R oracle:oinstall /u04
chmod -R 775 /u02
chmod -R 775 /u03
chmod -R 775 /u04
ls -ld /u02/controlfile/cdb1/
ls -ld /u03/controlfile/cdb1/
ls -ld /u04/controlfile/cdb1/
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;
close the database
shutdown immediate;
switch user
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
LL /u02/controlfile/cdb1/control03.ctl
start database
show parameter control_fi
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;
creates a new log location
mkdir -p / u02 / redolog / CDB1 /
the ALTER DATABASE the ADD LOGFILE MEMBER '/u02/redolog/cdb1/redo0102.log' the TO the GROUP 1
Increase good log member
select * from v
logfile
where vKaTeX parse error: Expected 'EOF', got '#' at position 10: log.group#̲=vlogfile.group#;