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 Bachup controlfile command
The advantages of hot
Alter database until cancel;
Alter database open resetlogs;
1. Logical backup and recoveryExp Scott/tiger @ Oracle
Restore
IMP Scott/Tiger
2. Hot Backup
View Current Log status
Archive log list; (PL/SQL developer does not suppor
Restore databases in different locations
Restore databases in different locations
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
Machine A:
Select instance_name from V$instance;
Select name from V$database;
Select name from V$datafile;
Query log mode:
Archive log list;
Shutdown immediate;
startup Mount;
Change Log to archive mode:
ALTER DATABASE Archivelog;
ALTER DATABASE open;
target directory under log(3) Restart the archive process(4) Backup archived redo log files3. Backing up control files with ALTER DATABASE Bachup controlfile commandThe advantages of hot backup are:1. Can be backed up at the table space or
stop the archive process(2) Log those files in the archive Rede log target directory(3) Restart the archive process(4) Backing up the archived redo log file3. Use the ALTER DATABASE Bachup controlfile command to back up the control fileThe advantages of hot backup are:1. Backup
Tag: Oracle control File missingWhen the backup of the control file is lost, how does the restore database?From:How to restore the database when Controlfile backup missing (document ID 1438776.1)Suitable for:Oracle database-enterp
archive Process
---- (4) back up the archived redo log file
---- 3. Use the alter database backup controlfile command to back up and copy files
---- Advantages of Hot Backup:
---- 1. Backup can be performed at the tablespace or d
1. Set the storage location of the backup file, and automatically backup the control file during Backup
C: \ Documents ents and Settings \ wwang> rman target/-- backup on the target database
Recovery MANAGER: Release 11.2.0.1.0-Production on Monday July 2 22:15:57 2012
Copyr
corresponds to the user name to sysloginsexec sp_change_users_login ' auto_fix ', ' username '
--Maps the user name to the specified login name.exec sp_change_users_login ' update_one ', ' username ', ' sign-in name ' shrink log
ALTER DATABASE MyDB SET recovery simpleDBCC SHRINKFILE (mydb_log,10)--shrinks mydb_log to 10m to change owner to dbo
exec sp_msforeachtable "Sp_changeobjectowner '", ' dbo ' "fi
directory
----(3) Restart the archive process
----(4) Backup archived redo log files
----3. Backing up copy files with the ALTER DATABASE backup Controlfile command
The advantages of----hot backup are:
----1. Can be bac
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
---- SQLDBA> connect internal;---- SQLDBA> startup;---- III. Hot Backup---- Hot Backup uses archivelog mode to back up data when the database is running. Therefore, if you have a cold backup file last night and a hot backup file today, you can use this data to restore more i
----(3) Restart Oracle database
----$SQLDBA Lmode=y
----SQLDBA >connect internal;
----SQLDBA >startup;
----Three, hot backup
----Hot backup is a way to back up data in Archivelog mode when the database is running. So if you have a cold backup last night and you have today'
volume is relatively largeCannot implement table-and user-level data recoverySecond, cold backup
Case: First, you should find out the database data files, log files, control files, the location of the temporary files in the relevant view.Note: Do not direct the oradata under the CP on the line, because the production library files are usually distributed in different disks, different places, so in th
archiving process (2) files under the log in the archive rede log target directory (3) restart the archive process (4) back up the archived redo log file 3. the advantages of using the alter database bachup controlfile command to back up the control file Hot Backup are: 1. it can be backed up at the tablespace or
restoration, The data after this point in time is gone.
"Note: When you restore, you are prompted that the database is in use, and you typically disconnect all connections before you can restore." I typically use a script to take the data offline and back online, and all connections will be disconnected.
ALTER DATABASE MyTest set offline with ROLLBACK immediat
other servers.(2) "Import" tableTo import a InnoDB table from another server on a MySQL server, you need to create a table on the current server that is consistent with the original table structure before you can import the table:Mysql> CREATE TABLE mytable (...) Engine=innodb;Then delete the table space for this table:mysql> ALTER TABLE mydatabase.mytable DISCARD tablespace;Next, copy the MYTABLE.IBD and Mytable.exp files from the server's MyTable t
the archive Rede log target directory under Log(3) restart the archive Process(4) back up the archived redo log file
3. Use the alter database bachup controlfile command to back up control filesAdvantages of Hot Backup:
1. Data can be backed up at the tablespace or database
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.