Oracle Job in case of heterogenous services

I am trying to transfer some data automatically after every 30 min from MS Access to oracle. What I have done is-
1. Created a ODBC connection and DB link using that DSN and now I can access the data from Oracle to MS Access.
2. I have written a stored procedure that will transfer data from Access to Oracle.
3. Created a job that will execute the stored procedure after every 30 mins.
But when the job run it gives the following error.
ORA-04052: error occurred when looking up remote object ODMS.EMPLOYEE@ATTENDANCE
ORA-00604: error occurred at recursive SQL level 2
ORA-28513: internal error in heterogeneous remote agent
ORA-02063: preceding line from ATTENDANCE
Here, ODMS=schema name
Employee= Table name in MS Access
ATTENDANCE=Db link
Below is my Procedure
create or replace
procedure data_transfer_attendance
is
begin
execute immediate 'truncate table employee_oims' ;
insert into employee_oims select * from employee@ATTENDANCE;
end;
employee_oims=oracle table

1. my database link creation statements: create public database link ATTENDANCE  using 'ATTENDANCE (no user/pass was provided).
2. if I issue from SQLPLUS (as sysdba) select * from employee@ATTENDANCE, data get retrieved.
3. I I try to create the procedure from SQLPLUS it gives the following error-
Compilation errors for PROCEDURE SYS.DATA_TRANSFER_ATTENDANCE
Error: ORA-04052: error occurred when looking up remote object SYS.EMPLOYEE@ATTENDANCE
       ORA-00604: error occurred at recursive SQL level 1
       ORA-28513: internal error in heterogeneous remote agent
       ORA-02063: preceding line from ATTENDANCE
Line: 1
Text: create or replace procedure data_transfer_attendance
4. I h ave also tried after adding the "commit". Same result.
Thanks for your reply. Waiting for your suggestion.

