转载:http://wmlm.itpub.net/post/12871/272413
如果Oracle数据库运行在归档模式,当进行数据库维护时,可能需要暂停数据库的归档,在完成维护后,再重新启动归档模式。通过以下步骤可以从归档模式转换为非归档模式:
以下步骤在一台机器上操作。节点二保持down。在所有的操作完成后在打开节点二的数据库。。。
SQLPLUS>connect SYS/PASSWORD
SQLPLUS>ALTER SYSTEM SET CLUSTER_DATABASE=FALSE SCOPE=SPFILE;
SQLPLUS>shutdown immediate;
SQLPLUS>startup mount exclusive;
SQLPLUS>alter database noarchivelog;
SQLPLUS>ALTER SYSTEM SET CLUSTER_DATABASE=TRUE SCOPE=SPFILE;
SQLPLUS>shutdown immediate;
SQLPLUS>STARTUP
非归档改为归档
SQLPLUS>connect SYS/PASSWORD
SQLPLUS>ALTER SYSTEM SET CLUSTER_DATABASE=FALSE SCOPE=SPFILE;
SQLPLUS>shutdown immediate;
SQLPLUS>startup mount exclusive;
SQLPLUS>alter database archivelog;
SQLPLUS>ALTER SYSTEM SET CLUSTER_DATABASE=TRUE SCOPE=SPFILE;
SQLPLUS>shutdown immediate;
SQLPLUS>STARTUP