[英]Export remote Database : Oracle
I have an oracle database on a server that contains more than one database, i'm connected to those databases using sqlDevelopper normaly. 我在包含多个数据库的服务器上有一个oracle数据库,我通常使用sqlDevelopper连接到这些数据库。 I want to export the database DB1.
我要导出数据库DB1。 The string connection used in SqlDevelopper is :
SqlDevelopper中使用的字符串连接为:
user@//server:1530/DB1
用户@ //服务器:1530 / DB1
user@//server:1533/DB2用户@ //服务器:1533 / DB2
user@//server:1534/DB3用户@ //服务器:1534 / DB3
The command i use to export the DB1 is : 我用来导出DB1的命令是:
exp user@//server:1530/DB1 file="C:\\DB1.dmp" log="C:\\DB1.log" rows=y owner=user
exp user @ // server:1530 / DB1 file =“ C:\\ DB1.dmp” log =“ C:\\ DB1.log” row = y owner = user
But it doesn't work, i have this message : 但这不起作用,我收到此消息:
EXP-00056: Erreur ORACLE 6401 rencontré ORA-06401: NETCMN : désignation de lecteur non valide EXP-00000: Procédure d'export terminée avec erreur
How can I adjust the exp command to have the desired result? 如何调整exp命令以达到所需的结果?
Following on from comments suggesting you're using a pre-10g version that doesn't support the easy connect syntax, and therefore also can't use data pump ... 建议您使用的是10g之前的版本,该版本不支持轻松连接语法,因此也不能使用数据泵 ...
If you've created a tnsnames.ora
entry like: 如果您创建了
tnsnames.ora
条目,例如:
BD1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = server) (PORT = 1530))
)
(CONNECT_DATA = (SERVICE_NAME = DB1))
)
... then you should be able to export using: ...那么您应该可以使用以下命令导出:
exp user@BD1 file="C:\DB1.dmp" log="C:\DB1.log" rows=y owner=user
(where BD1
is the alias name; not sure if you intended to spell it like that, but you could use DB1
if you preferred). (其中
BD1
是别名;不知道您是否打算这样拼写,但可以根据需要使用DB1
)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.