我其实就是想建立一个dblink,我也可用明确的说。用户名和密码是对的。因为我用sqlplus验证过了。
验证结果如下:
10.188.238.19这个数据的listerner.ora如下:
# listener.ora Network Configuration File: D:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(
SID_DESC=
(GLOBAL_DBNAME=BMCPDS)
(ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
(SID_NAME=ORCL)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = fjyc-portal02.com)(PORT = 1521))
)
)
ADR_BASE_LISTENER = D:\app\Administrator
想请各位大神帮忙看下,并解决。谢谢了
------解决思路----------------------
是不是密码大小问题?
------解决思路----------------------
将密码重置一下再试试
------解决思路----------------------
试一下这个
SYMPTOMS
Select Using a database link fails
ORA-01017: invalid username/password; logon denied
ORA-02063: preceding %s%s from %s%s
CHANGES
{CHANGE}
CAUSE
Client side GLOBAL_NAMES=TRUE
GLOBAL_NAMES=VALUE On the database where the Database link is created (Client) decides if the Database link name must be the same as the database where the Database link will connect to (Master), that will be the case if the VALUE is set to TRUE
SOLUTION
Run the following on the database where the Database link is created (Client) if you want to create a Database link with a different name other then the database name to where the Database link will connect to (Master) :
alter system set global_names=false