How to show output in sqlplus side by side intead of in row

in sqlplus if I type
select A,B,C,D,E,F,G,H,I from SOMEHWERE where J='goat4';
OUTPUT IS LIKE
A B C D F
G H I
value here value here
value here here
tht is too hard to read
how can I make it side by side
like
A Value here
B Value here
C Value here
D Value here
E Value here
F Value here
G Value here
H Value here
I Value here
Thanks alot for help

Numerous possibilities ... you can extent the linsize as already demonstrated but that has limited utility. The method I would suggest is formatting the column widths.
Lots of demos here:
http://www.morganslibrary.org/reference/sqlplus.html
But this simple example should help.
orabase> desc dba_data_files
Name                                                                          Null?    Type
FILE_NAME                                                                              VARCHAR2(513)
FILE_ID                                                                                NUMBER
TABLESPACE_NAME                                                                        VARCHAR2(30)
BYTES                                                                                  NUMBER
BLOCKS                                                                                 NUMBER
STATUS                                                                                 VARCHAR2(9)
RELATIVE_FNO                                                                           NUMBER
AUTOEXTENSIBLE                                                                         VARCHAR2(3)
MAXBYTES                                                                               NUMBER
MAXBLOCKS                                                                              NUMBER
INCREMENT_BY                                                                           NUMBER
USER_BYTES                                                                             NUMBER
USER_BLOCKS                                                                            NUMBER
ONLINE_STATUS                                                                          VARCHAR2(7)
orabase> col file_name format a30
orabase> select file_name from dba_data_files;
FILE_NAME
C:\ORACLE\ORADATA\ORABASE\USER
S01.DBF
C:\ORACLE\ORADATA\ORABASE\UNDO
TBS01.DBF
C:\ORACLE\ORADATA\ORABASE\SYSA
UX01.DBF
C:\ORACLE\ORADATA\ORABASE\SYST
EM01.DBF
C:\ORACLE\ORADATA\ORABASE\EXAM
PLE01.DBF
C:\ORACLE\ORADATA\ORABASE\UWDA
TA01.DBF
6 rows selected.
orabase> col file_name format a40
orabase> /
FILE_NAME
C:\ORACLE\ORADATA\ORABASE\USERS01.DBF
C:\ORACLE\ORADATA\ORABASE\UNDOTBS01.DBF
C:\ORACLE\ORADATA\ORABASE\SYSAUX01.DBF
C:\ORACLE\ORADATA\ORABASE\SYSTEM01.DBF
C:\ORACLE\ORADATA\ORABASE\EXAMPLE01.DBF
C:\ORACLE\ORADATA\ORABASE\UWDATA01.DBF
6 rows selected.Note the control of the display width of the column. Without the formatting the column would display at 513 characters.

