Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

EXCEPTION WHEN NO_DATA_FOUND

happy10319Mar 25 2019 — edited Mar 25 2019

Hi,

On 12c

In my PL/SQL program I treat EXCEPTION WHEN NO_DATA_FOUND as follows and after that I like to do: dbms_output.put_line('xxx');.

But it is not executed. Where is the end of EXCEPTION and how to continue after?

=========my program===================

DECLARE

i number;

CURSOR m_cur IS

SELECT * from TABLE1

UNION

SELECT * from TABLE2;

myrow m_cur%rowtype;

BEGIN

select id into i from table2 where id=284;

DBMS_output.put_line('I IS : '||i);

EXCEPTION WHEN NO_DATA_FOUND THEN

BEGIN

OPEN m_cur;

 LOOP

    FETCH m\_cur INTO myrow;

    EXIT WHEN m\_cur%NOTFOUND;

    i:=myrow.id;

dbms_output.put_line('i : '||i);

 END LOOP;

 CLOSE m\_cur;

END;

dbms_output.put_line('xxx');

END;

=============output========================

pastedImage_0.png

Thanks.

Construction:

create TABLE TABLE1 (id number, PROGRAM varchar2(25));

create TABLE TABLE2 (id number, PROGRAM varchar2(25));

Insert into TABLE1 (ID,PROGRAM) values ('1681','prog1');

Insert into TABLE1 (ID,PROGRAM) values ('1687','Z_prog1');

Insert into TABLE2 (ID,PROGRAM) values ('284','prog1');

Insert into TABLE2 (ID,PROGRAM) values ('285','prog1');

Insert into TABLE2 (ID,PROGRAM) values ('286','Z_prog1');

Insert into TABLE2 (ID,PROGRAM) values ('287','prog1');

Insert into TABLE2 (ID,PROGRAM) values ('288','prog1');

This post has been answered by Cookiemonster76 on Mar 25 2019
Jump to Answer

Comments

Hemant K Chitale

Also see "Certification Information for Oracle Database on Linux x86-64 (Doc ID 1304727.1)"

Hemant K  Chitale

JohnWatson2

The database and XFS are not certified together. It should work, but if you ever have a problem you are on your own. Oracle's database support group can say "not our problem, because we don't support XFS" and Oracle's Linux support group can say "not our problem, because we don't support the database".

Does this matter? Probably not, as you are using VMware, which is not certified no matter what file system you use. The aphorism "might as well be hung for a sheep as a lamb" springs to mind.

Stefan Koehler

Hi Alex,

i guess all your questions are answered in MOS ID #1632127.1. We also discussed this on Twitter some time ago.

> Anybody using xfs for Oracle 12c databases? Any experience with support problems due to this stack?

Yes, several of my clients are running 11g and 12c on XFS (OEL 6 and 7). No experience with support, because they had no issue until yet - just better I/O performance (in contrast to EXT)

Best Regards

Stefan Koehler

Freelance Oracle performance consultant and researcher

<Moderator Edit - deleted signature spam link - pl see FAQ on where signature information is allowed>

Hemant K Chitale

Quoting Support Note 1304727.1

  • XFS - XFS is supported when using OL7 or RHEL 7. Oracle has not tested XFS with earlier versions of OL or RHEL.

Hemant K Chitale

Alex Bardos

FYI - Oracle Support's response to my SR: "As per the certification team, XFS with OL7 is supported for database."

This fact is also "kind of" expressed in the note pointed to by earlier in the thread: https://support.oracle.com/rs?type=doc&id=1304727.1

I am not sure why it has to be such a pain to get a clear, unambiguous answer to a question like this.

Thanks.

Alex Bardos

1 - 5

Post Details

Added on Mar 25 2019
7 comments
1,719 views