In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "how to use the parfile of the data pump". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. When exporting some tables separately
Expdp\'/ as sysdba\ 'parfile=table.par
The table.par content is as follows
INCLUDE = TABLE: "IN ('EMP','DEPT')"
Or you can use the tables parameter directly when you do not use include
The table.par content is as follows
Tables=EMP,DEPT
2. When excluding certain tables
Expdp\'/ as sysdba\ 'schemas=usera parfile=exclude.par
The exclude.par content is as follows
Exclude=TABLE: "IN ('tablea','tableb','tablec')"
Or when not using parfile, the possible syntax for some operating systems is like this
Expdp\'/ as sysdba\ 'schemas=usera EXCLUDE=TABLE:\ "IN\ (\' tablea\',\ 'tableb\',\ 'tablec\')\"
3. When excluding tables at the beginning of certain characters
Exclude PM_RAW opening table when impdp
Impdp user/passwd directory=dump parfile=para.par dumpfile=dump.dmp logfile=dump.log
The parfile content is as follows:
Exclude=statistics,TABLE: "LIKE 'PM_RAW%'", TABLE: "LIKE' PM_HOU%'", TABLE: "LIKE 'PM_DAY%'", TABLE: "LIKE' PT_%'"
4. When parfile is used together with query parameter
Use parfile=p.par to avoid escaping characters. The following contents are not written separately by parfile,expdp.
Single table
Tables=taa query= "where tablespace_name='SYSTEM'"
Multiple tables
Tables=taa,tee QUERY=taa: "where tablespace_name='SYSTEM'", tee: "where index_type='LOB'"
Or add parentheses.
Tables= (taa,tee) QUERY= (taa: "where tablespace_name='SYSTEM'", tee: "where index_type='LOB'")
This is the end of "how to use the parfile of the data pump". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.