Rename of Field

Hi,, i want to rename of a field of a table as i have oracle 9.0.0.1.
regards

Only 9.2 onwards have RENAME COLUMN option. In your case you should add a new column to the table, update the new column with values from the old one, and drop the old column.

Similar Messages

  • Adding columns in query causes renames of fields

    Hi All, I'm using Oracle Reports Builder 10g. I have a query which has connections to other queries. When I try to add two columns into that query and recompile the RDF it automatically renames other fields adding "1" at the right side. Any ideas why this is happening? I'm not adding columns with names already existed. Thanks in advance, A. Stoyanov

    Hi, The query is :
    SELECT 0 CUSTOMER_TRX_ID,
           rpad('a', 20, '-') TRX_NUMBER,
           0 TERM_SEQUENCE_NUMBER,
           rpad('a', 40, '-') TRX_TYPE,
           rpad('a', 80, '-') TRX_TYPE_NAME,
           'a' OPEN_RECEIVABLE_FLAG,
           SYSDATE TRX_DATE,
           0 SHIP_TO_CUSTOMER_ID,
           0 SHIP_TO_CONTACT_ID,
           0 REMIT_TO_ADDRESS_ID,
           0 PRIMARY_SALESREP_ID,
           rpad('a', 30, '-') CUSTOMER_NUMBER,
           rpad('a', 240, '-') INTERNAL_NOTES,
           0 BATCH_SOURCE_ID,
           rpad('a', 240, '-') TRX_COMMENTS,
           0 PREVIOUS_CUSTOMER_TRX_ID,
           0 SHIP_TO_SITE_USE_ID,
           0 PRINTING_COUNT,
           SYSDATE PRINTING_ORIGINAL_DATE,
           SYSDATE PRINTING_LAST_PRINTED,
           'a' PRINTING_PENDING,
           0 LAST_PRINTED_SEQUENCE_NUMBER,
           SYSDATE START_DATE_COMMITMENT,
           SYSDATE END_DATE_COMMITMENT,
           0 INITIAL_CUSTOMER_TRX_ID,
           rpad('a', 15, '-') INVOICE_CURRENCY_CODE,
           0 TERM_ID,
           SYSDATE SHIP_DATE_ACTUAL,
           rpad('a', 30, '-') SHIP_VIA,
           rpad('a', 50, '-') WAYBILL_NUMBER,
           rpad('a', 50, '-') PURCHASE_ORDER_NUMBER,
           rpad('a', 50, '-') PURCHASE_ORDER_REVISION,
           SYSDATE PURCHASE_ORDER_DATE,
           SYSDATE TERM_DUE_DATE_FROM_PS,
           0 TERM_RELATIVE_AMOUNT,
           rpad('a', 15, '-') TERM_NAME,
           0 BILL_TO_CUSTOMER_ID,
           0 BILL_TO_CONTACT_ID,
           0 BILL_TO_SITE_USE_ID,
           rpad('a', 40, '-') BILL_TO_LOCATION,
           rpad('a', 360, '-') BILL_CUST_NAME,
           rpad('a', 40, '-') BILL_ADDRESS1,
           rpad('a', 40, '-') BILL_ADDRESS2,
           rpad('a', 40, '-') BILL_ADDRESS3,
           rpad('a', 40, '-') BILL_ADDRESS4,
           rpad('a', 60, '-') BILL_CITY,
           rpad('a', 60, '-') BILL_STATE,
           rpad('a', 60, '-') BILL_POSTAL_CODE,
           rpad('a', 60, '-') BILL_COUNTRY,
           rpad('a', 50, '-') BILL_SITE_TAX_REFERENCE,
           rpad('a', 50, '-') BILL_CUST_TAX_REFERENCE,
           0 TRX_LINE_AMOUNT,
           0 TRX_TAX_AMOUNT,
           0 TRX_FREIGHT_AMOUNT,
           0 TRX_ALL_AMOUNT,
           rpad('a', 360, '-') ORDER_BY,
           rpad('a', 240, '-') BILL_TO_ADDRESS1,
           rpad('a', 240, '-') BILL_TO_ADDRESS2,
           rpad('a', 240, '-') BILL_TO_ADDRESS3,
           rpad('a', 240, '-') BILL_TO_ADDRESS4,
           rpad('a', 60, '-') BILL_TO_STATE,
           rpad('a', 60, '-') BILL_TO_PROVINCE,
           rpad(‘a’, 150, ‘ - ’) our_ref,,
           rpad(‘a’, 150, ‘ - ’) your_ref
      FROM dual
    WHERE 1 = 2
    UNION ALL &common_query
    The bind variable &common_query is accepting the following sql:
    'SELECT
    ' ||:P_SEL_TRX_ID ||'           
    CUSTOMER_TRX_ID
    ' || :P_SEL_TRX_NUMBER  ||'                 
    TRX_NUMBER
    NVL(TL.SEQUENCE_NUM,1)               
    TERM_SEQUENCE_NUMBER 
    ' || :P_SEL_TRX_TYPE ||' 
    TRX_TYPE
    ,       ' || :P_SEL_TRX_TYPE_NAME||' 
    TRX_TYPE_NAME
    ,       TYPES.ACCOUNTING_AFFECT_FLAG     
    OPEN_RECEIVABLE_FLAG
    ,       ' || :P_SEL_TRX_DATE  ||'       
    TRX_DATE
    ,       SHIP_TO_CUSTOMER_ID                   
    SHIP_TO_CUSTOMER_ID
    ,       SHIP_TO_CONTACT_ID                   
    SHIP_TO_CONTACT_ID
    ,       REMIT_TO_ADDRESS_ID                   
    REMIT_TO_ADDRESS_ID
    ,       A.PRIMARY_SALESREP_ID                 
    PRIMARY_SALESREP_ID
    ,       B.ACCOUNT_NUMBER                     
    CUSTOMER_NUMBER
    ,       A.INTERNAL_NOTES                     
    INTERNAL_NOTES
    A.BATCH_SOURCE_ID
    BATCH_SOURCE_ID
    A.COMMENTS
    TRX_COMMENTS
    ,       PREVIOUS_CUSTOMER_TRX_ID             
    PREVIOUS_CUSTOMER_TRX_ID
    ,       SHIP_TO_SITE_USE_ID                   
    SHIP_TO_SITE_USE_ID
    ,       NVL(PRINTING_COUNT,0)                 
    PRINTING_COUNT
    ,       PRINTING_ORIGINAL_DATE               
    PRINTING_ORIGINAL_DATE
    ,       PRINTING_LAST_PRINTED                 
    PRINTING_LAST_PRINTED
    ,       PRINTING_PENDING                         PRINTING_PENDING
    ,       LAST_PRINTED_SEQUENCE_NUM             LAST_PRINTED_SEQUENCE_NUMBER
    ,       START_DATE_COMMITMENT                    START_DATE_COMMITMENT
    ,       END_DATE_COMMITMENT                      END_DATE_COMMITMENT
    ,       INITIAL_CUSTOMER_TRX_ID                  INITIAL_CUSTOMER_TRX_ID
    ,       A.INVOICE_CURRENCY_CODE                  INVOICE_CURRENCY_CODE
    ,       A.TERM_ID      TERM_ID
    ,       A.SHIP_DATE_ACTUAL                       SHIP_DATE_ACTUAL
    ,       A.SHIP_VIA                                 SHIP_VIA
    ,       A.WAYBILL_NUMBER                        WAYBILL_NUMBER
    ,       A.PURCHASE_ORDER                         PURCHASE_ORDER_NUMBER
    ,       A.PURCHASE_ORDER_REVISION              PURCHASE_ORDER_REVISION
    ,       A.PURCHASE_ORDER_DATE                    PURCHASE_ORDER_DATE
    ,       P.DUE_DATE                                 TERM_DUE_DATE_FROM_PS
    ,       NVL(TL.RELATIVE_AMOUNT,100)* (100/NVL(T.BASE_AMOUNT,100))         TERM_RELATIVE_AMOUNT
    ,       T.NAME                    TERM_NAME
    ,       A.BILL_TO_CUSTOMER_ID                    BILL_TO_CUSTOMER_ID
    ,       A.BILL_TO_CONTACT_ID                     BILL_TO_CONTACT_ID
    ,       A.BILL_TO_SITE_USE_ID                    BILL_TO_SITE_USE_ID
    ,       U_BILL.LOCATION                              BILL_TO_LOCATION
    ,       NVL(A_BILL.TRANSLATED_CUSTOMER_NAME,PARTY.PARTY_NAME)     BILL_CUST_NAME
    ,       RTRIM(RPAD(LOC.ADDRESS1,40))      BILL_ADDRESS1
    ,       RTRIM(RPAD(LOC.ADDRESS2,40) )      BILL_ADDRESS2
    ,       RTRIM(RPAD(LOC.ADDRESS3,40) )     BILL_ADDRESS3
    ,       RTRIM(RPAD(LOC.ADDRESS4,40) )      BILL_ADDRESS4
    ,       LOC.CITY                                BILL_CITY
    ,       NVL(LOC.STATE , LOC.PROVINCE)   BILL_STATE
    ,       LOC.POSTAL_CODE                       BILL_POSTAL_CODE
    ,       LOC.COUNTRY                           BILL_COUNTRY
    ,       U_BILL.TAX_REFERENCE                     BILL_SITE_TAX_REFERENCE
    ,       PARTY.TAX_REFERENCE                          BILL_CUST_TAX_REFERENCE
    ,       ' ||:P_SEL_TRX_LINE_AMOUNT||'        TRX_LINE_AMOUNT
    ,       ' ||:P_SEL_TRX_TAX_AMOUNT ||'              TRX_TAX_AMOUNT
    ,       ' ||:P_SEL_TRX_FREIGHT_AMOUNT||'               TRX_FREIGHT_AMOUNT
    ,       ' ||:P_SEL_TRX_ALL_AMOUNT  ||'               TRX_ALL_AMOUNT
    ,       ' || L_ORDER_BY || '     ORDER_BY
    ,      LOC.ADDRESS1      BILL_TO_ADDRESS1
    ,     LOC.ADDRESS2      BILL_TO_ADDRESS2
    ,      LOC.ADDRESS3      BILL_TO_ADDRESS3
    ,      LOC.ADDRESS4      BILL_TO_ADDRESS4
    ,      LOC.STATE      BILL_TO_STATE
    ,      LOC.PROVINCE      BILL_TO_PROVINCE
    , a.attribute1 as our_ref
    , a.attribute2 as your_ref
    FROM    ' || :P_TABLE1 || '
    WHERE  ' || :P_WHERE1 || '
      ' || :P_USER_WHERE_CLAUSE1 || '
      ' || :P_USER_WHERE_CLAUSE2 || '
      ' || :P_USER_WHERE_CLAUSE3 || '
      ' || :P_MLS_CONDITION || '
      ' || :P_EC_WHERE_CLAUSE || '
            ' || :P_BR_WHERE_CLAUSE || '
            ' || :lp_trx_num_high || '
            ' || :lp_trx_num_low || '
            ' || :lp_trx_date_clause ||'
            ' || :lp_doc_seq_clause|| '
    UNION
    SELECT   ' || :P_SEL_TRX_ID || '
    ,  ' || :P_SEL_TRX_NUMBER || '
    ,  NVL(P.TERMS_SEQUENCE_NUMBER,1)
    ,   ' || :P_SEL_TRX_TYPE || '
    ,  ' || :P_SEL_TRX_TYPE_NAME || '
    ,  TYPES.ACCOUNTING_AFFECT_FLAG
    ,  ' || :P_SEL_TRX_DATE || '
    ,  A.SHIP_TO_CUSTOMER_ID
    ,  A.SHIP_TO_CONTACT_ID
    ,  A.REMIT_TO_ADDRESS_ID
    ,  A.PRIMARY_SALESREP_ID
    ,  B.ACCOUNT_NUMBER
    ,  A.INTERNAL_NOTES
    ,  A.BATCH_SOURCE_ID
    ,  A.COMMENTS
    ,  PREVIOUS_CUSTOMER_TRX_ID
    ,  SHIP_TO_SITE_USE_ID
    ,   NVL(PRINTING_COUNT,0)
    ,  PRINTING_ORIGINAL_DATE
    ,  PRINTING_LAST_PRINTED                
    ,  PRINTING_PENDING                      
    ,  LAST_PRINTED_SEQUENCE_NUM
    ,  START_DATE_COMMITMENT
    ,  END_DATE_COMMITMENT
    ,  INITIAL_CUSTOMER_TRX_ID
    ,  A.INVOICE_CURRENCY_CODE
    ,   A.TERM_ID
    ,   A.SHIP_DATE_ACTUAL
    ,  A.SHIP_VIA
    ,  A.WAYBILL_NUMBER
    ,  A.PURCHASE_ORDER
    ,  A.PURCHASE_ORDER_REVISION
    ,  A.PURCHASE_ORDER_DATE
    ,  P.DUE_DATE
    ,   NVL(TL.RELATIVE_AMOUNT,100)*
                     (100/NVL(T.BASE_AMOUNT,100))
    ,  T.NAME
    ,  A.BILL_TO_CUSTOMER_ID
    ,  A.BILL_TO_CONTACT_ID
    ,   A.BILL_TO_SITE_USE_ID
    ,  U_BILL.LOCATION                            BILL_TO_LOCATION
    ,  NVL(A_BILL.TRANSLATED_CUSTOMER_NAME,PARTY.PARTY_NAME)
                             BILL_CUST_NAME
    ,  RTRIM(RPAD(LOC.ADDRESS1, 40)) 
    ,  RTRIM(RPAD(LOC.ADDRESS2, 40) )                      
    ,   RTRIM(RPAD(LOC.ADDRESS3,  40) )                      
    ,  RTRIM(RPAD(LOC.ADDRESS4 ,  40) )                     
    ,   LOC.CITY                           
    ,  NVL(LOC.STATE , LOC.PROVINCE)                         
    ,   LOC.POSTAL_CODE                    
    ,  LOC.COUNTRY
    ,  U_BILL.TAX_REFERENCE
    ,  PARTY.TAX_REFERENCE
    ,   ' || :P_SEL_TRX_LINE_AMOUNT || '             
    ,  ' || :P_SEL_TRX_TAX_AMOUNT || '                
    ,  ' || :P_SEL_TRX_FREIGHT_AMOUNT  || '     
    ,  ' || :P_SEL_TRX_ALL_AMOUNT || '             
    ,   ' || L_ORDER_BY || '
    ,   LOC.ADDRESS1
    ,  LOC.ADDRESS2
    ,  LOC.ADDRESS3
    ,  LOC.ADDRESS4
    ,  LOC.STATE
    ,  LOC.PROVINCE
    , a.attribute1 as our_ref
    , a.attribute2 as your_ref
    FROM   ' || :P_TABLE2 || '
    WHERE  ' || :P_WHERE2 || '
      ' || :P_USER_WHERE_CLAUSE1 || '
      ' || :P_USER_WHERE_CLAUSE2 || '
      ' || :P_USER_WHERE_CLAUSE3 || '
      ' || :P_MLS_CONDITION || '
      ' || :P_EC_WHERE_CLAUSE || '
            ' || :P_BR_WHERE_CLAUSE || '
            ' || :lp_trx_num_low || '
            ' || :lp_trx_num_high ||'
            ' || :lp_trx_date_clause ||'
            ' || :lp_doc_seq_clause;
    The columns I added are OUR_REF and YOUR_REF which are at the end of the SELECT clause.
    Thanks,
    A.Stoyanov

  • After renaming the field name in content server,I am get the Exception

    Hai All
    After renaming the field name in Content Server I got one Error Like
    *<ERROR> <oracle.ucm.idocs> <UCM-CS-000001> <General Exception>*
    intradoc.data.dataexception !csRequiredFieldMissing2 dRevLabel in UCM.
    Thanks,
    Hari
    Edited by: Hari on Jun 1, 2011 11:08 AM

    I think it is somehow related to your other question - pure renaming (that is. changing the text of the field's label) should not have an effect what-so-ever, but you probably somehow changed something in a required parameter, so that it is empty now.

  • Adobe Acrobat - rename form field

    I'm a newbie to Automator but it seems like this should work. I need to automate the renaming of lots and lots of fields in a form. I started a workflow that opens the PDF. Then I used the "Record" button in Automator to watch me click on the Form menu bar item in Acrobat and select "Edit Form in Acrobat". I ran the workflow up to this point and it works fine. Then I use the "Record" button again and it watches me select a field in the form by clicking it. Again no problems. Finally I attempt to use the "Record" button to rename the field. It breaks every time. I try "Control Clicking" the field and selecting "Properties" from the contextual menu. Then renaming the field and clicking the close button. It breaks. I try selecting the Field and then clicking the Form menu bar item and selecting "Show Field Properties", renaming the field and clicking the close button. It breaks. I try double clicking the Field, which causes the Properties window to open, renaming the Field and clicking the close button. It breaks. What gives? If I can do this manually it seems like the Record functionality in Automator ought to be able to do it???? I'm running Snow Leopard and using Adobe Acrobat Professional 8 on a MacBook.

    OK it appears that selecting the field is what breaks the automation. If I set up the automation to click on the field or drag to select it the automation breaks. If I let the automation run and then move the mouse, the field that I selected in the automation gets dragged around the page. It's like I clicked on the field and held the button down so I could drag it. Same thing happens if I double click the field. Strange....

  • Renaming Form Fields

    How does one rename contact fields within a Muse form widget?
    I am customizing a form according to a client's wishes, which don't follow the default order of the widget. For example, I've renamed the email field to be the address field following the client's preferred order. The problem is Muse still recognizes it as the email field and expects an email address to be input to function properly.
    Also, I have custom text fields to include that aren't found within the default form widget.
    Can forms from the widget library be customized as I wish?
    Thank you.

    Hello,
    You can do this by adding custom fields. Please look at the screenshot below.
    Regards
    Vivek

  • Renaming of field Serial No

    I want developers to rename field Serial No in Marketing documents. How should I proceed?

    Hello Mr. Groonis,
    the next step depends on the reason of your request. What is it? Why you would like to rename the field?
    Regards,
    Martin Slavik
    Regional Solution Manager

  • Rename a field

    Hi guys,
    I have to rename a field named 'Customer Data' as shown in image below (T-code ME21N, ME22N, M23N) to any other string, for example 'New field name'
    How do I do that?
    Could anyone help me, please?

    Hi.
    There are a lot topic about this in the SDN, have a look one of those..
    http://scn.sap.com/thread/3478857
    Regards
    Miguel

  • Rename the Field Label  in the sales order application.

    Hi,
              Please suggest me how to rename one of the field name in the sales order application.
            I have add a new field called YOUR_REF_SHIP and simultaneously have to  rename it from your reference to Carrier Account No. this field  is available in the filed group SLO_DETAILS_GENERAL1.
             This field is located in the General data tab of the sales order application.
    I have created the Text Key in the Define Interface Texts and used the same text key in the Rename Field Label, but it is not working.
    and i dont want to change it with the CMOD transaction.
    Please suggest me where i have went wrong.
    Thanks.
    Anilkumar

    Hello Anil,
    The field groups are to be regenerated.
    However, I have done a similar thing and in the past, the layout generation helped me. In the recent example, the name is not reflected as per the interface text.
    Let me know if you find anything on this.
    Regards
    Priyanka

  • How to automatically rename duplicate field names?

    I'm trying to merge mutiple PDF files into one but some PDF files have duplicate field names. Is there a way that Acrobat can automatically rename those duplicate field names so that they remain unique during merging?

    Ok I found it :-) how to create a template thx ++
    I used that JS script with it (with my template name) :
    var expTplt = getTemplate("ajout_suivi_therap");
    expTplt.spawn(numPages,true,false);
    This works perfectly (new page under the last one, new names for fields) when I test it on my acrobat 8, but it doesn't work anymore on reader 9. Here is (in french !) the error message I have from the console :
    NotAllowedError: Les paramètres de protection interdisent l'accès à cette propriété ou à cette méthode.
    Template.spawn:2:Field Ajouter_page:Mouse Down
    If I try a translation of it :
    NotAllowedError : Security settings prohibit access to this property or method.
    Template.spawn :2:Field Ajouter_page:Mouse Down
    Do you have an idea ?
    Do I have to activate an option when saving the file ?
    Thx !!

  • How to rename db fields, parameter fields

    Hi,
    I am using the XI 3.1 RAS .NET SDK and I am trying to rename all db fields and parameter fields of existing reports.
    I able to list all the db fields and the parameter fields but have no way to rename them. I would like to rename them such that all references to these fields are also updated.
    Thanks,
    Jithin

    Hi Jithin,
    As noted in the Report Designer you can not rename the database table fields, you can Alias the table name but that is all. Same in the SDK. In the Report Designer, right click on the database/table in the Database Wizard and selectRename.
    Only option is to use a Stored Procedure or a View and use the DB Server to alias your field names.
    Or use a Command Object and write your own SQL to alias the field names if your DB and the connection support it. You however cannot set lcoation for an existing report based on tables to a comand object so you'll have to recreate the report.
    For more info on how to us Command Objects or recreating your report post your question in the Report Design forum.
    Thank you
    Don

  • AD Process Form - Renaming the field name not happening

    Hi Experts,
    I have changed the label name of "AD Server" to "Active Directory (AD) Resource" in the process form (UD_ADUSER) by creating a new version. But still the process form displays the old label name "AD Server". Its not displaying the new label name.
    Can u assist me?
    Thanks & Regards
    INIYA

    You need to use the Form Version Control utility. Then switch all the user's to the new one. You can also provide what the default value should be for the field. The documentation should provide you the details.
    Or you can use SQL and update all the users to the correct IT Resource, but remember it will be a long value.
    --Kevin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Can i rename date1 field to confirm date

    Can i rename heading Date1 feild  in va01 transcation under fast data tab to confirmed date

    Hi Amit,
    If you can talk to your development guy, he will do it. It should not be a problem just to change the name

  • How to rename Custom Metadata Field?

    I have some pics with custom metadata field "gadget brand", i with to rename the field name to "brand", how can i do that? I tried to rename in the custom metadata manager, but it doesn't apply the change.

    Don't believe you it will allow you to rename it.
    You're going to have to create a new field with the name you want and copy the data over. Unfortunately Aperture doesn't have any built in means of copying metadata from one field to another. Applescript however could do it fairly easily.

  • Visio Services and rename fields

    I created a visio web drawing (DVW) that show basics Processes Shapes (I tested also with anothers shapes),  and I linked my external connection (Table in Sql Server) to the shapes.
    When I rename a external field to the name of the field in the shape (External Data -> Column Settings) the values in the published DVW in my sharepoint site is not refreshing, but yes in the Visio.
    The problem is only when I rename a field of the external connection with a field name of the shape (Function, Start, ...), the rest of the fields is refreshing correctly.
    My Sharepoint 2010 has the SP1 (14.0.6029.1000).
    Any idea ?
    Thanks
    Francisco

    Hi fvalca,
    Thanks for your post.
    The issue is caused by Visio Service
    Cache problem. The Minimum Cache Age is 5, and the
    Maximum Cache Age is 60 by default.
    You can try to set both to
    0, and check the result.
    http://blogs.msdn.com/b/chhopkin/archive/2010/11/18/testing-rendering-and-data-refresh-for-visio-services.aspx
    Wayne Fan
    TechNet Community Support

  • TFS Customization - Can we just rename the label of the control rather than renaming fields?

    I wanted to reuse some existing fields with different values. I can customize XML to add different values for the existing field since we import the changes to specific project. And I will just rename the Label of the control rather than renaming the field
    which will create some potential problems on importing the previous TFS data. I just wanted to ensure that this is the proper way to do it. I did the changes in test server and it works fine. But I need a consultation from experienced guys to know whether
    they faced any issues in this thatswhy I am here.

    Changing the label is perfectly fine. This will not affect any migration attempts.  The form label for a field is separate from the field name and refname.

Maybe you are looking for