iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >oracle表空间如何创建及实现dmp文件导入
  • 455
分享到

oracle表空间如何创建及实现dmp文件导入

2024-04-02 19:04:59 455人浏览 八月长安
摘要

这篇文章给大家分享的是有关oracle表空间如何创建及实现dmp文件导入的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。--用oracle系统权限的账号 登陆-- 1.创

这篇文章给大家分享的是有关oracle表空间如何创建及实现dmp文件导入的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

--用oracle系统权限的账号 登陆

-- 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]

感谢各位的阅读!关于“oracle表空间如何创建及实现dmp文件导入”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

您可能感兴趣的文档:

--结束END--

本文标题: oracle表空间如何创建及实现dmp文件导入

本文链接: https://www.lsjlt.com/news/57644.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作