10g Rename Offline Database Object Broken

I am trying to rename an offline database object. I opened the editor on the object, updated its name and the names of a few of its foreign keys. At first, it appeared to work. The object in the Navigator had the new name, and when I opened a diagram containing the object, all the new names appeared correctly. I saved everything, closed the IDE and reopened it (which is usually the way I get TopLink to correctly identify my changes). When I reopened the IDE, my offline db objects were back to their old names. I tried renaming them again, and this time when I hit the save icon, I got the following error:
Local Exception Stack:
Exception [TOPLINK-6004] (Oracle9iAS TopLink - Release 2 (9.0.4.0) (Build 030612)): oracle.toplink.exceptions.QueryException
Exception Description: The object [MWTable[30B652] (AVEGA.USER_DIMENSION_SELECTIONS)], of class
[class oracle.toplink.workbench.model.db.MWTable], with identity hashcode (System.identityHashCode()) [3,192,402],
is not from this UnitOfWork object space, but the parent session's.  The object was never registered in this UnitOfWork,
but read from the parent session and related to an object registered in the UnitOfWork.  Ensure that you are correctly
registering your objects.  If you are still having problems, you can use the UnitOfWork.validateObjectSpace() method to
help debug where the error occurred.  For more information, see the manual or FAQ.
     at oracle.toplink.exceptions.QueryException.backupCloneIsOriginalFromParent(QueryException.java:152)
     at oracle.toplink.publicinterface.UnitOfWork.getBackupClone(UnitOfWork.java:1505)
     at oracle.toplink.publicinterface.UnitOfWork.calculateChanges(UnitOfWork.java:426)
     at oracle.toplink.publicinterface.UnitOfWork.getChanges(UnitOfWork.java:1560)
     at oracle.toplink.workbench.ui.WorkbenchSession.saveProject(WorkbenchSession.java:675)
     at oracle.toplink.addin.persistence.MWJDeveloperPersistence.save(MWJDeveloperPersistence.java:226)
     at oracle.toplink.tsceditor.persistence.PersistenceManager.save(PersistenceManager.java:1047)
     at oracle.toplink.addin.manager.MWJDeveloperMediator.saveMWProjectFor(MWJDeveloperMediator.java:394)
     at oracle.toplink.addin.node.MWProjectNode.save(MWProjectNode.java:345)
     at oracle.ide.cmd.SaveAllCommand.saveAll(SaveAllCommand.java:64)
     at oracle.ide.cmd.SaveAllCommand.doit(SaveAllCommand.java:118)
     at oracle.ide.CommandProcessor.invoke(CommandProcessor.java:376)
     at oracle.ide.CommandProcessor.invoke(CommandProcessor.java:112)
     at oracle.ide.Ide.handleEvent(Ide.java:1884)
     at oracle.ide.addin.BaseController.handleEvent(BaseController.java:99)
     at oracle.ideimpl.navigator.NavigatorController.handleEvent(NavigatorController.java:133)
     at oracle.ide.IdeAction.performAction(IdeAction.java:829)
     at oracle.ide.IdeAction$1.run(IdeAction.java:781)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)What do I need to do to safely rename an offline database object?

Hi John,
Thank you for taking the time to reporting this problem that you have encountered. The exception you have listed below is the result of changes not being communicated correctly between your offline database object modeling diagram and the TopLink Mapping Editor. We have addressed this problem and the solution will be available for you in the next JDeveloper release. For the meantime, your best bet would be to make any necessary changes to your database model prior to mapping those tables. I know that this is not exactly ideal, but it will ensure that you do not encounter this problem. I hope this helps and let me know if I can provide you with any additional information.
Thanks,
John Bracken
Toplink Development Team

