Dream up a database backup and recovery process

Dream up a database backup and recovery process

1. Oracle with the same need to create users and table spaces below please analogy major command

disql login problems can always dream up your own database using the connection tool or other tool to operate a database connection

create tablespace gsptest datafile '/opt/dmdbms/data/DAMENG/gsptest.dbf' size 256;

create user gsptest  identified by 123456789 default tablespace gsptest;

grant dba, resource to gsptest; 

Note:
1. The back of the unit plus size can not add a unit error
2. Create a user password, and table space can not change the order or will be error
3. Note the windows and linux default directory is not the same
/opt/dmdbms/data/DAMENG/
C:\dmdbms\data\DAMENG

2. backup operations

Recommendations You can use windows or linux can be. 

Under the command can be executed up to the dream of entering the bin directory.

The default directory windows and linux nowhere
windows are:
C:\dmdbms\bin
linux is:
/opt/dmdbms/bin

Execute the command is:

gsp dexp.exe / 123456789 @ 10.24 . 20.248 File = c: \ 20.19103 million .dmp log = c: \ 20.19103 million .txt 

with oracle commands exactly the same.

 

 

 

3. import command after the target database has been created for the user:

gsptest dimp.exe / 123456789 @ 10.24 . 99.90 fromuser = gsp TOUSER = gsptest File = c: \ 20.19103 million .dmp log = c: \ 201 910 302 .txt 

note with the oracle import syntax is exactly the same except more commands a d prefix.

You can perform the import of

 

Guess you like

Origin www.cnblogs.com/jinanxiaolaohu/p/11764052.html
Recommended