我已经获得了oracle 9i database dump
,我在家中安装了oracle 11 XE
。
我已经安装在Ubuntu 14.04
我也安装了sql developer
我不知道转储是如何创建的,但这是日志文件
Connected to: Oracle9i Release 9.2.0.8.0 - Production
JServer Release 9.2.0.8.0 - Production
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possible charset conversion)
About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user JOHN
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user JOHN
About to export JOHN's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export JOHN's tables via Conventional Path ...
我是oracle的新手,所以不确定如何导入它。 有没有任何GUI工具。我可以在sql developer 4中完成吗
答案 0 :(得分:1)
您需要使用带有imp
命令的SQLPLUS。
要导入,请创建名为importdb.sh
的
sqlplus sys/sys@localhost as sysdba @Script.sql
imp asset_dw/asset_dw FILE=asset_dw.dmp fromuser=asset_dw
Script.sql位于同一目录中,asset_dw
是Oracle用户,也是数据库:
DROP USER asset_dw CASCADE;
CREATE USER asset_dw IDENTIFIED BY asset_dw;
GRANT ALL PRIVILEGES TO asset_dw;
quit;
您需要在同一目录中使用asset_dw.dmp
或者您可以尝试:this