Does anyone know why this won't compile? Thanks in advance.

CREATE OR REPLACE FUNCTION frank.emails
RETURN varchar2
is
temp_em varchar2;
BEGIN
select 'abc' into temp_em from dual;
return temp_em;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
WHEN OTHERS THEN
-- Consider logging the error and then re-raise
RAISE;
END emails;
Warning: compiled but with compilation errors

TOAD would take you directly to the line where the error is. And "show error" command should work in TOAD as well. Just run the following using the "Execute as script" option:
CREATE OR REPLACE FUNCTION emails
RETURN varchar2
is
temp_em varchar2;
BEGIN
select 'abc' into temp_em from dual;
return temp_em;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
WHEN OTHERS THEN
-- Consider logging the error and then re-raise
RAISE;
END emails;
show error;Output:
Warning: compiled but with compilation errors
Errors for FUNCTION EMAILS
LINE/COL ERROR                                                           
4/9      PLS-00215: String length constraints must be in range (1 .. 32767
         )      OR if you compile your code (in post#1) using "Compile/execute statement at caret" option, TOAD will highlight the line with error and the error code/message.
If you have your question answered, please mark the responses as "correct"/answered.

Similar Messages

Maybe you are looking for

  • Problem in Changing the Query of LOV using Forms Personalisation

    Hi all, I have a problem while trying to change the LOV of job field in the people--> assignment form. I am trying to do through forms personalisation. I defined all the rquired fields: Following are the description of fields Idescribed in the form P

  • Wired keyboard and mouse

    I am interested in buying a wired keyboard and mouse with the Apple cinema display. I am in Korea. I went to the Apple site and it just advertises the wireless versions. I do not like wireless versions because I do not like to mess around with batter

  • Apple Mail produces illegal html

    We've had all kinds of problems with Mac-generated emails coming up blank for some recipients. Our service provider did a detailed analysis and discovered that the Apple mail application (version 2.1 - 752/752.2) generates illegal html!!!! Here is an

  • Is it possible to manually manage music on the iPod Touch and still have your last played info updated?

    Hi, I'm running low on my iPod Touch capacity so have set it to 'manually manage music'. However, when on this setting, it doesn't update iTunes with 'last played' information. Is there any way to enable this? I appreciate it's not a huge issue but i

  • Rman and optimizer run parallel

    we have 300GB size database and we have to run RMAN full backup which normally takes 6 to 7 hrs to complete and after RMAN completion we need to run the schema level optimizer to collect the statistics for whole database; We need at least 12 hrs comp