DG4ODBC adds black spaces after every character

I am trying to set up HS using Oracle 10.2.0.5 on RHEL5 (64 bit), FreeTDS, and MS SQL Server.
The ODBC Driver works fine:
[oracle@phsbe1pr ~]$ isql sfasql_freetds_dsn sqlSinfoOne ***
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
SQL> select name, len( name ) from sys.objects where object_id < 20 ;
---------------------------------------------------------------------------------------------------------------------------------------------+
| name | |
---------------------------------------------------------------------------------------------------------------------------------------------+
| sysrscols | 9 |
| sysrowsets | 10 |
| sysallocunits | 13 |
| sysfiles1 | 9 |
| syspriorities | 13 |
| sysfgfrag | 9 |
---------------------------------------------------------------------------------------------------------------------------------------------+
SQLRowCount returns 6
6 rows fetched
SQL> quit
[oracle@phsbe1pr ~]$
[oracle@phsbe1pr ~]$ tsql -S SFASQL_FreeTDSName -U sqlSinfoOne -P ***
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
1> select name, len( name ) from sys.objects where object_id < 20
2> order by 1
3> go
name
sysallocunits 13
sysfgfrag 9
sysfiles1 9
syspriorities 13
sysrowsets 10
sysrscols 9
(6 rows affected)
1> exit
[oracle@phsbe1pr ~]$
But when I use the dblink i got every string doubled with spaces after every char:
[oracle@phsbe1pr ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Mon Jul 23 17:22:25 2012
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> set linesize 120
SQL> column name format a40
SQL> select "name", length ( "name" )
2 from sys.objects@sfasql_link
3 where "object_id" < 20
4 order by 1
5 /
name LENGTH("NAME")
s y s a l l o c u n i t s 26
s y s f g f r a g 18
s y s f i l e s 1 18
s y s p r i o r i t i e s 26
s y s r o w s e t s 20
s y s r s c o l s 18
6 rows selected.
SQL>
What can I do ?
Mi init.ora is:
HS_FDS_CONNECT_INFO = SFASQL_DSN
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
HS_FDS_TRACE_LEVEL = off
HS_FDS_TRACE_FILE_NAME=/tmp/odbc_hs_sfa.trc
HS_FDS_SQLLEN_INTERPRETATION = 32
set ODBCINI=/etc/odbc.ini
adn odbc.ini contains:
[SFASQL_DSN]
Description = sqlserver
Driver = FreeTDS
# Servername = SFASQL_FreeTDSName
Server = phsspbe.perfumeholding.intra
Address = 172.17.0.45
Port = 1433
Database = SFA_INTERSCAMBIO
TDS_Version = 8.0
Language = us_english
TextSize = 1999
PacketSize = 1470
ClientCharset = ISO-8859-1
DumpFile = /tmp/odbc_sfasql_dsn.log
DumpFileAppend = Yes
DebugFlags =
Encryption = off
#Trace = Yes
#TraceFile = /tmp/odbc_sfasql_dsn.trc
Thank you for every answer!
Andrea

1. Please add to the gateway init file HS_NLS_NCHAR=UCS2
Then test again with a new SQL*Plus session.
When it continues to fail, what's the character set of the Oracle database being used and how did you set the NLS_LANG in your environment?

Similar Messages

  • BufferedReader Problem (inserting space after every character)

    (This is a message I sent to an Aglet forum, however I thought maybe someone here could help me with the BufferedReader problem...with the spacing...read below)
    -Blake
    ok here's what I'm attempting to do.
    I have a Master Aglet that creates a slave which is dispatched to a remote site. The Slave then opens a log file, reads it, and then is supposed to read the file line by line and send each line as a message back to the Master. As the master receives each line it appends the line to the window it created earlier.
    I don't know what the problem is...it won't display the log file in the master window.
    It does display each line on the console window.I added a println() function to make sure the String array was getting the information. There is a small problem with that as well because it inserts a space after EVERY character (BufferedReader problem??)...what is up with that? for example:
    If the log file looked like: This is a log file entry.
    the console looks like this when it is printed: T h i s i s a l o g f i l e e n t r y .
    .... I had done something in a similiar program...and it worked just fine. here's some source code:
    <b>Master:</b>
    else if (msg.sameKind("Log")) {
    try {
    //println for testing purposes
    System.out.println(msg.getArg());
    appendMessage(" " + msg.getArg() + "test \n");
    } catch (Exception e) {
    System.out.println(e.toString());
    <b>Slave: </b>
    File log = new File("C:\\Aglets2.0.2\\public\\WINDOWSUPDATE.log");
    FileReader fr = null;
    try{
    fr = new FileReader(log);
    } catch (FileNotFoundException e) {
    System.out.println(e);
    BufferedReader br = new BufferedReader(fr);
    //Get filename of log
    try {
    Message msg = new Message("FileName", log.getName());
    mProxy.sendOnewayMessage(msg);
    } catch (InvalidAgletException iae) {
    System.out.println(iae.toString());
    } catch (Exception e) {
    System.out.println(e.toString());
    //read each line of file and send back to Master as a message
    try{
    int i = 0;
    while ((s = br.readLine()) != null) {
    i++;
    count = i;
    for (int j = 0; j < count; j++)
    System.out.println(s[j]);
    //send message back to Master Aglet with log file information
    try {
    Message msg = new Message("Log", s[j]);
    mProxy.sendMessage(msg);
    } catch (InvalidAgletException iae) {
    System.out.println(iae.toString());
    } catch (Exception e) {
    System.out.println(e.toString());
    //close file reader
    fr.close();
    } catch (IOException e) {
    System.out.println(e.toString());
    }

    actually i did declare s, you just don't see it there because i only posted some of the code....
    I fixed the "spacey" problem by using a FileInputStream instead of a bufferedreader....
    like this (i'll post the whole code here:
    public class Slave extends BlindAglet {
        AgletProxy mProxy = null;
        boolean back = false;
            char[] c = new char[1000];
        BufferedReader br = null;
        int count;
        // Do some tasks when the aglet is created
        public void onCreation(Object init) {
            // Must make a note of the master here
            mProxy = (AgletProxy)init;       
            // Add our own listener and adapter
            addMobilityListener(
                new MobilityAdapter() {
                    // Using this as a safety check in case we get caught in a loop in the same host
                    public void onArrival(MobilityEvent event) {                   
                        try {
                            mProxy.sendMessage(new Message("NewSlaveProxy", getAgletContext().getAgletProxy(getAgletID())));                                                            
                        } catch (InvalidAgletException iae) {
                            System.out.println(iae);
                        } catch (NotHandledException ex) {
                            System.out.println(ex);
                        } catch (MessageException ex) {
                            System.out.println(ex);
                        //Are we back to origin?
                            if(back) {         
                                 back = false;     
                                try{
                                     FileWriter fw = new FileWriter("test.txt");                                                                  
                                 for (int i = 0; i < count; i += 2){ 
                                           fw.write(c);
                             fw.close();
                        } catch (IOException e) {
                                  System.out.println(e);
                                  dispose();
                             dispose();
    ); /* End of Adapter */
    public void run() {
         // Are we at home base?
    if (atHome()) {
    try {
    dispatch(new URL("atp://darklord:4434"));
    } catch (Exception e) {
    System.out.println(e.toString());
         try{
         File log = new File("C:\\Aglets2.0.2\\public\\WINDOWSUPDATE.log");
         FileInputStream f0 = new FileInputStream(log);
    //Get filename of log
    try {
         System.out.println(log.getName());
    Message msg = new Message("FileName", log.getName());
    mProxy.sendOnewayMessage(msg);
    } catch (InvalidAgletException iae) {
    System.out.println(iae.toString());
    } catch (Exception e) {
    System.out.println(e.toString());
              //read each line of file and send back to Master as a message
              try{               
         int size = f0.available();
         int i = 0;
         for (i = 0; i < size; i++) {
              c[i] = (char) f0.read();
    //send message back to Master Aglet with log file information
                             try {
                        Message msg = new Message("Log", c[i]);
                        mProxy.sendOnewayMessage(msg);
              } catch (InvalidAgletException iae) {
                             System.out.println(iae.toString());
                        } catch (Exception e) {
                             System.out.println(e.toString());
    count = i;
              } catch (IOException e) {
                   System.out.println(e.toString());
                   } catch (FileNotFoundException e) {
                   System.out.println(e);
         back = true;      
         returnHome();
    * Returns true if the current host is our origin
    public boolean atHome() {
    if (getAgletInfo().getOrigin().equals(getAgletContext().getHostingURL().toString()))
    return true;
    else
    return false;
    * Allows a slave to contact it's master and ask for a retraction.
    public void returnHome() {
    try {
    Message msg = new Message("RetractMe");
    msg.setArg("url", getAgletContext().getHostingURL());
    msg.setArg("id", getAgletID());
    mProxy.sendOnewayMessage(msg);
    } catch (InvalidAgletException iae) {
    System.out.println(iae.toString());
    } catch (Exception e) {
    System.out.println(e.toString());
    * Return a reference to our Master's proxy
    public AgletProxy getMasterProxy() {
    return mProxy;
    } /* End of Class

  • Add 3 zero after every n element in an array

    Hi, I have an array that has 50 elements ( 0 and 1) . I would like to add 3 zero after every 5 elements . As below for the first 10 elements
    10101010111111101001 should become  10101010110001111101001000
    could you please help me on this one ? I would greatly appreciate if youd attach the code for it
    thanks

    Approach with for loop
    "In theory, theory and practice are the same. In practice, they’re not."

  • Is it possible to automatically add a comma after every 6 characters has been typed in a text field?

    Hope someone can help me.
    What I basically need help with is how to make Acrobat add a comma after every 6 characters in a text field:
    XXXXXX,YYYYYY, ZZZZZZ etc

    I'm sorry, but I did not understand that (i'm using Acrobat Pro X)
    Am I supposed to go to:
    Text Field Properties > Format > Custom
    and then use Custom Format Script or Custom Keystroke Script?
    I tried both and it did not work.
    And do the Text Field have to be named "chunkSize"?
    Seems like it works. I had to move to the next formfield in order to see the effect.
    Is it possible to make it happen in real time (as you type the comma is inserted?)

  • Removing / cropping black space after stabilizing

    i am so new to this that i should read more but i am anxious to see this video stabilized. is there an easy way to 'stabilize' the vid i.e removing the black space created after stabilizing or is this a frame by frame crop?

    right. i did the simple crop but that was also compromising size. I just did the smooth layer resize and correct the compromise is too great. I lose almost 1/8 at the bottom at one point (to black screen) and the same applies to the top (at a different point obviously). I was hoping for a 'smart' crop that would, per frame- adjust with the movement and resize the footage for a consistent size. so, in fact less compromise is where i remain.
    Message was edited by: isomina

  • Export adds black space to front of quicktime video

    I have an iMovie I wanted to include on an existing web page so I exported it, selecting Quicktime and Export for Web. But when I view the movie in Quicktime, the first 6 seconds are a black screen!
    Thinking I did not have the starting position right, I placed the start bar a few seconds into the clip and tried again. Again, 6 seconds of black, then the movie started where I indicated.
    What setting am I missing? I've gone thru various preferences but cannot find anything. Why would I get this black space???

    Hi Kobe,
    To achieve this,
    2009
    -----200901
    -----200902
    2010
    -----201001
    -----201002
    You can make use of column properties->Horizontal Alignment = Right and Vertical Alignment=Top, But you have multiple requests in your report. The approach is to differentiate different levels and apply conditional formatting. Try this approach,
    1. Click on the combined request so that you can see "Add Result column" option in the left pane
    2. Click on "Add Result Column", in the column formula type in your time dimension column (if the column is in first posiiton type saw_0)
    3.Again Click on "Add Result Column" , in the column formula enter : case when LENGTH(saw_0) > 5 then 2 else 1 end
    Here LENGTH(saw_0) > 5 will return only month records (i.e)200901,200902 etc
    4.Now click on column properties of the new column added in step2, goto conditional formatting->Add Condition ->Select the column added in step 3 ->
    Case when LENGTH(saw_0) > 5 then 2 else 1 end = 2 then format -> Horizontal Alignment = Right and Vertical Alignment=Top
    This will indent the month column to right. This will work when exported to pdf.
    Regards,
    Dpka

  • How do I "space after" every other line?

    I am trying to set up a listing of names and dollars like this...
    name
    dollar amount
    name
    dollar amount
    name
    dollar amount
    name
    dollar amount
    After the dollar amount I need to it have a space of 0.625, I am creating this list as text which I have converted from a table. Right now I have to just click on the line a and manual hit the "space After" option to put the 0.625 spacing in there. Is there a way to do this all at once because there will be at least 300 names every time I do this? So i need to be able to have the spacing on every other line...
    Thanks,
    Sam

    I use a body text style with Space Before and have a Bullets_FirstLine style with space before. I have the Next Style of BulletsFirstLine as as Bullets, which does not have any Space Before. This means that I can automatically apply the styles to the bullets when either typing directly or, more frequenty by highlighting all the paragraphs to be bulleted and right clicking on BulletsFirstLine and selecting "Apply Style then Next Style". I cannot remember the exact wording - I don't have InDesign open at the moment.

  • Pause after every character typed into title text

    Typing text into title delays for 3 seconds after each character typed.
    The best work around I found was to type the text into textedit and paste once done.
    Any other suggestions?

    Is 4 the maximum number of characters that can be entered?
    Then the solution is easy:
    - set the maximum lenght property of the item to '4'
    - set the automatic skip property to 'YES'
    I hope this helps...

  • I'm asked to allow add-ons install after every reboot (all the add-ons list, one by one)

    Every time I reboot, when I lauch Firefox, I get one tab for each "installed" extension, asking to "allow the install" of the extension.
    Now that I'm thinking about it, the problem persists since firefox 5 or 6, but it is only now at 8 that it shows me a tab for each extension. Before the alerts were hidden in the extensions manager.
    So, After I installed the extension, there is no reason to ask me again and again to "install it" or "allow it".
    The "add-on compatibility reporter" I installed only a couple of days ago, so I can have Google toolbar back.
    How can I get rid of this absurd problem?

    Do not double-click the file, but use "Open with" in the right-click context menu to open the file in a text editor like Notepad.
    You can copy the file to another folder or let Windows create a copy with a number appended to the name in the same folder.

  • How to add an space for every line in a text file in 46.B?

    Hi Friends!!
    My problem is the following,
    I need to add spaces in all lines of a text file
    Ej.'ABC ' , I'm using GUI_DOWNLOAD to download the internal table, but the function truncates all spaces, as it is 46B doesn't have the option for allowing the spaces at the end of each line,
    Do you know what can I do?? is there any other function module I could use?? I also tried with WS_DOWNLOAD but it didn't help!
    Thanks so much in advance!!!
    Frinee

    This a short example:
    data: begin of mytable occurs 0,
            line(2),
            lspace type x value '20',
            lenter type x value '0D0A',
          end of mytable.
    mytable-line = '1'.
    condense mytable-line.
    append mytable.
    mytable-line = '2'.
    condense mytable-line.
    append mytable.
    mytable-line = '3'.
    condense mytable-line.
    append mytable.
    call function 'GUI_DOWNLOAD'
         EXPORTING
           BIN_FILESIZE = 50
            FILENAME = 'C:\mybinfile.txt'
            FILETYPE = 'BIN'
         TABLES
            DATA_TAB = mytable
         EXCEPTIONS
           others = 9.

  • Add a row after every n records

    Hi
    I have a query that returns only one column
    Column1
    a
    b
    c
    d
    g
    e
    f
    g
    h
    I want to add 01 as the first row and then after 5 records i want to add 02 then 03 after another 5 records and so on i.e
    Column1
    01
    a
    b
    c
    d
    e
    02
    f
    g
    h
    How can this be done?

    Hi,
    Nice post.
    Regards salim.
    other solution.
    SELECT res
      FROM t
    model
    dimension by( row_number()over(partition by 1 order by rownum) rn)
    measures(col1,cast ( col1 as varchar2(20)) as res, count(1)over(partition by 1) cpt,trunc(rownum/5) diff)ignore nav
    (diff[for rn from 1 to cpt[1]+trunc((cpt[1]+cpt[1]/5)/5) increment 1]=
    case when diff[cv(rn)] is present then  diff[cv(rn)]
    else   case when mod(cv(rn),5)=0 then
           diff[cv(rn)-1]+1
           else diff[cv(rn)-1]end 
    end,
    res[for rn from 1 to cpt[1]+trunc((cpt[1]+cpt[1]/5)/5) increment 1]=
      case when mod(cv(rn),5)=0 then 
           to_char((cv(rn)/5),'fm00')
      else  col1[cv(rn)-diff[cv(rn)]]end )
    SQL> WITH t AS
      2       (SELECT 'a' col1
      3          FROM DUAL
      4        UNION ALL
      5        SELECT 'b'
      6          FROM DUAL
      7        UNION ALL
      8        SELECT 'c'
      9          FROM DUAL
    10        UNION ALL
    11        SELECT 'd'
    12          FROM DUAL
    13        UNION ALL
    14        SELECT 'g'
    15          FROM DUAL
    16        UNION ALL
    17        SELECT 'e'
    18          FROM DUAL
    19        UNION ALL
    20        SELECT 'f'
    21          FROM DUAL
    22        UNION ALL
    23        SELECT 'g'
    24          FROM DUAL
    25        UNION ALL
    26        SELECT 'h'
    27          FROM DUAL
    28        UNION ALL
    29        SELECT 'i'
    30          FROM DUAL
    31        UNION ALL
    32        SELECT 'j'
    33          FROM DUAL
    34        UNION ALL
    35        SELECT 'k'
    36          FROM DUAL
    37          UNION ALL
    38        SELECT 'l'
    39          FROM DUAL
    40          UNION ALL
    41        SELECT 'm'
    42          FROM DUAL
    43          UNION ALL
    44        SELECT 'o'
    45          FROM DUAL
    46          UNION ALL
    47        SELECT 'p'
    48          FROM DUAL
    49          UNION ALL
    50        SELECT 'q'
    51          FROM DUAL
    52          UNION ALL
    53        SELECT 'z'
    54          FROM DUAL
    55          UNION ALL
    56        SELECT 'z'
    57          FROM DUAL
    58          UNION ALL
    59        SELECT 'z'
    60          FROM DUAL
    61          UNION ALL
    62        SELECT 'y'
    63          FROM DUAL)
    64  SELECT res
    65    FROM t
    66  model
    67  dimension by( row_number()over(partition by 1 order by rownum) rn)
    68  measures(col1,cast ( col1 as varchar2(20)) as res, count(1)over(partition by 1) cpt,trunc(rownu
    m/5) diff)ignore nav
    69  (diff[for rn from 1 to cpt[1]+trunc((cpt[1]+cpt[1]/5)/5) increment 1]=
    70  case when diff[cv(rn)] is present then  diff[cv(rn)]
    71  else   case when mod(cv(rn),5)=0 then
    72         diff[cv(rn)-1]+1
    73         else diff[cv(rn)-1]end 
    74  end,
    75   res[for rn from 1 to cpt[1]+trunc((cpt[1]+cpt[1]/5)/5) increment 1]=
    76    case when mod(cv(rn),5)=0 then 
    77         to_char((cv(rn)/5),'fm00')
    78    else  col1[cv(rn)-diff[cv(rn)]]end )
    79 
    SQL> /
    RES
    a
    b
    c
    d
    01
    g
    e
    f
    g
    02
    h
    i
    j
    k
    03
    l
    m
    o
    p
    04
    q
    z
    z
    z
    05
    y
    26 ligne(s) sélectionnée(s).
    SQL> Edited by: Salim Chelabi on 2009-04-15 13:35

  • ConvertNumber: Add a space after currencySymbol

    Hi,
    I am trying to figure out the currency converter in jsf and have come to a problem that I seem unable to resolve.
    <h:outputText value="#{vehicle_types.consumerprice.value}">
         <f:convertNumber type="currency" currencySymbol="AU$"/>
    </h:outputText>The above code results in eg. AU$100.00.
    However, could anyone help me how I can make sure that a space is added after the currencySymbol so that I get "AU$ 100.00" ?
    Thanks,
    Steven

    Oh well, nevermind me, adding a space was enough, I just hadn't restarted my server nor cleaned up the working directory decently.
    Thanks anyway ;)

  • Brand new Notebook Keyboard adds a "space" after pressing the "B" key?!

    My brand new HP ENVY 17 SELECT EDITION NOTEBOOK PC 's keyboard keeps adding a space everytime I press the "B" key.... HALP?      
    Example: "B rand new PC"

    Have you tried this?
    To Perform A Hard Reset
    Shut down the computer by going to the Start menu and selecting shut down. (If you have no display, hold the power button down for  5 seconds)
    Disconnect the AC Adapter from the notebook.
    Remove the battery from the bottom of the notebook.  There will be a switch/button to eject the battery.
    Wait at least 1 minute with all power sources disconnected.
    Re-insert the battery and reconnect the AC Adapter and then attempt to power on the notebook.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Add period after every footnote number

    I have a document with footnotes in the Word style, with the number superscripted. I want the footnote reference in the text to be superscripted, but not the corresponding number on the footnote. I'd like that to be the same size as the footnote text. I can change all these using find/change, but while I'm at it, I would like to add a period after every footnote number. Would someone be willing to suggest a way to do this? Thanks.

    I'd suggest experimenting with the "Separator" category under Type > Document Footnote Options.

  • Dead space after video slide on export

    We create presentations consistating of video and photos combined with text and export them to Mov for use on AppleTVs(1st gen).
    When I have a slide of a video there is a 25 sec black space after the conclusion of the videos that I cannot get rid off. The transition for the slide containing the video is the same time as the video...but again it adds 25 sec after that before the next slide begins.
    Any ideas?

    Have you tried starting the export and going to lunch so your Mac can work without you standing over it? I'm not saying that you're wrong, just that sometimes these jobs take more time than we might have the patience for, and what looks like a freeze is just hard work going on. Check the cpu usage on your Activity Monitor while the export is going on and see how busy Keynote is. Even if Activity Monitor reports that Keynote is not responding, if the cpu usage is high, come back after lunch and see what progress has been made.
    Jerry

Maybe you are looking for