.Oracle import a backup file steps:
1. Database backup file: 123.DMP dpdump copied to the oracle installation directory file folder,
For example, my path is: D: \ app \ administrator \ admin \ orcl \ dpdump
or log in to your PLSQL Developer directly under the cmd sqlplus, make the following operation
2. Create a table space db123.dbf
create tablespace db123 datafile 'D:\app\administrator\admin\orcl\dpdump\db123.dbf' size 500m
reuse autoextend on next 10m maxsize unlimited extent management local autoallocate permanent online;
- Specifies the initial size of the table space 500M, and specifies the table space is full after each increase in size of 10M.
3. Create user
create user + user name + identified by + password + default tablespace + table space name;
- User password specified table space
4. authorize the user
grant connect,resource,dba to user_name;
- user_name to user authorization.
connect the two systems are built and resource roles, and dba is juxtaposed relationship.
DBA: Has full privileges, is the highest authority, only the DBA can create a database structure.
RESOURCE: Users with Resource privilege can only create an entity, can not create the database structure.
CONNECT: Connect Users with permission can only log Oracle, can not create an entity, can not create the database structure.
5.cmd run the following import statements
- Import database files
impdp user_name / pwd @ orcl dumpfile = 123.DMP log = db123.log
- 123.DMP restore the backup file to the next user user_name, and create a log file named db123 db123.log
Two .Oracle export a backup file:
expdp user_name/pwd@orcl dumpfile =xxx.dmp ;
- Export all objects in the user user_name, specify the backup file name for the exported xx.dmp. Export backup files default storage location for the file in the dpdump oracle installation directory folder
Third, how to query a few libraries?
plsql developer or sql plus input
Select name from v $ database