GG Error of unique key,
Hi,
While setting up goldengate i have come accross the following error in the error log. This error occurs when extract in started.
2010-08-06 18:53:58 INFO OGG-00476 Oracle GoldenGate Capture for Oracle, ext-a.prm: Gathering metadata for [SEND.SOURCE] not successful even though object was resolved, retrying [3] times with 1 second interval.
2010-08-06 18:53:59 WARNING OGG-00455 Oracle GoldenGate Capture for Oracle, ext-a.prm: Problem in resolving [SEND.SOURCE]: OCI error (904-ORA-00904: "VISIBILITY": invalid identifier) building query to fetch unique key, SQL < SELECT key.key_name, key.column_name, key.descend FROM (SELECT c.constraint_name key_name, c.column_name column_name, c.position position, >, try to fix this issue in order to avoid possible fatal error.
2010-08-06 18:53:59 INFO OGG-00476 Oracle GoldenGate Capture for Oracle, ext-a.prm: Gathering metadata for [SEND.SOURCE] not successful even though object was resolved, retrying [2] times with 1 second interval.
2010-08-06 18:54:00 WARNING OGG-00455 Oracle GoldenGate Capture for Oracle, ext-a.prm: Problem in resolving [SEND.SOURCE]: OCI error (904-ORA-00904: "VISIBILITY": invalid identifier) building query to fetch unique key, SQL < SELECT key.key_name, key.column_name, key.descend FROM (SELECT c.constraint_name key_name, c.column_name column_name, c.position position, >, try to fix this issue in order to avoid possible fatal error.
2010-08-06 19:07:13 ERROR OGG-00521 Oracle GoldenGate Capture for Oracle, ext-a.prm: Object was resolved, however in the same resolution call both DDL history and database metadata resolution failed, cannot recover, SCN [489507], object id [51514].
note that my table does contain unique key
Any ideas? Stuck at this stage :(
thanks
Salman
Hi Dominik
I managed to correct that one. It was actually the name of my trails are different on primary node and remote node.
Now i am attempting to configure bidirectional traffic but during this phase the repilcat 1 dies (abending).
Log shows up as follows
2010-08-06 21:42:21 INFO OGG-00996 Oracle GoldenGate Delivery for Oracle, rep-a.prm: REPLICAT REP-A started.
2010-08-06 21:42:21 WARNING OGG-01004 Oracle GoldenGate Delivery for Oracle, rep-a.prm: Aborted grouped transaction on 'RECV.DEST', Database error 100 (retrieving bind info for query).
2010-08-06 21:42:21 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, rep-a.prm: Repositioning to rba 1653 in seqno 1.
2010-08-06 21:42:21 WARNING OGG-01154 Oracle GoldenGate Delivery for Oracle, rep-a.prm: SQL error 1403 mapping SEND.SOURCE to RECV.DEST.
2010-08-06 21:42:21 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, rep-a.prm: Repositioning to rba 1653 in seqno 1.
2010-08-06 21:42:21 ERROR OGG-01296 Oracle GoldenGate Delivery for Oracle, rep-a.prm: Error mapping from SEND.SOURCE to RECV.DEST.
2010-08-06 21:42:21 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, rep-a.prm: PROCESS ABENDING.
Similar Messages
-
I design an entity object with a number attribute which is a primary key
A new entity object extends this first one with no more attributes.
The generated sql tries to generate a unique constraint on the previous primary keyThe last one which I recently downloaded, that's the about fuss:
Oracle IDE 9.0.3.10.76
UML Modelers Version 9.0.3.9.73
Business Components Version 9.0.3.10.62
SCM Support Version 9.0.3.9.73
iSQL*Plus for Oracle9i JDeveloper 9.2.0.1.96
WebDAV Support Version 9.0.3.9.4
JMIG Framework (Generators) 9.0.4.1.28
java.version 1.3.1_02
java.home C:\Jdev031\jdk\jre
java.vm.name OJVM Client VM
java.vm.vendor Oracle Corp.
java.vm.version 9.0.3.744 o
user.language fr
user.region FR
user.name Papounet
user.home C:\Documents and Settings\Papounet
user.dir C:\Jdev031\jdev\bin
ide.user.dir
os.name Windows 2000
os.arch x86
http.proxyHost <no value assigned>
http.proxyPort <no value assigned>
http.nonProxyHosts <no value assigned>
ide.patches -
Unique Key Violation error while updating table
Hi All,
I am having problem with UNIQUE CONSTRAINT. I am trying to update a table and getting the violation error. Here is the over view. We have a table called ActivityAttendee. ActivityAttendee has the following columns. The problem to debug is this table has
over 23 million records. How can I catch where my query is going wrong?
ActivityAttendeeID INT PRIMARY KEY IDENTITY(1,1)
,ActivityID INT NOT NULL (Foreign key to parent table Activity)
,AtendeeTypeCodeID INT NOT NULL
,ObjectID INT NOT NULL
,EmailAddress VARCHAR(255) NULL
UNIQUE KEY is on ActivityID,AtendeeTypeCodeID,ObjectID,EmailAddress
We have a requirement where we need to update the ObjectID. There is a new mapping where I dump that into a temp table #tempActivityMapping (intObjectID INT NOT NULL, intNewObjectID INT NULL)
The problem is ActivityAttendee table might already have the new ObjectID and the unique combination.
For example: ActivityAttendee Table have the following rows
1,1,1,1,NULL
2,1,1,2,NULL
3,1,1,4,'abc'
AND the temp table has 2,1
So essentially when I update in this scenario, It should ignore the second row because, if I try updating that there will be a violation of key as the first record has the exact value. When I ran my query on test data it worked fine. But for 23 million records,
its going wrong some where and I am unable to debug that. Here is my query
UPDATE AA
SET AA.ObjectID = TMP.NewObjectID
FROM dbo.ActivityAttendee AA
INNER JOIN #tmpActivityMapping TMP ON AA.ObjectID = TMP.ObjectID
WHERE TMP.NewObjectID IS NOT NULL
AND NOT EXISTS(SELECT 1
FROM dbo.ActivityAttendee AA1
WHERE AA1.ActivityID = AA.ActivityID
AND AA1.AttendeeTypeCodeID = AA.AttendeeTypeCodeID
AND AA1.ObjectID = TMP.NewObjectID
AND ISNULL(AA1.EmailAddress,'') = ISNULL(AA.EmailAddress,'')>> I am having problem with UNIQUE CONSTRAINT. I am trying to update a table and getting the violation error. Here is the over view. We have a table called Activity_Attendee. <<
Your problem is schema design. Singular table names tell us there is only one of them the set. Activities are one kind of entity; Attendees are a totally different kind of entity; Attendees are a totally different kind of entity. Where are those tables? Then
they can have a relationship which will be a third table with REFERENCES to the other two.
Your table is total garbage. Think about how absurd “attendee_type_code_id” is. You have never read a single thing about data modeling. An attribute can be “attendee_type”, “attendee_code” or “attendee_id”but not that horrible mess. I have used something like
this in one of my busk to demonstrate the wrong way to do RDBMS as a joke, but you did it for real. The postfix is called an attribute property in ISO-11179 standards.
You also do not know that RDBMS is not OO. We have keys and not OIDs; but bad programmers use the IDENTITY table property (NOT a column!), By definition, it cannot be a key; let me say that again, by definition.
>> ActivityAttendee has the following columns. The problem to debug is this table has over 23 million records [sic: rows are not records]<<
Where did you get “UNIQUE KEY” as syntax in SQL?? What math are you doing the attendee_id? That is the only reason to make it INTEGER. I will guess that you meant attendee_type and have not taken the time to create an abbreviation encoding it.
The term “patent/child” table is wrong! That was network databases, not RDBMS. We have referenced and referencing table. Totally different concept!
CREATE TABLE Attendees
(attendee_id CHAR(10) NOT NULL PRIMARY KEY,
attendee_type INTEGER NOT NULL --- bad design.
CHECK (attendee_type BETWEEN ?? AND ??),
email_address VARCHAR(255),
CREATE TABLE Activities
(activity_id CHAR(10) NOT NULL PRIMARY KEY,
Now the relationship table. I have to make a guess about the cardinally be 1:1, 1:m or n:m.
CREATE TABLE Attendance_Roster
(attendee_id CHAR(10) NOT NULL --- UNIQUE??
REFERENCES Attendees (attendee_id),
activity_id Activities CHAR(10) NOT NULL ---UNIQUE??
REFERENCES Activities (activity_id)
PRIMARY KEY (attendee_id, activity_id), --- wild guess!
>> UNIQUE KEY is on activity_id, attendee_type_code_id_value_category, object_id, email_address <<
Aside from the incorrect “UNIQUE KEY” syntax, think about having things like an email_address in a key. This is what we SQL people call a non-key attribute.
>> We have a requirement where we need to update the ObjectID. There is a new mapping where I dump that into a temp table #tempActivityMapping (intObjectID INTEGER NOT NULL, intNewObjectID INTEGER NULL) <<
Mapping?? We do not have that concept in RDBMS. Also putting meta data prefixes like “int_” is called a “tibble” and we SQL people laugh (or cry) when we see it.
Then you have old proprietary Sybase UODATE .. FROM .. syntax. Google it; it is flawed and will fail.
Please stop programming until you have a basic understanding of RDBMS versus OO and traditional file systems. Look at my credits; when I tell you, I think I have some authority.
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
Strange Unique Key Error When Copying Cube
I have an empty cube (cube2) I checked it many times. I am copying data from cube1 using an info package. In Info Package I set delete option, i.e., delete existing data in cube2 before loading.
As soon as loading starts, I get a short dump with error message:
An entry was to be entered into the table |
"\FUNCTION=RSAR_ODS_GET\DATA=L_TH_ISOSMAP" (which should have
had a unique table key (UNIQUE KEY)).
However, there already existed a line with an identical key.
The insert-operation could have occurred as a result of an INSERT- or
MOVE command, or in conjunction with a SELECT ... INTO.
The statement "INSERT INITIAL LINE ..." cannot be used to insert several
| initial lines into a table with a unique key.
I tried other cubes, same error occurs. I checked on SN, people have encountered this error but solution is not posted. Any idea, how can I get rid of the error.
Thanks a lot.Hi
Try to load from Cube1 to cube2 without using that option and see if it loads. If that works then add an extra step on the
process chain ' Delete overlapping requests from the target ' after the infopackage load .
Thanks
Jay. -
Error in Duplicate record validation in EntityObject using unique key contraint
I have implemented Unique key validation in Entity Object by creating Alternate key in Entity object.
So the problem is that whenever the duplicate record is found,the duplicate record error is shown, but the page becomes blank, and no error is shown in the log.
I wanted to know what may be the possible cause of it.
I am using Jdev 11.1.2.4.After duplication, clear the PK item, then populate from the sequence in a PRE-INSERT block-level trigger.
Francois -
Violation of unique key constraint 'IX_User_LoginName' error
I get the following error while doing a sync:
violation of unique key constraint 'IX_User_LoginName'
I have already updated the web user ids on all my users, as well as those on my BPs. After I do the sync all my data is being deleted.I get the following error while doing a sync:
violation of unique key constraint 'IX_User_LoginName'
I have already updated the web user ids on all my users, as well as those on my BPs. After I do the sync all my data is being deleted. -
Hello,
I've trouble enrolling AMT computer with SCCM 2012
I've foud the following error in Amtproxymgr.log
15/05/2014 14:54:50
Found instruction file: D:\Apps\Microsoft Configuration Manager\inboxes\amtproxymgr.box\{C6B0AAB5-BB02-4673-B44A-118917419389}.OTP
15/05/2014 14:54:50
It's client provisioning request to be processed.
15/05/2014 14:54:50
Stored provisioning request into database. SMSID: Machine_GUID
15/05/2014 14:54:50
Target machine SMSID:Machine_GUID is a AMT capable machine.
15/05/2014 14:54:50
Passed SanityCheckBeforeProvision(). FQDN is MYCOMPUTERNAME.domain.
15/05/2014 14:54:50
BASE64 string OTP is : OTP_STRING
15/05/2014 14:54:58 *** EN_EnrollmentAdminInsert @ProfileId = '16777217', @AssignedSiteCode = N'SITE_CODE', @DeviceName = N'MYCOMPUTERNAME', @ResourceID = '16816953', @OwnerIdentity = N'', @ClientType
= '1', @OrganizationUnit = N'LDAP://OU=OU_NAME
15/05/2014 14:54:58
*** [23000][2627][Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of UNIQUE KEY constraint 'EN_EnrollmentRecords_AK'. Cannot insert duplicate key in object 'dbo.EN_EnrollmentRecords'. The duplicate key value is (MYCOMPUTERNAME). : EN_EnrollmentAdminInsert
15/05/2014 14:54:58
Fail to insert Enrollment Record!
15/05/2014 14:54:58
Error: Failed to create enrollment record.
If I do a query on V_R_SYSTEM the resource ID for MYCOMPUTERNAME is 16816953.
If I do a query on EN_EnrollmentRecords the Ressource Id associated to
MYCOMPUTERNAME is 16777351
So there is already a record for MYCOMPUTERNAME in
EN_EnrollmentRecords.
I think the reason is that the computer resource has been removed from SCCM and then readded. The computer has now a new Ressource ID. But the deletion of the previous computer ID did not removed the record from
EN_EnrollmentRecords.
How can I solve this ?Open Sql Server Management Studio, and do the query below.
select * from dbo.en_EnrollmentRecords where ResourceID ='16777351'
delete from dbo.EN_EnrollmentRecords where ResourceID = '16777351'
Delete the Device from console and AD and try provisioning again.
Note: Please backup your Database before doing this modification. Modifying database will be at your own risk.
Juke Chou
TechNet Community Support -
JSP unique key exception error
hi guys,
plz help me, i have small pblm in my jsp page,
I made 2 columns as unique key and 1 column as primary key in my database(mySQL)....
Unique Keys are Username and email...Wen I enter same username the db throws error...but I have to show this same error in the alert box on my insertion jsp page,
How do I go about it????In java code:
You catch the exception.
You get the message from the exception.
You save the message somewhere - eg in a request attribute.
Forward to a JSP page to render the response
The JSP page should check for the existence of the "error" request attribute, and produce javascript code on the page that will alert it when the page is loaded. -
Select statement on unique key consraint
I have a table 'PO' in which 'ID' is primary key and 'PO_NUM' is unique key. I am using a select statement on unique key 'PO_NUM' to get the 'ID'.
select id from po where po_num= '3266';
it says, 'no data found'
But the exists in the database. Can anyone help me with this one.
Thanks
-LavanyaIs "no data found" an "in-house" error message, i.e. one you put out in a print statement in a catch block? If so, change that catch block to include a stacktrace so we can see what the actual error message is, if there is one, or if it is actually returning an empty result set.
-
Primary key,Froign key , Unique key
I want the answer of following questions.
1) Primary key create cluster index or simple index?
2) What is cluster index : I know only( cluster index stored record at physical level in sorted order) if there is another difference then tell me
3) Can I set relation ship with unique key if it is specified with NOT NULL constraints in a table.
4) Foreign key creates a index or not?Hello
I want to be at least 6 inches taller, better looking and really good at playing the drums, but that's neither here nor there.
A simple please never hurts.
For answers to the first 2 I'd concentrate on the clusters section of the concepts guide as your understanding of what clusters are for and when they should be used appears to be lacking:
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96524/c11schem.htm#25479
and also have a look at this asktom thread:
http://asktom.oracle.com/pls/ask/f?p=4950:8:6996872588440689863::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:1308402202736
The last two questions, again you can find the info you need in the concepts guide but
3) Can I set relation ship with unique key if it is specified with NOT NULL constraints in a table.To set up a foreign key from one table to another, it needs to reference a primary key or a unique key in the target table, the NOT NULL constraint has very little to do with it. A very simple test will show this:
SQL> create table dt_test(id number);
Table created.
SQL> create table dt_test_fk(id number);
Table created.
SQL> create table dt_test_fk(id number, pk_id number);
Table created.
SQL> alter table dt_test_fk add constraint fk_dt_test_fk FOREIGN KEY(pk_id) references dt_test(id);
alter table dt_test_fk add constraint fk_dt_test_fk FOREIGN KEY(pk_id) references dt_test(id)
ERROR at line 1:
ORA-02270: no matching unique or primary key for this column-list
SQL> alter table dt_test add constraint uk_dt_test UNIQUE (id);
Table altered.
SQL> alter table dt_test_fk add constraint fk_dt_test_fk FOREIGN KEY(pk_id) references dt_test(id);
Table altered.
SQL> alter table dt_test modify(id number not null);
Table altered.
4) Foreign key creates a index or not? Creating a foreign key on a column does NOT automatically create an index on that column.
A primary key may create a new index. If an index is already available on the table and it can be used i.e the leading edge of the index holds the columns in the primary key, it will be used rather than creating a new one.
HTH -
Groovy Expression get Values of Unique Key
Hi all,
I am trying to create a custom error message for a unique key validation. With other error messages that just evaluate one field I have been able to do things like:
Value {0} already exists
With the token for 0 being newValue. When I am validating a unique key when I pull newValue it gives me one of the fields it validates on, is there another expression to get all the values?
Thanks!
JDEV 11.1.2.2.0hi,
you can directly use attrName to get the particular attrValue..
like instead of using newValue using attr FirstName.
if you want to customize the error message more then you can create entityImpl class and create a method that will return the custom error message i.e you have a method like getErrorMessage() then you can access it like
adf.source.getErrorMessage().. but i think the first one will solve your problem....
Regards, -
Duplicate Unique Key declaration in DDL export
Using v1.1.2.25 of the product, I performed a DDL export of selected tables and noted in the resulting file that my two Unique Keys were duplicated (created twice). This caused no real problem except a couple of error message that will confuse customers, so I have to manually extract the second declarations. Did I miss something, or is this a bug?
Define key_element as a key (or unique)! Check the schema specification at http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions. If you're up to a challenge translate the specification from W3-ese to a meaningfult language, or take a short cut and read the example in section 3.11.2.
Support for keys in validation is sometimes spotty, but it's pretty easy to code up your own checks if needed. -
Hi all,
I have a table with only one col..called...Rno...with unique..constraint.
In this table i can enter more than one null value...If i can enter more than one null value...the concept of unique may get false...
please explain whether a unique key accept more than one null value or not..
Thanks and regards
MKKNULL = NULL is always false actually you mean
NULL = NULL is always null
add a constant to your index and enjoy unique nulls :-)
SQL> create table t(x number);
Table created.
SQL> create unique index i on t(x,1);
Index created.
SQL> insert into t values(1);
1 row created.
SQL> insert into t values(2);
1 row created.
SQL> insert into t values(2);
insert into t values(2)
ERROR at line 1:
ORA-00001: unique constraint (SCOTT.I) violated
SQL> insert into t values(null);
1 row created.
SQL> insert into t values(null);
insert into t values(null)
ERROR at line 1:
ORA-00001: unique constraint (SCOTT.I) violatedMessage was edited by:
Laurent Schneider
the technical reason why unique index i on t(x) is not unique is that nulls are not indexed -
Java OracleXML putXML & non-unique keys
I am using the XML SQL Utility for java on the client (NT) to insert multi-row XML documents into an ORACLE table. Everything works fine until I hit a row with a non-unique key. It appears insertXML throws an error and the insert stops at that point. Rows after the non-unique key row are not processed.
Is there any way to process all rows of an XML document, telling me how many read, how many inserted, how many not processed??
Also, what about update capabilities? Presently I am not needing to update from XML into ORACLE, all I can do now is insert.
Thanks in advance,
RickOne way to make this work would be to take advantage of Oracle8i's INSTEAD OF triggers on views.
Basically, you would:
(1) CREATE VIEW someview
AS SELECT * FROM sometable;
(2) CREATE TRIGGER someview_trig
INSTEAD OF INSERT ON someview
DECLARE
BEGIN
-- Check for existence of
-- row using the value of
-- :NEW.pk_column_name
IF (you-found-an-existing-one) THEN
-- Do something here like
-- NULL; to ignore the insert altogether
-- or possible an INSERT into
-- and EXCEPTIONS table...
ELSE
INSERT INTO sometable
VALUES (:NEW.column1, ..., :NEW.columnn);
END IF;
END;
(3) Then point XML SQL Utility at someview
instead of sometable
and you'll be in business, as they say. -
*** [23000][2627][Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of UNIQUE KEY constraint 'ClientPushMachine_G_AK'. Cannot insert duplicate key in object 'dbo.ClientPushMachine_G'. The duplicate key value is (16777412). : sp_CP_CheckNewAssignedMachine
CCCRT::RunSQLStoredProc - Failed to execute SQL cmd exec [sp_CP_CheckNewAssignedMachine] N'xxx', 1
CCRQueueRequest::GetRequestFromQueue - Failed to execute SQL cmd sp_CP_CheckNewAssignedMachine
I get the above issue and the one below at a client site; the error started with the error below then changed to the one reported above and back to the one below. Everything is working as it should but the issues
started when one of the admins at the data-centre incorrectly applied a gpo which affected a number of service accounts (sccm inclusive) and they expired....hence reporting in sccm got broke as well as this error in the ccm.log file appeared.
Remote client install still works but I believe this error affects new client discovered by sccm, so in other words devices discovered by sccm do not get the client installed automatically....but if all access and permissions are in place...pushing out the
client to the new discovered system works, it just not done automatically, which kinda defeats one the reasons for using sccm.
I have searched the breadth of the tinternet and I can only find two technet reference to the same error - one says to edit the stored procedure on the sql server which I don't think should be done... Like Jason said and I concur....its bad joo joos.
The second suggestion, said you should select all the options in the Client Push Installation properties, I have tried this but hasn't solved the problem.
I am planning to upgrade the site to the R2 CU3 before the end of the year but I would like to resolve this error before the upgrade.
The site is currently sccm 2012 sp1
Any idea?> Resolution? sil vous plait!
MerciHi ,
Please back up the database of the SCCM site. Then run the following query against the Site DB and see how it goes.
DELETE FROM System_SMS_Resident_ARR
WHERE ItemKey IN (
SELECT ItemKey FROM vSystem_SMS_Resident_ARR
GROUP BY ItemKey
HAVING COUNT(ItemKey) > 1
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Maybe you are looking for
-
SM:SELFDIAGNOSIS background job getting failed in Solution manager
Hi All, SM:SELFDIAGNOSIS background job getting failed in Solution manger server : Job Log: 2-22-2012 16:44:02 Job started 00 516 S 2-22-2012 16:44:02 S
-
TS1538 My itunes no longer recognises ipod and i now can't sync my ipod??
I can't sync my ipod because itunes won't recognise it
-
Comp wont boot with ram in any slots besides 1&3 no matter what, faulty board?
Ok i've tried pretty much everything, got latest bios, changed timings to everything but the comp just wont boot if I have any ram in slots 2&4. Actually got the comp to boot up with ram in slots 1&2 once, but tried with all 4 slots filled and didn't
-
OAS 4.0.8.1 on Windows NT 4.0
Hello All! I have some problems with JServlet Cartrige confuguration. When I am trying to edit MyApplication->Configuration->Web Parameters I get an error: "Error encountered while executing processor oracle.OAS.Services.ServerApp.Display". I have al
-
Anyone having the same issue?