ORACLE入门之改数据库的归档方式 来源:ChinaITLab2002-10-29 17:26:00 1、先按正常方式关闭数据库 然后 %svrmgrl SVRMGRL>connect internal SVRMGRL>startup mount [database_name]; SVRMGRL>alter database [database_name] archivelog; SVRMGRL>archive log list; SVRMGRL>alter database open; 2、设置数据库开启后自动启动archive进程 改参数文件initoraid.ora中 log_archive_start=true log_archive_dest=directory or device name log_archive_format=filename format 再重新启动数据库,即可 3、注意事项 有足够的资源存放归档日志文件 定一个热备份计划,定期删除归档日志文件
|