Solved

sql server error 515,7215 ora error -02089,02291

Posted on 2010-09-01
7
1,100 Views
Last Modified: 2013-12-12
unable to update table using procedure on sql server side.
0
Comment
Question by:Smruti1
  • 4
  • 2
7 Comments
 

Author Comment

by:Smruti1
ID: 33579553
Our configuration Updates table on SQL server while pulling data from Oracle. It used to work before but it stopped  accessing data from oracle and updates tables in SQL Server.
0
 
LVL 34

Expert Comment

by:johnsone
ID: 33579755
ORA-02291 is a constraint violation.  It would most likely mean you have a child with no parent.  The full text of the error message should give you more information.
0
 

Author Comment

by:Smruti1
ID: 33580044
Thanks johnsone.

Here is the full text message--

Oracle error 'ORA-02291: integrity constraint (DM.FK_ADDR_2_ADDR_GRP) violated - parent key not found ' [ ORA-06512: at "COM.COM_OFFICE_PKG", line 365 ORA-06512: at "COM.COM_OFFICE_PKG", line 322  ]{ ----- PL/SQL Call Stack -----   object      line  object   handle    number  name 0x1eea5d520       332  package body COM.COM_OFFICE_PKG 0x1f25988a0         1  anonymous block } , SQL Message = 'Could not execute statement on remote server 'DMLINK'.'
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 34

Expert Comment

by:johnsone
ID: 33580437
Based solely on the constraint names, my guess is that you have an ADDRESS table and an ADDRESS_GROUP table.  You are missing the group record for the address.  That is what the message is telling you.

This would tell you the constraint that the table is on:

select owner, table_name from dba_constraints where constraint_name = 'FK_ADDR_2_ADDR_GRP' and owner = 'DM';

This would tell you the table that is referenced:

select owner, table_name from dba_constraints where (owner, constraint_name) = select r_owner, r_constraint_name from dba_constraints where constraint_name = 'FK_ADDR_2_ADDR_GRP' and owner = 'DM');

Once you fix the constraint violation, which I suspect is with the address group table, your procedure should run correctly.
0
 

Author Comment

by:Smruti1
ID: 33601762
Thanks to all, I will check it after long weekend and let you all know.
0
 

Accepted Solution

by:
Smruti1 earned 0 total points
ID: 33643263
Thanks to all,
we found that there was some data provider issue --> we need to use microsoft provider instead of oracle provider so changing provider resolved this issue.
Thanks to every body for help.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now