Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
Problems in DB Link Connections.

Problems in DB Link Connections.

2004-11-05       - By arul.kumar@(protected)

Reply:     1     2     3  

Dear DBAs,

We are facing lot of problems using db links across remote systems. I tried to simulate the same for better understanding. The facts are as follows:

Observations on a simulated environment

Problem : The target remote systems complaining that we (source) are holding lots of INACTIVE connections which are not needed (at target server!)

Source - A
Target - B

Db Link - TestLink04

1. A database connection will be created at the target whenever source uses a db link.

2. The status of the above connection will be shown as ACTIVE only when it is REALLY
doing some massive work. ASAP, it changes the status to INACTIVE

The above is one of the reasons why MOST of the connections are being shown as INACTIVE, though ACTUALLY they are in use.

For example : Firing a SELECT * FROM <mailto:Big_Table@(protected) > Big_Table@(protected) IS changing the status of the session at target from INACTIVE to
ACTIVE MANY a times in quick succession though at source, STILL the records are getting displayed.

3. Though the source is finished with its work with the db link (by properly issuing a COMMIT / ROLLBACK), the connection
at the target will be still present (as INACTIVE, ofcourse).

4. The target database connection will ONLY terminate when the source connection terminates (which NEVER happens in
OSD I believe). So, the connection once established at the target will LIVE for ever if it is not
killed forcibly!

5. If the target INACTIVE connection is killed, then at source, any further queries to the DBLINK connection may throw

ORA-02068 (See ORA-02068.ora-code.com) : following severe error from testlink04 ORA-01012 (See ORA-01012.ora-code.com): not logged on

at the first invocation of any SQL at target through the same session at source. Subsequent calls will automatically
trigger a new connection at target.

Any suggestions for reducing the number of INACTIVE connections at the target will be appreciated.

Many Thanks,
Arul.
--
http://www.freelists.org/webpage/oracle-l