用oracle系统权限的账号 登陆

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
-- 1.创建用户
create user u_name identified by "u_password";
--2.赋予权限
grant dba, resource, connect to u_name;
grant create session to u_name;
grant create table to u_name;
grant create view to u_name;
grant create tablespace to u_name;
grant unlimited tablespace to u_name;
grant select any table to u_name;
grant select any dictionary to u_name;
--3.创建目录 dictionary
create directory directory_name as 'D:\oracleEnv\Oracle\product\11.2.0\db\backup'; --路径可以自己指定
--4.赋予目录权限
GRANT read,write ON DIRECTORY directory_name TO u_name;
--5.创建表空间
create tablespace table_space_name
datafile 'D:\oracleEnv\Oracle\product\11.2.0\dbhome_1\oradata\table_space_name.DBF'
size 2500M
autoextend on next 500M maxsize 12000M; 
--6.修改表空间配置
ALTER USER table_space_name DEFAULT TABLESPACE u_name;
--8.查看表空间
select tablespace_name , file_id,bytes from dba_data_files where tablespace_name='my_table_space_name';
-- 9.导入数据
-简单版 
impdp u_name/u_password@ORCL dumpfile=file_path full=y table_exists_action=replace
--常用版
impdp u_name/u_password@ip_address/space_name directory=my_director full=y dumpfile=my_dmp_file.DMP logfile=my_dmp_file.log table_exists_action=replace;
--高级版
impdp u_name/u_password@ip_address/space_name directory=my_director full=y dumpfile=my_dmp_file.DMP logfile=my_dmp_file.log
[remap_schema=user_1:user_2] [remap_tablespace =table_space_1:table_space_2] [table_exists_action=replace]

转载于:https://www.cnblogs.com/activiti/p/7575109.html

oracle表空间的创建及dmp 文件的导入相关推荐

  1. oracle导入dmp文件报错12154,oracle表空间的创建及dmp 文件的导入(推荐)

    --用oracle系统权限的账号 登陆 -- 1.创建用户 create user u_name identified by "u_password"; --2.赋予权限 gran ...

  2. oracle表空间的创建、修改、删除及一些参数解释

    创建表空间 方法1: 代码创建,如下: PL/SQL 建立表空间(一般建N个存数据的表空间和一个索引空间):       create tablespace 表空间名       datafile ' ...

  3. Oracle表空间的创建

    ORACLE中,表空间是数据管理的基本方法,所有用户的对象要存放在表空间中,也就是用户有空间的使用权,才能创建用户对象.否则是不充许创建对象,因为就是想创建对象,如表,索引等,也没有地方存放,Orac ...

  4. oracle已经创建表空间不存在,oracle表空间的创建、删除、查看、表空间不存在、及修改默认表空间详解...

    一.创建表空间 ORACLE中,表空间是数据管理的基本方法,所有用户的对象要存放在表空间中,也就是用户有空间的使用权,才能创建用户对象.否则是不充许创建对象,因为就是想创建对象,如表,索引等,也没有地 ...

  5. 6、oracle 表空间的创建、使用、重命名与删除

    6.oracle 表空间 解释: Oracle表空间在逻辑结构上处于数据库之下.利用表空间可以更灵活地规划数据库结构.一个数据库可以包含多个表空间,每个表空间可以包含多个数据表.表空间会有独立地物理文 ...

  6. oracle表空间 uniform,创建表空间时UNIFORM SIZE的通俗含义(翻译)

    本文讨论创建表空间时,采用AutoAllocate扩展模式还是Uniform扩展模式. 官方文档解释如下: If you expect the tablespace to contain object ...

  7. mysql 导入创建表空间_说说在 Oracle11g 中如何创建表空间、创建用户并授权以及导入与导出数据...

    假设 Oracle11g 已在本机安装成功. 1 创建表空间 打开 sqlplus 工具:开始-->所有程序--> Oracle –OraDb11g_home1-->应用程序开发-- ...

  8. oracle为表空间增加数据文件,创建Oracle表空间,增加数据文件的步骤

    经过长时间学习创建Oracle表空间,于是和大家分享一下,看完本文你肯定有不少收获,希望本文能教会你更多东西. 1.先查询空闲空间 select tablespace_name,file_id,blo ...

  9. oracle11 删除表空间,oracle11g启动停止服务,修改字符集,导入导出,创建删除表空间,卸载oracle等...

    oracle11g启动停止服务,修改字符集,导入导出,创建删除表空间,卸载oracle等 1. [启动停止服务] //启动停止监听  www.2cto.com lsnrctl start; lsnrc ...

最新文章

  1. 最全Windows下搭建go语言开发环境以及开发IDE
  2. 计划策略-10-净需求计划
  3. jQuery的弹出窗口插件colorbox
  4. gin context和官方context_Gin框架系列01:极速上手
  5. 千万条数据,Stack Overflow是如何实现快速分页的
  6. Android 一直往文件写数据_( 十 ) 小众但好用:通过 Google drive 备份与同步 Keepass 数据库...
  7. 机房收费重构之总结篇
  8. 前端就业怎么样?学习前端都有哪些优势?
  9. 不了解沙特,那你就看不懂硅谷
  10. 【redis】redis的bind配置
  11. unity3d学习笔记-特效(1.粒子系统)
  12. AD7705在STM32F103RBT6上的移植[硬件SPI]
  13. 西瓜数据集3.0 python_决策树对西瓜数据集2.0二分类
  14. retinex 的水下图像增强算法_Retinex图像增强算法
  15. 最高人民法院 最高人民检察院 关于办理非法利用信息网络、帮助信息网络犯罪活动等刑事案件适用法律若干问题的解释(重点学习标注)...
  16. 618省心凑背后的新算法——个性化凑单商品打包购推荐
  17. php eclipse aptana,eclipse aptana插件自动提示
  18. 复制的eclipse常用快捷键 和 设计模式理解方式
  19. 《NFL橄榄球》:卡罗来纳黑豹·橄榄1号位
  20. IPFS 存储文件夹 与 IPNS的应用

热门文章

  1. Id.exe和ld.exe: cannot open output file … : Permission denied问题。
  2. 【ASP.NET MVC 学习笔记】- 07 使用 Entity Framework
  3. 搭建EJB3开发环境
  4. Power of Cryptography
  5. FileStream 和StreamWriter 一起用时
  6. 打造完美的JS树形菜单
  7. 23 Python常用模块(一)
  8. 面试算法:Maxbuild
  9. 安卓4.2原生rom状态栏显示运营商
  10. 《Cracking the Coding Interview》——第6章:智力题——题目5