I'm struggling to connect to the database using oracle forms 11g. I'm using my machine as a local host using weblogic and XE database. When I try to connect to the database using oracle forms, this error pops
"ERROR ORA-12170: TNS:Connect timeout occurred"
Here are the files C:\\oraclexe\\app\\oracle\\product\\11.2.0\\server\\network\\ADMIN
listener
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)
)
)
I also changed
HOST = NB**MyIP**.com)(PORT = 1521)) to
HOST = localhost)(PORT = 1521))
and copied all files to C:\\Oracle\\Middleware10_3\\asinst_1
and copied tnsnames to
C:\\Oracle\\Middleware10_3\\asinst_1\\config
I have another C:\\Oracle\\Middleware\\Oracle_Home for JDeveloper.
I don't have technical experience to solve it.
try changing sqlnet.ora
add: NAMES.DIRECTORY_PATH=(TNSNAMES)
and comment out: #SQLNET.AUTHENTICATION_SERVICES = (NTS)
copy sqlnet.ora to the asinst_1/config directory
如果您的oracle数据库安装在Windows服务器上,则请检查Windows服务器防火墙设置,确保关闭Windows内部防火墙
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.