在client 运行
create database link toserver
connect to server
identified by server
using 'SERVER';在 server 运行
create or replace function GET_SYSDATE return date is 
Result date;
begin
select sysdate into Result from dual;
return(Result);
end ;在client 运行
select GET_SYSDATE@toserver from dual2006-05-23 14:42:45

解决方案 »

  1.   

    create database link ALARMLINK.US.ORACLE.COM
      connect to ALARMINTERFACE identified by ALARMINTERFACE
      using '(DESCRIPTION =(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =124.112.6.27)(PORT = 1521)))(CONNECT_DATA = (SID = KK)))';select [email protected] from dual;
    还是提示无效字段名
      

  2.   

    建议不用那么复杂的link名称。
      

  3.   

    其次,格式也不应该是那样的,而是这样:select GET_SYSDATE from [email protected];
      

  4.   

    自己搞定,需要建立同义词。
    create public synonym get_sysdate for get_sysdate, select [email protected] from dual;