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

Similar Messages

  • 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.

  • SQL *Plus input buffer

    I have a large script that works fine on my oracle server. When I bring it to my clients, it gets truncated after around 60 lines. I know how to increase the output buffer (EXEC DBS_Output.Enable(10000) for 10000 lines) but I can't seem to find the equivalent for the input buffer. Please help.

    Are you using SQL Plus client, then you need to change the buffer size on the menu of the SQL Plus window.

  • Overflow SQL*Plus buffer.

    Hi,
    I try to insert default data into a LONG field in a 8i DB by using SQL*Plus; however, I get the following error til I reduce the amount of data to certain size. What I understand is that a LONG field can hold up to 2GB of data, so I believe my problem is overflowing the SQL*Plus's buffer. Is there a way to increase SQL*Plus buffer size?
    The error is:
    INSERT INTO thetable VALUES (1,'<?xml
    version="1.0" encoding="ISO-8859-1"?>
    ERROR at line 1:
    ORA-01704: string literal too long
    Thanks in advance for any help!
    kli

    i got the sulotion!
    it was really simple by setting the environment before running that code.
    Dbms_Output.Enable (1000000);
    although it is not permanent sulotion for the problem but at least one can get the much more output by increasing the limit of buffer size.
    best regards,

  • Print a report from sql*plus.

    Regards all
    Let me know whether it is possible to print a hard report rom sql*plus and how.
    waiting

    Let me know whether it is possible to print a hard report rom sql*plus Yes. SPOOL is a command to get SQL*Plus screen results to disk real-time.
    and how.A "report" is such a generic term, that you will have to get started with at least some reading :)
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a90842/toc.htm
    (search for: "How Can I Learn SQL*Plus")
    You may also address specific questions about the SQL*Plus product (that are not really Database SQL and/or PL/SQL related) via the [Technologies>Tools>iSQL*Plus] forum rather than here.
    waiting That's up to you! Dig in!
    Michael O'Neill
    Publisher of the PigiWiki
    clever-idea.com

  • User Name/Password for SQL*Plus

    I installed the Oracle 8i Personal Version in my PC.
    I have been trying to log on to the Oracle SQL*Plus screen, which asks me for the User Name, Password and the Host String.
    Does anybody out there know what I should use here to log on to this screen?
    Thanks in advance.
    Jay
    [email protected]

    Hi,
    Please check old mails and then forward questions.
    User scott/tiger
    DBA system/manager
    SYS sys /change_on_install
    with regards,
    Boby Jose Thekkanath,
    Dharma Computers(P) Ltd.
    Bangalore-India.
    www.dharma.com

  • Changing font in SQL*PLUS

    I need to change Font of SQL*PLUS 3.3 to courier new and font size 8..
    do you have any idea how can I achive this.. I tried changing registry also but it doesnot work.
    I am using Windows 95 machine. My database is Oracle 8i.
    Please help me if you know the answer.

    It changes only at time of editing query .. Actually I wanted to change font of SQLPLUS i.e default font of SQL*PLUS screen should change.

  • Semicolon and / in SQL Plus scripts?

    Anyone,
    Seem to have some confusion over the use of / and ; inside PL SQL Scripts run in SQL Plus.
    I seem to get two commits thereby two rows on INSERT clase that has a ; and a /.
    i.e.
    /* Insert record into table for recording statistics on the runtime of this script */
    INSERT INTO MYTABLE ( col1, col2) VALUES ( value1, value2);
    COMMIT;
    /The above will get two of the same rows in the table. Is this an issue with SQL Plus settings? What do people typically use? I have a combination of SQL and DDL in my scripts and I need / for the DDL typically as I understand. How do othere intermix these and what standard is used.

    Dave, here are the very basics.
    The SQL language does not have command separators as only a single command at a time can be issued. Thus the following is invalid SQL:
    SELECT * FROM emp;
    The semicolon as command separator (or terminator) is not valid SQL. This is valid SQL:
    SELECT * FROM emp
    PL/SQL is a programming language similar to Pascal, C and Java. Multiple commands are used in a program. These need to be separated so that the parser/compiler can know where a command starts and where it ends. In PL/SQL the semicolon is used.
    The following is invalid PL/SQL as it is missing command separators:
    declare
    i integer
    begin
    i := 1234
    endThe following is valid PL/SQL :
    declare
    i integer;
    begin
    i := 1234;
    end;SQL*Plus is an Oracle CLI (command line interface) client. It can submit both SQL and PL/SQL to the database. It needs to know when you have stopped entering commands into its input buffer and to submit what you've entered to the database.
    SQL*Plus uses two characters for this. The semicolon and the forward slash. If you want to submit the above SELECT to Oracle using SQL*Plus, SQL*Plus needs to know when to submit its input buffer's content - thus:
    SQL> SELECT * FROM emp;
    Or:
    SQL> SELECT * FROM emp
    SQL> /
    When using PL/SQL in SQL*Plus, SQL*Plus "understands" that the semicolons you use are for the PL/SQL language - not an instruction from you to it to submit its buffer to Oracle for execution.
    The forward slash can also be at anytime used to resubmit the current SQL*Plus input buffer again. E.g.
    SQL> SELECT * FROM emp;
    .. now do the last SQL (or PL/SQL) in the buffer again
    SQL> /[i]

  • SQL*PLUS Worksheet Width

    I'm (bery) new to Oracle. I'm trying to figure out how to make the output results of a select statement in SQL*Plus Worksheet not wrap. Is there a way to do this?
    Thank you
    JohnD

    hi friends,
    I have used SET LINESIZE 1000 to increase width and display all column details in a row.
    But now it is not scrolling till the last column details displayed on screen.Suppose there are 12 columns in my table and i could see only 8 which are displayed on my screen.
    How can i scroll to right till the last column?
    Thank you,
    Regards,
    Raghv

  • Clear Screen, Sql plus Error, in release 10.2.0.1.0

    Hi there,
    I'm having problem in using clear screen command in SQLPlus utility of Oracle Release 10.2.0.1.0. When executing clear screen in SQL Plus ( in command prompt) in windows machine, suddenly a dialogue box opens and saying that "SQLPlus encountered an error and sorry for inconvenience "
    Is this the problem with OS or Oracle Client?
    Could anyone please help me in resolving this issue?
    Thanks
    Raja

    So that is the problem with Oracle client only, not with the OS configuration and all.... shall i assume?

  • Set Column width in query (not using SQL*Plus)

    How can I Set Column width in query
    I understand you can set column width using
    column col1 FORMAT A5
    select col1 from table1;But this only works in SQL*Plus
    I want to be able to do this in a regular SQL query window (not in SQL*Plus), how can I do it.....
    I am using a 'SQL window' in PL/SQL Developer IDE
    and when I use this syntax it says:
    ORA-00900: Invalid SQL statement
    Any suggestions are appreciated...
    thanks,
    M.

    Did you try using RPAD or LPAD functions? They fill the unfilled part of a string with character you provide... either on right or left side depending on what function you use.
    e.g.
    SELECT RPAD('Smith', 10, ' ') Name FROM dual;http://www.adp-gmbh.ch/ora/sql/rpad.html
    Edited by: Zaafran Ahmed on Nov 10, 2010 11:50 AM

  • Question about setting column width in SQL*Plus using info retrieved w SQL

    Good morning,
    Is there a way to tell SQL*Plus to set the width of a column to the greatest width of the elements found in the column ? (as opposed to the default which is the width declared in the DDL)
    In other words, I'd like to do something functionally equivalent to this:
    COL <columname> format a[select max(length(<columnname>)) from <thetablethatcontainscolumname>]
    I'm doing the above manually in two steps
    1. select max(length(columnname)) from .....
    2. col columnname format a[resultofstep1]
    Is there a way of doing it in one step ?
    Thank you for your help,
    John.

    Hi Munky,
    >
    you should consider whther you are using the correct tool for the job, SQLplus isn't exactly ideal for doing presentation layer stuff
    >
    I'm not really doing presentation stuff, I asked because it would be very convenient for everyday stuff. I commonly query the tables that I am going to deal withm just to have a look at the column names and a few values, something like:
    select * from EMP where rownum <= 10; -- just to have a look at the table and some values
    when the table contains a wide column then the display gets all messed up. It would be nice to have an option or a mechanism to tell SQL*Plus to automatically use the width of the widest value, instead of having to determine the value and then manually set the column.
    thank you for your help, it's good to know that I didn't miss some trivial setting in the documentation that would do it ;)
    John.

  • 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

  • Buffer overflow in sql plus...

    Hi,
    i am getting an error 'ORA-20000: ORU-10027: buffer overflow, limit of 2000 bytes' while using DBMS_OUTPUT function in a loop in pl/sql block in sql plus environment. please help me in this regard that how can i over come this error.
    thanks,

    i got the sulotion!
    it was really simple by setting the environment before running that code.
    Dbms_Output.Enable (1000000);
    although it is not permanent sulotion for the problem but at least one can get the much more output by increasing the limit of buffer size.
    best regards,

  • SQL PLUS Buffer

    Hi All,
    I need help to display the database buffer in sql plus..........
    and how can we access the buffer to get the detail in the buffer
    thanks

    You can't see the content of the blocks currently cached.
    You can read from V$BH the statistics on the blocks stored in the cache.
    doc
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com]

Maybe you are looking for

  • Hard Drive speed issue

    I recently deleted many of my itunes videos from my hard drive. after importing some new ones when i try to play them it takes several second (and colour spin wheel) before it starts playing unlike befor where they started playing immediately. any on

  • Net tax base and gross tax base is not defined in FB70

    Dear SAP Gurus, I am booking the customer invoice directly through FB70. While booking the same I am using the tax code A0 (Zero Output Tax) Tax Code column as the account is mandatory for Ta Code. But when I post the transaction system gives the fol

  • Log out function in Oracle 11i

    We are using Oracle 11i and are being logged out of the system within 15 minutes of non-use. Can the log out feature be set for individual security levels/groups? Can the log out time limit be set individually? I am quite new to the Oracle family and

  • Programmatically change screen orientation and/or resolution?

    We don't have VB.NET available and I was wondering if it is possible to create VBA code that would change: 1) screen orientation (and maybe resolution) 2) on a specific monitor (in a multiple monitor setup; we have two)  The idea would be to put it i

  • Hostname enigma

    I was having some problems with Time Machine, and I had read somewhere that hostnames with non-alphanumeric characters were causing problems, so I changed my hostname. The 10.4-era hostname was "big-spring". I changed it to "bigspring" in the Sharing