OBIEE accessing two schemas? Good vs. Bad?

I have an option to organize certain tables in two schemas. I wanted to know what are the drawbacks of having information placed in two separate schemas when it comes to OBIEE answers / dashboards?
Thank you,

One database folder (with schemas HR and SH) and one connection pool which is set to HR.
Example code (countries and customers are from SH and countries_hr from HR) from NQQuery.log:
select distinct T24986.CUST_FIRST_NAME as c1,
T24974.COUNTRY_NAME as c2,
T26180.COUNTRY_NAME as c3
from
COUNTRIES T24974,
COUNTRIES_HR T26180,
CUSTOMERS T24986
where ( T24974.COUNTRY_ID = T24986.COUNTRY_ID and T24986.COUNTRY_ID = T26180.COUNTRY_ID)
order by c1, c2, c3
grant select on sh.countries to hr
grant select on sh.customers to hr
create or replace public synonym countries for sh.countries
create or replace public synonym customers for sh.customers
So in this case I had to make grants and synonyms on tables in SH to be visible to HR (connection pool).
Regards
Goran
http://108obiee.blogspot.com

Similar Messages

  • "Best Practice" for a stored procedure that needs to access two schemas?

    Greetings all,
    When my company's application is deployed, two schema owners are typically created and all database objects divided between the two. I'll call them FIRST and SECOND.
    In a standard, vanilla implementation there is never any reason for the two to "talk to each other". No rights to objects in one schema are ever granted to the other.
    I am currently charged, however, with writing custom code to roll up data from one of the schemas and update tables in the other with the rollups. I have created a user whose job it is to run this process, and this user has the proper permissions to all necessary objects in both schemas. I'll call this user MRBATCH.
    Typically, any custom objects, whether they be additional staging tables, temp tables or stored procedures are saved in the FIRST schema. I tried to save this new stored procedure in the FIRST schema and compile it, but got "Insufficient priviliges" errors whenever the code in the stored procedure tried to access any tables in the SECOND schema. This surprised me a little bit because I had no plans to actually EXECUTE the stored procedure as FIRST, but I guess I can understand it from the point of view of, you ought be able to execute something you own.
    So which would be be "better" (assuming there's any difference): Grant FIRST all of the rights it needs in SECOND and save the stored procedure in FIRST, or could I just save the stored procedure in the MRBATCH schema? I'm not sure which would be "better practice".
    Is there a third option I'm overlooking perhaps?
    Thanks
    Joe

    In this case I would put it again into schema THIRD. This is a kind of API schema. There are procedures in it that allow some customized functionality. And since you grant only the right to execute those procedures (should be packages of cause) you won't get into any conflicts about allowing somebody too much.
    Note that this suggestion seems very similiar to putting the procedure directly to the executing user MRBATCH. It depends how this schemauser is used. I always prefer separating users from schemas.
    By definition the oracle object to represent a schema is identical to the oracle object representing a user (exception: externally defined users).
    my definition is:
    Schema => has objects (tables, packages) and uses tables space
    User => has priviledges (including create session and connect) and uses temp tablespace only. Might have synonyms and views.
    You can mix both, but sometimes it makes much sense to separate one from the other.
    Edited by: Sven W. on Aug 13, 2009 9:51 AM

  • Accessing diff schema at a time in 9ifs

    Hi,
    Some of business data exits in ifs schema, other datas are exists in oracle db schema. i want to generate a report by using data exists in these two schema. Is that possible through reports server. I badly need solution to this problem. If any one knows solution to this, please let me know.
    Thanks in advance.
    regards,
    srini

    Hello Srini,
    Here 2 solutions:
    a. One of the way is to create synonym of the objects of schema A in the schema B and grant the select on this objects.
    b. The other one is, if you are the version 9.0.x of Oracle Reports is to use the JDBC data source. Using this data source you can create reports based on multiple connection.
    But if you are in the same instance I would prefer the solution a (synonym / grants)
    Regards
    Tugdual

  • Different ways to copy data between two schemas in one instance

    Hi there,
    I am searching a good way to copy data between two schemas in the same instance.
    Both schemas have an identical structure such as triggers, tables, views and so on. The only difference is the purpose: one is the productivity system and one is for development.
    I looked at datapump but I do not explicit want to export / import. I want to keep the data in the productivity schema as well as copy it to the other schema. Any ideas? I found out there is a copy statement but I dont't know how that works.
    Thank you so far,
    Jörn

    Thank you for your replies!
    I also thought of creating a second instance for development and move the dev - schema to it. I just don't know whether our server can handle both (performance?). Anyway the idea is to have a possibility to quickly rebuild the data inside a schema without indixes or triggers, just pure data. I thought the easiest way would be to copy the data between the schemas as they are exactly the same. However if you tell me DataPunp is the best solution i won't deny using it :).
    When you export data a file is created. does that also mean that the exported data is deleted inside the schema?
    best regards
    Jörn
    Ps: Guido, you are following me, aren' t you? ;-)

  • Oracle 11G, access other schema's procedure

    Hi all,
    I have a peculiar problem while calling a procedure from JAVA.
    I have two schemas, SCH1 and SCH2. Java is connected to  SCH1. There is a procedure in SCH2, grant is given to SCH1. in SCH1 a synonym is created using the following commad.
    create synonym PR_GET_DATE for sch2.PR_GET_DATE;
    Procedure is given below. For testing, I removed all the actions inside my procedure.
    create or replace
    PROCEDURE PR_GET_DATE(
        P_REP_PROCESS_DATE IN DATE,
        P_REP_TYPE         IN VARCHAR2,
        P_ETL_DATE OUT DATE ,
        P_STATUS OUT VARCHAR2,
        P_MSG OUT VARCHAR2)
    AS
      V_WK_REP_DATE DATE;
    BEGIN
    null;
    end;
    {code}
    If I test this from SQLPLUS, it works fine. But if I call it from Java, I am getting the following error in Java. But if I compile it in SCH1 and try calling from java, it works fine. Can someone please explain me the possible cause of this behaviour.
    org.springframework.jdbc.BadSqlGrammarException:
    CallableStatementCallback; bad SQL grammar [{call PR_CLMSR_GET_REP_DATE()}];
    nested exception is java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types
    of arguments in call to 'PR_CLMSR_GET_REP_DATE'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Thanks,
    Jaggyam

    Thanks All for you response!
    Grant is given, otherwise it would have been clearly mentioned in the error
    We are passing all the parameters with appropriate value. To throw more light on that, we did not make any change in the java. But simply dropped the synonym took the copy of the procedure from SCH2 and compiled in SCH1. After doing so, I didn't get any error in Java. So nothing wrong in the number of parameters passed or their type.
    By looking at the error message, even I thought the parameters are not properly passed from java. But without making any code change Java, it is working fine after we moved the procedure to SCH1. Again in either case when I called from SQLPLUS, I had no issues. I don't have a concrete evidence to put in front of my Java team to prove that nothing is wrong in the code.
    Kindly throw your thoughts please.
    Thanks in advance,
    Jaggyam

  • Can we access two rpds in a single Presentation Service

    Hi ,
    Please let me know how we can access two rpds in a single presentation service . What is the procedure and what changes to NQSCONFIG.ini file should b made .Also do we need clusters for this ?

    Hi,
    You could also try the following thread; Re: Two presentation servers on different ports
    Clustering is for load-balancing
    Good Luck,
    Daan Bakboord

  • Access other schema's table without specify the schema name

    Hi, need ur help again,
    I would like to access other schema's table without specify the schema name. for example,
    select * from hr.jobs;
    What priviledges i need if i want to select the data in this way:
    select * from jobs;
    Thanks!

    Public synonyms have their place, but are not generally a good idea as they will cause conflicts with other schemas and applications. Another think that you can do is issue the
    ALTER SESSION set CURRENT_SCHEMA = schema;
    The CURRENT_SCHEMA (8i and above) parameter changes the current schema of the session to the specified schema. Subsequent nqualified references to schema objects during the session will resolve to objects in the specified schema. The setting persists for the duration of the session or until you issue another ALTER SESSION SET CURRENT_SCHEMA statement. CURRENT_SCHEMA is a session parameter only, not an initialization parameter.
    This setting offers a convenient way to perform operations on objects in a schema other than that of the current user without having to qualify the objects with the schema name. This setting changes the current schema, but it does not change the session user or the current user, nor does it give you any additional system or object privileges for the session.

  • IPod touch - IS IT GOOD OR BAD?????

    i have just bought an ipod touch and my personal view is excellent!
    98% works perfectly - just the safari web brouser can be slow (eventhough im on highspeed wireless broadband)
    i love the coverflow and scrolling is amazing with a flick of a finger
    buying on the move is a big bonus - i've just been to scotland and was in a wifi area and bought a couple of songs! it only takes seconds aswell!
    pictures are clear and easy to see and zooming in by 'pinching' is clever and works well.
    obviously videos are good and so is music!!!!
    thats what i think about the Ipod touch what about you - please leave your comments on it - good or bad..............

    What I have found disappointing so far is web access on the ipod touch: I have not been able to log on to any commercial network (= requiring some sort of authentication) for example in hotels. It seems that Safari on the ipod touch does not support certain functions required. The connections worked flawlessly from Safari on my Macbook so it seem to be a ipod touch issue (I assume the same goes for the iphone).

  • Two Schema folder, single connection pool

    Hi
    I have two schema folders in physical layer of obiee 10g. And one connection pool.
    My scenario is the schema have different login ids and in connection pool I can give only one login information.
    How can we have two schema folders under one connection pool. Please suggest.
    Thanks.

    I dont think fully qualified names will not work here please correct if I am wrong. Rather shared logon guess should work but did not in my case.
    The fully qualified names are based on the physical object names in the repository. If you are querying the same tables from which the physical layer metadata was imported, you can safely check the option. If you have migrated your repository from one physical database to another physical database that has different database and schema names, the fully qualified names would be invalid in the newly migrated database. In this case, if you do not select this option, the queries will succeed against the new database objects.
    For some data sources, fully qualified names might be safer because they guarantee that the queries are directed to the desired tables in the desired database. For example, if the RDBMS supports a master database concept, a query against a table named foo first looks for that table in the master database, and then looks for it in the specified database. If the table named foo exists in the master database, that table is queried, not the table named foo in the specified database.

  • Access Mulitple schema

    Hello All
    My application used two distinct schema for data ... basically i am oracle guy....
    i am faceing trouble " table not exist " dureing the application ....
    So can any one suggest best posible way to resolve this probs when we use mulitple schema in applications...
    All query used schema.table name...
    Ash

    it's probably a security issue.
    If you log in as user a which has access to schema a, then they may not have priviledges to select from tables in schema b.
    Two options:
    1. Have two separate connections, one for schema a, and one for schema b. Assuming that you don't have any queries that perform joins between them.
    2. Grant "select" priviledges on schema b to user a, so that you can log in as user a, and access both schemas.
    regards,
    Owen

  • Placing a PDF file in an InDesign Doc and PDF again for a vendor- Good or Bad?

    Current debate in the graphics department is
    Is it good or bad to place a PDF (general Press Quality) into an InDesign document and then creating a new PDF file with print vendor settings from that document?
    My thought is that you in some cases are double compressing, lower dpi images getting compressed, RGB color mode images okay on layout but now are converted to CMYK and shift in the PDF.
    Are there other issues and if so what are they.
    Also is there an easy way to check ppi, color mode and compression of an acrobat PDF? I mean other than doing a preflight and searching into each image folder twenty levels deep. FlightCheck and Enfocus are not options,
    too many vendors and not enough time.
    Thank you all in advance for your words of wisdom.

    Dov, I just got off the phone with a trusted professional in the Prepress field at a quite reputable print house, and he said "Dov is the guru of PDFs, ask him this...Will the InDesign CS3 preflight see the characteristics of a PDF (color mode, dpi(ppi), compression) if the original placed PDF is created as a pdf .X4 (1.7)? Ask him also if you were to use one form of compression (say lossless) in the original PDF, and then another form(say lossy) in the vendor PDF would it hold both or convert the first PDF compression to the second form?"
    Any other responses are also welcomed.

  • How to compare two schemas in Oracle sql developer

    Hello,
    I need to compare both the data and schemas details (columns etc) between two schemas on different databases (connections).
    What is the easiest and most efficient way to do this? Hopefully in Oracle Sql Developer or Sql Plus?
    Thanks.

    In SQL Developer go to Tools -> Schema Diff !
    in SQL* Plus you will need to write PL/SQL for this.
    Amardeep Sidhu

  • How can i access two view in a method

    hi i have a situation where i have to access two view in one method how can i do that am in jdeveloper 11.1.2.1.0
    Edited by: Tshifhiwa on 2012/07/03 4:33 PM

    Hi ,
    ViewObject svo = this.findViewObject("AGR1");
                        ViewObject svo1 = this.findViewObject("AFUN");
                        svo.executeQuery();
                        svo1.executeQuery();
                        Row row = svo.first();
                        Row row1= svo1.first();This is correct .But can you let us know where you are getting java null pointer exception.Moreover again can you check the VO name which you are looking here is available in AM or not.and also check the AM object as well .It should not be null
    Thanks
    Prateek

  • HT2105 When you get a apple receipt for itunes songs and you paid with a itunes gift card do they charge you or give you store credit what's store credit is it good or bad or does it charge you if you have a free account with no credit cards at all is it

    When you get a apple receipt for itunes songs and you paid with a itunes gift card do they charge you or give you store credit what's store credit is it good or bad or does it charge you if you have a free account with no credit cards at all is it bad?

    iTunes credits are, for example, if you download a song from the store and it's found to be corrupt - if the track can't be fixed then iTunes support will tend to give you a song credit for a free download.
    When you purchase music from the store then any credits that you have will be used first, then any balance that you have (e.g. from iTunes gift cards or allowances), and any remaining amount will be taken from your credit card.

  • Goods and Bads with the 6110 Navigator

    Hi
    New user of this forum and a proud owner of a Nokia 6110 Navigator. I had the 6280 but after 2 SW upgrades and still problem with it, I gave up.
    First impression of the 6110 is good, but I found a couple of small things that ”irritates” me.
    1 – The timer function when you write “0200” and press options instead of green (call) button.
    2 – The original headset is too cheap to be an expensive phone like this, should be more like Koss “plug-in-your-ear” kind of headphones, instead of the small “put-close-to-your-ear” thing that is included.
    Also, the straight up cable from the top of the phone is no good. Makes the phone lie bad in the pocket. I also guessing that this cable is going to snap after a while. Why not a 90 degree “adapter” or something?
    3 – When you sending an SMS, on my 6280 you could choose “last used number” or something like that, now you have to choose name, and then number, and then OK to go back to the SMS.
    Well.. that’s it so far. Anyone else have goods and bads about this phone ?
    mvh / regards
    Timmy

    hi im havin same issues!!
    i went from 6280 to 6110 after i smashed it
    1.first off i didnt kno of the timer option...good bcoz it was annoyin not havin a stopwatch
    2. that "recent use list"...lack of it...is annoying. i just made groups of ppl i msg most
    3. menu organisation is confusing
    4. in call history, it only shows most recent time for that entry, ven if they rang 5 times that day, also they dont show call long eg duration of 3mins 40secs
    5. on my 6280, i had a shortcut menu as mi left select button, cant do this now
    6. power button is end call button, lotsa accidental turn offs
    7. cant turn off start up tone
    oh well i still like it

