0 Replies Latest reply on Mar 14, 2018 4:57 AM by Jagadeesh-Oracle

    zero byte file is generated, before REL opens the control file

    Jagadeesh-Oracle

      Hello,

      In the scenario where zero byte file is generated, before REL application opens the control file for reading the file size is printed as 496 bytes indicating

      that the interim control file contains data. However the Java API  (BufferedReader.readLine()

      https://docs.oracle.com/javase/7/docs/api/java/io/BufferedReader.html#readLine())to read each line from the file is returning "null" for the first line.

      This causes the output file to be generated with zero bytes.

      ============

      Warning 01/21/18 7:46:56:0773 AM ( 1516510016773 )  T:Thread-126 REL IREL

      2:u1brmcmdm01:UnknownProgramName:0:Thread-126:1:1516510016:0:root.0.0.0.1:::

      setupSqlLdrControlFiles: In CTRL file : susp_usage_telco_info_t.ctl size : 496

      Warning 01/21/18 7:46:56:0773 AM ( 1516510016773 )  T:Thread-126 REL IREL

      2:u1brmcmdm01:UnknownProgramName:0:Thread-126:1:1516510016:0:root.0.0.0.1:::

      setupSqlLdrControlFiles: Out CTRL file : /app/BRM/opt/portal/7.5/apps/pin_rel/data_create_roam_gsm_20180120065023030.susp.bc.tmp.susp_usage_telco_info_t.ctl size : 0

      ===========================

      Eg( zero byte .ctl files)

      -rw-rw-r--. 1 brmadmin brmadmin    0 Sep 27 08:32 data_20170927083229812.susp.bc.tmp.susp_usage_telco_info_t.ctl

      -rw-rw-r--. 1 brmadmin brmadmin    0 Sep 27 08:32 data_20170927083240957.susp.bc.tmp.susp_usage_telco_info_t.ctl

       

      Java version : (/jdk1.7.0_79) 64 bit

       

      Do you know how to avoid zero bytes file created in the above case?

       

      Regards,

      Jagadeesh