[20160803]exp/imp语法问题.txt

简介: [20160803]exp/imp语法问题.txt --那个给我解析exp这种语法: 1.环境: SCOTT@book> @ &r/ver1 PORT_STRING                    VERSION        BANNER ...

[20160803]exp/imp语法问题.txt


--那个给我解析exp这种语法:

1.环境:
SCOTT@book> @ &r/ver1
PORT_STRING                    VERSION        BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx            11.2.0.4.0     Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

SCOTT@book> create table t as select * from dba_objects ;
Table created.

SCOTT@book> select count(1) from t;
  COUNT(1)
----------
     87047


2.使用exp:

$ exp scott/book tables=t  file=>(gzip >t.dmp.gz)
Export: Release 11.2.0.4.0 - Production on Wed Aug 3 10:42:12 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table                              T      87047 rows exported
Export terminated successfully without warnings.

$ ls -l t.dmp.gz
-rw-r--r-- 1 oracle oinstall 1008545 2016-08-03 10:42:15 t.dmp.gz
$ file t.dmp.gz
t.dmp.gz: gzip compressed data, from Unix, last modified: Wed Aug  3 10:42:12 2016

--这样确实建立1个压缩文件。

3.导入imp:
SCOTT@book> rename t to t_old;
Table renamed.

--//注意要使用小于号。
$ imp scott/book full=y  file=<(gunzip <t.dmp.gz)
Import: Release 11.2.0.4.0 - Production on Wed Aug 3 10:46:42 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export file created by EXPORT:V11.02.00 via conventional path
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. importing SCOTT's objects into SCOTT
. importing SCOTT's objects into SCOTT
. . importing table                            "T"      87047 rows imported
Import terminated successfully without warnings.

SCOTT@book> select count(1) from t;

  COUNT(1)
----------
     87047

SCOTT@book> select count(1) from t_old;
  COUNT(1)
----------
     87047

--expdp不行。

$ expdp scott/book tables=t DUMPFILE=>(gzip >t1.dmp.gz) directory=DATA_PUMP_DIR
Export: Release 11.2.0.4.0 - Production on Wed Aug 3 10:51:28 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-39088: file name cannot contain a path specification

目录
相关文章
|
移动开发 小程序 IDE
《钉钉应用开发者速成手册》之“开放平台介绍”
什么是钉钉开放平台? 钉钉开放平台是基于钉钉的基础产品和底座,为生态合作伙伴、企业客户及开发者提供所需要的开放能力的应用开发平台。通过钉钉开放平台可以帮助企业快速、低成本的实现高质量的移动微应用,实现生产、管理、协作、运营的业务在线化。
2289 1
《钉钉应用开发者速成手册》之“开放平台介绍”
|
前端开发 JavaScript 网络协议
Web开发的历史发展技术演变
本文对Web开发的历史发展的了解很有裨益,推荐给大家。本文尝试从历史发展角度,说说各种研发模式的优劣。 一、简单明快的早期时代,二、后端为主的 MVC 时代,三、Ajax 带来的 SPA 时代,四、前端为主的 MV* 时代,五、Node 带来的全栈时代
2285 0
Web开发的历史发展技术演变
|
API Windows
【clswindow框架应用】自动移动鼠标避免锁屏,鼠标随机移动防止锁屏、待机、休眠
【clswindow框架应用】自动移动鼠标避免锁屏,鼠标随机移动防止锁屏、待机、休眠
947 0
【clswindow框架应用】自动移动鼠标避免锁屏,鼠标随机移动防止锁屏、待机、休眠
西门子S7-1200的功能与特点,应用范围有哪些
今天开始我们来学习西门子S7-1200,S7-1200是西门子公司新推出的一款面向离散自动化系统和独立自动化系统的低端PLC。
西门子S7-1200的功能与特点,应用范围有哪些
|
虚拟化
使用VMware Workstation安装FusionCompute CNA和VRM
使用VMware Workstation安装FusionCompute CNA和VRM
629 0
使用VMware Workstation安装FusionCompute CNA和VRM
|
存储 运维 NoSQL
Redis入门实战(四)Redis 配置文件redis.conf详解
前面我们介绍了Redis的安装和Redis的几个数据结构。但是,还是有些朋友会问我Redis的配置文件内容项,参数都有哪些?配置个主从、持久化等是怎么配置的?
Redis入门实战(四)Redis 配置文件redis.conf详解
|
传感器 算法 ice
Google Earth Engine ——LANDSAT/LT04/C02/T1系列数据介绍!
Google Earth Engine ——LANDSAT/LT04/C02/T1系列数据介绍!
667 0
Google Earth Engine ——LANDSAT/LT04/C02/T1系列数据介绍!
|
数据采集 搜索推荐 网络协议
网站出现“因服务不稳定可能无法正常访问”是什么原因?
浅析,“因服务不稳定可能无法正常访问”常见的几个主要因素!
1942 0
网站出现“因服务不稳定可能无法正常访问”是什么原因?
|
机器学习/深度学习 运维 Kubernetes
生产中的 Serverless 机器学习流水线
本文定义了生产环境中对机器学习流水线的要求,提供了基于阿里云函数工作流 (FnF),函数计算 (FC) 结合容器服务 K8s 实现 Serverless ML Pipeline 的解决方案。通过分析得出结论:该方案可以提高研发效率,优化运维和经济成本,帮助 ML 更快产生商业价值。
4560 0
|
Java Docker 微服务
基于SpringBoot、SpringCloud、Docker的微服务系统架构实践
基于SpringBoot、SpringCloud、Docker的微服务系统架构实践 由于最近公司业务需要,需要搭建基于Spring Cloud的微服务系统。
4246 0