当前位置:网站首页>Oracle data pump table
Oracle data pump table
2022-06-26 04:18:00 【Fat sb】
Oracle Data pump guide meter record
sqlplus / as sysdba
create directory dir_dp as ‘/app/oracle/product/11.2.0/dbhome_1/dump’; -- Create a logical Directory
select * from dba_directories;– View the logical directory name and directory location
You need to import dmp Files in directory Under the table of contents
Export the full scale structure , Don't import data
expdp system/[email protected]:1521/lcfa schemas=system directory=dir_dp dumpfile=expdpcas317.dmp logfile=expdp.log content=metadata_only
impdp system/[email protected]:1521/lcfa schemas=system directory=dir_dp dumpfile=expdpcas317.dmp logfile=impdp.log content=metadata_only
exp Import / export the specified table :
take aaa Export a table under the user , And in ccc Import under user
exp aaa/[email protected] tables=name_userinfo FILE=name_userinfo.dmp log=20220423.log;
imp ccc/[email protected] tables=name_userinfo FILE=/data/wgdata/name_userinfo.dmp log=0423.log;
Export all tables by user and exclude tables with large amount of data :
export test Users can delete all tables and exclude several unnecessary tables
EXCLUDE Pick up IN Exactly match — Pick up LIKE Fuzzy matching
EXCLUDE Parameters can be connected at the same time IN or LIKE
expdp “/ as sysdba” schemas=test directory=DUMP_ABSADMIN dumpfile=testquanbiao.dmp logfile=expdp.log cluster=no PARALLEL=4 EXCLUDE=TABLE:“IN ‘B_DET09_28’”,EXCLUDE=TABLE:“LIKE’B_DET02_%'”,EXCLUDE=TABLE:“LIKE ‘B_SONLINE0%’”,EXCLUDE=TABLE:“LIKE ‘B_AUTHFAIL%’”,EXCLUDE=TABLE:“LIKE ‘B_FILTER%’”,EXCLUDE=TABLE:“IN ‘B_DET12_31’”
impdp “/ as sysdba” content=all table_exists_action=replace directory=DATA_PUMP_DIR dumpfile=testquanbiao.dmp logfile=impdp_test.log parallel=24 cluster=n schemas=test
Export the specified table structure
INCLUDE Parameters cannot be connected at the same time IN or LIKE, Separate operation required
expdp “/ as sysdba” SCHEMAS=test INCLUDE=TABLE:“IN (‘B_DET09_28’,‘B_DET12_31’)” CONTENT=METADATA_ONLY DIRECTORY=DATA_PUMP_DIR DUMPFILE=danbiao.dmp LOGFILE=expdp_hntest.log
impdp “/ as sysdba” SCHEMAS=test INCLUDE=TABLE:“IN (‘B_DET09_28’,‘B_DET12_31’)” CONTENT=METADATA_ONLY DIRECTORY=DIR_DP DUMPFILE=danbiao.dmp
Export the specified table structure ( Fuzzy search )
B_DET02_ All tables at the beginning are exported
expdp “/ as sysdba” SCHEMAS=test INCLUDE=TABLE:“LIKE (‘B_DET02_%’)” CONTENT=METADATA_ONLY DIRECTORY=DATA_PUMP_DIR DUMPFILE=danbiao1.dmp LOGFILE=expdp_hntest1.log
impdp “/ as sysdba” SCHEMAS=test INCLUDE=TABLE:“LIKE (‘B_DET02_%’)” CONTENT=METADATA_ONLY DIRECTORY=DIR_DP DUMPFILE=danbiao1.dmp
The specific parameters of the data pump can be determined by itself !!
边栏推荐
- Mutex of thread synchronization (mutex)
- asp.net网页选择身份进行登录的简单代码,asp连接数据库,使用asp:Panel、asp:DropDownList控件
- Threejs special sky box materials, five kinds of sky box materials are downloaded for free
- Knowledge about SQL - DML
- CDN with OSS acceleration
- MySQL enable logbin in Qunhui docker
- Analysis report on development trend and market demand of global and Chinese molecular diagnostics industry from 2022 to 2028
- MySQL index details
- Getting started with flask
- Zhubo Huangyu: all the precious metals you want to know are here
猜你喜欢

Spark - 一文搞懂 parquet

Threejs专用天空盒素材,五种天空盒素材免费下载

钉钉开放平台-小程序开发实战(钉钉小程序服务器端)

钉钉开放平台-小程序开发实战(钉钉小程序客户端)

Zeromq from getting started to mastering

Unity移动端游戏性能优化简谱之 以引擎模块为划分的CPU耗时调优

Construction of art NFT trading platform | NFT mall

Resolve PHP is not an internal or external command

【掘金运营套路揭露】真心被掘金的套路....

Using jsup to extract images from interfaces
随机推荐
Nailing open platform - applet development practice (nailing applet client)
[MySQL] MySQL export database
Go SQL parsing time Time type
Introduction Guide to the flutterplugin plug-in in the actual combat of flutter
Getter actual combat geTx tool class encapsulation -getutils
mysql自帶的性能測試工具mysqlslap執行壓力測試
Ubuntu installs PostgreSQL and uses omnidb to view
C generic
[Qunhui] import certificate
Ten important basic principles of software debugging and testing
I/o virtualization technology - UIO framework
Analysis report on development trend and market demand of global and Chinese molecular diagnostics industry from 2022 to 2028
[Qunhui] this suite requires you to start PgSQL adapter service
Install SVN in Pagoda and build SVN version Library
Video label forbids downloading. The test is valid. Hide button. The test is valid at three points
[Qunhui] command line acme SH automatically apply for domain name certificate
Threejs专用天空盒素材,五种天空盒素材免费下载
What if the serial port fails to open when the SCM uses stc-isp to download software?
CDN with OSS acceleration
Tencent Interviewer: How did binder get its system services?