How to identify fields which are fast approaching the size limits

Hi All,
Is there an easy (or any) way of identifying Database fields whose field sizes are close to the limits.
Example: I have field called SEQ_NUM, size of the field is 3 and currently latest value in the filed is 995, soon it will be a 1000.
Thanks
Raghu

Hi, Raghu,
Assuming your statistics are up to date, you can start with the information in the data dictionary view user_tab_columns (or all_tab_columns, or dba_tab_columns).
The column high_value is a RAW representing the highest value. There's a conversion function in the supplied package utl_raw.
The column data_precision is the maximum number of digits, and data_scale is the number of them to the right of the decimal point
SELECT     table_name
,     column_name
,     utl_raw.cast_to_number (high_value)     AS actual_high
,     POWER (10, data_precision - data_scale)     AS possible_high
FROM     user_tab_columns
WHERE     data_type     = 'NUMBER'
AND      ( utl_raw.cast_to_number (high_value)          -- actual_high
      / POWER (10, data_precision - data_scale)     -- possible_high
      ) > .95      -- or whatever
;I'm sure there are lots of special cases (large negative numbers, for example) that this will not catch.

Similar Messages

  • How to export fields which are rendered false from a page?

    Hi ,
    I have a requirement to export the data to excel, i am able to do it using export button.
    but the problem is i need to export the all the fields which are there in the VO query but some of them are not renderd on the page.
    Please suggest some solution for this.
    Thanks

    Hi,
    Can you add them in the page to formValueBeans and check the issue.
    Thanks.
    With Regards,
    Kali.
    OSSi.

  • How to Print Fields that are Centered on the Label

    Labview 6.1 - Which VI do I call or Attribute do I set to make a String Field "Centered" on its Row on a Zebra Label? I need to specify the String Data, the Font Size and Centered about Position. One Centered field per Row (3 Rows). I am using the NewReport.vi, SetReportOrientation.vi, SetReportFont.vi AppendReportText,vi, PrintReport.vi and DisposeReport.vi

    LabVIEW does support the windows printer driver, I was thrown off by the fact that you said "zebra label." We have a report generation toolkit that will allow you to create more advanced reports and can programatically control microsoft word and excel to create as complex of a document as you desire.
    Our basic report generation toolkit that ships with LabVIEW supports simple reports and layouts. It also allows for HTML reports. You can then append any HTML formatting to the report that you desire (such as the center tag).
    You could also continue to use the standard report by appending spaces to the string you are printing. For example, if you know that your printer is 80 characters wide (using a fixed width font), you can take the size of the string "len" and append (80-len)/2 number of spaces to the string. If you need help doing this, let me know.
    We actually implimented a barcode label printing VI that printed an entire front panel. We created a VI that had an array of controls and we formatted the controls to our desire (one was a centered string). We then used the "print panel vi" in the block diagram. That we we simply wired the inputs to the VI and it printed the front panel to the printer onto the labels (we use this on our large shipments that have more than one item).
    The ActiveX examples that ship with LabVIEW and on our website are very good starting points for creating word reports, but if you are going to use LabVIEW to manipulate Microsoft Word and Excel, I really suggest getting our Report Generation Toolkit for Microsoft Office. The RGT (Report Generation Toolkit) contains a complete set of easy to use VIs to programmatically create and edit Word and Excel documents. The Microsoft Office ActiveX interface is huge, and it is often times hard to find good complete documentation on how to perform certain tasks. The RGT VIs hide all of the ActiveX complexity and really simplify the tasks, but as a developer I really appreciate the fact that the VIs contain all of the ActiveX code on the block diagram so that I can look at them as examples and modify them to my desire. You can find out more about the RGT from ni.com, click on Products, LabVIEW, LabVIEW Addons, LabVIEW Toolsets, LabVIEW Report Generation Toolkit.
    I hope some this gives you an idea you can run with.

  • How to upload podcasts which are not in the iTunes podcast library?

    or how to create a playlist of podcasts?
    I have some podcasts as mp3 files I'd like to upload. These podcasts are not in the Itunes podcast library. I downloaded them from another source. What I do not understand is why iTunes makes a difference between podcast mp3 files and music mp3 files. If I put my podcasts into a playlist and try to synchronise the playlist with iPhone, the files are not uploaded. Actually I do not see the playlist listed in the page "Music" of my device "iPhone".
    Any ideas?

    I've usually found using outer joins to be very efficient in performing NOT IN/NOT EXIST type operations.
    WITH t1 AS (
    SELECT 100 type, 1 begin_no, 10 end_no FROM dual
    UNION ALL
    SELECT 200 type, 10 begin_no, 20 end_no FROM dual
    UNION ALL
    SELECT 300 type, 20 begin_no, 30 end_no FROM dual
       , t2 AS (
    SELECT 100 type, 5 no FROM dual
    UNION ALL
    SELECT 100 type, 6 no FROM dual
    UNION ALL
    SELECT 100 type, 11 no FROM dual
    UNION ALL
    SELECT 100 type, 21 no FROM dual
    UNION ALL
    SELECT 200 type, 5 no FROM dual
    UNION ALL
    SELECT 200 type, 6 no FROM dual
    UNION ALL
    SELECT 200 type, 11 no FROM dual
    UNION ALL
    SELECT 200 type, 21 no FROM dual
    UNION ALL
    SELECT 300 type, 5 no FROM dual
    UNION ALL
    SELECT 300 type, 6 no FROM dual
    UNION ALL
    SELECT 300 type, 11 no FROM dual
    UNION ALL
    SELECT 300 type, 21 no FROM dual
    SELECT t2.*
      FROM t2
         , t1
    WHERE t1.type (+)= t2.type
       AND t2.no BETWEEN t1.begin_no(+) AND t1.end_no(+)
       AND t1.type IS NULL;
    output is:
    TYPE     NO
    200     21
    200     6
    200     5
    300     11
    300     6
    300     5
    100     21
    100     11

  • How to use fields (which are from includes in marc) in selectqry where cond

    Hi,
    I want to select the data from marc which contains includes.....i want to use that include field
    in selection list and in where condition, basing on that i want to retrieve data.
    can u give examples reply..........
    Thanks and Regards,
    M Prasanna

    TYPES: BEGIN OF ty_marc,
            matnr TYPE marc-matnr,
            werks TYPE marc-werks,
            pstat TYPE marc-pstat,
            lvorm TYPE marc-lvorm,
            bwtty TYPE marc-bwtty,
            xchar TYPE marc-xchar,
            mmsta TYPE marc-mmsta,
            mmstd TYPE marc-mmstd,
            maabc TYPE marc-maabc,
            kzkri TYPE marc-kzkri,
            ekgrp TYPE marc-ekgrp,
            ausme TYPE marc-ausme,
            dispr TYPE marc-dispr,
            dismm TYPE marc-dismm,
           END OF ty_marc.
    DATA: gt_marc  TYPE TABLE OF ty_marc.
    SELECT  matnr
            werks
            pstat
            lvorm
            bwtty
            xchar
            mmsta
            mmstd
            maabc
            kzkri
            ekgrp
            ausme
            dispr
            dismm
           FROM marc
            INTO TABLE gt_marc
             WHERE pstat = 'EDLQBG'.
    IF sy-subrc = 0.
      WRITE: / 'done'.
    ELSE.
      WRITE: / 'error'.
    ENDIF.

  • How to get the screen groups for the screen field which are on selectionscn

    hiiii Experts,
                   How to know the screen groups for the screen field which are on selection screen.
    Thanks and regards,
    kasyap

         NAME                                             PNPABKRS-LOW
            GROUP1                                             SEL
            GROUP2                                             DBS
            GROUP3                                             LOW
            GROUP4                                             180
    to get this use this:
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        if screen-name CS 'ABKRS'.
          BREAK-POINT.
        endif.
      ENDLOOP.

  • Can we add fields in MM17 which are not in the list

    Hi Folks,
    Pls help me on below.
    I want to add below fields in a variant in MM17
    Planned price 1 - MBEW-ZPLP1
    Planned price 2 - MBEW-ZPLP2
    Planned price 3 - MBEW-ZPLP3
    But these fields are not available in the List.
    how can i add them ?

    HI
        Only it is possible what ever the fields and tables available in the transaction.Cannot add any other additional fields which ever not in the transaction.
    Thanks
    Ganesh

  • How to delete images from folder which are not in the database

    I am created windows form
    i wont to delete images from the folder where i have stored images but i only want to delete those images which are not in the data base.
    i don't know how it is possible . i have written some code
    private void button1_Click(object sender, EventArgs e)
    string connectionString = "Data Source";
    conn = new SqlConnection(connectionString);
    DataTable dt = new DataTable();
    cmd.Connection = conn;
    cmd.CommandText = "select * from tbl_pro";
    conn.Open();
    SqlDataAdapter da = new SqlDataAdapter(cmd);
    da.Fill(dt);
    int count = Convert.ToInt32( dt.Rows.Count);
    string[] image1 = new string[count];
    for (int i = 0; i < count; i++)
    image1[i] = dt.Rows[i]["Image1"].ToString();
    string[] image2 = new string[count];
    for (int i = 0; i < count; i++)
    image2[i] = dt.Rows[i]["Image2"].ToString();
    var arr = image1.Union(image2).ToArray();
    string[] arrays;
    String dirPath = "G:\\Proj\\";
    arrays = Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories).Select(x => Path.GetFileName(x)).ToArray();
    int b= arrays.Count();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    var del = arrays[j].ToString();
    else
    foreach (var value in del) // ERROR DEL IS NOT IN THE CURRENT CONTEXT
    string filePath = "G:\\Projects\\Images\\"+value;
    File.Delete(filePath);
    here error coming "DEL IS NOT IN THE CURRENT CONTEXT"
    I have to change anything .Will It work alright?
    pls help me
    Sms

    Hi Fresherss,
    Your del is Local Variable, it can't be accessed out of the if statement. you need to declare it as global variable like below. And if you want to collect the string, you could use the List to collect, not a string.  the string will be split to chars
    one by one.
    List<string> del=new List<string>();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    del.Add(arrays[j].ToString());
    else
    foreach (var value in del)
    string filePath = "G:\\Projects\\Images\\" + value;
    File.Delete(filePath);
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Creating Custom fields which are sales org dependent in Accounts Master

    Hello Experts,
    I want to create new custom fields in Accounts Master for sales and shipping.The component being used is BP_SALES.However when I try to create custom fields through AET, the new fields are added in the BUILHEADER context node.The problem with this is, its making the fields Sales Org independent.
    I want to add the fields which are sales org dependent( i.e. want to add the fields for the context nodes BUILSHIPPINGTERMS and BUILSALESARRANGEMENT).
    Please help me in this regards,
    Thanks and Regards,
    Rahim
    Edited by: Abdul Rahim on Dec 27, 2010 9:55 AM

    Hi Rahim,
    in general extension fields for Business Partner are only supported for the header fields (Table BUT000). Therefore the AET does not offer this.
    Table extension for BP sales data is supported by the AET beginning from CRM 7.0 eHP1. If you have this you can just create a 1:1 table enhancements and should be happy. If not I'm afraid that you would have to implement this manually.
    Using the Easy Enhancement Workbench (EEW) it would only be possible to create table extensions for the header and for relation ship but not for sales data.
    Regards Matthias

  • How do you change the fields that are displayed on the email preview list after a search?

    How do you modify the fields that are displayed in the mail preview list in the center column of Mac mail after you conduct a search of your email?   All of a sudden the displayed fields changed on me whenever I do a search in mail.   When I have not filtered my email with a search, the default field shown in bold at the top of each message's preview is the "From" field.   However, when I do a search this changes to the "To" field.   Can anyone help?   Thanks, ccarey

    ipicus
    But why would you want this?
    iTunes is responsible for the File Management, let it get on with it, you do your organisation in the iTunes window. And everything you need to do, you can do via the iTunes Window. Want to find the file of a track quickly? Right click on it in the iTunes Window and select Show File: A finder window pops open with the file already selected.
    Regards
    TD

  • How can i watch purchased tv shows which are stored on the cloud on my laptop?

    how can i watch purchased tv shows which are stored on the cloud on my laptop?

    Hi Miriam1972,
    Thanks for visiting Apple Support Communities.
    You can use iTunes on your laptop to download the tv shows for viewing. See this article for the steps to download the shows:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Best,
    Jeremy

  • Parameter field should pick the values which are there in the value table

    Hi Experts,
    I have a requ. where in a parameter field should pick only the values which are there in the value table for that particular field and should not allow the User to put in any other value.
    The value table is created in the program manually.
    EX:If the value table contains two sales organization VE03 and VE65 then the field shouldn´t allow anyother value other then those two.
    Thanks and Regards,
    Arun

    Try using a listbox.
    report  zrich_0001.
    type-pools: vrm.
    data: ivrm_values type vrm_values.
    data: xvrm_values like line of ivrm_values.
    data: name type vrm_id.
    parameters: p_vkorg(4) type c as listbox visible length 20.
    at selection-screen output.
      name = 'P_VKORG'.
      xvrm_values-key = 'VE03'.
      xvrm_values-text = 'VE03'..
      append xvrm_values to ivrm_values.
      xvrm_values-key = 'VE65'.
      xvrm_values-text = 'VE65'..
      append xvrm_values to ivrm_values.
      call function 'VRM_SET_VALUES'
           exporting
                id     = name
                values = ivrm_values.
    at selection-screen.
      if p_vkorg is initial.
        message e001(00) with 'Please enter a sales org'.
      endif.
    Regards,
    RIch Heilman

  • How to get services which are running currently

    How to get services which are running currently in the system by a java program. And also how to write a service so that i can start/stop the service from the control panel -> services.

    triple post
    http://forum.java.sun.com/thread.jsp?forum=31&thread=364090&start=0&range=15#1532232
    http://forum.java.sun.com/thread.jsp?forum=31&thread=364088&tstart=0&trange=15

  • How to get the Objects which are used in the webi Report.

    Hi Expert,
    I am trying to get the list of  WebI reports and Objects which are present in the report at  BO 4.0.
    I can able to get details  for only the list of reports and universes.
    Could  any one help me to get those details.
    Regards,
    Murali S

    With 4.0, there is no longer a way to do this using just the .NET SDK because the ReportEngine SDK no longer exists for .NET.  Instead, you'll have to look at using the RESTful Web Services SDK for Webi which runs in the Web Application Container Server on your report server (NOT on the web server!)
    RESTful web services are platform-independent and don't require the installation of any SDK files.  Everything is done through standard HTTP Get, Put, and Post commands and the results are returned in either XML or JSON format.  You don't mention which service pack of 4.0 you're on, but the RESTful web services have evolved over the course of the 4.0 service packs, so more recent is definitely better.
    You can find the documentation for this in the "Development Information" section at help.sap.com/bobip40.  There is also a "space" on SCN for this at http://scn.sap.com/community/restful-sdk and there are some links on this page for various resources and sample code.
    -Dell

  • HT4994 How do I use which is sim with the device

    How do I use which is handsome with the device

    If the phone is carrier locked, contact the carrier it is locked to and find out:
    a) if they offer unlocking
    and
    b) if you qualify and what the charges to do so are.

