Drop unused fields

Hi
I am using around 130 tables in Oracle, now i want to update all the table and want to drop fields from the table which are not used and having blank record.
going to each table and giving command everytime and identifiying a blank field is time taking job, is there any shortcut for this ???
sanjay

I won't suggest writing a automated script to identify columns not being used and dropping them without even doing a impact-analysis! A better approach would be:
1) Identify columns not being used (say the ones where all rows have null values)
2) Do impact-analysis to short-list the columns that maybe dropped
3) On a table-to-table basis, write scripts to drop the column or mark it as unused, or write create table statements if mutiple columns of the same table need to be dropped. As suggested by Eric above.
Now for step (1), if all the tables of your schema are analyzed, you may use the following script to identify columns that has null value for all the rows:
select *
from   user_tab_columns
where  num_distinct = 0
and    low_value    is null
and    high_value   is null
and    num_nulls    > 0      -- this is to ignore tables with no rows!
and    avg_col_len  = 0
order  by table_name, column_id
          NOTE: Please be aware that I have not tested the above script on a full live-schema. I have tested it with a test schema having 4 tables, all tables having three number columns (col1, col2 and col3) and a test data of 10,000 rows each:
1. Table 1: col3 having null value for all rows.
2. Table 2: col3 having not-null value for all rows.
3. Table 3: col3 having not-null value in only 1 row.
4. Table 4: Table with no rows.

