BUG: foreign key not altered when on delete is changed
JDeveloper 10.1.2.0.0
Problem: create a master/detail relation in the database diagram. Set the foreign key to restrict references. Generate DDL directly in the database to create the tables and FK. Alter the FK to cascade on delete and regenerate the DDL in the database. The FK does not get the cascade delete value.
Thank you for reporting the problem, I have filed the bug as bug number 4710066.
Regards,
Lisa Sherriff
JDev QA
Similar Messages
-
Okay, i have 2 bugs with maverick. First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it. Second, I work on a network of computers and the search feature is now buggy... When I search for a file, A) it asks me if it's a name, or it wont produce anything, and B), its slower than in prior OS versions and in some instances I have to toggle to a different directory and go back to my original directory in the search: menu bar or the search wont produce anything... Very buggy.
It appears to me that network file access is buggy in Maverick.
In my case I have a USB Drive attached to airport extreme (new model) and when I open folders on that drive they all appear empty. If I right click and I select get info after a few minutes! I get a list of the content.
It makes impossible navigate a directory tree.
File access has been trashed in Maverick.
They have improved (read broken) Finder. I need to manage a way to downgrade to Lion again. -
Question
When I am NOT private browsing Firefox will not allow me to delete or change the website address in the location bar. My only remedy is to open a new window and search in google then click the link to that site through google. When I swap to private browsing firefox allows me to anter the website address directly into the location bar - but this is a slow [prcess to swap back and forth - also by dint of using private browsing I loose my website information.Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
I am getting an error message "Internal error Instacast Keys not defined" when I open a news app from one of my local tv stations. What is causing this?
Hello, MommaLloyd24.
Thank you for visiting Apple Support Communities.
Here are the steps I would recommend going through as they should resolve the issue.
iTunes 11.1.4 for Windows: Unable to install or open
http://support.apple.com/kb/TS5376
Cheers,
Jason H. -
My mail program does not update when I delete emails in my other email programs (i.e. it still shows messages in my mail inbox when I've deleted them). I think this started with Maverick? Any solutions?
one is gmail, one is a university email and they are both IMAP accounts (not that I know what that means)....
-
my sistem preferences are not working, when I try to change the photo of the desk It stop working, what can i do? I'm dieing cause I'm afraid
Have you tried resetting your device by pressing and holding the Home button and power button until the silver apple appears?
-
CREATE PROC [dbo].[SP_DropForeignKeys]
AS
BEGIN
DECLARE @FKTABLE_OWNER SYSNAME, @FKTABLE_NAME sysname, @FK_Name sysname
DECLARE Cursor_DisableForeignKey CURSOR FOR
SELECT schema_name(schema_id), object_name(parent_object_id), name
FROM sys.foreign_keys
OPEN Cursor_DisableForeignKey
FETCH NEXT FROM Cursor_DisableForeignKey
INTO @FKTABLE_OWNER , @FKTABLE_NAME, @FK_Name
DECLARE @SQL nvarchar(max)
WHILE @@FETCH_STATUS = 0
BEGIN
SET @SQL = 'ALTER TABLE [' + @FKTABLE_OWNER + '].[' + @FKTABLE_NAME
+ '] DROP CONSTRAINT [' + @FK_NAME + ']'
select @sql
EXECUTE (@SQL)
FETCH NEXT FROM Cursor_DisableForeignKey INTO @FKTABLE_OWNER, @FKTABLE_NAME, @FK_Name
END
CLOSE Cursor_DisableForeignKey
DEALLOCATE Cursor_DisableForeignKey
END
create proc [dbo].[SP_CreateForeignKeys]
as
DECLARE @schema_name sysname;
DECLARE @table_name sysname;
DECLARE @constraint_name sysname;
DECLARE @constraint_object_id int;
DECLARE @referenced_object_name sysname;
DECLARE @is_disabled bit;
DECLARE @is_not_for_replication bit;
DECLARE @is_not_trusted bit;
DECLARE @delete_referential_action tinyint;
DECLARE @update_referential_action tinyint;
DECLARE @tsql nvarchar(4000);
DECLARE @tsql2 nvarchar(4000);
DECLARE @fkCol sysname;
DECLARE @pkCol sysname;
DECLARE @col1 bit;
DECLARE @action char(6);
SET @action = 'CREATE';
DECLARE FKcursor CURSOR FOR
select OBJECT_SCHEMA_NAME(parent_object_id)
, OBJECT_NAME(parent_object_id), name, OBJECT_NAME(referenced_object_id)
, object_id
, is_disabled, is_not_for_replication, is_not_trusted
, delete_referential_action, update_referential_action
from sys.foreign_keys
order by 1,2;
OPEN FKcursor;
FETCH NEXT FROM FKcursor INTO @schema_name, @table_name, @constraint_name
, @referenced_object_name, @constraint_object_id
, @is_disabled, @is_not_for_replication, @is_not_trusted
, @delete_referential_action, @update_referential_action;
WHILE @@FETCH_STATUS = 0
BEGIN
BEGIN
SET @tsql = 'ALTER TABLE '
+ QUOTENAME(@schema_name) + '.' + QUOTENAME(@table_name)
+ CASE @is_not_trusted
WHEN 0 THEN ' WITH CHECK '
ELSE ' WITH NOCHECK '
END
+ ' ADD CONSTRAINT ' + QUOTENAME(@constraint_name)
+ ' FOREIGN KEY ('
SET @tsql2 = '';
DECLARE ColumnCursor CURSOR FOR
select COL_NAME(fk.parent_object_id, fkc.parent_column_id)
, COL_NAME(fk.referenced_object_id, fkc.referenced_column_id)
from sys.foreign_keys fk
inner join sys.foreign_key_columns fkc
on fk.object_id = fkc.constraint_object_id
where fkc.constraint_object_id = @constraint_object_id
order by fkc.constraint_column_id;
OPEN ColumnCursor;
SET @col1 = 1;
FETCH NEXT FROM ColumnCursor INTO @fkCol, @pkCol;
WHILE @@FETCH_STATUS = 0
BEGIN
IF (@col1 = 1)
SET @col1 = 0
ELSE
BEGIN
SET @tsql = @tsql + ',';
SET @tsql2 = @tsql2 + ',';
END;
SET @tsql = @tsql + QUOTENAME(@fkCol);
SET @tsql2 = @tsql2 + QUOTENAME(@pkCol);
FETCH NEXT FROM ColumnCursor INTO @fkCol, @pkCol;
END;
CLOSE ColumnCursor;
DEALLOCATE ColumnCursor;
SET @tsql = @tsql + ' ) REFERENCES ' + QUOTENAME(@schema_name) + '.' + QUOTENAME(@referenced_object_name)
+ ' (' + @tsql2 + ')';
SET @tsql = @tsql
+ ' ON UPDATE ' + CASE @update_referential_action
WHEN 0 THEN 'NO ACTION '
WHEN 1 THEN 'CASCADE '
WHEN 2 THEN 'SET NULL '
ELSE 'SET DEFAULT '
END
+ ' ON DELETE ' + CASE @delete_referential_action
WHEN 0 THEN 'NO ACTION '
WHEN 1 THEN 'CASCADE '
WHEN 2 THEN 'SET NULL '
ELSE 'SET DEFAULT '
END
+ CASE @is_not_for_replication
WHEN 1 THEN ' NOT FOR REPLICATION '
ELSE ''
END
+ ';';
END;
PRINT @tsql;
IF @action = 'CREATE'
BEGIN
SET @tsql = 'ALTER TABLE '
+ QUOTENAME(@schema_name) + '.' + QUOTENAME(@table_name)
+ CASE @is_disabled
WHEN 0 THEN ' CHECK '
ELSE ' NOCHECK '
END
+ 'CONSTRAINT ' + QUOTENAME(@constraint_name)
+ ';';
PRINT @tsql;
END;
FETCH NEXT FROM FKcursor INTO @schema_name, @table_name, @constraint_name
, @referenced_object_name, @constraint_object_id
, @is_disabled, @is_not_for_replication, @is_not_trusted
, @delete_referential_action, @update_referential_action;
END;
CLOSE FKcursor;
DEALLOCATE FKcursor;
GO
exec [dbo].[SP_DropForeignKeys]
exec [dbo].[SP_CreateForeignKeys]
droped proc worked perfect but when i execute [dbo].[SP_CreateForeignKeys] and try to see again foreign key constraints but result is empty?
can anybody suggest me what's wrong with these script?droped proc worked perfect but when i execute [dbo].[SP_CreateForeignKeys] and try to see again foreign key constraints but result is empty?
Well, if you have dropped the keys, you have dropped them. They can't be recreated out of the blue. You need to use modify procedure to save the ALTER TABLE statements in a temp table, drop the keys, truncate the tables, and the run a cursor over the
temp table. In a single transaction, so that you don't lose the keys if the server crashes half-way through.
Erland Sommarskog, SQL Server MVP, [email protected] -
Corrupt dump file, foreign keys not generated on import
Hi,
In our refresh job, we get the dump file from production and use it to refresh the schema in UAT.
The dump file thus we got from production seems to be corrupt - as its giving error - "IMP-00008: unrecognized statement in the export file: "
But the error we are getting is for few users, while other users are being imported fine. For the users which got imported fine, the foreign keys are missing !!!
There is no "error" in the import log regarding the foreign keys.
We tried to get the indexfile and it has all "Create Table" statements, along with indexes, primary key, check constraints etc .... only the FOREIGN KEYS are missing.
How can this be explained ?
With Regards,
Shalini.Some suggestions:
1. Check Note:111384.1 if you are trying to import from the tape directly.
2. You can set a bigger buffer size and check whether the error reappears.
3. If you are trying to perform a full import and the error always seemed to be happening when it tried to import the 56th user, you set init.ora parameter license_max_users (which is set to 55) to a bigger value.
These are apart from the main reason for this error, i.e., corrupted export file or Import internal bug. -
Database adapter - table related by foreign key - not picking
Hi All,
we have a Invoke which picks data from database by using the query feature(not polling) of db adapter.
we are picking data from multiple tables.
there is foreign key relation between tables,which we have defined at the db adapter.
Parent - > child 1
> child 2 > child 3
> child 4 > child 5
So we have a case where parent has 3 rows but children tabls have 3000+.
This error is happening in such cases.
Please let me know.
<2009-08-06 16:58:54,833> <ERROR> <default.collaxa.cube.engine> The execution of this instance "90045" for process "XXSOA_ESP4G_ROUT_ABC_SRC" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information.
<2009-08-06 16:58:54,842> <WARN> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "activity manager": Failed due to unhandled bpel fault.
<2009-08-06 16:58:54,852> <ERROR> <default.collaxa.cube.engine.dispatch> <DispatchHelper::handleMessage> failed to handle message
ORABPEL-02182
JTA transaction is not present or the transaction is not in active state.
The current JTA transaction is not present or it is not in active state when processing activity or instance "90,045". The reason is The execution of this instance "90045" for process "XXSOA_ESP4G_ROUT_ABC_SRC" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information..
Please consult your administrator regarding this error.
at com.collaxa.cube.engine.CubeEngine.store(CubeEngine.java:5514)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5799)
at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:2086)
at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:174)
at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:145)
at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at ActivityManagerBean_LocalProxy_4bin6i8.expireActivity(Unknown Source)
at com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessageHandler.handle(ExpirationMessageHandler.java:43)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:141)
at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
<2009-08-06 16:58:54,853> <ERROR> <default.collaxa.cube.engine.dispatch> <DispatchHelper::handleMessage> Not fatal connection error ... not retrying: class com.collaxa.cube.engine.UnhandledFaultException: Failed due to unhandled bpel fault.
<2009-08-06 16:58:54,854> <ERROR> <default.collaxa.cube.engine.dispatch> <BaseDispatchTask::run> Failed to handle dispatch message ... exception ORABPEL-05002
Message handle error.
An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessage"; the exception is: JTA transaction is not present or the transaction is not in active state.
The current JTA transaction is not present or it is not in active state when processing activity or instance "90,045". The reason is The execution of this instance "90045" for process "XXSOA_ESP4G_ROUT_ABC_SRC" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information..
Please consult your administrator regarding this error.
ORABPEL-05002
Message handle error.
An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessage"; the exception is: JTA transaction is not present or the transaction is not in active state.
The current JTA transaction is not present or it is not in active state when processing activity or instance "90,045". The reason is The execution of this instance "90045" for process "XXSOA_ESP4G_ROUT_ABC_SRC" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information..
Please consult your administrator regarding this error.
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:206)
at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)Also for above issue , we increased the timeout in transaction manager
transaction-timeout and syncMaxWaitTime properties as follows:
Property File Location This Value Must Be... Example
transaction-timeout SOA_Oracle_Home\j2ee\home\config\transaction-manager.xml Larger than the transaction-timeout value in orion-ejb-jar.xml and the syncMaxWaitTime value. 7200
transaction-timeout SOA_Oracle_Home\j2ee\home\application-deployments\orabpel\ejb_ob_engine\orion-ejb-jar.xml Less than the transaction-timeout value in transaction-manager.xml.
Note: You must set all transaction-timeout properties that display in this file. 3600
syncMaxWaitTime SOA_Oracle_Home\bpel\domains\domain_name\config\domain.xml
where domain_name is the name of the domain to which you are deploying. Less than the transaction-timeout value in orion-ejb-jar.xml. 240
2.
The above refernece was useful in resolcing our issue.
Regards
Arc -
Foreign key not working in a table control set on a pop-up window
Hi Experts,
I have created a table control using EEWB on BUPA object. I have moved this table control using BUCO transaction to address view. As the address is displayed in BP transaction as a pop-up window, when the error message from the foreign key verification should raise the pop-up window is closed and nothing happens. What I want is the error doesn,t let the window to be closed and show an error message. Any suggestion to achieve that?
Thanks in advance.
RosaHi,
Please check demo program DEMO_DYNPRO_TABLE_CONTROL_2.
Try to copy to custom program and make the following line changes.
MODULE CHECK_ALL INPUT.
CASE OK_SAVE.
WHEN 'ALLM'.
LOOP AT ITAB.
* IF itab-mark = 'X'.
* MESSAGE i888 WITH 'Zeile' sy-tabix 'markiert'.
* ENDIF.
ITAB-MARK = 'X'.
MODIFY ITAB.
ENDLOOP.
Hope this will help ...
Regards,
Ferry Lianto -
Data Modeler 3.0 EA1 - Logical Relation to Foreign Key not generating
When use "Engineer to Relational Model" the only time it creates foreign keys from my relations is when those relations are of the type many-to-many. I've added a Primary UID for each table and I have tried to use the Apply Naming Standard options but nothing seems to work.
I tested my design with the design rules feature I have no errors.
Does anyone have any ideas?
GregHi Greg,
probably you added primary uid after first engineering to relational model. You can check whether those uids are selected in engineering dialog.
Also you can check log file in datamodeler\datamodeler\log directory for logged problems there.
Philip -
Why are some of my keys not working when I put a bit of pressure on it?
Hi there, since 4 months ago I've noticed that my a, q, 1, backspace, and volume buttons do not work when theres a little bit of pressure on or under it. It kind of bothers me because I cant lay in bed and do my things, I have to put it on a table. So my question is, why is this and how can I fix this?
5 or more weeks ago, I can't remember, my keys did suddenly work when there was a bit of pressure on / under it, but I don't know how..
I'm running OS X Mavericks 10.9.4
Processor: 1.3 GHz Intel Core i5
Memore: 4 GB 1600 MHz DDR3What is your operating system? Reader version? How do you convert to PDF?
You write that "some" of the links don't open; what's the difference with links that do open? -
Backup Space Used Will Not Decrease When Photos Deleted
I use the cloud to back up my iPhone 5. I noticed that when I delete or transfer photos off of my phone/delete, and then do another back up, the amount used for that back up does not decrease. I would think taking photos off, which are backed up to the cloud, would decrease the amount of cloud space used since they no longer are being backed up as they are off the phone.
For now, I am deleting my back up after I remove the photos from the phone and making a fresh back up, which of course would not include the photos I removed, and consequently taking up less space in the cloud.
Explain please.Apple states that iCloud keeps the 3 most recent back ups. You would therefore not expect the size of your back up file to be reduced immediately.
-
Composite primary key as foreign key not working
i want have two tables
in one table i make a composite primary key
and in the other table i refer one of the column of the composite key from the above table as foreign key in this table but this didn't work.
eg:
create table temp1
( name char2(10),
ssn# number(10)
address varchar2(10)
constraint (cons_1)primary key(name,ssn#) );
create table temp2
( name1 char2(10) references temp1(name),
add varchar(20));
this didn't work....can't create temp2 table it's giving errorThe following includes some corrections and some suggestions. Your original code had several problems: missing comma, invalid name, invalid data type, no unique key for the foreign key to reference. The following fixes all of those and adds some meaningful names for the constraints and formats it so that it is easier to read.
CREATE TABLE temp1
(name VARCHAR2 (10),
ssn# NUMBER (10),
address VARCHAR2 (10),
CONSTRAINT temp1_name_ssn#_pk
PRIMARY KEY (name, ssn#),
CONSTRAINT temp1_name_uk
UNIQUE (name))
Table created.
CREATE TABLE temp2
(name1 VARCHAR2 (10),
address VARCHAR2 (20),
CONSTRAINT temp2_name1_fk
FOREIGN KEY (name1)
REFERENCES temp1 (name))
Table created. -
LOV values not displayed (when master values are changed)
Sorry for the confusing subject....
I have a codevalue table which contains all generic lookup values.
employee table has employeetype which is getting value from codevlaue table but they are not linked (no foreign key relationship)
Problem is this
Example.... for eomployee 1 let say exmployeetype = perm. if i change the codevalue from perm to permanent.
next time I open the employee 1; I see the employeetype = empty as perm value is not available in lov.
Any way I can overcome this problem using configuration or do i have to generate my own lov in Vo?
I am using oracle 11.1.1.3 adf bc.
let me know if you need any more infoThanks ....
Let me go through step by step process....
LOV is working fine.....for employetype i see the correct value
Now steps I performed which led to this problem
1. for my employee #1, i have employeetype='perm'*
2. I went to codevalue table and changed the value from 'perm' to 'permanent'
3. I went to employee page for employee #1, i see empty employeetype (I want to see the current value which is 'perm')
drop down for employeetype shows correct current value
Now 'perm' doesn't exist in codevalue table and when lov gets generated..... it doesn't have that value......
What i want is not matter if codevalue has the current value of employeetype or not, I want to see the current employeetype value selected......
does that make sense?
1.
Maybe you are looking for
-
Delaying billing based on POD receipt
Hi Is anyone aware of the SAP best practice for enabling a delay in billing after POD receipt. This would be an international direct shipping scenario. Thanks Proof of delivery (POD) is an instrument involved in business processes in which an invoice
-
Acrobat Pro XI Will Not Print Word Document with a Rotated Table
I have a MS Word document that is mostly text, but include a table that has been rotated in a text box to fit on the page. When I try to print to PDF using Acrobat Pro XI, the document crashes at the page the table is on. I have tried several attemp
-
Literalxml encoding style not working in WLS 7.0 SP1
I am posting the following handcrafted message via an HTTPS client POST on to the Web Service URL : <env:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org
-
Button not appearing where I think it should.
Good afternoon all, I wonder if anyone can help me with this please? I think it is probably due to a float being in place but I am not sure how to rectify this. I can normally find the answers to questions I have by googling but this is specific to
-
How to use os x yosemite calculator - need decimal points
I updated to OS X Yosemite version 10.10.2 for my Mac. I cannot figure out how to use the calculator! All I want is to add dollars and cents. How do I get a decimal point? I've searched the web and don't see this addressed.