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:
hardya
2008-04-16 10:16:57 +00:00
parent 60fd32941e
commit f6077a6741
11 changed files with 411 additions and 0 deletions

View 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;