Maybe you are looking for

  • One solution to make dim or uneven display better on Macbook Pro

    I just figured this out while I was playing with the settings. There was a white stripe on the bottom of the screen, also a bubble of white on the right bottom corner. After this "tweak" the bubble completely disappeared. Apple menu System preference

  • Is there a way to password protect guess access to wireless on an E2000 router?

    I'd like to set up guest access to my E2000 router, but only for a few friends, not my entire neighborhood. When I set everything up originally through Cisco Connect, I was able to set up a guest account with a password, but it's showing up in my wir

  • Skin doesn't display

    I'm using one of RoboHelp's default skins. When I compile my project on my home p.c., the skin appears and works just fine. When I open the project at another site on a different p.c., the skin doesn't appear. The screen is white where the left verti

  • Best Procedure to Validate data in Xlsx

    Hi All, I have a requirement where we have to build an ETL  to load xlsx files into my SQL Database. Before loading to my target table i would need to validate the data. I have Two Procedures to validate the data 1) Import every thing into SQL, valid

  • How to flash EC in GX740?

    Hello! I found instruction on msi.com but I can't flash it and don't know why. Here's the instruction: http://pl.msi.com/html/pdf/How_to_make_a_bootable_flash_disk_and_to_flash_EC.pdf I just don't understund why FreeDOS can't see my USB pendrive. I'm