Similar Messages

  • How to adjust output in sqlplus

    Hi
    I want to take a report from the below query from unix sqlplus.
    However the output of the query is not tidy.
    I used
    set linesize 121, but it doesnt work again.Any other suggestion?
    select tb.owner,count(*) "current_extents",ex.segment_name,tb.max_extents from dba_extents ex ,dba_tables tb where segment_name in (
    select table_name from dba_tables where MAX_EXTENTS < 500)
    and ex.segment_name=tb.table_name
    group by ex.segment_name,tb.max_extents,tb.owner
    order by 1

    Hi there
    I used set linesize 131
    but output is like:
    OWNER                          current_extents SEGMENT_NAME                                                                      
    MAX_EXTENTS                                                                                                                      
    LAUD                                      306 BLOCKRISKLINK                                                                     
            350                                                                                                                      
    LAUD                                      259 EXCEPTION_INCOMING                                                                
            350                                                                                                                      
    AZI                                        208 TRNADDR                                                                           
            400                 

  • How to show exponent value in adf output Text

    Hi,
    How to show values in the table column output text with exponent values like 3 ^rd^ , 2 ^2^ , Hello ^R^,etc.. ?
    Do we have any RichFormatText for the ADF output Text?
    Thanks..

    yes...got it myself...thanks..

  • My worksheets used to be displayed along the bottom of the page, now they show up as icons along the side and have to be opened individually, how do I get them back to the bottom?

    On PAGES, my worksheets used to be displayed along the bottom of the page , now the show up as icons along  the side of the and have to be opened up individually, how do I egt them to go back to the bottom of the page?

    Do you mean like this?
    Regards,
    Barry

  • My MacBook Pro has no audio.  Sounds preferences showing output is Optical digital-out port.  How do I change this to built-in speakers?

    My MacBook Pro has no audio.  Sounds preferences showing output is Optical digital-out port.  How do I change this to built-in speakers?

    I experienced this same problem yesterday on my MacBook Pro,  still searching for a solution, several other posts here indicate people have been experiencing this since at lease 2007.  I have  yet to find a clear solution. 
    It appears that occasionally inserting headphone causes this, it turns on the Optical digital-out port feature (red light glows inside the headphone port) and takes away the internal speakers option.   Restarting did not restore it, but for some reason after sitting asleep overnight the sound started working again and the internal speaker option return in the Sound - Output Window, and the Optical Digital-out option went away. 
    Here is another post with some ideas on this 
    https://discussions.apple.com/message/4160477#4160477

  • Shows output / summary after executing a procedure

    Developers have come to me, with below challenge, I am not able to solve / help with, found nothing from my 1 hour search on Google and forums.
    Is there parameter in database or SQLPlus that shows output / summary after executing a procedure?
    I have few updates and few inserts in my procedures, I also user[b] execute immediate once on my proc.
    I want to know how many rows were updated / inserted, at the moment you just get ‘successfully completed.’ After executing a procedure.
    SQL> @myproc.sql
    PL/SQL procedure successfully completed.If anyone is 100% it's not possible, and you have to do it manually using dbms_output, please let me know.
    Thanks for any help

    PL/SQL executes inside the Oracle server process that is servicing your client session. How can it display anything on the client side?
    SQL*Plus (a typical client) displays information messages such as "PL/SQL procedure successfully completed." - and it reads the DBMS_OUTPUT buffer in PL/SQL and write it to your display (when the SERVEROUTPUT SQL*Plus environment variable is set).
    PL/SQL is incapable of "displaying" anything. Rendering is done the client.
    It is important to grasp this basic client-server concept.
    PL/SQL is also in fact two very distinct languages that are tightly integrated. PL and SQL. When PL executes a SQL statement, it does so via the same basic Oracle call interface as any other language. Part of this call interface contains the results of the SQL statement executed - this not only include a return code, but also the number of rows reported affected by the SQL engine. PL "publishes" that result via its system variable called SQL%ROWCOUNT.
    However, due to the way PL calls SQL with respect to the different ways you can construct SQL in PL (implicit cursors, explicit cursors, ref cursors, etc), this variable is only valid when dealing with an implicit cursor. Cursor "system/SQL" variables also exist and these are prefixed with the variable name of the cursor in the format <cursorvar>%<sqlvar>.
    Details can be found in the [url http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/toc.htm]Oracle® Database PL/SQL User's Guide and Reference.

  • Output side by side.....!!!!

    Hi,
    Can we show output side by side? In ALV or Classic we pass the values of internal table and it shows output row wise,is it possible to show it side by side?
    Selection Screen should be on BNK. If user inputs BNK : 001-012 the all three sets of value i.e BNK VAK NET should be displayed for 12 BNK.
    BNK  VAL  NET    BNK  VAL  NET   BNK  VAL NET
    001    20     20       002    10    15     003    25    45
             10      05                20    25              12    03
                                          05    20              23    25
    will Field Symbol does anything here??can anyone give some idea or any examlpe program????

    Hi,
      Normally u have an internal table like this.
      BNK        NET        VAL
      so it always print one by one down like this
      001          20            32
      002         23             44
      003         00             00
      Now for your requriement u define a internal table like this.
        BNK1   NET1     VAL1    BNK2     NET2      VAL2  BNK3      NET3      VAL3
      then have your entries like this.
      001          20            32     002         23             44    003         00             00
                     21            32                    24             44                  01             00
      And if you dont know how many values u will have sideways like BNK1, BNK2, .... then obviously u have to declare a structure and use a field symbol to hold the values for your output.
    Reward points if helps.

  • How can I output a slideshow so that it fills 16:9 tv screen?

    When I output a slideshow to a wmv file I want to burn the file in 16:9 format to play on HD widescreen TV. I cannot view it without bars on sides. How can I output so that slideshow will be border less?

    Search for .prx files on your computer and then select them from the Slide Size drop down. e.g. C:\Program Files (x86)\Adobe\Elements 12 Organizer\Assets\locale\en_US\tv_profiles\12 - Widescreen Enhanced Definition.prx.
    During the creation of the slide show you can still only work within a 4:3 portion of the screen, but selecting a 16:9 size will output without the vertical bars.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • How can i open a few windows or tabs side by side?

    Hi firefox crew!
    Okay, I know how to work the tab groups. But I'd like to be able to open a window(or tab) side by side with one or more others, as often I want to compare a couple sites/web pages. I really would rather be able to easily do this! So I'm wondering:
    is there any way to, say, choose some setting or option/customize to have firefox automatically open a second window (or tab) as a half-window, whilst shrinking the first fullpage down to the other half of the screen (or window)?
    And, even better would be if I could select a few tabs of my choosing at once (eg. by ctrl-clicking each one i want from among the tabs i have open along the tabs bar, say, A, C, E, and F out of all my 7 tabs A-G), and right-click to bring up a context menu, and from there select an option: "open tabs in a grid", and have that work to display (all four of) these tabs side by side.
    (And, theoretically, each successive tab/window opened in this manner would effectively add to the grid, thereby shrinking each one proportionately.)
    Any ideas on how to make this work? Much appreciated!

    OOH, to let you all know (both experts and other newbies who might benefit!)--
    i think i found my answer! :)
    To tile open windows horizontally(side by side), if i right-click on an empty Taskbar area i can choose Tile Windows Horizontally (in Windows XP).
    To tile windows vertically, i can right-click on an empty Taskbar area and click Tile Windows Vertically (in Windows XP) or Show Windows Stacked.

  • How to show only date in BO webi 3.1 text box

    how to show only date in BO webi 3.1 text box for e.g:-
    01/01/2005  (no time only date)

    hi,
    just check by which format your date is coming
    just create a one variable and check =UserResponse("Transaction Date From (mm/dd/yy)")
    if your output is in format of("mm/dd/yyyy hh:mm:ss a")
    then some format we have to write in todate syntax
    then your final formula for date would be
    =FormatDate(ToDate(UserResponse("Transaction Date From (mm/dd/yy)");"mm/dd/yyyy hh:mm:ss A");"dd/mm/yyyy")

  • How to show a photo in pages by VC?

    How to show a photo in the table or the detail in the pages generated for the Composer Appearance? Example: The user makes a search, receives as resulted a book list, he would like to show in this list an icon with the cover of each book and when clicar in the icon to open the detail of the book showing an image of the cover. How to make this in the VC? Thanks in advanced!

    - Use a "Form view", create a button there.
    - Double-click on it and create on the tabstrip "Action" a custom action "NEWIMAGE"
    - Apply to "[self]".
    - Connect the output-port of the Form view with the input-port of the HTML view
    - Click on the line between the ports
    - double-click on the field "url*"
    - enter now a formula in the formula-editor that allows you to e.g. get the url from a data-field
    (you can test it with just inserting a url in the formula like 'http://www.sap.com' - don't forget the quotes- and that is different from the default url)
    Mario

  • How to show employee names in descending order but 3rd row is fixed and always top on the table ?

    how to show employee names in descending order but 3rd row is fixed and always top on the table ?
    for example employee names is A,B,C, D, E
    and output is     C,E,D,B,A

    Since you are posting in the design forum, the short answer is - you don't.  Rows in a table have no inherent order that you can rely on and the "position" of rows is a visual characteristic that should be implemented by the application that displays
    this information or by the query that is used to generate the resultset.  
    So the next question is how one accomplishes this particular order within a select statement.  That is a tsql question which, for future reference, is best posted to the tsql forum.  In addition, many of the questions or issues that you will face
    have been discussed in the forums - often many, many times.  The first thing you should do when faced with an issue is to simply search the forums and leverage the the knowledge that has already been discussed.  In doing so you are quite likely to
    see suggestions or related issues that you should consider in your search for a solution.  
    Now, to answer the question - you need to formulate a order by clause that forces the rows to be sorted in the manner you desire.  Effectively you have 2 levels of sorting.  The first level divides your rows into 2 groups.  Group 1 consists
    of rows where name = E and Group 2 is everything else.  Following that you then need to sort the rows in each group by name in descending order.  Something like:  
    order by case name when E then 1 else 2 end, name desc

  • How to Install SSIS COM Component on Client side

    Hi,
    I am new to BPC.
    I can't install SSIS COM Component on Client side.
    and i guess,  it lead BPC Excel , Data Manager is not working.
    Because all the user are local user on server side, no domain
    I have run OSoftSetup.exe,  but the result is
    Error (Login failed for user ". The user is not associated with a trusted SQL Server connection.)
    i have tried to change the OutlookSoft.config in OSoftSSIS_Client\Bin Folder
    and the config doesn't take any effect.
    How to How to Install SSIS COM Component on Client side?
    thx
    It is client side PC_MS\Logging\Log
    #ERROR#CustomXMLClt##EPM-BPC-MS##e17c2022-c7d4-4a0b-8515-b719441e3dbf###XMLParser : GetTagValue#hostname
    user########Plain##[LOG ID:22]System.NullReferenceException: Object reference not set to an instance of an object.
       at OSoft.Consumers.Common.CustomXML50.XMLParser.GetAttributeValue(String strKeyValue, String strAttKeyValue, String strSubKeyValue)#
    thx
    John

    But the problem is...in client side
    When opening Office 2007 Excel -> eTool -> Data Manager
    There have no option showed.
    and in C:\Documents and Settings\<user>\My Documents\PC_MS\Logging\Log
    it has following error.
    2010 08 21 17:15:35:875#+8:00#ERROR#CustomXMLClt##EPM-BPC-MS##51cea66a-13cd-49fc-afdd-7b492566bd12###XMLParser : GetTagValue#<HOSTNAME>
    BPCADM########Plain##[LOG ID:346]System.NullReferenceException: Object reference not set to an instance of an object.
       at OSoft.Consumers.Common.CustomXML50.XMLParser.GetAttributeValue(String strKeyValue, String strAttKeyValue, String strSubKeyValue)#
    2010 08 21 17:15:35:875#+8:00#ERROR#DMClientTools##EPM-BPC-MS##7aec1fbe-5fda-4c91-9c4a-1eec5e59911b###DMTools::ErrCheck#<HOSTNAME>
    BPCADM########Plain##[LOG ID:347]System.Exception: 91: Object reference not set to an instance of an object.
       at OSoft.Consumers.DataMgr.DMClientTools50.DMTools.ErrCheck(String strRtn)#
    2010 08 21 17:15:35:875#+8:00#ERROR#DMClientTools##EPM-BPC-MS##48f5a612-a046-4ef9-a56c-db565ef489d2###DMTools::GetServerInfo#<HOSTNAME>
    BPCADM########Plain##[LOG ID:348]System.Exception: 91: Object reference not set to an instance of an object.
       at OSoft.Consumers.DataMgr.DMClientTools50.DMTools.ErrCheck(String strRtn)
       at OSoft.Consumers.DataMgr.DMClientTools50.DMTools.GetServerInfo(String strContext, String strFilter, String strSecurity)#
    2010 08 21 17:15:35:890#+8:00#ERROR#DMConsole##EPM-BPC-MS##af7f7343-1cb2-4802-a667-2adbb1b8e2fd###basClientTools::ChangeClientSiteList#<HOSTNAME>
    BPCADM########Plain##[LOG ID:349]Subscript out of range#

  • How to use bash within sqlplus?

    How to use bash within sqlplus?
    meaning I am doing something like this to look for files within a particular directory with some condition.
    N=0
    for i in $(find . -path \*/waiting/* -type f -not -name "SS*" -mmin +120 -print) ; do
    testarray[$N]="$i"
    echo "$i"
    let "N= $N + 1"
    done
    Output from above script is as follows:
    /d1/d2/d3/d4/waiting/abcd.txt
    /d1/d2/d31/d42/waiting/pqrs.txt
    /d1/d2/d32/d43/waiting/xyz.txt
    And now I want to input this data into database with help of insert.
    and here is the little pl/sql block to insert the data with looping thing.
    sqlplus $CONNECT <<-EOF
    DECLARE
    Counter integer :=1;
    BEGIN
    WHILE Counter <= ${no_of_files} LOOP
    INSERT INTO stuck_files(COL_DATE,SER_NAME,TYPE_FILE,FILENAME,FILE_STATUS) VALUES (sysdate,'pqrs','pqrs','pqrs','pqrs');
    Counter := Counter + 1;
    END LOOP;
    END;
    commit;
    exit;
    EOF
    Mapping is as follows:
    COL_DATE,SER_NAME,TYPE_FILE,FILEFILENAME,FILE_STATUS
    sysdate,d3,d4,abcd.txt,waiting
    sysdate,d31,d42,pqrs.txt,waiting
    sysdate,d32,d3,xyz.txt,waiting
    any idea how to do that?
    Edited by: user9274197 on Apr 28, 2013 5:09 PM

    user9274197 wrote:
    How to use bash within sqlplus?
    meaning I am doing something like this to look for files within a particular directory with some condition.
    N=0
    for i in $(find . -path \*/waiting/* -type f -not -name "SS*" -mmin +120 -print) ; do
    testarray[$N]="$i"
    echo "$i"
    let "N= $N + 1"
    done
    Output from above script is as follows:
    /d1/d2/d3/d4/waiting/abcd.txt
    /d1/d2/d31/d42/waiting/pqrs.txt
    /d1/d2/d32/d43/waiting/xyz.txt
    And now I want to input this data into database with help of insert.
    and here is the little pl/sql block to insert the data with looping thing.
    sqlplus $CONNECT <<-EOF
    DECLARE
    Counter integer :=1;
    BEGIN
    WHILE Counter <= ${no_of_files} LOOP
    INSERT INTO stuck_files(COL_DATE,SER_NAME,TYPE_FILE,FILENAME,FILE_STATUS) VALUES (sysdate,'pqrs','pqrs','pqrs','pqrs');
    Counter := Counter + 1;
    END LOOP;
    END;
    commit;
    exit;
    EOF
    Mapping is as follows:
    COL_DATE,SER_NAME,TYPE_FILE,FILEFILENAME,FILE_STATUS
    sysdate,d3,d4,abcd.txt,waiting
    sysdate,d31,d42,pqrs.txt,waiting
    sysdate,d32,d3,xyz.txt,waiting
    any idea how to do that?
    Edited by: user9274197 on Apr 28, 2013 5:09 PMhttp://asktom.oracle.com/pls/asktom/f?p=100:11:::::P11_QUESTION_ID:439619916584
    Cheers,

  • How to access output 13 and higher in AU Lab?

    Hey all,
    I'm trying to get AU Lab working in a configuration with 17 stereo outputs (or 34 mono). I'm having a problem in that when it comes to assigning the output from a generator channel strip it only shows outputs 1-12 (next to the meters). I can't find any way to make the rest of the outputs appear, so I can't assign the generators to those outputs.
    Anyone have any idea how to do so?
    TIA,
    Martin

    Hey all,
    I'm trying to get AU Lab working in a configuration with 17 stereo outputs (or 34 mono). I'm having a problem in that when it comes to assigning the output from a generator channel strip it only shows outputs 1-12 (next to the meters). I can't find any way to make the rest of the outputs appear, so I can't assign the generators to those outputs.
    Anyone have any idea how to do so?
    TIA,
    Martin

Maybe you are looking for