我正在努力使用oracle表单11g连接到数据库。我使用weblogic和XE数据库将我的机器用作本地主机。当我尝试使用oracle表单连接到数据库时,会弹出此错误
" ERROR ORA-12170:TNS:发生了连接超时"
以下是文件 C:\ oraclexe \应用\ ORACLE \产品\ 11.2.0 \服务器\网络\ ADMIN
听者
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = NB**MyIP**.com)(PORT = 1521))
)
)
DEFAULT_SERVICE_LISTENER = (XE)
SQLNET
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES = (NTS)
TNSNAMES
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = NB**MyIP**.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
我也改变了
HOST = NB**MyIP**.com)(PORT = 1521)) to
HOST = localhost)(PORT = 1521))
并将所有文件复制到C:\ Oracle \ Middleware10_3 \ asinst_1
并将tnsnames复制到
C:\甲骨文\ Middleware10_3 \ asinst_1 \配置
我有另一个C:\ Oracle \ Middleware \ Oracle_Home for JDeveloper。
我没有技术经验来解决它。
答案 0 :(得分:0)
尝试更改sqlnet.ora
添加:NAMES.DIRECTORY_PATH =(TNSNAMES)
并注释掉:#SQLNET.AUTHENTICATION_SERVICES =(NTS)
将sqlnet.ora复制到asinst_1 / config目录
答案 1 :(得分:0)
如果您的oracle数据库安装在Windows服务器上,那么请检查您的Windows服务器防火墙设置,确保关闭Windows内部防火墙