create directory DIR_DUMP as '/oradata/data_dump'; CREATE OR REPLACE PROCEDURE anlp_to_txt IS testjiao_handle UTL_FILE.file_type; BEGIN testjiao_handle := UTL_FILE.FOPEN('DIR_DUMP','anlp.txt','w'); FOR x IN (SELECT * FROM sapsr3.ANLP) LOOP UTL_FILE.P…