What would be the effect on the two procedures if the value of debug is set to false?

View the Exhibit and examine the code and its outcome on execution:

What would be the effect on the two procedures if the value of debug is set to false? (Choose two.)

View the Exhibit and examine the code and its outcome on execution:

What would be the effect on the two procedures if the value of debug is set to false? (Choose two.)

A.
MY_PROC2 is not recompiled.

B.
MY_PROC1 is recompiled but remains unchanged.

C.
MY_PROC2 is recompiled but remains unchanged.

D.
MY_PROC1 is recompiled without the debugging code.



Leave a Reply 30

Your email address will not be published. Required fields are marked *


Uladzimir

Uladzimir

C, D is correct answer

Link to documentation
http://docs.oracle.com/cd/B19306_01/appdev.102/b14261/fundamentals.htm#BABIHIHF

alex

alex

Yes it’s C and D.

In the documentation mentioned by Uladzimir:
“Changing the value of one of the constants forces all the dependent units of the package to recompile with the new value. For example, changing the value of debug to FALSE would cause my_proc1 to be recompiled without the debugging code. my_proc2 would also be recompiled, but my_proc2 would be unchanged because the value of trace did not change.”

piero

piero

a d

alex

alex

Piero the right answer is C and D.

Damien

Damien

A, D since Oracle 11g
C, D before Oracle 11g

Damien

Damien

No, i’m wrong, I didn’t understood correctly the question.

C, D are CORRECT

Vitaly

Vitaly

C, D

Database PL/SQL User’s Guide and Reference:

“Changing the value of one of the constants forces all the dependent units of the package to recompile with the new value.”

@pablox_co

@pablox_co

This topic is “Conditional Compilation”. I had no idea this existed, thanks!

User

User

Changing the value of one of the constants forces all the dependent units of the package
to recompile with the new value.
For example, changing the value of debug to FALSE would cause my_proc1
to be recompiled without the debugging code.
my_proc2 would also be recompiled,
but my_proc2 would be unchanged because the value of trace did not change.

User

User

https://docs.oracle.com/cd/B19306_01/appdev.102/b14261/fundamentals.htm

SAYS:

Changing the value of one of the constants forces all the dependent units of the package
to recompile with the new value.
For example, changing the value of debug to FALSE would cause my_proc1
to be recompiled without the debugging code.
my_proc2 would also be recompiled,
but my_proc2 would be unchanged because the value of trace did not change.

SK

SK

create or replace package my_debug is
debug CONSTANT BOOLEAN := FALSE;
trace CONSTANT BOOLEAN := TRUE;
end my_debug;
/

create procedure my_proc1 is
BEGIN
$if my_debug.debug $then
dbms_output.put_line(‘Debuging on’);
$else
dbms_output.put_line(‘Debuging off’);
$end
end my_proc1;
/

create procedure my_proc2 is
BEGIN
$if my_debug.trace $then
dbms_output.put_line(‘TRACING on’);
$else
dbms_output.put_line(‘TRACING off’);
$end
end my_proc2;

ksvniki

ksvniki

But in 1Z0-144 exam we have only one option not two..Can any one suggest me which one is the right answer..

Thanks

Google

Google

Here are several of the internet sites we recommend for our visitors.

usmc combat techniques

usmc combat techniques

very couple of web-sites that come about to become comprehensive below, from our point of view are undoubtedly nicely really worth checking out

Contact us- youtubemp3download3

Contact us- youtubemp3download3

Here are some of the sites we advocate for our visitors

atlantapiano

atlantapiano

Here is a good Weblog You may Discover Fascinating that we Encourage You

Pinganillo

Pinganillo

just beneath, are various completely not connected web sites to ours, however, they may be certainly worth going over

how to create your own app

how to create your own app

very few web sites that happen to be in depth beneath, from our point of view are undoubtedly very well worth checking out

Google

Google

Very few web sites that come about to be detailed below, from our point of view are undoubtedly properly worth checking out.

Google

Google

Very handful of websites that take place to be comprehensive beneath, from our point of view are undoubtedly very well worth checking out.

Cash for cars

Cash for cars

just beneath, are quite a few entirely not related sites to ours, having said that, they are certainly really worth going over

car

car

Wonderful story, reckoned we could combine some unrelated information, nonetheless truly really worth taking a appear, whoa did one particular study about Mid East has got additional problerms too

recipes

recipes

that would be the finish of this report. Here youll find some websites that we consider you will enjoy, just click the links over