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: how do I concatenate a string in PL/SQL?

Roger Xu

2006-02-08

Replies:
SQL> !cat /tmp/abc.sql
set serveroutput on
set verify off

declare

a_strng CHAR(50);
a_ATWRT CHAR(30);

begin

a_ATWRT := 'World';
a_strng := 'Hello';
a_strng := a_ATWRT || a_strng;
dbms_output.put_line ( a_strng);

end;

/

set verify on

SQL> @/tmp/abc
declare
*
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 10


SQL>

-----Original Message-----
From: Pat Hildebrand [mailto:pat@(protected)]
Sent: Wednesday, February 08, 2006 4:28 PM
To: Roger Xu
Cc: Jared Still; Oracle-L@(protected))
Subject: Re: how do I concatenate a string in PL/SQL?


I common cause of the error that you are getting for strings is that
you are trying to put in a value that is too long for the
variable. Look at your variable definition and what you are trying to
put into it.

             Pat


On Wed, Feb 08, 2006 at 05:01:16PM EST, Roger Xu <roger_xu@(protected):
> Nothing wrong with the cursor, the only problem is: "a_strng := a_ATWRT || a_strng;"
>
> ORA-06502: PL/SQL: numeric or value error
> ORA-06512: at line 97
>

For technical support please email tech_support@(protected)
call (972)721-8257.
This email has been scanned for all viruses by the MessageLabs Email Security System.

This e-mail is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. Any review, dissemination, copying, printing or other use of this e-mail by persons or entities other than the addressee is prohibited. If you have received this e-mail in error, please contact the sender immediately and delete the material.
____________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email Security System. Any questions please call 972-721-8257 or email your request to tech_support@(protected).
--
http://www.freelists.org/webpage/oracle-l