Setting sqlplusw.exe screen buffer width in oracle 9i or 10g (winxp)

hi guys,
i need to set my screen buffer width to the length of my linesize.. but i do not want to manually set it everytime i login using sqlplusw.exe
any idea how do i set it as default or automatically set each time i use sqlplusw.exe
something like a login.sql or connect.sql so that i do not need to set it manually everytime..
please advice :)
thanks alot!

what's your record for most consecutive questions
"whitespace" is all the seemingly empty space between the actual data that you are interested in.
for example
COL1          COL2I just put a bunch of white space between "COL1" and "COL2". I could use spaces (ascii 32) or tabs (ascii 9)
set tab on/off controls whether sqlplus (the client executable) uses tabs or spaces to create those gaps on the screen.
that should answer most of your questions.
why does "set tab off work? the real question is why are your tabs wrong. many, many years ago, we didn't have windows. we didn't have graphics. we had CRTs. everything was character mode. and on certain monitors and/or operating systems, you could set the "tab level", or "tab positions". so instead of the tab key indenting to a columns position divisible by 8 (e.g., col 8, 16, 24, 32, etc), it would indent to the positions you had defined. I haven't seen this problem in at least 10 years, since nowadays nobody changes the tab settings (I don't even know if it can be done anymore, or how).
anyway, when the tab positions were NOT every 8 columns, this would screw up sqlplus output, if it used TABS (set tab on, the default). sqlplus (not oracle) lines up the column headings, underscores and data. it does this by keeping track of where everything is, and creating whitespace between the other characters. so if you have two columns (col1 and col2), each varchar2(7), then your output would look something like this
COL1    COL2
A       Bon the heading line, I put "col1", 4 spaces, then "col2". sqlplus assumes that the first tab stop is at column 8. so it COULD output 4 spaces, or it could output "col1", a tab, then "col2". this is 3 less characters being output. keep in mind that back in the dark ages, sending a character to the screen was costly, so removing those 3 extra outputs really added up (between multiple columns, and for multiple lines).
but what if I screw up my tab settings, moving the first tab stop to column 6? then it would look something like this
COL1  COL2
A     Bscrewed up, right. that's what happened to you. your tab stops are wrong, and it's screwing up the tabbing from sqlplus. by turning tab off, sqlplus generates spaces, which are not subjected to your screwed up tab stops.
"set trim off". it trims trailing spaces on each line. and since spaces are tough to see, you won't see a difference. but if you set your linesize to 1000, then you might notice that the results scroll by faster when you "set trim on". if trim is off, then sqlplus right pads each line of output with whitespace (tabs or spaces) to fill up to LINESIZE. or you might not notice a difference at all. really depends on your machine, memory, etc.