Similar Messages

  • TP4 : big instability in offline database object edition and diagraming

    I encountered a lot of problems when editing offline database objects and in database diagraming.
    Foreign keys don't appear in diagram after creating it, i'm not able to delete a broken foreign key (the ok button don't react, i can only cancel my changes).
    It is no more possible to drag and drop attribute from a table to another table (copy).

    Peter,
    Glad to see you took my advice and posted your question over here. Although I am a frequent user of the Oracle usenet groups, I have found that this is a much better place to get help with Spatial. My experiences suggest that the population of people using spatial is small--and of them the ones that really know alot are few and far between. I can only claim to be in the former group.
    As far as your problem goes--this is probably something you've already considered--is there a way to model the data such that you don't have to replicate the geometry components? Another option would be to handle the replication without using snapshots. Examples would be to export the data and then ftp/copy it to the target machines and import it. If you need real-time replication you could experiment with triggers that execute INSERTs/UPDATEs/DELETEs on the remote databases. This of course has its own issues--but you're going to end up with some sort of compromise no matter how you slice this.
    Of course you could use the relational model. I have never used it so I'm hard pressed to give any advice on it. As I posted on the usenet board, it is heading for desupport in 9i Release 2 according to the documentation available. So if you go relational you'll eventually have to migrate to object/relational. I'm not sure how automatic (or non-automatic) that process is. Hopefully someone on here will have some more concrete advice on that.
    Good luck.
    Matt.

  • Unable to import offline database objects (8.1.5)

    Hi
    I tried to create database diagram in JDeveloper 10.1.3 and I hit the error. Firstly, I tried to create the Offline Database Objects. At step 2 of 3 (Select Objects), it failed.
    oracle.javatools.db.DBException: java.sql.SQLException: ORA-00942: table or view does not exist
         at oracle.javatools.db.ora.BaseOracleDatabase.listObjectsImpl(BaseOracleDatabase.java:1306)
         at oracle.javatools.db.AbstractDBObjectProvider.listObjects(AbstractDBObjectProvider.java:808)
         at oracle.jdeveloper.cm.dt.ui.DBObjectSourcePicker.doQuery(DBObjectSourcePicker.java:166)
         at oracle.jdeveloper.cm.dt.ui.DBObjectSourcePicker.run(DBObjectSourcePicker.java:213)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.sql.SQLException: ORA-00942: table or view does not exist
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:113)
         at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:431)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:965)
         at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:463)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1051)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1184)
         at oracle.javatools.db.ora.BaseOracleDatabase.listObjectsImpl(BaseOracleDatabase.java:1280)
         ... 5 more
    My database is Oracle 8.1.5. I did the same thing on Oracle10g and it worked fine. The database connection is fine and username/[password are right, too.
    I hate to say bug but I am wondering if Oracle8.1.5 was not supported by JDeveloper.
    Thanks,
    Kevin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    JDeveloper is only certified with 8.1.7 and above so it may be an incompatability between 8.1.5.
    Regards,
    Lisa

  • What is the use of Offline Database Object in SOA

    Hi All,
    Can anyone let me know the purpose of Offline Database Object in SOA.
    1) When we will create the Offline Database Object in soa ?
    2) How do we connect this object to any data base schema ?
    Note:- Please provide me the example on this
    Thanks,

    Hi Dominik,
            Thanks for the repy !!!!
    Now, as you said we can access a (deep) node of the whole model using an access object.
    Let us consider the component set ONEORDER. As seen we can use the following path to reach BTDocFlowAll using search object :-
    BTQuery1O -> BTOrder  -> BTOrderHeader  -> BTHeaderDocFlowSet -> BTDocFlowSet -> BTDocFlowAll ....
    Also, to reach BTDocFlowAll we can even use the access object as follows :-
    BTAdminI -> BTItemDocFlowSet  -> BTDocFlowAll....
    Now my question is :-
    Normally we use the class cl_crm_bol_query_service to fire a search based on a search object. Can we use the same class to fire a search based on access object ?
    (actually I currently dont have a CRM system so I could not try it out myself).
    If not, then how do we fire a query using an access object ?
    Regards,
    Ashish

  • Not able to compare PL/SQL body from two different offline database object

    It is not possible to compare two package bodies from two different off line database object in two different off line database and schema.
    JDeveloper display a compare not available message in the middle of the window.
    It is possible to compare the package specification.

    Not able to compare scripts generated from offline database objects too

  • Import offline database objects doesn't always work

    import offline database objects doesn't work when database table to import has a Date column with a default value NULL.
    Return message:
    An error was encountered:
    table.column
    table.column Datatype DATE "NULL"
    Invalid default value expression : NULL expected a Date or Timestamp expression.
    JDev 10.1.3

    Any ETA on when this will be fixed? We work with the Siebel CRM products and the underlying data model is full of DATE fields whose default value is NULL. As a result, there are very few tables which can be imported for diagramming.
    Thanks,
    Jason

  • Class diagram for database objects.

    Hi,
    I am creating a diagram from the tables in the database in Oracle Jdeveloper 10g. This will basically give me a ER diagram. When I drag and drop a table - say EMP - i get a window - "Create from database object" - which gives me a few options. I selected the "Offline database objects" option. The table appears in the class diagram sheet with the table name, it's columns and the constraints.
    Now when I remove this object (table EMP) and then again try to drag and drop the same object as above, I get the object on the sheet as EMP1 and not EMP and also the constraints are renamed. It does not allow me to change the name to EMP. It gives a message that -"TABLE names must be unique" and the table name is renamed to EMP1.
    I want the name as EMP only. How do i do it?
    Thanks,
    Vinay

    Vinay,
    It's because in the first step, you deleted the table from the diagram, but not from the offline database. Now, when you drag a table from the database connection, it will need to create a new offline table. Instead of dragging from the DB connection, drag it from the offline database (it should already be there from the first step). Alternatively, delete the offline table as well as part of your first step (deleting the object from the diagram).
    John

  • Why not generating adf bc projects and components from offline database

    I imported offline database objects from my production database that is big. I would like designing some business components without necessarily the database running and be connected.
    Is it a reason why an adf bc project may necessarily connect to an on line database ?
    Why it is not possible to generate adf bc components from off line database objects ?

    The ADF BC design time has always required a database connection, to be able to test the validity of expert-mode SQL statement for one reason, but not the only one. We have not lifted that requirement in the 11g release.
    I filed ER# 6056701 to track your request. Thanks.

  • JDEV 11G TP4 [BUG]: Offline Database / Copying project from workspace

    I have two workspaces.
    In these two workspaces i have a Documentation project containing offline database objects.
    Workspace 1
    +Documentation
    +connection
    +schema
    +objects
    +schema
    +objects
    Workspace 1
    +Documentation
    +connection
    +schema
    +objects
    +schema
    +objects
    I would like to copy the content of one schema from workspace 1 to a project in the workspace 2.
    Both schema have same name.
    Connection is different.
    The active workspace is workspace 2.
    In the wizard i'm able to select the Application (workspace), the project but the connection listed is only the one for workspace 2 (the active one). It normally has to be the ones corresponding to workspace 1 that i selected has the source for the copy.
    The result it that i got the list of objects from Documentation project from workspace 2 instead the desired ones from workspace 1.
    Hope its help

    Loose it again today ... please is it possible to address this problem ... it's really frustrating each time restore the configuration file.

  • Delete Database Object or database diagram

    Hello.
    how could I delete a database object? I tried using right click but dont know how to delete the database object. The same problem is qhen I try to delete a database diagram, please could you help me?
    Thanks a lot!

    Emilio,
    If you are talking about Offline Database Objects and want to completely remove them, you can select the appropriate node in the Navigator and then do 'File | Erase from Disk', the same is true for the Database Diagram. If you want to remove a Database Object from the Diagram, then you can invoke the context menu and again choose 'Erase from Disk' to fully erase the object, or you can choose 'Delete' to just remove the object from the Diagram bur remains in the Navigator.
    Hope that helps,
    Lisa Sherriff
    JDev QA

  • Can we rename the database name in oracle 10g

    Hi,
    Can we rename the database name in oracle 10g.
    Please help

    Yes as already said, using DBNEWID Utility can renamed the database name.
    You can also take a look at the Oracle Metalink Note:429674.1 (Which was written by me) - Subject: How We Used the Oracle DBNEWID Utility to Change the Database Name
    Regards,
    Sabdar Syed.

  • JDev 10g: Problem when generating database objects from UML diagram

    Hi,
    I have noticed following problem.
    I made some business components through UML diagrammer in 9.0.3. From the diagram I generated database objects. It worked fine.
    When I doing the same thing in 10g, the generation fails on several tables with the message that the "identifier is too long".
    Looking at the SQL produced in one of the failing tables. In 9.0.3 following is produced:
    create table sfs_document_def (
    id number constraint document_definition_id_check not null,
    caption varchar2(100) constraint document_definition_caption_ch not null,
    index1 number,
    owner_type number constraint document_definition_owner_type not null
    alter table sfs_document_def add (constraint documentdefinition_primary_key primary key (id));
    And in 10g following is produced:
    create table sfs_document_def (
    id number,
    caption varchar2(100) constraint sfs_document_def_caption_check not null,
    index1 number,
    owner_type number constraint sfs_document_def_owner_type_ch not null
    alter table sfs_document_def add ( constraint documentdefinition_primary_key primary key (id));
    alter table sfs_document_def add ( constraint document_definition_id_check check ("id" is not null));
    alter table sfs_document_def add ( constraint sfs_document_def_caption_check_10 check ("caption" is not null));
    alter table sfs_document_def add ( constraint sfs_document_def_owner_type_ch_10 check ("owner_type" is not null));
    It seems that column that are set not to be null in 10 g first get a constraint creating the table and then when altering the table. Furthermore, notice that the name of the second constraint is longer than 30 chars, which is reason to the error when creating the tables.

    Thanks for reporting the issue. I have managed to reproduce your problem and logged a bug to get the problem fixed.
    Thanks,
    Lisa Sherriff
    JDev QA

  • Offline database and generating objects to different databases

    I created an offline database with my objects, I can change them and push them back to the DB I got them from, but I cannot figure out how to push changes to a different database. I see where I can push to a different schema. I want to use the offline DB to maintain all my tables, and push the changes to a Test, Stage, QA DB's when I want but cannot find where to push the changes to a different database.

    I created an offline database with my objects, I can change them and push them back to the DB I got them from, but I cannot figure out how to push changes to a different database. I see where I can push to a different schema. I want to use the offline DB to maintain all my tables, and push the changes to a Test, Stage, QA DB's when I want but cannot find where to push the changes to a different database.

  • Not able to see EO and VO Objects in offline database in jdeveloper

    Hi all,
    We have a offline database. I opened it in database edition mode in jdeveloper , but i can`t see EO, VO and AM OBJECTS(with their specific icons) in the project. Although i am able to see respective XML files.
    What could be the reason?

    EO/VO/AM are not part of offline database mode, they are part of ADF. You need to use studio edition mode.

  • Offline Database Sync Problem

    Hi guys!
    I'm facing some problems with offline database synchronization between my Production and Development server.
    When trying to generate my development database(any objects) to my production server the Object Browser(in the Alter Role with Manual Reconcile)
    the browser(Manual Reconcile one) indicates that a lot of differences are detected(even if I see in the Database Navigator that the objects are completely equal).
    Here goes a screenshot:
    http://img441.imageshack.us/img441/388/offdbproblem.jpg
    My DB: Oracle XE 10g
    Prod DB: Oracle 11g EE
    Jdeveloper 11.1.1.3 using EJB 3.0.

    Hello,
    May I know if there is any update there?
    Please let me know if I can help you more, thanks.
    BR,
    Steven Song
    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.
      Hello Steven,
      First, sorry for the late response, I have tested a few things for you:
    Offline mode with background sync over a VPN connection: During scheduled sync File Explorer hangs. When bypass the cache by using a UNC path (State: Online) there is also a delay, but this is caused by bandwidth.
    Online Mode with Manual Sync over a LAN connection: During sync File Explorer hangs in (redirected)UserData Folders (They are always available offline, maybe this is a problem?). With UNC paths, there is no delay…
    The first folder/file is created slowly, but the second is fast.
    It's like csc
    still
    must initialize
    the cache…or something…
    I m  I made some
    print screens, but I can not upload them because my account is not verified.......
    trT  Thanks,
     Bas

Maybe you are looking for

  • Dynamic Pages In Portal

    I am trying to create a dynamic page based on a stored procedure which inserts rows into a table. I am having problems changing the value of a parameter text box via the following JavaScript. <SCRIPT type="text/javascript"> <!-- function change_val()

  • Adding to a List which is being looped?

    Hello, I am trying to add items to a list which is being looped. Here is a demostration of what I want to do. List<MyObject> myObjects = new ArrayList<MyObject>(); myObjects.add(new MyObject()); for (MyObject mo : myObjects) {         if (mo.process(

  • BOM and routing selection during production order creation

    I am having a material which is having only one BOM and one routing. Now for this material in the material master in the selection method indicator i have put as 3 as selection only by production version. But i have not maintained any production vers

  • Oracle Proxy Authentication

    Oracle9i 9.2.0.1.0 WebLogic Server 7.0 SP3 We want to use Oracle's Proxy Authentication and don't have a clue about configuring WebLogic. Can anyone assist? Brian Dick

  • Problem When executing chart in the Web

    Hi all, I am getting the following error when executing a chart in the Web. Diagnosis Internal error when communictaing with the IGS (charts). System response Internal error text: "Error opening an RFC connection." Procedure Procedure for System Admi