首页 > Linux操作系统 > Linux操作系统 > 导出db link的SQL
select 'CREATE DATABASE LINK ' || u.username || '.' || l.name ||
' connect to ' || l.userid || ' identified by ' || l.password ||
' using ''' || l.host || ''';'
from sys.link$ l, dba_users u
where l.owner# = u.user_id;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/11411056/viewspace-734332/ ,如需转载,请注明出处,否则将追究法律责任。