AUDIT,CMS,BOMM: Same database, different schemas..?

Hi,
When installing BOE 3.0 and BOMM 3.0, is it ok to put these repos in the same oracle database, in different schemas, or is it recommended to have bomm repo in a separate database ? Any experiences ?
Thanks,
- jem

different schemas is just fine

Similar Messages

  • Same database different schemas on 9i

    Hi,
    Am trying to set up a simple replication from hr.jobs to tgt.jobs within the same database.
    For a particular reason I am having to do this on 9.2.8.0
    Question is: is this possible on 9i as I cannot use dbms_streams_adm.rename_schema (correct me if wrong) and I can't see how I can write to a queue from hr.jobs then dequeue this as tgt.jobs using an apply process.
    Am writing to one queue. I have a capture and apply process (no propagation - something I picked up from a forum). I have one default Queue.
    Am new to streams so all help and pointers welcome.
    TIA
    S.

    HI,
    Thanks. Have seem first link. Second one is new and points to metalink note.......by chance I have just found (on this forum) a reference to a metalink note.
    Looks like I need to write transformation rules pre-10g
    If not would like to hear....
    Thanks.

  • Different schemas in the same Oracle database

    Both my source and target tables are in the same physical Oracle database (different schemas).
    I can use the LKM Oracle to Oracle (DBLINK) knowledge module to load data but this requires setting up a dblink between the two schemas. Given that I can set this up so that the target schema has select etc permissions on the source schema, I can't help feeling that there is a simpler (more efficient?) way of doing this.
    One of the steps in the LKM is 'Create Synonym on Target' which does the following
    create synonym     <%=snpRef.getTable("L", "COLL_NAME", "W")%>
    for           <%=snpRef.getTable("R", "COLL_NAME", "W")%>
    This creates an Oracle synonym that includes a dblink (e.g create synonym s1 for s2@dblink). I can't help feeling that if I could change this so that it doesn't include the '@dblink' part then I could solve the problem and just create a synonym in the target schema that points directly to the source (e.g create synonymn s1 for source.s2). This should then mean that all the rest of the load etc process could run just the same.
    I'm sure that there must be a way of doing this, but I can't figure out how to do it using the substitution methods API.
    Any ideas how I do this?
    Thanks,
    Chris

    Chris,
    for sure when you define a Data Server you have to specify user which have appropriate access to both source and target schemas.
    Then you can create 2 schemas in one Data Server and ODI will use queries like
    insert into target_schema.tab_name
    select ... from source_schema.tab1 ...
    Loading KM will not be used in that case at all therefore data flow will work MUCH faster.
    Oleg

  • Different schema on same database

    i have 2 schemas in the same database, i create a table in one schema and can access the same table from the other schema without grant option. For eg, i create one table 'emp' in one schema 'schema1' like:
    create table emp(no number);
    Now, from the other schema, schema2, i can access this table data using the following select statement :
    select * from schema1.emp;
    without first giving the grant on the table from 'schema1' like this:
    grant select on emp to schema2.
    Please help in solving my doubt as i need it resolved urgently.

    Have you (perhaps mistakenly) granted a user the SELECT ANY TABLE privilege?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • JDBC Lookup - Import table data from a different schema in same DB

    Hi XI Experts,
    We are facing an issue while importing a Database table into the external definition in PI 7.1.
    The details are as below:
    I have configured user 'A' in PI communication channel to access the database. But the table that I want to access is present in schema "B". Due to this, I am unable to view the table that I have to import in the list available.
    In other words, I am trying to access a table present in a different schema in the same database. Please note that my user has been given all the required permissions to access different schema. Even then, I am unable to access the table in different schema.
    Kindly provide your valuable suggestions as to how I can import table which is present in another schema but in the same Database.
    Regards,
    Subbu

    If you are using PI 7.1, then you can do JDBC Lookup to import JDBC meta data (table structures from DB). Configure a jdbc receiver communication channel where you specify username and password which has permission to access schema A and Schema B of database. Specify database name in the connection string. Then you might have access to import both schema.
    Please refer these links
    SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups
    How to use JDBC Lookup in PI 7.1 ?

  • Oracle: PL/SQL Procedure involving two different Schema in two different Databases

    I got a scenario like this, I have an existing procedure that looks similar to this.
    PROCEDURE A_DATA_B( p_ID IN SCHEMA1.TABLE1.ID%TYPE,
                        p_MATCH IN SCHEMA1.TABLE2.MATCH%TYPE,
                        p_STATUS IN SCHEMA1.TABLE3.STATUS%TYPE, 
                        p_MSG IN SCHEMA1.TABLE1.MSG%TYPE,
      The list goes on...
    The SCHEMA1 was residing in the same database previously. Now this needs to be moved to another database in different server as such. But the schema name goes to be different but the Table name and the column name remain the same.  So I changed the procedure to look like this
    PROCEDURE A_DATA_B( p_ID IN SCHEMA2.TABLE1.ID%TYPE,
                        p_MATCH IN SCHEMA2.TABLE2.MATCH%TYPE,
                        p_STATUS IN SCHEMA2.TABLE3.STATUS%TYPE, 
                        p_MSG IN SCHEMA2.TABLE1.MSG%TYPE,
      The list goes on..
    But when I compile I got the error
    PLS-00201: identifier 'SCHEMA2.TABLE1' must be declared
    PL/SQL: Declaration ignored
    I can understand from this error that SCHEMA2 is not in the database which gives the error. So How should I tackle it?
    In the package body where ever am using this SCHEMA2 has been followed by an @db_link. So can I make use of that db_link to solve this?
    By looking in to some article I came to know that SYNONYM can also be used. So is this the right way to create a synonym will work?
    CREATE SYNONYM SCHEMA2 FOR SCHEMA2@db_link;
    Can Someone help me in this regards.
    Notes : I may not be able to convert the %type to varchar2 or numbers etc..
    Thanks In Advance.

    This works for me:
    PROCEDURE A_DATA_B( p_ID IN SCHEMA2.TABLE1.ID@dblink%TYPE, 
                        p_MATCH IN SCHEMA2.TABLE2.MATCH@dblink%TYPE,  
                        p_STATUS IN SCHEMA2.TABLE3.STATUS@dblink%TYPE,   
                        p_MSG IN SCHEMA2.TABLE1.MSG@dblink%TYPE,  
    Alternatively create a synonym for the table (you can't create a synonym for a schema):
    create synonym ref_table1 for SCHEMA2.TABLE1.ID@dblink
    PROCEDURE A_DATA_B( p_ID IN REF_TABLE1.ID%TYPE, 
                        p_MATCH IN REF_TABLE2.MATCH%TYPE,  
                        p_STATUS IN REF_TABLE3.STATUS%TYPE,   
                        p_MSG IN REF_TABLE1.MSG%TYPE, 
    but I don't like the idea of depending on a schema in another instance at all.
    Can you create a reference set of tables in a schema on the current database, to be the source for the data types?

  • Import of BaseView to a different schema in database

    Hi All,
    We have developed some bam reports. Now the base view, meta view are referring to a schema name (say SchemaName1) in database.
    In the plans we are using "SQL query" to get data from database. So we have queries like "Select SchemaName1.table1.column1 ... from ......".
    Now we have taken a export of the base view, meta view ,plans and all other components of BAM.
    All is fine till now... But now i need to import all these stuff in a different database. My problem is that in the new database instance i cannot use the same schema name (i.e. SchemaName1 ). I have a different schema name(say SchemaName2) there and i need to use that......There is no way i can use SchemaName1.
    Will the import of Base view/Meta view/plans work or we need to do some configuration changes during import??
    Do we have to create Base view for the new schema names from scratch or the imported code can be used??
    The plans have sql queries referring to SchemaName1 but we need it to refer to the Other schema(SchemaName2 )...What is the possible way of referring to the new schema without developing the plan again??
    Waiting for your valuable feedback...

    ***Backup your repository database***
    ***Please review all steps before attempting***
    Sarputil Export
    1.     Start | Run, type “sarputil”
    2.     Do a partial export. (Note down directory that will contain files to be exported.).
    3.     Select your Baseview, Metaview, Security:Login Profile, and Plan. (Note, the check boxes are in front of each object name and might appear very light on some clients.)
    4.     On the XML dialog and with the question on what you would like to do – select Execute Now.
    5.     Finish the wizard and from the directory noted above, verify .csv files were created. (Typically C:\OracleBAM\EnterpriseLink\Data\rp\export).
    6.     Copy all .csv files and paste to different temporary folder on 2nd server.
    Sarputil Import
    1.     Start | Run, type “sarputil” on the 2nd server where you’ll import into.
    2.     Partial import
    3.     Under Repository Information dialog, set the Data Source information on the right and remember to change the directory now containing your .csv files.
    4.     Like before, select “Execute now” and Finish the wizard.
    Oracle BAM Admin
    Modify connect string (host string or tns name) if you need to:
    1.     Connect in Oracle BAM Admin
    2.     Expand Baseviews and select the imported Baseview
    3.     Check under “Server” on the left if the connect string is correct.
    4.     If not, click Modify button and change.
    Modify Baseview Login if you need to:
    1.     With your Baseview still selected on the left side, click on “Baseview Logins” tab
    2.     Logins on the left correspond to actual database user id’s and password. Add a new Login with a database User ID and Password to access the new schema.
    3.     Associate or Set the new Login (right) to the BAM User on the left.
    Sarpbv Modification
    Use sarpbv utility to change references of the old schema name to a new schema name.
    General syntax for Oracle:
    sarpbv /R"username:pwd:Oracle:TNS Name::DB UserID:DBUser pwd” /B"BaseView name" /O"NewSchema"
    **Use Capital letters for New Schema name!
    **Notice 2 colons (::) after TNS Name (because you do not have a database name in Oracle).
    1.     Open DOS
    2.     Type your sarpbv command. Below is an example where I changed a Baseview called “scott” to use a new schema name called Jack.
    sarpbv /R"sa::ORACLE:baminst::sagent:sagent" /B"scott" /O"JACK"
    3.     Open Design Studio, locate the plan and check the SQL Query now reflects the new schema.
    4.     Test the plan to ensure it’s pulling data correctly from the new schema.

  • Creating a database link to another schema in the same database

    Hello,
    I'm trying to create a database link to another schema in the same database. It was created without errors, but when I try to use it I receive "ORA-12154: TNS:could not resolve the connect identifier specified" message...
    I'm trying to do it because on my production enviroment the databases are separated, so there I can use database links without problem, but in my development environment it's all in one database separated by schemas...
    So I'm trying to simulate the same system to not need to rewrite the query every time I move from development to production environment.
    Any ideas?
    Thanks

    Hi,
    Yes, you can create a database link to your own database. I've done it before for exactly the same reason you want to.
    (By the way, I think it's a good reason. What are the alternatives?
    Having different versions of code for Development and Production? Absolutely not! Terrible idea!
    Using synonyms or substitution variables that are set differently in the different databases? That might be more efficient than a database link, but efficiency probably isn't such a big issue in Development.
    [Conditional compilation|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/fundamentals.htm#sthref250]? This might be good; it has all the efficienty of the above options, with more clarity.)
    Assuming you do want to stick with a database link, not all errors are caught when you create the link.
    Is the Development database in the tnsnames.ora file of the Development server? Do you have other database links, either in the Development server or pointing to it, that work? What is different about the ones that work, and the one that doesn't?
    Edited by: Frank Kulash on Oct 14, 2009 1:58 PM
    The more I think about this, the more I agree with the earlier respondent: synonymns are a good solution for this.
    To that suggestion you replied:
    On this way I might use "select * from SCHEMA.table" instead of "select * from table@SCHEMA"... I looking for an option to use the second way...Actually, the suggestion was that you say:
    select  *
    from    SCHEMA_table_ptr;where schema_table_ptr is a synonym.
    In Development, that synonym is defined as schema.table.
    In Production, that synonym is defined as table@SCHEMA
    Why are you "looking for an option to use the second way"?
    If you think that people reading the code should realize that the query is being done via a database link (at least in Production), then add a comment.

  • Sinlge select query in different schemas for same table(Indentical Structu)

    Scenario :
    Table XYZ is created in Schema A
    After an year, the old data from the previous year would be moved to different schema. However in the other schema the same table name would be used.
    For eg
    Schema A contains table XYZ with data of 2012 yr
    Schema B contains table XYZ with data of 2011 yr
    Table XYZ in both the schemas have identical structure.
    So can we fire a single select query to read the data from both the tables in effective way.
    Eg select * from XYZ where date range between 15-Oct-2011 to 15-Mar-2012.
    However the data resides in 2 different schema altogether.

    Thanks for the reply
    Creating an view is an option.
    But my problem, there is ORM layer(either Hibernate or Eclipse Top Link) between the application and the database.
    So the queries would be formed by the ORM layer and are not hand generated.
    So i cannot use view.
    So is there any option that would allow me to use single query on different schema's ?

  • One Crystal Report portable to different databases (same database design)

    Good day,
    I apologize first off, as I am NOT a programmer, just a user.
    In summary:
    Crystal Report for data from Sql database.
    Currently using ODBC connection and linking to database.
    However, we have multiple databases, all with the same table structure etc, just different data.
    Right now we change the datasource for each database.
    The crystal report is run from an in house program
    Is there a way we can have the report set so that it will pull the datasource at runtime, and not be hard coded into the crystal report.
    Our goal is to take the one report and have our users of each database be able to access their own data without creating multiple copies of the report with each dataset.
    Thanks,
    RY

    Hi Ryan,
    As per my understanding you have multiple databases with the same database schema however with the different data. You would like to create reports where the user should be able to select which database to use and this should not be hard coded.
    In this case you can use the Business View wherein you have the feature of Dynamic data connection which basically is a pointer to different Data Connections
    A Dynamic Data Connection is a collection of pointers to various Data Connections. An administrator or user is able to select which Data Connection to use through a parameter.
    When users refresh reports that are based on a Dynamic Data Connection, they are prompted to specify which of the available Data Connections to use.
    Note that each of the data sources that a Dynamic Data Connection points to must have similar schemas
    When a Business View designer creates a Data Foundation that is based on a Dynamic Data Connection, this user is prompted to specify which Data Connection to use. Similarly, when a user refreshes a report based on a Dynamic Data Connection, that user is prompted to specify which Data Connection to use. In the usage scenario, you would create one Dynamic Data Connection composed of the three ORACLE sales databases: Sales Development, Sales Testing, and Sales Production. A typical name for such a Dynamic Data Connection would be Dynamic Sales.
    I hope this information helps you and let me know if this works for you.
    Regards,
    Prashant

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

  • How to create directories with same name in different schemas

    I have two schemas on the same database.
    I am trying to create directories with same name, but different paths in both the schemas.
    When i created the directories in second schema, the directory paths of the first schema are automatically changed to the second path.
    Is there any solution to create directories with same name, but different path in two different schemas on the same database.
    Thanks,
    Sridhar.

    Hi,
    >>When i created the directories in second schema, the directory paths of the first schema are automatically changed to the second path.
    If you have removed the REPLACE clause of your create statement, then you would see that is not possible.
    SYSTEM> connect scott/tiger
    Connected.
    SCOTT> create directory mydir as '/tmp';
    Directory created.
    SCOTT> connect legatti/pwd
    Connected.
    LEGATTI> create directory mydir as '/tmp';
    create directory mydir as '/tmp'
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    LEGATTI> select owner,object_name,object_type,created
      2  from dba_objects where object_name='MYDIR';
    OWNER     OBJECT_NAME    OBJECT_TYPE         CREATED
    SYS       MYDIR          DIRECTORY           19/12/2007Cheers
    Legatti

  • Schema Copy/replicate in Same database....

    Hello - I have a requirement to copy a schema in same database - with different name. What will be my best options other than export/import.
    Schema name: PROD
    Schema Size: 120GB
    Tablespace: All data of PROD is in PROD_D tablespace only
    New Schema name will be: NPROD
    Thanks in advance

    hi,
    If you're worried about the dump size, you may generate it and get a 20Gb size file...
    follow instructions from link Compressed dump
    ... if your schema has only tables, you may use CTAS
    Regards
    Ignacio
    http://oracledisect.blogspot.com

  • Cloning Schema within same database in DG environment

    Hi guys,
    I have a Production database with Data Guard configured (2 physical standbys, one same DC, 2nd other DC). I need to clone a schema (size approx. 380GB) within the same database, ofcourse creating cloned schema with a new name.
    Example:
    ======
    Primary DB: wflprd
    Standby 1: wflprddr1
    Standby 2: wflprddr2
    Source Schema: PegaRules - Size 380 GB
    Desitnation Schema: NewSchema within same database
    what are possible options available? expdp/impdp?
    regards,
    Anjum

    I believe my question is not understood correctly or may be I put the question incorrectly.
    I understand expdp/impdp or exp/imp works but is this the only solution in case of large schema sizes and data guard in place.
    log_archive_dest_1 = LOCATION=/u03/orarch/wflprd, valid_for=(ONLINE_LOGFILE,ALL_ROLES)
    log_archive_dest_2 string service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=baswflprddatz02)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=wflprddr1_XPT)(INSTANCE_NAME=wflprddr1)(SERVER=dedicated)))", ARCH SYNC NO AFFIRM delay=0 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="wflprddr1" register net_timeout=180 valid_for=(online_logfile,primary_role)
    log_archive_dest_3 string service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=actwfldredatz01)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=wflprddr2_XPT)(INSTANCE_NAME=wflprddr2)(SERVER=dedicated)))", ARCH SYNC NO AFFIRM delay=1440 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="wflprddr2" register net_timeout=180 valid_for=(online_logfile,primary_role)
    Objective: We have one big schema containing data of three different customers. We are segregating that big schema into different schemas, one for each customer. So, once schema is cloned within same database, irrelavent data is cleaned.
    regards,
    Anjum

  • Same index name for different tables in different schema

    Just a quick query
    Can two tables present in different schema of same database has same index name ?
    Will there be any problem?
    Thanks

    And just a quick answer:
    859486 wrote:
    Just a quick query
    Can two tables present in different schema of same database has same index name ?Yes.
    >
    Will there be any problem?No.
    >
    Thanks

Maybe you are looking for