Similar Messages

  • I have created a PDF form with multiple drop downs, all with the same drop down values. When I select a value from 1 of the drop down fields, it replicates in all of the others - which I do not want. How can I fix this?

    I have created a PDF form with multiple drop downs, all with the same drop down values. When I select a value from 1 of the drop down fields, it replicates in all of the others - which I do not want. Can I fix this?

    I'm fairly new to this, but I think it has to do with the way you have the drop downs named. Did you copy one then keep pasting it in each field? If so, that is the problem. You should rename each one with a different number: Dropdown1, Dropdown2, etc. I think that might solve the issue.

  • Drop Column Field and Drop Row Fields in the Details Field area in the Cube Browser of BIDS/SSDT 2012

    Hello. When I right click a cube in the solution explorer and click browse, I am presented with a Details field area which doesn't have "Drop Row Fields" area like in BIDS 2008, and doesn't have "Drop Column Fields" area like in BIDS. It just has one details
    area with the message "Drag levels or measures here to add to the query".
    How do I include the  "Drop Row Fields" area and the  "Drop Column Fields" area in this Details area so it can be like 2008? 

    I am using MDX query to build SSRS report.
    How do i get MDX query from Excel ?
    Hi Vishal,
    We can use "OLAP PivotTable Extension" to get MDX query in Excel, please download it from:
    http://olappivottableextend.codeplex.com/
    In addition, I would suggest you open a new case if you have any more questiosn.
    Regards,
    Elvis Long
    TechNet Community Support

  • Using JavaScript to auto populate a field based on numeric value of a separate drop down field

    Hello, I am trying to set up a simple, I hope, javascript which will enable to me auto populate one field based on the numberic value of another field using Acrobat Pro XI.
    Essentially I have 2 drop down fields (we'll call them DD1 and DD2).
    DD1 is the sum of 8 preceding drop down values. That sum can be anywhere from 0 - 40. Whatever that sum falls within a range which identifies a rating. The ratings and ranges are below:
    0-8: Non-Performer  
    9-16: Low Performer  
    17-24: Performer  
    25-32: High Performer  
    33-40: Exceptional Performer
    DD2 is where the rating ("non-performer", "low performer", etc.) will be captured. Instead of requiring the user to look at DD1, determine the value, and then identify and input the rating manually, I would like DD2 to auto populate the rating based on the value (sum) in DD1.
    For example, if DD1 shows a value of 27 then DD2 would auto populate "High Performer". So how do I write this code or execute this? In excel I would use an if, then statement. Is there something similar in Acrobat Pro XI.
    Any help is greatly appreciated. Thank you in advance.

    If you use a text field, the custom calculation script could be:
    // Custom calculation script for text field
    (function () {
        var s = getField("DD1").valueAsString;
        // Blank this field if input is blank
        if (!s) {
            event.value = "";
            return;
        // Convert string to number
        var v = +s;
        // Set this field's value based on the input
        if (v <= 40 && v >= 33) {
            event.value = "Exceptional Performer";
            return;
        if (v < 33 && v >= 25) {
            event.value = "High Performer";
            return;
        if (v < 25 && v >= 17) {
            event.value = "Performer";
            return;
        if (v < 17 && v >= 9) {
            event.value = "Low Performer";
            return;
        if (v < 9 && v >= 0) {
            event.value = "Non-Performer";
            return;
        // If none of the above fit, blank this field
        event.value = "";

  • Infopath 2013 - Values are not appearing in a drop down field referencing site column which uses lookup in custom list

    I have a master custom list that has a set of site columns. For each site column there is a lookup to a custom list with reference data. When I edit the list in data entry view all values in drop down fields work fine, but when I customize the form for
    the master list, no data appears in the drop down fields. I can change the data binding on the form so it references the the correct data and when I preview the form it works. But when I publish it, no data is available in these drop down fields.

    Hi  shakonarson,
    According to your description, I try to reproduce your scenario but the lookup field works fine.
    When we customize the form for the  list  in the InfoPath 2013 , it is by design that the Drop-Down List Box control cannot  display its value.
    For troubleshooting your issue, please take steps as below:
    Go to lookup List Box on your form in  InfoPath 2013 , right click it and choose “Drop-Down List Properties” from the bottom of your field menu.
    Make Sure you select “Get choices from an external data source” and correct Data source.
    Make Sure the Xpath  of Entries is “d:SharePointListItem_RW” under the dataFields.
    Here is a good blog for sorting lookup column DropDown by customizing your list form with InfoPath you can have a  look:
    Sort SharePoint lookup column Dropdown by customizing your list form
    with InfoPath
    Hope this helps!
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Acrobat X Pro Drop-down Fields Do Not Appear on Adobe Reader for iPad. Help!

    Hello,
    I am having a problem getting drop-down fields to appear on Adobe Reader for iPad. Basically, I need to create a form that includes drop-down fields, with the end result being a form that can be viewed and completed on an iPad, using the Adobe Reader app. Above all else, the end result needs to be viewable on an iPad.
    I created a form using Acrobat X Pro within which drop-down fields work flawlessly. However, when I try to open this form on an iPad, the drop-down fields do not even appear. I have done some investigating on the Web (including these forums) and come to understand that this has to do with javascript limitations on Apple products, but have yet to discover a solution to my problem.
    To summarize: does anyone know how to make drop-down fields appear in Abobe Reader for iPad app? Or, does anyone know a workaround in which I could have a drop-down menu (or something similar) in my form and have it work on Adobe Reader for iPad?
    Thanks in advance for the help. I took on this project from my boss' boss, so I'd really like to get this done for him.

    Hello GKaiseril,
    Thanks for the reply. I experienced the issue running the most recent version of the Adobe Mobile Reader app. I'm not sure I can convince the client to use anything else, but its worth a shot.
    All I need is a simple drop-down list (multiple fields in the document) with 4 options that the user can select and submit as a form. Is this something EZ Pdf reader can do? Also, is EZ Pdf Reader free? (the reason I ask is I am an Android user and do not readily have access to a iPad).
    Thanks again.

  • How do I change the order of a drop down field of an existing form?

    I have added additional responses to a drop down field and I want to reorder with previous response options.  The move up and move down feature does not work.   

    That worked.  Thanks!
    Cheryl Aeling
    [signature removed by forum host]

  • Drop Down Field issue with Acrobat 8.0 and Acrobat 7.0

    Hi All,
         I have a dynamic table with a drop down field  which will be filled from a WD context.The minimum row count for the table is  one.
    The problem is i was able to get the Drop down values for all the rows  in Acrobat Reader 8.0 and i was able to get drop down values only for the first row(minimum row count is one) in Acrobat Reader 7.0.
    What could be the difference?
    Thanks
    Gopal

    It's a result of Mozilla's annoying rapid-update policy. We can load plugins (i.e. can display a PDF file within the Firefox window) but cannot load extensions (the toolbar) unless they are marked as compatible with the running version of the browser. Not only is that version now changing every 6 weeks, but developers are forbidden to mark an extension as being compatible before the new version is released to market (i.e. we cannot certify against betas). With each major release in the new Mozilla rapid cycle, the type of code Adobe uses (binary XPCOM) has to be recompiled from scratch - so as of right now the Create PDF extension doesn't work in FF7 even if you turn off compatibility checks. It should work, but Firefox won't allow it to execute.
    It means that every time Mozilla pushes a new major version to the public, XPCOM extension developers have to push an update as well. Adobe already get hammered for requiring users to update too often! However, each time Acrobat and Adobe Reader push a scheduled patch they should catch up with whatever version of FF exists at that time. The next Acrobat Family patch is due mid-January.
    It's not just Adobe who are affected by this - many other vendors include FF extensions with their products (as opposed to having them as standalone items on the Mozilla site) and cannot realistically bring out new versions of their software every time Firefox flips up a digit.

  • I am currently using FormsCentral to distribute a form created in Acrobat. I need to add an option to one of the drop down fields but do not want to re-distribute the form due to reporting purposes. How can I do this?

       I am currently using FormsCentral to distribute a form created in Acrobat. I need to add an option to one of the drop down fields but do not want to re-distribute the form due to reporting purposes. How can I do this?

    You can open the form in Acrobat, select "File > Save a Copy", open the copy you just saved (it doesn't happen automatically), edit the dropdown to add the new item, save as a new file, and then Reader-enable the file by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools. The resulting PDF should work with FormsCentral just like the original.

  • EDI Outbound IDOC Remove unused fields from segment

    Hi All,
    I am configuring a outbound idoc scenario for Message type ORDERS. The basic type for this message type is ORDERS05.
    The segment E1EDKA1 has 44 fields, I need only the first field and the last field of this segment.
    How do I remove the unused fields in this segment ?  I Tried BD56 and BD32 But they are for removing the complete segment and so does not serve my purpose.
    Any pointers to this issue is appreciable .
    Regards,

    Hi,
    Segmetns of standard message types can be deleted from BD53. But I don't think deleting fields would be possible from segments of standard idoc type. What you can do is you can create your own custom idoc type with the fields you want and allign it with the standard message type ORDERS. This should solve your purpose.
    BR,
    Atanu Mukherjee

  • Drop down fields on Adobe reader for iPad

    Hello,
    Regarding using an order form in adobe reader for iPad, I am able to check boxes, free form text, etc. but drop down fields are not retaining selection.  I will click drop down, make selection, and field is still blank. If I select the same drop down my choice is checked. When I email form the field remains blank.
    Any help would be appreciated!!

    Hello,
    Thank you for the response.  I am currently using Adobe 11.01.  I believe I have found the problem.  Our company utilizes an app names "Showpad" for our sales teams.  Within Showpad you can open PDF's, however any interactive functionality is not available.  To solve for this, you can open a PDF within Showpad and then "open with" a different app.  In this case, I opened with Adobe Reader.  It looks like all the functionality returns to the document minus that drop down issue I am experiencing.
    I tried to open the same order form from my email using Adobe Reader and all functionality is available (including drop down).
    It looks as though something is getting lost between the Showpad app and Adobe Reader app.

  • Missing Drop Down Fields

    After saving my form as a PDF, the drop down fields are missing upon opening the form from an email attachment.  The form drop downs continue to be present in Forms Central.

    Hi,
    Which application are you using to view the PDF? Please refer to the following document:
    http://forums.adobe.com/docs/DOC-2653
    Regards,
    Brian

  • Is there a way to get a drop down field in a muse form? (Not using a third party like jot or Wufoo)

    Is there a way to get a drop down field in a muse form? (Not using a third party like jot or Wufoo) if not then it needs to be a priority for the developers (also radio buttons) as whay should we have to use third party form generators !!
    Thanx

    LOL..... No guru's or employees/staff can answer this simple question ?????
    20+ years in the Advertising Design industry, and would think a simple answer to this would be easy ?

  • Dropping Unused column

    Hi All,
    I am working on version 11.2.0.3.0 ( windows server 2008 ).
    While dropping unused column i am getting below error
    SQL> create table er (ab varchar2(50), aa varchar2(50)) compress;
    SQL> alter table er set unused column ab;
    Table altered.
    SQL>
    SQL>
    SQL>
    SQL>
    SQL> alter table er drop unused columns;
    alter table er drop unused columns
    ERROR at line 1:
    ORA-39726: unsupported add/drop column operation on compressed tables

    i can't do such things for these number of tablesThat is the funniest thing I've heard in a while. If you can "alter table xxx drop unused columns," why can't you do what is suggested.
    And no, it's not a bug.
    And no, there is not "another way around"

  • Drop unused column in compressed table

    Good day for all.
    I have partitioned compressed table under 10.2.0.4 database. I need to remove column, and did it according metalink note 429898.1, but then i execute command alter table .... drop unused columns, i got error ORA-39726 (unsupported add/drop column operation for compreseed table), so it mean that proposed workaround don't works now.
    Does anyone have new workaround for this problem?

    alter table MY_TABLE set unused(MY_FNG_COLUMN);
    -- success
    alter table MY_TABLE drop unused columns;
    -- error

Maybe you are looking for