Column format for Describe

Hi guys,
I got a small question here.
The question is regarding the column formating in SQL prompt.
basically we can use DESCRIBE <table_name> to see the columns existed in a table.
the column headers appear are "Name", "Null", and "Type"
if you don't do any linesize and pagesize setting, the result of the describe is good enough, but the thing is when you set both linesize and pagesize to 1000, in linux you'll get a really screwed result of that DESCRIBE syntax.
in windows of course this might not happen if you set the screen buffer size to 1000 as well.
so, come to the real question:
How can I format the column header for DESCRIBE syntax?
Regards,
Adhika

the column NAME in the view v$tablespace is already of datratype varchar2(30). So when you set the sql*plus printing of this column to format a30, there would be no change.
test the command with format a5 and you'll see some difference.Actually you won't...
SQL> desc v$tablespace;
Name                                      Null?    Type
TS#                                                NUMBER
NAME                                               VARCHAR2(30)
INCLUDED_IN_DATABASE_BACKUP                        VARCHAR2(3)
BIGFILE                                            VARCHAR2(3)
FLASHBACK_ON                                       VARCHAR2(3)
ENCRYPT_IN_BACKUP                                  VARCHAR2(3)
SQL> col name format a10
SQL> desc v$tablespace;
Name                                      Null?    Type
TS#                                                NUMBER
NAME                                               VARCHAR2(30)
INCLUDED_IN_DATABASE_BACKUP                        VARCHAR2(3)
BIGFILE                                            VARCHAR2(3)
FLASHBACK_ON                                       VARCHAR2(3)
ENCRYPT_IN_BACKUP                                  VARCHAR2(3)But setting linesize does effect the output column size.
SQL> set linesize 100
SQL> desc v$tablespace;
Name                                                  Null?    Type
TS#                                                            NUMBER
NAME                                                           VARCHAR2(30)
INCLUDED_IN_DATABASE_BACKUP                                    VARCHAR2(3)
BIGFILE                                                        VARCHAR2(3)
FLASHBACK_ON                                                   VARCHAR2(3)
ENCRYPT_IN_BACKUP                                              VARCHAR2(3)
SQL>

