Oracle9i database migration method under the same software environment, quoted from the forum

Environment windows2K AD + Oracle9i --> windows2K AD + Oracle9i, the steps are as follows:
1. Query the list of all files required by the database (including: data files, online redo log files, archive date directory structure, parameter files, password files etc.)
2. Copy all required files to the target machine (that is, clear your own directory structure)
3. Modify the parameter file according to your own directory structure (mainly for the modification of parameter values ​​​​in some directories)
4. Use the modified parameters Generate the spfile file.
5. Modify the listener.ora, sqlnet.ora, and tnsnames.ora files.
6. Make sure the modifications are correct.
7. Start the database on the target machine.

The above was published by zealot_zk (wind chasing the wind) in the csdn community.

In addition, if the oracle username and password on the target machine are the same as the oracle username and password on the same source machine, you can use the exp/imp method: 1. Type exp username/password@database id file=D
in the DOS environment on the source machine.
:/mydb.dmp full=y
2. Copy the D:/mydb.dmp file on the source machine to the target machine, if copied to D:/ 3. Type imp username/password
in the DOS environment on the target machine
@databaseid file=D:/mydb.dmp full=y fromuser=username touser=username
<Note> The username in steps 1 and 3 refers to the username in Oracle, and the source machine and the target machine are consistent. Password refers to the password of the username that logs in to Oracle, and the source machine and the target machine must also be consistent.
The above is collected based on the posts of prawns in the csdn community.

Guess you like

Origin blog.csdn.net/ursamjnor/article/details/288177