Similar Messages

  • SQL/Plus screen buffer width

    How do I set the screen buffer width in SQL/Plus other than going to Options->Environment->Screen Buffer->Buffer Width? I want to be able to change this programatically within a script but I can't figure it out.

    I don't think you can. It's part of the Windows user interface not part of the SQL*Plus parameter set. If it doesn't appear in a SHOW ALL listing then I doubt you change change it in a script.
    Richard

  • Where can I download sqlplusw.exe ?

    As far as I noticed sqlplusw.exe is NOT part of the standard Oracle Express distribution.
    Where can I download sqlplus.exe otherwise ?
    Do I really have to download and install full
    SQLdeveloper to be able to use tiny sqlplusw.exe ?
    Is there a seperate sqlplusw.exe download package link ?

    sqlplusw.exe is the old Windows version of the command line sql plus. sqlplusw.exe has been deprecated by Oracle and will eventually be dropped.
    The one to use from now on is sqlplus[.exe] and can be installed from the Oracle Client distribution.
    Neither are part of the SQL Developer distribution.
    I'm not sure what comes with the OE distribution.

  • PAGE WIDTH IN ORACLE SQL*PLUS

    Hi all ,
    My problem is how can i increase the horizontal screen scrolling in sql*plus ...
    When i query all records from specific table it hides few columns on the right side of screen.... i ve tryed to increased pagewidth through environment but it didnt helped ...
    Anybody?
    Thnx in advance

    This is a Forms forum, but what the heck...
    Are you using the sqlplusw.exe in Windows, or sqlplus.exe? Are you in a Windows environment or something else?
    I use sqlplusw in Windows, and all I do is maximize the window, or drag the right edge of the window until it is wide enough.
    ...or do you need to just change the linesize: SET LINESIZE 200

  • Error ORA-12560 using sqlplus.exe  SQLPLUSW.exe is working !

    hi all,
    i have a strange problem using ora 8.1.7 client on windowsnt to connect against db on solaris.
    sqlplusw.exe works fine but i need sqlplus, and this is the error
    i setted all the variables like oracle-sid in the environment and in registry
    please help me, i have absolut no idea !!!!!!
    thanks
    ORA-12560: TNS:protocol adapter error
    nscall: entry
    nsmal: entry
    nsmal: 140 bytes at 0x475bf0
    nsmal: normal exit
    nscall: connecting...
    nladini: entry
    nladini: exit
    nladget: entry
    nladget: exit
    nsc2addr: entry
    nlpcaini: entry
    nlpcaini: prg =
    nlpcaini: arg[0] =
    nlpcaini: arg[1] =
    nlpcaini: exit
    nsc2addr: normal exit
    nsopen: entry
    nsmal: entry
    nsmal: 420 bytes at 0x476aa0
    nsmal: normal exit
    nsopenmplx: entry
    nsmal: entry
    nsmal: 1712 bytes at 0x15f3bd0
    nsmal: normal exit
    nsopenmplx: normal exit
    nsopen: opening transport...
    ntpcon: entry
    ntpcon: toc = 1
    sntpcall: entry
    snlpcss: entry
    ntpcon: exit
    nserror: entry
    nserror: nsres: id=0, op=65, ns=12560, ns2=0; nt[0]=530, nt[1]=126, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
    nsopen: unable to open transport
    nsbfr: entry
    nsbfr: normal exit
    nsmfr: entry
    nsmfr: 1712 bytes at 0x15f3bd0
    nsmfr: normal exit
    nsmfr: entry
    nsmfr: 420 bytes at 0x476aa0
    nsmfr: normal exit
    nsopen: error exit
    nsclose: entry
    nsclose: normal exit
    nladget: entry
    nladget: exit
    nsmfr: entry
    nsmfr: 140 bytes at 0x475bf0
    nsmfr: normal exit
    nladtrm: entry
    nladtrm: exit
    nscall: error exit
    nioqper: error from nscall
    nioqper: nr err code: 0
    nioqper: ns main err code: 12560
    nioqper: ns (2) err code: 0
    nioqper: nt main err code: 530
    nioqper: nt (2) err code: 126
    nioqper: nt OS err code: 0
    niomapnserror: entry
    niqme: entry
    niqme: reporting NS-12560 error as ORA-12560
    niqme: exit
    niomapnserror: returning error 12560
    niomapnserror: exit
    niotns: Couldn't connect, returning 12560
    niotns: exit
    nsbfrfl: entry
    nsbfrfl: normal exit
    nigtrm: Count in the NI global area is now 0
    nnfgdei: entry
    nrigbd: entry
    nrigbd: exit
    nigtrm: Count in the NL global area is now 0

    Hello Hemant,
    you can't connect via the listener unless the database is up.You mean if we are going to connect @, db must be mount/open? We can'nt connect with @ in nomount state?
    But i think we can connect in nomount using @, if we are having an SID name in SID_LIST of listener.ora?
    Please correct me, if i am wrong.
    Thanks and Regards
    Girish

  • Running Scripts with sqlplusw.exe

    Hi,
    My requirement is I've to run a script, which will take connection info (logon window) and then run my file.
    much like sqlplusw.exe xx @c:\abc.sql. Now I can't put xx as username. I've to write it such a way that, it'll ask for conn info(username,password and connect string) then execute the script.
    Thanks in advance.
    --Sourav                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    D:\>type test.sql
    conn &1/&2@&3
    set lines 121 pages 1000 trimspool on
    spool spool.log
    select * from emp;
    spool off
    exit
    D:\>sqlplusw /nolog @test.sql scott tiger test9i
    D:\>type spool.log
         EMPNO ENAME      JOB              MGR HIREDATE        SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17/12/80        800                    20
          7499 ALLEN      SALESMAN        7698 20/02/81       1600        300         30
          7521 WARD       SALESMAN        7698 22/02/81       1250        500         30
          7566 JONES      MANAGER         7839 02/04/81       2975                    20
          7654 MARTIN     SALESMAN        7698 28/09/81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01/05/81       2850                    30
          7782 CLARK      MANAGER         7839 09/06/81       2450                    10
          7788 SCOTT      ANALYST         7566 19/04/87       3000                    20
          7839 KING       PRESIDENT            17/11/81       5000                    10
          7844 TURNER     SALESMAN        7698 08/09/81       1500          0         30
          7876 ADAMS      CLERK           7788 23/05/87       1100                    20
          7900 JAMES      CLERK           7698 03/12/81        950                    30
          7902 FORD       ANALYST         7566 03/12/81       3000                    20
          7934 MILLER     CLERK           7782 23/01/82       1300                    10

  • Oracle Application Server 10g R3 with patch set 10.1.3.5.0

    Hi All,
    Can anyone help me on this, When I install Oracle Application Server 10g Release 3 (10.1.3.1.0) and patch set 10.1.3.5.0 on Linux. I am not able to find forms and reports container.
    This version doesn't support forms and reports or I have go OAS 10g R2 (10.1.2.0.2) with patch set 3 (10.1.2.3.0). What is the difference between these two releases.
    Please help me.
    Regards,

    Hi James,
    1)Yes it supports IE 8 .Please review the below link for certification details on browers :-
        http://www.oracle.com/technetwork/middleware/ias/downloads/as-certification-r2-101202-095871.html#BAJGCBEA
         Note: Oracle Application Server supports only those browsers.
    2)Forms only support Windows 7 32 bit only.
        Please refer to the note:1292919.1 "Certification of Oracle Developer Suite 10g (10.1.2) on Windows 7 (32-bit)"
    3)Could you provide more information of JVM because when you install 10gR2 it has JDK and JRE present in it.
    Regards,
    Prakash.

  • I recently downloaded a 10.6.8 update and a game program has now been reduced in size.  It's specifications are set for full screen, but it is about 1/4 of the size.  Any ideas how to fix?

    I recently downloaded a 10.6.8 update and a game program has now been reduced in size.  It's specifications are set for full screen, but it is about 1/4 of the size.  Any ideas how to fix?

    Hi, I have got the same problem but all is 1/4 the size have you fixed it?

  • TS4006 I lost my iPad! I initially set up a screen lock in iCloud but now my iPad is no longer in the list.

    I lost my iPad! I initially set up a screen lock in iCloud, only to find out that I would then not be able to find my device. I then removed my device from the list in iCloud. Now, after clicking on "find my iPhone", it does not appear in the list. How do I get it back in my list of devices? The fact that it was originally in the list, does it mean that I did activate "find my iPhone"?

    you did activate find my iPhone but because you removed it from the devices list, you cant do anything further.  You need the device to add it back to the list.
    -Brenden

  • Install dialog box absent after PSE 13 download to Win 8.1 PC: which Set-up.exe to run?

    PSE 13 downloaded to a Windows 8.1 PC (64 bit OS) then Windows File Explorer opened showing the contents of ‘This PC\Downloads\Package’, namely two folders ‘32 bit PhotoshopElem13’and ‘PSE 13’ having similar contents. There is no guidance as to whether to run the Set-up.exe in the first or the second of these folders.
    An installation dialog box would have been welcome with advice on the choice.
    Which Set-up.exe should be run?
    Is it necessary to keep any contents of the folder ‘This PC\Downloads\Package’ after the installation finishes and the program appears to function properly?

    Hello Mr. Tikkanen.  Thank you very much for your response.
    I remember reading something about the difficulties of USB 3.0 vs. 2.0, but it didn't occur to me to switch my mouse and keyboard plug-in.
    Unfortunately, my employer decided to buy a new Windows 7-capbable cpu this morning instead of having me install Win7 on the current cpu.  I was going to implement your suggestion today, but my copy of 7 was already shipped back by the time I got in today.
    I actually kind of want to try it anyway for the sport of it.  I promise that, if it comes to it and I'm asked to install it later, I will attempt your suggestion and update this forum with my results.
    Thank you, Mr. Tikkannen, and thanks to all you experts that search through the forums and help us get along.  It is very much appreciated.   

  • Dvd for adobe creative suite 5.5 web premium has set-up.exe for windows, but how to install on macbook?

    Hi,
    I have the dvd for adobe creative suite 5.5 web premium, I see a set-up.exe for windows, but how do I install this software on my macbook please?
    Thank you
    E

    You can't one way or the other. Serial numbers are platform specific and platform swaps only apply to current  versions, meaning you have to upgrade to CS6 and make the switch.
    Mylenium

  • Some Preferences not sticking ie screen saver jump back to random after setting a particular screen saver

    I set a specific screen saver in the preferences file, after a reboot, random savers box is always checked. Also when I move items to the side bar they stay there until a start-up after which they have disappeared.
    Thx  AL

    I think that it is something wrong with kernel and graphic drivers but i'm not able to solve it from the beginning of using of Arch by me.
    I'm not so sure this issue is software-related only because in my case it seems the laptop screen enters power-saving mode (10-min timeout) on its own without any events logged (as shown by dmesg) so my next thought was OK, I'm going to get rid of this issue disabling the screen power-saving timeout in the BIOS and set it to never power down or something like that and from then on managing power mode manually; ie: when I want to power down I will just use systemctl suspend/hibernate which work fine ... problem is: there are no related options in my BIOS for such timeout.
    The only timeouts I have are in /etc/systemd/logind.conf set to 30min (#IdleActionSec) (commented) by default so these are not in effect because the screens goes blank after 10m which is less than the (default) 30m in logind. Maybe setting loggind to 9m (un-commented) to catch the event before the machine-default one ?
    IdleActionSec=9min
    IdleAction=suspend
    Will check it and report back.

  • When I open Safari, I always type command-plus to enlarge the view.  However, I can't figure out how to permanently set the Safari screen to this view setting in the preferences.  Any ideas?

    When I open Safari, I always type command-plus to enlarge the view.  However, I can't figure out how to permanently set the Safari screen to this view setting in the preferences.  Any ideas?

    Sorry, but you must Command + for every page. It's not permanent.
    If you haven't tried yet, check out Zoom in Safari > Preferences > Accessibility

  • Accessing WS data set during selection screen processing in BG processing

    Hello ABAPers,
    I am attempting to access a working storage table variable that is set during selection screen processing after the user submits the program to background processing (using F9).
    I have tried using export to memory id in the at selection screen section and then import from memory id in the start-of-selection section, but it does not seem to work all of the time.  Is there a better way of doing this?
    Thanks

    bump

  • In Oracle Developer Suite 10g 1 2.0.2 where is SQLLDR.EXE?

    Installed Oracle Developer Suite 10g 1 2.0.2, full install. Where's SQLLDR.EXE? It's no where to be found.
    Is there something else I need to also install? I've just spent hours trying to find how to load SQL Loader in 10g. I can not find a definitive "Here's where you'll find the SQLLDR.exe and how to install it" in OTN. Anyone, any ideas?

    Why would Oracle Developer Suite contain a database server tool?
    You will find SQL*Loader in the database's $ORACLE_HOME/bin directory.

Maybe you are looking for

  • Decimal characters

    Hi, We have many varchar2 columns in the database which can contain, for example '24.00' (here "." is the decimal separator), but when i run the following query on my machine i got that error SQL> select to_number('24.99') from dual; select to_number

  • Global Address List Question

    Where does the GAL get the e-mail address from? I'm a little confused with a problem we have. Scenario: User has an AD account that is mail enabled with a mailbox attached to it. Our Identity Management system is updating the AD account's mail attrib

  • CF Standard and 64-bit OS

    Hi I posted this in the CFML - General Discussion area but I'm not sure if it was the right place to put it, so I've posted it here too. We have a memory intensive application which runs on CF Standard. We are considering moving to 64-bit but CF 8 St

  • How can i pull up a deleted number when i accidentally deleted it.

    How can I pull up a deleted number when i accidentally delete it

  • Using ODI Variable in Topology

    Since my source databases are many in number I am trying to use ODI Variable in topology to access the Source Databases details from a Table. Please can anyone help me here....