oracle表空间的创建及dmp 文件的导入(推荐)
网络编程 2021-07-05 16:08www.168986.cn编程入门
这篇文章主要介绍了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 文件的导入,希望对大家有所帮助,如果大家有任何疑问请给我留言,长沙网络推广会及时回复大家的。在此也非常感谢大家对狼蚁SEO网站的支持!
编程语言
- 机械手焊接机器人编程 机械手焊接设备编程
- vb数据库编程实例,vb做数据库
- tiobe世界编程语言排行榜,全球编程语言排行
- 成都java编程培训 成都it编程培训中心
- 编程基础培训,编程基础知识培训
- flash游戏编程基础教程,flash游戏开发教程
- 不会英语能学编程吗 不会英语可以学程序员吗
- 爱心代码编程C语言 爱心代码编程c语言公式
- c语言编程学习入门 c语言编程快速入门
- 西门子plc编程培训 西门子plc编程培训班
- 哪里可以学编程 台州哪里可以学编程
- 少儿编程哪个好 少儿编程哪个品牌好
- 编程是什么意思,图形编程是什么意思
- c语言编程软件下载,c语言编程软件在哪下载
- java编程软件下载,java编程下载手机版
- ug编程培训学校,ug编程培训教程