/orcl/redo3a.rdo /u01/app/oracle/oradata/orcl/redo3b.rdo /u01/app/oracle/oradata/ Orcl/redo1b.rdo7) View Control filesSql> select name from V$controlfile; NAME ------------------------------------------------------------ /u01/app/oracle/oradata/orcl/ Control01.ctl /u01/app/oracle/oradata/orcl/control02.ctl8) Create a backup directorySql> Ho Mkdir/u01/app/oracle/coolbak9) Use the connector
for the backup table space
(3) Return tablespace to normal state
2. Backing Up archive log files
(1) Temporarily stop the archiving process
(2) The files in the archive Rede log target directory under log
(3) Restart the archive process
(4) Backup archived redo log files
3. Backing up control files with ALTER DATABASE
be recycled, online redo login file, control file and parameter file;Shut down the database and perform a full recovery (use the TAR command of the operating system to write it as a shell program). However
Then open the database for normal use. The shell program is as follows:Tar cvf/dev/rmt/ctape2/u1/oracle/dbs/ctrl1ora7. ctl/U1/oracle/dbs/ctrl2ora7. ctl/U1/oracle/dbs/ctrl3ora7. ctl/U1/oracle/dbs/systora7
Reprint please specify the address.Backup slice file name wildcard character:Number of copies of%c backup slices%d The day ordinal (DD) in the month%M in the month of the year (MM)%F a unique name based on dbid, which is in the form of C-IIIIIIIIII-YYYYMMDD-QQ,%d database name where IIIIIIIIII is the date of the database DBID,YYYYMMDD, QQ is a sequence of 1-256%n
reported, it may be that the recover managed standby command is being executed:
ORA-19870: errorwhile restoring backup piece/tmp/stb_bk/05n5a31s_00000000for_stb.bk
ORA-19573: cannotobtain exclusive enqueue for datafile 1
Run the following command or restart the database to the mount status:
Idle> alter database recove
;connect/as sysdbasql>shutdown normal; (2) use copy command to back up all time files, redo log files, control files, Initialize parameter file sql>cp (3) Restart Oracle database NBSP; Third, hot backupA hot backup is a method of backing up a database using the Archivelog mode mode in the case of a database run. So if
completed, the directory uploaded from the master database to the backup database may be different from the preceding directory.
RMAN> catalog start with '/tmp/stb_bk /';
4. Check the controlfile location, because the backup control file will be used next.
Idle> show parame
Manual hot Standby (open library status)Backup control Files:ALTER DATABASE backup Controlfile to '/U01/ORADATA/PROD/CON.BAK1 ';Back up the data file (use PL/SQL for batch processing, paste the query results to run)BeginFor I in (select Tablespace_name from dba_tablespaces) loopDbms_output.put_line ('
1. Change Database downtime to archive ModeSQL> archive log listSQL> shutdown immediateSQL> startup mountSQL> alter database archivelog;SQL> alter database open;2. Point the database archive to ASMSQL>
files3. Backing up control files with ALTER DATABASE Bachup controlfile command The advantages of hot backup are:1. Can be backed up at the table space or database file level for a short time.2. The database is still available fo
Machine:Select instance_name from v $ instance;Select name from v $ database;Select name from v $ datafile;Log query mode:Archive log list;Shutdown immediate;Startup mount;Change the log archive mode:Alter database archivelog;Alter database open;Alter system archive log curr
this fileDelete the comment row in the scriptChange "reuse" in "create controlfile reuse Database" clne "to" set"Change "practice" in create controlfile to "clne"Change the path of each data file and log file from the original/oradata/practice directory to/oradata/clneThe best result after modification:
3. Prepare data files of the target
Tags: mit file 11.2 Offline commit start database current hangRman Target/log=/orasoft/backup/${date}backup1.log Run {Allocate channel C1 device type disk;Allocate channel C2 device type disk;Allocate channel C3 device type disk;Backup database format '/orasoft/backup/db_%t%
;Backup full tag ' dbfull ' format '/u01/oradata/backup/full%u_%s_%p ' databaseInclude current controlfile;SQL ' alter system archive log current ';Backup fileaperset 3 format '/u01/oradata/backup/arch%u_%s_%p 'Archivelog all dele
Backup | data | database
Oracle9i begins Rman to provide the plus archivelog option, greatly simplifying the operation of the Rman backup.
When you define the plus Archivelog statement, Rman performs the following steps:
1. Run an alter SYSTEM archivelog current command
2. Run the
The rman backup script in the Oracle database is very practical.
The rman backup script in the Oracle database is very practical.
Query character sets
SQL> select * from nls_database_parameters;
NLS_CHARACTERSETAL32UTF8
Character Set is very important during backup, otherwis
Database backup and RecoveryExperimental purposeMaster backup methods commonly used in Oracle databases.Experimental content(1) Methods of data backupExperimental steps1. Database backup1) Oracle Physical backup and recovery.0. Preparatory work:(1) To see if the
Under the full recovery model or the bulk-logged recovery model, you must back up the active transaction log (called the tail of the log) before you can restore the database in Sqlservermanagementstudio. For more information, see How to Back up the transaction log (Sqlservermanagementstudio). To restore an encrypted database, you must have access to the certificate or asymmetric key used to encrypt the
The rman backup script in the Oracle database is very useful for querying the character set SQLgt; select * fromnls_database_parameters; NLS_CHARACTERSETAL32UTF8
The rman backup script in the Oracle database is very useful for querying the character set SQLgt; select * from nls_database_parameters; NLS_CHARACTERSETAL32
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.