Creating a hierarchy based on a remote database link

I am trying to create a hierarchy based on a synonym for a remote database table. The hierarchy wizard works correctly, and the table columns do appear as choices in the drop boxes. However, when I try to run the application, I get the error "No data found. This data does not exist or you do not have privileges to view it". Does anyone know how to resolve this error? Or how to work around this?
I can successfully create and query a form based on the remote table. And, I am able to create a hierarchy from other tables (which do not use a database link) without a problem.
Thanks for your help!

This is the query which I am using to build a report
SELECT
rollup_timestamp "Date",
max(decode(target_guid,'199F0B201A3D71A63040BADFAA4F9E90',average,0)) host1,
max(decode(target_guid,'3FB1329F59339C07E11304B69DC4E594',average,0)) host2
FROM "sysman.MGMT$METRIC_DAILY"
WHERE
(target_guid='199F0B201A3D71A63040BADFAA4F9E90'
or
target_guid='3FB1329F59339C07E11304B69DC4E594')
AND
metric_name='Load'
AND
metric_column='memUsedPct'
AND
rollup_timestamp >= to_date('01-10-2009','dd-mm-yyyy') and rollup_timestamp <= sysdate
GROUP BY rollup_timestamp
ORDER BY "Date"
And for your previous question I couldn't even create a page.
Regards
Balaji
Edited by: user7290747 on 6/01/2010 16:17

