Help to optimize file load (clobs involved) via pl/sql

Hello.
I have written a procedure that loads a table from a file, this table has five clob columns and the file has 7024 rows (which means 5*7024 clobs are loaded in the table). Every record in the file ends in "\r\n\r\n" (I mean chr(13)||chr(10)||chr(13)||chr(10))
The complete load of the file has taken around 5 hours, I wonder if the procedure can be optimized as I am new to the dmbs_lob package.
The procuedure is called carga_t_pets_respuestas_emisor and belongs to a package called carga_tablas.
I load the whole file in a temporary clob and then I get every line into another temporary clob (I look for the end of record separator (chr(13)||chr(10)||chr(13)||chr(10)) for each line).
Here I post the whole body of tha package (the code is long because the table has 25 columns, but the treatement is the same for every column):
CREATE OR REPLACE PACKAGE BODY MAPV4_MIGRATION.carga_tablas
AS
   NAME:       CARGA_TABLAS
   PURPOSE:
   REVISIONS:
   Ver        Date        Author           Description
   1.0        07/12/2009             1. Created this package.
   PROCEDURE tratar_linea (
      p_lin     IN       CLOB,
      contlin   IN       INTEGER,
      p_log     IN       UTL_FILE.file_type,
      msg       IN OUT   VARCHAR2
   IS
      v_id_peticion                    t_peticiones_respuestas_emisor.id_peticion%TYPE;
      v_id_transaccion                 t_peticiones_respuestas_emisor.id_transaccion%TYPE;
      v_fecha_recepcion                VARCHAR2 (50);
      v_cod_certificado                t_peticiones_respuestas_emisor.cod_certificado%TYPE;
      v_cif_requirente                 t_peticiones_respuestas_emisor.cif_requirente%TYPE;
      v_num_elementos                  t_peticiones_respuestas_emisor.num_elementos%TYPE;
      v_fichero_peticion               t_peticiones_respuestas_emisor.fichero_peticion%TYPE;
      v_ter                            t_peticiones_respuestas_emisor.ter%TYPE;
      v_fecha_ini_proceso              VARCHAR2 (50);
      v_fecha_fin_proceso              VARCHAR2 (50);
      v_fichero_respuesta              t_peticiones_respuestas_emisor.fichero_respuesta%TYPE;
      v_cn                             t_peticiones_respuestas_emisor.cn%TYPE;
      v_contador_enviados              t_peticiones_respuestas_emisor.contador_enviados%TYPE;
      v_signature                      t_peticiones_respuestas_emisor.signature%TYPE;
      v_caducidad                      VARCHAR2 (50);
      v_descompuesta                   t_peticiones_respuestas_emisor.descompuesta%TYPE;
      v_estado                         t_peticiones_respuestas_emisor.estado%TYPE;
      v_error                          t_peticiones_respuestas_emisor.error%TYPE;
      v_cod_municipio_volante          t_peticiones_respuestas_emisor.cod_municipio_volante%TYPE;
      v_peticion_solicitud_respuesta   t_peticiones_respuestas_emisor.peticion_solicitud_respuesta%TYPE;
      v_id_fabricante_ve               t_peticiones_respuestas_emisor.id_fabricante_ve%TYPE;
      v_fecha_respuesta                VARCHAR2 (50);
      v_codigo_error                   t_peticiones_respuestas_emisor.codigo_error%TYPE;
      v_serial                         t_peticiones_respuestas_emisor.serial%TYPE;
      v_inicio_col                     INTEGER;
      v_fin_col                        INTEGER;
      v_timestamp_format               VARCHAR2 (50)
                                                   := 'yyyy-mm-dd hh24:mi:ss';
   BEGIN
      UTL_FILE.put_line (p_log, 'INICIO tratar_linea');
      -- Columna ID_PETICION
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', 1, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', 1, 1) - 1;
      UTL_FILE.put_line (p_log,
                            'v_inicio_col: '
                         || v_inicio_col
                         || '; v_fin_col: '
                         || v_fin_col
      UTL_FILE.fflush (p_log);
      v_id_peticion :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_id_peticion: ' || v_id_peticion);
      UTL_FILE.fflush (p_log);
      -- Columna ID_TRANSACCION
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_id_transaccion :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_id_transaccion: ' || v_id_transaccion);
      UTL_FILE.fflush (p_log);
      -- Columna FECHA_RECEPCION
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_fecha_recepcion :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_fecha_recepcion: ' || v_fecha_recepcion);
      UTL_FILE.fflush (p_log);
      -- Columna COD_CERTIFICADO
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_cod_certificado :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_cod_certificado: ' || v_cod_certificado);
      UTL_FILE.fflush (p_log);
      -- Columna CIF_REQUIRENTE
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_cif_requirente :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_cif_requirente: ' || v_cif_requirente);
      UTL_FILE.fflush (p_log);
      -- Columna NUM_ELEMENTOS
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_num_elementos :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_num_elementos: ' || v_num_elementos);
      UTL_FILE.fflush (p_log);
      -- Columna FICHERO_PETICION
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_fichero_peticion :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log,
                            'Longitud v_fichero_peticion: '
                         || DBMS_LOB.getlength (v_fichero_peticion)
      UTL_FILE.fflush (p_log);
      --UTL_FILE.put_line (p_log, 'v_fichero_peticion: ' || v_fichero_peticion);
      -- Columna TER
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_ter :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_ter: ' || v_ter);
      UTL_FILE.fflush (p_log);
      -- Columna FECHA_INI_PROCESO
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_fecha_ini_proceso :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log,
                         'v_fecha_ini_proceso: ' || v_fecha_ini_proceso);
      UTL_FILE.fflush (p_log);
      -- Columna FECHA_FIN_PROCESO
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_fecha_fin_proceso :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log,
                         'v_fecha_fin_proceso: ' || v_fecha_fin_proceso);
      UTL_FILE.fflush (p_log);
      -- Columna FICHERO_RESPUESTA
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_fichero_respuesta :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log,
                            'Longitud v_fichero_respuesta: '
                         || DBMS_LOB.getlength (v_fichero_respuesta)
      UTL_FILE.fflush (p_log);
      --UTL_FILE.put_line (p_log,
      --                   'v_fichero_respuesta: ' || v_fichero_respuesta);
      -- Columna CN
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_cn :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_cn: ' || v_cn);
      UTL_FILE.fflush (p_log);
      -- Columna CONTADOR_ENVIADOS
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_contador_enviados :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log,
                         'v_CONTADOR_ENVIADOS: ' || v_contador_enviados);
      UTL_FILE.fflush (p_log);
      -- Columna SIGNATURE
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_signature :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log,
                            'Longitud v_signature: '
                         || DBMS_LOB.getlength (v_signature)
      UTL_FILE.fflush (p_log);
      --UTL_FILE.put_line (p_log, 'v_SIGNATURE: ' || v_signature);
      -- Columna CADUCIDAD
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_caducidad :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_CADUCIDAD: ' || v_caducidad);
      UTL_FILE.fflush (p_log);
      -- Columna DESCOMPUESTA
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_descompuesta :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_DESCOMPUESTA: ' || v_descompuesta);
      UTL_FILE.fflush (p_log);
      -- Columna ESTADO
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_estado :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_ESTADO: ' || v_estado);
      UTL_FILE.fflush (p_log);
      -- Columna ERROR
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_error :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log,
                         'Longitud v_ERROR: ' || DBMS_LOB.getlength (v_error)
      UTL_FILE.fflush (p_log);
      --UTL_FILE.put_line (p_log, 'v_ERROR: ' || v_error);
      -- Columna COD_MUNICIPIO_VOLANTE
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_cod_municipio_volante :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log,
                         'v_COD_MUNICIPIO_VOLANTE: '
                         || v_cod_municipio_volante
      UTL_FILE.fflush (p_log);
      -- Columna PETICION_SOLICITUD_RESPUESTA
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_peticion_solicitud_respuesta :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log,
                            'Longitud v_PETICION_SOLICITUD_RESPUESTA: '
                         || DBMS_LOB.getlength (v_peticion_solicitud_respuesta)
      UTL_FILE.fflush (p_log);
      --UTL_FILE.put_line (p_log,
      --                      'v_PETICION_SOLICITUD_RESPUESTA: '
      --                   || v_peticion_solicitud_respuesta
      -- Columna ID_FABRICANTE_VE
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_id_fabricante_ve :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_ID_FABRICANTE_VE: ' || v_id_fabricante_ve);
      UTL_FILE.fflush (p_log);
      -- Columna FECHA_RESPUESTA
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_fecha_respuesta :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_FECHA_RESPUESTA: ' || v_fecha_respuesta);
      UTL_FILE.fflush (p_log);
      -- Columna CODIGO_ERROR
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_codigo_error :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_CODIGO_ERROR: ' || v_codigo_error);
      -- Columna SERIAL
      UTL_FILE.fflush (p_log);
      v_inicio_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 1) + 1;
      --La ultima columna puede no llevar '",' sino '"'
      --v_fin_col := DBMS_LOB.INSTR (p_lin, '",', v_fin_col + 2, 1) - 1;
      v_fin_col := DBMS_LOB.INSTR (p_lin, '"', v_fin_col + 2, 2) - 1;
      --DBMS_OUTPUT.put_line (   'v_inicio_col: '
      --                      || v_inicio_col
      --                      || '; v_fin_col: '
      --                      || v_fin_col
      v_serial :=
           DBMS_LOB.SUBSTR (p_lin, v_fin_col - v_inicio_col + 1, v_inicio_col);
      UTL_FILE.put_line (p_log, 'v_SERIAL: ' || v_serial);
      UTL_FILE.fflush (p_log);
      -- Insercion en tabla
      INSERT INTO t_histo_ptcions_rspstas_emisor
                  (id_peticion, id_transaccion,
                   fecha_recepcion,
                   cod_certificado, cif_requirente, num_elementos,
                   fichero_peticion, ter,
                   fecha_ini_proceso,
                   fecha_fin_proceso,
                   fichero_respuesta, cn, contador_enviados,
                   signature,
                   caducidad,
                   descompuesta, estado, error,
                   cod_municipio_volante, peticion_solicitud_respuesta,
                   id_fabricante_ve,
                   fecha_respuesta,
                   codigo_error, serial
           VALUES (v_id_peticion, v_id_transaccion,
                   TO_TIMESTAMP (v_fecha_recepcion, v_timestamp_format),
                   v_cod_certificado, v_cif_requirente, v_num_elementos,
                   v_fichero_peticion, v_ter,
                   TO_TIMESTAMP (v_fecha_ini_proceso, v_timestamp_format),
                   TO_TIMESTAMP (v_fecha_fin_proceso, v_timestamp_format),
                   v_fichero_respuesta, v_cn, v_contador_enviados,
                   v_signature,
                   TO_TIMESTAMP (v_caducidad, v_timestamp_format),
                   v_descompuesta, v_estado, v_error,
                   v_cod_municipio_volante, v_peticion_solicitud_respuesta,
                   v_id_fabricante_ve,
                   TO_TIMESTAMP (v_fecha_respuesta, v_timestamp_format),
                   v_codigo_error, v_serial
      -- Se valida la transaccion
      --COMMIT;
      UTL_FILE.put_line (p_log, 'FIN tratar_linea');
   EXCEPTION
      WHEN OTHERS
      THEN
         msg := SQLERRM;
         --ROLLBACK;
         RAISE;
   END;
   PROCEDURE carga_t_pets_respuestas_emisor (
      p_dir        IN       VARCHAR2,
      p_filename   IN       VARCHAR2,
      p_os         IN       VARCHAR2,
      msg          OUT      VARCHAR2
   IS
      no_fin_linea     EXCEPTION;
      v_srcfile        BFILE;
      v_tmpclob        CLOB;
      v_warning        INTEGER;
      v_dest_offset    INTEGER            := 1;
      v_src_offset     INTEGER            := 1;
      v_lang           INTEGER            := 0;
      posfinlinea      NUMBER;
      posiniciolinea   NUMBER;
      cad              VARCHAR2 (30000);
      v_lin            CLOB;
      v_tamfich        NUMBER;
      contlin          INTEGER            := 0;
      v_log            UTL_FILE.file_type;
   BEGIN
      msg := NULL;
      -- abrimos el log
      v_log :=
            UTL_FILE.fopen (p_dir, 'carga_t_pets_respuestas_emisor.log', 'w');
      UTL_FILE.put_line (v_log, 'INICIO carga_t_pets_respuestas_emisor');
      UTL_FILE.fflush (v_log);
      v_srcfile := BFILENAME (p_dir, p_filename);
      DBMS_LOB.createtemporary (v_tmpclob, TRUE, DBMS_LOB.CALL);
      DBMS_LOB.OPEN (v_srcfile);
      DBMS_LOB.loadclobfromfile (dest_lob          => v_tmpclob,
                                 src_bfile         => v_srcfile,
                                 amount            => DBMS_LOB.lobmaxsize,
                                 dest_offset       => v_dest_offset,
                                 src_offset        => v_src_offset,
                                 bfile_csid        => 0,
                                 lang_context      => v_lang,
                                 warning           => v_warning
      -- Una vez cargado el CLOB se puede cerrar el BFILE
      DBMS_LOB.CLOSE (v_srcfile);
      v_tamfich := DBMS_LOB.getlength (v_tmpclob);
      --DBMS_OUTPUT.put_line ('v_tamfich: ' || v_tamfich);
      UTL_FILE.put_line (v_log, 'v_tamfich: ' || v_tamfich);
      UTL_FILE.fflush (v_log);
      posfinlinea := 0;
      posiniciolinea := posfinlinea + 1;
      -- Despreciamos el último fin de linea (tiene que existir)
      IF (UPPER (p_os) = 'WINDOWS')
      THEN
         v_tamfich := v_tamfich - 4;
      ELSE
         v_tamfich := v_tamfich - 2;
      END IF;
      contlin := 1;
      WHILE (v_tamfich + 1 - posfinlinea > 0)
      LOOP
         --contlin := contlin + 1;
         IF (UPPER (p_os) = 'WINDOWS')
         THEN
            posfinlinea :=
               DBMS_LOB.INSTR (v_tmpclob,
                               CHR (13) || CHR (10) || CHR (13) || CHR (10),
                               posiniciolinea
         ELSE
            posfinlinea :=
               DBMS_LOB.INSTR (v_tmpclob, CHR (13) || CHR (13),
                               posiniciolinea);
         END IF;
         IF (posfinlinea = 0)
         THEN
            RAISE no_fin_linea;
         END IF;
         --DBMS_OUTPUT.put_line ('posfinlinea: ' || posfinlinea);
         UTL_FILE.put_line (v_log, 'posfinlinea: ' || posfinlinea);
         UTL_FILE.fflush (v_log);
         IF (DBMS_LOB.getlength (v_lin) != 0)
         THEN
            DBMS_LOB.freetemporary (v_lin);
            UTL_FILE.put_line (v_log,
                               'Se ha reinicializado el temporary clob v_lin'
            UTL_FILE.fflush (v_log);
         END IF;
         DBMS_LOB.createtemporary (v_lin, TRUE, DBMS_LOB.CALL);
         DBMS_LOB.COPY (dest_lob         => v_lin,
                        src_lob          => v_tmpclob,
                        amount           => posfinlinea,
                        dest_offset      => 1,
                        src_offset       => posiniciolinea
-- Tratamos la linea
--DBMS_OUTPUT.put_line
         UTL_FILE.put_line
            (v_log,
         UTL_FILE.fflush (v_log);
         tratar_linea (v_lin, contlin, v_log, msg);
         posiniciolinea := posfinlinea + 1;
         contlin := contlin + 1;
         --DBMS_OUTPUT.put_line ('posiniciolinea: ' || posiniciolinea);
         UTL_FILE.put_line (v_log, 'posiniciolinea: ' || posiniciolinea);
         UTL_FILE.fflush (v_log);
      END LOOP;
      -- Se valida la transaccion
      COMMIT;
      --Se cierra el fichero
      --DBMS_LOB.CLOSE (v_srcfile);
      DBMS_LOB.freetemporary (v_tmpclob);
      UTL_FILE.put_line (v_log, 'FIN carga_t_pets_respuestas_emisor');
      UTL_FILE.fclose (v_log);
   EXCEPTION
      WHEN no_fin_linea
      THEN
         ROLLBACK;
         msg := 'Fichero mal formateado, no se encuentra el fin de linea';
         IF (DBMS_LOB.ISOPEN (v_srcfile) = 1)
         THEN
            DBMS_LOB.fileclose (v_srcfile);
         END IF;
         IF UTL_FILE.is_open (v_log)
         THEN
            UTL_FILE.fclose (v_log);
         END IF;
      WHEN OTHERS
      THEN
         ROLLBACK;
         msg := SQLERRM;
         IF (DBMS_LOB.ISOPEN (v_srcfile) = 1)
         THEN
            DBMS_LOB.fileclose (v_srcfile);
         END IF;
         IF UTL_FILE.is_open (v_log)
         THEN
            UTL_FILE.fclose (v_log);
         END IF;
   END carga_t_pets_respuestas_emisor;
END carga_tablas;
/Thanks in advance.

Thank you again for answering.
I am reading from the file in the procedure carga_t_pets_respuestas_emisor I posted above (the procedure is able to load the whole file in the table but takes very long).
What I am doing is loading the whole file in a BFILE and then loading it in a CLOB variable using loadclobfromfile (it is not taking very long because I can see that early in the log):
      v_srcfile := BFILENAME (p_dir, p_filename);
      DBMS_LOB.createtemporary (v_tmpclob, TRUE, DBMS_LOB.CALL);
      DBMS_LOB.OPEN (v_srcfile);
      DBMS_LOB.loadclobfromfile (dest_lob          => v_tmpclob,
                                 src_bfile         => v_srcfile,
                                 amount            => DBMS_LOB.lobmaxsize,
                                 dest_offset       => v_dest_offset,
                                 src_offset        => v_src_offset,
                                 bfile_csid        => 0,
                                 lang_context      => v_lang,
                                 warning           => v_warning
                                );Then I read in a loop all the records (I cannot call them lines because the CLOB columns can contain line feeds) from the file and load them it in another CLOB variable:
WHILE (v_tamfich + 1 - posfinlinea > 0)
      LOOP
         --contlin := contlin + 1;
         IF (UPPER (p_os) = 'WINDOWS')
         THEN
            posfinlinea :=
               DBMS_LOB.INSTR (v_tmpclob,
                               CHR (13) || CHR (10) || CHR (13) || CHR (10),
                               posiniciolinea
         ELSE
            posfinlinea :=
               DBMS_LOB.INSTR (v_tmpclob, CHR (13) || CHR (13),
                               posiniciolinea);
         END IF;
         IF (posfinlinea = 0)
         THEN
            RAISE no_fin_linea;
         END IF;
         --DBMS_OUTPUT.put_line ('posfinlinea: ' || posfinlinea);
         UTL_FILE.put_line (v_log, 'posfinlinea: ' || posfinlinea);
         UTL_FILE.fflush (v_log);
         IF (DBMS_LOB.getlength (v_lin) != 0)
         THEN
            DBMS_LOB.freetemporary (v_lin);
            UTL_FILE.put_line (v_log,
                               'Se ha reinicializado el temporary clob v_lin'
            UTL_FILE.fflush (v_log);
         END IF;
         DBMS_LOB.createtemporary (v_lin, TRUE, DBMS_LOB.CALL);
         DBMS_LOB.COPY (dest_lob         => v_lin,
                        src_lob          => v_tmpclob,
                        amount           => posfinlinea,
                        dest_offset      => 1,
                        src_offset       => posiniciolinea
-- Tratamos la linea
--DBMS_OUTPUT.put_line
         UTL_FILE.put_line
            (v_log,
         UTL_FILE.fflush (v_log);
         tratar_linea (v_lin, contlin, v_log, msg);
         posiniciolinea := posfinlinea + 1;
         contlin := contlin + 1;
         --DBMS_OUTPUT.put_line ('posiniciolinea: ' || posiniciolinea);
         UTL_FILE.put_line (v_log, 'posiniciolinea: ' || posiniciolinea);
         UTL_FILE.fflush (v_log);
      END LOOP;(I have also loaded the whole file using sql*loader, but I have asked to try to do it with pl/sql)
Thanks again and regards.

Similar Messages

  • Load data from File on Client side (via Sqlplus)

    Server OS: RedHat, Oracle 10g rel 2.
    I am trying to load data from OS .txt files to clob field.
    I am able to do this successfully using:
    Oracle DIRECTORY
    BFILE
    DBMS_LOB.loadclobfromfile packageIssue is: this only works if my files and DIR are on database server.
    Is it not possible "load clob from file" from client side, files being on client and exec command via SQLPlus. Is there any other option to load data from client side.
    Thanks for any help.

    Options:
    1) Search for OraDAV
    2) Learn about Application Express.

  • Loading attribute data via data source and file

    Hi gurus,
    My issue is that when I load excel file(2-column: matnr and werks) and load to master data via IP and DTP. After successful upload all available attriubute values which are retrieved from 0material_attr are gone away. Maybe deleted somehow.
    This is my issue.
    Can you help me which is the method loading some columns via sap extractor and one lıne via excel upload?
    Thanks.
    Eddy.

    Hello Eddy,
    I believe, the reason of getting your old data removing might be you are using the Full Upload via the Excel. In that recent excel you are not haviing the old records .
    Check the files and as suggested by raman ,if you have any changes in your master data then better to make delta relevant data source.
    Hope this helps !
    Regards
    YN

  • HELP! Images not loading and Firefox taskbar icon is a white file.

    I went through all the suggestions in the image not loading help page and same with the add ins and nothing helping. The images load fine on Google Chrome so I know it's not the site. It might just be Adobe Flash images, but that's as far as I know how to pinpoint.
    As far as the task bar goes, it's just a while file icon instead of the Firefox one. It doesn't bother me, but I just thought it might be related.
    I'd appreciate any help! Anybody! Thanks,
    Stef

    What do you see if you right-click the area where such a missing image should be?
    Is that a context menu for images with "View Image Info"?
    Are there any icons on the location bar that plugins are used or mixed content is blocked?
    If images are missing then check that you do not block images from some domains.
    *Press the F10 key or tap the Alt key to bring up the hidden Menu bar.
    Check the permissions for the domain in the currently selected tab in "Tools > Page Info > Permissions"
    Check "Tools > Page Info > Media" for blocked images
    *Select the first image link and use the cursor Down key to scroll through the list.
    *If an image in the list is grayed and "<i>Block Images from...</i>" has a checkmark then remove this checkmark to unblock images from this domain.
    Make sure that you do not block (third-party) images, the <b>permissions.default.image</b> pref on the <b>about:config</b> page should be 1.
    Make sure that you haven't enabled a High Contrast theme in the Windows/Mac Accessibility settings.
    Make sure that you allow pages to choose their own colors.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    Note that these settings affect background images.
    See also:
    *http://kb.mozillazine.org/Website_colors_are_wrong
    There are extensions like Adblock Plus (Firefox/Tools > Add-ons > Extensions) and security software (firewall, anti-virus) that can block images and other content.
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *http://kb.mozillazine.org/Websites_look_wrong

  • Loading factory calendar via flat file

    Hi,
    I need to create a new non standard factory calendar to help us to schedule loading to our SAP BW system. I need to know if there is any standard programm that load special rules for a calendar or I can´t help creating the entries manually.
    Is there anybody who can help me with this topic?
    Thanks in advance.
    Jorge Porca

    I think you can only use transaction SCAL (if you don't want to use the upload settings from source system function)...
    Here you can define a factory calendar including the relevant public holiday calendar:
    1. Double-click with the mouse on "Execute function", select the option Public holiday calendar and choose the functionDisplay.
    2. In calendar maintenance, select the option "Factory calendar", and choose the function Change.
    3. Choose the function Insert and make the following entries:
    Factory calendar ID and a descriptive short text
    Period of validity (From year, To year)
    Public holiday calendar ID
    Start no. factory date
    Number from which the factory date is incremented for each workday.
    If you do not make an entry, the default value is "0".
    4. Decide which days of the week are meant to be workdays.
    5. Define special rules if necessary (e.g. plant holidays).
    I don't think that a std pgm exists to upload all these info from a flat file...
    Hope it helps!
    Bye,
    Roberto

  • File to R/3 via Abap proxy -- need help

    Hello,
    I have made a scenario File to R/3 via Abap Proxy
    My Inbound Async Message Interface has Message Type -Emp_Rac_Detail_MT.
    Message Type has structure
    EmpID
    EmpName
    Age
    I have table in R/3 ZRACTABLE where I need to post data
    Fields in ZRACTABLE are
    EMPID
    EMPNAME
    AGE1
    Pls send me the code that I need to write in Async Method of Proxy
    that will put data
    Regards

    Hi Herry,
    First of all u have to write a Function module in R/3 ....for that i given u the code above.
    Now in ur inbount proxy in the implementation class u have to write code right???
    Here is the code...
    **** INSERT IMPLEMENTATION HERE **** ***
    DATA:
    lv_EMPID type EMPID,
    lv_EMPNAME type EMPNAME,
    lv_AGE type AGE.
    Convert Input Parameters
    lv_EMPID        =  input-Emp_Rac_Detail_MT-EMPID.
    lv_EMPNAME      =  input-Emp_Rac_Detail_MT-EMPNAME.
    lv_AGE          =  input-Emp_Rac_Detail_MT-AGE.
    call function 'ZEMP_RAC_FM'             /** thats ur function module name **/
        EXPORTING
        EMPID       =  lv_EMPID .
        EMPNAME     =  lv_EMPNAME.
        AGE         =  lv_AGE.
    endmethod.
    Regards
    biplab
    <i>*** give points if it hepls you!!!</i>

  • SQL Loader CLOBs

    I am moving data from an oracle 10g table to another oracle 10g table, transforming the data in Access, filtering records, merging fields, etc.., then via Access VBA creating CTL files and neccessary scripts, then loading the data via SQL Loader. Getting the CLOBs to load is not a problem, getting it to load with the formatting is. The records in the control file look fine, the formatting is kept just fine in the CTL file, but when it is loaded all the carriage returns, line feeds, etc are removed
    Here is the header of my CTL file:
    LOAD DATA
    INFILE *
    CONTINUEIF LAST != "|"
    INTO TABLE table_name
    APPEND
    FIELDS TERMINATED BY '||' TRAILING NULLCOLS
    (field1, field2, field3....etc)
    begindata
    field1||field2||field3||fieldx|
    At first i thought taking out the TRAILING NULLCOLS would help but i get the same result.
    The end result i am looking for is keeping the data formatted exactly as it is in the source table.
    Thanks
    Mike

    After doing some research it seems that the only way is creating a file with the clob, see http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_loading.htm#i1007627
    Control File Contents:LOAD DATA
    INFILE 'sample.dat'
    INTO TABLE person_table
    FIELDS TERMINATED BY ','
    (name CHAR(20),
    ext_fname FILLER CHAR(40),
    "RESUME" LOBFILE(ext_fname) TERMINATED BY EOF)
    Datafile (sample.dat):
    Johny Quest,jqresume.txt,
    Speed Racer,'/private/sracer/srresume.txt',
    Secondary Datafile (jqresume.txt):
    Johny Quest,479 Johny Quest
    500 Oracle Parkway
    [email protected]>
    HTH
    Enrique

  • Optimization on Load Time (Large Images and Sounds)

    Hi,
    I have an all flash website that works by having each portion of it to load and unload in the center of a frame based off the navigation chosen.  Load times on everything but one part of my site are ok.
    The dimensions of the part inside the frame are 968x674.  I know that's relatively large for a flash file, but that can't be changed at this point.
    Within the page there are objects that come up when you find an item on the screen.  Its a dialog box and it shows text, an image, and has a voice over that reads what the text says.  After you're done looking at it, there is an x-button to dismiss the window.  There are 15 of these and they are exported to the actionscript.  I add them in the actionscript via addChild.  I figured this is a huge spot that could be reconfigured, but I'm not sure if it would make much a difference.
    The other huge thing is there is a ton on the screen.  It starts you off in an environment, and when you click 3 different sections, it zooms into that portion allowing you to look for the items you're trying to find.
    There is also a man that talks and animates in the beginning and at the end.  We are planning on taking out the end part and putting a text box up.
    Here is the website..  its a propane safety site for kids.  I know its kind of a weird idea, but it works and people seem to like it.
    www.propanekids.com
    The two parts of the site we are trying to optimize is the main menu when you first are at the site, and the "Explore" section.  (Just click on the cloud on the front page.
    If someone could take the time to give me some new ideas of how I can get these loading times down, I would greatly appreciate it!
    Thanks

    Ok, who ever posted this message is hacking me  and i can't believe you guys are helping
    Date: Thu, 27 Jan 2011 11:07:28 -0700
    From: [email protected]
    To: [email protected]
    Subject: Optimization on Load Time (Large Images and Sounds)
    Hi,
    I have an all flash website that works by having each portion of it to load and unload in the center of a frame based off the navigation chosen.  Load times on everything but one part of my site are ok.
    The dimensions of the part inside the frame are 968x674.  I know that's relatively large for a flash file, but that can't be changed at this point.
    Within the page there are objects that come up when you find an item on the screen.  Its a dialog box and it shows text, an image, and has a voice over that reads what the text says.  After you're done looking at it, there is an x-button to dismiss the window.  There are 15 of these and they are exported to the actionscript.  I add them in the actionscript via addChild.  I figured this is a huge spot that could be reconfigured, but I'm not sure if it would make much a difference.
    The other huge thing is there is a ton on the screen.  It starts you off in an environment, and when you click 3 different sections, it zooms into that portion allowing you to look for the items you're trying to find.
    There is also a man that talks and animates in the beginning and at the end.  We are planning on taking out the end part and putting a text box up.
    Here is the website..  its a propane safety site for kids.  I know its kind of a weird idea, but it works and people seem to like it.
    http://www.propanekids.com
    The two parts of the site we are trying to optimize is the main menu when you first are at the site, and the "Explore" section.  (Just click on the cloud on the front page.
    If someone could take the time to give me some new ideas of how I can get these loading times down, I would greatly appreciate it!
    Thanks
    >

  • How to read/write .CSV file into CLOB column in a table of Oracle 10g

    I have a requirement which is nothing but a table has two column
    create table emp_data (empid number, report clob)
    Here REPORT column is CLOB data type which used to load the data from the .csv file.
    The requirement here is
    1) How to load data from .CSV file into CLOB column along with empid using DBMS_lob utility
    2) How to read report columns which should return all the columns present in the .CSV file (dynamically because every csv file may have different number of columns) along with the primariy key empid).
    eg: empid report_field1 report_field2
    1 x y
    Any help would be appreciated.

    If I understand you right, you want each row in your table to contain an emp_id and the complete text of a multi-record .csv file.
    It's not clear how you relate emp_id to the appropriate file to be read. Is the emp_id stored in the csv file?
    To read the file, you can use functions from [UTL_FILE|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#BABGGEDF] (as long as the file is in a directory accessible to the Oracle server):
    declare
        lt_report_clob CLOB;
        l_max_line_length integer := 1024;   -- set as high as the longest line in your file
        l_infile UTL_FILE.file_type;
        l_buffer varchar2(1024);
        l_emp_id report_table.emp_id%type := 123; -- not clear where emp_id comes from
        l_filename varchar2(200) := 'my_file_name.csv';   -- get this from somewhere
    begin
       -- open the file; we assume an Oracle directory has already been created
        l_infile := utl_file.fopen('CSV_DIRECTORY', l_filename, 'r', l_max_line_length);
        -- initialise the empty clob
        dbms_lob.createtemporary(lt_report_clob, TRUE, DBMS_LOB.session);
        loop
          begin
             utl_file.get_line(l_infile, l_buffer);
             dbms_lob.append(lt_report_clob, l_buffer);
          exception
             when no_data_found then
                 exit;
          end;
        end loop;
        insert into report_table (emp_id, report)
        values (l_emp_id, lt_report_clob);
        -- free the temporary lob
        dbms_lob.freetemporary(lt_report_clob);
       -- close the file
       UTL_FILE.fclose(l_infile);
    end;This simple line-by-line approach is easy to understand, and gives you an opportunity (if you want) to take each line in the file and transform it (for example, you could transform it into a nested table, or into XML). However it can be rather slow if there are many records in the csv file - the lob_append operation is not particularly efficient. I was able to improve the efficiency by caching the lines in a VARCHAR2 up to a maximum cache size, and only then appending to the LOB - see [three posts on my blog|http://preferisco.blogspot.com/search/label/lob].
    There is at least one other possibility:
    - you could use [DBMS_LOB.loadclobfromfile|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#i998978]. I've not tried this before myself, but I think the procedure is described [here in the 9i docs|http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96591/adl12bfl.htm#879711]. This is likely to be faster than UTL_FILE (because it is all happening in the underlying DBMS_LOB package, possibly in a native way).
    That's all for now. I haven't yet answered your question on how to report data back out of the CLOB. I would like to know how you associate employees with files; what happens if there is > 1 file per employee, etc.
    HTH
    Regards Nigel
    Edited by: nthomas on Mar 2, 2009 11:22 AM - don't forget to fclose the file...

  • SQL LOADER: how to load CLOB column using stored function

    Hi,
    I am a newbie of sql loader. Everything seems to be fine until I hit a
    road block - the CLOB column type. I want to load data into the clob
    column using a stored function. I need to do some manipulation on the
    data before it gets saved to that column. But I got this error when I
    run the sql loader.
    SQL*Loader-309: No SQL string allowed as part of "DATA" field
    specification
    DATA is my CLOB type column.
    here is the content of the control file:
    LOAD DATA
    INFILE 'test.csv'
    BADFILE 'test.bad'
    DISCARDFILE 'test.dsc'
    REPLACE
    INTO TABLE test_table
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    codeid          BOUNDFILLER,
    reason          BOUNDFILLER,
    Checkstamp     "to_date(:CHECKSTAMP, 'mm/dd/yyyy')",
    "DATA"          "GetContent(:codeid, :reason)"
    All references are suggesting to use a file to load data on
    CLOB column but I want to use a function in which it generates
    the content to be saved into the column.
    Any help is greatly appreciated.
    Thanks,
    Baldwin
    MISICompany

    *** Duplicate Post ... Please Ignore ***

  • Loading scripts - what's the difference between loading into edge via script window and including a script in the html document?

    I have a html page that loading in two edge compositions and an external custom javascript file. The javacsript file includes the bootstrapCallback so I can store references to the loaded compositions and can communicate with them. This seems to work well. The problem have is when I also try and load in a custom plugin javascript files into the edge compositions via the script window inside edge - I don't understand how this works, for example if I load in a custom javascript file into one of the compositions can only that composition use it's funcitionality? Is loading in scripts via edge script window the same as including in html document, I'm confused how the two relate, please help me understand.

    I have a html page that loading in two edge compositions and an external custom javascript file. The javacsript file includes the bootstrapCallback so I can store references to the loaded compositions and can communicate with them. This seems to work well. The problem have is when I also try and load in a custom plugin javascript files into the edge compositions via the script window inside edge - I don't understand how this works, for example if I load in a custom javascript file into one of the compositions can only that composition use it's funcitionality? Is loading in scripts via edge script window the same as including in html document, I'm confused how the two relate, please help me understand.

  • Place Cursor not showing the (#) number of text files loaded

    Hi all,
    I´m using Indesign CS3, updated to the latest patch availabe, this is 5.0.4. I´m using Windows 7 32b.
    When trying to import text files via File > Place and I select 2 o more text files and click OK, the Place Cursor should show in parenthesis the number of files loaded right?. Well the bizarre issue I´m dealing with is that this (#) doesn´t show up. I can see the little preview of the text to be imported but not the (#) number of text files loaded. If I press the down arrow key on the keyboard the mini text updates and cicles through all the loaded texts. That's fine.
    I wanted to screen capture this issue so I installed Techsmith Snagit 9 on my computer. When I was ready to capture the Place Cursor on Indesign, Snag it captured it showing (2) documents loaded. ???? What´s going on?
    Anyone could explain this issue?
    I´ve already rebuild my Preferences with no luck.
    What I see in Indesign http://img214.imageshack.us/img214/1774/whatiseeinindesign.jpg
    What I see after the screen capture with Snag it 9 http://img299.imageshack.us/img299/6001/screencaptureinsnagit.jpg
    Thanks for your help.
    Francesc.

    I use jdk1.5 on Xp. Ok, I'll check it again

  • How do I consolidate in FDM AFTER all files load to target?

    Hi,
    We are using FDM to import and export out to HFM forecasting data. The files are sent via ETL to the OpenBatch folder and then I am using parallel processing to import, validate, and consolidate the files to the target system, which is HFM. The problem is the performance. As each file is loaded using the batch loader script, it loads and consolidates each file as each file processes. I would like to find a way to load and export all files FIRST to HFM - and then when the last file is encountered (the 12th file), I would like to run a consolidate on the file to HFM so that the consolidation will consolidate all at once and help save some time. Here are the steps I would like to accomplish:
    1. Import, Validate, and Export the first 11 files to HFM
    2. Import, Validate, Export, and Consolidate the 12th file to HFM - the idea is that all previous 11 files will consolidate atone time instead of the out of the box way using the standard BatchLoader script.
    Does anyone know HOW I can make this happen? Out of the box this is not possible without some major script customization. Could someone please give me some sort of idea where I can make this happen? I really appreciate the help. Below is the standard Batch Loader script I am using and I would like to somehow customize:
    Sub webBatchStdParallel()
    'Oracle Hyperion FDM CUSTOM Script:
    'Parallel Processing
    'STANDARD Batch Parallel Processing
    'Declare Local Variables
    Dim lngProcessLevel
    Dim strDelimiter
    Dim blnAutoMapCorrect
    Dim lngParallelProcessCount
    Dim strLoadBalanceServerName
    Dim BATCHENG
    Set BATCHENG = CreateObject("upsWBatchLoaderDM.clsBatchLoader")
    BATCHENG.mInitialize API, SCRIPTENG
    'Initialize variables Variables
    lngProcessLevel = 10                     'Up-To-Consolidate
    strDelimiter = "_"                         'File Name Delimiter
    blnAutoMapCorrect = True                    'Auto Map Correction is On
    lngParallelProcessCount = 2                    'Number of Parallel Processes (Should equal # of Processors)
    strLoadBalanceServerName = "Everest0555"     'Load balance server for parallel process
    'Create the file collection
    Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter))
    'Execute a Standard Parallel batch
    BATCHENG.mFileCollectionProcessParallel BATCHENG.PcolFiles, CLng(lngProcessLevel), CLng(lngParallelProcessCount), CStr(strLoadBalanceServerName), , CBool(blnAutoMapCorrect)
    End Sub

    Hi,
    Thanks for all the input so far, I really appreciate it. I have made a lot of progress and added code to the batch loader script.
    Again, What I am trying to do is load 12 forecasting files (Periodic) for each month through FDM and then load to HFM. After the load, I want to kick off the consolidation process to the target system (HFM) AFTER the data has been loaded through FDM to help speed up time by running the consolidation all at once in HFM instead of by each file one by one in FDM. Here is some more info:
    1. I have 12 files loaded to the OpenBatch Folder - Each file is a monthly file.
    2. The 12 files (Starting from November 2010 - Oct 2011) are exported and loaded to HFM. No consolidation takes place.
    3. I want to add a procedure AFTER the load to run consolidation on the last file loaded (Oct. 2011) in HFM so the consolidation will kick off in HFM and consolidate the remaining months in HFM instead of in FDM. I tested manually and the time is increased 10-fold.
    4. I have potentially identified the "ActConsolidate" Method could be used to run the consolidation in the target system. In my code you can see that I have added the ActConsolidate call AFTER the batch load. I was hoping this would run the consolidation directly in HFM by calling the consolidation in HFM. However, when I run the script I keep getting the following error:
    "91 - Object variable or With block variable not set At Line: 52" Apparently I am not calling or setting the object up correctly. Am I missing something? I sincerely appreciate everyones help and will promise to give big kudos to anyone who can help me along. I am almost there. THis is very difficult for me and I know it's a tough scenario because no one seems to have a solution posted anywhere on this forum.
    Below is my code:
    Sub webBatchStdParallelFcst()
    'Oracle Hyperion FDM Custom Script:
    'Created By:     
    'Date Created:     10/4/2010 9:27:32 AM
    'Purpose:
    'STANDARD Batch Parallel Processing and consolidation - Foresacting
    'Declare Local Variables for Batch Processing
    Dim lngProcessLevel
    Dim strDelimiter
    Dim blnAutoMapCorrect
    Dim lngParallelProcessCount
    Dim strLoadBalanceServerName
    Dim BATCHENG
    Set BATCHENG = CreateObject("upsWBatchLoaderDM.clsBatchLoader")
    BATCHENG.mInitialize API, SCRIPTENG
    'Declare Local Variables for consolidation
    Dim strLoc
    Dim strCat
    Dim strStartPer
    Dim strEndPer
    Dim CONSOLENG
    Set CONSOLENG = CreateObject("upsWBlockProcessorDM.clsBlockProcessor")
    'Initialize variables for Batch Processing
    lngProcessLevel = 8                     'Up-To-Load
    strDelimiter = "_"                    'File Name Delimiter
    blnAutoMapCorrect = True               'Auto Map Correction is On
    lngParallelProcessCount = 2               'Number of Parallel Processes (Should equal # of Processors)
    strLoadBalanceServerName = "everest3105"     'Load balance server for parallel process
    'Initialize ActConsolidate Variables
    strLoc = "FORECAST"
    strCat = "FDMPLAN"
    strStartPer = "Oct - 2011"
    strEndPer = "Nov - 2011"
    'Create the file collection
    Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter))
    'Execute a Standard Parallel batch
    BATCHENG.mFileCollectionProcessParallel BATCHENG.PcolFiles, CLng(lngProcessLevel), CLng(lngParallelProcessCount), CStr(strLoadBalanceServerName), , CBool(blnAutoMapCorrect)
    'Execute Consolidation on Target System
    CONSOLENG.ActConsolidate strLoc, strCat, strStartPer, strEndPer
    End Sub
    However, I am getting the following error: "91 - Object variable or With block variable not set At Line: 52" I don't understand, the objects appear to be set up properly.

  • My Mozilla Firefox Browser v15.0 open then some file loading and my desktop display automatically created folder name is old Firefox data then ask me chose two

    ''duplicate of https://support.mozilla.org/en-US/questions/936244 - locking this one''
    '''My Mozilla Firefox Browser v15.0 open then some file loading and my desktop display automatically created folder name is old Firefox data then ask me chose two option 1st is Safe Mode or 2nd is Restore so i chose Restore and then open Mozilla Firefox Browser page Blank Black display page,
    How can i do solve this error plz plz plz plz help me out what you say troubleshooting,error or issue.'''

    Did you perform a Firefox Reset either by clicking the button on the Help > Troubleshooting Information page or via the Safe mode start window?
    You may have gotten the Safe Mode start window as the result of not being able to start Firefox more than once after crashes.
    See:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.org/kb/Firefox+crashes
    If you have submitted crash reports then please post the IDs of one or more crash reports that have this format:
    *bp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    *You can open the <b>about:crashes</b> page via the location bar, like you open a website.
    See:
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter
    *https://support.mozilla.org/kb/Mozilla+Crash+Reporter
    If you can't open Firefox then see:
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter#Location_of_crash_reports
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter#Viewing_crash_reports
    "Reset" creates a new default profile with a time stamp appended to identify it and tries to recover settings like bookmarks and history and passwords and cookies and auto-fill data from the old profile, but you lose data like extensions and other customizations.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Firefox 15+ versions will move the old profile folder to an "Old Firefox Data-##" folder on the Desktop that gets a number appended if you use reset more than once, so you can no longer use the profile manager to revert to the old profile.

  • MHP Object Carousel - inital file loading and delay/latency

    I have already programmed a number of applications for the MHP and tested them on various receivers/emulators (e.g. ADB i-CAN 3000, Humax CI 8140, MHP4Free (C+S), ..). Usually i put the application class files in the base directory specified in the application location descriptor of the AIT and other files like images or data files in subdirectories in this base directory. There are no references to other OCs via LiteOptionProfile bodies for example. When I actually play out the applications via an OC, the receivers/emulators usually show a small insert that shows the loading status.
    What I am wondering now is what receivers actually load initially when they are inserting "Loading" in the screen. Do receivers load the complete base directory with all subdirectories before autostarting or allowing to the user to start the application via the navigator? Do receivers only load the base directory level? Do receivers initially only load all files that are referenced via BIOPProfile bodies in the IORs? Is this loading behavior implementation dependent? If receivers always load the complete base directory and subdirectories before starting applications, when will I ever recognize delay, except the startup delay, if I am not putting any files outside this base directory in the OC?
    I have to admit that the repetition rate of my carousel was always high in my tests and no other applications were included in the OC. This might explain why I never experienced delay when loading for example images at some point in execution time of the application(s) from some subdirectories, but it does not answer to me what receivers initially exactly load.
    Has anyone ever tested applications where some of the resources where located in different OCs (maybe even on different Transport Streams) referenced by LiteOptionProfile bodies? Does this already work seamlessly with todays 1.0.2 compliant receivers?
    Thanks in advance for answers.

    The receiver will not tune to the new transport stream automativally, so you would have to do this within your app by tuning to the new TS, loading the object and then tuning back to your original TS. During this time, you probably will see a blank screen if you're playing media from the original transport stream. Since you usually want to load more than one object from a carousel, this gets complicated and I don't recommend trying it unless you've got no other choice.
    For your second question, I would say that yes, the transaction ID in the foreign TS should be updated. I don't see anything in the DSM-CC specification or the DVB bata broadcasting specification that explicitly says this, but there is nothing that says this should not happen either. Since this is the behavior in other cases, I would expect it to be the same here.
    For now, I would assume that applications using the Lite Options profile Body in IORs would only refer to carousels in the same transport stream, simply because of the complications involved in tuning to a new TS and getting data that way. The only exception to this may be when the IOR refers to the service gateway of a carousel, but I'm not use how often you'll see this. Until most receivers support multiple tuners, anythng else gets pretty complex and starts to harm the user expereince.
    Steve.

Maybe you are looking for