在使用oracle数据库中对备份恢复是最关键的,当数据库出现故障时可以及时恢复减少不必要的损失。下面我将简单介绍一下导入导出数

在使用Oracle数据库中对备份恢复是最关键的,当数据库出现故障时可以及时恢复减少不必要的损失。下面我将简单介绍一下导入导出数据库,方案,表,和在使用的过程当中事物的作用。

1.导出数据表

[oracle@CentOS ~]$ exp scott/system tables=t file='/home/oracle/t.dump' log='/home/oracle/t.log'; --导出scott用户中的t表数据(tables=可以写多个表,full=y 全部导出,ignore=y 表示忽略重复的数据)

Export: Release 11.2.0.1.0 - Production on Mon Feb 17 16:28:04 2014

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export done in US7ASCII character set and AL16UTF16 NCHAR character set

server uses WE8MSWIN1252 character set (possible charset conversion)

About to export specified tables via Conventional Path ...

. . exporting table T 1 rows exported

Export terminated successfully without warnings.

[oracle@centos ~]$

2.导入数据表

[oracle@centos ~]$ sqlplus

SQL*Plus: Release 11.2.0.1.0 Production on Mon Feb 17 16:29:13 2014

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Enter user-name: scott

Enter password:

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> drop table t; --删除我刚才导出的表

Table dropped.

SQL> commit;

Commit complete.

SQL> quit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

[oracle@centos ~]$ imp scott/system tables=t file='/home/oracle/t.dump'; --导入数据表

Import: Release 11.2.0.1.0 - Production on Mon Feb 17 16:29:58 2014

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 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 US7ASCII character set and AL16UTF16 NCHAR character set

import server uses WE8MSWIN1252 character set (possible charset conversion)

. importing SCOTT's objects into SCOTT

. importing SCOTT's objects into SCOTT

. . importing table "T" 1 rows imported

Import terminated successfully without warnings.

[oracle@centos ~]$ sqlplus

SQL*Plus: Release 11.2.0.1.0 Production on Mon Feb 17 16:30:03 2014

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Enter user-name: scott

Enter password:

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select * from t; --成功导入

A

----------

1

SQL>

3.导出用户下的所有表(scott)

[oracle@centos ~]$ exp scott/system file='/home/oracle/scott.dump'; --导入scott自己的所有表(exp scott/system owner=用户名 file='路径' --导出其它用户下的表)

Export: Release 11.2.0.1.0 - Production on Mon Feb 17 16:34:07 2014

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export done in US7ASCII character set and AL16UTF16 NCHAR character set

server uses WE8MSWIN1252 character set (possible charset conversion)

. exporting pre-schema procedural objects and actions

. exporting foreign function library names for user SCOTT

. exporting PUBLIC type synonyms

. exporting private type synonyms

. exporting object type definitions for user SCOTT

About to export SCOTT's objects ...

. exporting database links

. exporting sequence numbers

. exporting cluster definitions

. about to export SCOTT's tables via Conventional Path ...

. . exporting table DEPT 4 rows exported

EXP-00091: Exporting questionable statistics.

EXP-00091: Exporting questionable statistics.

. . exporting table EMP 12 rows exported

EXP-00091: Exporting questionable statistics.

EXP-00091: Exporting questionable statistics.

. . exporting table SALGRADE 5 rows exported

EXP-00091: Exporting questionable statistics.

. . exporting table SYS_TEMP_FBT

. . exporting table T 1 rows exported

. . exporting table TONG1 14 rows exported

EXP-00091: Exporting questionable statistics.

. exporting synonyms

. exporting views

. exporting stored procedures

. exporting operators

. exporting referential integrity constraints

. exporting triggers

. exporting indextypes

. exporting bitmap, functional and extensible indexes

. exporting posttables actions

. exporting materialized views

. exporting snapshot logs

. exporting job queues

. exporting refresh groups and children

. exporting dimensions

. exporting post-schema procedural objects and actions

. exporting statistics

Export terminated successfully with warnings.

[oracle@centos ~]$

本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉

本文系统来源:php中文网

