###########################################################################################################
WARNING: inbound connection timed out (ORA-3136)
这是和网络连接相关的一个错误,Metalink上给出了如下的解决方案:
1.set INBOUND_CONNECT_TIMEOUT_=0 in listener.ora
2. set SQLNET.INBOUND_CONNECT_TIMEOUT = 0 in sqlnet.ora of server.
3. stop and start both listener and database.
4. Now try to connect to DB and observe the behaviour
这里重起数据库和Listener我认为是没有必要的,我们reload一下Listner应该就可以了
关于SQLNET.INBOUND_CONNECT_TIMEOUT参数,Oracle建议修改该参数,以避免denial-of-service攻击.
引用一段Oracle文档说明如下:
SQLNET.INBOUND_CONNECT_TIMEOUT
Purpose
Use the SQLNET.INBOUND_CONNECT_TIMEOUT parameter to specify the time, in seconds, for a client to connect with the database server and provide the necessary authentication information.
If the client fails to establish a connection and complete authentication in the time specified, then the database server terminates the connection. In addition, the database server logs the IP address of the client and an ORA-12170: TNS:Connect timeout occurred error message to the sqlnet.log file. The client receives either an ORA-12547: TNS:lost contact or an ORA-12637: Packet receive failed error message.
Without this parameter, a client connection to the database server can stay open indefinitely without authentication. Connections without authentication can introduce possible denial-of-service attacks, whereby malicious clients attempt to flood database servers with connect requests that consume resources.
To protect both the database server and the listener, Oracle Corporation recommends setting this parameter in combination with the INBOUND_CONNECT_TIMEOUT_listener_name parameter in the listener.ora file. When specifying values for these parameters, consider the following recommendations:
Set both parameters to an initial low value.
Set the value of the INBOUND_CONNECT_TIMEOUT_listener_name parameter to a lower value than the SQLNET.INBOUND_CONNECT_TIMEOUT parameter.
For example, you can set INBOUND_CONNECT_TIMEOUT_listener_name to 2 seconds and INBOUND_CONNECT_TIMEOUT parameter to 3 seconds. If clients are unable to complete connections within the specified time due to system or network delays that are normal for the particular environment, then increment the time as needed.
See Also:
Oracle9i Net Services Administrator's Guide for information about configuring these parameters
###########################################################################################################
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
目前使用这样的方法解决的:
B-A: BAlink(dblink name), A-Bno dblink)
procedure in B database, ProcB
procedure in A database, ProcA
ProcB:
.....
ProcA@BAlink;
...
另外一个网上的兄弟说:
When passing a user defined type, such as a PL/SQL table or
record to a remote procedure, to make PL/SQL use the same
definition so that the type checker can verify the source, you must
create a redundant loop back DBLINK so that when the PL/SQL
compiles, both sources pull from the same location.
------Application Developer's Guide - Fundamentals.pdf
###########################################################################
BV.EB_FT_SQL
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26006637/viewspace-1059261/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26006637/viewspace-1059261/