Similar Messages

  • Setup heterogeneous service to connect MySQL from Oracle

    Hello,
    I have got an issue with heterogeneous service configuration like
    SQL> select * from colour@mysql_local;
    select * from colour@mysql_local
    ERROR at line 1:
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-02063: preceding line from MYSQL_LOCAL
    If anybody can advise me what is wrong in conf or might be I missed something
    Thanks
    Environment:
    OS: Windows 7 Pro
    Oracle 11.2.0.3
    MySQL: 5.6
    Configuration:
    System ODBC configured : MYSQL_LOCAL
    Tested connection - sucessful
    Listener
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\app\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
    (SID_NAME = MYSQL_LOCAL)
    (ORACLE_HOME = C:\app\product\11.2.0\dbhome_1)
    (PROGRAM=dg4odbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = C:\app
    Tnsnames.ora
    MYSQL_LOCAL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SID = MYSQL_LOCAL)
    (HS = OK)
    initdg4odbc.ora
    HS_FDS_CONNECT_INFO = mysql_local
    HS_FDS_TRACE_LEVEL = OFF
    SQL> conn / as sysdba
    SQL> create public database link MYSQL_LOCAL connect to root identified by 12346 using 'MYSQL_LOCAL';
    C:\Windows\system32>lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.2.0.3.0 - Production on 08-MAY-2013 17:44:24
    Copyright (c) 1991, 2011, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 64-bit Windows: Version 11.2.0.3.0 - Production
    Start Date 08-MAY-2013 17:44:05
    Uptime 0 days 0 hr. 0 min. 18 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\app\product\11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File C:\app\diag\tnslsnr\D-9RGC8X1\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "MYSQL_LOCAL" has 1 instance(s).
    Instance "MYSQL_LOCAL", status UNKNOWN, has 1 handler(s) for this service...
    Service "QA_IMS_MYSQL" has 1 instance(s).
    Instance "QA_IMS_MYSQL", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\Windows\system32>tnsping mysql_local
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on 08-MAY-2013 17:44:36
    Copyright (c) 1997, 2011, Oracle. All rights reserved.
    Used parameter files:
    C:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SID = MYSQL_LOCAL) (HS = OK)))
    OK (0 msec)
    SQL> conn / as sysdba
    Connected.
    SQL> select * from colour@mysql_local;
    select * from colour@mysql_local
    ERROR at line 1:
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-02063: preceding line from MYSQL_LOCAL

    Hi,
    The gateway file initMYSQL_LOCAL.ora should be placed in the directory -
    $ORACLE_HOME\hs\admin
    which is the expected location. In your setup this should be -
    C:\app\product\11.2.0\dbhome_1\hs\admin
    If the file is already in that location then make sure that in the listener.ora and tnsnames.ora that in each section every line except the first line starts with at least one space -
    SID_LIST_LISTENER =
    <space>(SID_LIST =
    <space>(SID_DESC =
    LISTENER =
    <space>(DESCRIPTION_LIST =
    Tnsnames.ora
    MYSQL_LOCAL =
    <space>(DESCRIPTION =
    <space>(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    However, there is also a problem with the tnsnames.ora file. You have -
    Tnsnames.ora
    MYSQL_LOCAL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SID = MYSQL_LOCAL)
    (HS = OK)
    ) <=== move this bracket
    but it should be -
    Tnsnames.ora
    MYSQL_LOCAL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SID = MYSQL_LOCAL)
    ) <=== bracket moved here
    (HS = OK)
    Of course, with spaces as shown above. They are often lost in the forums.
    You may also need to change -
    (HOST = localhost)
    to -
    (HOST = <actual host name>)
    but it depends on your setup.
    Try these changes and let me know what happens.
    Regards,
    Mike

  • Oracle Heterogeneous Services to create link With Excel spreadsheet.

    Hi
    Please adivse how to use "Oracle Heterogeneous Services" to create a database link from Oracle to the Excel spreadsheet.
    Wishes
    Jawad

    Dear Anwar,
    I'm using XPSP2 10gR2Enterprise
    SID=ORCL
    host=andor (my PC's name)
    Pls help me. I'm struggling with HS also so I've followed your lines, meaning:
    I can create the database link, but cannot retrieve data from source. (see 7.)
    1a. I have created the Excel file c:\EXCL.xls
    NEV DATUM BOOL NUMBER
    Stefán Balázs 09.nov TRUE 0
    Sebestyén Dénes 10.nov TRUE -11
    Tóth Andor 11.nov FALSE 12.3
    c: is partition on the same server where 10g sits.
    1b. I've created an ODBC system DSN for this excel file, named EXCL.
    2. tnsnames.ora has bee nupdated by this:
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = andor)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    EXCL =
         (DESCRIPTION =
              (ADDRESS_LIST =
                   (ADDRESS = (PROTOCOL = TCP)(HOST = andor)(PORT = 1521))
              (CONNECT_DATA =
                   (SID = EXCL)
              (HS = OK)
    3. 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 =
    (SID_NAME = EXCL)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (PROGRAM = EXCL)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = andor)(PORT = 1521))
    4. initexcl.ora in hs directory:
    HS_FDS_CONNECT_INFO = EXCL
    HS_FDS_TRACE_LEVEL = 0
    Listener restarted.
    5. in iSQLPlus:
    SQL> CREATE DATABASE LINK excl USING 'excl';
    Database link created.
    6. in Enterprise Manager there is a Database Link:
         database links: EXCL.REGRESS.RDBMS.DEV.US.ORACLE.COM
    service name: excl
    7. testing the database link says:
    The Database Link is not active.
    ORA-28545: .Unable to retrieve text of NETWORK/NCR message 65535... ORA-02063: previous 2 lines from EXCL
    Please help me to get over this.

  • Heterogeneous Services & Oracle Generic Connectivity For DBF file?

    Dear All,
    Can We Create dbf file directly means without using CSV file?
    Can we use Heterogeneous Services & Oracle Generic Connectivity for creating dbase DBF file or Writing in dbase DBF file?
    I have used it for Excel and Access for connectivity with Oracle 9i
    but I dont have any idea about dbase DBF file?
    Any help in this reagards will be highly appriciatalble.
    Thanks
    Rana

    HSODBC/DG4ODBC is generic connectivity and you find the generic setup in:
    Note.109730.1 How to setup generic connectivity (HSODBC) for 32 bit Windows (Windows NT, Windows 2000, Windows XP, Windows 2003)
    There is nothing sepcial for DBF's. Just define a system ODBC DSN using a DBASE ODBC driver pointing to the DBF file.
    The rest is absolute similar to the note.
    If you have already a running HSODBC/DG4ODBC the quickest test is to just define a new system dsn for the DBF file, then change in the init>hsodbc/dg4odbc>.ora file the HS_FDS_CONNECT_INFO parameter pointing to the newly created system DSN. Last step is within the Oracle db to define a database link.

  • Heterogeneous Services & Oracle Generic Connectivity for dbase DBF file

    Dear All,
    Can we use Heterogeneous Services & Oracle Generic Connectivity for creating dbase DBF file or Writing in dbase DBF file?
    I have used it for Excel and Access for connectivity with Oracle 9i
    but I dont have any idea about dbase DBF file?
    Any help in this reagards will be highly appriciatalble.
    Thanks
    Rana

    I wouldn't think so these days ... however, you could try posting this in the heterogeneous services - which is somewhere on OTN.
    If it we me, I'd convert the DBF into something easier to use with Oracle : like XML or CSV

  • Using Oracle Heterogenous services to access sql server database table

    I have created a dblink 'POC_HS' from oracle to sql (implemented heterogeneous services) and I am able to successfully pull out data from the default database that the DSN(for sql server) is connected to.
    So this 'select * from Test@POC_HS' is working perfectly fine on the Oracle database as 'Test' table resides in the default database (which the System DSN is connected to).
    But when I do 'select * Abc.Test@POC_HS' where Test table resides in 'ABC' database which is not the default database throws an error as follows:
    ORA-00942: table or view does not exist [Generic Connectivity Using ODBC][Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'Abc.Test'.[Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared. (SQL State: S0002; SQL Code: 208)
    I have also tried this 'select * from Abc.dbo.Test@POC_HS' but oracle throws this exception "ORA-00933: SQL command not properly ended".
    The dblink user and System DSN account has access to the 'Abc' database.
    Thoughts?

    Thanks for the info.
    But suppose if we have DB link 'POC_HS' where POC_HS is a DBlink between oracle servers, I can do the following -
    1. select * Abc.Test@POC_HS
    2. select * Def.Test@POC_HS
    where Abc,Def are the schemas which the Dblink user has access to. I can execute the above perfectly fine.
    I wanted the achieve the same functionality from Oracle to Sql where database keep on changing dynamically . So according to you that's not possible right?
    We will have to keep on changing the ODBC connection to a different database or create a new odbc/listener/tnsentry each time query uses a different database right?
    Edited by: 878753 on Aug 11, 2011 1:29 AM

  • .Using Oracle Heterogeneous Services Connectivity to SQL Server :ORA-02068

    Hi,
    I using oracle HS to connect sql server but error ora-02068: following server from HSSQL and ORA-03135 connection lost contact.
    step by step
    1. Create the init.ora file = initHSSQL.ora
    HS_FDS_CONNECT_INFO = HSSQL
    HS_FDS_TRACE_LEVEL = OFF
    2. modified listener.ora file
    SID_LIST_LISTENERHSSQL =
    (SID_LIST =
    (SID_DESC=
    (SID_NAME=HSSQL)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM=hsodbc)
    LISTENERHSSQL =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = CEPITA1403.siam.local)(PORT = 1521))
    and start listernerHSSQL = pass
    3.modified tnsname.ora :
    HSSQL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = CEPITA1403.siam.local)(PORT = 1521))
    (CONNECT_DATA =
    (SID = HSSQL)
    (HS = OK)
    and test by tnsping HSSQL = OK
    4.setup ODBC SQL Server
    Start --> Control Panel --> Administrative Tools --> Data Sources (ODBC)
    Click on the ‘System DSN’ tab.
    Click ‘Add’.
    Name HSSQL
    Click ‘Test Data Source…’.--> Pass
    5
    create public database link HSSQL
    connect to sa
    identified by xxxxxxxx
    using 'HSSQL';
    Database Link created.
    6. select * from ACCOUNT_CODE@HSSQL;
    show error message : ora-02068: following server from HSSQL and ORA-03135 connection lost contact.
    Please let me know.
    rose
    Edited by: user7218901 on Mar 25, 2009 12:39 AM

    Do you have all of your parameter files set up correctly?
    You need to have a hsora file in the hs/admin directory for ioi for instance, initioiDB.ora. In this file you need to set up your hs init parameters. This is an example of what's in one of mine:
    HS_FDS_CONNECT_INFO = Mapics
    HS_DB_NAME = MAPICS
    HS_DB_DOMAIN = WORLD
    HS_FDS_TRACE_LEVEL = ON
    The you need to have an entry in the tnsnames.ora file in the network/admin directory for hsodbcxtrad. The sid should be set to ioiDB.
    You can find documentation on how to manage heterogenous services in the online documentation.
    Managing Heterogenous Services Using Generic Connectivity
    Hope this helps
    Eric
    I have been trying to set up a database link between Oracle and SQL Server, currently both on the same Windows NT machine.
    I managed to create the link as follows:
    CREATE PUBLIC DATABASE LINK ioi
    CONNECT TO IOItest IDENTIFIED BY mba
    USING 'hsodbcxtrad';
    The link is created successfully.
    I then try to run a query and get the following error :
    select * from dealer@ioi
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC]DRV_InitTdp: [Microsoft][ODBC SQL Server
    Driver][SQL Server]Login failed for user '\'. (SQL State: 28000; SQL Code:
    18456)
    ORA-02063: preceding 2 lines from IOI
    I have added a UID and PWD to the registry settings for the SQL Server DSN but this makes no difference. Do I need to specify a username and password somewhere else ?
    Thanks
    Hugh

  • Oracle heterogeneous services in 10g r2

    The dba configured oracle heterogeneous services to connect to a SQL Server database.
    The purpose of doing this is to select from a view in SQL Server.
    We are able to select. But as soon as a where clause is introduced, the session just hangs.
    So we thought it might be because we are accessing a view.
    We then created a table in SQL Server and inserted all the data into the table. However, the select with a where clause does not work.
    We then created a table in Oracle and selected from the view in SQL Server to insert data into the oracle table . Once the data is in an Oracle table, we are able to select and use a where clause. We do not want to bring data into Oracle as the data architect is trying to avoid a duplication scenario.
    The DBA is not able to find what is wrong. Can someone please help. Have you seen a similar issue?
    The oracle version is 10.2.0.4 and sql server is 2000.
    Thanks,
    ksd
    Edited by: user8699561 on Mar 16, 2010 8:30 AM

    If the application is using sequences, it cannot require that values are not skipped. Oracle sequences will never be gap-free. And assuming that there are multiple users, the order of transactions and the order of sequence generated values cannot be guaranteed.
    I suppose that if your failover process was manual and scheduled and the downtime window was sufficient (i.e. you're failing over because you're taking one server down for scheduled maintenance, not because there was an unexpected fault), you could set up a script that would shut down the application, iterate over the sequences on the master getting the next value, alter the local sequences (presumably by altering the increment, selecting the next value from the local sequences, and returning the increment to 1), and then allow the application to start on the new server. If your downtime window is sufficient, when the primary has an unscheduled failure, you could potentially do a SELECT MAX(primary key) on each table on the local system (while the application is down), alter the sequences and then allow the application to start running. Neither is a particularly pretty option, and the latter option can be quite expensive if there is a lot of data.
    Justin

  • About Oracle Heterogeneous Services and Oracle Gateway

    Hi All,
    I am very new at this topic, I want to know:
    1)Oracle Heterogeneous Services and Oracle Gateway same or not?Need license or not?
    2)If want Creating Database Link from Oracle 11g to Sybase AS 15.5 Using Oracle Heterogeneous Services what drivers should I install from my pc(windows 7) and from my server(Linux red hat 5)?please give me link for this
    3)Is there any link Step by step to configure odbc until creating dblink?
    4)what more convenient, connect sybase from Oracle Heterogeneous Services or Oracle Gateway?
    Thank you so much for your help
    Regards
    JOE

    Joe,
    let copy/paste your questions and comment inline:
    1)Oracle Heterogeneous Services and Oracle Gateway same or not?Need license or not?
    Let me first clarify one thing, heterogeneous services is the generic mechanism in the Oracle database used by all gateways. The product you are talking about is the Database Gateway for ODBC or the Database Gateway for Sybase.
    The Database Gateway for ODBC is available for Linux and Windows. It is the free product which does not require an Oracle license. The license is included in your database license. It is a generic gateway which allows you to connect with any suitable 3rd party ODBC driver to a matching foreign database. As it is a generic connectivity which aloows you to connect to real databases but also to MS Excel or even Text files as long as you have a suitable ODBC driver, its capability is very limited.
    The more powerful gateway is the Database Gateway for Sybase. It covers the same functionality as DG4ODBC but it allows you also to work with distributed transactions, it allows you to call remote Sybase stored procedures etc. This gateway is design for Sybase ASE connections, so it is also able to map certain Oracle functions to Sybase equivalents. This Database Gateway for Sybase is NOT for free, it requires an additional license.
    2)If want Creating Database Link from Oracle 11g to Sybase AS 15.5 Using Oracle Heterogeneous Services what drivers should I install from my pc(windows 7) and from my server(Linux red hat 5)?please give me link for this
    That depends on your preferences. Both gateways are available for Linux and for Windows. When using DG4ODBC you only need to pay attention that you get a suitable 3rd party ODBC driver for this platform with the matching word size (64bit for 64bit DG4ODBC and 32bit ODBC driver for installations of DG4ODBC on 32bit platforms).
    The latest software release is currently 11.2.0.3 and it can be downloaded (and installed from scratch) from "My Oracle Support". Just open the Patches & Updates section, look for Patch 10404530: 11.2.0.3.0 PATCH SET FOR ORACLE DATABASE SERVER and make sure to choose the platform you want to use. Then check out the readme as it lists which of these download CD's contains the gateway software.
    BTW, the CD contains DG4ODBC and DG4SYBS and it is up to you to decide during the installation which product you want to use.
    3)Is there any link Step by step to configure odbc until creating dblink?
    The ODBC driver installation differs from vendor to vendor and platform to platform - so we don't have a specific note how to configure the ODBC driver. This kind of question is better handled by the ODBC driver vendor.
    Regarding the set up of DG4ODBC on Windows you find suitable information in the knowledge base on My Oracle Support. Just look for:
    How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit to Connect to Non-Oracle Databases Post Install          [Document 466225.1]     
    and for DG4SYBS:
    How to Configure DG4SYBS (Oracle Database Gateway for Sybase) on 64bit Unix (Linux, AIX, HP-UX Itanium and Solaris) Post Install          [Document 437696.1]     
    How to Setup DG4SYBS (Database Gateway for Sybase) on a 64bit Windows          [Document 1319852.1]     
    4)what more convenient, connect sybase from Oracle Heterogeneous Services or Oracle Gateway?
    It really depends on your needs. DG4SYBS is surly easier to install as this gateway comes with everything you need and you do not have to find a suitable ODBC driver nor get the ODBC driver working. It is also more powerful as you can for example use triggers that replicate data changes in an Oracle database to the Sybase database within the same transaction. When you want to call Sybase stored procedures you can also do that with DG4SYBS. So it really depends on your needs.
    - Klaus

  • Configuring Oracle Net Services for Oracle Heterogeneous Services

    In the Oracle 9i Net Services Administrators Guide, it states that 3 parameters need to be included in the listener.ora in order to enable Heterogenous services. Can someone clarify what the Program Name should be set to? I'm not quite sure what is meant by agent executable. I'm trying to create a database link to and MS Access mdb DSn if that makes a difference.
    Cheers

    Richard,
    The program is hsodbc. The listener entry should be something like this:
    (sid_desc =
    (sid_name = gc4excel)
    (Oracle_home= c:\oracle\ora92)
    (program = hsodbc)
    The tnsnames entry should be
    GC4excel =
    (description =
    (address = (protocol = tcp) (host = localhost) (port = 1521))
    (connect_data = ( sid = gc4excel))
    (hs=ok)
    For more information on setting up Generic Connectivity please refer to the Heterogeneous Connectivity Administrator's Guide.
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96544/gencon.htm#1656

  • Oracle Heterogenous Services

    Hi all!
    I want to access and query an excel file's data stored in my system in SQL PLUS using oracle Heterogenous Services. I am using 11g database
    I done
    1. registering odbc DSN name as: cars Driver: Microsoft Excel Driver
    2. modified "initdg4odbc.ora" file with following parameters:
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = cars
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_TRACE_FILE_NAME = hsmsql.trc
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    3. modified tnsnames.ora as
    # tnsnames.ora Network Configuration File: D:\app\node1\product\11.1.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node9)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    cars.node1.COM =
    (DESCRIPTION =
    (ADDRESS=(PROTOCOL=tcp)
    (HOST=node9)
    (PORT=1521)
    (CONNECT_DATA=(SID=cars))
    (HS=OK)
    4. Modified listener.ora as
    # listener.ora Network Configuration File: D:\app\node1\product\11.1.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (ADDRESS_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node9)(PORT = 1521))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=cars)
    (ORACLE_HOME = D:\app\node1\product\11.1.0\db_1)
    (PROGRAM=hsodbc)
    5. created database link:
    CREATE PUBLIC DATABASE LINK "LNK" USING 'cars';
    6. Finally rebooted the system to get the parameters intialized, and run the query:
    SQL> select * from SITES@DLINK;
    select * from SITES@DLINK
    ERROR at line 1:
    ORA-12154: TNS:could not resolve the connect identifier specified
    i got the error, is there any mistake in the procedure i have done.. please help...

    Thankyou i got the issue solved.

  • Oracle Heterogenous Services using JDBC (not using ODBC)

    Dear Friends,
    I need to configure Oracle HS to connect with MS SQL Server using JDBC as our company don't want to go for ODBC connection.
    Operating System is HP-UX
    Oracle Database Version is
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for HPUX: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Can anyone please help me.

    The options you have for Heterogeneous Services are ODBC and OleDB.
    JDBC is not an option.
    The only other option is Transparant Gateway, a separately licenseable product.
    I don't know whether Transparant Gateway relies on other drivers.
    From the Sqlserver end there is MSDTC.
    Oracle generally doesn't underdocument their products.
    You can safely assume if it isn't documented, it isn't there.
    Sybrand Bakker
    Senior Oracle DBA

  • Problem with Oracle Heterogeneous Services

    Hi All,
    I am trying to access SQL Server database using Oracle Heterogeneous Services and I am getting the following error in my tarce file:
    Heterogeneous Agent Release
    10.2.0.3.0
    HS Agent received unexpected RPC disconnect
    Network error 1003: NCR-01003: NCRS: Read error.
    I have checed the tnsnames.ora / listener.ora and they are seems OK
    tnsping is also working fine on HS
    Thses are the steps that I followed :
    1. setup system DNS
    2. configure Oracle HS Initialization File under $ORACLE_HOME/hs/admin
    3. configure tnsnames.ora under $TNS_ADMIN
    4. configure listener.ora under $TNS_ADMIN
    5. craete db link
    6. querying db link gave the following error
    "No more data to read from socket"
    7. trace file under $ORACLE_HOME/hs/log shows the following error
    Heterogeneous Agent Release
    10.2.0.3.0
    HS Agent received unexpected RPC disconnect
    Network error 1003: NCR-01003: NCRS: Read error.
    Please advice
    Regards
    Omer

    Hi,
    Thanks for the reply.
    its not a new project. We have this running for quite a while now.
    i have set the trace level from ON to DEBUG and the log file has the following info :
    Oracle Corporation --- MONDAY JUL 27 2009 13:09:03.719
    Version 10.2.0.3.0
    hoagprd (2): ; hoagprd Entered.
    HOACONN.C (244): ; [Generic Connectivity Using ODBC] version: 4.6.3.0.0070
    HOACONN.C (295): ; Class version: 211
    hoagprd (2): ; hoagprd Exited with retcode = 0.
    hoaexit (6): ; hoaexit Entered.
    hoaexit (6): ; hoaexit Exited with retcode = 0.
    (0): ; Closing log file at MON JUL 27 13:09:11 2009.
    # HS init parameters
    HS_FDS_CONNECT_INFO = xxxxxx
    HS_FDS_TRACE_LEVEL = DEBUG
    HS_FDS_SHAREABLE_NAME = /usr/local/iodbc/lib/libiodbc.so
    HS_FDS_TRACE_FILE_NAME = xxxxxx.trc
    HS_FDS_TRACE_LEVEL=4
    # ODBC specific environment variables
    set ODBCINI=/usr/local/iodbc/odbc.ini
    Regards

  • Heterogeneous Services & SQL Server

    I understand that connecting an Oracle database to a SQL Server database can be done using the Heterogeneous Services which will set up a Transparent Gateway to the SQL Server data. Where can I get the agent needed to connect the two though? Are there different agents for different Oracle/SQL Server version combinations?
    I have the paper 'Oracle8 Distributed Database Systems Release 8.0 A58247-01, Chapter 7: Administering Oracle Heterogeneous Services', and it is very helpful in getting the basics, but I need more info for my particular situation. Supposedly the agent has an Installationand User's Guide which would assist me also.

    Do you have any pending statements in dba 2pc pending?
    Your init parameters seems good. you need to check with the network guys for the packages sent from Oracle is received by sql server and vice versa. Hope there is no block on redirect ports.
    You can enable tracing and see if you get any valid points in this direction.
    As you said about trigger, look for the privileges in sql server does the user you are connecting has all the privilege on the associated tables. Also the conditions on the trigger has to be satisfied for the execution.
    Also you need to add some HS parameters for the recovery in case you may need.

  • Heterogeneous Services ODBC to MS SQLSvr - ORA-00904 error

    Hello, I have successfully setup a heterogeneous Services ODBC to MS SQLSvr using the steps outlined at http://www.orafusion.com/art_orahs.htm.
    My problem is, the only queries that run without errors are SELECT * FROM tablename@xxx. When I try SELECT colname FROM tablename@xxx I get an ORA-00904: "colname": invalid identifier. Any thoughts?
    Also, will I be able to update MS SQLSvr tables using this link?
    Thanks.

    Hello, Your suggestion worked. Even though all the column_names are lower case, if I surrounded the column names with double quotes the query would work.
    Another question. I'm wanting to update a SQLServer table with data from a Oracle table using a query like:
    INSERT INTO sql_table@xxx
    SELECT * FROM oracle_table ;
    Is this possible? I'm getting a "ORA-02025: all tables in the SQL statement must be at the remote database" error message which looks like I can't.
    Thanks.

Maybe you are looking for

  • Page will not display properly with inline Frames

    I have a html page that will not display properly in Dreamweaver. I have a basic understanding of html and want to be able to edit a website in Dreamweaver that was given to me. It looks fine in a browser, but in Dreamweaver some of the content is mi

  • Store sql script in database

    Hi all, pls is there any way to store a sql script in database and be able to run it from a report or a form. many thanks, hany

  • Mail Migration - Folders Subscriptions & Unread Mail

    Hello, I'm currently testing a migration from MS 5.2 to 6.2. Sorry for all the verbage here - I'll try to shorten as much as possible. iPlanet Messaging Server 5.2 HotFix 2.09 (built Nov 18 2005) libimta.so 5.2 HotFix 2.09 (built 10:35:58, Nov 18 200

  • Thumbnails of AVI movies in Finder

    What can I do to get the first frame of AVI movies displayed as thumbnails? (instead of these unpredictable thumbnails) I hope there is an easy way because I have lots of clips... Thanks!!

  • Computer wakes from sleep for no obvious reason

    The console tells me this: 11/09/2010 21:36:54 kernel Wake reason = UHC4 11/09/2010 21:36:54 kernel System Wake 11/09/2010 21:36:54 kernel Previous Sleep Cause: 0 11/09/2010 21:36:54 kernel The USB device IOUSBWirelessControllerDevice (Port 1 of Hub