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.
C, D is correct answer
Link to documentation
http://docs.oracle.com/cd/B19306_01/appdev.102/b14261/fundamentals.htm#BABIHIHF
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.”
C D
a d
Piero the right answer is C and D.
C D
A, D since Oracle 11g
C, D before Oracle 11g
No, i’m wrong, I didn’t understood correctly the question.
C, D are CORRECT
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.”
This topic is “Conditional Compilation”. I had no idea this existed, thanks!
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.
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.
C, D
11 R1
http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/fundamentals.htm#CIHEBFHF
11 R2
http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/fundamentals.htm#CIHEBFHF
C,D
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;
But in 1Z0-144 exam we have only one option not two..Can any one suggest me which one is the right answer..
Thanks
Here are several of the internet sites we recommend for our visitors.
very couple of web-sites that come about to become comprehensive below, from our point of view are undoubtedly nicely really worth checking out
Here are some of the sites we advocate for our visitors
Here is a good Weblog You may Discover Fascinating that we Encourage You
just beneath, are various completely not connected web sites to ours, however, they may be certainly worth going over
very few web sites that happen to be in depth beneath, from our point of view are undoubtedly very well worth checking out
Very few web sites that come about to be detailed below, from our point of view are undoubtedly properly worth checking out.
Very handful of websites that take place to be comprehensive beneath, from our point of view are undoubtedly very well worth checking out.
just beneath, are quite a few entirely not related sites to ours, having said that, they are certainly really worth going over
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
that would be the finish of this report. Here youll find some websites that we consider you will enjoy, just click the links over
CD
??
cd