Adding a column into existing index

Can I add a column into existing index?
or do I need to drop the index and recreate one?
Thanks.

but there is no way to add a column to an existing table10:43:24 TEST.SQL>create table test10:43:28 2 (
10:43:29 3 a number
10:43:32 4 )
10:43:34 5 tablespace tools
10:43:36 6 ;
Table created.
Elapsed: 00:00:00.06
10:43:38 TEST.SQL>alter table test add
10:43:44 2 b date;
Table altered.
Elapsed: 00:00:00.68
10:43:48 TEST.SQL>desc test
Name Null? Type
A NUMBER
B DATE
10:43:51 TEST.SQL>drop table test;
Table dropped.Indeed there is.Yoann.

Similar Messages

  • Adding column  to existed index syntax or example

    Hi,
    can any one please tell me the syntax or example for adding one more column to existed index.
    Thanks in Advance
    Krishna

    Hello Mr Murali,
    I do not believe you can alter index by adding more columns to it with ALTER command.
    But you can always CREATE a new index with the columns that you need (ONLINE, if necessary) and then DROP existing index.

  • How can I add new row/column into existing jTable?

    Hi add!
    Can you help me how can I add new row/column into existing jTable?
    Tnx in adv!

    e.g
    Create two buttons inside the Table ( "Add New Row" ) and ("Add new Column")
    their handlers are:
    add new row:
    //i supose u already have
    DefaultTabelModel tablemodel = new DefaultTableModel(rowdata, columnNames);
    //and   
       JTabel jtable = new JTable(tablemodel);
    // Handler (row)
    jbtAddRow.addActionListener(new ActionListener(){
       public void actionPerformed(ActionEvent e) {
          if(jtable.getSelectedRow() >= 0 )
              tablemodel.insertRow(jtable.getSelectedRow(), new java.util.Vector());  
           else  
                tablemodel.addRow(new java.util.Vector());
        });to add new columns its the same but inside actionPerformed method:
    ask for e.g "Whats the name for the new column"
    then,
       tablemodel.addColumn(nameOfColumn, new java.util.Vector());   Joao
    Message was edited by:
    Java__Estudante

  • Adding a file into existing zip file

    I need a add a file into existing zip file. and write into printwriter.
    How to do it?
    Waiting for the reply.
    Thanks and Regards,
    Narayanan. G

    Narayanan.G wrote:
    I need a add a file into existing zip file.API: [ZipOutputStream#putNextEntry()|http://java.sun.com/javase/6/docs/api/java/util/zip/ZipOutputStream.html#putNextEntry%28java.util.zip.ZipEntry%29]
    Tutorial: [http://java.sun.com/developer/technicalArticles/Programming/compression/].
    and write into printwriter.Writing a zip file into printwriter? Huh? Please elaborate.

  • Adding a column into the assets list view?

    I am trying to find a way to add a column into the assets list view.
    At the moment it has... Title, Metadata Set, Image Size, Duration, Size, Status etc...
    I would like to add another metadata field into the list and cannot find anywhere to do it. For example, add the 'Reel' metadata field into the list.
    Anyone have any ideas?
    Thanks.

    1. Log into Final Cut Server as the Admin.
    2. Open the Advanced Administration window from the java client.
    3. Search for the Metadata Group name "List"
    Note this search will return approximately 29 items, but you'll want to modify the one
    with the Metadata Group ID "ASSETLISTVIEW"
    4. Add the fields to that group that you want.
    5. To have these field show up either create New Workspace or logout and login.
    Hope this helps.
    Nicholas Stokes
    XPlatform Consulting
    [email protected]

  • Adding another Cluster into existing CSS LB

    Hi,
    Im in the process of adding a new cluster into the existing LB. I understand the concept of configuring a new LB but adding a new network to it is a question.
    I have preconfigured the LB with a new service called SPWeb 1-4 and an assign this to the content owner Central_Platform using VLAN 144 and 145.
    I have one physical connection to the PIX and all port on the PIX is taken. Do I have to setup another physical connection for the new server SPWeb to the PIX?
    Both owners Servcorp and Central_Platform are using separate public IP Subnets.
    Also, please advise if I miss anything and if you have any suggestions.
    Thansks
    !************************* INTERFACE *************************
    interface 1/1
    bridge vlan 200
    interface 2/1
    phy 100Mbits-FD
    description "To PIX"
    bridge vlan 300
    interface 2/2
    phy 100Mbits-FD
    description "To LB switches"
    bridge vlan 301
    interface 2/3
    phy 100Mbits-FD
    bridge vlan 303
    description "Management"
    interface 2/4
    phy 100Mbits-FD
    bridge vlan 144
    description "SPWeb1/2"
    interface 2/5
    phy 100Mbits-FD
    bridge vlan 145
    description "SPWeb3/4"
    !************************** CIRCUIT **************************
    circuit VLAN1
    ip address 192.168.10.1 255.255.255.0
    circuit VLAN300
    ip address (Network 1) 255.255.255.0
    circuit VLAN301
    ip address (Network 1) 255.255.255.0
    circuit VLAN303
    ip address (Network 1) 255.255.255.0
    circuit VLAN144
    ip address (Network 2) 255.255.255.0
    circuit VLAN145
    ip address (Network 2) 255.255.255.0
    !************************** SERVICE **************************
    service TS1
    ip address 172.16.250.1
    active
    service TS2
    ip address 172.16.250.2
    active
    service Spweb1
    ip address 172.16.144.51
    keepalive type HTTP
    active
    service Spweb2
    ip address 172.16.144.52
    keepalive type HTTP
    active
    service Spweb3
    ip address 172.16.145.53
    keepalive type HTTP
    active
    service Spweb4
    ip address 172.16.145.54
    keepalive type HTTP
    active
    !*************************** OWNER ***************************
    owner Servcorp
    content hottdesk.au
    add service TS1
    add service TS2
    protocol tcp
    port 3389
    vip address (Network 1)
    active
    content hottdesk_FTP
    add service TS1
    add service TS2
    port 20
    protocol tcp
    vip address (Network 1)
    active
    content hottdesk_FTP2
    add service TS1
    protocol tcp
    port 21
    application ftp-control
    add service TS2
    vip address (Network 1)
    active
    owner Central_Platform
    content WebServers_1
    add service Spweb1
    add service Spweb2
    protocol tcp
    port 90
    vip address (Network 2)
    active
    content WebServers_2
    add service Spweb3
    add service Spweb4
    protocol tcp
    port 81
    vip address (Network 2)
    active
    content WebServers_3
    add service Spweb3
    add service Spweb4
    protocol tcp
    port 83
    vip address (Network 2)
    active
    !*************************** GROUP ***************************
    group TS-WebAccess
    add service TS2
    add service TS1
    vip address (Network 1)
    active

    It would help if you could attach a picture of the network. I really can't understand why you have 2 VLANs on the same network ? Or am I missing the ide ?
    Generally I would just do VLAN tag towards the PIX and have several networks that way. If speed isn't a issue I see no problems with that.

  • Adding web gallery into existing website

    Hi,
    Does anyone know if you can add/import a lightroom created web gallery into an existing webpage? I am redoing my website (originally created with Frontpage, now considering using Expression Web) and want to create photo galleries using lightroom. I know you can create the same type of gallery using Flash, however I don't want to buy a new program when I have lightroom already. I don't have enough experience with HTML to use Dreamweaver.
    Thanks!
    Nancy

    This previews just fine from Dreamweaver but when uploaded non
    of my images load. Please see www.jakgallery.com/19701979
    All I get is the circular wait icon. Thanks very much for any help you can give. It seems I am one little step away from making it work.
    Mike

  • Adding description column into wizard generated matrix report

    Hi,
    I currently have a matrix report that reports rows as job names and columns as media type. the intersection is the media code.
    for example i have a job called abc and it has envelopes(e1,e2), base stationary (s1,s2) and inserts (i1,i2).
    job envelope base stationary inserts
    abc e1 s1 i1
    e2 s2 i2
    so far i have no problems. what i would like to do is add a description entry next to the inserts column. the description is only for the insert and only needs to be shown when an insert is present.
    any ideas? i have tried adding in an additional field, however, i get some type of grouping error (my reports has just crashed so i can't get exact error)
    thanks in advance for the help!

    Hi,
    If I understood you right. Place the txt next to the insert field, then right click on the txt field and go to 'Conditional Formatting' then New. Put it in, if the value of Insert column is null, then click the 'Hide the Object' checkbox.
    -Marilyn

  • Adding A Column into a JTable

    Hi
    I have a JTable with two soccer teams in. What i want to do is to add in a column between them that just says "VS". I ahev to do this when the user clicks a button as the table is constructed from details stored in a MySQL database.
    Can anyone give me any help?
    Jason

    the DefaultTableModel supports an addColumn() method, so:
    a) create your table and TableModel
    b) add a column to the end of the DefaultTableModel
    Now the TableColumnModel controls the order in which the columns are painted, so
    a) get the TableColumnModel from the table
    b) move the colum to the center

  • Adding mark column into an alv

    Hallo ladies and gentlemen,
    how can i easily add an mark column to an alv-list?
    thanks a lot,
    Marcel

    hi,
    DATA : wf_slis TYPE  slis_t_fieldcat_alv.
    PERFORM build_catalog USING wf_slis[].
    FORM build_catalog USING wf_slis TYPE slis_t_fieldcat_alv.
    .ur old fields....
    *new field mark
      CLEAR wf_str_slis.
      wf_str_slis-fieldname = 'WF_MARK'.
      wf_str_slis-checkbox = 'X'.
      wf_str_slis-edit = 'X'.
      APPEND wf_str_slis TO wf_slis.
    endform.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
         i_callback_program             = sy-cprog
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               =
      IS_LAYOUT                      =
         it_fieldcat                    =  wf_slis[]
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
      IT_EVENTS                      =
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          t_outtab                       = int_zone[]
       EXCEPTIONS
         program_error                  = 1
         OTHERS                         = 2
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    rgds
    anver
    Message was edited by: Anversha s

  • Adding new column in an existing report which was build using Union

    While working in OBIEE 11g I encounter an issue.
    My existing report was build using UNION at Criteria Tab in Analysis. Now I have a requirement to add a new column into the same report. For each criteria I have added the new column but when I go back to the "Result Columns". I see a new field added but it is not allowing me to open or edit column properties for that new column & at the same time it is not allowing me to navigate to other tabs like Results, Promts, and Advanced.
    I don’t want to build this report from scratch. Is there any workaround to get it resolved?

    Hi,
    Just check it once the new added column data types are mismatched or not?
    and the new added column should be navigated into excluded section, so u should edit the report and dragged into the table column section.
    Thanks..

  • Adding Specific columns of dynamic internal table row into another column

    Hi Gurus,
    I need to add  few columns of a dynamic internal table row into another column:
    Article description hy01 hy02 total
    101      panza         10     12      22
    102      masht         12     12     24
    dynamic internal table is created and columns hy01 hy02.... can increase
    How to add the the values in hy01 hy 02... into total.
    Regards,
    Dep

    Hi,
    If you really want to have a dynamic table, then you will have to find a way to generate a whole new table, and then copy the data from the old table to the new one. There is no way to modify a type during runtime in ABAP.
    Here an example how to generate a dynamic table based on another internal table, hope this will help you.
    TYPE-POOLS: slis.
    PARAMETERS: p_nb_hy TYPE i DEFAULT 2. "Number of new HY columns to be added
    * Type ZST_T:
    *   matnr  TYPE matnr
    *   maktx  TYPE maktx
    *   hy01   TYPE i
    *   total  TYPE i
    TYPES: ty_t TYPE STANDARD TABLE OF zst_s.
    PERFORM main.
    *&      Form  main
    *       text
    FORM main.
      DATA: lt_fieldcat     TYPE slis_t_fieldcat_alv,
            lt_t            TYPE ty_t,
            lr_new_t        TYPE REF TO data.
      FIELD-SYMBOLS: <lt_new_t> TYPE STANDARD TABLE.
      "Add some lines to LT_T just to have something to display on screen
      DO 10 TIMES.
        APPEND INITIAL LINE TO lt_t.
      ENDDO.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'ZST_S'
        CHANGING
          ct_fieldcat      = lt_fieldcat.
      "Copy LT_T to LR_NEW_T
      PERFORM extend_and_copy_table USING lt_t p_nb_hy CHANGING lr_new_t lt_fieldcat.
      CLEAR lt_t. "Not needed anymore...
      ASSIGN lr_new_t->* TO <lt_new_t>.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          it_fieldcat = lt_fieldcat
        TABLES
          t_outtab    = <lt_new_t>.
    ENDFORM.                    "main
    *&      Form  extend_and_copy_table
    FORM extend_and_copy_table USING ut_t           TYPE STANDARD TABLE
                                     uv_nb_hy       TYPE i
                               CHANGING cr_t        TYPE REF TO data
                                        ct_fieldcat TYPE slis_t_fieldcat_alv
                               RAISING cx_sy_struct_creation cx_sy_table_creation.
      DATA: lo_tabledescr      TYPE REF TO cl_abap_tabledescr,
            lo_structdescr     TYPE REF TO cl_abap_structdescr,
            lo_new_structdescr TYPE REF TO cl_abap_structdescr,
            lo_new_tabledescr  TYPE REF TO cl_abap_tabledescr,
            lt_components      TYPE cl_abap_structdescr=>component_table,
            ls_component       TYPE cl_abap_structdescr=>component,
            lv_field_cnt       TYPE numc2,
            ls_fieldcat        TYPE slis_fieldcat_alv,
            lr_fieldcat        TYPE REF TO slis_fieldcat_alv.
      FIELD-SYMBOLS: <ls_old_s> TYPE ANY,
                     <lt_new_t> TYPE STANDARD TABLE,
                     <ls_new_s> TYPE ANY.
      "Get the list of all components from UT_T line structure
      lo_tabledescr  ?= cl_abap_tabledescr=>describe_by_data( ut_t ).
      lo_structdescr ?= lo_tabledescr->get_table_line_type( ).
      lt_components  = lo_structdescr->get_components( ).
      "The new columns will be from type of column HY01
      ls_component-type = lo_structdescr->get_component_type( 'HY01' ).
      "The new columns will have the same fieldcat info as column HY01
      READ TABLE ct_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'HY01'.
      "HY<lv_field_cnt> = new field name
      lv_field_cnt = uv_nb_hy + 1.
      "For each new column...
      DO uv_nb_hy TIMES.
        "Generate the new column field name
        CONCATENATE  'HY' lv_field_cnt INTO ls_component-name.
        ls_fieldcat-fieldname = ls_component-name.
        "Add the new field to the components of the new structure
        INSERT ls_component INTO lt_components INDEX 4.
        "Add the new field's fieldcat info to the fieldcat
        INSERT ls_fieldcat  INTO ct_fieldcat   INDEX 4.
        lv_field_cnt = lv_field_cnt - 1.
      ENDDO.
      "Adjust the COL_POS from fieldcat
      LOOP AT ct_fieldcat REFERENCE INTO lr_fieldcat.
        lr_fieldcat->col_pos = sy-tabix.
      ENDLOOP.
      "Create the new table
      lo_new_structdescr = cl_abap_structdescr=>create( p_components = lt_components ).
      lo_new_tabledescr  = cl_abap_tabledescr=>create( p_line_type = lo_new_structdescr ).
      CREATE DATA cr_t TYPE HANDLE lo_new_tabledescr.
      ASSIGN cr_t->* TO <lt_new_t>.
      "Copy all data from old to new table
      LOOP AT ut_t ASSIGNING <ls_old_s>.
        APPEND INITIAL LINE TO <lt_new_t> ASSIGNING <ls_new_s>.
        MOVE-CORRESPONDING <ls_old_s> TO <ls_new_s>.
      ENDLOOP.
    ENDFORM.                    "main

  • Adding a new Big INT column to existing table in production, which holds 700 million records will impact anything in production?

    Hi Guys,
    I have to add a new Big INT column to existing table in production, which holds 700 million records and would like to know the impact?
    I have been tolled by one of my colleagues that last time they tried adding a column to same table during working hour and it locked out the table and impacted the users.
    Please suggest/share If any one had similar experience.
    Thanks Shiven:) If Answer is Helpful, Please Vote

    If you add a new column to a table using an ALTER TABLE ADD command and specify that the new column allows NULLs and you do not define a default value, then it will take a table lock.  However, once it gets the table lock, it will essentially run instantly
    and then free the table lock.  That will add this new column as the last column in the table, for example
    ALTER MyTable ADD MyNewColumn bigint NULL;
    But if you your change adds a new column with a default value, or you do something like using table designer to add the new column in the middle of the current list of columns, then SQL will have to rewrite the table.  So it will get a table lock, rewrite
    the whole table and then free the table lock.  That will take a considerable amount of time and the table lock will be held for that whole period of time.
    But, no matter how you make the change, if at all possible, I would not alter a table schema on a production database during working hours.  Do it when nothing else is going on.
    Tom

  • SSIS 2005 Adding a Column to an existing Package

    Hello Forum
    forgive me but it 's been over 5 years since I touched SSIS.
    We have an SSIS package that compiles data and then exports the data to a MS Ecxel Spreadsheet.  We are struggling to add an existing column.
    Essentially the package reads data from source, performs a "Data Conversion" so that the Output Columns are named "Output of Field1" etc and then the data is exported to the Excel Spreadsheet.
    The developer has succeeded in adding the column to the Data conversion and has manually added the column in the Spreadsheet; however although the converted column appears in the Column Mappings, the corresponding destination Column in the Spreadsheet does
    not.
    Can someone please provide instructions on how we can achieve this?  Many thanks.
    Please click "Mark As Answer" if my post helped. Tony C.

    You have to re-configure whole data-flow task inside your package, where ever your new column effected in package.
    Thanks
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Adding column to existing form

    Hi:
    Need some guidance on how to accomplish it.
    I created a form using blank page -> form -> form using a base table. I picked all the required columns from the list and created a nice form.
    How do I go about adding new columns and removing other columns etc. Should I create a item and pick that as a database column?. Any thoughts on column adds and removal?
    Thanks
    Rajesh

    Rajesh,
    Adding or removing an item (column) should not be a problem. If you are removing, you
    don't need to do anything special (if your form is a standard, wizard form). Adding an item
    (column), make sure your source is database column.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for

  • Setting the JMS Header from Payload

    Hi Experts, My requirement is to send the payment data coming from ECC to non sap system.Sender adapter is proxy and receiver is JMS.ECC will be sending the filename in one field and payload content as a string in another field.PI has to set the file

  • RV016 not working correctly.....

    Hi, We've setup an RV016 to run with 2 internet lines and load balanced, the problem I seem to be facing is relating to browsers. People are connected to things such as MSN but when trying to browse the net it just seems to be extremely slow or non-r

  • Recording My Arturia MicroBrute produces Heavy Distortion?

    Hi guys, While controlling the Arturia MicroBrute playing the sequencer via MIDI controlled BPM on my timeline, it plays fine with INPUT selected. The moment i hit the R button for Record ready, the audio signal becomes extremely distorted and overlo

  • AirDrop showing the wrong name and picture with iOS 7

    AirDrop is showing the wrong name and picture on my wife's phone....It is showing my name and picture.  She has an iPhone 5 and I just updated her to iOS7 about an hour ago, same time as I did mine. Is it because we are connected with the same Apple

  • Graphs in java swing

    hi, i am having some x and y values (or some function of x)and i would like to plot a graph between them. what is the best and simplest way to do it in java swing. thanx