SQLPlus Output issue

Running mutiple versions of SQLPlus with the same issue : 11.1.0.6.0, 11.1.0.7.0, 11.2.0.1.0 connecting to an external suppliers 9.2.0.8 database
Batch file calls a number of sql scripts and creates and then appends the output to a file like this :
sqlplus -s user@server @SQLStatement.sql >> %FILENAME%.TMP
Within the SQL Statment we've got the following set statements then the select :
set pagesize 0
set heading off
set echo off
set verify off
set linesize 3999
set long 1000000
select lots of XMLELEMENTs Where .......
Within the output there are single space's, when the end of the line should be a space it actually drops the space and has the next line just after the last character.
Changing the linesize has no effect other than decressing the number of times it happens by having a less rows by having a larger number.
Is there a way to get the missing space back within Oracle or will I need to modify the tmp file with something like sed ?
Many Thanks

... But honestly I wasn't facing to any problem with the older version.Neither I, but who knows... Here is a list of add-ons and bugs fixed since version 0.24. The list is extracted from rlwrap's "NEWS" file.
0.28 rlwrap bug that caused termcap problems on Fedora Core 6
fixed (thanks Tung Nguyen)
0.27 when stdin is not a terminal, rlwrap will now exec() the
specified command instead of complaining
when stdout or stderr is not a terminal, rlwrap will re-open
it to /dev/tty (the users terminal) after forking off the
specified command (so "rlwrap cat > file" will work as a
quick and dirty line editor)
rlwrap now remembers inputs of length 1
-D option to tell rlwrap how agressively it should weed out
duplicate history entries
-H option added (history format string)
Added temporary fix for termcap weirdness on Fedora Core 6
new -t option for a quick check of terminal capabilities
(requires configuration with --enable-debug)
rlwrap -s 0 <command> will now zap <commands> history
fixed broken reporting of unrecognised options
0.26 configure on FreeBSD 6.0 still didn't find libutil
some files were unnecessarily kept open (thanks Stephan Springl)
on each platform, rlwrap -h now accurately reflects whether
rlwrap can use long options or optional arguments
0.25 rlwrap would print input twice when in vi-mode
rlwrap under FreeBSD 6.0 now uses openpty() from libutil (config
script fixed)
-P option added (one-shot rlwrap with pre-given prompt)
Until now, whem the underlying command was killed by a signal,
rlwrap would just exit with exit code 0. Now rlwrap will
cleanup, reset its signal handlers and then send the same signal
to itself - so that rlwraps parent (usually a shell) doesn't see
the difference with an un-rlwrapped command
Regards
N.J.

