problems of Whitespace in output flat file

Hello

I wonder if anyone can help me please?

I am trying to wrap a CSV flat (.txt) of a query that will return a very large set of data. The problem I have is that I can't seem to all be on a single line. There are a lot of spaces being brought back into the waiting file layouts and I don't understand how to get rid of. I'm sure that a lot of my set commands are redundant, but I tried everything I can think of to get this effective and get rid of this annoying whitespace.

I am aware that the SQL concatenation is a solution, but I am very eager not to have to add even more coding for an already complex sql query. Is there a way I can get rid of the space and therefore to get my characters per line to a more manageable number?

Here is the code below, lets say, the query returns three fields (emp_id, emp_name, emp_state) and two records (joe bloggs and john smith), I'd like the output in my text file:

emp_id, emp_name, emp_state
1, Botella, Florida,
2, Jean Dupont, texas,

as opposed to what I get now that there's a lot of spaces between the commas (I can't understand how to post here)

could someone please advise? is there a way I can do this without having to concatenate throughout my sql query?

Thank you

Jon
set echo off
set feedback off
set heading on
set linesize 5000
set tab on
set trimspool on
set trim on
set term off
set colsep ,
set headsep ,
Spool C:\Jon_Oracle_Testing\spooltext.txt
@C:\Jon_Oracle_Testing\superquery_031110.sql --big query, around 65 columns and 250,000 rows
spool off;

Hello

If emp_name is VARCHAR2 (50), then

SELECT  emp_id
,     emp_name
,     emp_state
...

exit 50 characters emp_name.

To avoid this padding, you have to say

SELECT        emp_id
|| ',' ||  emp_name
|| ',' ||  emp_state
...

That's probably exactly what you wanted to avoid, but that's what you have to do, at least in SQL * more. (Sorry).
You don't have to "concatenate throughout my sql query", simply concatenate the items in the SELECT clause.

If you do this, it you don't have to SET COLSEP. The result set contains only a single column, so COLSEP will be irrelevant.

Tags: Database

