Problem about ZHT32EUC encoding database and JDBC clients

We have encountered a problem with the following configuration:
Oracle Database Server
AIX
Oracle 8.1.7 - ZHT32EUC character encoding
Clients are Java Applet/Servlet/JSP/EJB, as well as an other
ZHT32EUC database for some data import/export (abbr as OLD).
the problem we have is, no matter what we had set (the NLS_LANG
environment variable) on the Java clients, we cannot read the
ResultSet.getString() with the DB link and imported data from
the OLD correctly. However, with the data we inserted with our
own Java clients, it can be read flawlessly with JDBC calls.
Any suggestions will be appreciated.
Cheng Chun Kit
Software Specialist
Automated Systems (HK) Ltd

Hard to tell, as you are not providing a lot of details. What is
the OS that your other database is on. What are you actually
setting NLS_LANG to? Are you using Oracle's JDBC driver or
someone elses? Please describe? Which driver, OCI or thin
driver? I would advise you to use the dump command to look at
the data. I suspect you have not loaded the data properly to the
database.

Similar Messages

  • A problem about Chinese encoding

    When i access portal by SSL,I find one or two problems about encoding.
    reshow these problems:
    1. Locale be set to Chinese(zh_CN)
    2. access portal by SSL
    3. Administration/create portlet
    Then the popup window's title will show a bad encoding.
    otherwise,if i search chinese, then only have bad encoding shown in the searchbox and i can't get anything.
    MY running enviroment:
    windows 2003
    plumtree foundation v6.0
    plumtree publisher v6.2
    tomcat 5.0.58 with jre_1.4.2.08
    MSSql 2000 sp4
    and I have tried other BEA ALUI newer version,I can get these problems.
    I'm appreciated for any help.

    ANSI 0xFF is NBSP. NBSP in Unicode is 0x00A0... so neither 0x00FF (which is �) nor 0xF5F8 (which is in the "private use" range) is correct. Something really weird is going on.We are talking about CP1252 and in CP1252 0xFF is �
    (see http://czyborra.com/charsets/iso8859.html for example) and thus is \u00FF correct.
    btw. I would never use windows notepad as reference application.

  • Problem in retreiving from database and viewing it in browser--urgent

    hai,
    i have develped an application using swings where the mails received from client and reply posted will be pasted in JEditorPane. all the mails,query and reply will be stored in database.
    then iam retrieving the mails from database and displaying it in browser using table data.(Just like forum). Iam using encodehtmltag function to omit the html tags that r present in the mail data.
    when i display it in browser it extends a page horizontically. how to avoid this. how to word wrap. one of my friend asked me to set number of character to be displayed per line. i did that. but problem is i could see the word break . i have set 90 characters to be displayed per line. i dont want to break the word. for eg., if the end string of a line is regarding it is displayed like this---reg and then arding in next line. how to avoid this.
    please help me iam breaking my head with this for past few days.

    If the field is a Date in your database, you can use the ResultSet.getDate() method, which will return a java.sql.Date (which extends java.util.Date).
    You can then use SimpleDateFormat to format it the way you like.
    See the API doc for more details.

  • Problem of Teststand3.1 database and microsoft SQL Server 2000 personal edition

    I have a problem when using teststand database function with Microsoft sql server 2000. the error(seen in attached screenshot3.jpg) is:
    "An error occurred calling 'LogResults' in 'ITSDBLog' of 'DBLog 1.0 Type Library'
    An error occurred executing a statement.
    Schema: Generic Recordset (NI).
    Statement: UUT_RESULT.
    [Microsoft][ODBC SQL Server Driver][SQL Server]unable to insert NULL value to column "ID", table "test.dbo.UUT_RESULT";This column is not alowed to be blank. INSERT Failed. Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    [Microsoft][ODBC SQL Server Driver][SQL Server]terminated.
    Source: TSDBLog"
     Here I listed my proceess.
    1, Configure in SQL Sever, please see attached screenshot0.jpg
       a, Open SQL
       b, build a new database with the name of test
       c, import the data from "C:\Program Files\National Instruments\TestStand 3.1\Components\NI\Models\TestStandModels\Database\TestStand Results.mdb"
    2, Configure Microsoft SQL sever: please see attached screenshot1.jpg
       a, Open windows Control Panel and select "Data Sources (ODBC). Under system DSN tab, add a SQL server data source
    3, Configure teststand database option, see attached screenshot2.jpg
       a, configure logging option, enable
       b, configure datalink
       c, select schemas of "Generic recordset (NI)
       d, No change on the tabs of "statements" and "Columns/Parameters"
    4, run an seqence file with the proess model of SequentialModel.Seq.
    Attachments:
    Screenshot.zip ‏425 KB

    Thanks Scott,
      The database function is OK now after I changed imported tables in SQL Sever.
      Actually, I once tried anothor method that you refered by using the scripts
    located at: <TestStand>\Components\NI\Models\TestStandModels\Database\SQL Server Create Generic Recordset Result Tables.sql. Attached is the error screenshots, please help me on this.
    Thanks
    Jacky
    Attachments:
    Error.jpg ‏59 KB

  • Beginners question about creating first database and tables

    Hi all,
    i recently have installed 10g express edition, because i want to transform my php-script from mysql to oracle database. (due to the fact that mysql is "not allowed sofware" at the company i work for).
    it is a quit small script, just a shift-report system, build because of frustration about an used shift report system based on excel sheets. Company likes it, but IT-department rejected it, because it is myssql. They do own a lot of oracle servers, so they set up a database for me, got a username and password.(Tnsnames entry). The rest i have to do by myself, no further support from IT department.
    I have made 2 simple php functions to connect to database:
    // for connection home server:
    function conn()
         $user = 'user';
         $password = 'password';
         $conn = oci_connect($user, $password, 'localhost/XE');
         return $conn;
    // for connection at work:
    function Xconn()
         $db = '(DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.eu.xxx.com)(PORT = 1521))
        (CONNECT_DATA = (SID = NVGPP)))';
         $user = 'xxxxxxxx';
         $password = 'xxxxxxx';
         $conn = oci_connect($user, $password, $db);
         return $conn;
    }I just add or remove X character before function name, for use at home or at work.
    both do work fine.
    First thing i wanted to do, is to create my database and tables.
    Schema dump from mysql:
    -- phpMyAdmin SQL Dump
    -- version 2.11.1
    -- http://www.phpmyadmin.net
    -- Host: localhost
    -- Generatie Tijd: 03 Aug 2010 om 21:35
    -- Server versie: 5.0.24
    -- PHP Versie: 5.2.4
    SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
    -- Database: `ewb`
    -- Tabel structuur voor tabel `afsprakenblad`
    CREATE TABLE IF NOT EXISTS `afsprakenblad` (
      `id` mediumint(8) unsigned NOT NULL auto_increment,
      `naam` tinytext NOT NULL,
      `afspraak` text NOT NULL,
      KEY `id` (`id`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COMMENT='Afsprakenblad' AUTO_INCREMENT=13 ;
    -- Tabel structuur voor tabel `verslag`
    CREATE TABLE IF NOT EXISTS `verslag` (
      `id` int(10) unsigned NOT NULL auto_increment,
      `ewb_id` int(10) unsigned NOT NULL,
      `datum` date NOT NULL,
      `dienst` tinytext NOT NULL,
      `ploeg` tinytext NOT NULL,
      `gebouw` varchar(10) NOT NULL,
      `installatie` tinytext NOT NULL,
      `subdeel` tinytext NOT NULL,
      `subsubdeel` tinytext NOT NULL,
      `sap` int(4) unsigned NOT NULL,
      `tekst` text NOT NULL,
      `status` tinyint(3) unsigned NOT NULL,
      `afdeling` tinytext NOT NULL,
      PRIMARY KEY  (`id`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4663 ;
    -- Tabel structuur voor tabel `wachtverslag`
    CREATE TABLE IF NOT EXISTS `wachtverslag` (
      `id` int(10) unsigned NOT NULL auto_increment,
      `datum` date NOT NULL,
      `dienst` tinytext NOT NULL,
      `team` tinytext NOT NULL,
      `afdeling` tinytext NOT NULL,
      `status` enum('open','dicht') NOT NULL default 'open',
      PRIMARY KEY  (`id`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=800 ;When i wanted to create a new databse with: CREATE TABLE ewb, i get an error that databse already is mounted??
    How do i create this database and tables?
    after googling i read something about schema owners, but cant find anything about how to copy my mysql database/tables to oracle.
    Please, help is really appreciated by me.

    Translating from mysql to Oracle will need a bit of fixups for the DDL, once an oracle instance is created, set up and running, you won't create a database but you will have a database user or users that create/own a collection of tables, indexes, functions, procedures, etc.
    It will take a bit of pouring through the oracle documentation to get those table create statements to work, i.e. the engine=, charset=, auto_increment items won't succeed, datatypes need adjustments, the tic marks around the entity names aren't necessary, quite a few other items from the mysql data definition language don't have an oracle equivalent.

  • Problems about linking the skype and the microsoft

    My skype account cannot link to the microsoft account(Before this, I already unlinked the original skype and microsoft) . When I logon the skype with my microsoft account, I found that there is an another skype account and this account is useless for me. Now I just want to delete the useless skype account of the microsoft and then link the original skype to the microsoft. What do I do to relink those accounts?

    The sequence you should be using is:
    1) start the listener, which will monitor the network for database requests
    lsnrctl start
    2) start and open the database, which will also register back to the listener. Could be done by a properly configured OEM DBConsole, or command line
    sqlplus / as sysdba
    startup
    exit
    3) If database started before listener, then you could register the database manually
    sqlplus / as sysdba
    alter system register;
    exit
    4) Verify that the listener knows about the database and will handle requests for the database
    lsnrctl status
    and check the output whether the database service is recognized.

  • Problem about writing txt file and  utl_put_line

    After some research on the internet I found the way how to writre files from Oracle 11g to a txt file.
    I read that utl_put_line only holds 32k per line and adds a new line at the end of each row but my problem it´s that if I want to open the file with SQL Server :D it doesn't recognize the CRLF so there is no end line and the last column has the data from the next row. The files are created on Linux so if I open them on Windows i have to convert into DOS format but if I try to open that file with Excel everything works fine, so I was wondering if there is a limit of columns or number of characters that can be on a txt file.
    There is my pl sql that I used to create my txt files:
    -------------------CODE-----------------------------
    declare
    cursor r1 is
    select * from dqstage.st_nomdetalle
    where sistema = 'NOR'
    and procesar = 0
    and identidad=02;
    cursor r2 ( p_parid number) is
    select * from dqstage.st_nomsubdetalle
    where par_id = p_parid
    and procesar = 0
    and sistema = 'NOR'
    and substr(nombrearchivo,6,2)=02;
    vcadena varchar2(4000);
    --vcadena1 varchar2(4000);
    vcadena1 clob;
    vcadena2 long;
    c number:=0;
    vencabezados long;
    archivo sys.utl_file.file_type;
    begin
    archivo:= SYS.UTL_FILE.FOPEN(location=>'UPEPE_DIR',filename=>'nor02.txt',open_mode=>'w',max_linesize=>32767);
    vencabezados :='FILEID|NOMBREARCHIVO|TIPOREGISTRO|IDENTIFICADORREGISTRO|FECHAEMISIONPAGO|CLAVETIPONOMINA|CLAVECT|TURNOCT|RFC|CURP|NUMEMPLEADOESTATAL'
    ||'|NUMSEGURIDADSOCIAL|NOMBRECOMPLETO|NOMBRES|PRIMERAPELLIDO|SEGUNDOAPELLIDO|CODIGOPAGADURIA|IDORIGENPRESUPUESTALPLAZA|CLAVEPRESUPUESTAL|'
    ||'PARTIDAPRESUPUESTAL|CODIGOPAGO|CLAVEUNIDAD|CLAVESUBUNIDAD|CLAVECATEGORIA|HSM|NUMEROPLAZA|CLAVENIVELPUESTO|CLAVENIVELSUELDO|ZONAECONOMICA|'
    ||'PERCEPCIONNETA|CLABECUENTA|NUMEROCHEQUE|CLAVEMOTIVOPAGORETROACTIVO|NUMTOTALPERDED|ERRORES|'
    ||'TIPOCONCEPTO1|CONCEPTOPAGO1|MONTO1|PERIODODEL1|PERIODOAL1|FUENTEFINANCIAMIENTO1|ORIGEN1|ERRORES1|'
    ||'TIPOCONCEPTO2|CONCEPTOPAGO2|MONTO2|PERIODODEL2|PERIODOAL2|FUENTEFINANCIAMIENTO2|ORIGEN2|ERRORES2|'
    ||'TIPOCONCEPTO3|CONCEPTOPAGO3|MONTO3|PERIODODEL3|PERIODOAL3|FUENTEFINANCIAMIENTO3|ORIGEN3|ERRORES3|'
    ||'TIPOCONCEPTO4|CONCEPTOPAGO4|MONTO4|PERIODODEL4|PERIODOAL4|FUENTEFINANCIAMIENTO4|ORIGEN4|ERRORES4|'
    ||'TIPOCONCEPTO5|CONCEPTOPAGO5|MONTO5|PERIODODEL5|PERIODOAL5|FUENTEFINANCIAMIENTO5|ORIGEN5|ERRORES5|'
    ||'TIPOCONCEPTO6|CONCEPTOPAGO6|MONTO6|PERIODODEL6|PERIODOAL6|FUENTEFINANCIAMIENTO6|ORIGEN6|ERRORES6|'
    ||'TIPOCONCEPTO7|CONCEPTOPAGO7|MONTO7|PERIODODEL7|PERIODOAL7|FUENTEFINANCIAMIENTO7|ORIGEN7|ERRORES7|'
    ||'TIPOCONCEPTO8|CONCEPTOPAGO8|MONTO8|PERIODODEL8|PERIODOAL8|FUENTEFINANCIAMIENTO8|ORIGEN8|ERRORES8|'
    ||'TIPOCONCEPTO9|CONCEPTOPAGO9|MONTO9|PERIODODEL9|PERIODOAL9|FUENTEFINANCIAMIENTO9|ORIGEN9|ERRORES9|'
    ||'TIPOCONCEPTO10|CONCEPTOPAGO10|MONTO10|PERIODODEL10|PERIODOAL10|FUENTEFINANCIAMIENTO10|ORIGEN10|ERRORES10|'
    ||'TIPOCONCEPTO11|CONCEPTOPAGO11|MONTO11|PERIODODEL11|PERIODOAL11|FUENTEFINANCIAMIENTO11|ORIGEN11|ERRORES11|'
    ||'TIPOCONCEPTO12|CONCEPTOPAGO12|MONTO12|PERIODODEL12|PERIODOAL12|FUENTEFINANCIAMIENTO12|ORIGEN12|ERRORES12|'
    ||'TIPOCONCEPTO13|CONCEPTOPAGO13|MONTO13|PERIODODEL13|PERIODOAL13|FUENTEFINANCIAMIENTO13|ORIGEN13|ERRORES13|'
    ||'TIPOCONCEPTO14|CONCEPTOPAGO14|MONTO14|PERIODODEL14|PERIODOAL14|FUENTEFINANCIAMIENTO14|ORIGEN14|ERRORES14|'
    ||'TIPOCONCEPTO15|CONCEPTOPAGO15|MONTO15|PERIODODEL15|PERIODOAL15|FUENTEFINANCIAMIENTO15|ORIGEN15|ERRORES15|'
    ||'TIPOCONCEPTO16|CONCEPTOPAGO16|MONTO16|PERIODODEL16|PERIODOAL16|FUENTEFINANCIAMIENTO16|ORIGEN16|ERRORES16|'
    ||'TIPOCONCEPTO17|CONCEPTOPAGO17|MONTO17|PERIODODEL17|PERIODOAL17|FUENTEFINANCIAMIENTO17|ORIGEN17|ERRORES17|'
    ||'TIPOCONCEPTO18|CONCEPTOPAGO18|MONTO18|PERIODODEL18|PERIODOAL18|FUENTEFINANCIAMIENTO18|ORIGEN18|ERRORES18|'
    ||'TIPOCONCEPTO19|CONCEPTOPAGO19|MONTO19|PERIODODEL19|PERIODOAL19|FUENTEFINANCIAMIENTO19|ORIGEN19|ERRORES19|'
    ||'TIPOCONCEPTO20|CONCEPTOPAGO20|MONTO20|PERIODODEL20|PERIODOAL20|FUENTEFINANCIAMIENTO20|ORIGEN20|ERRORES20|'
    ||'TIPOCONCEPTO21|CONCEPTOPAGO21|MONTO21|PERIODODEL21|PERIODOAL21|FUENTEFINANCIAMIENTO21|ORIGEN21|ERRORES21|'
    ||'TIPOCONCEPTO22|CONCEPTOPAGO22|MONTO22|PERIODODEL22|PERIODOAL22|FUENTEFINANCIAMIENTO22|ORIGEN22|ERRORES22|'
    ||'TIPOCONCEPTO23|CONCEPTOPAGO23|MONTO23|PERIODODEL23|PERIODOAL23|FUENTEFINANCIAMIENTO23|ORIGEN23|ERRORES23|'
    ||'TIPOCONCEPTO24|CONCEPTOPAGO24|MONTO24|PERIODODEL24|PERIODOAL24|FUENTEFINANCIAMIENTO24|ORIGEN24|ERRORES24|'
    ||'TIPOCONCEPTO25|CONCEPTOPAGO25|MONTO25|PERIODODEL25|PERIODOAL25|FUENTEFINANCIAMIENTO25|ORIGEN25|ERRORES25|'
    ||'TIPOCONCEPTO26|CONCEPTOPAGO26|MONTO26|PERIODODEL26|PERIODOAL26|FUENTEFINANCIAMIENTO26|ORIGEN26|ERRORES26|'
    ||'TIPOCONCEPTO27|CONCEPTOPAGO27|MONTO27|PERIODODEL27|PERIODOAL27|FUENTEFINANCIAMIENTO27|ORIGEN27|ERRORES27|'
    ||'TIPOCONCEPTO28|CONCEPTOPAGO28|MONTO28|PERIODODEL28|PERIODOAL28|FUENTEFINANCIAMIENTO28|ORIGEN28|ERRORES28|'
    ||'TIPOCONCEPTO29|CONCEPTOPAGO29|MONTO29|PERIODODEL29|PERIODOAL29|FUENTEFINANCIAMIENTO29|ORIGEN29|ERRORES29|'
    ||'TIPOCONCEPTO30|CONCEPTOPAGO30|MONTO30|PERIODODEL30|PERIODOAL30|FUENTEFINANCIAMIENTO30|ORIGEN30|ERRORES30|'
    ||'TIPOCONCEPTO31|CONCEPTOPAGO31|MONTO31|PERIODODEL31|PERIODOAL31|FUENTEFINANCIAMIENTO31|ORIGEN31|ERRORES31|'
    ||'TIPOCONCEPTO32|CONCEPTOPAGO32|MONTO32|PERIODODEL32|PERIODOAL32|FUENTEFINANCIAMIENTO32|ORIGEN32|ERRORES32|'
    ||'TIPOCONCEPTO33|CONCEPTOPAGO33|MONTO33|PERIODODEL33|PERIODOAL33|FUENTEFINANCIAMIENTO33|ORIGEN33|ERRORES33|'
    ||'TIPOCONCEPTO34|CONCEPTOPAGO34|MONTO34|PERIODODEL34|PERIODOAL34|FUENTEFINANCIAMIENTO34|ORIGEN34|ERRORES34|'
    ||'TIPOCONCEPTO35|CONCEPTOPAGO35|MONTO35|PERIODODEL35|PERIODOAL35|FUENTEFINANCIAMIENTO35|ORIGEN35|ERRORES35|'
    ||'TIPOCONCEPTO36|CONCEPTOPAGO36|MONTO36|PERIODODEL36|PERIODOAL36|FUENTEFINANCIAMIENTO36|ORIGEN36|ERRORES36|'
    ||'TIPOCONCEPTO37|CONCEPTOPAGO37|MONTO37|PERIODODEL37|PERIODOAL37|FUENTEFINANCIAMIENTO37|ORIGEN37|ERRORES37|'
    ||'TIPOCONCEPTO38|CONCEPTOPAGO38|MONTO38|PERIODODEL38|PERIODOAL38|FUENTEFINANCIAMIENTO38|ORIGEN38|ERRORES38|'
    ||'TIPOCONCEPTO39|CONCEPTOPAGO39|MONTO39|PERIODODEL39|PERIODOAL39|FUENTEFINANCIAMIENTO39|ORIGEN39|ERRORES39|'
    ||'TIPOCONCEPTO40|CONCEPTOPAGO40|MONTO40|PERIODODEL40|PERIODOAL40|FUENTEFINANCIAMIENTO40|ORIGEN40|ERRORES40|'
    ||'TIPOCONCEPTO41|CONCEPTOPAGO41|MONTO41|PERIODODEL41|PERIODOAL41|FUENTEFINANCIAMIENTO41|ORIGEN41|ERRORES41|'
    ||'TIPOCONCEPTO42|CONCEPTOPAGO42|MONTO42|PERIODODEL42|PERIODOAL42|FUENTEFINANCIAMIENTO42|ORIGEN42|ERRORES42|'
    ||'TIPOCONCEPTO43|CONCEPTOPAGO43|MONTO43|PERIODODEL43|PERIODOAL43|FUENTEFINANCIAMIENTO43|ORIGEN43|ERRORES43|'
    ||'TIPOCONCEPTO44|CONCEPTOPAGO44|MONTO44|PERIODODEL44|PERIODOAL44|FUENTEFINANCIAMIENTO44|ORIGEN44|ERRORES44|'
    ||'TIPOCONCEPTO45|CONCEPTOPAGO45|MONTO45|PERIODODEL45|PERIODOAL45|FUENTEFINANCIAMIENTO45|ORIGEN45|ERRORES45|'
    ||'TIPOCONCEPTO46|CONCEPTOPAGO46|MONTO46|PERIODODEL46|PERIODOAL46|FUENTEFINANCIAMIENTO46|ORIGEN46|ERRORES46|'
    ||'TIPOCONCEPTO47|CONCEPTOPAGO47|MONTO47|PERIODODEL47|PERIODOAL47|FUENTEFINANCIAMIENTO47|ORIGEN47|ERRORES47|'
    ||'TIPOCONCEPTO48|CONCEPTOPAGO48|MONTO48|PERIODODEL48|PERIODOAL48|FUENTEFINANCIAMIENTO48|ORIGEN48|ERRORES48|'
    ||'TIPOCONCEPTO49|CONCEPTOPAGO49|MONTO49|PERIODODEL49|PERIODOAL49|FUENTEFINANCIAMIENTO49|ORIGEN49|ERRORES49|'
    ||'TIPOCONCEPTO50|CONCEPTOPAGO50|MONTO50|PERIODODEL50|PERIODOAL50|FUENTEFINANCIAMIENTO50|ORIGEN50|ERRORES50';
    --||'TIPOCONCEPTO51|CONCEPTOPAGO51|MONTO51|PERIODODEL51|PERIODOAL51|FUENTEFINANCIAMIENTO51|ORIGEN51|ERRORES51';
    sys.utl_file.put_line(archivo, vencabezados);
    for i in r1 loop
    c:=c+1;
    vcadena := i.fileid||'|'||i.nombrearchivo||'|'||i.tiporegistro||'|'||i.identificadorregistro||'|'||i.fechaemisionpago||'|'||i.clavetiponomina||'|'||i.clavect||'|'||i.turnoct||'|'||i.rfc
    ||'|'||i.curp||'|'||i.numempleadoestatal||'|'||i.numseguridadsocial||'|'||i.nombrecompleto||'|'||i.nombres||'|'||i.primerapellido||'|'||i.segundoapellido||'|'||i.codigopagaduria
    ||'|'||i.idorigenpresupuestalplaza||'|'||i.clavepresupuestal||'|'||i.partidapresupuestal||'|'||i.codigopago||'|'||i.claveunidad||'|'||i.clavesubunidad||'|'||i.clavecategoria||'|'||i.hsm
    ||'|'||i.numeroplaza||'|'||i.clavenivelpuesto||'|'||i.clavenivelsueldo||'|'||i.zonaeconomica||'|'||i.percepcionneta||'|'||i.clabecuenta||'|'||i.numerocheque||'|'||i.clavemotivopagoretroactivo
    ||'|'||i.numtotalperded||'|'||i.errores;
    vcadena1:=null;
    for j in r2 (i.fileid) loop
    vcadena1 := vcadena1||'|'|| j.tipoconcepto||'|'||j.conceptopago||'|'||j.monto||'|'||j.periododel||'|'||j.periodoal||'|'||j.fuentefinanciamiento ||'|'||j.origen||'|'||j.errores;
    end loop;
    sys.utl_file.put_line(archivo, vcadena2);
    end loop;
    sys.utl_file.fclose(archivo);
    end;
    As you can see I write the column names first and with a loop I add the data, so I can have a very large column at the end.
    How can I add the CRLF at the end of each line to have it working with Windows?

    user2068122 wrote:
    After some research on the internet I found the way how to writre files from Oracle 11g to a txt file.
    I read that utl_put_line only holds 32k per line and adds a new line at the end of each row but my problem it´s that if I want to open the file with SQL Server :D it doesn't recognize the CRLF so there is no end line and the last column has the data from the next row. The files are created on Linux so if I open them on Windows i have to convert into DOS format but if I try to open that file with Excel everything works fine, so I was wondering if there is a limit of columns or number of characters that can be on a txt file.
    <snip>
    Oracle is simply passing a string of characters to the OS to be written to a file in the host OS's native text format. That format is different from Windows and nix.  Windows will append a CR-LF pair to the end of the provided character string, as its end-of-record delimiter.  nix will append only a CR (or is it LF?) as its end-of-record delimiter. This is purely and OS issue that Oracle knows or cares nothing about. It is also something that must always be kept in mind when passing files between *nix and Windows.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problems about financial reporting studio and planning

    Hi,all:
    Here are two problems:
    1. after i have installed the fr client in my pc,when i connect to the server,it promot an error infomation as follow:
    ; nested exception is:
         java.lang.NullPointerException
    and i can't open the fr interface and view the fr report
    2. When i create a new rule under business rules folder in Essbase Administration Servers,i select the outlin,but only the Essbase applications i can choose in the "avilable server",there is no Planning applications.
    Hope someone can give me a hand.
    Thanks very much.

    What's the version of Hyperion that you are using?
    For the first issue, if this is working in somebody else's pc, I would be suspected by your pc's security/java settings.
    For the second issue you mentioned below is possible answers:
    1. You can't write business rules against EPMA apps in AAS. Use calcmanager instead.
    2. Login to planning with your user name, launch a form, go back to AAS and try again.
    3. Make sure you've got access to write rules in AAS.
    Cheers,
    Alp

  • Problem about file content type and firefox

    Hi,
    The Firefox made me mad because cant do a simple job : download a XML file. I have a big XML file that crash Firefox when try to open it,
    so download may be best choice but always Firefox start to show XML files. what is the solution?
    It is first, second : I make my XML file using JavaScript and show it with data URL like this : data:text/xml;...
    but same not work with csv files, I want when user save csv file, Firefox save it with .csv ext not .part
    plz help me fast.

    Hi,
    We use the file content convertion to conver the flat file that is text file into XML,
    File adapter cant understand the format the file is,so we have to declare the content convertion parameters.
    Check some links which will tell how the convertion is done.
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Phani
    Reward points if helpful

  • A technique problem about integration on sap and pos equipment

    hi~everyone
       I have two questions to need  every's friend help.
       (1) I have some business data,i want to create the idoc file by ABAP and save   
            the idoc file to application server.
       (2) The external system create a idoc file and send it to sap application server,
            i want to read the idoc file and create a invoice by idoc message .
      I want to come true the function hereinbefore,what should i do ? give some code
       or cues please ,thank you evey much !

    Hi,
    IDOCs are used to direct communicate between two systems, sometime there may be a middleware(like XI) involved.
    Why do you want to save the data to applications server then?
    Regards,
    Atish

  • Help me , there is a problem about xcontrol's property and method vi!

    Hi everyone,
    we know xcontrol's property or method is a vi actually when we create them.
    we are also sure there are two ways(static and dynamic way) for invoking a vi at least.
    So when we evaluate xcontrol by property node or execute method through method node, does labview dynamically invoke the property or method vi ?  if labview dynamically invokes them,does owner vi wait them done or not?  

    What you could do is create a pumping scheme, that pumps the data into the Facade VI and handle the number crunching there, however that would block the execution of events in the facade VI.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Problem about Tomcat4.1.12 and Servlet

    After Tomcat4.1.12 installed,running the servlet examples which kept in the webapps\examples\web-inf\classes, it ran fine. but when i copied the classes directory totally to webapps\ROOT\WEB-INF(default path for servlet in tomcat4.1.12)��� it could not run.
    How can i do this ?
    Thanks in advance.

    But how can i do next?Because the destination directory is under ROOT which is the servlet default directory,after copied,the servlets should be run finely.but����

  • Modify master database and client database simultanously

    Hello,
    I am developing a software based on Oracle Database Lite for a student research project which is a flight booking system, and I have the following requirement:
    In some cases, I need to do a modification on the master database and the client database simultanously. In my case, a flight booking is only possible when a server connection ist available. This is necessary to check if there are still seats available for a flight. If there are, the resulting changes shall be done on the client and the server database simultanously, using a distributed transaction.
    Does Oracle Database Lite have a mechanism for that, or is there someting like an "online mode"? I could not find any information about it in the documentation. Or do I have to implement a distributed transaction myself, for example using webservices?
    Message was edited by:
    user615624
    Annotation: I am using Oracle Lite on Windows Mobile 5.0 and I am using the .NET Compact Framework 3.5

    I am not sure how you would do it in Windows but with Java, I would have a static connection manager. If a connected online state is required, then just use to Oracle driver instead of the oracle lite with the new credentials and that should fix your situation.

  • Database and ejb access in Input Processor, custom Validator

    Hi guys,
    I know the Portal docs recommend that database and ejb calls should be done in
    a Pipeline Component. Are transactions the only concern?
    I'd like to validate two fields. This can be easily accomplished by a an ejb
    method call that returns a boolean for one, and by running a simple select statement
    for the other. Are there any risks to creating custom validator classes to do
    this?
    Thanks

    David,
    Here are the characterstics of Pipelines and IPs:
    Inputprocessors:
    - Web App scope (classloaded by webapp classloader)
    - simple java class
    Pipelines/Pipeline Components:
    - Enterprise App scope (available to all webapps)
    - java class or EJB
    - can be transactional (can even rollback PipelineSession)
    - Pipelines executed from within the EJB container
    There is nothing illegal about putting EJB calls and JDBC calls into an Inputprocessor.
    For simple validation, this is probably okay. However, when doing heavy business
    logic, having the Pipeline manage a single transaction for your PCs is wonderful.
    PJL
    "David Sun" <[email protected]> wrote:
    >
    Hi guys,
    I know the Portal docs recommend that database and ejb calls should be
    done in
    a Pipeline Component. Are transactions the only concern?
    I'd like to validate two fields. This can be easily accomplished by
    a an ejb
    method call that returns a boolean for one, and by running a simple select
    statement
    for the other. Are there any risks to creating custom validator classes
    to do
    this?
    Thanks

  • Co-existing 9i and 10g clients

    I have a mobile application running on about 300 9i Lite clients on WinCE 3.01 syncing over GPRS with 9i Mobile Server and a 9i database. I'm planning to upgrade the clients to a WM5/6 device and want to avoid a big bang cutover.
    My initial thought is to upgrade Mobile Server to 10gR3, keeping 9i DB and the existing devices on 9i Lite. I would then introduce 10g Lite clients in phases so that the 9i Lite clients would be replaced over a couple of months.
    I've had various reponses from Oracle about how well 9i and 10g clients will co-exist against a 10g Mobile Server - the summary of which is that it should work but it's not recommended or supported.
    Does anyone have experience of whether this is a viable production solution during the transition period? Or are there any better ways to do a phased client cutover?
    Thanks.

    I am in a similar predicament at the moment as well. I know they can co-exist, but I have run into issues on a win32/webtogo platform. I will update this post if I find a bullet proof way of doing it.

Maybe you are looking for

  • How difficult should it be to redeem a "My BestBuy' reward certificate???

    Back, on August 11, 2014, I logged into "My Best Buy' account, and saw that I had 1500+ points available, so I attempted to print a $25 reward gift certificate, to purchase an item in-store.  I got an error, stating that there was an error and to try

  • How do I transfer everything from my old iPod to the new one for FREE?

    I just purchased a new iPod Classic (7th Gen) and need to copy everything over to my new iPod. I was trying to use "iPod 2 iPod" but they want $40 for it and I am not spending $40 just to do a one time transfer. Is there any program out there that do

  • Named destinations - unicode

    Hi i am wondering how i can use named destinations that has special letters in them linking from a homepage? My Document.pdf#target dãc I get it to work using the command line: AcroRd32.exe /A "nameddest=target dãc" "My Document.pdf" and i get html l

  • Upgrading a Report from Crystal Reports 10 to Crystal Reports 11

    Post Author: Chakradhar CA Forum: Upgrade to XI 3.0 HI All, Please provide a solution for this.. Is there any way to change the version of a report without redesigning the report? If we upgrade the report without redisign, dont we lose the special fe

  • 'Error when generating the selection screen "0500"

    Dear all, I have copied a function group QEES to ZQEES through SE80. In that I have copied all screens, includes, function modules etc.. Now when I activate the ZQEES, I get an error 'Error when generating the selection screen "0500" of report "SAPLZ