您的位置:首页 > 数据库 > Oracle

ORACLE数据库导入导出

2018-03-19 10:28 239 查看
1.oracle数据库导入导出
1.1数据导出
1.1.1测试连接是否畅通
tnsping 192.168.1.202
1.1.2 查看远程服务器版本,不一致则不能导出
sqlplus uwp_cfgh_root/123456@192.168.1.202:1521/FDMS2
1.1.3导出
Exp uwp_cfgh_root/123456@192.168.1.202:1521/FDMS2 file=d:\20180319.dmp full=y
1.2数据导入
1.2.1指定位置创建表空间
create tablespace fdms datafile 'E:\ORACLE\tableSpace\news_data.dbf' size 500M autoextend on next100M maxsize unlimited;
1.2.2创建新用户
create useruwp_cfgh_root identified by 123456 default tablespace fdms;
1.2.3给用户权限
grant connect,resource,dba to uwp_cfgh_root;
1.2.4导入数据
打开cmd
imp uwp_cfgh_root/123456@orcl file=D:20180108.dmp fromuser=uwp_cfgh_root totouser=uwp_cfgh_root
1.3连接本地数据库
1.3.1 cmd 输入sqlplus/nolog
1.3.2 conn username/password@orcl登陆
Conn / as syddba;登陆超管
Conn username/password@ip:1521/orcl登陆远程
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: