oracle exp dmp
exp help=y
conn scott/tiger;
select * from tab;
create table student(sno int, sname varchar2(10), sage int, constraint pk_sno primary key(sno));
insert into student values(1, 'Tom', 18);
insert into student values(2, 'Kite', 19);
insert into student values(3, 'Bob', 20);
commit;
create index ind_stu_name on student(sname);
alter table student add constraints con_age check(sage > 7);
create table address(sno int, zz varchar2(20));
insert into address values(1, '郑州');
insert into address values(2, '洛阳');
commit;
create index ind_add_sto on address(sno);
alter table address add constraints con_zz check(length(zz)>1);
// 导出 scott 的student、address 表。注意:在 doc 下执行。
exp scott/tiger@orcl tables=(student, address) file=D:\scott_stu_add.dmp log=D:\scott_stu_add.log
// 导出 scott 的所有对象
exp scott/tiger@orcl owner=scott file=D:\scott_owner.dmp log=D:\scott_owner.log
模式冲突
exp scott/tiger@orcl owner=scott tables=student file=D:\test.dmp log=D:\test.log
exp system/manager@orcl full=y owner=scott file=D:\test.dmp log=D:\test.log
导出其它用户的内容:
conn sys as sysdba;
create user test identified by test;
grant connect, resource to test;
conn test/test;
create table t(t1 int);
insert into t values(1);
insert into t values(2);
insert into t values(3);
commit;
导出test用户的 t 表:
exp test/test@orcl tables=t file=D:\test.dmp log=D:\test.log
exp system/manager@orcl tables=(test.t) file=D:\test.dmp
exp system/manager@orcl owner=test file=D:\test.dmp
下面这个权限不足:
exp scott/tiger@orcl tables=(test.t) file=D:\test.dmp
oracle exp dmp的更多相关文章
- oracle EXP导出一张表时使用query参数指定where条件
oracle exp 导出一个表的部分内容,使用query参数可加上SQL的where条件进行过滤 注意:如果需要使用到日期字符串格式等单引号,需要使用双引号将where条件括起来,而且双引号要用\做 ...
- Oracle学习——dmp文件(表)导入与导出
Oracle学习——dmp文件(表)导入与导出 2014-12-28 0个评论 来源:张文康 廊坊师范学院信息技术提高班 第九期 收藏 我要投稿 前言 关于dmp文件我们用的 ...
- Oracle之 dmp导入/导出、数据库操作等过程中的字符集问题
影响Oracle数据库字符集最重要的参数是NLS_LANG参数. 它的格式如下: NLS_LANG = language_territory.charset 它有三个组成部分(语言.地域和字符集),每 ...
- oracle exp 无法导出空表
oracle exp 无法导出空表 select 'alter table '|| a.table_name ||' allocate extent;' from user_tables a wh ...
- oracle imp dmp命令
vi par.txt userid=system/oracle tables=(user.table,...) query="where org_no like 32%" file ...
- oracle导入.dmp脚本
一.更改数据库管理员sys/system密码 1.运行到C盘根目录 2.输入:SET ORACLE_SID = 你的SID名称 3.输入:sqlplus /nolog 4.输入:connect /as ...
- oracle exp不生成dumpfile,预估出实际导出文件的大小。
目的:在不创建dumpfile前预估出需要的导出文件大小. 适用于export 实验步骤如下:OS: Linux test20 2.6.18-238.el5 #1 SMP Sun Dec ...
- Oracle----SQL语句积累 (Oracle 导入 dmp文件)
Oracle----SQL语句积累 (Oracle 导入 dmp文件) Oracle SQL PL 导入dum文件 1.数据库DBA权限: 注意:这个是在cmd命令行中直接输入,不需要进入Oracl ...
- Linux下oracle11gR2系统安装到数据库建立配置及最后oracle的dmp文件导入一站式操作记录
简介 之前也在linux下安装过oralce,可每次都是迷迷糊糊的,因为大脑一片空白,网上随便看见一个文档就直接复制,最后搞了乱七八糟,虽然装上了,却乱得很,现在记录下来,希望能给其他网上朋友遇到问题 ...
随机推荐
- Hive执行过程
http://blog.csdn.net/wf1982/article/details/9122543
- (转)MySQL的Grant命令
[MySQL] - MySQL的Grant命令 来源:http://yingxiong.javaeye.com/blog/451208 本文实例,运行于 MySQL 5.0 及以上版本. MySQL ...
- MAC帧格式、IPV4数据报格式、TCP报文格式、UDP数据报格式
1.MAC帧格式 类型:2字节,指出数据域中携带的数据应交给哪些协议实体处理 校验码:校验数据段(采用32位CRC冗余校验方式进行校验) 2.IPV4数据报 版本:IP协议版本,这里为4 首部长度:占 ...
- tensorflow基础篇-1
1.使用占位符和变量 import tensorflow as tf import numpy as np #-----创建变量并初始化----------- def first(): my_var= ...
- 前端的CRUD增删改查的小例子
前端的CRUD增删改查的小例子 1.效果演示 2.相关代码: <!DOCTYPE html> <html lang="en"> <head> & ...
- php中session的简单使用
两个页面之间共享session,或者通过session来传递参数(其实session只是一个域而已,一个会话) 1. a.php中 <?php session_start();//开启sessi ...
- 面试题6:二叉树最近公共节点(LCA)《leetcode236》
Lowest Common Ancestor of a Binary Tree(二叉树的最近公共父亲节点) Given a binary tree, find the lowest common an ...
- Web 后端--PHP 与数据库的交互
网页要处理数据,数据置于数据库之中.今天看了书,不能让知识遗忘,遂及时记下. 用 PHP 操作 MySQL ,实现数据的交换,还要多练练.... PS: 以下 mysql 字段与mysqli 字段皆 ...
- java 实现 PDF 加水印功能
使用java代码实现给PDF加水印的功能 首先导入所需要的依赖 <dependency> <groupId>com.itextpdf</groupId> <a ...
- asp.net MVC中form提交和控制器接受form提交过来的数据
1.cshtml页面form提交2.控制器处理表单提交数据4种方式方法1:使用传统的Request请求取值[HttpPost]public ActionResult AddNews(){ str ...