Constraints Problem in DOP table - Help
Sir,
I need to import a new table dump (Status.dmp) to USER1's schema.
USER1 is already having STATUS table (with STATUS_ID column is PRIMARY
KEY.)
I tried to drop table STATUS.
USER1> drop table status;
drop table status
ERROR at line 1:
ORA-02449: unique/primary keys in table referenced by foreign keys
Please clarify my doubts:-
1. How to find the FOREIGN KEY constraints related with STATUS.STAUS_ID.
2. What all steps I have to follow to drop this table.
I did the following steps:-
1. Disabled PRIMARY KEY constraint of SATUS table.
2. Tried to drop the table
drop table status
ERROR at line 1:
ORA-02449: unique/primary keys in table referenced by foreign keys
1. Enabled PRIMARY KEY constraint of SATUS table.
2. Disable all FOREIGN KEY constraints in USER1's schema
(By looking into USER_CONSTRAINTS.CONSTRAINT_TYPE='R'
3. Tried to drop the table
drop table status
ERROR at line 1:
ORA-02449: unique/primary keys in table referenced by foreign keys
1.Disable all FOREIGN KEY constraints in USER1's schema
(By looking into USER_CONSTRAINTS.CONSTRAINT_TYPE='R'
2. Dleted all the rows in STAUS Table.
3. Tried to drop the table
drop table status
ERROR at line 1:
ORA-02449: unique/primary keys in table referenced by foreign keys
4. Imported the dump file with IGNORE=Y
5. Impor wirk fine.
Enabled all disabled constrains.
regards,
Mathew
Will it disable the constraints of child table?SQL> create table one(cd number constraint one_pk primary key, nm varchar2(10));
Table created.
SQL> create table two(cd1 number,nm1 varchar2(10), constraint two_ref foreign key (cd1) references one(cd));
Table created.
SQL> select CONSTRAINT_NAME,CONSTRAINT_TYPE,TABLE_NAME,SEARCH_CONDITION from user_constraints where table_name in ('ONE','TWO');
CONSTRAINT_NAME C TABLE_NAME SEARCH_CONDITION
ONE_PK P ONE
TWO_REF R TWO
SQL> drop table one cascade constraints;
Table dropped.
SQL> select CONSTRAINT_NAME,CONSTRAINT_TYPE,TABLE_NAME,SEARCH_CONDITION from user_constraints where table_name in ('ONE','TWO');
no rows selected
Cheers, Bhupinder
Similar Messages
-
Problem about java table.help me
i have two pages.one pages i enter the data and another page i use a table where it shows me the enter information.But when i enter the data it successfully enter access database.but it does not show me in the table.if i set a button to table page for refreah then it refresh and show me data successfully othereise it does not work.My question is if i enter data it automaticaly refresh table page how .please help me .
Are these webpages you are talking about? If the second page is accessed after the first page updates the database and there is code in the second page to access the db, the data should be visible. Explain more clearly if this is not what you mean.
-
Associative Table Key Value Problem...Plz Help...
Good Morning guys,
I would like to ask something about creating associative tables. I want to create an associative table with 3 key values, something like this:
TYPE datatab IS TABLE OF mis_adeia_employee %ROWTYPE
INDEX BY NUMBER, VARCHAR2(3), DATE;
but it displays me error. Is there an alternative way? The basic reason i want to do this, is that my application which is written in PowerBuilder 7 uses datawindows, and now i try to transfer my application from PB to Oracle Forms Builder. So i try to find a structure similar to datawindows. I selected associative tables and i stacked in this example?
Any help , idea?
Thanx a lot in advance,
Regards ,
Bill ...Duplicated post:
Problem Indexing a Table ! ! !
Rgds. -
Problem with ADF Table and doDML method.
HI,
I have a problem with ADF Trinidad Table. I have one search form and which i click on search button the result is coming it's working fine, And when i click on CreateInsert button to insert a new row it's adding after entering all the data into the table when i click on button on the page i am getting error like
Messages for this page are listed below.
Error
Missing mandatory attributes for a row with key oracle.jbo.Key[1 ] of type AppModule.CmSubscribersView1
Error
Attribute Name in AppModule.CmSubscribersView1 is required
Error
Attribute CreatedBy in AppModule.CmSubscribersView1 is required
Error
Attribute CreationDate in AppModule.CmSubscribersView1 is required
Here Created By and Creation Date are not available in the table i need to set these data from back end for that i have used doDML() method in the entity object and i written the logic but this method not even invoking as i couldn't able to see the logs in the server.
protected void doDML(int operation, TransactionEvent e) {
super.doDML(operation, e);
System.out.println("^^^^^^^^^^^^^^^^66666Inside entity object^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ");
// AppModuleImpl am=new AppModuleImpl();
// Number userID= am.getUserId();
//System.out.println("User id in the Entity Object Is: "+userID);
oracle.jbo.domain.Date dt = new Date();
if(operation ==DML_INSERT){
EntityDefImpl cmSubscribers=CmSubscribersImpl.getDefinitionObject();
CmSubscribersImpl newSubscribers=(CmSubscribersImpl)cmSubscribers.createInstance2(getDBTransaction(),null);
Number n=new Number(1599);
newSubscribers.setCreatedBy(n);
newSubscribers.setCreationDate(dt);
newSubscribers.setLastUpdateDate(dt);
newSubscribers.setLastUpdatedBy(n);
But still the same problem can any one help me inthis.
Regards,
Edited by: user5802014 on Aug 21, 2009 2:04 PMHi,
Modify your method to call super.doDML() after initialization of mandatory attributes as below:
protected void doDML(int operation, TransactionEvent e) {
oracle.jbo.domain.Date dt = new Date();
if(operation ==DML_INSERT){
//PRE-INSERT code begins
EntityDefImpl cmSubscribers=CmSubscribersImpl.getDefinitionObject();
CmSubscribersImpl newSubscribers=(CmSubscribersImpl)cmSubscribers.createInstance2(getDBTransaction(),null);
Number n=new Number(1599);
newSubscribers.setCreatedBy(n);
newSubscribers.setCreationDate(dt);
newSubscribers.setLastUpdateDate(dt);
newSubscribers.setLastUpdatedBy(n);
//PRE-INSERT code ends
super.doDML(operation, e);
//POST-INSERT code if any
}else
super.doDML(operation, e);
}Sireesha -
Problem in Assigning table to access sequence
Dear All,
i am facing problem in assigning table to access sequence for billing output type.
I have created 1 table B902 with the combination of Sales org,plant ,Division,Billing doc type.
but if i am going to assign with access sequence system is taking for Billing type & division & for other its showing red marks & errorr.Access sequence->Aceessess->Field.if i am clicking on field in I/O column for plant its displaying negative.
bcause of this i am not able to make condtion record.
Message is Select a document field for WERKS
Regards
ajit
Edited by: SAP SD AJIT on Mar 1, 2010 3:18 PMHi SAP SD AJIT ,
Go to IMG --> Sales and Distribution --> Basic Functions --> Output control --> Output Determination --> Output Determination using condition technique --> Mantain output Determination for billing document --> Mantain condition table, in the pop-up choose the option "Field catalog: Messages for billing documents", there you can add standard field into the catalog, so you can add WERKS and the other one "document structure" I don't know what field it is, but if it is and standard field you can add it. If you have a Z field you need ABAP help to add the Z field to the structure "KOMKBZ5" and then you can add it to the catalog.
Regards,
Mariano. -
Problem in creation table for sap 4.6
hello evrybody
i have just a problem in creating table with se11;after saving and activite those table and zhen i select icon of contents it bloocks and shoz this error message :
Error reading table TMCNV; RC = 4
Message no. BMG 135
thank you for your help
Edited by: Rob Burbank on Apr 6, 2010 10:20 AMSeems like you have a material number field (domain with conversion routine MATN1 or alike) and table TMCNV does not have the entry with key 'MATCONV', check the where used-list of message BMG 135. I assume this entry comes delivered by SAP, so try to restore it.
Also search for OSS notes with "TMCNV" or "BMG 135".
Thomas -
Problems with a table in PDF`S footer
Dear sirs,
We are having problems when trying to run a PDF with Adobe LiveCycle Designer tool.
We are working with a PDF which is composed of a header, the main body and a footer. We have created a table (table1) at the footer and
another one at the main body (table2). This last table (table2) may overflow therefore it will genarate two pages for our PDF.
On both pages appear the header and the footer correctly but in the last page it does not write the data from the table included in the footer (table1).
We have no problems with the table included in the main body
In the attachments, I send you the screenshots of both pages in which I have marked in red the part where we have error.
May you help us to solve our problem?
Thanks in advance your help.
Edited by: emgaitan on Mar 16, 2010 2:18 PMWardell,
Check the data in RSA3 for the extractor that you use to bring data .
You must be using the data source 0CO_OM_CCA_09. Check the data and reconcile and you will get it.
Let me know if you need anything else.
Thanks
Ravi Thothadri
[email protected] -
Hi All,
Here I am facing the problem in Joining table I have S031,s032,makt,marc,I need a field ATWRT field from CAWN table,I did't find any link for this above from tables, any one please help me how to find out.
REPORT ZMMTEST.
tables:s031,s032,makt,marc.
DATA : BEGIN OF itab1 OCCURS 0,
matnr TYPE s031-matnr,
lgort TYPE s031-lgort,
werks TYPE s031-werks,
spmon TYPE s031-spmon,
magbb type S031-magbb,
wagbb type S031-wagbb,
azubb type S031-azubb,
aagbb type S031-aagbb,
END OF itab1.
DATA : BEGIN OF itab2 OCCURS 0,
matnr like makt-matnr,
maktx like makt-maktx,
END OF itab2.
DATA : BEGIN OF itab3 OCCURS 0,
matnr TYPE marc-matnr,
werks type marc-werks,
ekgrp type marc-ekgrp,
END OF itab3.
DATA : BEGIN OF itab4 OCCURS 0 ,
matnr TYPE s032-matnr,
lgort TYPE s032-lgort,
werks TYPE s032-werks,
mbwbest type s032-mbwbest,
wbwbest type s032-wbwbest,
END OF itab4.
data : begin of itab5 occurs 0,
objek type ausp-objek,
atwrt type cawn-atwrt,
end of itab5.
DATA : BEGIN OF itab_final1 OCCURS 0,
matnr TYPE s031-matnr,
lgort TYPE s031-lgort,
werks TYPE s031-werks,
spmon TYPE s031-spmon,
magbb type S031-magbb,
wagbb type S031-wagbb,
azubb type S031-azubb,
aagbb type S031-aagbb,
maktx TYPE makt-maktx,
ekgrp type marc-ekgrp,
mbwbest type s032-mbwbest,
wbwbest type s032-wbwbest,
END OF itab_final1.
DATA : BEGIN OF itab_final OCCURS 0,
matnr TYPE s031-matnr,
lgort TYPE s031-lgort,
werks TYPE s031-werks,
spmon TYPE s031-spmon,
magbb type S031-magbb,
wagbb type S031-wagbb,
azubb type S031-azubb,
aagbb type S031-aagbb,
maktx TYPE makt-maktx,
ekgrp type marc-ekgrp,
mbwbest type s032-mbwbest,
wbwbest type s032-wbwbest,
atwrt type cawn-atwrt,
END OF itab_final.
select-options:s_matnr for s031-matnr.
start-of-selection.
select matnr lgort werks spmon magbb wagbb azubb aagbb
from s031 into table itab1
where matnr in s_matnr.
if not itab1[] is initial.
select matnr maktx from makt into table itab2 for all entries in itab1 where matnr = itab1-matnr.
if not itab2[] is initial.
select matnr werks ekgrp from marc into table itab3 for all entries in itab2 where matnr = itab2-matnr.
if not itab3[] is initial.
select matnr werks mbwbest wbwbest from s032 into corresponding fields of table itab4 for all entries in itab3 where matnr = itab3-matnr.
*if not itab4[] is initial.
select atwrt from cawn into corresponding fields of table itab5.*
endif.
endif.
endif.
endif.
end-of-selection.
loop at itab3.
itab_final-matnr = itab3-matnr.
read table itab2 with key matnr = itab3-matnr.
if sy-subrc = 0.
itab_final-maktx = itab2-maktx.
read table itab1 with key matnr = itab2-matnr.
if sy-subrc = 0.
itab_final-lgort = itab1-lgort.
itab_final-werks = itab1-werks.
itab_final-spmon = itab1-spmon.
itab_final-magbb = itab1-magbb.
itab_final-wagbb = itab1-wagbb.
itab_final-azubb = itab1-azubb.
itab_final-aagbb = itab1-aagbb.
endif.
endif.
itab_final-ekgrp = itab3-ekgrp.
read table itab4 with key matnr = itab3-matnr.
if sy-subrc = 0.
itab_final-mbwbest = itab4-mbwbest.
endif.
itab_final-wbwbest = itab4-wbwbest.
append itab_final.
clear itab_final.
endloop.
WRITE: /2 'material', 23 'storagelocation',29 'plant',35 'date',44 'val.stock.issue',66 'val.stock.issue.value',86 'no.of.stock.receipts',97 'no.of.stock.issues',150 'material.des', 160 'pur.group',190 'stock.val',210 'stock.quan'.
ULINE.
loop at itab_final.
WRITE: /2 itab_final-matnr, 23 itab_final-lgort,29 itab_final-werks,35 itab_final-spmon,44 itab_final-magbb,66 itab_final-wagbb,86 itab_final-azubb,97 itab_final-aagbb,
150 itab_final-maktx, 160 itab_final-ekgrp,190 itab_final-wbwbest,210 itab_final-mbwbest,itab_final-atwrt.
ENDLOOP.
Thanks®ds,
Sree.Hi sree,
take join between s031-sptag ,ausp-datuvthen fetch records based on this condition.(itab1)
After retrieve records based on join condition between
ausp-atinn,ausp-adzhl and cawn-atinn,cawn-adzhl.(itab2)
Retrieve records using for all entries bet first join condition and second join condition.
use for all entries between itab1 and itab2.
it will work surely.
reaward points -
I am getting problem with internal table & work area declaration.
I am working with 'makt' table ..with the table makt i need to work with styles attributes ..so i declared like this
TYPES : BEGIN OF ty_makt,
matnr TYPE makt-matnr,
spras TYPE makt-spras,
maktx TYPE makt-maktx,
maktg TYPE makt-maktg,
celltab TYPE lvc_t_styl,
END OF ty_makt.
DATA : i_makt TYPE TABLE OF ty_makt.
DATA : wa_makt TYPE ty_makt .
But end of program i need to update dbtable "makt"...i am getting problem with internal table & work area declaration.
i think makt table fields mapping and internal table/work area mapping is not correct. so please help me to get out from this.Hi Nagasankar,
TYPES : BEGIN OF TY_MATNR,
MATNR TYPE MAKT-MATNR,
SPRAS TYPE MAKT-SPRAS,
MAKTX TYPE MAKT-MAKTX,
MAKTX TYPE MAKT-MAKTG,
CELLTAB TYPE LVC_T_STYL, " Its Working perfectly fine..
END OF TY_MAKT.
DATA: IT_MAKT TYPE STANDARD TABLE OF TY_MAKT,
WA_MAKT TYPE TY_MAKT.
Its working perfectly fine. if still you are facing any issue post your complete code.
Thanks,
Sandeep -
Hello
I am trying to pull the QM master data from SAP . I am facing some problem in data extraction
Help please
Inspection plan characteristics - ?
How to withdraw from Qualitative / Quantities characteristics field
Thanks
JJDear JJ
Your query is already answered. In addition to help all QM useres PFA path for list of Important QM Tables
[Important QM Tables |http://www.sap-img.com/quality/important-qm-tables.htm]
Thanks
Atul -
Problem with ALV search help Dictionary Search Help
Hello experts
I have a problem with ALV search help.
I use DDIC table ZXXX with text table ZXXX_T. I created DDIC search help form table ZXXX. In my WD application, in context on COMPONENTCONTROLLER i set on attribute: 'Input help mode' as 'Dictionary Search Help' and in 'Dictionary Search Help' I pass name of new created DDIC search help.
I create a input field from that atrribute and search help works fine (there was a value and description for value from text table). So I created ALV witch contains that attribute too.
Next I set column for this attribute in ALV as editable but on Serch help for this collumn I have only value. I DON'T HAVE TEXT DESCRIPTION FOR VALUE.
Please help me and tell me what I do wrong?
MikoHello,
Thank's for your help. I create DDic Search help for all fields from my ALV. Next I changed 'TYPE' for all ALV fields in COMPONENTCONTROLLER from ZXXX-Zfield to Zfield, and I changed 'Input help mode' from 'Automatic' to 'Dictionary Search Help'. Now I see Value and Description for value in Search Help in my ALV.
Regards
Miko -
Hi,
I have one table in my database that is acting weird. When i do
simple statements like 'select count(*) from cardholder' it hangs.
I don't get any results back, it doesn't jump back at the prompt, it
just hangs. Only if i do CTRL - C (it's a AIX Unix box)it goes back to
the prompt. But if i do the following statement: 'select count (*) from
cardholder where cardholder_id < 300000' it processes it.
The other tables in the database are fine.
Can anyone advise me about this issue?
thanks,
cihatAlso you can enable the autotrace utillity, for rewing the execution plan for the statement, also check the alert for looking for a corruption problem.
Sope this helps
CYnthia Pulido
Monterrey, Mexico
Hi,
I have one table in my database that is acting weird. When i do
simple statements like 'select count(*) from cardholder' it hangs.
I don't get any results back, it doesn't jump back at the prompt, it
just hangs. Only if i do CTRL - C (it's a AIX Unix box)it goes back to
the prompt. But if i do the following statement: 'select count (*) from
cardholder where cardholder_id < 300000' it processes it.
The other tables in the database are fine.
Can anyone advise me about this issue?
thanks,
cihat -
Problem in MARA table for the field PSTAT
Dear all,
I am facing a problem with mara table , for a material it is showing "C" Classification status in MARA table in field PSTAT
But if im going to Transaction MM03 with the same material im not able to find any Classification view there(mm03).
Please help me why is this happening and what is the possible solution for this .
Many Thanks!!!
rewards will be given....Hi,
In relation to the issue, there are a number of reasons why the
classification view may not be displaying in MM02/MM03:
1. OMS2 customising settings for material type
2. OMT3 customising settings for the screen sequence
3. Authorisation object M_MATE_STA
If these settings are correct, kindly refer to the note 113966.
If there are inconsistencies in the material status in MARA and MARC
then report ZRMMMSTAT outlined in this note should resolve the issue.
Best regards
Erika -
Problems with partition tables
Hi all,
I've got some problems with partition tables. The script at the bottom run but when I wanna insert some values it returns me an error
(ORA-06550: line 1, column 30: PL/SQL: ORA-06552: PL/SQL: Compilation unit analysis terminated
ORA-06553: PLS-320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored)
and I can't understand why!
There's something incorrect in the script or not?
Please help me
Thanks in advance
Steve
CREATE TABLE TW_E_CUSTOMER_UNIFIED
ID_CUSTOMER_UNIFIED VARCHAR2 (27) NOT NULL ,
START_VALIDITY_DATE DATE NOT NULL ,
END_VALIDITY_DATE DATE ,
CUSTOMER_STATUS VARCHAR2 (255)
PARTITION BY RANGE (START_VALIDITY_DATE)
SUBPARTITION BY LIST (END_VALIDITY_DATE)
PARTITION M200909 VALUES LESS THAN (TO_DATE('20091001','YYYYMMDD'))
(SUBPARTITION M200909_N VALUES (NULL), SUBPARTITION M200909_NN VALUES (DEFAULT)),
PARTITION M200910 VALUES LESS THAN (TO_DATE('20091101','YYYYMMDD'))
(SUBPARTITION M200910_N VALUES (NULL), SUBPARTITION M200910_NN VALUES (DEFAULT)),
PARTITION M200911 VALUES LESS THAN (TO_DATE('20091201','YYYYMMDD'))
(SUBPARTITION M200911_N VALUES (NULL), SUBPARTITION M200911_NN VALUES (DEFAULT)),
PARTITION M200912 VALUES LESS THAN (TO_DATE('20100101','YYYYMMDD'))
(SUBPARTITION M200912_N VALUES (NULL), SUBPARTITION M200912_NN VALUES (DEFAULT)),
PARTITION M201001 VALUES LESS THAN (TO_DATE('20100201','YYYYMMDD'))
(SUBPARTITION M201001_N VALUES (NULL), SUBPARTITION M201001_NN VALUES (DEFAULT)),
PARTITION M201002 VALUES LESS THAN (TO_DATE('20100301','YYYYMMDD'))
(SUBPARTITION M201002_N VALUES (NULL), SUBPARTITION M201002_NN VALUES (DEFAULT)),
PARTITION M210001 VALUES LESS THAN (MAXVALUE))
(SUBPARTITION M210001_N VALUES (NULL), SUBPARTITION M210001_NN VALUES (DEFAULT))
;Hi Hoek,
the DB version is 10.2 (italian version, then SET is correct).
...there's something strange: now I can INSERT rows but I can't update them!
I'm using this command string:
UPDATE TW_E_CUSTOMER_UNIFIED SET END_VALIDITY_DATE = TO_DATE('09-SET-09', 'DD-MON-RR') WHERE
id_customer_unified = '123' and start_validity_date = TO_DATE('09-SET-09', 'DD-MON-RR');
And this is the error:
Error SQL: ORA-14402: updating partition key column would cause a partition change
14402. 00000 - "updating partition key column would cause a partition change"
*Cause: An UPDATE statement attempted to change the value of a partition
key column causing migration of the row to another partition
*Action: Do not attempt to update a partition key column or make sure that
the new partition key is within the range containing the old
partition key.
I think that is impossible to use a PARTITION/SUBPARTITION like that: in fact the update of "END_VALIDITY_DATE" cause a partition change.
Do u agree or it's possible an update on a field that implies a partition change?
Regards Steve -
Problems with 2 tables on same page (in tabs)
i have two data tables bound to different data providers on a page
the tables are presented in two of the tabs of a 5 tab tabset
both tables bind to the data, refresh etc fine. i can customise the data, sort the tables, paginate and so on. no problems.
however, both tables have an edit and a delete button. on table 1 these buttons work fine and fire the appropriate event handlers. on table 2 the buttons i have added to the second table don't seem to fire any event when they are clicked - i have run in debug mode and nothing is happening when the buttons are clicked at any point in the code that i can find
has anyone had similar problems - anyone got any suggestions
thanks
benThanks Misha, for the help
I actually ended up tracing it back to an issue with the data provider - essentially, I had changes some of the table structure behind the data provider and this seemed to cause the table in question to not fire the button events - it seemed that because part of the compound primary key was not selected in the data provider's source rowset, the provider could not get a row key and therefore the events did not fire - i have it working now though after modifying the backing query
thanks again
Maybe you are looking for
-
How to change the ROLE: Integration server in business system in SLD
Hi, I am facing error in communication, becuase the integration server has been attached to in correct business system with incorrect client (001 instead of 700). In SLD, business system, 'integration' tab there is button "Associate with XI'. I have
-
IPhone out-of-sync with Exchange after performing inbox search?
Hey everyone, I work as an IT technician for an Enterprise where the majority of end-users utilize iPhones (4 and 4s) and iPads (all versions) with varying versions of iOS. Many of these people have ActiveSync set up with our Exchange Server (2008RS,
-
Encore CS5 Hangs/Crashes on Import
I'm using a desktop (dual Xeon quad core processors) with 12 gigs of ram and Windows7. I have a Radeon video card and use a Matrox RTX2 for capture. Regardless what or how I import, I get the import and preparing transcode settings windows alternat
-
Traverse object tree from the middle with reflection
Hi. I am new to using reflection in more complex scenarios, and would like some advice. If I get back a partial object tree, from an ORM layer for example, where I have a series of associated objects, for example Employee, which has a Department attr
-
No PS9.0_SDE & SIL Mapping to load Historical PS E-Perfor data into OBIEE
Hi Folks, we have the latest BI environment OBIEE 10.1.3.4.1 and using PeopleSoft 9.0 as the source. The Peoplesoft 9.0 has new set of E-Performance tables when compared to older Peoplesoft tables. so when the systems were upgraded from Peoplesoft 8.