script is as follows:1 -- insert a data record of 10 years into date_log, and then check whether the data exists.
2 SQL> insert into Tina. date_log values (sysdate + 10*365 );
3 SQL> commit;
4 SQL> alter session set nls_date_format = 'yyyy-mm-dd hh24: MI: ss ';
5 SQL> select create_date from Tina. date_log;
Step 2: create a backup script
Using scripts to create and execute commands is a fast, simple, and
open state, use the alter database backup controlfile to trace command to back up the control file to the trace file
Two methods are available to control file recovery.
1) Use recover database using backup
cessation of the archiving process
B.log the files in the archive redo log target directory
C. Restarting the archive process
D. Backup archived redo log files
3. Use ALTER DATABASE backup Controlfile command to back up copy files
The Log_archive_dest directory may be full
backup files, you can use this data to recover more information in the event of a problem. Hot backup requires the database to operate in Archivelog mode and requires a large amount of file space. Once the database is running in the Archivelog state, it can be backed up. The command file for a hot
tablespace using Ocopy.exe and then place the tablespace in the end backup mode (Ocopy.exe cannot be used to copy the online database files directly).(4) Perform steps 2 and 3 for each tablespace in the database (view dba_tablespaces and v$datafile to see which tablespaces and data files are in the database).(5) To ob
file:A. Temporary cessation of the archiving processB.log the files in the archive redo log target directoryC. Restarting the archive processD. Backup archived redo log files3. Use ALTER DATABASE backup Controlfile command to back up copy filesThe Log_archive_dest directory
the database is started).
(2) Place a table space that needs to be backed up in the start Backup mode.
(3) Use Ocopy.exe to copy the tablespace, and then place the tablespace in the end backup mode (Ocopy.exe cannot be used for direct copy of the online database file).
(4) Perform steps 2 and 3 for each tablespace in
Summary of database backup and Restoration Technology of the IT Ninja Turtles, and backup of the Ninja Turtles Database
1. exp/imp (export and import the library and unload the database) 1.1 Basic commands 1. Get help
$ Exp help = y
$ Imp help = y2. Three ways of working
(1
database backup Controlfile to '/home/oracle/backup_ctl/prod4_ctl_20170703 '; To back up a logical file: sql> ALTER DATABASE backup Controlfile to trace as '/home/oracle/backup_ctl/pro
file manifest. For example, if V$log indicates that sequence#2334 is the last archived log file, you can successfully back up files in the archive redo log target directory with all the numbers below 2334. If you attempt to back up 2335, you can make a successful backup at the operating system level, but since this file is not fully archived, the backup may be written in half and therefore cannot be useful
RMAN backup full databaseBackup database; -- backup the entire databaseBackup database format '\ xxxxxx \ xxx _ % U'; -- backs up the entire database to the specified pathBackup tablespace users; -- backup tablespaceBackup datafil
, you can make a successful backup at the operating system level, but since this file is not fully archived, the backup may be written in half and therefore cannot be useful during the recovery operation.(3) Restart the archive process archExecute Command archive log start to launch the archive process arch.(4) Backup archive redo log filePerform the operating sy
to 09
RMAN> Backup current controlfile for standby format = 'd: \ backup \ % d _ % S. Bak ';
Start backup from 17-2 to 09Use channel ora_disk_1Channel ora_disk_1: Start all data file backup SetsChannel ora_disk_1: Specifies the data file in the
SQL> insert into T values ('4'); (insert record 4, but do not switch logs. This record is in redo03.log)
1 row created.
SQL> commit;
Commit complete.
Close the database:SQL> connect internal/OracleConnected.SQL> shutdown immediateDatabase closed.Database dismounted.Oracle instance shut down.
SQL> host$ CP/opt/Oracle/DB04/oradata/orcl/redo03.log/opt/Oracle/(back up the current log redo03.log to the/opt/Oracle directory separately)$ RM/opt/Oracle/DB02/oradata/orcl /*$ RM/opt/Oracle/db03/oradata/o
A cold backup is a physical backup of a database file, usually after the database is shut down normally through a shutdown normal or shutdown immediate command. When the database is closed, the individual files it uses can be backed up. These files form a full image of a
From the above recovery process, we can see that all logs are applied, including online logs, archived logs to sequence9, but sequence is restored to 10. 10 as the current log. 8,
From the above recovery process, we can see that all logs are applied, including online logs, archived logs to sequence9, but sequence is restored to 10. 10 as the current log. 8,
1. Full database backupRMAN> run {Allocate channel c1 type disk maxpiecesize = 500 m;
subscription ServerB. Select [subscribe request] from the [tools] drop-down menu in the [copy] submenuC. Follow the prompts and click [next] until the system prompts you to check the running status of the SQL SERVER proxy service.The precondition for the replication operation is that the SQL SERVER proxy service must be started.D. Click [finish] to complete the subscription operation.
Associated user
-- List isolated users of the current databaseExec sp_change_users_login 'report'
-- Automati
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.