Problem in database link for value set table

Hi All,
We are using a table from a different database in our valuset. This database we are refering via a DBLINK. But the DBLINK name is again stored in a table and will change from instance to instance i.e (development and production).
Please let us know if there is a way to make use of the above table with out hardcoding DB link.
Eg: MRP_AP_APPS_INSTANCES - This table has the DBLINK name
Vauset uses - tablename@dblinkname
if we give
select * from tablename@(select A2M_DBLINK from MRP_AP_APPS_INSTANCES),
it gives the error database link name expected.
Is there any other way how we can avoid hardcoding the dblink name.
Please help.
Regards,
Shruti

Hi,
Please see if (Note: 427588.1 - Error When Using a Database Link in the Definition of a Value-Set) is applicable.
Thanks,
Hussein

Similar Messages

  • Interactive report performance problem over database link - Oracle Gateway

    Hello all;
    This is regarding a thread Interactive report performance problem over database link that was posted by Samo.
    The issue that I am facing is when I use Oracle function like (apex_item.check_box) the query slow down by 45 seconds.
    query like this: (due to sensitivity issue, I can not disclose real table name)
    SELECT apex_item.checkbox(1,b.col3)
    , a.col1
    , a.col2
    FROM table_one a
    , table_two b
    WHERE a.col3 = 12345
    AND a.col4 = 100
    AND b.col5 = a.col5
    table_one and table_two are remote tables (non-oracle) which are connected using Oracle Gateway.
    Now if I run above queries without apex_item.checkbox function the query return or response is less than a second but if I have apex_item.checkbox then the query run more than 30 seconds. I have resolved the issues by creating a collection but it’s not a good practice.
    I would like to get ideas from people how to resolve or speed-up the query?
    Any idea how to use sub-factoring for the above scenario? Or others method (creating view or materialized view are not an option).
    Thank you.
    Shaun S.

    Hi Shaun
    Okay, I have a million questions (could you tell me if both tables are from the same remote source, it looks like they're possibly not?), but let's just try some things first.
    By now you should understand the idea of what I termed 'sub-factoring' in a previous post. This is to do with using the WITH blah AS (SELECT... syntax. Now in most circumstances this 'materialises' the results of the inner select statement. This means that we 'get' the results then do something with them afterwards. It's a handy trick when dealing with remote sites as sometimes you want the remote database to do the work. The reason that I ask you to use the MATERIALIZE hint for testing is just to force this, in 99.99% of cases this can be removed later. Using the WITH statement is also handled differently to inline view like SELECT * FROM (SELECT... but the same result can be mimicked with a NO_MERGE hint.
    Looking at your case I would be interested to see what the explain plan and results would be for something like the following two statements (sorry - you're going have to check them, it's late!)
    WITH a AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_one),
    b AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_two),
    sourceqry AS
    (SELECT  b.col3 x
           , a.col1 y
           , a.col2 z
    FROM table_one a
        , table_two b
    WHERE a.col3 = 12345
    AND   a.col4 = 100
    AND   b.col5 = a.col5)
    SELECT apex_item.checkbox(1,x), y , z
    FROM sourceqry
    WITH a AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_one),
    b AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_two)
    SELECT  apex_item.checkbox(1,x), y , z
    FROM table_one a
        , table_two b
    WHERE a.col3 = 12345
    AND   a.col4 = 100
    AND   b.col5 = a.col5If the remote tables are at the same site, then you should have the same results. If they aren't you should get the same results but different to the original query.
    We aren't being told the real cardinality of the inners select here so the explain plan is distorted (this is normal for queries on remote and especially non-oracle sites). This hinders tuning normally but I don't think this is your problem at all. How many distinct values do you normally get of the column aliased 'x' and how many rows are normally returned in total? Also how are you testing response times, in APEX, SQL Developer, Toad SQLplus etc?
    Sorry for all the questions but it helps to answer the question, if I can.
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Valu Set Tables /BIC/OB*

    Hi,
    I am experiencing a strange problem with Value Sets. For some reason randomly a Value Set table getting deleted. The definition in Reporting Agent is there and the entry in RSRVTABLEDIR is there but the physical table /BIC/OB* getting deleted.
    Does any body experienced similar problem?
    What is causing the tables disappear?
    Any help is greatly appreciated.
    Thanks in advance.

    Hi,
    Check note 948599
    regards Maarten

  • Creating a Database link for a user

    Hello All,
    I am trying to create a database link for one of my users.
    When I create it as sysdba the link gets created in the SYS schema which tells me that my syntax is working/fine.
    But when I ALTER my SESSION and set my CURRENT_SCHEMA = <USER_NAME> I get ORA-00990: missing or invalid privilege
    So I tried granting the user CREATE DATABASE LINK, CREATE PUBLIC DATABASE LINK, and DROP PUBLIC DATABASE LINK.
    Same error.
    Any ideas what I am missing?
    Thanks,
    Craig

    CraigBoyd wrote:
    Hello All,
    I am trying to create a database link for one of my users.
    When I create it as sysdba the link gets created in the SYS schema which tells me that my syntax is working/fine.
    But when I ALTER my SESSION and set my CURRENT_SCHEMA = <USER_NAME> I get ORA-00990: missing or invalid privilege
    So I tried granting the user CREATE DATABASE LINK, CREATE PUBLIC DATABASE LINK, and DROP PUBLIC DATABASE LINK.
    Same error.
    Any ideas what I am missing?
    Thanks,
    Craigyou need to create a new session after the GRANT was issued.

  • Re: Problem providing download link for BLOB data in apex report

    Hi Don,
    Your solution below worked but in the download option i only see save but not open for PDf file in the blob. Please let me know if you have any suggestion to achieve it
    Thanks
    Jo
    Problem providing download link for BLOB data in apex report 
    591953 Nov 19, 2008 1:55 PM (in response to 660436)
    Currently Being Moderated
    Good morning,
    Here is how I have solved this problem.
    1. The select statement in the sql for the report should not include the BLOB column. I decided to select only 2 columns, the column that has the key and the column with the filename.
    2. On the first column ( the primary key ) I put in the format statement that was simply DOWNLOAD:TABLENAME:BLOB_COLUMN:PRIMARY_KEY
    This works. I believe that the Oracle error I was getting was because I was trying to apply this format statement to the actual BLOB column.
    So, it appears that you can use any of the columns in the report to hold the DOWNLOAD format statement since in the format statement, you are defining the BLOB table, BLOB column and the primary key into that column.
    Hope this helps,
    Don.

    Branched out from a years old thread.
    user3003326 Don't post to old threads, please.

  • Problem connecting DataBase Link from windows oracle to oracle on Linux

    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?

    1005745 wrote:
    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?A database link is acting as a client to the target, remote database in exactly the same fashion and using exactly the same tns infrastructure as any other client trying to connect to that remote database. your ORA-12154 when querying a db link means exactly the same as if you had gotten it trying to connect with sqlplus, from the same server. Check the link SB provided. Keep in mind that the tnsnames file of concern is the one on the source database server.

  • OWB 10g -- Can't Create Database Links for Data Source and Target

    We installed OWB 10g server components on a Unix box running Oracle 10g (R2) database. The Designer Repository is in one instance. The Runtime Repository and the Target are in another instance. The OWB client component was installed on Windows XP. We create a data source module and a target module in OWB. The data source is on another Unix box running Oracle 9i (R2) database. We try to create database links for data source module and target module, respective. But when we created and tested the DB links, the DB links were failed.
    For the database link of data source, we got the following error message:
    Testing...
    Failed.
    SQL Exception
    Repository Error:SQL Exception..
    Class Name: CacheMediator.
    Method Name: getDDEntryFromDB.
    Repository Error Message: ORA-12170: TNS:Connect timeout occurred
    For the database link of target , we got the following error message:
    Testing...
    Failed.
    API2215: Cannot create database link. Please contact Oracle Support with the stack trace and the details on how to reproduce it.
    Repository Error:SQL Exception..
    Class Name: oracle.wh.ui.integrator.common.RepositoryUtils.
    Method Name: createDBLink(String, String, String, String).
    Method Name: -1.
    Repository Error Message: java.sql.SQLException: ORA-00933: SQL command not properly ended.
    However, we could connect to the two databases (data source and target) using the OWB’s utility SQL Plus.
    Please help us to solve this problem. Thank you.

    As I said prior the database link creation should work from within the OWB client (also in 10).
    Regarding your issue when deploying, have you registered your target locations in the deployment manager and did you first deployed your target location's connector which points out to your source?
    I myself had some problems with database link creations in the past and I can't remember exactly what they were but it had something to do with
    - the use of abnormal characters in the database link name
    - long domain name used in as names.default_domain in my sqlnet.ora file
    What you can do is check the actual script created when deploying the database link so see if there's something strange and check if executing the created script manually works or not.

  • Error in database parameter for star schema table in RSRV

    Hi Experts,
    In RSRV, I executed the following checks in my cube and it is showing me the following error:-
    1)  Check database parameter for star schema table for InfoCube ZMM_MVAL
    564971 units missing from fact table /BIC/FZMM_MVAL; see details
    Message no. RSRV134
    Diagnosis
    In the fact table /BIC/FZMM_MVAL records have been found that contain values other than zero for key figures that have units, but that have no value for the unit of the key figure. Since the value of the unit has to correspond to the value of the key figure, this inidicates an error when the data was loaded. The values of the units have not been loaded into BW correctly. Choose Details to display the incorrect records.
    2)  Consistency of time dimension of InfoCube ZMM_MVAL
    /BIC/FZMM_MVAL PARTITIONED 1878 ( 30 - 50 )
    Please advise me on this.
    Thanks in Advance.
    Aparna

    As mentioned in the log, check the Unit KFs in your cube and make sure that unit is populated for all such values.
    e.g. if Qty is 5 KG, then unit KF will have 5 and unit info object should have KF.
    Regards,
    Gaurav

  • Empty Precalculated Value Set Tables?

    We've successfully implemented Pre-calculated Value Sets in BW 3.5 using Reporting Agent.
    Does anyone know how to get rid of, or empty pre-calculated value set tables that you no longer need?  There are some reporting agent settings that I have deleted from reporting agent but they continue to appear in the Pre-calc value set variable as an available option when running the query.  It's like the setting got deleted from reporting agent but the underlying table didn't?
    Perhaps this is an issue for OSS but I thought I'd see if maybe there is an option I'm not aware of.
    Thanks,
    Chris

    Thanks - I also found OSS note 825017 that seems to address the issue as well.  We'll see if we can apply this note so we can get the ABAP program to delete or empty these tables.  I think that will resolve the issue.
    Thanks,
    Chris

  • Strange problem with Database LInk

    Hi Everyone,
    I have strange problem with Database Link in Oracle 11g Express Edition;
    There are two computers: computer-server and computer-client. Tnsnames.ora are the same on both computers ie.
    CT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof)(PORT = 1521))
    (CONNECT_DATA = (SERVICE_NAME = XE)
    I created database link :
    Create database link zdalny
    Connect to <user_id> identified by <password>
    using ‘CT’;
    Client can’t connect with server when I am using above command. But when I change “using” for using ‘krzysztof:1521’ or using ‘krzysztof’ or using ‘server IP:1521’ – everything is ok.
    Why I am asking. Because in all materials which I am reading about Oracle command with using ‘CT’ should be working correct. But there is not. Do you know, why?
    Thanks in advance and apologize for my English.
    Rgds
    Krzysztof

    Krzysztof Szymaniak wrote:
    Thanks for all replies.
    Below is server's tnsnames.ora
    CT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specifie
    Rgds
    Krzysztof
    PS. I tried with using 'XE' - not working.Assuming that is the correct tnsnames, of course XE is not working. You don't have a tnsnames entry for 'XE'.
    You need to be aware that when using a dblink, the client is the db in which the link is defined, not the desktop from which you connect to that database.
    I think you need to start here:
    http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/
    http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/ (Help! I can’t connect to my database )
    http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/ (Help! I can’t connect to my database (part duex) )
    The fact that your client (db link) is a database doesn't change anything taught in the above.

  • Oracle Database link for AS400

    Hi
    i have two (2) database servers
    1) Oracle 9i server
    2) AS400 server
    I want to create Oracle DataBase Link for AS400.
    means i just want to connect AS400 system from oracle prompt by using
    oracle database link.
    please anybody help me in detail
    Nasir,

    There is two method.
    One of that
    (1) Buy Oracle Transparent Gateway for AS400/DB2 and install it to AS400.
    (2) Set tnsnames.ora for connecting to AS400/DB2.
    (3) Create database link
    http://download-west.oracle.com/docs/html/A97615_01/toc.htm
    Another of that
    (1) Get odbc driver for AS400/DB2 (on your OS executing Oracle)
    (2) Set listener.ora, inithsodbc.ora and tnsnames.ora.
    (3) Create database link
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96544/gencon.htm#1004729

  • Problem when querying OLAP for Value based hierarchy

    Hi I have problem when querying OLAP for value based hierarchy , for level based dimension it work fine
    the strange part is if I only put one value, it will work perfectly
    for example if I put only 1 value for that value base hierarchy like CF_HIER::426362, then it will get the correct value for that id 426362
    but if I put multiple value to the list
    CF_HIER::426362
    CF_HIER::424470
    CF_HIER::429073
    CF_HIER::424230
    then only some value will come out correctly, some of them will be 0, I wonder why because if I query using each value, then it show correct value
    for multiple value usually only the top in hirarchy give correct value, but the leaf will give 0, but if I query only the leaf, the leaf will give correct value
    this problem only happen for my value based hierarchy, for the level based hierarchy it work fine both for each value or multiple value in the list
    this is the code how I guery
    ////the "elementIdList" is where the value is (CF_HIER::426362,CF_HIER::424470,CF_HIER::429073,CF_HIER::424230), if I only put single value in this list the query work fine, but if I put multiple value then some value give correct result, some will give 0
    String[] elementIdArr = new String[elementIdList.size()];
              int i = 0;
              for (Long elementId: elementIdList) {
                   String elementIdStr ="";
                   if (hierarchy instanceof MdmLevelHierarchy)
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            level.getName()+dimension.getValueSeparationString()+
                                            level.getName()+"_"+elementId;
                   else
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            elementId;
                   elementIdArr[i++] = elementIdStr;
              Source myList = dp.createListSource(elementIdArr);
              result = hierarchy.getSource().selectValues(myList);
         Source joinedSource = measure.getSource();
              joinedSource = joinedSource.join(result );
    is there any suggestion where I'm doing wrong?or is it different between querying value based hier with level based hier?
    thanks

    Hi I have problem when querying OLAP for value based hierarchy , for level based dimension it work fine
    the strange part is if I only put one value, it will work perfectly
    for example if I put only 1 value for that value base hierarchy like CF_HIER::426362, then it will get the correct value for that id 426362
    but if I put multiple value to the list
    CF_HIER::426362
    CF_HIER::424470
    CF_HIER::429073
    CF_HIER::424230
    then only some value will come out correctly, some of them will be 0, I wonder why because if I query using each value, then it show correct value
    for multiple value usually only the top in hirarchy give correct value, but the leaf will give 0, but if I query only the leaf, the leaf will give correct value
    this problem only happen for my value based hierarchy, for the level based hierarchy it work fine both for each value or multiple value in the list
    this is the code how I guery
    ////the "elementIdList" is where the value is (CF_HIER::426362,CF_HIER::424470,CF_HIER::429073,CF_HIER::424230), if I only put single value in this list the query work fine, but if I put multiple value then some value give correct result, some will give 0
    String[] elementIdArr = new String[elementIdList.size()];
              int i = 0;
              for (Long elementId: elementIdList) {
                   String elementIdStr ="";
                   if (hierarchy instanceof MdmLevelHierarchy)
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            level.getName()+dimension.getValueSeparationString()+
                                            level.getName()+"_"+elementId;
                   else
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            elementId;
                   elementIdArr[i++] = elementIdStr;
              Source myList = dp.createListSource(elementIdArr);
              result = hierarchy.getSource().selectValues(myList);
         Source joinedSource = measure.getSource();
              joinedSource = joinedSource.join(result );
    is there any suggestion where I'm doing wrong?or is it different between querying value based hier with level based hier?
    thanks

  • Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long.

    Hello Friends,
    The background is I am working as conversion manager and we move the data from oracle to SQL Server using SSMA and then we will apply the conversion logic and then move the data to system test ,UAT and Production.
    Scenario:
    Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long. Both the databases are in the same server.
    Questions are…
    What is best option?
    IF we use the SSIS it’s very slow and taking 17 hours (some time it use to stuck and won’t allow us to do any process).
    I am using my own script (Stored procedure) and it’s taking only 1 hour 40 Min. I would like know is there any better process to speed up and why the SSIS is taking too long.
    When we move the data using SSIS do they commit inside after particular count? (or) is the Microsoft is committing all the records together after writing into Transaction Log
    Thanks
    Karthikeyan Jothi

    http://www.dfarber.com/computer-consulting-blog.aspx?filterby=Copy%20hundreds%20of%20millions%20records%20in%20ms%20sql
    Processing
    hundreds of millions records can be done in less than an hour.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Query to table in Database Link returns value from local table

    Hi
    I made a databaselink (Create database link db_a.world connect to db_a identified by <user> using 'db_a.world')
    Then I query a table, connected as a user in db_b.world (this is our developer database - identical to db_a): Select count(*) from table@db_a.world.
    When I get the result - it comes from the database I am logged in to (db_b)! - This is easy to check, because when I run select count(*) from table - it shows the same number. When I connect to the remote database, the same query shows another (correct) number.
    When I created the database link, Oracle demanded a loopback clause. Why is that, and can this be the reason for the strange behaviour?
    Thanx
    Anders
    Narvik, Norway

    Hi Anders,
    A loopback database link is when you want to test connecting to the same database as say a different user. It can be used for testing purposes. Creating a database link doesn't require a loopback clause. The reason why you are getting the same row count as db_b.world because db_a.world has been created as a loopback link.
    In the example you have Create database link db_a.world connect to db_a identified by <user> using 'db_a.world' , the clause after 'connect to' is meant to be the username and the clause after 'identified by' is meant to be the password.
    So, create a regular database link like this:
    create database link db_a_link connect to <user> identified by <passwd> using <service name>
    You shouldn't get an error message that the loopback clause has to be specified. Then try querying and hopefully it will work.
    -Raj

  • Problem with "Database Gateway for SQL Server"

    Hello,
    i am testing the different technologies for connecting an oracle database with a sql-server database.
    The way using 10g-generic-connectivity with ODBC works fine, but the 11g-DG4MSQL makes problems.
    Environment:
    Server PEGASUS (32bit Windows Server 2003 R2 SP2) with Oracle Database 10g Release 10.2.0.4.0
    Server OBELIXUS (32bit Windows 2000 Sp4) with MS-SQL-Server 2005
    On PEGASUS i have installed the gateway in a new oracle home directory:
    "D:\oracle\product\10.2.0\db_1" => home directory of 10g
    "D:\oracle\product\11.1.0\tg_1\" => home directory of the gateway
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora:
    MSSQLDG =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DG4MSQL)
    (HS = OK)
    MSSQL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = MSSQLTEST)
    (HS = OK)
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = INTEGRAT)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_NAME = INTEGRAT)
    (SID_DESC =
    (SID_NAME = MSSQLTEST)
    (PROGRAM = D:\oracle\product\10.2.0\db_1\bin\hsodbc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_DESC=
    (SID_NAME=DG4MSQL)
    (ORACLE_HOME=D:\oracle\product\11.1.0\tg_1)
    (PROGRAM=D:\oracle\product\11.1.0\tg_1\BIN\dg4msql)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = pegasus.cursor.de)(PORT = 1521))
    D:\oracle\product\11.1.0\tg_1\dg4msql\admin\initDG4MSQL.ora:
    HS_FDS_CONNECT_INFO=OBELIXUS/MSSQLSERVER/testuju
    HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    D:\oracle\product\10.2.0\db_1\hs\admin\initMSSQLTEST.ora:
    HS_FDS_CONNECT_INFO=DSN_MSSQL
    HS_FDS_TRACE_LEVEL=OFF
    HS_LANGUAGE=AMERICAN_AMERICA.WE8MSWIN1252
    HS_FDS_FETCH_ROWS=100
    HS_RPC_FETCH_REBLOCKING=OFF
    How mentioned above, the access from oracle to sqlserver using MSSQL(10g hsodbc.exe) works fine.
    But when trying to acces the sqlserver using MSSQLDG (11g dg4msql.exe) I get the following error:
    ORA-28500: Verbindung von ORACLE zu Fremdsystem gab diese Nachricht zurück:
    [Oracle][ODBC SQL Server Driver][DBNETLIB]Ungültige Verbindung.
    [Oracle][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (ParseConnectParams()).
    [Oracle][ODBC SQL Server Driver]Ungültiges Attribut für die Verbindungszeichenfolge
    ORA-02063: vorherige 2 lines von DBL_MSSQL4
    Here the contect of the file "DG4MSQL_agt_2332.trc":
    Oracle Corporation --- FREITAG AUG 22 2008 16:17:42.198
    Heterogeneous Agent Release
    11.1.0.6.0
    Oracle Corporation --- FREITAG AUG 22 2008 16:17:42.198
    Version 11.1.0.6.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    HOSGIP returned value of "RECOVER" for HS_FDS_RECOVERY_ACCOUNT
    HOSGIP returned a value for HS_FDS_RECOVERY_PWD
    setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL16UTF16"
    setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "FALSE"
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics"
    Exiting hgosdip, rc=0
    ORACLE_SID is "DG4MSQL"
    Product-Info:
    Port Rls/Upd:6/0 PrdStat:0
    Agent:Oracle Database Gateway for MSSQL
    Facility:hsa
    Class:MSSQL, ClassVsn:11.1.0.6.0_0006, Instance:DG4MSQL
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=2000
    HOCXU_DB_CSET=178
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2008/08/22-16:17:42
    RC=-1 from HOSGIP for "PATH"
    PATH from environment is "d:\oracle\product\11.1.0\tg_1\bin;D:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\IBM\Informix\Client-SDK\bin"
    Exiting hgolofn, rc=0 at 2008/08/22-16:17:43
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    Exiting hgoinit, rc=0 at 2008/08/22-16:17:43
    Entered hgolgon at 2008/08/22-16:17:43
    reco:0, name:testuju, tflag:0
    Entered hgosuec at 2008/08/22-16:17:43
    uencoding=UTF16
    Entered shgosuec at 2008/08/22-16:17:43
    Exiting shgosuec, rc=0 at 2008/08/22-16:17:43
    shgosuec() returned rc=0
    Exiting hgosuec, rc=0 at 2008/08/22-16:17:43
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using testuju as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2008/08/22-16:17:43
    HS_FDS_CONNECT_INFO = "OBELIXUS/MSSQLSERVER/testuju"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2008/08/22-16:17:43
    dsn:OBELIXUS/MSSQLSERVER/testuju, name:testuju
    optn:
    Entered shgogohn at 2008/08/22-16:17:43
    ohn is 'OraGtw11g_home1'
    Exiting shgogohn, rc=0 at 2008/08/22-16:17:43
    Entered hgocont_OracleCsidToIANA at 2008/08/22-16:17:43
    Returning 2252
    Exiting hgocont_OracleCsidToIANA at 2008/08/22-16:17:43
    ##>Connect Parameters (len=223)<##
    ## DRIVER=Oracle 11g dg4msql-OraGtw11g_home1;
    ## SERVER=OBELIXUS\MSSQLSERVER;
    ## Database=testuju;
    #! UID=testuju;
    #! PWD=*
    ## AnsiNPW=Yes;
    ## QuotedId=Yes;
    ## IANAAppCodePage=2252;
    ## ArraySize=100;
    ## PadVarbinary=0;
    ## SupportNumericPrecisionGreaterThan38=1;
    Exiting hgogenconstr, rc=0 at 2008/08/22-16:17:44
    Entered hgopoer at 2008/08/22-16:18:00
    hgopoer, line 159: got native error 14 and sqlstate 08001; message follows...
    [Oracle][ODBC SQL Server Driver][DBNETLIB]Ungültige Verbindung.[Oracle][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (ParseConnectParams()).[Oracle][ODBC SQL Server Driver]Ungültiges Attribut für die Verbindungszeichenfolge
    Exiting hgopoer, rc=0 at 2008/08/22-16:18:00
    hgocont, line 1890: calling SqlDriverConnect got sqlstate 08001
    Exiting hgocont, rc=28500 at 2008/08/22-16:18:00 with error ptr FILE:hgocont.c LINE:1910 ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2008/08/22-16:18:00 with error ptr FILE:hgolgon.c LINE:612 ID:Calling hgocont
    Entered hgoexit at 2008/08/22-16:18:00
    Exiting hgoexit, rc=0 at 2008/08/22-16:18:00
    Many thanks in advance for any help!
    Regards Hartmut

    At first your configuration is not really correct.
    =====================================================
    In the LISTENER.ORA from 10g, you must only refer to the database and hsodbc 10g
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = INTEGRAT)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_NAME = INTEGRAT)
    (SID_DESC =
    (SID_NAME = MSSQLTEST)
    (PROGRAM = D:\oracle\product\10.2.0\db_1\bin\hsodbc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = pegasus.cursor.de)(PORT = 1521))
    ===========================================================
    Then you have to create a new listener (new name) in the gateway oracle_home on a different port than instance database:
    D:\oracle\product\11.1.0\tg_1\network\admin\listener.ora
    SID_LIST_LISTENERGTW =
    (SID_LIST =
    (SID_DESC=
    (SID_NAME=DG4MSQL)
    (ORACLE_HOME=D:\oracle\product\11.1.0\tg_1)
    (PROGRAM=D:\oracle\product\11.1.0\tg_1\BIN\dg4msql)
    LISTENERGTW=
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pegasus.cursor.de)(PORT = 1522))
    To start it, use the command below:
    D:\oracle\product\11.1.0\tg_1\bin\LSNRCTL start listenergtw
    ===========================================================
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora:
    match the DG4MSQL with the listener on 1522 port
    HSODBC match with binary10g on listener 1521 port
    MSSQLDG =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1522))
    (CONNECT_DATA =(SERVICE_NAME = DG4MSQL))
    (HS = OK)
    MSSQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1521))
    (CONNECT_DATA =(SERVICE_NAME = MSSQLTEST))
    (HS = OK)
    Try to configure and let me know your feedback
    regards,
    Mireille

Maybe you are looking for

  • Seriously...Now I have to figure out why audio doesn't match video

    Good grief, come on!! I shot the video with a brand new HD canon.  I imported the video and it plays fine in the program manager (audio in synch).  However, after exporting (h.264) audio is out of wack by a few frames. I refuse to shell out $40 for s

  • How can i play a whole album rather than one song at a time

    I have just purchased a ipod Nano 6th generation to use whilst cycling. I've tried it out indoors and it only seems to play one song at a time I would like to listen to an album or play list without stopping. how do I do this??????

  • Database contains stale optimizer statistics

    I am upgrading from oracle 9.2.0.7 to 10.2.0.3 , During inital stages I get the following warning message "WARNING: --> Database contains stale optimizer statistics. .... Refer to the 10g Upgrade Guide for instructions to update" .How can I handle th

  • Only one Message Driven Bean

    hi i have some heavy calculating beans and i want that only one EJB is calculating at one time. can i do this by using Message Driven Beans? is it possible that the server creates only one Message Driven Bean at one time and gets the next one out of

  • Adobe captivate installed but doesnt gets open it hangs

    I installed trial version Adobe Captivate 8 on my machine but the application doesn't opens it continuously loading.