Set unused column

Sir
i am new to database.I am doing an oracle course on 051.My oracle faculty is saying
Set unused column option will hide the column for-ever.user can't retrieve it again.
what i believe if a statement is hiding a column there must be some option to regain it.
Is there any option of to make an unused column to reusable again?

Hi,
i am new to database.
Is there any option of to make an unused column to reusable again?Since you're new:
Try to find your answers in the Oracle documentation as well, as it explains clearly how 'Oracle things' work, with examples and you can do quick searches on keywords of your interest.
Example: http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#sthref2329
You should bookmark: http://tahiti.oracle.com and start reading the concepts and fundamentals when you've got some spare time.
assuming you're on 10g

Similar Messages

  • 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

  • Unused columns in 8i

    Hi,
    I've set one column unused in one table. Now I want to reuse it. How to do that?
    Please answer it.
    Thanx in advance
    Darshil

    Hi
    Renaming a column is not supported in 8i.
    Chris
    PS: the syntax is "ALTER TABLE <table name> RENAME COLUMN <old column name> TO <new column name>"

  • How to recover the unused column

    According to the spec, 'set unused' does not actually remove the target columns and the column data remains in the table's rows. but if a column was marked as unused, there are no any access to the column. then why the clause is released?is it better than drop column?if the unused columns exist still,why there are no clause to restore it?

    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2913496610745#2914947431112

  • Set Unused

    I am using oracle 9i and have following problem.
    I have made one of the columns in a table unused using
    ALTER TABLE TABLE_NAME SET UNUSED COLUMN_NAME;
    Now I want to undo this effect means to say i want to see this column again in output how is it possible ...?

    SET UNUSED Clause:
    Until you actually drop these columns, they continue to count toward the absolute limit of 1000 columns in a single table. However, as with all DDL statements, you cannot roll back the results of this clause. That is, you cannot issue SET USED counterpart to retrieve a column that you have SET UNUSED. Please refer to CREATE TABLE for more information on the 1000-column limit.
    «

  • DROP UNUSED COLUMN

    Dear Guru’s
    I have a situation where I need to drop specific columns which are set to unused!
    Say, I have 3 unused columns in a table – and now I want to drop only one unused column from that.
    SQL> alter table scott.emptest set unused (ENAME);
    Table altered.
    SQL> alter table scott.emptest set unused (COMM);
    Table altered.
    Once I set some columns un-used, now I want to drop only one un-used Column “ENAME”
    SQL> alter table scott.emptest drop column ENAME;
    alter table scott.emptest drop column ENAME
    ERROR at line 1:
    ORA-00904: "ENAME": invalid identifier
    which in turn throws this error!
    Help appreciated!
    Thanks in advanced
    Ravi Prakash

    SCOTT@demo102> create table tbl_25 as select * from emp
    SCOTT@demo102> /
    Table created.
    SCOTT@demo102> desc tbl_25
    Name                                      Null?    Type
    EMPNO                                              NUMBER(4)
    ENAME                                              VARCHAR2(10)
    JOB                                                VARCHAR2(9)
    MGR                                                NUMBER(4)
    HIREDATE                                           DATE
    SAL                                                NUMBER(7,2)
    COMM                                               NUMBER(7,2)
    DEPTNO                                             NUMBER(2)
    SCOTT@demo102> alter table tbl_25 set unused (deptno)
    SCOTT@demo102> /
    Table altered.
    SCOTT@demo102> alter table tbl_25 set unused (comm);
    Table altered.
    SCOTT@demo102> desc tbl_25
    Name                                      Null?    Type
    EMPNO                                              NUMBER(4)
    ENAME                                              VARCHAR2(10)
    JOB                                                VARCHAR2(9)
    MGR                                                NUMBER(4)
    HIREDATE                                           DATE
    SAL                                                NUMBER(7,2)
    SCOTT@demo102> select * from all_unused_col_tabs where table_name ='TBL_25';
    OWNER                          TABLE_NAME                          COUNT
    SCOTT                          TBL_25                                  2
    SCOTT@demo102> alter table tbl_25 drop unused column;
    Table altered.
    SCOTT@demo102> select * from all_unused_col_tabs where table_name ='TBL_25';
    no rows selected
    SCOTT@demo102> Nicolas.
    Add queries on all_unused_col_tabs.
    Message was edited by:
    N. Gasparotto

  • Set a column to be nullable

    Hi, I am not really good at SQL. Please help me if you can.
    I have a column that's Nullable (yes), default (1). Now I want to set the default of the column to null and set the column to be nullable. Here is what I am doing:
    create table testit
    (foo number default 1 not null, doo varchar(10));
    insert into testit (foo, doo) values (15, 'a')
    insert into testit (foo, doo) values (14, 'b')
    insert into testit (doo) values ('c')
    select * from testit
    This will return 3 rows where foo=1 when doo='c'. Now I do:
    ALTER TABLE testit
    modify foo DEFAULT NULL
    This will set the default value of foo to be NULL, however, the Nullable is still No. Then when I do
    insert into testit (doo) values ('ddd')
    I get "cannot insert Null into (testit.foo). What should I do?
    Thanks. :D

    SQL> create table testit
      2  (foo number default 1 not null, doo varchar(10));
    Table created.
    SQL> insert into testit (foo, doo) values (15, 'a');
    1 row created.
    SQL> insert into testit (foo, doo) values (14, 'b');
    1 row created.
    SQL> insert into testit (doo) values ('c');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from testit;
           FOO DOO
            15 a
            14 b
             1 c
    SQL> describe testit;
    Name                                      Null?    Type
    FOO                                       NOT NULL NUMBER
    DOO                                                VARCHAR2(10)
    SQL> ALTER TABLE testit
      2  modify foo DEFAULT NULL;
    Table altered.
    SQL> describe testit;
    Name                                      Null?    Type
    FOO                                       NOT NULL NUMBER
    DOO                                                VARCHAR2(10)
    SQL> insert into testit (doo) values ('ddd');
    insert into testit (doo) values ('ddd')
    ERROR at line 1:
    ORA-01400: cannot insert NULL into ("TESTIT"."FOO")
    SQL> select constraint_name from all_cons_columns
      2   where table_name = 'TESTIT';
    CONSTRAINT_NAME
    SYS_C00289436
    SQL> select search_condition from all_constraints
      2   where constraint_name =  'SYS_C00289436';
    SEARCH_CONDITION
    "FOO" IS NOT NULL
    SQL> alter table testit drop constraint SYS_C00289436;
    Table altered.
    SQL> insert into testit (doo) values ('ddd');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>

  • How to show next set of columns in a adf table

    hi,
    i want to display 999 no of columns in a adf table. since it is not a better way to show all the columns in the adf table at a time, we want to show 10 columns at first and by using the next and previous links the user can see the next and previous set of columns. i dont know how to do this. please help me.
    parameswaran

    You have to put table name in Capital letters
    Like
    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = 'EMP';
    or
    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = UPPER('Emp');Regards
    Arun

  • Is there any way to set default column widths in the Finder's Column view

    When my Finder windows open in column view, all the columns are always VERY wide. I have to then spend time resizing them to a managable width. Is there any way to set default column widths in the Finder's Column view?
    <Re-Titled By Host>

    No, because you can't set a columns view default.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • OLE2 how to set a column width of an excel file i'm creating?

    how can i set the column width in an excel file i'm creating with ole?
    or even, haw can i set the auto-fix properties?

    Hallo !
    SORRY MY ENGLISH is very BAD.
    I tried to set page header and  footer in Excel sheet with abap ole
    DATA : BEGIN OF enter,
             x(1) TYPE x VALUE '0D',
            END OF enter.
    DATA : format(255) TYPE c.
    FORM set_page_sheet.
      CALL METHOD OF excel 'ActiveSheet' = sheet.
      CALL METHOD OF sheet 'PageSetup' = pagesetup.
      SET PROPERTY OF pagesetup 'Orientation' = xllandscape.
      SET PROPERTY OF pagesetup 'PrintTitleRows' = '$9:$12'.
      CLEAR format.
    ERROR
      CONCATENATE 'PAGESHEET' enter-x 'PAGE &P/&N' INTO format.
    ERROR
      SET PROPERTY OF pagesetup 'RightHeader' = format.
      CLEAR format.
      CONCATENATE ' Text 1 ' enter-x 'Text 2'
    enter-x 'Text 3 ' INTO format.
      SET PROPERTY OF pagesetup 'RightFooter' = format.
      FREE OBJECT pagesetup.
    ENDFORM.                    " set_page_sheet
    Activate report -
    ERROR - The enter-x must by data type c or another then data type x
    Thanks for answer.

  • How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?

    Dear SharePoint Developers,
    Please help.
    I need to know How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?
    I think this is a "sealed column", whatever that is, which is  shown in SPD 2013 as a column of content type "document, folder, MyCustomContentType".
    I know when I set the column order in my custom Content Type settings page, it is correct.
    But, when I load the NewDocSet.aspx page, the column order that I set in the settings page is NOT used for this "sealed column" which is bad.
    Can you help?
    Please advise.
    Thanks.
    Mark Kamoski
    -- Mark Kamoski

    Hi,
    According to your post, my understanding is that you want to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx.
    Per my knowledge, if you have Content Type management enabled for the list or library (if you see a list of content type with the option to add more), the display order of columns is set for each content type.
    Drill down into one of them and you'll see the option under the list of columns for that content type.
    To apply the column order in the NewDocSet.aspx page, you need to:
    Select Site Settings, under Site Collection Administration, click Content type publishing. In the Refresh All Published
    Content Types section, choose Refresh all published content types on next
    update.
    Run two timer jobs(Content Type Hub, Content Type Subscriber) in central admin(Central Administration--> Monitoring--> Review timer jobs).
    More information:
    http://sharepoint.stackexchange.com/questions/95028/content-types-not-refreshing-on-sp-online
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Set the column name of a table in a list box

    is there any code to set the column name of a table in a list box at oracle devloper 6i?
    pls help.

    I dont want to go for pl/sql . It should work any table.You want Dynamic SQL without using PL/SQL? Tricky. I'm sure there's a possible way using some very complex and convoluted XML functionality of SQL but in reality you are asking for something that isn't natural to SQL queries, especially if you are expecting a dynamic number of columns to be produced for each row of data. SQL expects a table structure, including output formats, to be a defined number of columns with any number of rows, not a defined number of rows with any number of columns.
    Perhaps if you explain why you need this sort of functionality then we may be able to offer a better solution.
    ;)

  • Set the column length in an sql query

    Hi,
    Is there a way to set the column length in a query without using sqlplus commands like row size and format column.
    I'd like to do it just from the sql query itself.
    select 'this is a test' from dual; Can I define the width of this column in the select statement
    Cheers.

    Use RPAD,
    SQL> WITH T
      2       AS (SELECT 'this is test' str FROM DUAL
      3           UNION ALL
      4           SELECT 'this is a long test' FROM DUAL
      5           UNION ALL
      6           SELECT 'this is a long long long long test' FROM DUAL)
      7  SELECT RPAD ( str, 20) str,LENGTH( RPAD ( str, 20)) len
      8    FROM T;
    STR                         LEN
    this is test                 20
    this is a long test          20
    this is a long long          20
    SQL> G.

  • How to set displayed column width for a search help

    I have created an elementary search help for a custom field with a value table behind it.
    The search help functions correctly, but when displayed the column widths are all 10 characters. The user has to adjust the column to view the descriptive text.
    Can anyone tell me how to set default column widths for the help?

    Please  open you Elementary search  help  and see the Column  width   behind the Fields of your ...there  increase the width of the fields
    "Activate it  and refresh
    reward  points if it is usefull .....
    Girish

Maybe you are looking for

  • Hosted dns-sd for bonjour over wan

    Has anyone found a company that will host a dns domain that supports dns-sd registration.. I have installed the bonjour pref pane and would love to have someone manage a dns server that I can have a domain and register my services. For example, I wou

  • Steven Please Help

    Hi Steve, I feel you can give me better suggestion for my question. We are suppose to develop an Application which is little big, I mean it may have around 200 forms.This has to be done for a Supermarket which is placed at around 20 centres.Now we ar

  • Empty file pickup or not

    Hi all is it possible for pickup emty file , if it ok where is it configuration in file adapter?

  • Whats the difference between the 79.99aperture in the app store and the 199.99 box at the apple store

    whats the difference between the 79.99 aperture in the app store and the 199.99 box at the apple store

  • Where do I put Camera Calibration Profiles?

    Running LR 4.2 64-bit on Windows 7 64-bit.  I"m shooting with a Nikon D300. When I look at an image, in Develop, I have a set of choices for "profiles".  These include Embedded, ACR4.3, ACR 4.4, Adobe Standard, Camera D2X mode 1,2,3, Camera Landscape