declare g_commit_count number; cursor cu1 is select gl_flexfields_pkg.get_description_sql(gcc.chart_of_accounts_id, 1, --1 gcc.segment1) company_name, p_com_code company_code, gl.name, gl.description sob_desc, ps.period_year, ps.period_name, to_char(…