Problem with cross-database relation in EJB3 entities with Sybase DB

Hi,
while experimenting with EJB3 as a beginner, I noticed that generated queries sent to the Sybase DB never use the catalog name prepending the table name (like in: select * from user_db..Account where Id = 'myname'). Instead only table name is used, which schema-name prepended in case it's not blank.
This is inconvinient, since it forces me to use several persistence units, one for each catalog.
What is even more a problem, is that an entitiy that has a relation to another entity mapped to a table in a different catalog, doesn't work, at runtime I get a error '...sql error...table <table_in_other_catalog> not found...'
Is there a fix/work around for this problem?
Any suggestion would be greatly appreciated.
Mark

Was it that there was an entity generation bug, or was it that your classes were out of sync, and that by changing the table names that you regenerated the entity classes to be in sync?
If you have a simple reproducable test case of the problem then it would be great if you could enter a bug in Bugzilla:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EPS%28EclipseLink%29
Thanks.

Similar Messages

  • Proble  with  cross module relations

    hi,
    we are using oracle 10g, we are using cross module relations
    eg:
    i have user1 and user2 user is there
    user1 contain1 DEPT table and user2 contain EMP table
    here we are maintainig relation between both table
    in user2 we are creating view on that DEPT table(with select,references privileges) and maintanig relation on base tables.
    Here my problem is when ever i am doing exports,imports cross modules relations are went out
    how can i do export and imports with out this problem
    Thanks and Regards
    tmadugula

    You should only import both schema's every other way you will "heart" you referential integrity.
    Oded
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • Refresh Problem with manyToOne OneToMany relations in EJB3/0

    Hi all,
    I have three tables defined.
    Table A, B and C. B is an association table between A and C.
    I have made a simple web application in which I can insert entries in the association table B.
    The problem is now that when I insert a new entry in B the changes are not reflected to the defined @OneToMany relations in A and C, untill I restart the OC4J DP4 10.1.3.0 server.
    I think the problem lies in the fact that the EJB relations are not refreshed properly.
    Does anyone regconize this problem?
    Thanks in advance

    Sorry, no solution.
    Would just like to add my weight to this post as Im having the same trouble unless of course you managed to resolve it in which case Id be grateful for your wsidom.
    Two entites (created with CMP from tables wizard) Location contains Stock. Cascade of PERSIST defined.
    Facade method to add stock to a location works (Correct values are insserted into the database) but subsequent finds return Stock entities that are unpopulated (i.e. all proeprties are null).
    Im using latest JDeveloper 10.1.3 build 3673 downloaded a couple of days ago. Am running within JDeveloper also.
    Facade method :-
    public void writeOnStock(String loc, String prod, int qty, String container)
    throws InvalidProductCode, InvalidLocationCode {
    Location l = (Location) em.find("Location",loc);
    if (l==null) throw new InvalidLocationCode(loc);
    Product p = (Product) em.find("Product",prod);
    if (p==null) throw new InvalidProductCode(prod);
    Stock s = new Stock();
    s.setProduct(p);
    s.setQty(new Long(qty));
    s.setContainer(container);
    s.setStatus("-");
    l.addStock(s);
    My tester code...
    stockFacade.writeOnStock("BAY1","LP1",1,"PAL1");
    System.out.println( stockFacade.findAllStock( ) );
    Output of...
    [Stock:[null]null on null]
    but stock table contains a row with all the correct data (Id of 45)
    Stop and start the embedded OC4J server and run again I get...
    [Stock:[45]1 on PAL1, Stock:[null]null on null]
    As you can see record 45 from previous run is fine now, but latest is all null.
    Any help appreciated. Gonna raise a TAR and upload my code. Ill post back if I get a solution.

  • Problem with database adapter on plsql procedure with in/out parameters

    running BPEL 10.1.3.1 and using the database adapter on a plsql procedure with in/out parameters I get errors
    the plsql procedure:
    create or replace procedure proc_with_clob_inout_parameter(
    p_string in varchar2,
    p_clob in out clob)
    is
    begin
    p_clob := p_string;
    end proc_with_clob_inout_parameter;
    In BPEL I call this procedure. When I only assign a value to the p_string parameters (in a BPEL assign) all is well. When I also assign a value to the p_clob parameter the error occurs:
    <part name="summary">
    <summary>
    file:/ora1/app/oracle/as101.3/bpel/domains/digitaaldossier/tmp/.bpel_janb_inout_1.0_f6908ccf864581b7265c362444e88075.tmp/twee.wsdl
    [ twee_ptt::twee(InputParameters,OutputParameters) ] - WSIF JCA Execute of
    operation 'twee' failed due to: Error while trying to prepare and execute
    an API.
    An error occurred while preparing and executing the
    JANB.PROC_WITH_CLOB_PARAMETER2 API. Cause: java.sql.SQLException: Parameter
    Type Conflict [Caused by: Parameter Type Conflict]
    ; nested exception is:
    ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the
    JANB.PROC_WITH_CLOB_INOUT_PARAMETER API. Cause: java.sql.SQLException: Parameter
    Type Conflict [Caused by: Parameter Type Conflict]
    Check to ensure that the API is defined in the database and that the
    parameters match the signature of the API. Contact oracle support if error
    is not fixable.
    </summary>
    </part>
    In BPEL 10.1.2.0 this isn't a problem. I tested it against a 10.2.0.1 and a 10.2.0.2 database and in both situations I get the error with BPEL 10.1.3.1 and no error with BPEL 10.1.2.0
    it appears to be a problem in the database adapter...
    anyone with the same problems and/or a solution?

    Not of any use to you, but we had exactly the same problem on Friday when we applied AS 10.1.2.2 Patchset on top of BPEL 10.1.2.0.2.
    The clob in our pl/sql proc wan't declared as in/out but for some reasons JDeveloper had created a clob on the Output Parameter type in the db partner link xsd. I removed this and it worked. This code had been untouched , and working fine, for months.
    I'll be raising an SR today.
    Rob J

  • Database Relation issue

    Guys,
    I have got one more problem.
    My database relation detail
    Table.field   Link Table.field
    Project.JobID ==> Project_cost.JobID
    Project.JobID ==> ItempurchasesLines.JobID
    Project_cost.AccountNumber ==> Accounts.AccountNumber
    Project_cost.AccountID ==> Item.ExpensesAccountID
    Item.ItemID ==> ItempurchasesLines.ItemID
    What I want now is, I want a full list of accountID in my report from Project_cost table regardless of any record available in ItempurchaseLines. ItempurchaseLines table  is linked through itemID field with Item table and Item table is linked with project_cost through field Project_cost.AccountID ==> Item.ExpensesAccountID.
    Thanks
    mithani

    now no error but still not retrieving data from tabel ItemPurchaseLines.
    below is an updated sql query
    MS Access DB
    SELECT `PROJECT`.`JobID`, `PROJECT`.`PROJECT_NAME`
    FROM   `PROJECT` `PROJECT`
    ORDER BY `PROJECT`.`JobID`
    EXTERNAL JOIN PROJECT.JobID={?FACADE: ItemPurchaseLines.JobID} AND PROJECT.JobID={?MS Access DB: Project_cost.JobID}
    FACADE
    SELECT "ItemPurchaseLines"."TaxExclusiveTotal", "ItemPurchaseLines"."JobID"
    FROM   "SCHEMA"."MYOB"."ItemPurchaseLines" "ItemPurchaseLines"
    WHERE  "ItemPurchaseLines"."JobID"={?MS Access DB: PROJECT.JobID}
    MS Access DB
    SELECT `Project_cost`.`Type`, `Project_cost`.`EXPENSES_CODE_NUM`, `Project_cost`.`EXPENSES_Code`, `Project_cost`.`Description`, `Project_cost`.`Rate`, `Project_cost`.`AccountNumber`, `Project_cost`.`JobID`
    FROM   `Project_cost` `Project_cost`
    WHERE  `Project_cost`.`JobID`={?MS Access DB: PROJECT.JobID}
    ORDER BY `Project_cost`.`Type`, `Project_cost`.`EXPENSES_CODE_NUM`
    EXTERNAL JOIN Project_cost.AccountNumber={?FACADE: Accounts.AccountNumber}
    FACADE
    SELECT "Accounts"."AccountNumber"
    FROM   "SCHEMA"."MYOB"."Accounts" "Accounts"
    WHERE  "Accounts"."AccountNumber"={?MS Access DB: Project_cost.AccountNumber}
    ItempurchaseLines table contains all purchase transaction.
    My report would look something like that:
    Group header 1 "JobID" from Project table
    Group header 2 "Type"  from Project_cost table
    Group header 3 "Project_cost.Expenses_code--Project_cost.description--
    ItemPurchaseLines.TaxExclusiveTotal etc"
    now I can see all expenses code, description but still not getting any purchases from ItemPurchaseLines.
    Regards
    Mithani
    Edited by: mithani2747 on Sep 4, 2009 6:00 AM
    Edited by: mithani2747 on Sep 4, 2009 6:01 AM

  • Desktop with cross bars and very slow computer

    I have a iMac OSX 10.9.2 (13C64) early 2009 that became very slow to open and to shut and to process the adobe software. Also the screen of my mac is with cross bars. Already I cleaned with mackeeper, already I defrag, I noticed with the disk utility and all is well. I have over 400 GB available.
    Please help

    Sounds like your display or GPU is failing? Back up any data you deem important and book an appointment at your nearest Apple Store or Apple Authorised Repair Centre asap. I would also get rid of mackeeper (and anything else that purports to do the same) plus whatever you've used to 'defrag' your mac. They ar no use to you at all and in reality most 'helper' applications just create problems as well as slowing your mac down.
    Now what question do you have regarding OS X Lion Server?

  • Installing Siebel with sample database

    Hi,
    I am totally new to Siebel. So I want knoe through Siebel sample database.In one of the forum it was mentioned that I will get sample database in Siebel tools on https://edelivery.oracle.com/.So, I have downloaded Sibel Tools from 8.1.1 from the same site. But there I have all JAR files. I don't know What I have to do with that. Can anyone help me with this? Right now I am going through training but to practice or understand I need Siebel Application with sample database. Please help me with this
    .

    Thanks Joseph for the help..
    I am doing the same but I encountered one more problem now. I tried to search on other forums but no solution.
    The 3rd step in the Siebel Client installation - "step to select a language pack"
    The installation wizard peforms the product-sepcific prerequisite checks and when i click on continue i get the below error msg
    " No translations found for hiException_desc"
    When i click on contiune to use the defualt value and go on, it takes me to step 3 "Select Languages"
    I do not see a list of available language.
    When i select Next, it throws a msg
    'Select atleast one language and English is compulsory for Siebel business application client to work"
    Do u know the solution for this??

  • Can Oracle APEX work with other databases?

    Can Oracle APEX work with other databases like Microsoft SQL Server or Sybase... etc.?

    Though, the Generic Connectivity does not cost extra.
    It doesn't have all the features of Transparent Gateway, but if you can access the foreign database with an ODBC driver,
    it's an easy way to integrate multiple databases.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/gencon.htm#HETER007
    In one application, I pull data into materialized views from MS Access and Lotus Notes.
    Since Apex lives in an Oracle database, it inherits all of the functionality of Oracle.
    There's not much it can't do.

  • Relating a Request Number with its Process chain

    Hi experts!
    Do you know if there is anyway (with tables) of relating a "Request number" with its Process chain?
    Thank you very much in advance!

    Hello
    I guess there is no direct way, but you can get it by following:
    1) From table RSREQDONE, you can get infopak name by giving a request no.
    2) Then from table RSPCCHAIN, For Type = 'LOADING', VARIANTE field give the Infopackage name and it will give u the PC.
    Regards,
    Shashank

  • Need Help with deployment of EJB3 entities

    I have a JDEVELOPER application with 3 projects Model, Utility, and View Controller. I am having a problem getting this app to deploy and I am really getting confused with all the files that some say should be in the deployment like ejb-jar.xml and application.xml or persistence.xml. Could someone please point me to a site that details how to deploy an EJB3 application using entities with annotation to an Oracle 10.1.3 Application Server. I guess I am getting really confused because of the flux of EJB3, but I really like the way EJB3 works I am just having a fit trying to deploy. Thanks for reading this post and any help you can provide. Also all the examples that Oracle have are using ant to deploy, but with my company I cannot use ant because it is not an approved standard.
    Thanks,
    Thom

    tspragg,
    Here are the results of an Internet search I did:
    (Hope it helps.)
    http://tinyurl.com/p6eae
    Good Luck,
    Avi.

  • I have never been able to use the Macmail feature.  Running OSX 10.4.11, and the problems appear to be related to the fact that I originally registered my computer with apple, I subsequently changed my e-mail address.  Have since upgraded the e-mail addre

    I have never been able to use the Macmail feature.  Running OSX 10.4.11, and the problems appear to be related to the fact that when I originally registered my computer with apple, I used an old e-mail address which is now defunct.  Have since upgraded the e-mail address in account manger, but it still locks me out and rejects my user name and password when I try to log in.  It seems it established an account for me automatically when I first fired the beast up, but now the Macmail program is uncooperative with me.  Any assistance would be much appreciated, Thanks

    Hi rbcjoker76, and a warm welcome to the forums!
    Sounds like some needed System Fonts wre replaced by bad ones. Y also have Font Book in Applications for validating fonts & checking for duplicates.
    Required Fonts from 10.3, much the same in 10.4...
    http://support.apple.com/kb/HT2444?viewlocale=en_US
    You may have to get Pacifist...
    http://www.charlessoft.com/
    then intall the Fonts what you need from your Install Disk.
    Or do a relatively painless Archive & Install, which gives you a new/old OS, but can preserve all your files, pics, music, settings, etc., as long as you have plenty of free disk space and no Disk corruption, and is relatively quick & painless...
    http://docs.info.apple.com/article.html?artnum=107120
    Just be sure to select Preserve Users & Settings.

  • Problem with logical database ADA

    I am trying to create query with asset values and master data fields but when trying to use logical database ADA I am getting error  No component exists with the name "VALUE0". .InfoSet Cannot be Used for InfoSet Query.
    Does anyone have an idea about such problem?

    Hi,
    The message "No component exists with the name "VALUE0"" created when  you omit to edit the field group only happens if no field is assigned to  a fieldgroup, it should not appear if you add at least one field to a  field group.                                        
    regards Bernhard

  • Severe problem with 'Drill to Related' using drill icon

    Hi
    I have a severe problem with 'Drill to Related' in Discoverer Plus (10.1.2.54.25) using the drill icon of a worksheet:
    1. Though existing no items to drill to are shown in the context menu (or pop-up list), instead it says just 'Drill to Related...'
    2. Clicking on menue item 'Drill to Related...' results in 50% processor load (permanent) and no further update of the browser window (IE 7.0.5730.11) containig Discoverer Plus. There is no recovery of that state within about 20 minutes.
    This behaviour is both highly reproducible and annoying.
    When using the drill dialog instead of the icon the expected items are shown and 'Drill to Related' works fine. Although that is a workaround I don't think it acceptable to tell the end-users to use it.
    I searched metalink for a hint but couldn't find anything.
    Can anyone help?
    Franziska

    Hi S
    This seems to be a bug that was fixed earlier since we didn't experience it having applied cumulative patch 3 earlier.
    Something might be said about your problem in Metalink
    Doc ID: Note:422575.1
    Subject: Drilling With Discoverer Viewer 10g (10.1.2) Using Internet Explorer 7 (IE7) Fails With Javascript Error
    We still had to apply the patch for the bug I mentioned earlier in this thread in order to be able to see and select an item to drill to. Unfortunately the problem with the processor load up to 50% and nothing happening is still there.
    By the way IE 7 is certified now according to the Oracle certification information.
    Hope this helps
    Franziska

  • Problem when creating Database with Database, OS and hardware Configuraiton

    Problem when creating Database:
    There are two problems, which I faced during creation of database. When creating database with Oracle Database Assistant. One when creating pre tuned database from CD. And second when creating customized database giving options your self.
    Problem # 1:
    When creating pre tuned database from CD. The process of creating Database is 90 % complete and is at step # 3 Initializing Database. It gives error ORA-03113: end-of-file on communication channel.
    I searched following oracle help for this problem.
    ORA-03113: end-of-file on communication channel
    Cause: An unexpected end-of-file was processed on the communication channel. The problem could not be handled by the Net8, two-task software. This message could occur if the shadow two-task process associated with a Net8 connect has terminated abnormally, or if there is a physical failure of the interprocess communication vehicle, that is, the network or server machine went down.
    Action: If this message occurs during a connection attempt, check the setup files for the appropriate Net8 driver and confirm Net8 software is correctly installed on the server. If the message occurs after a connection is well established, and the error is not due to a physical failure, check if a trace file was generated on the server at failure time. Existence of a trace file may suggest an Oracle internal error that requires the assistance of customer support.
    Conclusion:
    What I conceive from this problem and the help available is that, I have to install NET8 again. But I am not sure about the solution, please tell me whether I am rite or not.
    Problem # 2:
    When creating database with custom option. The process of creating Database is 2 % complete and is at step # 2 Creating Database Files. It gives error ORA-12571: TNS:packet writer failure.
    I searched following oracle help for this problem.
    ORA-12571: TNS:packet writer failure
    Cause: An error occurred during a data send.
    Action: Not normally visible to the user. For further details, turn on tracing and re-execute the operation. If error persists, contact Worldwide Customer Support.
    Conclusion:
    What I conceive from this problem and the help available is that, I have to install NET8 again. But I am not sure about the solution, please tell me whether I am rite or not.
    Software & Hardware Configuration are as follow:
    Software:
    Database
    Oracle 8.1.7.0.0 (Oracle8i)
    Operating System
    Microsoft Windows 2000
    5.00.2195
    Service Pack 2
    Hardware:
    x86 Family 6 Model 8 stepping
    10
    AT/AT COMPITABLE
    260,400 KB RAM

    user563502 wrote:
    I am working on Solaris 8. What is Alert_SID.log? where can I find it?
    ThanksFor the responsible of the upgrade of Oracle database, not even know what Alert log is?
    to be honest with you, this is not your work.

  • Problem with Oracle database Express Edition (Linux)

    I installed oracle-xe on my machine (ArchLinux x64), and all worked fine before a  reboot. After it, I still can connnect to the db with sqlplus, but can't connect to apex (http://localhost:8080/apex/f?p=4950) and can't get a connection using ojdbc:
    Exception in thread "main" java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection.
    I tried to reinstall the db several times, but the result was always the same: all is ok only before rebooting. I'm a newer with Oracle database and can't find a solution. Could you give me some tip about it?

    The problem was solved by changing permissions for log directory :
    sudo chmod -R 777 /usr/lib/oracle/product/11.2.0/xe/log

Maybe you are looking for