Home
All Oracle Error Codes
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

RE: 30+ long db_link names and dbms_metadata.get_ddl

Dan Fink

2005-05-26

Replies:
Dave,

DBMS_METADATA is rather buggy in 9i. You might have to write your own procedure to extract db_links. Most object names in the database are 30 characters, so the procedure was probably written with this in mind. At least that is the simplest explanation.

Regards,
Dan Fink

----- Original Message -----
From: Herring Dave - dherri
Sent: Thu May 26 07:17:41 MDT 2005
To: oracle-l@(protected)
Subject: 30+ long db_link names and dbms_metadata.get_ddl


Has anyone run into a problem trying to extract the definition of a
database link, using DBMS_METADATA, where the link name is > 30
characters? Either I'm missing something or I've found another bug in
9.2.0.4. Here's an example:


CREATE DATABASE LINK test_of_a_long_database_link_name USING 'sid1';



SET ECHO off FEEDBACK off HEADING off LINESIZE 2047 LONGCHUNKSIZE 2047
LONG 32767 PAGESIZE 0 SCAN off

SET SQLBLANKLINES on TAB off

COLUMN stmt WORD_WRAPPED

EXECUTE
dbms_metadata.set_transform_param(DBMS_METADATA.SESSION_TRANSFORM,'SQLTE
RMINATOR',TRUE);



SELECT
dbms_metadata.get_ddl('DB_LINK','TEST_OF_A_LONG_DATABASE_LINK_NAME','DHE
RRI') stmt

FROM dual;



.. and the output is:



ORA-31600: invalid input value LONGNAME for parameter NAME in function
SET_FILTER

ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105

ORA-06512: at "SYS.DBMS_METADATA_INT", line 1980

ORA-06512: at "SYS.DBMS_METADATA_INT", line 3665

ORA-06512: at "SYS.DBMS_METADATA", line 670

ORA-06512: at "SYS.DBMS_METADATA", line 571

ORA-06512: at "SYS.DBMS_METADATA", line 1221

ORA-06512: at line 1



If I change the database link name to ' test_of_a_long_database_link_n'
it works fine.



Any clues?



Dave

-------------------------------------

Dave Herring, DBA

Acxiom Corporation

3333 Finley

Downers Grove, IL 60515

wk: 630.944.4762

<mailto:dherri@(protected)> >

-------------------------------------





**********************************************************************
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l