same record appeared twice [message #681781] |
Mon, 31 August 2020 02:02 |
haider_1pk
Messages: 135 Registered: March 2009 Location: PAKISTAN
|
Senior Member |
|
|
Dear Friends
I am facing the problem of same record appeared twice after committed record,only in oracle forms 6i.
and not in others developing tools (e.g oracle 10g forms or 11g forms).
Kindly guide me , Why it is happened in oracle forms 6i.
Pictures are attached.
CREATE TABLE "INVOICE"
( "INVOICE_ID" NUMBER(6,0) NOT NULL ENABLE,
"CUSTOMER_ID" NUMBER(6,0) NOT NULL ENABLE,
"TYPE" VARCHAR2(12 BYTE),
"SUMMERY_ID" NUMBER(6,0),
"WDATE" DATE,
"SALES_MAN_ID" NUMBER(4,0) NOT NULL ENABLE
CONSTRAINT "INVOICE_ID_PK" PRIMARY KEY ("INVOICE_ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "SYSTEM" ENABLE,
CONSTRAINT "CUS_PKPK" FOREIGN KEY ("CUSTOMER_ID")
REFERENCES "CUSTOMERS" ("CUSTOMER_ID") ENABLE
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 1212416 NEXT 573440 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "SYSTEM" ;
CREATE TABLE "INVOICE_DETAILS"
( "INVOICE_ID" NUMBER(6,0) NOT NULL ENABLE,
"PRODUCT_ID" NUMBER(7,0) NOT NULL ENABLE,
"QTY" NUMBER(8,0) NOT NULL ENABLE,
"DISCOUNT" NUMBER(8,0),
"BATCH_NUMBER" VARCHAR2(15 BYTE) NOT NULL ENABLE,
"RATE" NUMBER(6,2),
CONSTRAINT "INVOICE_DETAILS_INVOICE_FK1" FOREIGN KEY ("INVOICE_ID")
REFERENCES "INVOICE" ("INVOICE_ID") ENABLE
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 3932160 NEXT 1941504 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "SYSTEM" ;
Thanks
Haider
-
Attachment: 2.gif
(Size: 209.59KB, Downloaded 1777 times)
|
|
|
|
|
Re: same record appeared twice [message #681798 is a reply to message #681789] |
Tue, 01 September 2020 01:16 |
haider_1pk
Messages: 135 Registered: March 2009 Location: PAKISTAN
|
Senior Member |
|
|
Thanks for Reply.
Dear Sir,
I could not add primary key as you said because I am using foreign key in invoice_details table.But i have added a primary key in new column named T.
The problem is still there when i used the committed key, It show the error of primary key but not all the time because sometimes it saves the record.
(I am facing this problem in only Forms 6i)
|
|
|
Re: same record appeared twice [message #681799 is a reply to message #681798] |
Tue, 01 September 2020 01:24 |
haider_1pk
Messages: 135 Registered: March 2009 Location: PAKISTAN
|
Senior Member |
|
|
And according to my observation one thing more that it happens only when I launch Forms first time i.e Records show double after saving. But during saving records second time in form it will works properly.
|
|
|
|
|
|
|
|