Last active
January 15, 2018 16:47
-
-
Save foobarbaz-pl/72b7dcd85957381108c840f10c31e155 to your computer and use it in GitHub Desktop.
Revisions
-
foobarbaz-pl revised this gist
Jan 15, 2018 . 2 changed files with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,13 @@ declare l_sql varchar2(32767); l_variables varchar2(1000) := ''; l_rac varchar2(50) := 'FALSE'; begin if dbms_utility.is_cluster_database then l_rac := 'TRUE'; end if; l_variables := l_variables || 'RAC:' || l_rac || ','; -- other conditional compilation flags goes here This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,3 +9,4 @@ begin -- RAC specific code goes here $end end; / -
foobarbaz-pl created this gist
Jan 15, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ declare l_sql varchar2(32767); l_variables varchar2(1000) := ''; l_db_lt_11_2 varchar2(50) := 'FALSE'; l_version constant number := dbms_db_version.version + (dbms_db_version.release / 10); begin if l_version < 11.2 then l_db_lt_11_2 := 'TRUE'; end if; l_variables := l_variables || 'DB_LT_11_2:' || l_sin_master_instance || ','; -- other conditional compilation flags goes here l_variables := rtrim(l_variables, ','); dbms_output.put_line(l_variables); l_sql := q'[alter session set PLSQL_CCFLAGS=']' || l_variables || q'[']'; execute immediate l_sql; end; / This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ create function get_val return varchar2 $if not dbms_db_version.ver_le_10_2 $then result_cache $end; as begin null; $if $$RAC $then -- RAC specific code goes here $end end;