when you try to access a table over the database link,mybe get this error
解决方法:
1,update ncme_study_credit@ncme set icme_mark=to_date('1949-10-1','yyyy-mm-dd') where CREDIT_TYPE ='X2' AND USER_NAME='liqiao198458'
2, 把函数在远程数据库中
3,alter session/system set global_names=true
4,远程数据库创建一个和当前select * from global_name查询结果一样的同名database_link;
CREATE OR REPLACE FUNCTION ICME.todate (d VARCHAR2)
RETURN DATE
IS
v_date DATE;
BEGIN
SELECT TO_DATE (d, 'yyyy-mm-dd')
INTO v_date
FROM DUAL;
RETURN v_date;
EXCEPTION
WHEN OTHERS
THEN
RETURN NULL;
END;
/
update ncme_study_credit@ncme set icme_mark=todate('1949-10-1') where CREDIT_TYPE ='X2' AND USER_NAME='liqiao198458'
ORA-02069: global_names parameter must be set to TRUE for this operation
解决方法:
1,update ncme_study_credit@ncme set icme_mark=to_date('1949-10-1','yyyy-mm-dd') where CREDIT_TYPE ='X2' AND USER_NAME='liqiao198458'
2, 把函数在远程数据库中
3,alter session/system set global_names=true
4,远程数据库创建一个和当前select * from global_name查询结果一样的同名database_link;
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




