Home > Database > Mysql Tutorial > body text

利用数据泵导出远程数据到本地数据库

WBOY
Release: 2016-06-07 17:05:53
Original
1407 people have browsed it

远程数据库用户test下面有一张t表 SQLgt; show user USER 为 TEST SQLgt; select * from tab; TNAME

远程数据库用户test下面有一张t表

本地数据库用户ing下面没有t表

现在要做的就是把用户test下面的所有对象导入到用户ing下面。

1.创建一个数据库链接对象,链接到10.10.10.7的数据库服务器。

2.远程数据10.10.10.7的用户test必须具有exp_full_database权限。

3.在10.10.10.8服务器上面执行导出。

4.在10.10.10.8服务器上面执行导入。

5.检查10.10.10.8上面的用户ing。

注意:导入用户要对表空间使用不限制的权力:alter user ing quota unlimited on users; 这里的system用户当然有这个权力拉。对于小型数据库可以这样做,因为它要依赖网络。对于大型数据库一般是在数据源端导出,然后拷贝到目标端执行导入。

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!