Similar Messages

  • Column format with percent ( % ) sign

    Is there column formatting for percent ( % ) signs?
    One of the fields in the report currently displays a number, e.g. "3.75", but need to add the percent ( % ) sign, e.g. "3.75%".
    I found the following:
    * To display "$5,234.10", I can use "FML999G999G999G999G990D00", this formats with a dollar ( $ ) sign and two decimal places.
    * To display "-5,234.10", I can use "S999G999G999G999G990D00", this formats with the sign ( + ) or ( - ) and two decimal places.
    However, I fail to find how to add the percent ( % ) sign...
    -Frank

    Thx for this hint. The only Problem with this solution is that the ‘%’ is also shown when the value is NULL.
    Has someone solved this also for NULL values where there should be nothing in the cell.
    Some solution but not very nice is to do this in the query itself.
    select ltrim(to_char(value, '999G999')||'%','%') from dual
    another one may by
    select to_char(b.COST_MATERIAL,'999G999L', 'NLS_CURRENCY = ''%''')
    from budget b

  • Report column format specification

    I know, I can use TO_CHAR function in the SQL query to specify the column format for a user defined report. But, there is a separate tab for formatting columns when you creating a new report.
    Does anyone know how to specify the column format in the "Create Report Dialog" box?
    I tried with "999,999.99" and "###,###.##", doesn't seem to work.
    Thanks,
    Senthil.

    Itt appears that on Vista/11G/SQLDev 5440 in the Create report dialog ..
    report child query column formatting is lost (not saved)
    report parent query column formatting according to java formats detailed here http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html
    such as ###,### do not take effect

  • PDF export for  columns formatted as HTML

    Hello,
    I've created a report having some columns formatted as HTML .
    in the PDF file exported from BI Answers dashboard, HTML tags are shown instead of formatted value.
    (for example : "div style="width:100%;background-color:#FF3300">89.12%</div" instead of 89.92%)
    Any ideas how to fix this ?
    BI version : 10.1.3.3.3
    Thank you.

    Hi dragosv,
    I've also encountered similar problems to that. The OBIEE process does not first evaluate the code before it exports to other tools like PDF and Excel.
    Here are two options:
    1) Submit an SR to Oracle and have them declare it a bug
    2) Print to HTML first, then print the HTML to PDF. It adds a step but at least you can download your document the way you want.
    Best regards,
    -Joe

  • Format for certain columns in list view control

    I have a list view control and I would like to format the alignment for certain columns. I heard that the only way you can do this is by formatting the cells in excel. I tried this with no success. Can someone please give me step by step instructions on how to achieve this. I am currently allowing Xcelsius to handle my formatting for money. Is it possible to have Xcelsius handle the money formatting and have excel handle the alignment  formatting. I am open to whatever works at this point. Also I am using Xcelsius 2008 (Build Number 12,2,1,66).
    Much Thx

    Hi,
       In list view control you can format the entire row only, not a certain column.
       Go to property>Appearance>Text Tab>select Header>Format selected text->select the format.
      For width change: Property> Layout Tab>check custom column width the click the icon and enter width in pixel.
    Regards,
    Senthil K

  • Changing date format for some of the date columns in a subject area

    Hi,
    I have a requirement to change the date format for some of the date columns to dd-mon-yyy for only a particular subject area. Is there a feature available in the RPD which can help me do this?
    In Answers - Column Properties for a Particular column of a report, we can save the style and formatting as system wide default for the particular column or the data type, but that applies across subject areas.
    I tried with the config files too , but that too applies to all suject areas.
    Thanks in Advance,
    Gaurav

    Why don't you create 2 logical column derived from same date physical col and then change the format for one logical column and use it in Subject Area ?

  • (BSO) export for lev0 member in column format

    Hi there,
    Today I have made a (BSO) export for lev0 member in column format.(Choosed this options with the export routine)
    What maked me wonder was that not only lev0 member are in the export file but also lev1 member.
    Can someone explain why this happened.
    I'm on 9.2.1 on win32.
    Regards
    Andre

    Hi Glenn,
    Thank you for your response,
    As you can see from the ess_lev0_exp_1.JPG outlined in the screen shot
    that this >lev0-member has 18 children. So impl shared should not matter.
    As as you can see from the ess_lev0_exp_2.JPG also these members are included in the export.
    However, the dim "Konten" (Account) is set to dense.
    The export options you can see in ess_lev0_exp_options.JPG.
    I find that strange anyhow. Hmm...
    http://fotoalbum.web.de/gast/andre.ml/Essbase
    Regards
    Andre

  • Column format export for chosen members only (Essbase 7.1.6)

    Hi,
    I need to pull column-format looking level 0 export from Essbase cube, that:
    * must only contain single month for single year, other months in export file are to be either #Mi (pre) or non-present (post);
    * must only be for chosen account branches (so account->month->year carving);
    Main database must stay untouched by this, so if clearing/restructure is needed it must be done on a copy.
    The quest is to find a simple way to set this up to run without any human interaction. My idea is to:
    1) copy of current database structure without data (batch: shutdown both db's, clear copy, copy essbase files, start dbs),
    2) populate it with newest level 0 export (esscmd script),
    3) carve out needed data using calcscripts+variables set up for this occasion (esscmd scripts on top of calc scripts),
    4) export in column format (esscmd script).
    Point one is kind of problematic since I need to copy essbase structure related files (otl and friends). Carving with CLEARBLOCK script takes about 2-3h per run (clearing unwanted months and years, needs to be split into three account sets later on).
    Is there an easier way to do this kind of carving? Column format compliance is a must here, so ,,column format alike'' report script might not be the way to go. Anybody?
    Cheers,
    S.
    Edited by: uEssbaser on 2009-01-28 02:53

    Jason, so far I haven't got the chance to write any usable report scripts and trying to modify one of examples given in man brought me to 10GB of tmp files blowing off servers C: drive. What I need is data at zero level for (chosen accounts -> single chosen frequency -> single chosen time member -> single chosen year member -> all other dimensions). Export must be identical to level 0 column extraction from database in which everything else beyond listed dataset was cleared (so full time dim header, but for 100 in Feb and 200 in Mar you'll get #Mi 100 while extracting Feb, and #Mi #Mi 200 when doing Mar extraction). Any ideas?
    Glenn, I'm still trying to get Jexport function to run over my chosen data, but I'm unsure about essbase column format compliance when extracting single month (header + added #Mi's?). Will retry and get back on this.
    Doug, yeah I could do that, but Outline modifications are done mainly by other people and quite often too, so this may be a single point of failure in the future.
    Anyway I'm half way to fully-automated process of getting outline structure (with OU OE) along with full column format level 0. I think I'm just going to parse this outside Essbase, as part of repacking and uploading to a remote site process. I need this to be ,,fire and forget'' process, so anything coupled too much with essbase (variables, UDAs, minor setting changes in structure) may become a hard to trace breaking point later.
    Still -- any help and suggestions appreciated.
    Cheers,
    S.

  • Supported date formats for sorting

    Can someone point me to a document describing the supported
    date formats for sorting? I mean, how should I format a date column
    in an XML dataset in order to have this column correctly sorted
    using the Spry framework?
    Thank you and sorry if the question is trivial.

    Thanks, what I have done for the moment as a temporary
    solution is to use the two date formats and have them both inside
    the one cell in the table (the column for the sortable date
    yyyy-mm-dd). In my CSS I have created a style for the first date
    that has it's visibility as hidden. That way it's sorting the Date1
    but only Date2 is being shown to the users as the other cells have
    more than one line of text it doesn't look too off centre.
    <div spry:region="ds2">
    <table width="662">
    <tr>
    <th width="127" class="eventhead"
    spry:sort="Date1">Date</th>
    <th width="151" class="eventhead"
    spry:sort="Type">Type</th>
    <th width="146" class="eventhead"
    spry:sort="Title">Title</th>
    <th width="189" class="eventhead"
    spry:sort="Venue">Venue</th>
    </tr>
    <tr spry:repeat="ds2" spry:setrow="ds2">
    <td height="53" class="event">{Date2}<span
    class="eventhide">{Date1}</span></td>
    <td class="event">{Type}</td>
    <td class="event">{Title}</td>
    <td class="event">{Venue}</td>
    </tr>
    </table>
    </div>
    </div>
    It seems to be working for the moment...

  • Source Data file format for FDM

    Hi,
    I am new in FDM and have couple of question on data loading.. We are using FDM to load the data in Essbase. Please help me on these-
    Question 1:
    In source data file, suppose, we have around 300 account members and around 100 PO numbers. There are multiple 'PO numbers' records for each 'account member'.
    As per our requirement, we need to sum up the all values for 'PO number' column for each account.
    For example, suppose, we will get data file as below. Here, Important point is, I don't have dimension for 'PO number ' in Essbase. I will get the accounts data corresponding to 'PO number' but there is no dimension in Essbase to store data at 'PO number' level.
    Account column PO number Actual Estimated
    A001 P0123_10 10.00 15.00
    A001 P0123_20 20.00 25.00
    A002 P0123_30 30.00 35.00
    A002 P0123_40 40.00 45.00
    A002 P0123_50 50.00 55.00
    A003 P0123_60 60.00 65.00
    A003 P0123_70 70.00 75.00
    A003 P0123_80 80.00 85.00
    and so on
    Now we want to sum up the data for each Account member i.e
    Account column Actual Estimated
    A001 30.00 40.00
    A002 120.00 135.00
    and so on ---
    As per my understanding, While defining the *'Import format'* for this source data file , we will not consider the column for 'PO number' and will define the mapping with merge option. Hence, multiple record for each account will be accumulated.
    Please suggest me on this.. Is my understanding correct or how will handle this type of scenario?
    Question2:
    Suppose, we have data for multiple scenarios ( i.e. Actual, Estimated etc) in one excel sheet, which will be used in FDM as a source file? As per admin guide, we have POV for Category and data will be loaded for that selected POV only. In this case, will FDM consider the data for each selected POV scenario or how FDM will function in this case... do we need to have separate files for each scenario...
    Please help me to solve these problems...
    Thanks & Regards,
    Mohit Jain

    QUESTION1: If you ignore the PO field in the import you will get the accumulating behaviour you describe. Not sure what you mean by using merge in the mapping. The default behaviour of FDM is to accumalate all non-unique lines following the mapping process you don't have to set anything
    QUESTION2: Data will only be loaded to the selected Category in the POV if you have data in the file that needs to be targetted at a different scenario you will need a seperate load file containing that data and choose the alternate category in a seperate manual workflow process

  • Duplicate column headers for each of the rows

    Header 1
    Header 2
    Header 3
    row1 data1
    row1 data2
    row1 data3
    Header 1
    Header 2
    Header 3
    row2 data1
    row2 data2
    row2 data3
    Header 1
    Header 2
    Header 3
    row3 data1
    row3 data2
    row3 data3
    Hi folks,
    I want to know how to implement the table/grid format likes above described formation.
    Actually I want to generate each column header for each row data in one table/grid.
    Thanks for your help.

    I meant to delete this thread, but I do not know how to. Sorry.

  • How do you get the column names for a given table from an SQL LocalDB programmatically in Visual Basic.

    Just new to this and unable to find answers

    My solution
        Public Function GetTableColumnNames() As Boolean
            Form1.ListBox1.Items.Clear()
            _MDFFileName = String.Format("{0}.mdf", _DatabaseName)
            _sqlConnectionString = String.Format("Data Source=(LocalDB)\v11.0;AttachDBFileName={1};Initial Catalog={0};Integrated Security=True;", _DatabaseName, Path.Combine(_DatabaseDirectory, _MDFFileName))
            Dim cn As New SqlConnection(_sqlConnectionString)
            'put the table name in brackets in case it has spaces in it
            Dim SQLString As String = "SELECT * FROM [" & _TableName & "]"
            Try
                cn.Open()
                Dim cmd As New SqlCommand(SQLString, cn)
                Dim rdr As SqlDataReader =
                cmd.ExecuteReader(CommandBehavior.KeyInfo)
                Dim tbl As DataTable = rdr.GetSchemaTable
                'This shows all of the information you can access about each column.
                For Each col As DataColumn In tbl.Columns
                    Form1.ListBox1.Items.Add(col.ColumnName)
                    Debug.Print("col name = " & col.ColumnName & ", type = " & col.DataType.ToString)
                Next
                'Get each column.
                For Each row As DataRow In tbl.Rows
                    Form1.ListBox1.Items.Add(row("ColumnName"))
                Next
                rdr.Close()
            Catch
                MessageBox.Show("Error opening the connection to the database.")
            Finally
                cn.Close()
            End Try
            Return _Success
        End Function

  • Textarea formatting for carriage returns

    Hi all,
    I've created a websheet that includes a textarea column and have found that while any text entered in edit mode displays a carriage return, as soon as the data has been entered and the field returns to read-only mode the carriage returns are not retained . . . all of the content is displayed in one continuous string. Is there a way to accomplish this?
    Note: Using APEX v4
    Thanks.
    Edited by: arrowjf on Jan 6, 2012 1:18 PM

    * The TextArea control uses UNIX-style line endings, which
    means that text data containing Windows-style carriage-return
    line-feed (that is, \r\n) formatting for new lines contain extra
    line breaks. You can use String.replace() with a regular expression
    to convert the text to UNIX-style line endings, as the following
    example shows:
    private static const windowsCRLF:RegExp = /\r\n/gm;
    myTextString = myTextString.replace(windowsCRLF, "\n");
    http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex2_sdk.html

  • cfinsert tablename attribute, how to format for Oracle

    I've been using <cfquery> successfully for a long time
    to do table inserts, but now I'd like to use <cfinsert> for
    the simple inserts. However, I'm getting error messages. A typical
    <cfquery> against my Oracle database would look like:
    <cfquery name="myQuery"
    datasource="#application.DataSource#">
    INSERT into abc.action_type_def (field1, field2, field3)
    VALUES ('value1', value2'', value3'')
    </cfquery>
    I tried the following <cfinsert> but got the error
    message that follows the tag:
    <cfinsert datasource="#application.DataSource#"
    tablename="ABC.ACTION_TYPE_DEF"
    formfields="FIELD1, FIELD2, FIELD3">
    ERROR:
    Message: There are no columns found for the given table name
    "PRFA.ACTION_TYPE_DEF".
    Detail: This error may be caused by not specifying the table
    name in the format that the database server expects. (For example.
    Oracle Server table name must be upper case or the Server table
    name must be qualified in the format of "schema.table_name". For
    the SQL Server, the format is "databasename.username.tablename",
    such as in customers.dbo.orders)
    I've tried upper and lower case on the tablename attribute,
    tried leaving the "abc." off, but I just can't seem to get it to
    work. Any idea how to format this tag to go against an Oracle
    database?
    Thanks! Pam

    Word of advice: I would stay away from using cfinsert and
    cfupdate tags, unless you are prone to masochistic tendencies and
    enjoy pain and suffering. These tags are notoriously bug-prone, and
    cause more work than they save. Just my opinion, but I'm sure that
    it is one shared by many on these forums.
    Having said that, you might take a look at the attributes for
    this tag, as you seem to have combined the schema (table owner)
    with the table name, as in ABC.ACTION_TYPE_DEF, which should be
    listed distinctly using separate attributes, namely tableOwner and
    tableName respectively. Note: I don’t use these tags so this
    “fix” is just based on reading the
    LiveDocs
    for this tag.
    Since you have so much more control using cfquery, and you
    said that you have been using it for quite some time, why switch to
    using cfupdate/cfinsert? If you already know enough SQL to do an
    insert or update , then you really don't need to use these tags.
    You will thank me.
    Phil

  • Reading MP3 music files from an external hard drive formatted for PC

    I have 60 Gigabytes of MP3 files (my whole CD collection, mostly saved in high quality format) on a 120 GB external hard drive that was attached to my IBM Thinkpad. They are arranged in folders and subfolders, e.g. folder "Great pianists of the XXth Century" subfolder "Sviatoslav Richter" subfolder "Sviatoslav Richter CD1" files "(01) Bach English Suites 1", "(02) Bach English Suites 2".
    1) My Mac (OS X.4 - Tiger - or is that X.3?) recognizes the drive as a drive (its icon appears on the desktop), but not its contents. I was told by somebody that I'd need a differently formatted PC Hard Drive for the Mac to recognize the content, and then by somebody else that the titles would all then be truncated to 8 characters. Is there a way around this? Preferably I'd like to be able to read a HD that is formatted for PCs in the way that is now standard, directly from my Mac.
    2) Is there a way for iTunes - or some other music programme for the Mac - to play the MP3s as they are currently arranged, without having to reorder or rename them, or copying my whole CD collection onto a HD from scratch? (Getting 60 Gigs of MP3s from CDs is a task I'm not keen to repeat). If necessary, I could find a way to copy the current folders and files onto an external HD formatted for the Mac, but then that would hopefully be it.
    At present I'm having to use the Thinkpad with Windows Media Player to play back all this music over my Hi-Fi, but would like to free up the Thinkpad for other uses by my family, and would like to run all my music from the Mac I use for everything else.

    Thanks, Jason & Mike. This is how I resolved the problem. Turned out the disk with the data was in NTFS format. Neither my eMac nor my wife's Carbon iMac (prehistoric, in other words) was able to read it, on repeated attempts. In process I discovered (to my surprise) that the external hard drive attached to my eMac (a 320 Gig My Book) was formatted in FAT 32 format, and that the PC laptop (Thinkpad) read from it, and wrote to it, without any problem. (Is FAT 32 less than optimal for use with a pre-Intel Mac?). So I just copied the needed files from the NTFS disk to the FAT 32 disk, via the Thinkpad. When I reconnected the FAT 32 drive to the eMac, it turned out that it was easy [with some fiddling] to put the titles of the new music into the iTunes Library, without having to copy the music itself into iTunes. Making playlists does still seem to have to go manually. Sometimes the "New Playlist from Selection" option automatically gives a name (the original name) to the album from which the music came, sometimes it doesn't. Rationale not clear to me. Other problem: often the sequence is jumbled (this is after I added the whole collection of folders containing music to my iTunes Library in one fell swoop). Usually it was possible to correct this by copying track names for albums one album at a time from the external HD (in Columns view, selecting all the tracks in each folder simultaneously) directly into the playlist; the playlist name then always had to be copied or typed in separately. I don't know if I'm missing an easier route. Also, I see that I have version 4.7.1 of iTunes - I'll download a newer version! Don't know whether newer version will affect what I want to do in a positive sense.

Maybe you are looking for