The following lines contain the word 'select', 'insert', 'update' or 'delete':
'as select event_time, event_data, event_tag_id device_source, ' ||
'device_name, 192 quality_code from edg_event_vw@';
'select systimestamp event_time, ' ||
'null event_data, ' ||
'null device_source, ' ||
'null device_name from dual';
EXECUTE IMMEDIATE 'select 1 from edg_event_vw@' || p_dblink_name || ' where rownum = 1' INTO l_chk;
' SELECT TO_TIMESTAMP_TZ(event_time) event_time, ' ||
' event_data, ' ||
' device_source, ' ||
' device_name, ' ||
' quality_code ' ||
'FROM qa_device_data_values';
'select systimestamp event_time, ' ||
'null event_data, ' ||
'null device_source, ' ||
'null device_name from dual';
-- If third party OPC server is selected, revert the view to its original state.
create_opc_view;