|
Hi,
On 19c on AIX , IF condition in following bloc does not executed:
set serveroutput on
BEGIN
dbms_output.enable (1000000);
dbms_output.put_line ( 'before ' || sys_context('USERENV','DB_NAME'));
IF $$ORACLE_SID='myCDB' THEN
execute immediate ( 'alter session set container="myPDB" ');
dbms_output.enable (1000000);
dbms_output.put_line ( 'condition ok ');
END IF;
dbms_output.enable (1000000);
dbms_output.put_line ( 'after ' || sys_context('USERENV','DB_NAME'));
END;
/
After exection I have:
befor myCDB
after myCDB
What is wrong with my IF condition?
Thanks and regards.
|