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.创建目录dictionary createdirectorydirectory_nameas'D:\oracleEnv\Oracle\product\11.2.0\db\backup';--路径可以自己指定 --4.赋予目录权限 GRANTread,writeONDIRECTORYdirectory_nameTOu_name; --5.创建表空间 createtablespacetable_space_name datafile'D:\oracleEnv\Oracle\product\11.2.0\dbhome_1\oradata\table_space_name.DBF' size2500M autoextendonnext500Mmaxsize12000M; --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文件的导入,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对毛票票网站的支持!