\ open_backup_commands. SQL'4 define SPO = ' dir \ open_backup_output.lst'5 prompt *** spooling to fil6 set serveroutput on7 spool fil8 prompt spool spo9 prompt archive log list ;;10 prompt alter system switch logfile ;;11 declare12 cursor cur_tablespace is13 select tablespace_name from dba_tablespaces14 where status 15 cursor cur_datafile (TN varchar) is16 select file_name17 from dba_data_files18 where tablespace_name = tn;19 begin20 for CT in cu
process ARCH will
It is used as a copy. Generally, the redo log files of these documents are written into disks or tapes. If the disk space is sufficient, we recommend that you use a disk, which can be greatly reduced.
Less time required to complete the backup.
Before performing a hot backup, set log_archive_start In the config. ora file to true to set log_archive_dest
Specify the location of the archive r
willIt is used as a copy. Generally, the redo log files of these documents are written into disks or tapes. If the disk space is sufficient, we recommend that you use a disk, which can be greatly reduced.Less time required to complete the backup.Before performing a hot backup, set log_archive_start In the config. ora file to true to set log_archive_destSpecify the location of the archive redo log file:Log_archive_dest =/wwwdg/oracle/archLog_archive_s
backup, the recover database or the recover database using backup controlfile will be used if all the archiving logs and online logs are well saved. No data is lost.If an archived log or an online log (active or current) is lost after the
Label:
1 Recover database using Backup Controlfile2 Recover database until cancel3 Recover database using Backup controlfile until cancel;4 Recover database until canc
Or
$CP Cp/u01/oradata/prod/user01.ora/backup/prod/user01.ora
④ after the data file copy completes, the table space drags the body to back up the way
SVRMGRL "Alter tablespace User end backup;
⑤ Repeat for all table spaces that need to be backed up 2,3,4
⑥ uses the following command to back up the control file alter
dba_data_files;
-- View all data file locations and tablespaces
SQL> ALTER TABLESPACE users BEGIN BACKUP;
-- Place the tablespace in backup mode
$ Cp $ ORACLE_HOME/oradata/orcl/users *. dbf/u02/backup/datafile
-- Copy the data file of the tablespace to the backup location
S
optimization is that if you have backed up the same version of a file, you will no longer back up the file. , keep only one copy of the backup file.CONFIGURE Controlfile autobackup OFFDo not start automatic backup of control files, after modification to on, if the database structure changes or in the
database default location. %oracle_home%/ora92/databaseOf course you can also use Run to flexibly define your backups.rman>run{>allocate chennel d1 type disk; assigning channels>backup full database//fully backed up databases>include Current Controlfile//Includes present Controlfi
Today, I will introduce you to the implementation of offline backup in oracle databases and some precautions when using offline backup in oracle databases. Let's take a look.
Cold backup is a physical backup of database files. It is usually performed after the
the database and copying all data files and control files to the backup directory, you can back up the NOARCHIVELOG database as a whole. Because the file copy operation is completed using the OS command, you must first close the database. This puts the database in a consist
mode.(3rd) use the ocopy.exebeibeibei table space, and then place the table space in the simplified foreign model (ocopy.exe cannot be used to directly copy online database files ).(4) Perform steps 2 and 3 on each tablespace in the database (you can view the tablespace and data files in the database through dba_tablespaces and V $ datafile ).(5) run the archive
model (ocopy.exe cannot be used to directly copy online database files ).(4) Perform steps 2 and 3 on each tablespace in the database (you can view the tablespace and data files in the database through dba_tablespaces and V $ datafile ).(5) run the archive log LIST Command on sqlplus to obtain the sequence number of the current log. The online redo logs from old
space, and then place the table space in the simplified foreign model (ocopy.exe cannot be used to directly copy online database files ).(4) Perform steps 2 and 3 on each tablespace in the database (you can view the tablespace and data files in the database through dba_tablespaces and v $ datafile ).(5) run the archive log list Command on sqlplus to obtain the s
dba_tablespaces and v $ datafile ).(5) run the archive log list Command on sqlplus to obtain the sequence number of the current log. The online redo logs from oldest online log sequence to current log sequence should be part of hot backup.(6) execute the alter system switch logfile command on sqlplus to force log switching so that all logs are archived.(7) run the alte
.
SQL> host Copy D: \ demo \ users01.dbf D: \ backup 1 file has been copied.
SQL> alter Database End backup;
The database has been changed.
SQL> alter database create standby
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.