Similar Questions

  • Problem in writing data to flat file

    Hello

    I created a table as the source interface and the file as a target. My interface has been around for a long time, but it's not write data to the file. Any clue?

    -Chikk

    Hello

    Please, take a look if the target file is locked.

    Try to remove and put the 'Truncate' revenge option to yes.

    Cezar

  • The loading table Microsoft Sql serer flat file problem data

    Hi Experts,

    I am trying to load the data from the SQL Server table to the flat file but its errror on.

    I selected the staging of different shape area Targert (I use SQL Server as my sleeping area)
    Knowlegde modue used: IKM SQL to the file Append

    I have the following error reciee
    ODI-1217: Session table to file (124001) fails with return code 7000.
    ODI-1226: step table to file fails after 1 attempt.
    ODI-1240: flow of file fails during an operation of integration. This flow of charge table test target.
    ODI-1227: task table to file (integration) fails on the source of connection MICROSOFT_SQL_SERVER POS_XSTORE.
    Caused by: java.sql.SQLException: could not read file header lines
    to com.sunopsis.jdbc.driver.file.FileResultSet. < init > (FileResultSet.java:164)


    Help, please!

    Thank you
    Prateek

    Hello

    Have you made sure that the CSV file is readable by ODI? What I usually do is to create a CSV file example target with values in it. Once you create the model, right-click and view the data.

    HTH,
    Gerd

  • Data period multi loading flat file to database ASO

    FDM gurus,

    We try to load Plan data for 12 months to an Essbase ASO using FDMEE database.

    We followed the documented specification stage in the format of import for amount (column = < start >, < end >) AND choosing the "multi-period Text file (contiguous period)' in the data load the rule.

    However, the Validation fails even for period dimension he complained of "value without Source for UD3".  {The UD3 in our case is be the period}

    Our record of flat file looks like in below:

    Dim1, Dim2,Dim3,Dim4Dim5,6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12

    Import mappings formats, I also see the dimension of 'period '. Could be the problem? As you know, database planning, it does not show.

    If you'd be grateful if someone could shed some light. Thank you!

    You don't have to specify which version you're on.

    When you set the size of the target Application you set period of your ASO [size target class] cube dimension as period?

    Try and that should remove it from the map area of import Format.

    Let us know how make you out.

    Be sure to mark the response as if it were useful and correct, if it has solved your problem.

  • We can recover a virtual machine of flat files without committing snapshots?

    I have a virtual machine that has died due to having excessive snapshots. "Too many levels of redo logs.

    Can I get out this virtual machine to the top without committing the delta files, IE just use original flat files?

    I tried going through the KB1004545 to solve the problem of the snapshot, and it fails

    Thanks in advance!
    Brendan

    It's really kind of unusual, but we will try to fix things.

    1.) create multiple subdirectories which you will pass some files during this procedure
    -not used
    -backup

    -fact
    -temp

    (2.) do a cleaning of unused files
    -move all the files to "...-ctk.vmdk" for the "unused" subdirectory
    -move the "000002" files in the subdirectory "unused" (not in the chain of snapshot)
    -move the '000239' files in the subdirectory "unused" (not in the chain of snapshot)
    -move the "000258' - '000287' files in the 'unused' subdirectory (contain no user data)

    3.) backs up the descriptor files

    -Copy all the hard of descriptor/header files in the subdirectory "backup."

    4.) merging the snapshots in the basic disk using the vmkfstools utility
    Given that problems with two virtual disks are the same, I'll explain the procedure for the first disc of "nzaklapp11" only. Once you are done with the first virtual disk, repeat steps to 'nzaklapp11_1 '.

    First round:

    • run: vmkfstools-i nzaklapp11 - 000030.vmdk temp/nzaklapp11.vmdk
    • the files '000030' moving 'nzaklapp11.vmdk', "nzaklapp11 - flat hard" as well as the "000001" - to the subdirectory 'done '.
    • Move hard files created in sub-repertoire 'temp' in the virtual machine file
    • Edit "nzaklapp11 - 000031.vmdk".
      parentFileNameHint = "nzaklapp11.vmdk".
      parentCID =

    Repeatedly executes:

    • run: vmkfstools-i nzaklapp11 - 000060.vmdk temp/nzaklapp11.vmdk
    • move the "000031' -"000060"files in the subdirectory 'done '.
    • Remove "nzaklapp11.vmdk", "nzaklapp11 - flat hard."
    • Move hard files created in sub-repertoire 'temp' in the virtual machine file
    • Edit "nzaklapp11 - 000061.vmdk".
      parentFileNameHint = "nzaklapp11.vmdk".
      parentCID =

    Repeat the "works on several occasions" by increasing the number of 30 until you are finished with all snapshots.

    Once finished with the two discs, and you confirmed that the new disks are ok, you can remove the subdirectories created in step 1.

    If anything is unclear, please feel free to ask.

    André

  • Creating members shared in EPMA using flat files

    Hi guys,.

    I worked with flat files and shared members in v 9.3 with no problems.

    However when I try to load shared v EPMA 11.1.2 members it does not work. In the xls file, I simply create the second rank for the shared member with storage of data as 'ShareData' and delete all other properties.

    But when I load the flat file in EPMA it gives me the "Member section contains an entry duplicated for Member...". »

    Is there something new to get closer to the shared members in v11? Am I missing something?

    See you soon,.
    Omar

    'IsPrimary' option will be not visible in the screen import mapping Dimension to the import profile creation. I think it's normal.

    Can type you a complete error you get from the 'Import of the results' work Console a link please.

  • Invalid number when reading a flat file

    Hello Experts,

    I have the following flat file format and I want to insert it into a table
    I have an error invalid number.

    How can I stop reading the file when it reaches the empty line before the grand total

    file
    ----------------------------------------------------------------------------------------------------------------------------------
    
                       TOTAL        PAID       TOTAL     EXPIRED       TOTAL    FRAC OUTSTANDING
                     WINNERS       TODAY        PAID       TODAY     EXPIRED   ROUND
        DRAW/SET      AMOUNT      AMOUNT      AMOUNT      AMOUNT      AMOUNT  AMOUNT      AMOUNT
    ------------ ----------- ----------- ----------- ----------- ----------- ------- -----------
        1/     1  6857068.00        0.00  5879902.00        0.00   977166.00    0.00        0.00
        2/     1  5907322.00        0.00  5463759.00        0.00   443563.00    0.00        0.00
        3/     1  7277181.00        0.00  6551708.00        0.00   725473.00    0.00        0.00
        4/     1 37503734.00        0.00 36656046.00        0.00   847688.00    0.00        0.00
        5/     1  4879934.00        0.00  4293514.00        0.00   586420.00    0.00        0.00
        6/     1 15604133.00        0.00 15172198.00        0.00   431935.00    0.00        0.00
        7/     1  4943514.00        0.00  4425254.00        0.00   518260.00    0.00        0.00
        8/     1  6493874.00        0.00  5745660.00        0.00   748214.00    0.00        0.00
        9/     1 23195487.00        0.00 22279945.00        0.00        0.00    0.00   915542.00
        10/    1  5480445.00        0.00  4981615.00        0.00        0.00    0.00   498830.00
        11/    1  5421101.00        0.00  4852814.00        0.00        0.00    0.00   568287.00
        12/    1 22644465.00        0.00 21987329.00        0.00        0.00    0.00   657136.00
        13/    1  6310425.00        0.00  5582127.00        0.00        0.00    0.00   728298.00
        14/    1  5986847.00        0.00  5471429.00        0.00        0.00    0.00   515418.00
        15/    1  6699299.00        0.00  6080687.00        0.00        0.00    0.00   618612.00
        16/    1  7549513.00        0.00  6842058.00        0.00        0.00    0.00   707455.00
        17/    1 43951014.00        0.00 42538841.00        0.00        0.00    0.00  1412173.00
        18/    1  6275029.00        0.00  5608261.00        0.00        0.00    0.00   666768.00
        19/    1 34023432.00      100.00 33066516.00        0.00        0.00    0.00   956916.00
        20/    1  5496324.00        0.00  5029237.00        0.00        0.00    0.00   467087.00
        21/    1  5791146.00        0.00  5281256.00        0.00        0.00    0.00   509890.00
        22/    1  7121128.00        0.00  6419500.00        0.00        0.00    0.00   701628.00
        23/    1 36121507.00        0.00 35211831.00        0.00        0.00    0.00   909676.00
        24/    1 10137379.00        0.00  9660197.00        0.00        0.00    0.00   477182.00
        25/    1  4267656.00      200.00  3875040.00        0.00        0.00    0.00   392616.00
        26/    1  8656241.00      561.00  7744762.00        0.00        0.00    0.00   911479.00
        27/    1 10023865.00      400.00  9070015.00        0.00        0.00    0.00   953850.00
        28/    1 15201340.00     1188.00 13795352.00        0.00        0.00    0.00  1405988.00
        29/    1 83052341.00     2773.00 80673373.00        0.00        0.00    0.00  2378968.00
        30/    1  7137232.00     1000.00  6459875.00        0.00        0.00    0.00   677357.00
        31/    1 25472826.00     1700.00 24487312.00        0.00        0.00    0.00   985514.00
        32/    1  5679593.00     4398.00  5094378.00        0.00        0.00    0.00   585215.00
        33/    1 19360140.00    32659.00 18144162.00        0.00        0.00    0.00  1215978.00
        34/    1  5350117.00  1059167.00  1059167.00        0.00        0.00    0.00  4290950.00
    
    GRAND TOTAL  ########.##  1104146.00 ########.##        0.00  5278719.00    0.00 25108813.00
    
    End of Report
    code
    declare
    l_start_file_name varchar2(50) := 'liab_report_summary_p008_c';
    l_end_file_name varchar2(50)   := '_english.rep';
    l_file_name varchar2(100);
    l_sql varchar(32767);
    refresh_cdc varchar2(10) := '00540';
    
    Begin
    
    l_file_name := l_start_file_name||REFRESH_CDC||l_end_file_name;
    
     l_sql := 'create or replace directory GTECHFILES as ''/ftpfiles/gtechfiles/acct_'||REFRESH_CDC||'''';
      execute immediate l_sql;
    
    
    l_sql :=  ' CREATE TABLE LOTO_LIABILITY_REPORT_temp             '||
              ' (                                                   '||
              '  draw_number       varchar2(50),                    '||
              '  total_winners_amt number,                          '||
              '  paid_today_amt    number,                          '||
              '  total_paid_amt    number,                          '||
              '  expired_today_amt number,                          '||
              '  total_expired_amt number,                          '||
              '  frac_round_amt    number,                          '||
              '  outstanding_amt   number                           '||
              ' )                                                   '||
              ' ORGANIZATION EXTERNAL                               '||
              '   (  TYPE ORACLE_LOADER                             '||
              '     DEFAULT DIRECTORY GTECHFILES                    '||
              '     ACCESS PARAMETERS                               '||
              '       ( records delimited by newline                '||
              '      LOGFILE TEMPDIR:''loto_liability_report.log''  '||
              '      SKIP 8                                         '||            
              '      FIELDS LDRTRIM                                 '||
              '      MISSING FIELD VALUES ARE NULL                  '||
              '       (                                             '||
              '  draw_number       (1:11)  char(11),                '||
              '  total_winners_amt (14:24) char(11),                '||
              '  paid_today_amt    (26:36) char(11),                  '||
              '  total_paid_amt    (38:48) char(11),                  '||
              '  expired_today_amt (50:60) char(11),                  '||
              '  total_expired_amt (62:72) char(11),                  '||
              '  frac_round_amt    (74:80) char(11),                  '||
              '  outstanding_amt   (82:92) char(11)                   '||
              '       )                                             '||
              '   )                                                 '||
              '     LOCATION ('''||l_file_name||''')                '||
              ' )                                                   '||
              ' REJECT LIMIT UNLIMITED                              '||
              ' NOPARALLEL                                          '||
              ' NOMONITORING                                        ';
    
             execute immediate l_sql; 
     
     l_sql := ' insert into LOTO_LIABILITY_REPORT '||
     ' ( draw_number             , '||
     '   total_winners_amt       , '||
     '   paid_today_amt          , '||
     '   total_paid_amt          , '||
     '   expired_today_amt       , '||
     '   total_expired_amt       , '||
     '   frac_round_amt          , '||
     '   outstanding_amt         , '||
     '   source                  , '||
     '   inserted_DATE           , '||
    -- '   UPLOADED                 ,'||
     '   CDC                       '||
     ' )                           '||
     '   SELECT                    '||
     '       draw_number    , '||
     '       TO_NUMBER(total_winners_amt,''999,999,999.00'') total_winners_amt,  '||
     '       TO_NUMBER(paid_today_amt,''999,999,999.00'') paid_today_amt,        '||
     '       TO_NUMBER(total_paid_amt,''999,999,999.00'') total_paid_amt,        '||
     '       TO_NUMBER(expired_today_amt,''999,999,999.00'') expired_today_amt,        '||
     '       TO_NUMBER(total_expired_amt,''999,999,999.00'') total_expired_amt,        '||
     '       TO_NUMBER(frac_round_amt,''999,999,999.00'') frac_round_amt,        '|| 
     '       TO_NUMBER(outstanding_amt,''999,999,999.00'') outstanding_amt,        '||  
     '       '''||l_file_name                                       ||''', '||
     '       sysdate                                                     , '||
     --'     ''N''                                                         , '||
             refresh_cdc                                                    ||
     '    FROM                                                             '||
     '       LOTO_LIABILITY_REPORT_temp                                              ';
    
     
        dbms_output.put_line(l_sql);
             execute immediate l_sql;           
             
    ll_sql :='drop table LOTO_LIABILITY_REPORT_temp';
     
            execute immediate l_sql;
    
    exception
    when others then
    rollback;
    l_sql :='drop table LOTO_LIABILITY_REPORT_temp';
    execute immediate l_sql;
    debug_message('LOTO_LIABILITY_REPORT_temp_UPLOAD/'||REFRESH_CDC,'Unexpected Error '||sqlerrm);
    END LOTO_LIABILITY_REPORT;
    any help would be greatly appreciated.

    Thank you
    Kevin

    Hello

    You can do this:
    Add this condition in the table definition
    WHEN LOAD (total_winners_amt! = "#.") "#" and total_paid_amt! =" ###. "#" and draw_number! = BLANKS)
    and do it for each column that can have this value...

    CREATE TABLE WEBUSER.LOTO_LIABILITY_REPORT_TEMP
    (
      DRAW_NUMBER        VARCHAR2(50 BYTE),
      TOTAL_WINNERS_AMT  NUMBER,
      PAID_TODAY_AMT     NUMBER,
      TOTAL_PAID_AMT     NUMBER,
      EXPIRED_TODAY_AMT  NUMBER,
      TOTAL_EXPIRED_AMT  NUMBER,
      FRAC_ROUND_AMT     NUMBER,
      OUTSTANDING_AMT    NUMBER
    )
    ORGANIZATION EXTERNAL
      (  TYPE ORACLE_LOADER
         DEFAULT DIRECTORY GTECHFILES
         ACCESS PARAMETERS
           ( records delimited by newline
                    LOGFILE GTECHFILES:'loto_liability_report.log'
                    SKIP 8
                    LOAD WHEN (total_winners_amt!="########.##" and total_paid_amt!="########.##" and draw_number != BLANKS)
                    FIELDS LDRTRIM
                    MISSING FIELD VALUES ARE NULL
                     (
                draw_number       (1:11)  char(11),
                total_winners_amt (14:24) char(11),
                paid_today_amt    (26:36) char(11),
                total_paid_amt    (38:48) char(11),
                expired_today_amt (50:60) char(11),
                total_expired_amt (62:72) char(11),
                frac_round_amt    (74:80) char(7),
                outstanding_amt   (82:92) char(11)
                     ) 
    
                  )
         LOCATION (GTECHFILES:'test.txt')
      )
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    NOMONITORING;
    

    You'll get in the log file:

     LOG file opened at 06/28/10 22:16:51
    
    Field Definitions for table LOTO_LIABILITY_REPORT_TEMP
      Record format DELIMITED BY NEWLINE
      Data in file has same endianness as the platform
      Rows with all null fields are accepted
      Load when ((TOTAL_WINNERS_AMT != ########.##) AND ((TOTAL_PAID_AMT != ########.##) AND (DRAW_NUMBER != BLANKS)))
    
      Fields in Data Source: 
    
        DRAW_NUMBER                     CHAR (11)
          Record position (1, 11)
          Trim whitespace same as SQL Loader
        TOTAL_WINNERS_AMT               CHAR (11)
          Record position (14, 24)
          Trim whitespace same as SQL Loader
        PAID_TODAY_AMT                  CHAR (11)
          Record position (26, 36)
          Trim whitespace same as SQL Loader
        TOTAL_PAID_AMT                  CHAR (11)
          Record position (38, 48)
          Trim whitespace same as SQL Loader
        EXPIRED_TODAY_AMT               CHAR (11)
          Record position (50, 60)
          Trim whitespace same as SQL Loader
        TOTAL_EXPIRED_AMT               CHAR (11)
          Record position (62, 72)
          Trim whitespace same as SQL Loader
        FRAC_ROUND_AMT                  CHAR (7)
          Record position (74, 80)
          Trim whitespace same as SQL Loader
        OUTSTANDING_AMT                 CHAR (11)
          Record position (82, 92)
          Trim whitespace same as SQL Loader
    KUP-04102: record 41 discarded from file c:\temp\test.txt
    KUP-04102: record 42 discarded from file c:\temp\test.txt
    KUP-04102: record 43 discarded from file c:\temp\test.txt
    KUP-04102: record 44 discarded from file c:\temp\test.txt
    

    ORA-01722 exception has disappeared...
    be very vigilant, you also should jump 6 instead of spend 8...

  • faced with the question when writing data to a flat file with UTL_FILE.

    Hi gurus,

    We have a procedure that writes the data from the table to a flat file. RAC is implemented on this database.
    While writing data if the current instance, this procedure creates two copies of the data in parts.

    Any body can help me to solve this problem.

    Thanks in advance...

    I also asked this question, but it seems no final solution...

    In any case, here are two possibilities
    (1) the directory for the file among all nodes share
    (2) run you a procedure on a specific node

  • Export data to a flat file HRMS

    Hi all!

    Are there ways to export related employees data in a flat file without using a client (PeopleCode or Integration Broker) application, it's simply generate a CSV of power of the UI?

    You can schedule a query and specify the output text format. Note that when you select View Log/Trace in the process monitor, you will see a file with a .csv extension. However, it opens by default in Excel, and even if you select Save instead of open, he will try to change the .xls extension. You will need to return to .csv.

  • Error in the exercise of reconciliation flat file

    Hi all

    I tried to reconcile flat file using the connector of the GTC. The format of my flat file (PPSLocal.txt) is like this:

    *##*
    Name of the account. Full name | Field | Last login Timestamp | Description | GUID | Mail | Employee ID | First name | Family name

    PPS\SophosSAUPPS010 | SophosSAUPPS010 | PPS. LOCAL | Used to download Sophos updates | EED86D86-750 C-404 A-9326-044A4DB07477 |
    PPS\GBPPL-SI08$ | GBPPL-SI08$ | PPS. LOCAL | 79677F4D-8959-493E-9CF9-CDDDB175E40B |
    PPS\S6Services | Series 6 Services | PPS. LOCAL | Series 6 Services | B4F41EE2-6744-4064-95F6-74E017D0B9AF |

    I created a GTC "CurrentDomain" connector specified configurations;

    (Identification of Parent data) staging of directory/home/GTC
    / Home/CWG/archive archive directory
    PPS file prefix
    Specified delimiter.
    UTF8 encoding file
    Source Format of Date YYYY/MM/DD hh: mm: z
    Reconcile the deletion of attribute multivalue box unchecked data
    Reconciliation of integral Type

    After that I completed the mapping of the connector configuration and run the respective to schedule a task that displays the following on the console error message:


    Class/probable: SharedDriveReconTransportProvider/getFirstPage - before calling: getAllData
    * DEBUG, August 20, 2009 09:08:49, 202, [XELLERATE. GC. PROVIDER. RECONCILIATIONTRANSPORT], class/method: SharedDriveReconTransportProvider/getAllData entered.*
    * DEBUG, August 20, 2009 09:08:49, 202, [XELLERATE. GC. PROVIDER. RECONCILIATIONTRANSPORT], class/method: SharedDriveReconTransportProvider/getReconFileList entered.*
    * DEBUG, August 20, 2009 09:08:49, 202, [XELLERATE. GC. PROVIDER. RECONCILIATIONTRANSPORT], class/method: SharedDriveReconTransportProvider.EndsWithFilter/accept entered.*
    * INFO, August 20, 2009 09:08:49, 202, [XELLERATE. GC. PROVIDER. RECONCILIATIONTRANSPORT], staging->/home/CWG dir *.
    * INFO, August 20, 2009 09:08:49, 202, [XELLERATE. GC. PROVIDER. RECONCILIATIONTRANSPORT], the number of files available-> 0 *.
    * DEBUG, August 20, 2009 09:08:49, 202, [XELLERATE. GC. PROVIDER. RECONCILIATIONTRANSPORT], class/method: SharedDriveReconTransportProvider/getReconFileList left.*
    * ERROR, August 20, 2009 09:08:49, 202, [XELLERATE. GC. PROVIDER. RECONCILIATIONTRANSPORT], the problem met to reconcile the first page of the data
    com.thortech.xl.gc.exception.ReconciliationTransportException: no Parent file in the implementation stage of directory or permissions access (READ) don't miss
    * at com.thortech.xl.gc.impl.recon.SharedDriveReconTransportProvider.getAllData (Unknown Source) *.
    * at com.thortech.xl.gc.impl.recon.SharedDriveReconTransportProvider.getFirstPage (Unknown Source) *.
    * at com.thortech.xl.gc.runtime.GCScheduleTask.execute (Unknown Source) *.
    * at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run (Unknown Source) *.
    * to com.thortech.xl.scheduler.core.quartz.QuartzWrapper$ TaskExecutionAction.run (Unknown Source) *.
    * to weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) *.
    * at weblogic.security.service.SecurityManager.runAs (Unknown Source) *.
    * to weblogic.security.Security.runAs(Security.java:41) *.
    * at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs (Unknown Source) *.
    * at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute (Unknown Source) *.
    * to org.quartz.core.JobRunShell.run(JobRunShell.java:178) *.
    * to org.quartz.simpl.SimpleThreadPool$ WorkerThread.run (SimpleThreadPool.java:477). *
    * ERROR, August 20, 2009 09:08:49, 202, [XELLERATE. GC. FRAMEWORKRECONCILIATION], encountered error of reconciliation: *.

    com.thortech.xl.gc.exception.ProviderException: no Parent file in the implementation stage of directory or permissions access (READ) don't miss
    * at com.thortech.xl.gc.impl.recon.SharedDriveReconTransportProvider.getFirstPage (Unknown Source) *.
    * at com.thortech.xl.gc.runtime.GCScheduleTask.execute (Unknown Source) *.
    * at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run (Unknown Source) *.
    * to com.thortech.xl.scheduler.core.quartz.QuartzWrapper$ TaskExecutionAction.run (Unknown Source) *.
    * to weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) *.
    * at weblogic.security.service.SecurityManager.runAs (Unknown Source) *.
    * to weblogic.security.Security.runAs(Security.java:41) *.
    * at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs (Unknown Source) *.
    * at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute (Unknown Source) *.
    * to org.quartz.core.JobRunShell.run(JobRunShell.java:178) *.
    * to org.quartz.simpl.SimpleThreadPool$ WorkerThread.run (SimpleThreadPool.java:477). *
    Caused by: com.thortech.xl.gc.exception.ReconciliationTransportException: file No. Parent directory or permissions (READ) access to timing are missing
    * at com.thortech.xl.gc.impl.recon.SharedDriveReconTransportProvider.getAllData (Unknown Source) *.
    *     ... 11 more *.
    * Put in CUSTODY, 20 August 2009 09:08:49, 203, [XELLERATE. DCM FRAMEWORKRECONCILIATION], a task if planned reconciliation has encountered an error, reconciliation Transport providers have been "completed" smoothly. Any provider operation that occurs during this 'end' or 'cleaning' phase would have been performed such archival data. Where you want the data to be part of the next run of reconciliation, restore it from the staging. Log provider must be containing information about the entities that would have been archived *.
    * DEBUG, August 20, 2009 09:08:49, 203, [XELLERATE. DCM PROVIDER. RECONCILIATIONTRANSPORT], class/method: entered.* SharedDriveReconTransportProvider/end
    * DEBUG, August 20, 2009 09:08:49, 203, [XELLERATE. DCM PROVIDER. RECONCILIATIONTRANSPORT], class/probable: SharedDriveReconTransportProvider/end - after call: re-definition of instance variables *.
    * DEBUG, August 20, 2009 09:08:49, 203, [XELLERATE. DCM PROVIDER. RECONCILIATIONTRANSPORT], class/probable: SharedDriveReconTransportProvider/end - after call: re - fire for example variables *.
    * DEBUG, August 20, 2009 09:08:49, 203, [XELLERATE. DCM PROVIDER. RECONCILIATIONTRANSPORT], class/method: left.* SharedDriveReconTransportProvider/end
    * DEBUG, August 20, 2009 09:08:49, 203, [XELLERATE. PLANNER. TASK], class/method: left.* SchedulerBaseTask/run
    * DEBUG, August 20, 2009 09:08:49, 203, [XELLERATE. PLANNER. TASK], class/method: SchedulerBaseTask/isSuccess entered.*
    * DEBUG, August 20, 2009 09:08:49, 203, [XELLERATE. PLANNER. TASK], class/method: SchedulerBaseTask/isSuccess left.*
    * DEBUG, August 20, 2009 09:08:49, 203, [XELLERATE. SERVER], class/method: SchedulerTaskLocater /removeLocalTask entered.*
    * DEBUG, August 20, 2009 09:08:49, 203, [XELLERATE. SERVER], class/method: SchedulerTaskLocater /removeLocalTask left.*
    * DEBUG, August 20, 2009 09:08:49, 203, [XELLERATE. SERVER], class/method: QuartzWrapper/updateStatusToInactive entered.*
    * DEBUG, August 20, 2009 09:08:49, 207, [XELLERATE. SERVER], class/method: QuartzWrapper/updateStatusToInactive left.*
    * DEBUG, August 20, 2009 09:08:49, 207, [XELLERATE. SERVER], class/method: QuartzWrapper/updateTaskHistory entered.*
    * DEBUG, August 20, 2009 09:08:49, 208, [XELLERATE. SERVER], class/method: QuartzWrapper/updateTaskHistory left.*
    * DEBUG, August 20, 2009 09:08:49, 209, [XELLERATE. SERVER], compensation of the SAS with scheduled task thread *.
    * DEBUG, August 20, 2009 09:08:49, 210, [XELLERATE. SERVER], class/method: left.* QuartzWrapper/run
    * DEBUG, August 20, 2009 09:08:49, 210, [XELLERATE. SERVER], class/method: left.* QuartzWrapper/execution

    However, to my great astonishment, the event of reconciliation for all users are is created in the console of the IOM Design;

    I tried to change the permission of/home/directory to 777 also GTC, but it did not help.

    If anyone has any idea on this subject, kindly help.

    See you soon,.
    Sunny

    Caused by: com.thortech.xl.gc.exception.ReconciliationTransportException: file No. Parent directory or permissions (READ) access to timing are missing

    Just check the folder where you put the flat file. It shows that the file is not there now and also check the permissions of it.

    If please chk and let me know.

  • Export tables to flat files

    Hello

    Can I export tables to flat files (csv) using pl/sql. I mean suppose I have 2 paintings "student" and "topic" and I want to create two files student.csv and subject.csv please let me know, if I can do using pl/sql for tables at once.

    Even if I can do it for a single table, I can write a script to automate for all tables. Please let me know with your suggestions. Appreciate your help.

    Thank you

    As user sys:

    CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
    /
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    /
    

    As myuser:

    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                         ,p_dir IN VARCHAR2
                                         ,p_header_file IN VARCHAR2
                                         ,p_data_file IN VARCHAR2 := NULL) IS
      v_finaltxt  VARCHAR2(4000);
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_fh        UTL_FILE.FILE_TYPE;
      v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      d := DBMS_SQL.EXECUTE(c);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
        END CASE;
      END LOOP;
      -- This part outputs the HEADER
      v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
      FOR j in 1..col_cnt
      LOOP
        v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),',');
      END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
      UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      IF NOT v_samefile THEN
        UTL_FILE.FCLOSE(v_fh);
      END IF;
      --
      -- This part outputs the DATA
      IF NOT v_samefile THEN
        v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
      END IF;
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT WHEN v_ret = 0;
        v_finaltxt := NULL;
        FOR j in 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
            WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                        v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
            WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                        v_finaltxt := ltrim(v_finaltxt||','||v_n_val,',');
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                        v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),',');
          ELSE
            v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
          END CASE;
        END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
        UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      END LOOP;
      UTL_FILE.FCLOSE(v_fh);
      DBMS_SQL.CLOSE_CURSOR(c);
    END;
    

    This allows the header line and the data to write into files separate if necessary.

    for example

    SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
    
    PL/SQL procedure successfully completed.
    

    Output.txt file contains:

    empno,ename,job,mgr,hiredate,sal,comm,deptno
    7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20
    7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30
    7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30
    7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20
    7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30
    7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30
    7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10
    7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20
    7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10
    7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30
    7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20
    7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30
    7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20
    7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10
    

    The procedure allows for the header and the data to separate files if necessary. Just by specifying the file name "header" will put the header and the data in a single file.

    Adapt to the exit of styles and different types of data are needed.

  • Access to the flat file error

    Hello

    My Source is access DB and target is flat file.
    The IKM I use is IKM SQL to add files.


    When I try to run the Interface, I get this error: -.

    3100: 37000: java.sql.SQLException: error [Microsoft] [ODBC Microsoft Access driver] syntax (missing operator) in query expression ' CUSTOMER. [CustomerID] CUSTOMERID "."
    java.sql.SQLException: error [Microsoft] [ODBC Microsoft Access driver] syntax (missing operator) in query expression ' CUSTOMER. [CustomerID] CUSTOMERID "."

    at sun.jdbc.odbc.JdbcOdbc.createSQLException (unknown Source)

    at sun.jdbc.odbc.JdbcOdbc.standardError (unknown Source)

    at sun.jdbc.odbc.JdbcOdbc.SQLPrepare (unknown Source)

    at sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement (unknown Source)

    at sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement (unknown Source)

    at com.sunopsis.sql.SnpsQuery.a (SnpsQuery.java)

    at com.sunopsis.sql.SnpsQuery.a (SnpsQuery.java)

    at com.sunopsis.sql.SnpsQuery.updateExecStatement (SnpsQuery.java)

    at com.sunopsis.sql.SnpsQuery.executeQuery (SnpsQuery.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt (SnpSessTaskSqlI.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)

    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)

    at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)

    at com.sunopsis.dwg.cmd.e.i (e.java)

    at com.sunopsis.dwg.cmd.g.y (g.java)

    at com.sunopsis.dwg.cmd.e.run (e.java)

    at java.lang.Thread.run (unknown Source)

    Would appreciate the help.

    Chanduwar

    Hi Chandwar,

    As we discussed in Gtalk,
    the problem is the quotes in the select query.

    Select
    CUSTOMER. "" ' Town.
    CUSTOMER. "' Region '.
    'Customer' as a CUSTOMER
    where (1 = 1)

    Please customize step KM

    <%=snpRef.getColList("", "[EXPRESSION] [ALIAS_SEP] [CX_COL_NAME]", ",\n\t", "", "INS and !TRG") %>

    to remove the quotes and the expression of the Alias
    Please reffer to the PDF API user to customize the same.

    An additional point->

    Please try to use the appropriate kms which is dedicated for each technology,
    This will improve the performance and this kind of questions.

    Kind regards
    Its

  • GTC - length reconciliation flat file fixed

    Hello

    I have a .txt file, consisting of a series of numbers like 12345678912345678912345678912345678-> total 35 in length. (Noted in IOM 9.1.0.1 Administrator guide), specified one after another in a different as line:

    12345678912345678912345678912345UIA
    87132653912345678912345678912345DIC
    12345678912345678912345678954321UIC
    .......

    These series of numbers to provide values for various UDF I created to IOM for example:

    1-5 characters/digits represent the postal code
    6-15 characters or numbers represent Contact Info.

    I tried the GTC fixed length flat file to reconcile all of these values in IOM belonging to a particular user.

    But here's the problem:

    It only shows me the first record, that is, the first line (first set of numbers) in the file in the mapping schema. Other that that, he doesn't show me any records at all.

    Can someone give me more ideas on how we can configure this particular GTC?

    Thanks in advance!
    -oidm.

    So for the first time, users are created successfully. But next time for update it gives the error "Connection ID is duplicate" as stated above. It takes the value of harcoded again and again.

    Just to answer that, you have created the user to IOM. NOy, you have made some changes in the attributes of the FF user as mob number, city, zip etc.

    Now you say after recon again once he takes hardcdoed userid.
    Is he will do the same as this is the treatment that you have updated as well as in FF user name.

    Just think about the scenario, you have created the user the IOM to FF with SSN as a unique attribute. Now, if you make changes in the zip of FF user attributes, phn no and userid as well.

    So according to you, should it do.

    It should update the username. I'm wrong?

    So what is happening in your case.

    To do this, simply delete the FF Recon userid field and insert your code in before Insert and let me know what happens.

    Let me know if you still have doubts.

    Published by: Arnaud

  • IOM: reconciliation flat file trust

    Hello

    I am doing trust reconciliation flat file, but no user is imported.

    Mapping and the GTC connector settings looks ok. File is moved from stage to check the directory, but there is no any user.

    Everything is done as it is written in this OBE (http://www.oracle.com/technology/obe/fusion_middleware/im1014/oim/obe12_using_gtc_for_reconciliation/using_the_gtc.htm).

    Is there a way to activate the tracing or record to see what is actually happening?

    TNX in advance.

    Published by: user5037528 on December 4, 2008 02:03

    Hello

    You still get the same error message? No value of required fields?

    The required fields are:
    User login
    First name
    Family name
    Email (?) -> I don't know, but you provide it, so it's not the problem
    Password (?) -> GTC generates the password during the reconciliation of the tables, it should also do this with files
    Type of user
    Employee type
    Organization
    + All required UDF.

    It is important that the values provided in the Organization, the Type of user, Type of employee needs already exist in your IOM before reconciliation is running.

    If you have all these fields defined in your GTC and you always throw this error, I guess that the problem might be that the mapping change you did.

    Kind regards

  • How to do this: Photoviewer, Windows cannot save changes to the image due to a problem with the properties of the file!

    Hi, I'm trying to post a photo, but whenever I have try rotation to the right, it says something like: can't save changes to the image due to a problem with the properties of the file. My laptop is MS, but the photos were taken on the Iphone. How to do this?

    I don't know if the following links answer your question, but
    they may be worth a visit:

    Good luck and * proceed at your own risk *.

    FWIW... There is a very long discussion (several pages) to the
    following link:

    Cannot change the imported iPhone 4S photo
    https://discussions.Apple.com/thread/3444951?start=0&TSTART=0

    More Discussion

    iPhone 4S image properties is not compartible with Windows?
    Editing can be done on the computer due to the error
    "Windows Photo Viewer cannot save changes to this picture.
    because there is a problem with the properties of the image file".
    Any help?
    https://discussions.Apple.com/message/17291884#17291884

    More Discussion:

    We cannot turn a few photos in Windows 7 (but can turn others)
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/cant-rotate-some-photos-in-Windows-7-but-can/3a809845-9144-4BB1-9bb3-ab4f5b856524

    A simple solution is to open the photos in paint or most other
    digital image editor and modify it.

    Some people have reported success using the following free download
    to remove the metadata.

    Property restrictions stripper iphone 4S (JPEG & PNG Stripper)
    http://www.SteelBytes.com/?mid=30&cmd=download&PID=15

    Here's a way to turn...

    Easily turn locked iPhone 4 and 4 s Photos in Windows 7 with
    the rotator Lossless JPEG free
    http://www.daleisphere.com/easily-rotate-locked-iPhone-4-and-4S-photos-in-Windows-7-with-the-free-JPEG-lossless-Rotator/

    Free download JPEG Lossless rotating
    http://annystudio.com/software/jpeglosslessrotator/

Maybe you are looking for