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

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

--1.创建用户createuseru_nameidentifiedby"u_password";--2.赋予权限grantdba,resource,connecttou_name;grantcreatesessiontou_name;grantcreatetabletou_name;grantcreateviewtou_name;grantcreatetablespacetou_name;grantunlimitedtablespacetou_name;grantselectanytabletou_name;grantselectanydictionarytou_name;--3.创建目录dictionarycreatedirectorydirectory_nameas'D:\oracleEnv\Oracle\product\11.2.0\db\backup';--路径可以自己指定--4.赋予目录权限GRANTread,writeONDIRECTORYdirectory_nameTOu_name;--5.创建表空间createtablespacetable_space_namedatafile'D:\oracleEnv\Oracle\product\11.2.0\dbhome_1\oradata\table_space_name.DBF'size2500Mautoextendonnext500Mmaxsize12000M; --6.修改表空间配置ALTERUSERtable_space_nameDEFAULTTABLESPACEu_name;--8.查看表空间selecttablespace_name,file_id,bytesfromdba_data_fileswheretablespace_name='my_table_space_name';--9.导入数据-简单版 impdpu_name/u_password@ORCLdumpfile=file_pathfull=ytable_exists_action=replace--常用版impdpu_name/u_password@ip_address/space_namedirectory=my_directorfull=ydumpfile=my_dmp_file.DMPlogfile=my_dmp_file.logtable_exists_action=replace;--高级版impdpu_name/u_password@ip_address/space_namedirectory=my_directorfull=ydumpfile=my_dmp_file.DMPlogfile=my_dmp_file.log[remap_schema=user_1:user_2][remap_tablespace=table_space_1:table_space_2][table_exists_action=replace]

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