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登陆远程
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登陆远程
相关文章推荐
- Oracle数据库导入导出命令!
- oracle数据库导入导出
- ORACLE数据库导入、导出(备份)
- Oracle数据库导入导出备份
- oracle数据库导入导出09192255
- Oracle数据库导入(Imp)导出(Exp).
- Linux服务器上oracle数据库的导出expdp和导入impdb
- 数据导入导出Oracle数据库
- Oracle数据库用户操作和导入导出dmp文件
- Oracle数据库的导入和导出
- oracle数据库导出和oracle导入数据的二种方法(oracle导入导出数据)
- oracle数据库的导出和导入
- oracle数据库导入导出命令
- oracle数据库导入导出命令!
- Oracle数据库的创建、数据导入导出
- Oracle数据库exp imp按用户导出导入实例
- oracle数据库导出备份导入恢复
- oracle数据库导入导出命令
- C# 程序导入导出oracle数据库
- oracle数据库备份(2)——Oracle 的数据导出导入命令:exp、imp