CMR and multiple databases

Is it possible as when 2 entities are involved in a CMR relationship, one of the entities to take its data from one database and the other one from a different database ?
Regards,
Marius

> So PEQ 200 and 300 access database 1, PEQ 250 accesses database 2, and PEQ 260 accesses database 3.
>
> I only want to know if this is possible and if so how would you set it up.  I do not want to get into any discussion on whether this is the best way to go or not.  Any pointers to OSS notes on the subject are more than welcome.
Simple answer: No.
Long answer:
- Workprocesses don't know anything about "clients". A client is nothing more than an additional field in a table with the client number. So it's not possible to configure them to connect to a certain database using a "client number".
- A client alone has nothing but application data. It has no dictionary (tables, views) and it has no repository (source code) that can be executed
- A SAP system (ABAP) has cross client customizing that would need to be shared somehow, technically not possible since also here the workprocess (which is the lowest unit) does not know whether a table is client dependent or not.
Maybe there is a way to come out of this dilemma - if you tell us, what you (business) requirement is.
Markus

Similar Messages

  • Multiple clients and multiple databases on one system

    Does SAP support having a single system ( Let's call it PEQ for the sake of argument ) having multiple clients ( again, for the sake of argument, call them 200, 250, 260, and 300) allow for each client to have it's own physical database ?
    For example, here is what I would like to have set up:
    PEQ 200 - database 1
    PEQ 250 - database 2
    PEQ 260 - database 3
    PEQ 300 - database 1
    So PEQ 200 and 300 access database 1, PEQ 250 accesses database 2, and PEQ 260 accesses database 3.
    I only want to know if this is possible and if so how would you set it up.  I do not want to get into any discussion on whether this is the best way to go or not.  Any pointers to OSS notes on the subject are more than welcome.
    Thanks;
    Bruce

    > So PEQ 200 and 300 access database 1, PEQ 250 accesses database 2, and PEQ 260 accesses database 3.
    >
    > I only want to know if this is possible and if so how would you set it up.  I do not want to get into any discussion on whether this is the best way to go or not.  Any pointers to OSS notes on the subject are more than welcome.
    Simple answer: No.
    Long answer:
    - Workprocesses don't know anything about "clients". A client is nothing more than an additional field in a table with the client number. So it's not possible to configure them to connect to a certain database using a "client number".
    - A client alone has nothing but application data. It has no dictionary (tables, views) and it has no repository (source code) that can be executed
    - A SAP system (ABAP) has cross client customizing that would need to be shared somehow, technically not possible since also here the workprocess (which is the lowest unit) does not know whether a table is client dependent or not.
    Maybe there is a way to come out of this dilemma - if you tell us, what you (business) requirement is.
    Markus

  • Queston about CMR and corresponded database table.

    Hi:
    For example, If I have a EntityA with cmp field named "EntityA_ID" which is
    the primary key field, and have a EntityB with cmp field named "EntityB_ID" which
    is the primary key field. The relation of EntityA and EntityB is 1:1.
    But the container will create table EntityA_Table and EntityB_Table:
    CREATE TABLE EntityA_Table (ID varchar (50) PRIMARY KEY,_EntityA_EntityB
    varchar(50))
    CREATE TABLE EntityB_Table (ID varchar (50) PRIMARY KEY,_EntityB_EntityA
    varchar(50))
    But the column for relation is as same as the primary key column, the question
    is below:
    Q1: Does the cmp field and cmr field can not be the same database table column?
    If so, it will waste the disk space.
    Q2: which one is more common or more better?
    1)create database table first and create CMP based on table.
    2)create CMP first and create table from EJB descriptor thought EJB container
    when deploying.
    3)create CMP first and create table from EJB descriptor by manual.
    Regards!
    John Lee

    The relation of EntityA and EntityB is 1:1.
    But the container will create table EntityA_Table and EntityB_Table:
    CREATE TABLE EntityA_Table (ID varchar (50) PRIMARYKEY,_EntityA_EntityB
    varchar(50))
    CREATE TABLE EntityB_Table (ID varchar (50) PRIMARYKEY,_EntityB_EntityA
    varchar(50))
    for 1:1 relationships, only one table is required to contain the Foreign
    Key.
    But the column for relation is as same as the primary key column, thequestion
    is below:
    Q1: Does the cmp field and cmr field can not be the same database tablecolumn?
    If so, it will waste the disk space.The primary key cmp field column cannot be the same database column as the
    foreign key cmr field column because the primary key cannot change value
    once it is set whereas the foreign key may change according to how
    relationships are made and broken.
    Q2: which one is more common or more better?
    1)create database table first and create CMP based on table.
    2)create CMP first and create table from EJB descriptor thought EJBcontainer
    when deploying.
    3)create CMP first and create table from EJB descriptor by manual.
    At development time allowing the container to create the tables is
    convenient.
    It is not recommended to rely on this mechanism for production use.
    Generally,
    one wants much more control over the database tables in production than the
    simple things that the container does when it creates 'default' tables.
    -thorick

  • ASM disk group and multiple databases

    Hi,
    I want to create a second database on my RAC cluster. Can the ASM diskgroups I have defined for use with the first database , service the second database or do I have to create another set of ASM diskgroups for the second dataabase?
    Thanks,
    Anne

    ASM does not have any data files. ASM will store data files required for the RDBMS instance only.
    After you have installed the Oracle binaries, (best practice is to have two Oracle homes one for ASM and another for RDBMS), you can create the ASM instances using DBCA and during this process or later can create ASM diskgroups.
    ( e,g disk1G, disk2G,disk3G,disk4G) using the above four you can create ASM DISK GROUPS..

  • CLUSTER_INTERCONNECS, IPMP, and Multiple Databases

    We are looking to build a 2-node 10g RAC cluster on Solaris 10. We will have two databases in this cluster, in addition to the ASM instance. We want to provide HA for this setup using IPMP.
    My understanding is that with Solaris/IPMP, CRS will not be able to validate the health of the secondary private network interface that is identified by the “STANDBY” identifier in ifconfig. This will result in CRS failing to start the Clusterware.
    The solution, according to Metalink note 368464.1 is to delete the private network configuration from the OCR via the use of the oifcfg command and then using the CLUSTER_INTERCONNECTS initialization parameter within the database to point to the physical IP used for the interconnect IPMP group.
    According to the Oracle docs, if you use the CLUSTER_INTERCONNECTS parameter, then only one database in the cluster can use the IP identified by this parameter; that is, I cannot use the same private IP for the CLUSTER_INTERCONNECTS for all databases.
    So if true, with two databases, we are in a bit of a pickle (actually 3, including the ASM instance which will also need to use the interconnect).
    Can anyone validate if this is all true, or do I have something wrong?

    Thanks for the replies and clarification of the CLUSTER_INTERCONNECTS parameter.
    However, I still see that (in that other thread) there seems to be some confusion as per the Metalink note and that JJ's question has not been truly answered.
    My understanding, is that with IPMP, you have have 3 IPs per NIC pair (or IPMP group): a physical IP for the IPMP group, and a test IP for each NIC in the pair.
    When installing Clusterware, you cannot specify the physical IP for the IPMP group, you can only specify the NIC interfaces, and is it their test IPs that will show up in OIFCFG GETIF.
    One of the NICs in the IPMP group will be in standby mode, so when CRS starts up, it cannot validate the health of the standby NIC and will fail. In short, CRS does not KNOW about the physical IP, it only knows the two test IPs. So you don't have HA for the private interconnect using IPMP ( just yet.)
    To get around this, you use OIFCFG to remove both private NICs from OCR, and then use the CLUSTER_INTERCONNECTS parameter to store the physical IP of the IPMP group.
    That way you will still have HA, as the physical IP will failover to one or the other test IP.
    So the question JJ proposed did not get answered: if you remove the private NICs using OIFCFG, how does CRS come up without a private interface in the OCR?
    (Or did I get all of this correct?)

  • Discoverer and multiple databases

    I tried putting out a posting earlier but had a weird messsage so I am trying this again. I apologize if it is duplicated. I am working on a project where we will be installing Discoverer to be used with 20 databases. There are two scenarios we reviewing and I am looking for any further recommendations or advice. The first choice has us creating a Discoverer databases and creating a business area for each separate database via DB Links (most databases are on the same Unix box). The other scenario has us creating an EUL into one of the source databases and exporting the EUL schema and importing it into each of the other 19 databases on a regular basis pending any changes (The databases schemas are suppose to remain identicle). I look forward to any suggestions or advice. Thanks!

    I am using version Oracle 8.1.6. I have not made too much progress on this as I have been trying to research what will be best in the long run. Given my scenario ... it looks as if I will need to create an EUL in each separate database. The reason I might have to do this is because the schemas are all the same yet the data can be different or the same in certain areas. Primary/Unique keys would b a problem along with possible duplication of data. The people using the reports will want up to date reports on the drop of a hat so I would not have time to move to a shared database which may work in your scenario. One last thing I found is that using one database for Discoverer and using DB_LINKS to create your business areas can cause confusing with the naming scheme. If you have a table with the same name in two databases... Discoverer will have the original name of the table with the first business area but the second will have a 1 appended to the end of the name and so on pending how many duplicate names you have in your EUL. The numbers assigned at the end are in order but when you rename your folders .. it does the same thing. So unless you rename folders in the same exact order you create your business areas... you will have various digits at the end of your folder names and nothing consistent. I am still researching and will be happy to share what ever I continue to find out. Thanks for your response.. always nice to get other view points.
    null

  • One Application Multiple Databases

    Hello Friends,
    I am developing application using Struts and Hibernate. I is a web application. Now i want to do one functionality that is some what like..
    Suppose "My_Appp" is my application. I have 1,2,3,4 clients or users. Now I want to maintain seperate database for an individual user. Suppose 1 login's he will be directed to his database and when 2 login's he will be directed to his own database but I want to deploy Only and Only one .war file for all the Users. Means One Interface and Multiple databases. Is this possible using Hibenate and Struts. I anybody know, Please help me?
    Thanks and Regards
    Dagadu Akambe
    Pune, India

    I wouldn't recommend this. Why wouldn't you try to put a 'user' table to the database and let user xy only work on his entities?
    The other solution would be, using different aliases, but imo this has the same nasty effect.
    The only way using more than one database is, imo, if different data is stored in different databases.
    I'm sorry this post isn't answering your questions, but there is surely an easier solution.
    reagards
    slowfly

  • Multiple Database Instances on Single Server and effect of NLS_LANG

    What is the effect of the NLS_LANG registry setting on a Windows server that is to host multiple database instance each created with a different database character set ? The server needs to support data in the following languages : Thai, Chinese Traditional, Chinese Simplified, Vietnamese and Korean. Selecting the Unicode character set(AL32UTF8) is not an option since the application is not Unicode complaint.
    My understanding is that as long as NLS_LANG is set correctly on the client connecting to the particular database instance then the data will be stored correctly - is this correct ?
    What should NLS_LANG be set to on the server if there are multiple oracle instances with different character sets ?

    My question is not in relation to connecting to the database on the server itself but with regards to client connections. What I need to know is what is the effect of the NLS_LANG setting in the registry on a server that has multiple databases each created with a different character set ?
    Say for instance, the server has two databases - one created with the character set ZHS16GBK and the other created with the character set JA16SJIS and NLS_LANG is set to SIMPLIFIED CHINESE_CHINA.ZHS16GBK in the registry on the server. Will Japanese data that is inserted into the database that has character set JA16SJIS be stored correctly when it is inserted from a client with NLS_LANG set to JAPANESE_JAPAN.JA16SJIS even though NLS_LANG is set to SIMPLIFIED CHINESE_CHINA.ZHS16GBK on the server ?

  • Can join queries in Oracle 8i and above span multiple databases

    Hi,
    In Oracle 8i and above, can join queries span multiple databases??
    For eg., I have two databases A and B, and say database A has table A_T and
    database B has table B_T. Assume that both the databases are on the same
    server.
    Can I run a join query from my application using OCI calls that spans across
    tables from multiple databases, namely, A_T and B_T?
    My query probably looks like this - Select * from A.A_T, B.B_T;
    Thank you,
    Sashi

    In Oracle 8i and above, can join queries span multiple databases??
    For eg., I have two databases A and B, and say database A has table A_T and
    database B has table B_T. Assume that both the databases are on the same
    server.
    Can I run a join query from my application using OCI calls that spans across
    tables from multiple databases, namely, A_T and B_T?
    My query probably looks like this - Select * from A.A_T, B.B_T;If you create a database link from database A to B your SQL would look something like this:
    select * from A.A_T, B.B_T@dbB where A.A_T.PK = B.B_T.PK@dbB
    The Oracle manuals should have the information you need on creating a database link.

  • Pros and cons for using single/multiple database

    hi
    could anyone tell me in which senario we can use multiple databases and advantages and disadvantages using multiple databases over single database (with different tablespace)
    thaks in advance
    hari

    depending on your situation you can probably think of different answers. You ask for a 'general' rule of thumb... well, some things that pop into my mind:
    - different usage by applications. e.g. you have a transactional application storing and modifying data and you also want to do analytics. You might want to build a seperate database/datawarehouse that you can use for analytics. by splitting it up you can tune both databases to work best with the application using it.
    - sensitive data and many different users. e.g. the marketing department does not need to have access to the finance department's data (salaries, etc). give each department a separate database and only load the data needed/give access to the data needed.
    Just some thoughts, you can think of more when confronted with a certain situation.
    Lennert

  • Transactions involving multiple caches and a database

    Hi all,
    I'm curious if the following is possible with the transaction support in Coherence.
    I have the need to write data to two caches and a database from within my Tomcat container, and the whole operation must be atomic.
    Example:
    Write to database (this is NOT via a CacheStore)
    Write to cache 1 (uses write-through to database)
    Write to cache 2 (uses write-through to database)
    If any operation fails, the whole transaction needs to rollback. This feels like an XA transaction, but it looks like it won't work like I expect because the cache must be the last resource, but I have two caches. The ordering of operations is not important.
    Thanks,
    Rob

    MagnusE wrote:
    When using write-through there is (as far as I know) no way to get a fully transactional behaviour (assuming you have more than one cache node) since each node is responsible for persisting its own data items (they will each use a separate connection to the database).
    If you on the other hand uses a "cache beside" pattern this can be made transactional using XA. As long as both caches belong to the same cache service they count as a single "last resource"....
    /MagnusYou also need to use the same transaction isolation and concurrency setting for it being the same last resource. Practically you should only have a single CacheAdapter instance enrolled in the same transaction.
    Best regards,
    Robert

  • Multiple database members in a single Grid Row

    Hi All,
    I have created an FR report (9.3x) and getting the below error while trying to run the report via Web Preview.
    5217: Error Processing Results;hasPovDims=1;povXML=<?xml version="1.0"?><datasources><datasource name="FIN QA" dsid="-117fcde3_132fd17f2f6_-771b" allowEdit="1"><dim name="Versions" dimIndex="0" dsName="FIN QA" keyDimName="Versions" memberName="Versions" displayName="Versions: Versions"/><dim name="Scenarios" dimIndex="4" dsName="FIN QA" keyDimName="Scenarios" memberName="Scenarios" displayName="Scenarios: Scenarios"/><dim name="Components" dimIndex="5" dsName="FIN QA" keyDimName="Components" memberName="Components" displayName="Components: Components"/><dim name="Customers" dimIndex="6" dsName="FIN QA" keyDimName="Customers" memberName="Customers" displayName="Customers: Customers"/><dim name="Assets" dimIndex="7" dsName="FIN QA" keyDimName="Assets" memberName="Assets" displayName="Assets: Assets"/></datasource><datasource name="FINDEF QA" dsid="-607fb334_128b79d246e_-7d0a" allowEdit="1"><dim name="Time Periods" dimIndex="1" dsName="FINDEF QA" keyDimName="Time Periods" memberName="Time Periods" displayName="Time Periods: Time Periods"/><dim name="Scenario" dimIndex="3" dsName="FINDEF QA" keyDimName="Scenario" memberName="SC_Actual" displayName="Scenario: SC_Actual"/><dim name="Versions" dimIndex="4" dsName="FINDEF QA" keyDimName="Versions" memberName="VR_Input_Version" displayName="Versions: VR_Input_Version"/><dim name="Customers_Region" dimIndex="6" dsName="FINDEF QA" keyDimName="Customers_Region" memberName="CU_NA" displayName="Customers_Region: CU_NA"/><dim name="Assets" dimIndex="7" dsName="FINDEF QA" keyDimName="Assets" memberName="Assets_NA" displayName="Assets: Assets_NA"/></datasource></datasources>
    In my report I have selected 2 rows where I have selected @descendants of ccounts from one database which is FIN QA and in the second row I have selected @children of Accounts from another database which is FINDEF QA. I am using only ONE GRID here.
    Is it not possibe to run a FR report by select members from multiple databases in a single grid??
    Please have your valuable inputs.

    Yes it possible to retrive data from multiple database using single grid.
    Also there are few limitations namely:
    Database connections must be of the same type (for example, both must be Essbase database connections or both must be Financial Management database connections).
    Mismatched number of dimensions in the database connections may cause retrieval errors.
    For more details refer to this link for details:-
    http://www.oracle.com/technetwork/middleware/financial-management/tutorials/obe-multipledbs-086586.html
    Cheers
    Vikas Naidu

  • Use 1 listener for multiple database in a server

    hi guys,
    just want to check whether this is the right way to configure my Listener.ORA . I am using 1 listener.ora to listen for incoming request connection from remote client. There are multiple databases installed in a server.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora03)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O11R2)
    (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
    (SID_NAME = O11R2)
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O10G)
    (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
    (SID_NAME = O10G)
    )sorry i am reading about it so did not install another database to test out. Just thinking in the line that it mention that the list of SID is refering to the multiple database that is installed in a server and i am using 1 listener.
    Please further advice.

    Shivananda Rao wrote:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora03)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O11R2)
    (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
    (SID_NAME = O11R2)
    (SID_DESC =
    (GLOBAL_DBNAME = O10G)
    (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
    (SID_NAME = O10G)
    )Please use as above. You can have one listener for multiple databases.right right so it the pattern goes like this:
    SID_LIST_LISTENER =
         (SID_LIST =
              (SID_DESC =
              (GLOBAL_DBNAME = AAAA)
              (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
              (SID_NAME = AAAA)
              (SID_DESC =
              (GLOBAL_DBNAME = BBBB)
              (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
              (SID_NAME = BBBB)
         )thanks !

  • Multiple databases in one file: a small snafu

    Hello everyone,
    Opening multiple databases in a single file is an administrative convenience. It is well explained in the manual (see db/docs/ref/am/opensub.html). Normally, there is little difference between databases in their own physical files or grouped together in a single physical file. There is one small sentence in the manual that says the following:
    (begin fragment)
    However, since multiple databases in a file exist in a single physical file, opening two databases in the same file simultaneously requires locking be enabled unless all of the handles are read-only. As the locks for the two databases can only conflict during page allocation, this additional locking is unlikely to affect performance.
    (end fragment).
    I didn't pay attention to it, except the "unlikely to affect performance" part which told me that I wasn't to worry about it. The sun was shining. Life was good.
    And I was wrong. It was one of those "epic bug quests" I had to embark on, only to realise that it may not be a BDB bug, but my carelessnes. Nevertheless, I'm left with an uneasy feeling which I would like to explain here.
    Consider BDB configured as a concurrent data store.
    There are 2 threads. The first thread has the following pseudocode:
    cursor1 = db1->cursor(...)
    while(cursor1->c_get(... DB_NEXT...))
    // 1
    cursor2 = db2->cursor(...)
    while(cursor2->c_get(... DB_NEXT...))
    The second thread does only the following:
    db3->put(...)
    db1, db2 and db3 are all distinct databases. All cursors are read-only (the cursor implicitly used in db3->put is of course a write cursor).
    While the first thread is running, the second thread executes db3->put(...) at "//1".
    Question: what happens?
    Answer 1: if db1, db2 and db3 reside in different physical files, nothing special happens. Everything proceeds as it should.
    Answer 2: if db1, db2 and db3 reside in the same physical file, both threads block "sometimes".
    The "sometimes" used here means "when the put operation in thread 2 needs to allocate a new page".
    Reading the BDB source code is extraordinarily difficult (which says more about my limitations than about the clarity of the code) but here is what happens, as far as I could determine:
    (thread 1) cursor1 needs and acquires a read lock on db1
    (thread 2) db3->put needs a write lock on db2 to allocate a new page. Since db2 is in the same physical file as db1 and thread 1 already has a read lock, thread 2 waits until the read lock is released. Thread 2 blocks.
    (thread 1) cursor 2 needs a read lock on db3. For some reason, BDB detects that the another thread is waiting for a write lock on the physical file, and thread 1 blocks.
    Both threads block waiting on each other to complete.
    I suppose the system is the way it is to avoid starvation, but there you have it: be careful when you're lumping together multiple databases in one file!
    Anyone who can clarify or confirm this is welcome.
    Vincent

    I had experienced a similar problem. I run multiple process. Each one of them starts a transaction that does db->put and db->pget to its own database (which also has a secondary index). When each database is in a separate physical file there is no problem but when I put all databases in a single file the processes start to dead-lock.
    The following combination of options solved the deadlocking problem:
    - use serializable isolation level instead of snapshot, i.e. do not pass DB_TXN_SNAPSHOT to txn_begin
    - do not pass the DB_NO_WAIT option to txn_begin
    - use Btree instead of a Hash
    Hope that helps.

  • Can you have multiple databases on the same LUN in Exchange 2010?

    I'm sure you can but is it possible with exchange 2010 to have multiple databases on the same LUN.  We currently have 8 DB's all writing to their own DB drive and separate log drive so 16 drives in total.  I need to spin a new DB up this week and
    wanted to double check this is possible.  I've looked online and cant find anything that I've seen before that says this is possible.
    Thanks.

    Hi,
    Yes, multiple databases could be placed on the same LUN, but it's not recommended.
    If you have 2 drives fail at the same time (it happens more than you think), then losing 100% of your DBs is a lot worse than losing one of them or some of them depending on where the failures are.
    Here is a similar thread for your reference:
    Multiple databases on the same LUN in Exchange 2010
    Hope this helps!
    Thanks.
    Niko Cheng
    TechNet Community Support

Maybe you are looking for