How to set the data fields column wide at sqlplus

Dear Sir/Madam
I would like to know how to set the data fields column wide at sqlplus
Thanks
Francis

see
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch6.htm#sthref1131
and the FORMAT clause of the COLUMN command in
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12013.htm#BACHCABF

Similar Messages

  • How to add the date field in the dso and info cube

    Hi all.
    I am new to bi 7. in the earlier version v hav to button to add the date field. but in the bi 7 der is no option so can any body tell me how to add the date field in the data targets
    Thanks & Regard
    KK

    my prob is solved
    KK

  • How to set the Data Synchronisation mode for ADF BC component?

    Hi All,
    How to set the Data Synchronisation mode for ADF BC component
    Thanks
    Raghavendra

    Can you clarify what you mean by the data synchronization mode?
    If you mean the Sync Mode, then in 10.1.3 you set this property by:
    1. Selecting your DataBindings.cpx file
    2. Expanding the "Data Control Usages" section in the structure window
    3. Selecting the ADFBC-based data control
    4. Setting the "syncMode" property in the property inspector.

  • How to move the data of a table from sqlplus to XML file

    Hi,
    Could you pls guide me how to move the data of a table from sqlplus to XML file.
    i want to do it from sqlplus rather than toad.pls help
    Thanks

    Oh..I'm in 9i.
    Try this out..and let me know.
    DECLARE
    CTX DBMS_XMLGEN.CTXHANDLE ;
    XML CLOB ;
    F UTL_FILE.FILE_TYPE;
    XMLC VARCHAR2(32767);
    BEGIN
    CTX := DBMS_XMLGEN.NEWCONTEXT('SELECT * FROM department1 ') ;
    XML := DBMS_XMLGEN.GETXML(CTX) ;
    XMLC:=TO_CHAR(XML);
    SHOW_ENVELOPE(XMLC);
    F := UTL_FILE.FOPEN('ATTACH_FILES','DEPT.XML', 'W');
    UTL_FILE.PUT_LINE(F,XML);
    UTL_FILE.FCLOSE(F);
    END ;
    Good luck!!!
    Bhagat
    null                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to set the expires field to stop caching of pages

    I want to set the expires fields of the HTML data on pages delivered by weblogic, so caching servers(ie ISA) and clients dont cache the my pages. How do I do this?
    Thanks for any help

    I guess that's the NI Domain (NI Security Login) user name. Check out Tools->Security->Login in LV main menu.

  • JTable Model   --  How to set the width of columns

    Hello,
    This project of mine is due in 2 days. :(
    I am using AbstractTableModel and I can't figure out how to set the columns' width inside my JTable?
    This following code does not work.
    int vColIndex = 1;
    TableColumn col = table.getColumnModel().getColumn(vColIndex);
    int width=399;
    col.setPreferredWidth(width);Please remember, that I'm using AbstractTableModel and not just simple JTables.
    Thanks in advance.

    The DataModel (AbstractTableModel or otherwise) has nothing to do with the table column size. The DataModel is used to store data.
    When you create a JTable using a DataModel then a TableColumn is created for each column in the DataModel using a default column size. The normal order of creation would be:
    TableModel model = new DefaultTableModel(...);
    JTable table = new JTable(model);
    Now that the table and table columns are created you can change the size of the columns:
    int vColIndex = 1;
    TableColumn col = table.getColumnModel().getColumn(vColIndex);
    int width=399;
    col.setPreferredWidth(width);
    So your code looks ok.
    However, if somewhere in you code you do:
    a) table.setModel(...)
    b) fireTableStructureChanged();
    then the table columns are recreated based on the current DataModel and the table column size would be reset to the default values.

  • HELP Friends!!! How to set the width of columns of JTABLE?

    Hi!
    How to set the width of a particular column in JTable?
    I tried using headerRenderers and though I'm able to set the color and font of the header (using getTableCellRendererComponent method)I can't change the size.
    Pls some one help me..it's very urgent.
    Thanks in advance.
    Regards,
    Naval

    JTable.getColumnModel().getColumn(i).setWidth(width). There are also setPreferredWidth, setMaxWidth and setMinWidth methods.

  • How to set the 'Lot' field in Batch Pending (Product) Lots as 'Optional'

    We are now Upgrading FROM 11.5.10.2 To r12.1.3.
    The 'Lot' field under Batch material Details -> Pending Product Lots is mandatory, Which is very bad for us.
    Our Current (11i) business process for creating Product lots, is to 1st allocate the 'Lot', and later on allocate and complete the 'Sublots' within this lot.
    The equivalent process in r12 should be: 1st allocate the 'Parent Lot', and later on allocate and complete the 'lots' within this Parent lot.
    Question: Is there any way to set the 'Lot' field to be optional?
    Thanks,
    Eran.

    Hi
    No this is not possible, since Parent lot is a subset of Lot in R12. Once you choose your item as LOT, then it is not possible to make as Optional.
    Try to raise an SR for this, Oracle may provide some workaround for the same.
    Rgds
    Raj
    NTTData India

  • How to set the date picker to display only months?

    I am trying to set the date picker in SSRS 2012 to allow the user just to select the months:  and when I run my store procedure I get a can't convert data type from nvarchar to datetime.  If I don't comment out of the Where Clause, nothing
    is returned if I leave the Where Clause in.
    Alter
    PROCEDURE RollingReportList
    AS
    BEGIN
    SET NOCOUNT
    ON;
    SELECT
    distinct
       [ItemDescription]
    ,[QuantityOrdered]
      ,QuanitityCost
    = [QuantityOrdered]
    * [Price]
    ,Convert(datetime,(CONVERT(CHAR(4),PE.[LastUpdated],107) 
    + '-'
    + (right(CONVERT(CHAR(4),PE.[LastUpdated],112),2)))) 
    as CurrentMonth 
    ,Convert(datetime,(CONVERT(CHAR(3),Datename(MONTH,DATEADD(MONTH,1,PE.LastUpdated)),107) 
    + '-'
    + (right(CONVERT(CHAR(4),PE.[LastUpdated],112),2))))
    as NextMonth
      ,Name
    FROM
    [HQStore].[dbo].[PurchaseOrderEntry]
    as PE
    inner join
    [HQStore].[dbo].[PurchaseOrder]
    as PO
    on  PE.[PurchaseOrderID]
    = PO.[ID]
    inner join
    [HQStore].[dbo].[Store]
    as ST
    on PE.[storeid]=ST.ID
    Where 
    (@Start
    = '01/01/2009'
    and  @Last
    =  '12/31/2010')
    End
    Go
     Exec
    RollingReportList
    Any Help?

    Try the below....
    Where  (@Start = '20090101' and  @Last =  '20101231')
    SELECT FORMAT(getdate(), 'MM')
    02
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How can I set the date field to auto populate the current date?

    I have many forms to create where the current date dictates a specific change in options or conditions for the form filler to follow. I cannot see any way to handle that issue. Is it possible to simply set the current date as a default?
    jcytrny

    Sorry, we currently do not support having today's date show up in a date field by default
    Randy

  • How to set the data in af:selectOrderShuttle with reorderOnly "true"

    I created codes like below, but after the page is loaded, there is not any data in the list. even I added a String array(employeeMB.columns) with some value in the managed bean, nothing did I get. How can I set the initial data in the list with reorderOnly set to "true"? I am using JDeveloper 11.1.1.2.0. Thanks.
    +<af:selectOrderShuttle value="#{employeeMB.columns}"+
    reorderOnly="true" id="colsMonitor">
    +<af:selectItem label="Empno" value="Empno"/>+
    +<af:selectItem label="Name" value="Ename"/>+
    +<af:selectItem label="Job" value="Job"/>+
    +<af:selectItem label="Department" value="Deptno"/>+
    +<af:selectItem label="Hiredate" value="Hiredate"/>+
    +<af:selectItem label="Salary" value="Sal"/>+
    +<af:selectItem label="Commission" value="Comm"/>+
    +<af:selectItem label="Manager" value="Mgr"/>+
    +</af:selectOrderShuttle>+

    Hi,
    A helpful thread for you:----
    Dynamically Change Data Provider in Anaylsis Grid in Bex Workbook 7.0
    Regards,
    Suman

  • How to fetch the data in column "Current User"?

    I have a task server that are being used for data upload of our computers.
    There's one detail I would like to get when I do a report and that's the data that's seen in the the ”Current User” column in ARD itself.
    Is there a way to get this data uploaded to the task server and if that's so, how do I fetch that info?
    Thanks in advance for any help on this!

    OK, thanks for this info.
    The thing is I'm only interested in the name that can be set as ”User Name” in System Preferences -> Accounts. Since all the users have the same short name (home folder) it's just that name set in System Preferences that I'm interested in (this name shows up in the ”Current User” column when changed.
    Maybe this info shows in a User History Report?
    I'll try and see...
    Thanks!

  • How to set the data packet in order??

    we have 20 datapackets that is in sequence order how to set in order wise ?
    Example:- this is the scenario Data packets is in this order 20,1,10,5,9,13,4,8,13,2,15,19,14Like this
    I have to set in order wise how to doit??????

    HI
    I think you sjust should use a process chain.
    Call transaction RSPC and build it within the order needed.
    regards
    Tom

  • How to set a date field to sysdate when clicking on create button ?

    Hello , when the user clicks on the create button , he should see 'sysdate' by default on the date from field .. When do I add such a validation please ?
    I tried adding a business rule on the entity object and set the expression as 'adf.currentdate' but it didn't work .
    Any help please ? Thanks.

    See
    Dare to Code...: current date time groovy for ADF

  • How to define the DATE fields in itab for uploading the data?

    Hi Experts,
    Am uploading the data from Excel sheet to Z table via my_itab.
    So, there r 3 Date fields in Z table, which are defined as DATS(8).
    So, pls. let me know that, How I hv to define the itab-date_one, itab-date_second, itab-date_three, weather CHAR(10) or sy-datum or concatenation??
    thanq

    Hi Sri, follow like this.
    First Move that Excel Sheet Data to Internal Table Using Function Module ALSM_EXCEL_TO_INTERNAL_TABLE.
    And you can insert that internal table data to Database Table Using INSERT Command.
    First upload Data From Excel Sheet to ITAB with Required Structure. Once the Data Comes...
    And Declare another Internal Table (ITAB1) Type Database Table name.
    And Use Insert Database Table From ITAB1.
    Check this Example.
    TABLES:MARA.
    DATA:BEGIN OF ITAB OCCURS 0,
    MATNR LIKE MARA-MATNR,
    MBRSH LIKE MARA-MBRSH,
    MTART LIKE MARA-MTART,
    MEINS LIKE MARA-MEINS,
    END OF ITAB.
    DATA:ITAB1 LIKE MARA OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
    ITAB-MATNR = '123ABCDA'. .
    ITAB-MBRSH = 'C'.
    ITAB-MTART = 'FERT' .
    ITAB-MEINS = 'KG' .
    APPEND ITAB.
    ITAB-MATNR = '123ABCDB'. .
    ITAB-MBRSH = 'C'.
    ITAB-MTART = 'FERT' .
    ITAB-MEINS = 'KG' .
    APPEND ITAB.
    LOOP AT ITAB.
    MOVE-CORRESPONDING ITAB TO ITAB1.
    APPEND ITAB1.
    ENDLOOP.
    LOOP AT ITAB1.
    INSERT MARA FROM ITAB1.
    MODIFY MARA .
    ENDLOOP.
    or,
    By using type pools TRUXS our problem my be solve.
    Take one internal table like your standard data base table and
    one internal table for truxs like
    DATA: it_raw TYPE truxs_t_text_data.
    DATA: itab like mara occurs 0 with header line.
    Use FM
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    I_FIELD_SEPERATOR =
    i_line_header = 'X'
    i_tab_raw_data = it_raw " WORK TABLE
    i_filename = p_file
    TABLES
    i_tab_converted_data = it[] "ACTUAL DATA
    EXCEPTIONS
    conversion_failed = 1
    OTHERS = 2.
    Now looping that and updated to data base table.
    hope this helps.
    kindly reward if found helpful.
    cheers,
    Hema.

Maybe you are looking for