Data Migration notes (from windows to linux)-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Lijietz@126.com)
Due to business needs, the leaders decided to split a system and set up a new database server. the last time the system was down, the performance was still good. The leaders trust me very much and I am solely responsible.
This kind of data migration (from windows to linux) must be exp/imp. Here are some steps.
1: Probably estimated the capacity of the data to be exported. The following is a statistical script.
Select sum (bytes)/1024/1024/1024 "capacity (G )"
From dba_segments
Where upper (owner) = 'user1 ';
If the capacity is less than 1 GB, you certainly do not need to export multiple files. The exported DMP files will only be 198 MB in the future. Is the compression ratio so high?
2: Check the character set. Set the character set of the target server to be consistent with that of the original server. because both sides are oracle 8.1.7, there is no exp version problem.
3: Check the database users of the original server and create the same users and permissions. If the permissions are insufficient, problems may occur during import.
The following are the actual script content.
1: expBat. bat script.
Exp parfile = exp_parameter.txt
Exp_parameter.txt content.
USERID = scott/tiger @ lijie
FILE = G: ORACLEORADATALIJIEEXPDAT. DMP
FILESIZE = 2G
LOG = G: ORACLEORADATALIJIEEXPORT. LOG
OWNER = USER1
GRANTS = y
INDEXES = y
ROWS = y
CONSTRAINTS = y
Use ftp to upload the DMP file.
2: impBat. bat script content.
Imp parfile = imp_parameter.txt
Imp_parameter content.
Userid = lijie/lijie @ lijie
FILE =/home/LIJIE/EXPDAT. DMP
LOG =/home/LIJIE/IMPORT. LOG
FROMUSER = USER1
TOUSER = USER2
GRANTS = y
INDEXES = y
ROWS = y
CONSTRAINTS = y
All the way to execution, warning none, very smooth. The database is open normally and there is no problem with application testing.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service