今天有个项目需要迁移数据,情况是同一个数据库不同实例,由于需要用到database link,就去network/admin下的tnsnames.ora文件,奇怪并没有这个文件,后来在网上找资料,据说是oracle用了动态注册功能。
[@more@]那怎么产生这个文件呢?
我用的vncserver启动桌面环境,用命令netca重新创建这个文件。然后把其它的实例名手动加进去:
xpd_dev =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = jocpro_db)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = xpd_dev)
)
)
webs =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = jocpro_db)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = webs)
)
)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9099175/viewspace-1024722/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9099175/viewspace-1024722/