oracle| Quick Start Preface
This article mainly introduces the common methods of Rman, including some of the author's own experience, the experiment is basically all in the win 2K and Oracle 8.1.6 Environment Test success (because this environment
Alter table allows you to modify the structure of an existing TABLE. For example, you can add or delete columns, create or delete indexes, change existing column types, or rename columns or tables. You can also change the comment and type of the
Rename a tableThe basic syntax for renaming a table is: The code is as follows:Copy code Alter table table_nameRename to new_table_name;For example:Alter table suppliers This will rename the Supplier table vendor. Add columns in the table
ALTER TABLE allows you to modify the structure of an existing table. For example, you can add or delete columns, create or eliminate indexes, change the type of existing columns, or rename columns or the table itself. You can also change the
To view the physical file path of an oracle database, you must run the command to view the physical file path of the oracle database. Unless the database is installed by yourself and all security configurations have been performed, otherwise, it is
To view the physical file path of an oracle database, you must run the command to view the physical file path of the oracle database. Unless the database is installed by yourself and all security configurations have been performed, otherwise, it is
RMAN command
Connect to the target database (you do not need to restore the directory database)RMAN target/nocatalog
Display RMAN ConfigurationRMAN> show all;
================================Report the physical structure of the target databaseRMAN>
1. show command:Display RMAN configuration: RMAN> show all;
2. Report command:2.1. RMAN> report schema the physical structure of the target database;2.2. RMAN> report need backup days = 3; report data files not backed up in the last three days;2.3.
? Perform a full recovery after losing critical or non-critical data files? Restore with incremental update backup? Switch to image copy for quick recovery? Restore the database to a new host? Using Backup control files for recovery
Using
to add columns to a table, use the following syntax:ALTER TABLE TABLE_NAMEADD COLUMN_NAME datatypeTo delete a column from a table, use the following syntax:ALTER TABLE table_name DROP COLUMN column_nameTo change the data type of a column in a table,
Perform full recovery: the key data file of the SYSTEM is lost in ARCHIVELOG mode. If a data file is lost or damaged and the file belongs to the SYSTEM or UNDO tablespace, perform the following steps: 1. the instance may or may not be automatically
Oracle backup tools, file naming formats, rman operations, and mongolerman
I. Common tools:
Recovery Manager: rman can only perform Hot Standby (mount or open state)Oracle Secure BackupUser-managed backup: cp/dd [if =/of =/blocksize =]
Ii. rman
Oracle backup tools, file naming formats, and rman operations
I. Common tools:
Recovery Manager: rman can only perform Hot Standby (mount or open state)Oracle Secure BackupUser-managed backup: cp/dd [if =/of =/blocksize =]
Ii. rman naming
The rman
Non-critical data file loss (offline data files can be lost): run {sqlalterdatabasedatafileoffline; restoredatafile; recoverdatafile; slqalterdatabasedatafileonline ;} in addition to the system and undo_tablespace parameters, the tablespace
Oracle partition table data migration and Management Automation Process
The following process is centered on the company's Oracle Database runtime environment. It is mainly written to achieve automation.Process completion tasks include1.
--Login RmanRman Target/Rman Target Sys/passworkRman Target sys/passwork nocatalog (control file mode)Rman Target sys/passwork Catalog (Restore directory mode)--View parametersShow All--Modify Save DaysChange the number of days that backup
[Oracle] RMAN for OGG data Initialization
Lab environment:
Source and target:
DataBase: 10.2.0.1.0
OS: OEL5.6
OGG: fbo_ggs_Linux_x86_ora11g_32bit
The source uses rman to back up the entire database:
RMAN> run {
Allocate channel ch00 type disk
Non-critical data files are missing (can be lost offline data files):run{SQL ' ALTER DATABASE datafile <> offline ';Restore DataFile <>;Recover DataFile <>;SLQ ' ALTER DATABASE datafile <> online ';}In addition to the system, the Undo_tablespace
This is a time ago to the customer to do the Rman backup strategy, there is time to sort out today, I hope that some help, if there is no place to welcome everyone to give advice, thank you!Create a Recovery catalog databaseIf the Rman recovery
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.