Strange problem with an Oracle database link to SQL Server

Hi gurus,
Please help me on this problem.
We have an Oracle 10R2 database link to a SQL Server 2000 database. I can select count(*) from The_SQL_Server_Table@myOracleLink, and I can describe The_SQL_Server_Table@myOracleLink, but I cannot select Column1 from The_SQL_Server_Table@myOracleLink! I am getting the ORA-00904: "COLUMN1": invalid identifier error.
Could anyone tell me what is wrong here? By the way, the same user name can select all the columns in The_SQL_Server_Table through ODBC from the client app. But I need the DB link to work with some Oracle stored functions.
Thank you!
Ben

myora9i wrote:
Hi gurus,
Please help me on this problem.
We have an Oracle 10R2 database link to a SQL Server 2000 database. I can select count(*) from The_SQL_Server_Table@myOracleLink, and I can describe The_SQL_Server_Table@myOracleLink, but I cannot select Column1 from The_SQL_Server_Table@myOracleLink! I am getting the ORA-00904: "COLUMN1": invalid identifier error.
Could anyone tell me what is wrong here? By the way, the same user name can select all the columns in The_SQL_Server_Table through ODBC from the client app. But I need the DB link to work with some Oracle stored functions.
Thank you!
Bennotice "COLUMN1" is different from "Column1"
CaSe MaTTerS!