Similar Messages

  • Can we create a hierarchy based on two logical table in 10g RPD

    Hi,
    I have a question, please give me some clarity, about creating hierarchy,
    I know we can create a hierarchy based on one logical table which is form by two physical table...
    Can we create a hierarchy based on two logical table? If yes, and how?
    Thanks in advance!
    anne

    Use preffered drill paths...
    -suman

  • Create different hierarchy based on Dimension values

    I have a dimension called period. This dimension is having 4 different types of periods. The period table looks as below. I need to create 4 different hierarchies for these 4 types of periods based on l1 to l5 values. But all these values are in the same
    table. Is it possible in SSAS? If so please let me know how can I do it. 

    If i understand it correctly, you want one hierarchy for one row, then you need to flat the table in the view and then you can create those hierarchy. But it is no different from having one hierarchy with the table you have. your hierarchy is going to look
    like "Priod5"  <- "Priod4" <- "Priod3" <- "Priod2" <- "Priod1". this hierarchy will have all the values. Don't forget to use the composite key for each attribute except key attribute.
    hope this is helpful.
    prajwal kumar potula

  • Remote Database Link

    I have to Database set up in 2 different machine. All are having rel 9.2.0.1.0 in them. I am trying to use private fixed database link to connect form one to another(from a 3rd client machine).
    say my orcale databases are:
    service_name for target database: orcl_tgt.x.y
    service_name for source database: orcl_source.p.q
    when i create a database link in orcl_target(orcl_tgt.x.y) from a 3rd machine(9i client installed) like this:
         CREATE DATABASE LINK "L1" CONNECT TO "user_name"
         IDENTIFIED BY "pswd1"
         USING 'orcl_source.p.q'
    it says link created ,but when i try to view data using the link from target
    select * from xyz@L1 it says
    ERROR at line 1:
    ORA-12154: TNS:could not resolve service name
    in our system global_names parameter is set to false in both the databases.
    Can anybody suggests how to solve this?

    justin is right
    first check your tnsname entry
    that it will work property
    for that first u connect to remote machine by sqlplus
    and use tnsname 'orcl_source.p.q'
    i think u r not created 'orcl_source.p.q' in tnsname files--------------------------
    Cause: The service name specified is not defined correctly in the TNSNAMES.ORA file.
    Action: Make the following checks and correct the error:
    Verify that a TNSNAMES.ORA file exists and is in the proper place and accessible. See the operating system specific manual for details on the required name and location.
    Check to see that the service name exists in one of the TNSNAMES.ORA files and add it if necessary.
    Make sure there are no syntax errors anywhere in the file. Particularly look for unmatched parentheses or stray characters. Any error in a TNSNAMES.ORA file makes it unusable. See the Oracle Net Services Administrator's Guide. If possible, regenerate the configuration files using the Oracle Network Manager.
    hope it will help you
    kuljeet pal singh

  • ORACLE 11g + PHP5 problem: "fetch out of sequence" on remote database link

    Hi!
    I have a new server with oracle 11g (11.1.0.7) database and apache/php5 (actual build) on linux.
    connection type is dedicated.
    when doing a connection to a remote AS/400 database I always get this error:
    "Warning: oci_fetch_array() http://function.oci-fetch-array: ORA-01002: fetch out of sequence ORA-02063: preceding line from..."
    when doing the same simple "select * from database link" at my old server with oracle 9i and apache/php5 no problem occurrs.
    this happens at AS/400 database link only. normal oracle database links work fine.
    Anyone an idea how to solve this problem or where the problem is????
    further info:
    when doing " select * from [ database link ] where rownum < 11 " it works, but when doing the query with more than 10 results I get the error. Any idea?
    bye,
    Oliver
    Edited by: user501548 on 10.10.2008 02:20

    well a fetch out of sequence usually indicates that a cursor has been closed before the process has finished fetching or some such thing.
    I'm not aware of there being a specific problem with the situation you outline, but maybe if you could provide all the connection setup and how you are trying to connect that may give a better idea.
    Also, you may be better asking on the General Database Discussions forum as this isn't really a SQL or PL/SQL problem

  • Apex and remote database links.... Good idea or bad?

    We would like to have one single Apex installation that would be used to develop many applications against many remote databases.
    Database links would seem to be the obvious mechanism to achieve this goal, but we have had many issues with db links.
    Also, our research indicates this might not be a good idea for various reasons.
    Any opinions or experiences around this topic would be greatly appreciated.

    we have had many issues with db links. In that case it's a bad idea.
    It's not really an Apex question. If you can't get db links to work, it's a database issue. If it's performance over the db link, again it's a database issue (assuming modern networks aren't the bottleneck here). Remote views (instead of selecting from remote tables) often increase performance.
    If the applications don't have to share data over the db links, you can set up one master application and several sub-applications on the different databases. The master is used to log in once. See:
    http://www.oracle.com/technetwork/issue-archive/2009/09-may/o39security-101079.html

  • Creating new hierarchy based on existing r/3 hierarchy & loading

    Hi,
    We have an existing hierarchy in BW which we bring in from SAP R/3.
    I want to use the majority of this hierarchy but I need it in a different sequence. If I copy this existing hierarchy and then re-structure it to how I need it, I assume that whenever any changes are made to the existing hierarchy, that these changes won't filter through to the hierarchy I need to create.
    If my assumption is correct, does anyone have any suggestions as to what, if anything, I can do in order to make any changes in the existing hierarchy come through to the new one without any manual intervention.

    Hi Mark,
    The 4th option is to write a code in CMOD and restructure the internal table there itself. In this case you do not need worry about the change in the hierarchy. Please let me know if this helps.
    Rgds,
    Bikas

  • How to create materialized view log on remote database

    How do you create materialized view logs on a remote database.
    I tried
    create materialized view log on global_express_views.vccs438_project_work_request@h92edwp with sequence, rowid ( columns...)
    ERROR at line 1:
    ora-00949 illegal reference to remote database

    Hi,
    I am not getting the error exactly. But have some suggestion:
    If the schema owner does not own the master tables, then the schema owner must have the GLOBAL QUERY REWRITE privilege or the QUERY REWRITE object privilege on each table outside the schema.
    Hope, this may help you?
    Thanx.. Ratan

  • How to create workspace on remote database schema?

    Is it possible to create workspace on remote database schema? I have created a database link on remote database. Now want to create workspace on schema on that remote database. I have seen no option in Apex 4.1. Please have your comments on the topic.
    Regards
    Hasan Al Mamun
    Programmer
    Bangladesh Bank
    Dhaka, Bangladesh

    Hello,
    this forum is dedicated to APEX Listener, a web server alternative for AEPX. I guess you actually wanted to post in {forum:id=137}. I'd recommend to open a new thread there and mark this thread as answered.
    Thanks,
    Udo

  • Hierarchy based on one dimension.

    Hi,
    How to create a hierarchy based on one dimension. For example: we have table:
    Category
    Category_ID
    Parent_Category_ID
    I want to create hierarchy, which like as:
    Category_Level_1
    Category_Level_2
    Is it possible without create new alias of table for each level?
    Thanks

    Which version of BO are you using?
    Assuming that you are using BO XI R2 or above version.
    And Is your question - how to create custom hierarchies in Universe Designer..... for two different fields (columns) taken from a single database table?
    If so, yes you can create custom hierachy for above scenario. In Custom Hierarcies option: Add the Parent_Category_ID first and  below that add Category_ID.
    If you want to rename your hierarchy levels as Category_Level_1 & Category_Level_2, then rename their corresponding objects names in Clasess & Objects pane.
    - Anil

  • BLOBs and Database Links

    Do Blobs work through Database Links? I have images in one database that I would like to render in a portal attached to another.

    Hi I tried the following in sqlplus:
    1)create a table(ATAB_CLOB) in a remote database(DB2) with a clob column
    2)connect to the database(DB1) and create a database link (ADBLINK1) for the
    remote database(DB2) .
    3) create a synonym (ASYN_TAB) based on the remote table (ATAB_CLOB) using the
    database link ADBLINK.
    4) Now try to create a view based on this synonym,I see the same error:
    SQL> create or replace view aview2 as select * from asyn_Tab;
    create or replace view aview2 as select * from asyn_Tab
    ERROR at line 1:
    ORA-22992: cannot use LOB locators selected from remote tables
    The message says it all.
    This is a database limitation.
    Hope this helps.
    Anu

  • Query builder: tables from Database Link

    Hi APEX people,
    Is there a way to use tables from a (remote) Database Link in the Query Builder?
    In the Query Builder I seem to have only access to locally (schema) stored tables.
    I already tried to define a Synonym for the remote tables I wanted to use, but that didn't work either.
    Thanks in advance.
    Maurice

    Hi,
    First of all, can you select from them ie
    SELECT  *
    FROM my_table@my_linkAlso you can't see them as tables in the schema because they're not tables in the schema.
    Try creating a view like...
    CREATE OR REPLACE FORCE VIEW m_table_vw AS
    SELECT *
    FROM my_table@my_link;You should be able to see the view in the schema in the query builder and use that.
    Cheers
    Ben

  • How Discoverer scheduler handles Database links ?

    I have 2 databases (both Oracle). created a view based on the another database view in the current database using the database link.
    I ran the workbook in discoverer Plus successfully.
    I scheduled the workbook without any problem
    when I tried to open a workbook, I am getting the following error..
    ORA 01017: INVALID USERNAME AND PASSWORD; LOGIN DENIED ORA02063:PRECEEDING LINE FROM
    INPTR (INPTR is the name of the datasource )
    Any ideas??
    Thanks

    See my reply to an earlier post today: "How to Connect to Discoverer Viewer " for more information. (How to Connect to Discoverer Viewer
    Since you have not installed an infrastructure and associated Discoverer with it, you will not see any button / link to create public connections in EM (App Server Control).
    You cannot use an existing database for your infrastructure. The Oracle Application Server infrastructure is installed in its own database.
    Thanks
    Abhinav
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN : http://www.oracle.com/technology/products/bi/
    Discoverer : http://www.oracle.com/technology/products/discoverer/
    BI Software : http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples : http://www.oracle.com/technology/products/bi/samples/
    Blog : http://oraclebi.blogspot.com/

  • Is Identifier required for Private database link

    Hi All,
    A public database link is created between two databases: db1 and db2.
    x.world is the name of the link.
    when we access the data as
    select * from tab@x i am getting the data.
    But if the database link is private
    can we access the data using the same query or .world is required.
    Reg
    Ravi

    Hi,
    You must understand first what type of database link you are creating. If you are working Anonymous database link then make sure that user account persists on destination database.
    Other wise you might end up with Insufficient Privileges.
    Refer to : http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/ds_concepts002.htm
    - Pavan Kumar N

  • Database link/the user is locked

    I have 10.2.0.1.0 on Windows XP system.
    What should I do in order to resolve the following issue. Thanks.
    SQL> select sysdate from dual@my_world@my_customer;
    select sysdate from dual@my_world@my_customer
    ERROR at line 1:
    ORA-28000: the account is locked
    ORA-02063: preceding line from my_world@my_customer

    HI,
    are you using dblink and again dblink internally?
    Error: ORA 2063
    Text: preceding <str> from <name>
    Cause: An Oracle error message was received from a remote database link.
    Action: Refer to the preceding messages.
    Correct the problem mentioned in the preceding messages and try the
    operation again.
    can you please check metalink [ID 1004923.6]Thanks

Maybe you are looking for