Oracle backup restores simple processes and pits in the middle.

Source: Internet
Author: User
Tags create directory sqlplus

Oracle

Cold

It looks like you need DBCA create a consistent Oracle Instance server configuration version as much as possible, with the same installation path.

Turn off Oracle Services

Copy the Oradata in the Oracle app directory and the control file in the fast flash back zone to the new server note that the directory is identical

If you have data for your own business library that you have to move to the same directory,

Start the database service to recover to the database if it is available immediately.

Hot Spare

Exp EXPDP Imp IMPDP Rman is temporarily not written with less.

Exp/imp is slower but has better compatibility and high and low versions, but looks like 12c. Oracle is slowly using this old backup recovery method.

Advantages: The client runs relatively simple without considering the differences between Linux winserver and so on.

Exp System/[email protected] Owner=username file=c:\backupdir\dumpname.dump lot=c:\somedir\log.txt

Import:

You need to create a table space and users to recover the library, or Oracle will error

Create statement

Sqlplus/as SYSDBA or execute related commands,

Table Space:

Create bigfile (optional) tablespace talespacename datafile ' dir\data.dbf ' size 100m autoextend on next 100m;

User

Create user username default tablespace tablespacename identified by password

Permissions

test environment words to empower a little more ... This, however, exposes your rookie attributes.

Grant Dba,resource,connect,create any table,create any view,create any sequence,unlimited tablespce to username

And then

Imp system/[email protected] fromuser=username touser=username file=backdumpwithdirectory.dmp log=xxxx.log

Note that oracle11.2.0.1 and several low-version bugs can cause the environment to be unavailable due to partial empty tables when EXP is not available, so it is recommended to use EXPDP

EXPDP need to create directory so it is recommended to perform on the server side

Method:

Sqlplus/as SYSDBA

Create directory as ' directory '

and execute it in command.

EXPDP system/password directory=dir schemas=username dumpfile=some logfile=some

When recovering

Create table spaces and users first

The user's permissions do not need to be assigned to the backup restore when automatically added

IMPDP system/password directory=dir schemas=username dumpfile=some logfile=some

Relatively simple like parallel and other parameters can be slowly learned to use.

Oracle backup restores simple processes and pits in the middle.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.