Similar Messages

  • PO output issue

    Hello all Gurus,
    I have a problem with the PO output form. We have created new output types and tested them in quality environment and found that the PO is generating the correct output. Then we moved these output types to production environment and tested with our production user ids. There also, the system generated the correct PO output forms.
    But when my client tested the outputs he is not getting data in Bill to address and Registration boxes. These two boxes contains the company code address. The system is displaying only the hardcoded data for the client. Not the company code data which is picked up from the tables through the form program. Can somebody suggest me why my client is getting this issue when we are not getting with our user ids in production?
    Also, I don't think this is a problem of authorization roles, since this issue is coming only for the company code 3278.
    For the rest of the company codes, the user is getting the correct PO forms. Only for Company code 3278, he is getting the incorrect output issue.
    We tried to modify the program by updating the font size and character format. But this didn't work.
    This issue has been there in my queue since the last one month and it has exceeded the permitted time limit. We are really bothered about this issue but not getting any correct solution for this.
    Please, somebody provide me some valuable suggestions on this issue.
    Thanks and Regards,
    Umakanth.

    Murugan,
    1. For the client's user id, the PO output is not showing the company code data in the PO output form. But when we are trying to see the same thing in production in ME23N (we don't have access to make changes in production), we are getting the correct PO form that shows the company code address also.
    2. The company code 3278 and output types were created at the same time and moved to production.

  • How to format sqlplus output

    In previous OTN Forum format we used {code} to format sqlplus output , how to do in this version ?

    Click on "Use Advanced Editor".
    Highlight your code.
    Click on the symbol >>
    Select Syntax Highlighting
    Select SQL...output looks like below:
    select sysdate from dual;

  • HT6030 Sound output issue with Mavericks

    There is a sound output issue with Mavericks and Firewire800 Audio devices. I am using a MIO 2882 but now people are having issues with other devices as well. Is this something that will be addressed in an update? If not I will need to downgrade my OS.

    maybe the adapter went bad.....fast. try getting one thats made by sony. or apple. i have had bad luck with some cheap products i bought.
    or maybe thats the brand you have ad luck with. i remember when i use to get some quantom fireball drives, and they just died on me the next week. im down to two and keeping a good eye on them. especially fujitsu. the only ones i have GREAT LUCK with are Seagate and Western digitals drives.

  • FORMATTING SQLPLUS OUTPUT

    I am running a shell script
    shell script
    #!/bin/sh
    sqlplus /nolog <<EOF>/ora01/file1
    CONNECT aaa/bbb@abc
    select table_name from user_tables;
    exit
    EOF
    output
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Sep 13 17:01:53 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> Connected.
    SQL> SQL> SQL> SQL> SQL>
    COUNTRIES
    REGIONS
    JOBS
    JOB_HISTORY
    EMPLOYEES
    DEPARTMENTS
    LOCATIONS
    SQL> SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    desired result
    COUNTRIES
    REGIONS
    JOBS
    JOB_HISTORY
    EMPLOYEES
    DEPARTMENTS
    LOCATIONS
    how can i format my sqlplus output so that my desired result is as above.
    Thanks!

    Yes, this seem to work, however, only if connect is done not from within sqlplus but from the shell prompt.
    ~ >cat s.sh
    #!/bin/sh
    sqlplus -s scott/tiger <<EOF
    set term off feed off head off pages 0
    select table_name from user_tables;
    exit
    EOF
    ~ >./s.sh
    DEPT
    EMP
    BONUS
    SALGRADE
    SCHEME_CBFOWF1
    DR$SCHEME_CBFOWF1_IDX$I
    DR$SCHEME_CBFOWF1_IDX$R
    PROVATAB1
    DR$PROVAINDEX1$I
    DR$PROVAINDEX1$R
    CREATE$JAVA$LOB$TABLE
    X
    SYS_IOT_OVER_57950
    SYS_IOT_OVER_57953
    JAVA$OPTIONS
    PROVA1
    DR$PROVAINDEX1$N
    DR$PROVAINDEX1$K
    DR$SCHEME_CBFOWF1_IDX$N
    DR$SCHEME_CBFOWF1_IDX$KBest regards
    Maxim

  • Sqlplus formattin issue

    Hi,
    my database version is:
    BANNER                                                                         
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production         
    PL/SQL Release 11.2.0.1.0 - Production                                         
    CORE     11.2.0.1.0     Production                                                     
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production                        
    NLSRTL Version 11.2.0.1.0 - Production                                          I execute the following statements in sqlplus:
    set serveroutput on size unlimited
    set linesize 100
    col lvl format 9999
    col txt format a80
    set pagesize 9999
    select level lvl
          , rpad ('*', level * 20, 'The quick brown fox jumps over the lazy dog') txt
       from dual
    connect by level <= 10;The col keyword instruct sqlplus to keep the width of column txt to 80. This is causing word wrapping when column is longer than 80:
    Output:
      LVL TXT
        1 *The quick brown fox
        2 *The quick brown fox jumps over the lazy
        3 *The quick brown fox jumps over the lazy dogThe quick brown
        4 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
        5 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
          azy dogThe quick bro
        6 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
          azy dogThe quick brown fox jumps over th
        7 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
          azy dogThe quick brown fox jumps over the lazy dogThe quick
        8 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
          azy dogThe quick brown fox jumps over the lazy dogThe quick brown fox jumps over
        9 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
          azy dogThe quick brown fox jumps over the lazy dogThe quick brown fox jumps over
           the lazy dogThe qui
       10 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
          azy dogThe quick brown fox jumps over the lazy dogThe quick brown fox jumps over
           the lazy dogThe quick brown fox jumps oAny time the column is exceeding 80 character, after word wrapping is also adding a blank line (from id 5 onwards).
    This is not a big issue but is there any way to avoid this blank line?
    Regards.
    Al

    Hi, Al,
    SET     RECSEP  OFFeliminates the extra lines.
    The way to un-do that command is, unintuitively:
    SET     RECSEP  WRAPPED

  • Misaligned SQLPlus output

    Hi,
    Yes, I know this should go in the SQLPlus (tumbleweed) forum, but somebody there asked exactly the same question over a month ago and it still hasn't received even one attempted reply!
    So, simple question; why is the following output misaligned? Specifically, the value 14 for SAMPLE_SIZE is placed in the middle of its column, and consequently LAST_ANALYZED (21-feb-13) is shoved into the SAMPLE_SIZE column:
      1  select column_name, data_type, avg_col_len, density, num_distinct NDV, histogram, num_buckets buckets, sample_
    size, last_analyzed,data_type
      2  from dba_tab_cols
      3  where owner  = 'SCOTT'
      4  and table_name = 'EMP'
      5  and column_name = 'EMPNO'
      6* order by internal_column_id
    SYS@ORCL> /
    COLUMN_NAME               DATA_TYPE  AVG_COL_LEN     DENSITY          NDV HISTOGRAM       BUCKETS SAMPLE_SIZE LAST_
    ANAL DATA_TYPE
    EMPNO                     NUMBER               4  .071428571           14 NONE                  1       14 21-FEB-1
    3 NUMBER
    SYS@ORCL>Btw, the **** above should read A N A L (without the spaces) as in LAST_ANALYZED but a rather enthusiastic filter seems to be at work.
    Second question - I was wondering if I had entered a COLUMN ... FORMAT command that had screwed things up..but as far as I can tell, there is no way to retrieve the list of column formats that SQLPlus is currently using - or is there?
    *****Edit - ignore the second question - I just found that you can simply type
    COLUMNto get a listing of all column formatting instructions currently in use. I checked to see if SAMPLE_SIZE has any formatting applied to it and it does not.
    Many thanks,
    Jason
    Edited by: Jason_942375 on Mar 25, 2013 9:53 PM
    Edited by: Jason_942375 on Mar 25, 2013 9:55 PM

    Jason_942375 wrote:
    Hi guys
    Sorry, forgot to "watch" the thread.
    Well, thanks for your advice, which all seems to boil down to setting linesize. I should have said, I had already looked at this and discounted it as responsible for the issue. I've been able to refine the problem with the following use case:
    SCOTT@ORCL> SHOW LINESIZE
    linesize 120
    SCOTT@ORCL> DROP TABLE T;
    Table dropped.
    SCOTT@ORCL> create table T (X number);
    Table created.
    SCOTT@ORCL> insert into t values (14);
    1 row created.
    SCOTT@ORCL> commit;
    Commit complete.
    SCOTT@ORCL> select * from t;
    X
    14
    SCOTT@ORCL> select lpad('Z',100,'Z') dummy , X from T;
    DUMMY                                                                                                      X
    ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ      14
    SCOTT@ORCL>What you can see is that the formatting of the column X changes. When just that column is selected, all is fine. When it is output next to other column output, it gets misaligned.
    I think it may have something to do with the Window width, which I currently have set to 115.
    If I set the linesize to a few less (not one less) than 115, it seems to wrap the next column okay. But more testing is needed (though it's not exactly the kind of thing you want to waste hours on...although it's bloody annoying!!).Probably a combination of your window width, AND the font. If it is a 'proportional' font, a space will not be as wide as a "Z" or a "W" ... a string of spaces will tend to pull everything following it to the left. Oracle and SQLPlus have no control over how your windows client renders things.

  • Excel output issue from a semi colon separated sql file script

    Hi,
    I am executing a simple SQL script with back to back Select queries resulting in ; separated text output.
    I save this output as a text file and open in excel specifying delimited with ;.
    For example -
    SQL script is as follows-
    SET lines 5000
    SELECT 'Error Code'||';'||'Error Message'
    FROM dual
    SELECT lookup_code||';'||description
    FROM fnd_lookup_values
    WHERE lookup_type = 'NLUS_AR_INT_ERROR_MSG'
    ORDER BY TO_NUMBER(LTRIM(lookup_code,'E'))
    The output retrieved has the following 2 issues -
    1. A blank row is inserted after the "Error code Error message" row. I need to eliminate this blank row.
    2. The 2nd issue I am facing is an empty row is inserted after every 62 rows in the excel.
    Please let me know how I can eliminate these blank rows that are appearing after every 62 rows and in between each query's results.
    Thanks,
    Aditi

    For the first issue you can try the "prompt" command.
    For the second issue you can add a "set pagesize 0" command in your sqlplus-file.
    You can use "set trimspool on" to elimate blanks at the end of each line in your outputfile (if you want).
    set termout off
    set feedback off
    set heading off
    set echo off
    set linesize 5000
    set trimspool on
    set pagesize 0
    spool c:\temp\abc.txt
    Prompt Error Code;Error Message
    SELECT lookup_code||';'||description
    FROM fnd_lookup_values
    WHERE lookup_type = 'NLUS_AR_INT_ERROR_MSG'
    ORDER BY TO_NUMBER(LTRIM(lookup_code,'E'));
    spool offEdited by: hm on 31.03.2011 04:41

  • Output Issue in Delivery

    Hello Experts,
    I have assigned the Output type RD00  to Replishnment Delivery,Since i require the output for STO for cross company i have assigned the output type RD00 in the procedure but i am facing the below error.
    Output could not be issued
    Message no. VL086
    Diagnosis
    An error occurred in the message processing program.
    Procedure
    Contact your system administrator.
    What could be the issue
    Thanks
    Shri..

    The issue could be possibly because of incorrect Output determination procedure. Pls check again the output determination customization.
    Also put a breakpoint in the Entry form routine of the driver program and see if it actually calls the programs. If it calls the program debug more to see if there is any issue within the driver program which could be hindering the output.
    Thanks
    Arjun

  • At selection- screen output issue

    Hi,
    I have a issue regarding at selection-screen output event with radio buttons, 
    Fields are like,
    Block B1
      RB1
    Block B2
    RB2
       field 1 (Check box)
       field 2 (Check box)
    User can select one radio button at a time. If the user clicks on radio button RB1 then fields under Block B2 will be disabled. If user click on RB2 field 1 and fields 2 will be input enabled. Could you please give the solution asap
    Note: Radio buttons are in different selection screen blocks.

    Check this code -
    *SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME.
    *PARAMETERS:
    *Pi1 TYPE C  RADIOBUTTON GROUP G1 DEFAULT 'X',
    *Pi2 TYPE CHAR25,
    *Pi3 TYPE C  RADIOBUTTON GROUP G1,
    *Pi4 TYPE CHAR25.
    *SELECTION-SCREEN END OF BLOCK B.
    *PARAMETERS check AS CHECKBOX.
    *PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.
    *SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    *PARAMETERS: ip1(10) TYPE c,
               ip2(10) TYPE c,
               ip3(10) TYPE c.
    *SELECTION-SCREEN END OF BLOCK b1.
    *SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    *PARAMETERS: ip4(10) TYPE c MODIF ID bl2,
               ip5(10) TYPE c MODIF ID bl2,
               ip6(10) TYPE c MODIF ID bl2.
    *SELECTION-SCREEN END OF BLOCK b2.
    *AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
       IF show_all <> 'X' AND
          screen-group1 = 'BL2'.
          screen-active = '0'.
       ENDIF.
       MODIFY SCREEN.
    ENDLOOP.
    Regards,
    Amit Khare
    reward all helpful replies.

  • OS X 10.8.5 mac mini hdmi audio output issue

    I am running a 2012 Mac Mini with OS X 10.8.5 and my Mac is set for audio and video output via HDMI to my AV receiver / TV. I have recently noticed that HDMI audio output ceases to function once the computer goes to sleep. A full computer restart is required to resolve the issue which is an inconvenience to say the least.
    Or is anyone aware of a simple fix?
    All my software is up to date, the HDMI lead and connection works fine for video and audio works fine after a restart so it must surely be a software error. Worked fine until the latest OS X update...
    Grateful for any help!

    See > TS4113 Mac mini looses audio output...: Apple Support Communities and others like it, just to the right in More Like This

  • External send output issue

    Hi Friends,
    We have 3 output types ZNEU, ZCON & ZCMR for which we send email to vendor.  For three vendors, ZNEU external send is working fine (Medium 5) , where as for ZCON & ZCMR (medium 5) is giving error, it gives error as below "
    1. Please enter an address number
    2. Communication type  cannot be used
    Message no. SVN000
    Diagnosis
    Message type ZCON should be sent with communication type .
    System Response
    Communication type  is not supported by the conversion module.
    Procedure
    Use one of the supported communication types:
    Printer (LET)
    Fax (FAX)
    Telex (TLX)
    X.400 (X40)
    Mail via Internet (INT)
    Mail via SAPoffice (RML)
    This ZCON & ZCMR ouput type with external send is working fine for other vendor, can you please help me to understand what we are missing here , we have checked the condition records also , which is fine, any specifc condition record to be mainatained for this ?
    Please help , as this is a very critical issue for us.
    Thanks & Regards,
    Vikas

    Hi,
    Thanks for your reply.
    Email id is maintained for these vendors, as output type ZNEU is already getting sucessfully transited with external send process for these vendors. External send is failing for ZCON & ZCMR output only.
    Kindly advice.
    Regards,
    Vikas Mayekar

  • PDF Output Issue

    Hi All ,
    I am facing a strange issue in PDF output format.
    When I preview PDF output i am seeing some special character like *0E-00001111232* . The actual value should be *$ 2,343,500*.
    When ever i face this issue immediately if i download and upload the same template its working fine. But after 15 days or 1 week again i am facing the same issue(On a regular interval).
    Its not only for the number data type columns also for some varchar columns.
    I checked the xml output its coming correctly , but only in preview i am facing this issue.
    BIP Version : 10.1.3.4.1.
    If any one faced with same issue please share your approach.
    Thanks,
    Ananth v

    I guess that might be what format style i have to select for a 11" X 17" report.
    or do i have to create a custom style.

  • Italics in PDF output issue

    I am developing a report in Reports 6i on linux. The report generates a PDF output file, which is opened using Acrobat 7.0. I have made text italic at several points in the report, and the italic text shows up correctly in the previewer. However, when viewing the output in Acrobat, the italics slant to the left instead of the right (no matter what font I use). If I copy the italic text from the PDF and paste it into MS Word, it shows up correctly. Does anyone have an idea as to why Acrobat would display the italics incorrectly (and what can I do about it)? Thanks.

    Hello, I am having the same issue on IBM AIX. Italic text is slanted to the left instead of the right and all the config I tried with the fonts setup do not work.
    1) I installed the fonts on the report server.
    2) I followed the Oracle doc on http://download-uk.oracle.com/docs/cd/B13597_05/bf.904/b13673/pbr_font.htm to no avail.
    Hope someone has found a solution.
    Thanks.

  • Format Payment Instructions with Text Output issue

    Hi All,
    We have requirement like don't want print checks in oracle, just process the payment, generate the document number(check number) in oracle and send the data file to third party system. It takes care the check printing.
    For this I developed e-text xml template, created the payment format of type Disbursement Payment Instruction, attached to bank account and Payment process profile.
    When I am processing payment it is submitting 'Format Payment Instructions with Text Output' instead of 'Format Payment Instructions' but that program extracting the previous check information which not related to supplier and as well as payments batch.
    Please let me know what would be the issue?
    Thanks
    Praveen

    Hi Javvaji,
    Please check the following steps,
    1) Created XML Pubblisher template and attached the .rtf (Type - eText-Outbound, Default Output Type - eText)
    2) In Payable Manager responsibility Create a Payment Format ->
    Setup-> Payment Administrator-> Formats (Add XML Publisher Template created in step1)
    3) Setup-> Payments -> check existing Bank & Bank Branches
    4) Setup-> Payments -> Bank Accounts -> Create the payment Document Number
    5) Attach the Bank account to a valid supplier: Payables – Suppliers -> Entry
    6) Now to create the payment Process Profile (PPP)
    Navigation : go to Payables -> Setup-> Payment Administrator
    7) Now to attach everything (PPP,format,document etc.) to the Template
    First step to Create a “Template”
    Navigation: Payables,Vision Operations -> Payments -> Entry -> Payments Manager
    8) Then go to Tab “Payment Process Requests” Then click on “Submit Single Request”
    9) Check View -> Requests
    No output generated in 'Format Payment Instruction' program.
    which program I can get the eText output?
    Please suggest.
    Thanks & Regards,
    Sagarika

Maybe you are looking for

  • IWeb site showing Shape Outlines on Links

    Hello All! I just uploaded my new website up on our Silicon Valley Web Hosting server (the URL is www.CinemaShorts.com) and I just noticed something kind of funny and wondered if it's something I can fix. I created this website using iWeb and origina

  • What does the iphone have that the ipod touch doesn't?

    i was just wondering what the iphone has that the ipod touch doesn't if there is anything. (Apart from the obvious phone and maybe the camera)

  • Traffic Monitor over WAN

    Hi, I have two network in different location connected through WAN.  Which is in Sweden and another location is in UK, this two location is connected via WAN and entire network is accessible from one location to another. Due to some reason I need to

  • Bridge labels and ratings problems involving Premiere Pro

    I recently went on vacations and took a lot of video with my DSLR.  I took a lot of time to organize the footage by batch renaming as well as adding labels and ratings within Bridge.  I had assumed that adding this kind of metadata would stay with th

  • Can't use screensaver with flash (swf file) after mavericks upgrade

    Hi, I have a screensaver who reads a html file with a SWF. It works perfectly on 10.8 (and older versions) but since I passed on 10.9 Mavericks I have a white screen without my animation. In safari the html page with the animation is working well ...