بتاريخ: 11 فبراير 201214 سنة comment_220601 انا شغال على داتا بيز ebsالداتا بيز حجمها كبر جدا عايز حاجة تعملها archiveاو ضغط اى طريقة تخلينى اقدر احتفظ بنسخة من الداتا كل فترة معينةهل من مساعدة تقديم بلاغ
بتاريخ: 11 فبراير 201214 سنة comment_220605 السلام عليكم يا اخى الكريم هل انت بتاخد باكب للداتابيز بتاعتك كل فتره ؟ تقديم بلاغ
بتاريخ: 11 فبراير 201214 سنة كاتب الموضوع comment_220606 فى ebsبناخد باكب للapplication كله مش الداتا بس تقديم بلاغ
بتاريخ: 11 فبراير 201214 سنة comment_220607 did you use oracle rman for database backup or not ?please tell me how you backup your database and its in archivelog mode or not تم تعديل 11 فبراير 201214 سنة بواسطة abdo_m_mohamed تقديم بلاغ
بتاريخ: 11 فبراير 201214 سنة كاتب الموضوع comment_220608 انا باخد copy من application كله(apps+db)لكن لم استخدمoracle rman تقديم بلاغ
بتاريخ: 11 فبراير 201214 سنة comment_220609 then when you take the copy you shutdown you applications and database is this production i think for your database only you should use oracle rman as below RMAN Hot Backup Script The following unix shell script will do a full RMAN hot backup to your database and will copy the backup files compressed to the directory you will specify. This is a hot-backup, and the database must to be in ARCHIVELOG mode for this to work. A backup retention policy with a recovery window of 2 days is defined in this script. With this retention policy RMAN will keep archive logs and backup files necessary to recover to any point of time within those 2 days in the recovery window. Older backups and archivelogs not needed to satisfy this retention policy will be automatically deleted by this script. No RECOVERY CATALOG is being used with this script, instead database controlfiles are used to record the RMAN repository information.Make sure you set the rman CONFIGURE CONTROLFILE AUTOBACKUP parameter to ON in in RMAN in order to take extra backups of the controlfile and spfile (RMAN will not backup init.ora files) as extra protection.This script will delete obsolete backups and not needed archive logs from the disks only after a successful backup. This means you don’t need to set up cronjobs or manually delete not needed backups. This is the beauty of using RMAN. It does this automatically with the commands: “…DELETE NOPROMPT OBSOLETE;…” and “…DELETE NOPROMPT EXPIRED BACKUP…” See last lines in the script.The RMAN hot backup script rman_backup.sh# Declare your ORACLE environment variablesexport ORACLE_SID= (put your SID here)export ORACLE_BASE= (put your ORACLE BASE here)export ORACLE_HOME= (put your ORACLE_HOME here)export PATH=$PATH:${ORACLE_HOME}/bin# Start the rman commandsrman target=/ << EOFCONFIGURE CONTROLFILE AUTOBACKUP ON;CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘/(put backup directory here)/autobackup_control_file%F’;CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;run {ALLOCATE CHANNEL RMAN_BACK_CH01 TYPE DISK;CROSSCHECK BACKUP;BACKUP AS COMPRESSED BACKUPSET DATABASE FORMAT ‘/(put backup directory here)/databasefiles_%d_%u_%s_%T’;sql ‘ALTER SYSTEM ARCHIVE LOG CURRENT’;BACKUP AS COMPRESSED BACKUPSET ARCHIVELOG ALL FORMAT ‘/(put backup directory here)/archivelogs_%d_%u_%s_%T’ DELETE INPUT;BACKUP AS COMPRESSED BACKUPSET CURRENT CONTROLFILE FORMAT ‘/(put backup directory here)/controlfile_%d_%u_%s_%T’;CROSSCHECK BACKUP;DELETE NOPROMPT OBSOLETE;DELETE NOPROMPT EXPIRED BACKUP;RELEASE CHANNEL RMAN_BACK_CH01;}EXIT;EOF# Note: If you run this script on a database which was being backed up using OS methods and user managed backups, initially it will fail as it will look to satisfy the ‘… ARCHIVELOG ALL…” clause. That is it will try to backup archivelogs since day 1. Well, unless you have lots of money to allocate for storage, we know that is not practical to keep all archivelogs and with OS backups usually we delete them manually according to the chosen backup retention pollicy تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.