就是这个空格问题让我纠结了一天时间,
ORA10G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = intl)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = intl)
)
)
除了以上的红色O(连接串名)、(、),其他内容不能靠左,需要右缩进才行;
数据库连接串定义中除首尾括号外不允许其他内容顶头书写;
如果写成以下这样,就是错误的写法:
ORA10G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = intl)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = intl)
)
)