In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Using DBLink to realize remote data Export by data pump
The simple realization of the data in database An is exported by using data pump on database B server.
The premise is that the versions of the two data are the same.
1. The user used to create the export on database B (as administrator)
SQL > create user daochuB identified by daochuB
2.1 Grant connection roles, resource roles to users
SQL > grant connect,resource to daochuB
2.2 authorizing the creation of data links
SQL > grant create table,create database link to daochuB
Or directly to the DBA role.
SQL > grant dba to daochuB
3. Create a directory to store exported data on database B
SQL > create directory dbdata AS'd:\ export'
4. Give users read and write permissions to the directory
SQL > grant read,write on directory dbdata to daochuB
5. Create a DBLINK as daochu
SQL > create database link baklink
Connect to daochuA identified by "daochuA"
Using'(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = XX.XX.XX.XX) (PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)'
Note:
The username password used here is the username and password in the remote database. The export uses this user, which must have the permission to export.
If it is not required to authorize in database A
Grant export permissions to user daochuA in database A
SQL > grant exp_full_database to daochuA
6. Perform export (export data for user 'daochu' in database A)
CMD > expdp daochuB/daochuB network_link=baklink schemas=daochuA directory=dbdata dumpfile=exp%u.dmp FILESIZE=32G
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.