Added database scripts used for htobackup, standby, log shipping, etc.
git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@4804 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
14
WebServer/DatabaseScripts/archivelog.sql
Normal file
14
WebServer/DatabaseScripts/archivelog.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
REM $Id: archivelog.sql 3441 2008-02-01 11:39:10Z hardya $
|
||||
conn &&user/&&password as sysdba;
|
||||
shutdown immediate;
|
||||
conn &&user/&&password as sysdba;
|
||||
startup mount;
|
||||
alter database force logging;
|
||||
alter system set log_archive_dest_1='location=s:\orabackup\webmip\archivelogs\' scope=both;
|
||||
/*
|
||||
set the time by which archive logs
|
||||
should lag the redo in seconds
|
||||
*/
|
||||
alter system set archive_lag_target=2700;
|
||||
alter database archivelog;
|
||||
alter database open;
|
||||
Reference in New Issue
Block a user