oracle11数据库导入,Oracle11g数据库之数据导入导出与事物相关推荐

  1. 如何将excel表格导入matlab,将Excel数据导入MATLAB中的方法

    在使用MATLAB对矩阵进行数据处理时,为了方便编辑与修改,常常需要先将数据录入到Excel中,然后再将其导入到MATLAB中参与矩阵运算.那么下面小编教你怎么将Excel数据导入MATLAB中. 将 ...

  2. net以execl做数据库_C#.NET Excel文件数据导入SQL Server数据库完整代码

    展开全部 在日常的项目中,Excel,Word,txt等格式的数62616964757a686964616fe58685e5aeb931333337626235据导入到数据库中是很常见 这里将分为.n ...

  3. php实现sql server数据导入到mysql数据库_php实现SQL Server数据导入Mysql数据库(示例)...

    php将mssql的数据导入到mysql数据库中,代码: 代码示例: //连接SQL server数据库 $conn=mssql_connect("localhost"," ...

  4. 转:[Asp.net]常见数据导入Excel,Excel数据导入数据库解决方案,总有一款适合你!...

    引言 项目中常用到将数据导入Excel,将Excel中的数据导入数据库的功能,曾经也查找过相关的内容,将曾经用过的方案总结一下. 方案一 NPOI NPOI 是 POI 项目的 .NET 版本.POI ...

  5. mysql 导入dbm文件_DBM数据导入到mysql数据库方法

    本文章分享一篇关于DBM数据导入到mysql数据库方法,有需要的同学可以参考一下本实例. 首先说明一下,我以前使用PERL,保存文件 用DBM,有5万多条记录,每条记录有15个字段.现在想用MYSQL ...

  6. c# excel导入mysql_c#将Excel数据导入到数据库的实现代码

    c#将Excel数据导入到数据库的实现代码 假如Excel中的数据如下: 数据库建表如下: 其中Id为自增字段: 代码:using System; using System.Collections.G ...

  7. Excel百万数据导入oracle,excel表数据导入oracle的方法!(超级有用)

    excel表导入oracle数据库的方法,这些方法也可以用于将其它格式的数据导入到oracle中,这里只是以excel为例.oracle9i以上.21村落‑i3?:L L4s9U#[z:u,U‑l方法 ...

  8. mysql数据万能导入工具下载_mysql数据导入工具下载 - 数据导入工具(EMS Data Export for MySQL) v3.7.0多语特别版下载 - 第九软件网...

    EMS Data Export for MySQL多语特别版是一款交叉平台的数据库导入工具,可以快速地从MS Excel 97-2007, MS Access, DBF, XML, TXT, CSV, ...

  9. vb.net datagridview数据批量导入sql_导入:Java实现大批量数据导入导出(100W以上)

    阅读文本大概需要3分钟. 来源:https://www.cnblogs.com/barrywxx/p/10700221.html 最近业务方有一个需求,需要一次导入超过100万数据到系统数据库.可能大 ...

  10. Excel导入30万条数据和导出50万条数据方案

    背景:最近在做一个功能改造,老系统Excel导入导出大批量数据,要求支持一次性导入30万条数据,一次性导出50万条数据,还需要对数据进行校验,另外对性能有要求,不能比老系统的性能差.和业务了解了老系统 ...

最新文章

  1. 珠海网络推广浅析该如何高效的提高搜索引擎的抓取频次?
  2. 友善之臂 mini2440 linux led 驱动代码,mini2440 led驱动程序
  3. java io 结构_java 的IO类库的基本架构
  4. avalon.js实践 svg地图配置工具
  5. pivot 附近有语法错误,您可能需要将当前数据库的兼容级别设置为更高的值。...
  6. python数字类型怎么学,python的数字类型学习之数据类型
  7. JDK源码解析之 java.lang.Integer
  8. python股票数据分析实验报告_Python实验报告
  9. 机器学习算法中的偏差-方差权衡(Bias-Variance Tradeoff)
  10. jstree禁用父节点点击_Jstree 使用CheckBox插件 选中父节点时被禁用的子节点也会选中问题...
  11. 分布式文件存储FastDFS之安装Nginx实现文件访问
  12. 微阵列芯片服务器,微阵列(生物芯片)类型详解
  13. C#反编译工具:.NET Reflector基础使用
  14. 西游记笔记与想法(2)
  15. OpenCV3.0+VS2015+Win7x64开发环境搭建报错找不到gdi32.lib、opencv_world300d.dll
  16. python库numpy使用技巧(一)——提取数组中非零元素
  17. 机器翻译baseline
  18. druid安装与案例
  19. 费雪MOGAFX方程式是什么?(二) -
  20. 如何用Qt绘制一颗好看的二叉树

热门文章

  1. html倒计时样式,简单实现JS倒计时效果
  2. 计算机图形学_bresenham画线算法的最简洁实现(已验证)
  3. SLAM_SLAM问题求解框架
  4. ORB-SLAM3 代码解读
  5. tensorflow中获取shape的方法比较
  6. CVPR2021中的目标检测和语义分割论文汇总
  7. 一个整型数组里除了两个数字之外,其他的数字都出现了两次。请写程序找出这两个只出现一次的数字(简单易懂)
  8. Mongodb的oplogsize修改
  9. 3.openldap生成LDAP用户
  10. JavaSE--RMI初识