Import oracle database from server to local

 1. Import the Oracle database on the server to the local

   and execute the following command in CMD mode:
   exp username1/password@server-side database file=local hard disk:/file
   name.dmp For example: exp admin/123123@DB file=e: How to export Oracle database from server to local Oracle database db .dmp

2. Create a local database (the Oracle client has been installed by default and a local database has been created)

3. Create a new user and grant DBA privileges

 //Create a user named test, the password (password) is 123456, the default tablespace is users, and the user is not restricted from using the users tablespace
   create user test identified by 123456
   default tablespace users
   quota unlimited on users

   //Grant test user DBA permission
   grant dba to test;

4. Import to the local Oracle database
   and execute the following command in CMD mode
   imp username2/password file=local hard disk:/filename.dmp fromuser=username1 touser=username2 ignore=y
   For example :imp test/123456 file=e:db How to export Oracle database from server to local Oracle database .dmp fromuser=admin touser=test ignore=y 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326197991&siteId=291194637