当前位置:网站首页>Oracle export table data -dmp file
Oracle export table data -dmp file
2022-07-21 18:56:00 【Mr. No】
oracle export dmp file :
Reference link :https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-2BBE8F6C-6D58-4C99-8A49-ED4DA53BECD2
1. Switch oracle user
su - oracle
2. Sign in oracle service
sqlplus /nolog
3. Connect the user
conn / as sysdba
4. Connect to SQL The following commands can be used to create or query virtual paths , by dump Prepare for document storage
SQL> select * from dba_directories;
Delete logical directory
SQL> drop directory dumpdir;
SQL> create directory dumpdir as '/data/data2/bakfiles';
to plsuser The user gives the operation authority in the specified directory , Best to system Wait for the administrator to give .
SQL> grant read, write on directory dumpdir to plsuser;
-- plsuser by Oracle user
-- dumpdir Export folder path for
The most important point : sign out oracle–sql—shell window
5. Export to dmp The folder of the file is assigned oracle User permissions , Be careful :root Under the user Can't write in dmp file
[[email protected] ~]# chown -R oracle:oinstall /data/data2/ttt/ -- The directory where the backup file is located
6. Switch oracle user , Execute export command ,
[[email protected] ~]$ expdp plsuser/pls111111 TABLES=policy_info directory=dumpdir dumpfile=beifentest.dmp content=data_only;
-- content=data_only Export data only
--content=metadata_only Export only table structure
According to the user guide
1)expdp system/manager schemas=scott DIRECTORY=dpdata dumpfile=expdp.dmp ;
2) Parallel processes parallel
expdp system/manager directory=dpdata dumpfile=scott3.dmp parallel=40 job_name=scott3
3) According to the table
expdp system/manager TABLES=emp,dept directory=dpdata dumpfile=expdp.dmp;
4) According to the query conditions
expdp system/manager directory=dpdata dumpfile=expdp.dmp Tables=emp query=‘WHERE deptno=20’;
5) Derive from table space
expdp system/manager DIRECTORY=dpdata DUMPFILE=tablespace.dmp TABLESPACES=temp,example;
6) Import the entire database
expdp system/manager DIRECTORY=dpdata DUMPFILE=full.dmp FULL=y;
边栏推荐
- Digital twin technology creates a visualization solution for smart mines
- ESP 特权隔离机制介绍
- Solution to field 'ID' doesn't have a default value error
- Involution: Inverting the Inherence of Convolution for Visual Recognition(CVPR2021)
- Leetcode:06zigzag transformation
- Interesting kotlin 0x0D: intarray vs array < int>
- Face recognition attendance system based on jsp/servlet
- 数字孪生应用案例及常用技术
- 哈夫曼树与哈夫曼编码的考点
- Linux中安装Redis
猜你喜欢
Qt development skills and three problems
powermock实战
MySQL的MVCC详细理解(2022版)
高质量WordPress下载站模板5play主题源码
2022 dsctf first digital space security attack and defense competition
Interesting kotlin 0x0D: intarray vs array < int>
JWT(JSON Web Token) 认证 :目前最流行的跨域认证解决方案
有趣的 Kotlin 0x0D:IntArray vs Array<Int>
ES 自定义分析器
鸿蒙 harmonyos DevEco-Studio 报错 UNINSTALL_FAILED_INTERNAL_ERROR
随机推荐
王者荣耀商城异地多活架构设计
MySQL的MVCC详细理解(2022版)
Midas capital brings fuse pools to moonbeam
Zhongang Mining: four trends of fluorite industry development
Natural fit between NFT and luxury culture: NFT meets the human nature of seeking uniqueness and status
GrayLog分布式日志组件来提高查日志效率!
dp---背包问题
STM32F40x 最小系统
ESB combined with UMC cloud platform development instructions
Hongmeng harmonios deveco studio reported an error unistall_ FAILED_ INTERNAL_ ERROR
Visual solution of digital twin landing high-speed railway bridge
ES 自定义分析器
This is the package I am most familiar with JSON?
第一部分—C语言基础篇_9. 复合类型(自定义类型)
微信小程序 图片src变量拼接问题
API Test
数字孪生应用案例及常用技术
oracle 启动命令
求解单源最短路径的手工实现
Graylog distributed log component to improve the efficiency of log checking!