Oracle troubles with multiple schemas in same database

We have several different users set up with individual schemas in the
same Oracle database. We run into trouble when more than one user tries
to use Kodo in their local schema. Things go fine for User A, but when
the User B tries to run the schematool on their own Oracle schema, they
get this nonsense:
javax.jdo.JDOFatalDataStoreException: An error occurred while connecting
to the data store.
NestedThrowables:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT
DISTINCT JDO_SCHEMA_METADATAX.CLASSNAMEX FROM JDO_SCHEMA_METADATAX]
ORA-00942: table or view does not exist
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.<init>(SchemaTool.java:99)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1114)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1083)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1073)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1064)
If the User A drops all the tables from their schema, then things go
fine for User B ... but then User A will have the same problem when they
try to run the schematool.
It is our suspicion that Kodo is actually selecting the metadata all of
the tables in **everybody's** schemas, and thus erroneously thinking
that jdo_schema_medatax already exists. It really ought to restrict
itself to the schema it's actually connected to.
If our theory is correct, it would explain why Kodo is so incredibly,
horribly, painfully slow to connect to our Oracle database -- we have
dozens of schemas in there, many of which have hundreds of tables.
Is 2.3.0 addressing this problem?
Paul

Paul,
Are you using the 'schema-name' system preference setting for each user?
Oracle's mechanism for selecting database metadata requires that the
appropriate schema name be explicitly when more than one schemas are used.
See the database setup section of our documentation for more information.
-Patrick
On 7/3/02 3:50 PM, "Paul Cantrell" <[email protected]> wrote:
We have several different users set up with individual schemas in the
same Oracle database. We run into trouble when more than one user tries
to use Kodo in their local schema. Things go fine for User A, but when
the User B tries to run the schematool on their own Oracle schema, they
get this nonsense:
javax.jdo.JDOFatalDataStoreException: An error occurred while connecting
to the data store.
NestedThrowables:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT
DISTINCT JDO_SCHEMA_METADATAX.CLASSNAMEX FROM JDO_SCHEMA_METADATAX]
ORA-00942: table or view does not exist
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.<init>(SchemaTool.java:99)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1114)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1083)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1073)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1064)
If the User A drops all the tables from their schema, then things go
fine for User B ... but then User A will have the same problem when they
try to run the schematool.
It is our suspicion that Kodo is actually selecting the metadata all of
the tables in **everybody's** schemas, and thus erroneously thinking
that jdo_schema_medatax already exists. It really ought to restrict
itself to the schema it's actually connected to.
If our theory is correct, it would explain why Kodo is so incredibly,
horribly, painfully slow to connect to our Oracle database -- we have
dozens of schemas in there, many of which have hundreds of tables.
Is 2.3.0 addressing this problem?
Paul
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • Help With Multiple Schemas In Multiple Environments

    Dear Oracle Forum:
    We have a bit of controversy around the office and I was hoping we could get some expert input to get us on the right track.
    For the purposes of this discussion, we have two machines, development and production. Currently, on each machine, we have one database with multiple schemas, say, one for sales data and another for inventory. The sales data has maybe 200 tables and the inventory has another 50. About 12 times a year, once a month, we have a release and move code from dev to prod. The database is accessed by several hundred Pro*C and Pro*Cobol programs for online transaction processing.
    The problem comes up when we need to have multiple development environments. If I need to work on something for May that requires the customer address field to be 50 characters and somebody else is working on something for July that requires the customer address field to be 100 characters, we can’t both function in the same schema. We have a method of configuring running programs to attach to a given schema/database. Currently, everything connects to the same place. We were told that we should not have the programs running as the owners of the schemas for some reason so we set up additional users. The SALES schema is accessed with the connect string: SALES_USER/[email protected]. (I don’t know where we got dot world from but that is not the current discussion.)
    One of the guys said that we should have 12 copies of the database running, which is kind of painful to think about in my opinion. Oracle is not a lightweight product and there are any number of ancillary processes that would have to be duplicated 12 times.
    My recommendation is that we have 12 schemas each for sales and inventory with 12 users each to access them. We would have something like JAN_SALES_USER, FEB_SALES_USER, etc. Each user would have synonyms set up for each of the tables it is interested in. When my program connects as MAY_SALES_USER, I could select from the customer table and I would get my 50 character address field. When the other user connects as JUL_SALES_USER, he would get his 100 character address field. Both of us would not know anything different.
    Another idea that came up is to have a logon trigger that would set the current schema for that user to the appropriate base schema. When JUL_SALES_USER logs in, the current schema would be set to JUL_SALES, etc. This would simplify things by allowing us to avoid having something like 2400 synonyms to maintain (which could be automated without too much difficulty) but it would complicate things by requiring a trigger.
    There are probably other ways to go about this we have not considered as yet. Any input you can give will be appreciated.
    Regards,
    /Bob Bryan

    Hans Forbrich wrote:
    I'd rather see you with 12 schemas than with 12 databases. Unless you have lots of CPUs to spare ... and lots of cash to pay for those extra CPU licenses.
    Then again, I'd take it one step further and ask to investigate the base design. There should be little reason to change the schema based on time. Indeed, from what little I know of your app, I'd have to ask whether adding a 'date' column and appropriate views or properly coded SQL statements might simplify things. Interesting. If we were to have one big Customer table with views for each month, how would we handle the case where the May people have to see 50 character address and July have to see a 100 character address field. I guess we could have MAY_ADDRESS VARCHAR2(50) and JULY_ADDRESS VARCHAR2(100) and take care to make sure that people connecting as May can only see the May columns, etc. This is simpler than multiple schemas?
    I may have overly simplified things in my effort to get something down that would not require too much explanation. The big thing is that multiple people are doing development and they have to be independent of each other. If we were to drop a column for July, the May people will have trouble compiling if we don’t keep things separate. It is not a case of making the data available. The data in development is something we cook up to allow us to test. The other part is the code we compile now will be released to production one of these times. In production, there is only a need for one database.
    We are moving from another database product where multiple databases are effectively different sets of files. We have lots of disk space so multiple databases were no problem. Oracle is such a powerful product; I can’t believe there is not some way to set up something similar.

  • How to create multiple instance on same database

    Hi ,
    I would like to know how to create multiple instance on same database . I know that some people use database configuration assistant to do this but i could not figure out how they did it.
    Any how if some one can help me with this and can give me links of this it would be great help for me.
    Thank you for reading my problem and helping me !
    Amil
    please if possible mail me on [email protected]

    How to create multiple instance?????Do you mean multiple instances on the same database, or multiple databases on the same machine ?
    I m new to this field....
    Willin to learn a lot about oracle....Then it wouldn't be bad reading a bit of Database Concepts

  • Oracle Portal w/ Multiple Schemas

    I posted this in the Architecture forums, but it looks like this forum may be better or yield more results for what I'm looking for.
    We are just about to launch a Portal initiatve and are looking for best practices for implementing a single instance of Oracle Portal that interacts with multiple schemas. Has anyone here done this or know where I can find this type of info? I have a few questions about how this works, how scalable it is, how security is handled, yada yada yada. --Kind Regards, Derek.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi jlubbers. Thanks for your reply.
    After some additional disucssions with our DBAs, I think I may have left a misleading post in respect to schemas. Our company acts as an application service provider to some degree. The way the databases are setup, each of our client agencies have their data stored completely separately from other agencies. The table structures are almost exactly identical (and can be considered identical for the scope of this discussion) and will never be merged together.
    We want to leverage Oracle Portal as much as we can while also getting as much reuse as we can. Each time we get data from the database, we want the datasource to be dynamic based on the usergroup.
    One constraint that we have is that the physical database connection must be connected as the user that's logged into the portal, so I think we have to do some type of User Proxy, but we're not 100% sure how to do that and what that means for all of our java applications.
    I'll check out your other posts and see if there is anything in there that may help. Thanks for taking the time. --Derek                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Having trouble with multiple user accounts

    I am still getting used to Aperture and am having trouble with multiple user accounts on my Mac.
    My wife and I have separate accounts on our Mac, and both have Administrator rights. We keep our Aperture library in the "Shared" folder, and I have made sure that both she and I have read/write capabilities on the Aperture library.
    However, she has difficulty creating new projects, saving data, and viewing thumbnails in Aperture. Whenever she creates a project, it does not save into Aperture, and cannot be viewed by any user. In addition, changes she makes to photos do not save. She also cannot view thumbnails of any photos (although she can see the photos in the viewer).
    Are there any changes I need to make to the user accounts so she can have all these capabilities?
    Many Thanks.

    Rather than having the Aperture library reside in the shared folder, keep it within a folder residing at the top level of your mac, eg.
    I actually keep mine on one of my RAID disks.
    Tony

  • Multiple connection of same database

    Hi
    In my program I need to have multiple connections of same database and it must execute different procedures parallely . Can any one suggest how to do it.
    Thanks in advance

    Threads

  • ITunes is totally frozen with multiple paints of same screen within itself. Also incredibly slow. Are there alternative players I can use with my iPhone, or must I use iTunes with my iPhone? iTunes is effectively unusably slow.

    iTunes is totally frozen with multiple paints of same screen within itself. Also incredibly slow. Are there alternative players I can use with my iPhone, or must I use iTunes with my iPhone? iTunes is effectively unusably slow. I am using Windows 7.
    I only use it once every few weeks and each time it is more disappointing than the previous time. does it run better on a Mac than Windows? Is this app really the future of media? Really?

    I am using iTunes 11.1.3 -- The most recent version. When I select something from my albums it just freezes. I have restarted it a few times with same result.

  • How to work with multiple users accessing one database

    I am a newbie in oracle.
    I want to give access to my oracle database for more users.
    I created oracle connection with c# project. The application allow to user to insert data to a database table. Now I want to give access to the different users with a login. Is there any way to give access other users to the same database using their username and passwords?
    I'm confused. Please help.
    thank you.

    In the database, set up your data schema with data tables, views, and stored procedures to support your application.
    That schema owner should only be a trusted data administration person.  Let's call that schema APP_DATA.
    Then you set up another schema called APP_DATA_USERS with no privileges and no data.
    Then you create an Oracle ROLE object called APP_DATA_ROLE.
    You grant the app_data_role to the app_data_user account.
    You then grant object permissions in the APP_DATA_ROLE that you want the app_data_user to have for the app_data data objects, like Create SESSION, SELECT on TABLE X. or SELECT, INSERT, UPDATE on TABLE Y.
    Now the APP_DATA_USERS only has specific permissions needed on specific app_data data objects that you control by the app_data_role.
    Then your application only opens connections to Oracle via the single APP_DATA_USERS account
    which is constrained by the APP_DATA_ROLE permissions on what can be done in the data schema APP_DATA.
    in your web or app config you create the connection information for the single app_data_user account.
    Putting the database aside, you now create the application layer with login controls so many users can use the application.
    But when they need data, the application only makes a connection to the single APP_DATA_USERS account
    Oracle ODP.NET auto handles the multiple session connections by the multiple application users to the single APP_DATA_USERS account.
    In summary the multiuser access is controlled by the application
    all making connections (sessions) with a single, limited privilege app_data_user account on the database side.

  • Commit handling with Different sessions on same Database

    Hi,
    We have a requirement, where-in we have two modules working on the same database but different schemas.
    In this case, also the oracle session for both the module is also different.
    We want to ensure a two phase commit logic in this scenario, wherein the integrity of the data commit is maintained across sessions.
    How can I achieve the same, Because I have heard two phase commit works of Distributed database using DTC(Distributed transaction co-ordinator.
    Regards,
    Uravesh

    urvesh wrote:
    Hi,
    We have a requirement, where-in we have two modules working on the same database but different schemas.
    In this case, also the oracle session for both the module is also different.
    We want to ensure a two phase commit logic in this scenario, wherein the integrity of the data commit is maintained across sessions.
    How can I achieve the same, Because I have heard two phase commit works of Distributed database using DTC(Distributed transaction co-ordinator.
    Why do you think that the integrity of the data would not be preserved with the commit functionality ? What do you think two phase-commit does?
    Aman....

  • Conn generating link ddl but schema in same database

    i have a connector which associates 2 locations in the same database. when i deploy the connector, it generates link ddl. when i deploy my mapping it uses that link. i can't get the mapping to generate schema.table_name.
    any help would be appreciated.
    i've searched the forum and gone through the docs. i don't know what i'm doing wrong.

    Chandra,
    Such document is always one and the same with all Oracle products - a User Guide that ships with a product and is available online http://www.oracle.com/technology/documentation/warehouse.html The User Guide is searchable and indexed. Look up "register locations" and you'll find "Registering Locations" section in Chapter 13 (of OWB 10g User Guide) with step-by-step instructions.
    Nikolai Rochnik

  • Script to Analyze multiple schemas at same time

    Hi Guys,
    I'm looking for a script by which I can analyze (estimate 25%) multiple schemas (In Oracle 9i Database) at same time. I know we can use dbms_utility but do not know, how to use for multiple schemas (around 60 schemas). I appreciate your cooperation.
    Thanks in advance.
    Regards,
    Sanjeev

    Hi Syed,
    Thanks for response,
    can u tell me how I can analyze multiple schema by using dbms_stats at same time. I would appriciate if you can send any script for me for same.
    Thanks,
    Sanjeev
    [email protected]

  • Multiple copies of same database on a 2 node RAC server - How to merge ?

    I currently have multiple copies of the same database running on a 2 node Rac system. I am looking for a way to combine them into 1 large database but keeping the data separate.
    The databases are copies of production for testing, development and a yearly "historical" databases .
    All the databases are created from production, and generally have the same schema's , tables, procedures, etc however may be different versions and need to be.
    Is There a way to use one large database and logically split all the different versions of the same objects into their own space in one database ? The structure cannot change as the database is for a 3rd party's Forms application the relies on the objects not changing names etc.
    Ideally I am looking for a solution that will allow the forms application to connect to "test" and "historical" copies of our production database separately in the same database container.
    Thanks for any direction.

    I currently have multiple copies of the same database running on a 2 node Rac system. I am looking for a way to combine them into 1 large database but keeping the data separate.
    The databases are copies of production for testing, development and a yearly "historical" databases .
    All the databases are created from production, and generally have the same schema's , tables, procedures, etc however may be different versions and need to be.
    Is There a way to use one large database and logically split all the different versions of the same objects into their own space in one database ? The structure cannot change as the database is for a 3rd party's Forms application the relies on the objects not changing names etc.
    Ideally I am looking for a solution that will allow the forms application to connect to "test" and "historical" copies of our production database separately in the same database container.
    Thanks for any direction.

  • One application with Multiple schemas- common application frame work

    Hi All,
    I am trying setup a common application frame work in apex. Please help me.
    How to achieve this.
    Creation of one application attached to different schemas at run time. So that my application maintaince is going to be easy instated of creating copies of same application.
    More details:
    1. I have one application with 100 pages pointing to a schema dev_common in one workspace APP_COMMON. I have 50 schemas with same structure of dev_common schema with different set of data ( because of large amount of data).
    So I want to create one application attached to different schemas.
    2. And another thing is I have 100 users, the user can work on 1 or multiple schemas ( I mean same application with different schemas attached)
    Any help much appreciated.
    Thanks,

    Thank you for the reply.
    >> b) I think you have to give access rights for the dev_common and app_common to all users.
    Dev_common schema is a kind of placeholder. I have 50 schemas same as dev_common because of different business requirements but the front end is same for all 50 schemas. How can we create one application used for 50 schemas instead of creating 50 applications and 50 workspaces.
    Please help me.

  • How to develope application with multiple schema

    Hi,
    In my application, there is 3 schema, forms are from different schema, but the database is one. How should I manage it, When i open the form with different schema I am not getting the expected result,
    I am using Oracle 10g Forms & Database
    Thanks in advance
    Rizly

    hi,
    what database-user is the user connected with, when executing the forms ? Is it one of the three schemaowners or has each logical user his own database-user?
    About your db-objects:
    I would create 3 roles, one for each schema, and grant the needed privileges for one schema to the according role
    Example:
    CREATE ROLE RL_SCHEMA1;
    GRANT SELECT, INSERT, UPDATE, DELETE ON SCHEMA1.TABLE RO RL_SCHEMA1;
    ...Then you can grant the roles to the databaseuser you are connected with at runtime.
    If you use named users (each logical user has it's own database-user) then you assign each user only those roles he needs.

  • Validating with multiple schemas

    I am setting the schama attribute as follow:
    String schemaSource = "C:\\Documents and Settings\\ayache\\My Documents\\C5 XML\\schema\\searhRequest.xsd";
                   String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource";
                   builderFactory.setAttribute(JAXP_SCHEMA_SOURCE, new File(schemaSource));searchRequest.xsd contains include statement: it referes to another schema. When i try to validate the xml document using the scheam above error is thrown stating that the elements that are defined in the second schema(BookingProfile.xsd) are not recognised or can't be resolved.
    Is there a way to set multiple schemas?
    Your help is much appreciated.

    I figured out my problem in case anyone else is having trouble..
    In the xml document that you need to refer to:
    xmlns:xsd="http://www.w3.org/2000/10/XMLSchema-instance that is the namespace
    supported by xerces 1.3.1.
    Whew!
    "Karen Schaper" <[email protected]> wrote:
    >
    Has anyone been successful at validating xml with a Schema running weblogic
    6.1
    sp2?
    Here is a snippet of code...
    SAXParserFactory objFactory = SAXParserFactory.newInstance();
    objFactory.setValidating("true");
    objFactory.setNamespaceAware("true");
    objFactory.setFeature("http://apache.org/xml/features/validation/schema",
    "true");
    objXMLInputParser.parse(new InputSource(new StringReader(XMLDocument)),
    A_HANDLER);
    When my xml code runs through the parser I get an error for each element
    saying
    the element type is not declared in the dtd or schema.
    Since weblogic 6.1 runs with 1.3.1 Xerces parser. Does it support xml
    validation
    with a Schema. From what I've read it seems that it does.
    Any help or insight would be appreciated.
    Thanks
    Karen

Maybe you are looking for

  • How to enter a floating value in a custom table.

    hello guys, I have created a custom table, the table has a field of type fltp(floating type) now when i create a maintanence genrator, this field is not displayed in the maintenance generator screen. Can any one suggest me what is the reason ? also h

  • [solved] Kill process if it exceeds X of virtual memory

    I am using checkgmail and it has a serious memoryleak problem. After few hours of running, its memory usage goes from initial 50M, to 500M, to 2000M, and does not stop there. So I am trying to have it killed and restarted if it exceeds, say, 200M. Wh

  • Synchronize macbook and imac automatically ?

    Is it possible to synchronize all my data between my macbook and my imac automatically ? By icould or any thing esle ?

  • Migrating subscribers from Unity 4.2 to Unity 7.0

    I am upgrading my Exchange 2003 environment to Exchange 2010. I have Unity 4.2 with about 340 subscribers integrated into Exchange 2003. I have successfully installed Clean install of Unity 7.02.ES with Exchange 2010 in my lab according to the recent

  • Generating key pair on PKCS#11token and save it there

    Hello, again i'm completely lost in this PKCS11 jungle. What i want to do: Generating key pair on crypto pkcs11 token and store it there. In the moment i've tried eg: sun.security.pkcs11.SunPKCS11 p = new sun.security.pkcs11.SunPKCS11(configName); Se