DBA Data[Home] [Help]

APPS.FND_ADG_SUPPORT dependencies on FND_ADG_UTILITY

Line 47: if ( fnd_adg_utility.is_standby_access_supported )

43:
44: G_HANDLE_REQUEST_ROW_ALL := false;
45: G_HANDLE_REQUEST_ROW_PRIMARY := false;
46:
47: if ( fnd_adg_utility.is_standby_access_supported )
48: then
49: if ( fnd_adg_utility.is_adg_support_enabled )
50: then
51: G_HANDLE_REQUEST_ROW_ALL := true;

Line 49: if ( fnd_adg_utility.is_adg_support_enabled )

45: G_HANDLE_REQUEST_ROW_PRIMARY := false;
46:
47: if ( fnd_adg_utility.is_standby_access_supported )
48: then
49: if ( fnd_adg_utility.is_adg_support_enabled )
50: then
51: G_HANDLE_REQUEST_ROW_ALL := true;
52: end if;
53:

Line 54: if ( fnd_adg_utility.is_always_collect_primary_data )

50: then
51: G_HANDLE_REQUEST_ROW_ALL := true;
52: end if;
53:
54: if ( fnd_adg_utility.is_always_collect_primary_data )
55: then
56: G_HANDLE_REQUEST_ROW_PRIMARY := true;
57: end if;
58: end if;

Line 100: if ( fnd_adg_utility.is_standby_access_supported and

96:
97: $if fnd_adg_compile_directive.enable_rpc
98: $then
99:
100: if ( fnd_adg_utility.is_standby_access_supported and
101: fnd_adg_utility.is_adg_support_enabled )
102: then
103:
104: for f_rec in c1 loop

Line 101: fnd_adg_utility.is_adg_support_enabled )

97: $if fnd_adg_compile_directive.enable_rpc
98: $then
99:
100: if ( fnd_adg_utility.is_standby_access_supported and
101: fnd_adg_utility.is_adg_support_enabled )
102: then
103:
104: for f_rec in c1 loop
105:

Line 117: if ( fnd_adg_utility.is_session_simulated_standby and is_primary )

113: if ( not G_IS_STANDBY )
114: then
115: -- Allow for simulated standby if running on primary.
116:
117: if ( fnd_adg_utility.is_session_simulated_standby and is_primary )
118: then
119: if ( not is_rpc_from_standby ) -- only true when slave rpc
120: then
121: G_IS_STANDBY := true; -- rpc client is now simulated as standby.

Line 144: if ( fnd_adg_utility.is_standby_access_supported )

140: begin
141:
142: G_IS_TRUE_STANDBY := false;
143:
144: if ( fnd_adg_utility.is_standby_access_supported )
145: then
146: for f_rec in c1 loop
147:
148: if ( f_rec.open_mode = C_OPEN_READ_ONLY and

Line 586: fnd_adg_utility.find_registered_standby

582: then
583: return;
584: end if;
585:
586: fnd_adg_utility.find_registered_standby
587: (p_connstr1,l_standby_exists,l_standby_valid,
588: l_mgr_stndby_req_class_app_id,l_mgr_stndby_req_class_id);
589:
590: fnd_adg_utility.get_connection_data

Line 590: fnd_adg_utility.get_connection_data

586: fnd_adg_utility.find_registered_standby
587: (p_connstr1,l_standby_exists,l_standby_valid,
588: l_mgr_stndby_req_class_app_id,l_mgr_stndby_req_class_id);
589:
590: fnd_adg_utility.get_connection_data
591: (fnd_adg_utility.C_CONNECT_TO_SIMULATED_STANDBY,
592: l_simulation_valid, l_simulation_connstr);
593:
594: if ( not l_standby_exists )

Line 591: (fnd_adg_utility.C_CONNECT_TO_SIMULATED_STANDBY,

587: (p_connstr1,l_standby_exists,l_standby_valid,
588: l_mgr_stndby_req_class_app_id,l_mgr_stndby_req_class_id);
589:
590: fnd_adg_utility.get_connection_data
591: (fnd_adg_utility.C_CONNECT_TO_SIMULATED_STANDBY,
592: l_simulation_valid, l_simulation_connstr);
593:
594: if ( not l_standby_exists )
595: then

Line 618: if ( fnd_adg_utility.is_simulated_standby_enabled and

614: p_cp_rec.No_Simulated_Standby_Failures <=
615: p_cp_rec.Max_Simulated_Standby_Failures )
616: then
617:
618: if ( fnd_adg_utility.is_simulated_standby_enabled and
619: fnd_adg_utility.is_auto_simulation_enabled )
620: then
621: p_cp_chng_rec.Run_On_Standby := boolean_to_ynu(true);
622: end if;

Line 619: fnd_adg_utility.is_auto_simulation_enabled )

615: p_cp_rec.Max_Simulated_Standby_Failures )
616: then
617:
618: if ( fnd_adg_utility.is_simulated_standby_enabled and
619: fnd_adg_utility.is_auto_simulation_enabled )
620: then
621: p_cp_chng_rec.Run_On_Standby := boolean_to_ynu(true);
622: end if;
623: end if;

