Connecting to multiple schemas

am trying to connect to multiple oracle schemas on the same database using a 10.1.3 version of datasources.xml file. Has any one done this. If yes, can you please post an example.

I tried it but the application behaviour is weird. For example when a save a record, the save data is not displayed. Some times old data is displayed

Similar Messages

  • Connecting to multiple schemas using datasources file

    I am trying to connect to multiple oracle schemas on the same database using a 10.1.3 version of datasources.xml file. Has any one done this. If yes, can you please post an example.

    I am trying to connect to multiple oracle schemas on the same database using a 10.1.3 version of datasources.xml file. Has any one done this. If yes, can you please post an example.

  • Multiple JNDI connections and connecting to multiple schemas

    Currently I have some code that makes a connection to a specific schema in the oracle database.
    I need to somehow connect to more than one schema and do some resultset processing on tables in two different schemas.
    How can I do I establish the connection to two schemas with JNDI?
    Is this possible?
    Thanks.

    have u looked at XA datasources and distributed transactions

  • Connecting to multiple schemas and resultset

    I am trying to connect to two different schemas in oracle.
    I want to join on tables from two different schemas and use resultset.
    Is this possible?
    Thanks.

    Example: schema: billercenter, tablename:
    collectinfo_desc
    schema: ecxdev, tablename: members
    In oracle you have to login to each of these schemas
    separately.
    I need more detail how to accomplish this.You only need one connection / query to accomplish this. In Oracle, you use GRANTS to control access to tables between schemas.
    If you create a user foo, you could run SQL commands like.
    (as billercenter) grant select on collectinfo_desc to foo;
    (as ecxdev) grant select on members to foo;
    Then, user foo can run a query like this.
    select a.member_id, b.collect_id
    from excdev.members a, billercenter.collectinfo_desc b
    where a.collect_id = b.collect_id;

  • Does Hibernate supports multiple schemas connection ?????

    i want to connect to multiple schema's on the same data base using
    hibernate...
    my hbm.xml looks like this
    <hibernate-mapping>
    <class name="SampleClass" table="SampleTable" schema="DynamicSchema">
    </hibernate-mapping>i need to enter the schema name as parameter
    and change it dynamically....
    is this possible or are there another way in hibernate ???
    thanks in advance and
    some code wouldn't kill any one :)

    To set schema dynamically the org.hibernate.mapping.Table class has a method setSchema(String)
    http://www.hibernate.org/hib_docs/v3/api/org/hibernate/mapping/class-use/Table.html

  • 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.

  • One dump file inport into multiple schema

    Hi,
    I need to import one dumpfile to multiple schema but it's not working.
    impdp "'system/redhat as sysdba'" dumpfile=CTBNGUMB_14022011.dmp logfile=CTBNGUMB_IMP_1602.log directory=DUMP_DIR remap_tablespace=NGUMB_TS:TRUSTWARE01 remap_tablespace=TRUSTWARE:TRUSTWARE01 remap_tablespace=NEXTGENREF:TRUSTWARE01
    remap_schema=CTBNGUMB:CTBNGUMB_1,CTBNGUMB:CTBNGUMB_2,CTBNGUMB:CTBNGUMB_3,CTBNGUMB:CTBNGUMB_4
    how can import one dumpfile to multiple schema?
    Edited by: 819136 on Feb 16, 2011 5:53 AM

    Hi,
    I want same schema import into different schams (users) is it possible?
    OS Version is Linux 4
    Oracle DB Version is : 10.2.0.4
    While importing getting the below error
    [oracle@sos02 10.2.0]$ impdp "'system/redhat as sysdba'" dumpfile=CTBNGUMB_14022011.dmp logfile=CTBNGUMB_IMP_17022011.log directory=DUMP_DIR remap_tablespace=NGUMB_TS:TRUSTWARE01 remap_tablespace=TRUSTWARE:TRUSTWARE01 remap_tablespace=NEXTGENREF:TRUSTWARE01 remap_schema=CTBNGUMB:CTBNGUMB_1 remap_schema=CTBNGUMB:CTBNGUMB_2 remap_schema=CTBNGUMB:CTBNGUMB_3 remap_schema=CTBNGUMB:CTBNGUMB_4
    Import: Release 10.2.0.4.0 - Production on Thursday, 17 February, 2011 9:24:32
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39001: invalid argument value
    ORA-39046: Metadata remap REMAP_SCHEMA has already been specified.

  • Database Design - multiple schemas

    Hi!
    We're currently designing a DB for an AUTHENTICATION SYSTEM where several users from different companies (around 40) will have to be authenticated -- connected to ORACLE. Authentication and faster recovery is important.
    Recovery/Backup
    An issue raise where what if the schema encountered a problem then of course you have to backup the entire data. So we are considering to use multiple schemas.
    One Company = One Schema
    So if one schema is down then other schemas will not be affected and faster to recover.
    Actualy, we're quite hesistant to use multiple schemas because of maintainability -- Managing different schemas and too much burder for our developers.
    Will the idea of having multiple schemas be advantageous to what we want to achieve?
    Is this a good design or any other idea to handle this kind of situation?
    Can Partitioning do the same?
    Thanks a lot

    Advantages of multiple schemas:
    - each schema is entirely separate
    - you can maintain at different times/dates for different companies
    - different schemas could be on different databases / servers
    Disadvantages
    - any 'shared' data may have to be duplicated (but you can always use a shared schema for reference data)
    - yes, you have to maintain each schema separately (but that would be by scripts, and at least they'd be well tested!)
    The dictionary (SYS tables) will be somewhat larger (40 copies of table, index, pl/sql definitions)
    - you'll have 40 identical sets of SQL cached; they all look the same, but relate to different schemas. So you need a bigger SGA.
    Can Partitioning do the same?No - partitioning is a solution to a physical problem, not a security problem
    Is this a good design or any other idea to handle this kind of situation?I think either way works - it depends on size, number of users, are you using a third tier, etc.
    Or, with a single schema, you can use VPD - virtual private database (otherwise known as FGAC - fine grained access control or RLS - row level security).
    See eg http://builder.com.com/5100-6388_14-5062064.html and also Ask Tom http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:70287097313911 which refers to the documents.
    You can also implement a kind of VPD on the cheap by using user defined namespaces and the SYS_CONTEXT function, combined with application logic and clever view definitions.
    HTH
    Regards Nigel

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Multiple schemas

    A project here has the following requirement.
    Want to use multiple schemas in the same database instance with identical structure. That is, from one login we want to determine the schema name to use at runtime and access it using the same mapping descriptors.
    Is this possible with TopLink? Thanks.
    Haiwei

    Hello James
    Thanks for the information. However the setting does not seem to make any difference.
    For ex: I was trying to fo the following.
    The Serversession is created with a connection pool with the Database user TESTUSER. Then I get a clientSession and set the Tablequalifier on this.
    ClientSession clientSession = getServerSession().acquireClientSession();
    clientSession.getLogin().setTableQualifier("SCOTT");
    unitOfWork = clientSession.acquireUnitOfWork();
    Then I expected the SQL statements like
    SELECT empname FROM SCOTT.emp;
    but it is not happening and the queries are generated with out any qulifier to the table name.
    Am I missing any thing? I am using Oracle TopLink - 10g Release 3 (10.1.3.3.0)
    Thanks and Regards
    Potu

  • Connecting to multiple clusters from the same client

    We have a scenario where our cache client (extend client) should be able to connect to multiple clusters. All the clusters use the exact same configuration (same caches, same services etc) but running in different geographical locations. I know that the <remote-addresses> can be used to add multiple addresses but I'm assuming this is provided solely for fault tolerance. So, does the client actually support connecting to multiple clusters at the same time?
    Thanks
    Sijo Mathew

    Hi Sijo,
    Normally to connect a client to multiple clusters you would just define multiple <proxy-scheme> settings in your client configuration file, each one having a different name and pointing to a different cluster. You then map caches to the proxy-scheme for the cluster those caches live on.
    What may confuse things in your case is that you say the different clusters are identical and contain the same caches and services so you may have problems mapping caches on the client to different clusters.
    What are you trying to achieve by doing this if the clusters are all identical?
    JK

  • Multiple Schemas under one user account with XE 10g

    Hi,
    I am using (learning) XE 10g. I would like to know if it is possible to have multiple schemas under one user account and have the schemas logically separated. As of right now, I have three schemas that I am working with, each one under a different user account. This is inconvenient, because I have to logout of one user account and login to another user account simply to be able to work with another schema.
    Thanks

    It isn't possible to have multiple schemas under one database user account. It is of course possible to grant rights to other database users, and or roles, in order to allow access to the tables/data from other accounts. In Oracle there is a one-one mapping between schema and user.
    Niall Litchfield
    http://www.orawin.info/

  • 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 use a connection across multiple request

    What is the idea of using a connection across multiple requests.

    Please give more details. What connections and what requests
    And are you posting on the right forum? (This sounds more like a Networking/servlet question)

  • Multiple Import into Multiple schemas in a single Database server ?

    Is it possible to create a multiple import into multiple schema in a single DB server ?

    Hi,
    Yes, You can do it.. With Multiple Export File..it may cause some Performance issue, so need to check your Server configuration before do that..

Maybe you are looking for

  • Kernel Panic after 10.5.2 update

    After repairing permissions I installed 10.5.2 via Software Update. Got continuos Kernal Panics like this: Tue Feb 19 12:50:16 2008 panic(cpu 6 caller 0x0019D334): "simple lock deadlock detection: lock=0xc1218b0, cpu=6, thread=0xc0857d8"@/SourceCache

  • Updated itunes and now ipad will not sync and itunes locks up?

    i have just updated i tunes and now have issues with itunes and syncing my ipad?

  • Need help on date

    1) In output I am getting the date in the format of MM/DD/YYYY. Instead of that I need in the format of YYYY/MM/DD? Can anybody help for code?

  • Commits after dbms_job submit

    All, a question regarding dbms_job.submit.. Is it necessary to commit after calling dbms_job.submit. My job seems to be running only after calling commit after submit (although i see and entry for that job in user_jobs). Is there any setting that nee

  • Invalid BitmapData Error #2015

    I'm getting an Invalid BitmapData Error #2015 at flash.display::BitmapData$iinit() that points to the line of code below where a BitmapData object is created. I am using this function to create only a few hundred Item objects, each of which is only 1