Similar Messages

  • Problem with making a database link.

    Hello All
    I got a problem with making a database link.
    When I execute this query
    CREATE PUBLIC DATABASE LINK DBNAME
    CONNECT TO database IDENTIFIED BY name
    USING 'DBNAME.europe.company.com';
    I am using other names because its private information
    But when I look at the table dba_db_links I see this
    OWNER | DB_LINK | USERNAME |HOST
    PUBLIC| DBNAME.europe.company.com| name| DBNAME.europe.company.com
    So the DB_Link name is changed. And this causes a problem with my asp website. I get the fault message
    ORA-02085: database link DBNAME.europe.company.com connects to DBNAME
    Cause: a database link connected to a database with a different name. The connection is rejected.
    The global_names = true and I prefer to keep it that way.
    So does anyone knows what is wrong about my Query or how I can change the DB_Link name.
    Thanks for the support,
    Remco

    Thanks for the help Mohit
    But thats whats I was doing.
    The query in the first post is the same as what you are posting.
    But by an (for me) unknown reason the database converts DBNAME to DBNAME.europe.company.com

  • Oracle 11G Linux ( Oracle Database Gateway for SQL Server 11.1.0.6.0. )

    Hi,
    I am tring Gateway for SQL Server ..
    I want to Select Oracle Database Gateway for SQL Server 11.1.0.6.0 at the time of installation, but It is not coming in the Avaliable Components List..
    Is there any prerequisite for SQL server ?
    Any Help please ?

    Are you following the "Step Through the Oracle Universal Installer" section under
    http://download.oracle.com/docs/cd/B28359_01/gateways.111/b31043/sqlserver.htm#CCHEDECC
    ?

  • Migrate  oracle database to Microsoft sql server 2005

    Hi All,
    I have to migrate production oracle database to Microsoft sql server 2005. Below are the details:
    Oracle database version: 8.1.7.4
    Platform : Aix
    Kindly help me out

    Well, the traditional way would be to dump out all your data from Oracle tables as comma delimited flat files and import into SQL server. Plenty of examples online, like this is one by Mark Powell: http://www.jlcomp.demon.co.uk/faq/flatfile.html
    Or if you have the budget you could think about buying a data mapping tool like File-Aid
    As mentioned by another poster, you will still need to figure out how to replace all your triggers, stored procedures, etc on your new platform of course.

  • Problems with query via Database-Link (Oracle 7.3.4)

    I made the following simple query via database-link.
    select count (*) from [email protected]
    I got the result in about 200 miliseconds.
    Then I4ve tried the following query.
    select * from [email protected]
    It took about 2 hours end ended with an error message "ORA-03113: end-of-file on communication channel"
    So I made another choice
    select * from [email protected] where rownum <=1
    Took about 200 miliseconds.
    So I made the query again an changed only the number of rownums,until I was at rownum <=8
    then it went sleeping again(I've canceled the statement because I didn't want to wait 2 hours again).
    We made the same things from another server with the same database-link on the same remote server
    and we had no problems.
    Any Idea???

    No, network is OK!
    Other links are running, I have also no problems when I connect directly to the remote server.

  • Strange problem with automattic start database on linux

    HI,
    We have Redhat Version 4.(update )
    or
    Oracle Version 10.1.0.2.0
    we followed instruction mention in documentation. ( 10gr2) for automatic startup database when linux system reboot.
    after create above script and followed all mention point when we reboot our linux machine it is hang.
    Problem>>>
    when we reboot our linux system. it HANG !!!! nothing happen..
    On enabling swap space            [ok]
    | cursor blinksir please tell me How can open my linux machine... please anybody give me any type of advice..
    thank you very much.
    nomini.

    Hi,
    thank your for your help and reply
    but i am not able to open my linux machine so how can i update my oracle startup script.
    it is hang during booting time ( linux server)
    actually what happen.
    i made script and just for test i reboot my linux machine.
    every thing goes fine but "oracle startup script" run it will hang !!!
    i know it is something wrong with my oracle startup script.
    but without open my linux box i cann't do anything.
    so
    i have to first FIX linux problem
    then i FIX my oracle script problem
    hope you reply and understand my problem
    thank you very much
    nomini

  • Problems with deploying cmproster example using ms sql server as database

    hi to all,
    im new to ejb and i like to learn by doing the examples given in the j2ee tutorial. i want to deploy the cmproster with a bit of modification...i want to use ms sql server as the database..i have configured the data source and connection pools correctly..and when i run the Client Application there is no error. The database seems fine it was populated correctly..only some of the values become null..
    Here is the sample output from the client app:
    P7 null null 777.0
    P8 null null 65.0
    P10 null null 100.0
    P6 null null 555.0
    P9 null null 100.0
    The two columns should be strings...i look at the server.log and there where errors:
    Error while getting value from resultset at index 2 as resultType 21columnSqlType=JDO76: 12.Exception java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
    I think thats the culprit...Can anyone help me on this? tnx
    Note:
    By the way im using sun.jdbc.odbc.JdbcOdbcDriver for the jdbc driver
    Thanx
    -oyam

    Hi Michael,
    At this time SQL Server 2000 is not certified for WLCS 3.5. Since the
    schema has changed between 3.2 and 3.5, running the 3.2 scripts is not a
    good idea.
    I can tell you that certification is in progress for SQL Server 2000. Your
    best bet is to contact your Sales Representative to get an idea of when
    certification might be coming.
    I hope this helps.
    - Ginny
    "Michael Schulz" <[email protected]> wrote in message
    news:[email protected]..
    I'm using WebLogic 6.0sp1 with Commerce Server 3.5 and I've successfully
    installed the demo. I would like to create another commerce server
    installation, this time using Microsoft SQL Server 2000 as the database
    instead of Cloudscape. I've downloaded and installed the BEA jDriver
    for MS SQL 7/2000 and tested it using dbping. My question is: where are
    the db scripts for creating and populating the commerce database? I've
    found the WLCS_320_DB_DDL_1.1.zip file on the BEA downloads site, but
    I'm concerned that this schema is for Version 3.20 of Commerce Server.
    Is there a similar file for WLCS 3.50? If not, is it safe to use this
    one?
    If this is posted in the wrong place, please let me know and I'll repost
    to the appropriate newsgroup as required.
    Sincerely,
    Michael Schulz

  • Database link to SQL Server Init error

    Hi all,
    i´m tryng to create a dblink between Oracle 10.2.0 in a RHEL4 and a SQL Server.
    I can connect using isql but when i try using sqlplus i obtain this error:
    SQL> CREATE DATABASE LINK dbl
    CONNECT TO "user"
    IDENTIFIED BY "pwd"
    USING 'hsodbc'; 2 3 4
    Enlace con la base de datos creado.
    SQL> SELECT * FROM Table_1@dbl;
    SELECT * FROM Table_1@dbl
    ERROR en línea 1:
    ORA-28545: error diagnosticado por Net8 al conectar a un agente (error in Net8 while connecting an agent)
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: 2 lines precediendo a DBL
    This is the error explanantion in Oracle Docs:
    I think the problem is the ini file inithsodbc.ora.
    inithsodbc.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    # AAB - Parametros para asociar un agente ODBC al HS
    HS_FDS_CONNECT_INFO = MSQLS
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_SHAREABLE_NAME =/usr/local/freetds/lib/libtdsodbc.so
    HS_AUTOREGISTER = true
    # ODBC specific environment variables
    set ODBCINI=/home/oracle/.odbc.ini
    listener.ora
    # listener.ora Network Configuration File: /app/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = STA2)
    (ORACLE_HOME = /app/oracle/oracle/product/10.2.0/db_1)
         (SID_DESC = (SID_NAME=hsodbc)
    (ORACLE_HOME=/app/oracle/oracle/product/10.2.0/db_1)
    (PROGRAM=hsodbc)
                             (ENVS=LD_LIBRARY_PATH=/app/oracle/oracle/product/10.2.0/db_1/lib:/usr/local/lib)
    LISTENER =
         (DESCRIPTION =
         (ADDRESS_LIST =
              (ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr2.hi.inet)(PORT = 1521))
    tnsnames.ora
    # tnsnames.ora Network Configuration File: /app/oracle/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    DEVSTA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr.hi.inet)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = devSTA)
    STA2 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr2.hi.inet)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = STA2)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    STA =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr2.hi.inet)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = STA)
    #AAB - Descripcion de servicio para conectar con SQLServer
    HSODBC = (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)
    (HOST=nemesisgr2.hi.inet)
    (PORT=1521)
    (CONNECT_DATA = (SID=hsodbc)
    (HS = OK)
    ODBC Files
    odbc.ini
    [ODBC Data Sources]
    MSQLS = Microsoft SQL Server
    [MSQLS]
    Driver = /usr/local/freetds/lib/libtdsodbc.so
    Description = Microsoft SQL Server
    Trace = No
    Servername = sqlserver
    Database = master
    [Default]
    Driver = /usr/local/freetds/lib/libtdsodbc.so
    odbcinst.ini
    [PostgreSQL]
    Description          = ODBC for PostgreSQL
    Driver          = /usr/lib/libodbcpsql.so
    Setup          = /usr/lib/libodbcpsqlS.so
    FileUsage          = 1
    [MSQLSDRIVER]
    Description          = Driver for MS SQL Server
    Driver          = /usr/local/freetds/lib/libtdsodbc.so
    Setup          = /usr/lib64/libtdsS.so
    FileUsage          = 1
    UsageCount          = 5
    freetds.conf
    # $Id: freetds.conf,v 1.12 2007/12/25 06:02:36 jklowden Exp $
    # This file is installed by FreeTDS if no file by the same
    # name is found in the installation directory.
    # For information about the layout of this file and its settings,
    # see the freetds.conf manpage "man freetds.conf".
    # Global settings are overridden by those in a database
    # server specific section
    [global]
    # TDS protocol version
    ;     tds version = 4.2
         # Whether to write a TDSDUMP file for diagnostic purposes
         # (setting this to /tmp is insecure on a multi-user system)
    ;     dump file = /tmp/freetds.log
    ;     debug flags = 0xffff
         # Command and connection timeouts
    ;     timeout = 10
    ;     connect timeout = 10
         # If you get out-of-memory errors, it may mean that your client
         # is trying to allocate a huge buffer for a TEXT field.
         # Try setting 'text size' to a more reasonable limit
         text size = 64512
    # A typical Sybase server
    [egServer50]
         host = symachine.domain.com
         port = 5000
         tds version = 5.0
    # A typical Microsoft server
    [egServer70]
         host = ntmachine.domain.com
         port = 1433
         tds version = 7.0
    # Test MS SQl Server
    [sqlserver]
         Database = master
         host = pruebas.hi.inet
         port = 1433
         tds version = 7.0
    Any ideas??
    Thanks in advance.
    Alex

    I have changed the inithsodbc.ora file including:
    HS_FDS_SHAREABLE_NAME =/usr/lib/libodbc.so (I have ODBC installed)
    Here you are the other information:
    lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 23-OCT-2008 09:29:52
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Bienvenido a LSNRCTL, escriba "help" para obtener información.
    LSNRCTL> status
    Conectándose a (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=nemesisgr2.hi.inet)(PORT=1521)))
    ESTADO del LISTENER
    Alias LISTENER
    Versión TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Fecha de Inicio 22-OCT-2008 19:31:34
    Tiempo Actividad 0 días 13 hr. 58 min. 29 seg.
    Nivel de Rastreo off
    Seguridad ON: Local OS Authentication
    SNMP OFF
    Parámetros del Listener /app/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log del Listener /app/oracle/oracle/product/10.2.0/db_1/network/log/listener.log
    Recibiendo Resumen de Puntos Finales...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=nemesisgr2)(PORT=1521)))
    Resumen de Servicios...
    El servicio "STA" tiene 1 instancia(s).
    La instancia "STA", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STA2" tiene 2 instancia(s).
    La instancia "STA2", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
    La instancia "STA2", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STA2XDB" tiene 1 instancia(s).
    La instancia "STA2", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STA2_XPT" tiene 1 instancia(s).
    La instancia "STA2", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STAXDB" tiene 1 instancia(s).
    La instancia "STA", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STA_XPT" tiene 1 instancia(s).
    La instancia "STA", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "hsodbc" tiene 1 instancia(s).
    La instancia "hsodbc", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
    El comando ha terminado correctamente
    LSNRCTL>
    hsodbc
    There is no output executing this command.
    [oracle@nemesisgr2 ~]$ /app/oracle/oracle/product/10.2.0/db_1/bin/hsodbc
    [oracle@nemesisgr2 ~]$
    tnsping hsodbc
    [oracle@nemesisgr2 ~]$ tnsping hsodbc
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 23-OCT-2008 09:35:58
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Archivos de parámetros utilizados:
    /app/oracle/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    Adaptador TNSNAMES utilizado para resolver el alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp) (HOST=nemesisgr2.hi.inet) (PORT=1521)) (CONNECT_DATA = (SID=hsodbc)) (HS = OK))
    Realizado correctamente (40 mseg)
    Rgds,
    Alex

  • Creating a database link to SQL server

    Hi All,
    How can I create a database link from Oracle9i Enterprise Edition Release 9.2.0.1.0 DB to MS SQL Server database.
    Thanking You
    Regards Lakmal

    It depends on your requirements.
    You can use either Generic Connectivity or Transparent Gateways.
    More information can be found here:
    http://www.oracle.com/technology/products/gateways/index.html

  • Problem of Teststand3.1 database and microsoft SQL Server 2000 personal edition

    I have a problem when using teststand database function with Microsoft sql server 2000. the error(seen in attached screenshot3.jpg) is:
    "An error occurred calling 'LogResults' in 'ITSDBLog' of 'DBLog 1.0 Type Library'
    An error occurred executing a statement.
    Schema: Generic Recordset (NI).
    Statement: UUT_RESULT.
    [Microsoft][ODBC SQL Server Driver][SQL Server]unable to insert NULL value to column "ID", table "test.dbo.UUT_RESULT";This column is not alowed to be blank. INSERT Failed. Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    [Microsoft][ODBC SQL Server Driver][SQL Server]terminated.
    Source: TSDBLog"
     Here I listed my proceess.
    1, Configure in SQL Sever, please see attached screenshot0.jpg
       a, Open SQL
       b, build a new database with the name of test
       c, import the data from "C:\Program Files\National Instruments\TestStand 3.1\Components\NI\Models\TestStandModels\Database\TestStand Results.mdb"
    2, Configure Microsoft SQL sever: please see attached screenshot1.jpg
       a, Open windows Control Panel and select "Data Sources (ODBC). Under system DSN tab, add a SQL server data source
    3, Configure teststand database option, see attached screenshot2.jpg
       a, configure logging option, enable
       b, configure datalink
       c, select schemas of "Generic recordset (NI)
       d, No change on the tabs of "statements" and "Columns/Parameters"
    4, run an seqence file with the proess model of SequentialModel.Seq.
    Attachments:
    Screenshot.zip ‏425 KB

    Thanks Scott,
      The database function is OK now after I changed imported tables in SQL Sever.
      Actually, I once tried anothor method that you refered by using the scripts
    located at: <TestStand>\Components\NI\Models\TestStandModels\Database\SQL Server Create Generic Recordset Result Tables.sql. Attached is the error screenshots, please help me on this.
    Thanks
    Jacky
    Attachments:
    Error.jpg ‏59 KB

  • How to share and Access DB (.accdb) with global tables that link to SQL Server tables without having to define ODBC connections on each client PC?

    I have an Access DB with quite a few Linked Tables that point to a SQL Server backend db.  Currently I am using an ODBC connection defined on my pc, but I want other users to be able to download the .accdb file from a share and run.  Will I have
    to define this odbc connection on each client's pc?  Is there a better way to do this without having to have each client manually set this up on their PC?

    I have an Access DB with quite a few Linked Tables that point to a SQL Server backend db.  Currently I am using an ODBC connection defined on my pc, but I want other users to be able to download the .accdb file from a share and run.  Will
    I have to define this odbc connection on each client's pc?  Is there a better way to do this without having to have each client manually set this up on their PC?
    Hi Jason,
    I think you can automate that process. In each application I use a one-record-table in the FE with a field Connected. Connected is default False.
    Starting a database in the development mode ignores this flag. Starting a database in production mode starts, if Not Connected, a procedure to RefreshLink the tables to the BE, and makes Connected = TRUE, so a next startup does not
    result in a new RefreshLink.
    Instead of a Boolean you could also use a string containing the path, or whatever you want.
    Imb.

  • DATABASE LINK FOR SQL SERVER

    Hi all,
    We are running SAP 4.7C with oracle database.  For other oracle (non-sap) we are using DBCO to get/put data.  Now we have to do the same in SQL server also. In addition to SAP standard table we are sending data of customer table (Z & Y series).  Can anybody guide me how to send / receive data using bapi/rfc or some other method.
    regards
    balakumar

    Hi!
    For using native-SQL with MSSQL database you have to make your database requests from application server resides on windows platform. So, your basis people have to set up one more windows-based application server instance. There is no impact on backend R/3 database.
    Regards,
    Maxim.

  • Problem with creating oracle database

    I am trying to create a new database in one of customers computers, using Database Administration Assistant. The wizard goes until "Adding Oracle Text" then I get an error message without any description. Then jump out of wizard quickly with no other option.
    I am getting mad of it because the deadline is coming and I don't know what to do.
    PLEASE HELP ME SOON.
    Mehran

    Hello,
    If DBCA doesnt work you can try to create manually Here are the steps to create manual db on Windows.
    ## Manual DB creation on Windows
    C:\>set ORACLE_SID=JUNK
    C:\>oradim -NEW -SID JUNK -STARTMODE auto -SYSPWD testing123 -PFILE d:\oracle\admin\JUNK\pfile\init.ora
    Instance created.
    C:\>sqlplus sys/testing123 as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 24 14:25:29 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup nomount pfile=d:\oracle\admin\JUNK\pfile\init.ora
    ORACLE instance started.
    Total System Global Area 293601280 bytes
    Fixed Size 1248624 bytes
    Variable Size 92275344 bytes
    Database Buffers 197132288 bytes
    Redo Buffers 2945024 bytes
    SQL> create database JUNK
    2 maxlogfiles 32
    3 maxlogmembers 3
    4 maxloghistory 1
    5 maxdatafiles 254
    6 maxinstances 1
    7 character set WE8ISO8859P1
    8 datafile 'e:\oradata\JUNK\system01.dbf' size 200m reuse autoextend on next 10240k
    9 sysaux datafile 'e:\oradata\JUNK\sysaux01.dbf' size 100m reuse
    10 undo tablespace undotbs1 datafile 'e:\oradata\JUNK\undotbs01.dbf' size 100m
    11 logfile
    12 group 1 (
    13 'e:\oradata\JUNK\redo01a.log',
    14 'e:\oradata\JUNK\redo01b.log'
    15 ) size 100m reuse,
    16 group 2 (
    17 'e:\oradata\JUNK\redo02a.log',
    18 'e:\oradata\JUNK\redo02b.log'
    19 ) size 100m reuse,
    20 group 3 (
    21 'e:\oradata\JUNK\redo03a.log',
    22 'e:\oradata\JUNK\redo03b.log'
    23 ) size 100m reuse
    24 controlfile reuse;
    Database created.
    # Run Catalog/Catproc as sysdba
    @D:\oracle\oracle10g\RDBMS\ADMIN\catalog.sql
    @D:\oracle\oracle10g\RDBMS\ADMIN\catproc.sql
    # Run Pupbld.sql as system
    conn system/manager
    @D:\oracle\oracle10g\sqlplus\admin\pupbld.sql
    -Sri

  • How to create a database link to SQL Server from a RAC environment

    We have a 4 node RAC running 11.2.0.3 binaries on 64-bit linux.
    Grid owns the listener named listener.
    Oracle owns the database.

    Thanks all! But I tried to configure and I am getting
    TNS-01201: Listener cannot find executable /u01/app/oracle/product/11.2.0.3/dbhome_1/bin/InfoEdb10 for SID InfoEdb10
    Listener failed to start. See the error message(s) above...
    So! What I did was
    1. Configure the odbc from the OS (only one node) and create the DSN and its odbc files.  connectivity works from Operating Systems.
    2. Create the listener entry (under GRID) user.
    3. Create the remotedb.ora file under $ORACLE_HOME/hs/admin
    --- Here is listener.ora file
    LISTENER_NODE1_TG =
       (DESCRIPTION_LIST =
        (DESCRIPTION =
           (ADDRESS = (PROTOCOL = TCP)(HOST = devrac-a-01-vip.cssd.pitt.edu)(PORT = 1549)(IP = FIRST))
           (ADDRESS = (PROTOCOL = TCP)(HOST = devrac-a-01.cssd.pitt.edu)(PORT = 1549)(IP = FIRST))
    SID_LIST_LISTENER_NODE1_TG =
       (SID_LIST =
           (SID_DESC =
             (SID_NAME = InfoEdb10)
             (ORACLE_HOME = /u01/app/oracle/product/11.2.0.3/dbhome_1)
             (ENVS = "LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0.3/dbhome_1/lib")
             (PROGRAM = InfoEdb10)
    any  help is appreciated

  • How to execute remote query by Oracle Database Link

    I use Oracle Database Link to query data from SQL Server. The query is like:
    select *
    from tableA@DL_SqlServer a
    join tableB@DL_SqlServer b
    on a.ID = b.ID*
    tableA and tableB is large and the result is relatively small. This query executes quickly in SQL Server since indexes are built both on the two tables. But it is very slow on Oracle Database Link to SQL Server.
    I guess the join operation is performed on Oracle side not on SQL Server side, thus the indexes are not used. Since I just need the joined result, I prefer to perform the query entirely on SQL Server and get the small result only. But I have no privilege to create views on SQL Sevrer.
    I konw that using SQL Server's linked server and OPENQUERY function can achieve this goal. I wonder how to do this on Oracle Database Link. Thanks!

    DO NOT DO THIS....specifically:
    "select *
    from tableA@DL_SqlServer a
    join tableB@DL_SqlServer b
    on a.ID = b.ID*"
    You would be better off to do the following:
    create a Materialized View in Oracle and once/day (or as frequently as you feel necessary) pull the data from SQLServer and then do the join locally by creating MV as TABLEA_MV and TABLEB_MV and then have views that have the REALTABLEA and REALTABLEB names that point to these MVs. This can be done without recompiling or changing your code. Trust me, I have seen this sort of thing in the past that completely crippled an IBM mainframe using DB2 along with a major network segment by having this sort of join via DB links. You must understand the ramifications of your "design" and I can tell you for certain that it is a very BAD!!! idea... Fix this before you are issuing another command: "alter DBA update resume/CV;"
    The app went into production at 7AM. By 9:30AM, the mainframe had executed more than 10Billion I/O's. It took > 15hrs for the mainframe to recover once we shutdown the app and implemented the view/MV described above.
    I will leave it as an excercise for the OP to develop the syntax for this.
    Edited by: onedbguru on Feb 15, 2013 7:27 PM

Maybe you are looking for

  • New IOS 7 Design in apps

    After updating new IOS 7, the background colors on Notes, Calendar, Contact are impossible to look at? Is there any way to change it, or should I just look to change from ipad, iphone to Google Nexus or Samsung Galaxy? which are getting better and be

  • Time Machine won't backup – but no error message

    Hi community, I'm using TimeMachine with MacOs Version 10.6.8, on an iMac with an 3.2 GHz Intel Core i3 Processor. Actually, I was pretty happy with it for several months, never had any error messages. But suddenly, TimeMachine started to backup the

  • How to get the complete path of the file that is selected using FormFile

    i m working on struts.. i hv used FormFile like <html:file property="xsdpath" value="Browse" /> need to get the whole path that i will select using browse button for example d:\foldername\filename.java but FormFile Api has a method getFileName(); whi

  • GRN against different SCN

    Dear All Pls help 1)Materials against certain PO line items have been received in full under different SCNs  while the rest of the line items have been received in part under different SCNs 2)GRNs need to be generated for the line items that have bee

  • PDF Reader render quality.

    Hi All, We have a problem with PDF Reader quality at Windows XP OS. We try to open the file with two transparent polygons drawn next to each other with small distance between. Here is the file: http://rapidshare.com/files/412484883/Test_Generated_Pro