Line 695: if ( fnd_adg_utility.is_automatic_redirection and

691:
692: -- Special handling when automatic redirection is enabled.
693:
694:
695: if ( fnd_adg_utility.is_automatic_redirection and
696: yn_to_boolean(p_cp_rec.use_automatic_redirection ) )
697: then
698: for i in 1..fnd_adg_utility.get_max_standby_systems loop
699:

Line 698: for i in 1..fnd_adg_utility.get_max_standby_systems loop

694:
695: if ( fnd_adg_utility.is_automatic_redirection and
696: yn_to_boolean(p_cp_rec.use_automatic_redirection ) )
697: then
698: for i in 1..fnd_adg_utility.get_max_standby_systems loop
699:
700: fnd_adg_utility.get_connection_data
701: (fnd_adg_utility.C_CONNECT_PRIMARY_TO_STANDBY,
702: l_auto_valid,l_auto_connstr1,i);

Line 700: fnd_adg_utility.get_connection_data

696: yn_to_boolean(p_cp_rec.use_automatic_redirection ) )
697: then
698: for i in 1..fnd_adg_utility.get_max_standby_systems loop
699:
700: fnd_adg_utility.get_connection_data
701: (fnd_adg_utility.C_CONNECT_PRIMARY_TO_STANDBY,
702: l_auto_valid,l_auto_connstr1,i);
703:
704: if ( l_auto_valid )

