Archive Log Migration--Practice

--sqlplus sys/Jacjqwl123@JQWLSCL as sysdba
set ORACLE_SID=JQWLSCL
sqlplus /nolog
connect / as sysdba

alter system set log_archive_dest_1='location=E:\app\archivelog\jqwlscl' scope=both;

shutdown immediate;
-- Check the archive of the database again
archive log list;
--You can switch the log to check whether there is an archive log generated under the archive path to verify whether the archive path is set correctly. You can use the following command to switch the log.
alter system switch logfile;

show parameter log_archive_format;

startup mount;
alter database open;
-----------------------------------------PCL
--sqlplus sys/Jacjqwl123@JQWLDB as sysdba
set ORACLE_SID=JQWLDB
sqlplus /nolog
connect / as sysdba

alter system set log_archive_dest_1='location=E:\app\archivelog\jqwldb' scope=both;
shutdown immediate;
startup mount;
alter database open;

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326623753&siteId=291194637
Recommended