The following steps will guide us in the restoration of an oracle dump file.
- connect as system and enter your password
sqplus system@xe
- create user
create user TEST_USER identified by password;
- grant roles
grant CREATE SESSION, ALTER SESSION, CREATE DATABASE LINK, -
CREATE MATERIALIZED VIEW, CREATE PROCEDURE, CREATE PUBLIC SYNONYM, -
CREATE ROLE, CREATE SEQUENCE, CREATE SYNONYM, CREATE TABLE, -
CREATE TRIGGER, CREATE TYPE, CREATE VIEW, UNLIMITED TABLESPACE -
to TEST_USER;
- create permanent table space
CREATE TABLESPACE testuser DATAFILE 'testuser.dat' SIZE 20M AUTOEXTEND ON;
- import the dump file
imp system/password@xe file=d:\testuser.dmp fromuser=TEST_USER touser=TEST_USER log=d:\test_user_import.log
The above steps is with the assumption that we've created an oracle database backup using exp tool.
0 nhận xét:
Đăng nhận xét