Line 701: (fnd_adg_utility.C_CONNECT_PRIMARY_TO_STANDBY,

697: then
698: for i in 1..fnd_adg_utility.get_max_standby_systems loop
699:
700: fnd_adg_utility.get_connection_data
701: (fnd_adg_utility.C_CONNECT_PRIMARY_TO_STANDBY,
702: l_auto_valid,l_auto_connstr1,i);
703:
704: if ( l_auto_valid )
705: then

Line 706: fnd_adg_utility.get_standby_cm_class(i,l_auto_stndby_req_class_app_id,

702: l_auto_valid,l_auto_connstr1,i);
703:
704: if ( l_auto_valid )
705: then
706: fnd_adg_utility.get_standby_cm_class(i,l_auto_stndby_req_class_app_id,
707: l_auto_stndby_req_class_id);
708: exit;
709: end if;
710: end loop;

Line 722: fnd_adg_utility.find_registered_standby

718: end if;
719:
720: -- Connstr could be standby or simulation
721:
722: fnd_adg_utility.find_registered_standby
723: (p_connstr1,l_standby_exists,l_standby_valid,
724: l_mgr_stndby_req_class_app_id,l_mgr_stndby_req_class_id);
725:
726: fnd_adg_utility.get_connection_data

Line 726: fnd_adg_utility.get_connection_data

722: fnd_adg_utility.find_registered_standby
723: (p_connstr1,l_standby_exists,l_standby_valid,
724: l_mgr_stndby_req_class_app_id,l_mgr_stndby_req_class_id);
725:
726: fnd_adg_utility.get_connection_data
727: (fnd_adg_utility.C_CONNECT_TO_SIMULATED_STANDBY,
728: l_simulation_valid,l_simulation_connstr);
729:
730: -- If supplied connstr exists then we use it and ignore

Line 727: (fnd_adg_utility.C_CONNECT_TO_SIMULATED_STANDBY,

723: (p_connstr1,l_standby_exists,l_standby_valid,
724: l_mgr_stndby_req_class_app_id,l_mgr_stndby_req_class_id);
725:
726: fnd_adg_utility.get_connection_data
727: (fnd_adg_utility.C_CONNECT_TO_SIMULATED_STANDBY,
728: l_simulation_valid,l_simulation_connstr);
729:
730: -- If supplied connstr exists then we use it and ignore
731: -- automatic redirection even if it turns out to be invalid. After

Line 842: if ( fnd_adg_utility.is_simulated_standby_enabled and

838:
839: -- This will redirect for null and instance strings. It's not clear
840: -- we really want this happen but we can just disable auto-simulation.
841:
842: if ( fnd_adg_utility.is_simulated_standby_enabled and
843: fnd_adg_utility.is_auto_simulation_enabled and l_simulation_valid )
844: then
845: p_connstr1 := l_simulation_connstr;
846: return;

Line 843: fnd_adg_utility.is_auto_simulation_enabled and l_simulation_valid )

839: -- This will redirect for null and instance strings. It's not clear
840: -- we really want this happen but we can just disable auto-simulation.
841:
842: if ( fnd_adg_utility.is_simulated_standby_enabled and
843: fnd_adg_utility.is_auto_simulation_enabled and l_simulation_valid )
844: then
845: p_connstr1 := l_simulation_connstr;
846: return;
847: end if;

Line 874: if ( fnd_adg_utility.is_enable_redirect_if_valid and

870: -- Ready to go - make sure manager is running for class id.
871:
872: -- Does manager have to be running - can be put in queue for later.
873:
874: if ( fnd_adg_utility.is_enable_redirect_if_valid and
875: yn_to_boolean(p_cp_rec.always_redirect_if_valid) )
876: then
877: l_manager_must_be_running := false;
878: else

Line 885: fnd_adg_utility.is_standby_manager_defined

881:
882: if ( not l_auto_valid )
883: then
884: l_is_standby_mgr_defined :=
885: fnd_adg_utility.is_standby_manager_defined
886: (l_mgr_stndby_req_class_app_id,
887: l_mgr_stndby_req_class_id,
888: l_manager_must_be_running);
889: else

Line 891: fnd_adg_utility.is_standby_manager_defined

887: l_mgr_stndby_req_class_id,
888: l_manager_must_be_running);
889: else
890: l_is_standby_mgr_defined :=
891: fnd_adg_utility.is_standby_manager_defined
892: (l_auto_stndby_req_class_app_id,
893: l_auto_stndby_req_class_id,
894: l_manager_must_be_running);
895: end if;

Line 1107: return fnd_adg_utility.is_connection_registered(p_connstr,p_check_valid,

1103: return boolean
1104: as
1105: begin
1106:
1107: return fnd_adg_utility.is_connection_registered(p_connstr,p_check_valid,
1108: p_check_available);
1109:
1110: end;
1111:

Line 1133: if ( fnd_adg_utility.is_connection_registered(p_connstr,

1129: then
1130: l_bool_check_available := true;
1131: end if;
1132:
1133: if ( fnd_adg_utility.is_connection_registered(p_connstr,
1134: l_bool_check_valid,
1135: l_bool_check_available) )
1136: then
1137: return 1;

Line 1166: l_cache_state := fnd_adg_utility.enable_control_cache;

1162: begin
1163:
1164: -- Use the control cache to avoid repeated reads.
1165:
1166: l_cache_state := fnd_adg_utility.enable_control_cache;
1167:
1168: -- Always check state
1169:
1170: set_handle_request_row_change;

Line 1176: fnd_adg_utility.disable_control_cache(l_cache_state);

1172: if ( G_HANDLE_REQUEST_ROW_ALL or G_HANDLE_REQUEST_ROW_PRIMARY )
1173: then
1174: null;
1175: else
1176: fnd_adg_utility.disable_control_cache(l_cache_state);
1177: return;
1178: end if;
1179:
1180: -- If someone tries to insert nulls we just ignore the row as

Line 1186: fnd_adg_utility.disable_control_cache(l_cache_state);

1182:
1183: if ( p_program_application_id is null or
1184: p_concurrent_program_id is null )
1185: then
1186: fnd_adg_utility.disable_control_cache(l_cache_state);
1187: return;
1188: end if;
1189:
1190: l_cp_rec := get_conc_program_rec(p_program_application_id,

Line 1197: fnd_adg_utility.disable_control_cache(l_cache_state);

1193: if ( l_cp_rec.Application_Id is null and
1194: l_cp_rec.Concurrent_Program_Id is null ) -- concurrent program doesn't
1195: -- exist - can't happen!
1196: then
1197: fnd_adg_utility.disable_control_cache(l_cache_state);
1198: return;
1199: end if;
1200:
1201: -- Now the real processing starts.

Line 1219: fnd_adg_utility.process_adg_violations(false,

1215: -- never executed.
1216:
1217: if ( not is_standalone_executable(l_cp_rec) )
1218: then
1219: fnd_adg_utility.process_adg_violations(false,
1220: p_program_application_id,
1221: p_concurrent_program_id);
1222:
1223: l_cp_rec := get_conc_program_rec(p_program_application_id,

Line 1236: fnd_adg_utility.disable_control_cache(l_cache_state);

1232: then
1233: update_conc_program_rec(l_cp_rec,l_cp_chng_rec);
1234: end if;
1235:
1236: fnd_adg_utility.disable_control_cache(l_cache_state);
1237:
1238: exception
1239: when others then
1240: fnd_adg_utility.disable_control_cache(l_cache_state);

Line 1240: fnd_adg_utility.disable_control_cache(l_cache_state);

1236: fnd_adg_utility.disable_control_cache(l_cache_state);
1237:
1238: exception
1239: when others then
1240: fnd_adg_utility.disable_control_cache(l_cache_state);
1241: raise;
1242:
1243: end;
1244:

Line 1267: l_access_code := fnd_adg_utility.get_program_access_code;

1263: l_cp_chng_rec fnd_adg_concurrent_program%rowtype;
1264: l_cp_rec fnd_adg_concurrent_program%rowtype;
1265: begin
1266:
1267: l_access_code := fnd_adg_utility.get_program_access_code;
1268:
1269: if ( p_code is null or l_access_code is null or p_code <> l_access_code )
1270: then
1271: fnd_adg_exception.raise_error(