-- 创建用户 create user sg_gdfw identified by sen123456; -- 给用户赋权限 grant connect, resource, dba to sg_gdfw; -- 创建表空间 create tablespace SG_UAP datafile ''E:/App/Sena/oradata/orcl/sg_gdfw.dbf' -- 放到Orcal安装目录oradata size 1500M EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO; -- 删除表空间 drop tablespace SG_UAP including contents and datafiles; -- 数据导出 exp sg_gdfw/sen123456@orcl file=O:\sg_gdfw\sg_gdfw20180609.dmp full=y -- 数据导入 imp sg_gdfw/sen123456@orcl file=O:\sg_gdfw\sg_gdfw20180609.dmp full=y ignore=y ip导出方式: exp sg_gdfw/sen123456@127.0.0.1:1521/orcl file=O:\sg_gdfw\sg_gdfw20180609.dmp full=y -- 数据泵导入 create directory expnc_dir as 'O:\sg_gdfw'; impdp sg_gdfw/sen123456@localhost:1521/orcl directory=expnc_dir dumpfile=sg_gdfw20180609.dmp;
Orcal数据库环境部署及导入
— 创建用户 create user sg_gdfw identif…
本文来自网络,不代表培森的Blog立场,转载请注明出处:https://blog.xupeisen.com/archives/56