Db-cascade-delete for other databases than Oracle?

I have two entity beans with a one to many relationship. The database designers have implemented a cascading delete between the two tables for the entity beans. How should the deployment descriptors be written for this to work properly? From what I understand I will need to use the <cascade-delete /> tag in ejb-jar.xml and <db-cascade-delete /> in weblogic-cmp-jar.xml. However this document http://e-docs.bea.com/wls/docs81/ejb/entity.html states that <db-cascade-delete /> only works for Oracle, and I'm using DB2. Does this mean that I have to remove the cascading delete in the database and only enable it in ejb-jar.xml, or will <db-cascade-delete /> work for other databases than Oracle?
/Björn

To get the certified answer I'd ask a tech support rep. Unofficially, if DB2 supports cascade delete then I would expect that the EJB container will work with that. There are issues surrounding certification of features against specific databases and I'm not up on all of these so I'd check with support.

Similar Messages

  • Creating table in other databases than Oracle

    Hi
    It would be nice to be able to create tables in a JDBC Connection in other databases than Oracle. Why limit it to Oracle when there is a SQL standard to work with?
    Regards,
    Fredrik

    Generic SQL isn't really as generic as people would like to believe.
    In any case, we're working on that for an upcomming release, but with the current time constraints, we just got the Oracle table creation support done.
    (The time is more on testing than writing the feature)
    It'll get in there, but probably not in the next release.
    Rob

  • Download data Other databases to Oracle

    Hi,
    Currrently I am following a process through MS Access to A) download the data from other databases, B) truncate Oracle tables to delete all the data and C) to upload the data to Oracle Tabes...
    Can you please advice if there is a way I can download the data directly from other databases to Oracle... I am looking for details as I am new bee with Oracle...
    Thanks

    I am just curious about your word "database".
    Is this in Oracle terms, MS terms, MYSQL terms?
    Please clarify.
    Can you please advice if there is a way I can download the data directly from other databases to Oracle...Yes, depending upon exactly which flavor of other databases may be.
    I am looking for details as I am new bee with Oracle..Details are database specific, but since we don't anything about other databases, I won't guess at which details you may require.

  • Using Airtunes for other things than iTunes?

    Hi,
    Is it possible to use my Airport Express, which is connected to speakers around the house, for other sounds than just from iTunes? So I can hear different sounds from all applications as though it were my built in speakers I was using?
    Thanks.
    Mc

    Have a look at Rogue Amoebe's Airfoil:
    "With Airfoil, you can now send any audio right through your AirPort Express. Use RealPlayer, Windows Media Player, Safari, and almost any other application with your AirPort Express. Using Airfoil you can also send audio from widgets and radios like the RadioSHARK, and tweak the audio with Airfoil's built-in effects.
    Airfoil also adds the fantastic ability to send audio to multiple AirPort Express units at once. It's now possible to send audio all around your house right from your computer. Don't spend thousands of dollars on expensive solutions to get your audio throughout your home. "Wire" your whole house wirelessly, using AirPort Express units, and give your audio wings with Airfoil."
    See http://www.rogueamoeba.com/airfoil/mac/

  • Let the database doing cascade deletion for privateOwned relationship

    Hi,
    I have two tables: parent, child. I mapped the parent to child as a one-many private owned relationship. The child table have a foreign key reference back to parent table. The constraint is like this
    alter table child add constraint FK_CONSTRAINT foreign key (parentid) reference parent (parentid) on delete cascade;
    I would the cascade deletion is done by database (as it is "on delete cascade" in the constraint) rather by the toplink. (This is exactly what you will do when use JDBC. another reason is that if I let the TopLink do the cascade deletion, I got a deadlock! If I remove the cascade deletion from topLink, I do not have the deadlock).
    Is there anyway I can turn off the cascade deletion from topLink, but at the same side keep the private owned relationship(because it is indeed privately owned)?
    Any help is really appreciated.
    jason

    Setting a no-op sql solves the cascade deletion problem. However, if I really want to remove a child from the parently, I ends up using the same no-op sql. I can not delete child independently.

  • Migration toolkit for RAIMA database to ORACLE database

    We have to migrate a RAIMA database (version 4.5) to an Oracle8i
    (8.1.7.0.0)database.
    I found a migration toolkit on the OTN WebSite at the following
    adress:
    http://otn.oracle.com/tech/migration/toolkits/content.html
    the one I can get there, has been developped to migrate a RAIMA
    database to an Oracle version 7.x database under UNIX.
    I need a migration toolkit to convert the RAIMA database to
    Oracle8i database running under Microsoft Windows operating
    system (9x, NT or 2000)
    Can I find one somewhere ? If not, Does-it exist a way to modify
    the UNIX toolkit to Windows ? If Yes, what do we have to do.
    Thanks,
    Pierre Marois
    COGI-OMH

    Hi,
    I've had a quick look at the kit.
    There should be no problems migrating the database to Oracle 8i
    or 9i using the kit.
    As for using the toolkit on Windows, I would try and convert the
    UNIX scripts to Windows scripts, but if you can't, you'll just
    have to do what the scripts to manually.
    The C program that fixes the output from Raima looks like you
    should be able to compile that on Windows.
    It might be easier to get a UNIX machine and convert it on that :).
    Hope that helps.

  • ACE - x-forwarded-for equivalent for other protocols than HTTP

    Hello you guys
    Need your help. I have an ACE architecture based on source-nat but I want to have the real source IP info on the destination real server.
    For HTTP packets I can set up x-forwarded-for, but is there a way to do the same for other TCP protocols? And, just for the fun of it, UDP also?
    Best wishes

    Hi,
    it is designed specifically for HTTP. ACE cannot insert the same to any other protocol.
    Even if you look at the commands it says :
    "insert-http x-forward header-value "%is"
    which itself indicate that it is desinged for HTTP.  This is a process of adding a header to HTTP message.
    Hope that helps.
    regards,
    Ajay Kumar

  • Does WLEC work for other ORBs than WLE

    Hello !
    In WebLogic Server (WLS) I can use WebLogic Enterprise Connectivity (WLEC)
    to call WebLogic Enterprise (WLE) - managed objects. My question: Does WLEC
    allow to call CORBA objects managed by ORBs from different vendors through
    IIOP ?
    sincerely
    Aleksander Grzebyta

    Aleksander,
    I do not believe so.
    I recall that WLEC has some understanding of how the WLE domain ID is embedded
    into the vendor specific part of the IOR in order to route requests to the
    correct pool. There may well be other WLE specific features too.
    Regards,
    Peter.
    Got a Question? Ask BEA at http://askbea.bea.com
    The views expressed in this posting are solely those of the author, and BEA
    Systems, Inc. does not endorse any of these views.
    BEA Systems, Inc. is not responsible for the accuracy or completeness of the
    information provided
    and assumes no duty to correct, expand upon, delete or update any of the
    information contained in this posting.
    Aleksander Grzebyta wrote:
    Hello !
    In WebLogic Server (WLS) I can use WebLogic Enterprise Connectivity (WLEC)
    to call WebLogic Enterprise (WLE) - managed objects. My question: Does WLEC
    allow to call CORBA objects managed by ORBs from different vendors through
    IIOP ?
    sincerely
    Aleksander Grzebyta[att1.html]

  • Development tool for Other Modules of Oracle Apps

    With reference of my last post ( Oracle Apps and Oracle Developer 6i ).
    Grant Ronald (Ace Member) reply me that not all applications are built on Oracle Developer 6i, actually I want to know that which modules of Oracle Apps built on which tools. Kindly let me know please.

    Some are built using a HTML (UIX technology) as a front end and Java (BC4J) back end.
    As we move forward the Fusion technology stack will mainly be around ADF, ADF Business Components and ADF Faces.
    REgards
    Grant Ronald

  • [SOLVED] hdaps for other notebooks than Lenovo/IBM

    Hello.
    I got a Toshiba Satellite T130-10G. Lately, I've been wondering if the HDD protection works in Arch.
    Is there a way how to find out whether it works?
    And if such a protection is not present on my notebook, is installing and enabling hdapsd via AUR a good option since I got a Toshiba and not a Lenovo?
    I've been doing some research on that topic, but most of the things I found tend to be out-dated and the answer is not clear... Perhaps now something like HDAPS is included in kernel. I don't know...
    Any ideas?
    Last edited by ancient_archer (2011-09-05 16:26:16)

    http://en.wikipedia.org/wiki/Active_har … protection
    and
    https://wiki.archlinux.org/index.php/HDAPS
    I've been using t43 about year ago and hdaps was running just fine. I just went with the arch wiki artictle, stock kernel no problems, I even had nice kde4 plasma widget. But HDAPS needs special hardware, you can't make every single notebook to be HDAPS aware even if it's toshiba it still might be not equipped with required hardware.
    PS if your hardware is not HDAPS capable, enabling it won't do anything, it simply won't work.

  • Datasources other than Oracle in JDev 10.1.3 (preview)

    Hi.
    Im evaluating JDev as our primary development tool for JSF and I found that I cant configure data sources for other database than Oracle.
    I set up the connection for FireBird database (in connection s tab) correctly (can see objects and execute queries).
    When I tell to JDev to copy IDE datasources there is no way to tell to OC4J which JDBC driver to use, then I cant test the application.
    I'm using JSTL SQL tags (no ADF).
    Regards.

    I think this paper about swapping the OC4J JDBC drivers might help you:
    http://www.oracle.com/technology/tech/java/oc4j/1013/howtos/how-to-swapjdbclib/doc/how-to-swapjdbclib.html
    It's a new feature in OC4J 10.1.3

  • Can I use Other database as the repository, Sybase/SQL Server? Urgent!!!

    Hi all,
    Can I use Other database as the repository, Sybase/SQL Server? Urgent!!!
    And Can I use other database store business data and sync with lite?
    Thanks ahead!!!

    Jonathan,
    No, it is not possible to use any other database than Oracle (8.1.7) or later .
    Oracle Lite will only work with Oracle.
    Regards

  • Weblogic 9.1, EJB 2.0, Oracle 9i: Cascade delete Error

    Hi All,
    I am facing an error with the cascade-delete facility in ejb2.0 with weblogic 9.1
    Assume that I have the following relation:
    <ejb-relation>
    <ejb-relation-name>TeacherEJB-StudentEJB</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>teacher-has-student
    </ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>TeacherEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>teacher</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>student-has-teacher
    </ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <cascade-delete/>
    <relationship-role-source>
    <ejb-name>StudentEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>student</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type><cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    Now when I have to delete one record from the DBSTUDENT table, what i do is the following:
    StudentHomeLocal.remove(studentModel.getStudentId());
    The above statement throws an SQLException staying it can't update TeacherID in DBSTUDENT (PK of DBTEACHER, FK in DBSTUDENT) with NULL.
    The same code is working perfectly well in Weblogic 8.
    I even tried deleting the local directly by the following statement:
    StudentLocal.remove();
    But this too doesn't work.
    I also tried by removing the <cascade-delete/> attribute from the ejb-jar.xml file and updating the 'on-delete cascade' option in the database, but this too did not work.
    There is another option of <db-cascade-delete> in weblogic-cmp-rdbms-jar.xml that I tried but this too did not work.
    In short, I have tried the following cases but to no avail:
    1. Mention cascade delete in ejb-jar.xml and nothing mentioned in weblogic-cmp-rdbms-jar.xml.jar and in the database.
    2. Mention nothing in ejb-jar.xml and nothing mentioned in weblogic-cmp-rdbms-jar.xml.jar but 'on cascade delete' mentioned in the database.
    3. Mention cascade delete in ejb-jar.xml and db-cascade-delete mentioned in weblogic-cmp-rdbms-jar.xml.jar and 'on cascade delete' in the database.
    4. Remove all cascade delete from the ejb-jar.xml,the weblogic-cmp-rdbms-jar.xml and from the database.
    Neither of the above work.
    Kindly help ASAP.
    Thanks in advance,
    Sachidanand.

    Hi All,
    I am facing an error with the cascade-delete facility in ejb2.0 with weblogic 9.1
    Assume that I have the following relation:
    <ejb-relation>
    <ejb-relation-name>TeacherEJB-StudentEJB</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>teacher-has-student
    </ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>TeacherEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>teacher</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>student-has-teacher
    </ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <cascade-delete/>
    <relationship-role-source>
    <ejb-name>StudentEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>student</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type><cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    Now when I have to delete one record from the DBSTUDENT table, what i do is the following:
    StudentHomeLocal.remove(studentModel.getStudentId());
    The above statement throws an SQLException staying it can't update TeacherID in DBSTUDENT (PK of DBTEACHER, FK in DBSTUDENT) with NULL.
    The same code is working perfectly well in Weblogic 8.
    I even tried deleting the local directly by the following statement:
    StudentLocal.remove();
    But this too doesn't work.
    I also tried by removing the <cascade-delete/> attribute from the ejb-jar.xml file and updating the 'on-delete cascade' option in the database, but this too did not work.
    There is another option of <db-cascade-delete> in weblogic-cmp-rdbms-jar.xml that I tried but this too did not work.
    In short, I have tried the following cases but to no avail:
    1. Mention cascade delete in ejb-jar.xml and nothing mentioned in weblogic-cmp-rdbms-jar.xml.jar and in the database.
    2. Mention nothing in ejb-jar.xml and nothing mentioned in weblogic-cmp-rdbms-jar.xml.jar but 'on cascade delete' mentioned in the database.
    3. Mention cascade delete in ejb-jar.xml and db-cascade-delete mentioned in weblogic-cmp-rdbms-jar.xml.jar and 'on cascade delete' in the database.
    4. Remove all cascade delete from the ejb-jar.xml,the weblogic-cmp-rdbms-jar.xml and from the database.
    Neither of the above work.
    Kindly help ASAP.
    Thanks in advance,
    Sachidanand.

  • How to open oracle listner for three database instances

    please help me with following questions
    I have 3 database instances
    orcl
    JIP02T
    JIP04T
    when i start the oracle database, does it start all 3 instances? when i start the oracle listner, does it start listner for all 3 instances?
    when i echo $ORACLE_SID
    [ora112@localhost admin]$ echo $ORACLE_SID
    orcl
    i can only see orcl and oracle listner is started only for one database instance.i can connect to only one database instance usign sql developer how can i start oracle database listner for other database instances as well

    ShishirTekadeR wrote:
    . oraenv
    Note that is "dot" SPACE oraenv
    You will be prompted for the value of ORACLE_SID (one of the databases). It looks like this:
    oracle:orcl$ . oraenv
    ORACLE_SID = [orcl] ? dwsbx
    The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 is /u01/app/oracle
    oracle:dwsbx$
    HIGHLY APPRECIATED U R IMP Tips!!!!!
    But it’s very difficult to remember & manually enter oracle SID & HOME details every time after run (. Oraenv)
    .profile creation is simple method and no need to remember SID & HOME details.(for multiple DB in one server)You don't have to "remember & manually enter oracle SID & HOME details every time after run " oraenv sets all those details for you. All you have to remember is the name of the instance you want to work with. The same thing you'd have to remember if you if you created (as you suggested) three different "profiles" - actually three different shell scripts, each to set the environment for a specific instance.
    Yes, I do place "default" settings in .bash_profile. But with multiple databases the "default" settings are often not going to be what you need so you'll still have to run some process to change them. Either a home-grown script or oraenv. And either way you will have to remember the names of the instances you have to chose from. So in general I see no advantage of reinventing the wheel.
    >
    >
    >
    As per user information
    He is using different port number for different instanceWhich accomplishes absolutely nothing except extra configuration headaches. It accomplishes nothing for security. It accomplishes nothing for availability.
    And also it is very simple method to manage three different DB in three different listener entry (for DB maintenance activity.)Not as easy as managing one default listener. By far the most frequent listener configuration issue I see on this forum is when people try to configure one listener per database.
    Single listener in multiple instance (if listener down all DB connection will affect)And why would the listener be down? I've been working full time with Oracle since version 7.3 - somewhere around 1995. I've NEVER seen a listener fall over and die. I have seen many people on this forum whose db connections failed because they were trying (unsucessfully) to configure multiple listeners.
    All of my servers are running multiple databases. I have one test server that is running close to a dozen separate databases. One listener. I've NEVER had a situation where I thought to myself, "Gee, it would really help if I had created a separate server for each database"
    >
    >
    Best Regards,
    Shishir Tekade.
    My Blog: http://shishirtekade.blogspot.com
    Edited by: ShishirTekadeR on Dec 27, 2012 10:29 PM
    Edited by: ShishirTekadeR on Dec 27, 2012 10:30 PM
    Edited by: ShishirTekadeR on Dec 27, 2012 10:31 PM

  • Why SAP is better than Oracle for timber plantation industry

    Dear Experts,
    I have to prepare a ppt regarding Why SAP is better than Oracle for timber plantation industry? please supply me some precious points that could convince my client to go for SAP rather than Oracle.
    I u have a ppt ready for this then please help me by sending that. Pleease help me asap.
    Thank u all
    Sankhajeet

    Hi,
    if anyone have any other docs or links on this...please send me...
    Thanks in advance
    krishna
    [email protected]

Maybe you are looking for