In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The technical level of the document has been complained about, but it is also very depressed, the document can be completed and implemented, but the lack of embellishments, so I have not written a blog, but still can not help but want to record something, so as not to leave regrets, after all, as a technician, only read other people's blog, do not write, it is a pity, can write as much as possible.
Oracle provides a logical backup and recovery tool expdp/impdp, also known as data pump, which I think is an upgraded version of exp/imp, which is faster than exp/imp 's data. It should be noted that the expdp/impdp tool needs to establish a good file directory directory in the database, and if the data backed up by expdp is migrated to a database with a lower version than the exported database, the version parameter needs to be added when expdp is exported, while the exp/imp tool does not need directory directory. You can also ignore the version.
Case
Requirements: backup 11g oracle database sh user data, database version 11.2.0.4.0 data, import 10g database
Steps:
Logical backup data
1. Set up a directory dpdir, and the user who needs to export has read,write permission to the directory dpdir
Create or replace directory dpdir as'/ home/oracle'
two。 Export users need to have DATAPUMP_EXP_FULL_DATABASE permissions, preferably DBA permissions. For example, sys users do not have permission problems.
3. The special role of the user needs to be exported, and the tablespace needs to be queried because it needs to exist in the target server.
Expdp\ 'sys/sys as sysdba\' directory=dpdir dumpfile=sh.dump log=sh.log schemas=sh version=11.2.0.4.0
Copy data to the target server
Scp 192.168.187.181:/home/oracle
Logically import data
1. Set up a directory dpdir, and the user who needs to export has read,write permission to the directory dpdir
two。 Export users need to have DATAPUMP_IMP_FULL_DATABASE permissions, preferably DBA permissions
3. The tablespaces and roles required by the imported user need to exist in pdb
Impdp\ 'sys/sys@orclpdb as sysdba\' schemas=sh dumpfile=sh.dump log=impdp.og directory=dpdir
Problem handling of backup and recovery
If there is an error, look at the prompt in the log and solve it step by step, ok, plus ok what is missing.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.