How to add new column in partition table
Hi,
In Oracle 10g Database, I have one table (X) with list partition . I have added one new column to "X" by "Alter Table" command. Please advise whether any other command needs to be executed since it is a partition table .
The "X" table is used for partition swapping with another table (Y). I have added the same column also in table "Y". Will there be any issue while swapping the partion with the following command
alter table X exchange partition partition_name with table Y
Version Details :
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 OS
Solaris 5.10
Thanks in advance
you would have to explicitly put that into the create table as select - the partition details.
ops$tkyte%ORA10GR2> create table t1
2 PARTITION BY RANGE (dt)
3 (
4 PARTITION part1 VALUES LESS THAN (to_date('13-mar-2003','dd-mon-yyyy')) ,
5 PARTITION part2 VALUES LESS THAN (to_date('14-mar-2003','dd-mon-yyyy')) ,
6 PARTITION junk VALUES LESS THAN (MAXVALUE)
7 )
8 COMPRESS
9 as
10 select * from t;
Table created.
Source:http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:69076630635645
Hth
Girish Sharma
Similar Messages
-
How to add new column inside ME28 PO Approval Screen?
Hi Abapers,
Can u please explain and give sample code to me, how to add new customise column inside standard Layout ME28 PO Approval Screen.
Waiting for yours reply.
Tks,
S.Muthu.Hi
Don't need a code or customize.
1- Execute ME28
2- select a line in the ALV
3- type 'F1'
4- Go to technical information
5- Go to Table name 'MEREP_OUTTAB_PURCHDOC_REL' it is a structure
6- Append the new field into that structure using SE11
7- return to ALV in ME28 and change Layout
8- you will find at right your new field, deplace it to left part and it's OK.
REM :your new field will be filled only if the ME28 program is reading your field and passing it to the ALV structure (MEREP_OUTTAB_PURCHDOC_REL)
It worked for me with EKPO-AFNAM
cordially,
Faycel MOSLAH. -
How to add new column in Report ME2L
Dear Sir,
We are using ME2L for various purposes . In the ME2L report we need to add 2 new columns i.e Item Delivery Date and WBS Element .
Although in the standard ME2L report , after the basic list generation , there have been provided 2 icons for getting the report displayed with either WBS Element or with Delivery Date . It means we can not get both the column Delivery Date and WBS Element available simultaneously in the standard ME2L report .
We request you to kindly guide us as how can we add these column in the ME2L report pl . We are on ECC-6.0 and not having enhancement package 4.0 .
Kindly help us pl .
Regards
Sonia AgarwalHI Pradeep,
Goto the transaction code (Change Report) GR32.
Give you library name and report name
And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
How to enter formula: you can see the formula components in that id and description.
Id is columns that are present and description indicates explanation of that column.
Enter formula according your requirement.
Examples:
Enter formula screen:
ID : des
X001 amount
X002 pt000
X003 test
1. Enter formula as: ( X001 u2013 X002)
The above formula is for fist column u2013 second column.
2. ( ( X001 u2013 X002) / X003) * 100
First column u2013 second column and devide by third column after that multiple with 100.
Hope this will help you
Regards
Manohar -
How to add new column in report painter
Hi Experts,
I want to add new column in report painter which as to calculate the previous column . value in the new column should be the precentage of previous column existing on left side...HI Pradeep,
Goto the transaction code (Change Report) GR32.
Give you library name and report name
And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
How to enter formula: you can see the formula components in that id and description.
Id is columns that are present and description indicates explanation of that column.
Enter formula according your requirement.
Examples:
Enter formula screen:
ID : des
X001 amount
X002 pt000
X003 test
1. Enter formula as: ( X001 u2013 X002)
The above formula is for fist column u2013 second column.
2. ( ( X001 u2013 X002) / X003) * 100
First column u2013 second column and devide by third column after that multiple with 100.
Hope this will help you
Regards
Manohar -
How to add new column in screen painter
Hi
I have try to add new column on existing screen and test screen in se51, the column is added in position correctly. But when I run program call this screen, the added column is placed as the last column.
Please help.
ThanksThank for your replied.
I have check the table control, it has fix column. So, I set fix column to 0 at table control but when execution by program call it's still not update what I have changed. (On test screen in se51, it come out correctly and updated)
So, I don't know why I use program call this screen, the screen is not updated what I have try to change but, when execute in test screen it come out correctly
PS. I have check attribute, it's numbered right.
Please help !!
Edited by: VerdamFK on Oct 4, 2010 8:11 AM -
How to add new columns in materialized view
We are using Oracle 10g Release2.
We need to add new columns to a prebuilt fast refresh materialized view. We want to add 4 new columns in this table and make them part of select statement in the materialized view. We can drop the view but we cannot do complete refresh after that because the paymentsInfo table has a creation_timestamp column which is populated by before row insert trigger with systimestamp. If we did the complete refresh, all values in this column shall be changed.
CREATE MATERIALIZED VIEW paymentsInfo
ON PREBUILT TABLE
REFRESH FAST
ON DEMAND
START WITH SYSDATE
NEXT SYSDATE+5/1440
WITH PRIMARY KEY
DISABLE QUERY REWRITE AS
SELECT PAYMENT_ID,BATCH_REFERENCE, TRANSACTION_REFERENCE, NO_OF_TRANSACTIONS, DEBIT_ACC_NUM,... from payment@dblink
I want to know is there any other way to add new columns without losing any changes from the master table.
Thanks.There is no way to add new Columns to Materialized view. To add new columns, it has to be dropped and re-built again.
Extract from Oracle Documentaion:
Use the ALTER MATERIALIZED VIEW statement to modify an existing materialized view in one or more of the following ways:
To change its storage characteristics
To change its refresh method, mode, or time
To alter its structure so that it is a different type of materialized view
To enable or disable query rewrite
If you have a problem of Complete refresh, then It may be beneficial to get the backup of the MView; Drop and re-create it with modified definition; Restore the backup data leaving the new columns untouched (assuming they are to be kept as fetched from the Master site). -
How to add new columns in predefined matrix in system form
Hi all,
I am new to SAP B1. I am going to add New column to Good Receipt PO matrix. I faced the one error " Matrix Line Exists " While adding new column to good receipt PO matrix".
=========================================================
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
oMat = oForm.Items.Item("38").Specific
oCols = oMat.Columns
oCol = oCols.Item("U_MyCol")
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = True And pVal.FormType = "143" Then
Try
oForm = SBO_Application.Forms.Item(pVal.FormUID)
oMat = oForm.Items.Item("38").Specific
oCols = oMat.Columns
'oCol = oCols.Item("U_MyCol1")
oCol = oCols.Add("U_MyCol1", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oCol.TitleObject.Caption = "Qty Accepted"
oCol.Width = 40
oCol.Editable = True
oCol = oCols.Item("U_MyCol1")
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
End If
oDBDataSource = oForm.DataSources.DBDataSources.Add("PDN1")
''oEdit.DataBind.SetBound(True, "PDN1", "U_QtyAccepted")
============================================================
And i also added for Datasource to Databind. what there is no result ??i wanted Clear information regarding this to add new columns in matrix in middle of Matrix items. I wanted Clear coding& information for this to add new Columns in Matrix ?help me regarding this asap??
Regards
ANANDAnand,
If you use the "search" feature of this forum and type "add column", you will find many posts that may help you such as this one ...
How to add a column on sales order matrix?
HTH,
Eddy -
How to add new column to COPA datasource?
Dear all,
It seems we have to delete the COPA datasource and regenerate it when we need add new column, if so,we should regenerate the initialIzation for the delta.
Beacause only the new delta data need have value for new column,so I do not want to reextract the historical data,do you have any solution?
Best regards
SimonHi Simon
You are correct, COPA DS need to be regenerated.
Initialize without Data Transfer might help you. But was thinking how do you manage the 'lost' delta in between the processes?
I m not sure about your flows i.e how data moves from PSA to cube but I think at least you should
Initialize the delta for the current fiscal year ( with Data Transfer) and then continue with delta.
Which type of COPA you are using? Account based or Cost Based? For Acc Based delta initialization starts from summarization level , so you also need to fill up summarization level at least for the current year.
Regards
Anindya -
How to add new rows in Advanced Table along with attribute value?
Hi,
I have one advanced table that contain one messageChoice and messageTextInput field.
I want to add new rows in advanced table. I can able to add rows using the AddMoreRows button in the footer of the advanced table,
but I want to add attribute value(contactId) each time when new row created.
contactId I am getting from pageContext.getParameter("contactId")
How to achive this? Please suggest.
Thanks & Regards,
SunitaHi,
There are two ways to do it.
1. Use create method of entity object, create method fires whenever you creates new row.
2. Handle the event raised by addanotherrow button and write logic there to initialize contactid as you are getting contactid from pageContext so I will suggest you to use this method.
if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
&& ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
//write your logic here to default the contact id
Hope this will help.
Regards,
Reetesh Sharma -
How to add new column in specific position
Say, a table has existing columns of A, B, D, and E.
Now I want to add a new column C. But I want this column appear between B and D. I found that the newly added column always goes to the end of the table, i.e., A, B, D, E, C, instead of, A, B, C, D, E.
How can I do it?scottjhn wrote:
Say, a table has existing columns of A, B, D, and E.
Now I want to add a new column C. But I want this column appear between B and D. I found that the newly added column always goes to the end of the table, i.e., A, B, D, E, C, instead of, A, B, C, D, E.That's right; new columns are always added at the end.
Why is is so important to have the columns in a specific order? If the order is important, why aren't you specifying it in the SQL code that actually uses the table?
How can I do it?When you add C, add columns called NEW_D and NEW_E as well, in that order, where NEW_D has the same data type as D, and NEW_E has the same data type as E. Then UPDATE the table to set NEW_D and NEW_E to be the same as D and E, drop the original D and E, and rename NEW_D and NEW_E to the original names, D and E. -
How to Add new column in cross tab reports
I am using crystal reports 10
I created cross tab report for monthly sales. I need to add one more column in that report
ex:
Month Customer Part1 Part2 Part3
Jan A 10 12 15
Jan B 20 0 10
Jan C 0 3 5
Feb A 5 10 8
Feb D 55 23 33
In above data Parts are no limit, thatswhy i am taking cross tab report.
I am taking Month and Customer name as Rows,
Part Codes as Colums,
Quantiry as Total fields in cross tab Report.
Here month field is storing as Transaction date in database, I am calculating by month
I am getting upto this.
User needs add one more field is Invoice no
Month Customer Part1 Part2 Part3 Invoice no
Jan A 10 12 15 B1,B2,B3,B4
Jan B 20 0 10 B12,B30
Jan C 0 3 5 B6
Feb A 5 10 8 B35,B40
Feb D 55 23 33 B25,B56
How to add invoice nos by group wise(By customer and By month)
Thank you.
Raja shekar Reddy K.
Edited by: Raja shekhar Reddy on Apr 16, 2009 5:10 PMDear Amogh,
Thanks for u'r Replay.
If i use new crosstab for Invoice no each invoice number can display like seperate columns.
But I need Invoice no in single column with seperate with "," or "/".
Thanks & regards,
Raja Shekar Reddy K. -
HOW TO ADD NEW COLUMN IN EXISTING QUERY
hi,
i m working on oracle reorts 10g. i have a multiple query based report. now i want to add a new column in query 1 and order by on that new column .
i added column in query but when i see that group i dont find that column in that group.wt do i need to do to visible that column in query1 group thats y the order by on that column is not working i think.
tell how to solve it ?
thanksHi,
The new column you have added might be in the least level group of that query.
Drag it to the desired group level, first postion and set the break order for that item in the property pallette..
(If still the item not coming, check whether you have put 'comma' in the select query after writing the column name)
Simply giving the column in the order-by clause will not work in report.
In Report, record display order is completely based on the break-order of the items given in query-groups
If you change accordingly it will work
Regards
Dora -
Newbie Repository question: How to add extra columns to relationship table?
I've defined the following item-descriptors:
<item-descriptor name="award" display-property="id">
<table name="bc_award" type="primary" id-column-name="award_id>
</table>
</item-descriptor>
<item-descriptor name="product" display-property="displayName" xml-combine="append">
<table name="bc_product" type="auxiliary" id-column-name="product_id">
</table>
Now products and awards have a many-to-many relationship, so I also added the following under the product item-descriptor definition:
<table name="bc_prd_awards" type="multi" id-column-name="product_id">
<property name="awards" data-type="set" component-item-type="award" column-name="award-id"/>
</table>
So far, so good. However, I actually want some extra information on the relationship table. Namely, the catalog to which the product-award association applies. In other words, I'd like the create table statement to turn out something like this:
CREATE_TABLE bc_prd_awards (
product_id varchar2(254) NOT NULL REFERENCES dcs_product(product_id),
award_id varchar2(254) NOT NULL REFERENCES bc_award(award_id),
catalog_id varchar2(254) NOT NULL REFERENCES dcs_catalog(catalog_id),
PRIMARY KEY(product_id, award_id, catalog_id)
Any ideas as to how I accomplish this?
Edited by: user6200425 on Jul 1, 2011 1:04 PMIf you want to add catalog information to the product-award association, do this.
<item-descriptor name="product"/>
<table type=multi>
<property name="productAwardAssociation" component-item-type="productAward" data-type="set" />
</table>
</item-descriptor>
<item-descriptor name="productAward">
<property name="award" column-name="award" item-type="Award"/>
<property name="catalog" column-name="catalog" item-type="Catalog"/>
</item-descriptor>
<item-descriptor name="Award">
--- award related properties
</item-descriptor>
Hope this helps.
Thanks
karthik -
How to add new row to adf table progrmatically
Hi,
I have a bean with a list and correspoding getter & setter methods inside it.
I created a datacontrol out of the bean and I am displaying af:table in the ui
binded to this list.
Ex:
public class StudentBean {
private List<Student> students;
// getter & setter methods.
jsp
<af:table value="#{bindings.students.collectionModel}" var="row"
rows="#{bindings.students.rangeSize}"
emptyText="#{bindings.students.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.students.rangeSize}"
rowBandingInterval="0"/>
How to add a new row programitically to this adf table.
I dragged and dropped 'Create' from operations menu on to jsp.
But on click of that.no new row is being added to the current table.
On click of a button in u.i I want to add a new row to the table.
Thanks,
PraveenHi,
The source code is as below.
<af:table value="#{bindings.students.collectionModel}" var="row"
rows="#{bindings.students.rangeSize}"
emptyText="#{bindings.students.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.students.rangeSize}"
rowBandingInterval="0"
filterModel="#{bindings.rscGroupsQuery.queryDescriptor}"
queryListener="#{bindings.rscGroupsQuery.processQuery}"
filterVisible="true" varStatus="vs"
selectedRowKeys="#{bindings.rscGroups.collectionModel.selectedRow}"
selectionListener="#{bindings.rscGroups.collectionModel.makeCurrent}"
rowSelection="single" id="t1"/>
<af:commandButton actionListener="#{bindings.Create.execute}"
text="Create" disabled="#{!bindings.Create.enabled}"
id="cb1" partialTriggers="t1"/>
Please let me know where am I doing wrong?
On click of this button,it is not adding a row dynamically.
Thanks,
Praveen -
How to add new columns to datablock
Hi,
I am new to oracle forms.
Can you gurus out there help me with a simple query.
I've a data block based on system_parameters table.
I've to add two new text items corresponding to two new columns (let say A & B) added in the same table.
I've added the text items manually on the layout editor of the data block.
In the property pallette under the database section i've given column name as A & B (new column name of the table).
When i am running the form, it gives me FRM-40505 (Unable to perform query).
I know, the new text items have to be associated with system_parameters.A and system_parameters.B..
Are there any more things which need to be done in order to reflect the two new columns on the scree?
Any help will be greatly appreciated.
Regards,
NavnitAnother way:
right-click on the block and select the data block wizard.
Click the table tab and press refresh (the new column will appear in the list).
Press the button to move the new column from the "available columns" list to the "database items" list.
Press finish
Go to the objact navigator and set properties.
I usually use this methed as I figure internal structures in the .fmb file will be setup properly to know about the new column by using the wizard. Be advised though if you use this method, if you have previously changed an item in the same block to have an increased maximum length, when you press refresh it's property will be set back to match the database (with no warning to you). Maybe this is a bug.
I have used the other method too with no apparent side effects though. Does it matter?
Gary
Maybe you are looking for
-
SRM 7.02 Classic Scenario - Transfer of Purchase Order to Backend
Good day, I would really appreciate some assistance on the following matter: We are implementing the classic scenario of SRM7.02 with ECC6.04 as backend. Our process is as follows: Purchase Requisitions are created in ECC and transferred to SRM by me
-
How can I reduce the brightness of my screen?
I installed WIndows 7 on my MAC and after installing the boot camp drivers, the screen went really bright. I reduced the brightness to the lowest setting on my keyboard, but it is still bright. The problem is not so much on the graphics, its more on
-
How can I get the run time of a method?
I click a button "draw" to invoke a method such as draw many shades. It hangs a long time. I want to get the information of how long it spent. How can I do it? I'm new guy, more detailed please . one example would be much better ThankS all :)
-
I think I purchased same product twice. I can't see my account history of purchases.
[private information removed]
-
How to restrict users in viewing CRM_DNO_MONITOR?
Hi I want to restrict the users in the transaction code CRM_DNO_MONITOR. I tried it by creating a variant and then assignin that variant to the users via role. Also i tried using SE93 by creating another transaction code for the variant. The problem