Maybe you are looking for

  • Login twice in same apex app by same user not possible

    Hi, In itself it is possible to login twice by same user in same appl. But when using both apps on diff pages eachtime the user is prompted to login again. Why is that and why cant'w we use the app twice by same user. It is possible to use same app b

  • Installation error of Oracle 9.0.2.4 on Linux 9

    when iam installing 0racle 9.2.0.4 on red hat linux 9, i got the following error. i got it on my error log file. Please can you help me to correct the problem. regrds upul name = ORACLE_BASE Query returned : Setting value of s_mountPoint to /oradata

  • Webservice client in jsp

    hey, im making a webservice client (implemented in jsp for a course), ive made a simple one in straight java and it works fine, but when made the necessary changes to make it a jsp page, i keep gettting an error when the page is displayed org.apache.

  • Mac External Hard Drive Question

    I have a MacBook with a 60 gb hard drive, as well as an external usb drive with 60 more gb of room. The drive inside the MacBook is filling up with all the pictures in iPhoto, and songs in iTunes. My question is: is there a way (i.e. maybe with softw

  • Please Help, Laptop Keep Crashing

    My 17in Macbook Pro (Late 2011) has been crashing for the past few months. I took it to a certified Apple Retailer. They diagnosed the hard drive as the issue, I has it replaced with a new 250gb SSD. It worked great for about a week then started cras