一個(gè)關(guān)于DB LINK 的問題
今天,小彭又給我打電話了,他從武義到了蘭溪,在創(chuàng)建dblinks后無法正常訪問營銷數(shù)據(jù)庫,提示錯(cuò)誤:ORA-02085: 數(shù)據(jù)庫鏈接DB_YX.CN與LXCIS相連結(jié)。見鬼,在公司可以的,在武義也可以。怎么到蘭溪就出問題了呢。沒辦法,對(duì)dblinks不熟,查了下google,發(fā)現(xiàn)只要一句話就搞定了:alter system set global_names=false;
oracle的文檔上是這么寫的:database link name connects to name cause: The database link attempted to connect to a database with a different name.The name of the database link must be the same name as the name of the database.Action: Create a database link with same name as the database to which it connects.
一定是有人把global_names參數(shù)設(shè)置成true了,這樣的話就要求dblink的名字必須和目標(biāo)數(shù)據(jù)庫的名字相同。又學(xué)到了點(diǎn),呵呵。

浙公網(wǎng)安備 33010602011771號(hào)