Need help bridge database for MS SQL Server, error ORA-28546 configuration problems

Dear all,

I'm trying to configure Oracle to MS SQL Server(I don't have admin access to the MS SQL Server) database gateway.  When I try to test the dblink connection, I get the following error.

I published select * from dual@xyz;

ORA-28546: initialization of the connection failed, probable Net8 admin error

ORA-28511: interruption of the RPC connection to heterogeneous remote agent using SID = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=localhost) (PORT = 1521)) (CONNECT_DATA = (SID = dg4msql)))

ORA-02063: preceding 2 lines of xyz

28546 0000 - ' failed to initialize connection, unlikely Net8 admin error.

My setup is as follows.

1 oracle 11 GR 2 under Oracle Linux 6, the same gateway version is installed on the same server but different base directory.

2 oracle DB base directory is u01/app/oracle/product/11.2.0/dbhome_1, gateway home directory is/u01/gateway.

3. I use the same file listener.ora for db and the entry door.

4. the content of my listener.ora, tnsnames.ora and the initdg4msql.ora is below.

/U01/app/Oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

#(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1522))

(ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST = db.abc.com.tw))

)

)

MSSQL =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))

)

)

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(GLOBAL_DBNAME = db.abc.com.tw)

(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)

(SID_NAME = orcl)

)

)

SID_LIST_mssql =

(SID_LIST =

(SID_DESC =

(SID_NAME = dg4msql)

(ENVS = LD_LIBRARY_PATH = / u01/gateway/dg4msql/pilot/lib: / u01/gateway/lib)

(Program name = / u01/gateway/bin/dg4msql)

)

)

/U01/app/Oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora

LISTENER_ORCL =

(ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST = db.abc.com.tw))

ORCL =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST = db.abc.com.tw))

(CONNECT_DATA =

(SERVER = DEDICATED)

(SERVICE_NAME = orcl.abc.com.tw)

)

)

dg4msql =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP) (HOST = localhost)(PORT = 1521))

(CONNECT_DATA = (SID = dg4msql))

(HS = OK)

)

/U01/gateway/dg4msql/Admin/initdg4msql.ora

HS_FDS_CONNECT_INFO=[192.168.0.1]:1433//XIETEST

# replacement connect format is the name of host/serverinstance/databasename

HS_FDS_TRACE_LEVEL = 255

HS_FDS_RECOVERY_ACCOUNT = RECOVERY

HS_FDS_RECOVERY_PWD = RECOVERY

the dblink is created with the following statement.

CREATE DATABASE LINK "xyz.abc.COM.TW".

CONNECT TO ITS IDENTIFIED BY

With the HELP of "dg4msql";

Couple of other things I did to check the above works.

[oracle@db admin] $ ping 192.168.0.1

PING 192.168.0.1 (192.168.0.1) 56 (84) bytes of data.

64 bytes from 192.168.0.1: icmp_seq = 1 ttl = 61 time = 7.61 ms

64 bytes from 192.168.0.1: icmp_seq = 2 ttl = 61 time = 7,41 ms

^ C

-ping 192.168.0.1 - statistics

2 packets transmitted, 2 received, 0% packet loss, time 1818ms

RTT min/avg/max/leg = 7.417/7.516/7.615/0.099 ms

[oracle@db admin] $ tnsping dg4msql

AMT Ping utility for Linux: Version 11.2.0.1.0 - Production on 2013-SEPT-11 10:53:11

Copyright (c) 1997, 2009, Oracle.  All rights reserved.

Use settings files:

/U01/app/Oracle/product/11.2.0/dbhome_1/network/admin/SQLNET.ora

TNSNAMES adapter used to resolve the alias

Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SID = dg4msql)) (HS = OK))

OK (0 msec)

[oracle@db admin] $ lsnrctl status mssql

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 2013-SEPT-11 10:54:23

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=localhost) (PORT = 1521)))

STATUS of the LISTENER

------------------------

Alias mssql

Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

11-SEP-2013 start date 10:09:46

Uptime 0 days 0 h 44 min 37 sec

Draw level off

Security ON: OS Local Authentication

SNMP OFF

Parameter Listener of the /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora file

The listener log file /U01/app/Oracle/diag/tnslsnr/DB/MSSQL/alert/log.XML

Summary of endpoints listening...

(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=127.0.0.1) (PORT = 1521)))

Summary of services...

Service 'dg4msql' has 1 instance (s).

Instance of 'dg4msql', status UNKNOWN, has 1 operation for this service...

The command completed successfully

Obviously, I'd like to get this configuration to work, but I have also a couple other questions about this configuration.

1. for the installation of the bridge, he wants to run the root.sh script.  the script root.sh as to what follows.

Enter the full path of the local bin directory: [/ usr/local/bin]:

The 'dbhome' file already exists in the usr.  Overwrite it? (y/n)

[n]: n

The 'oraenv' file already exists in the usr.  Overwrite it? (y/n)

[n]: n

The 'coraenv' file already exists in the usr.  Overwrite it? (y/n)

[n]: n

the above answer is correct?

Thanks for reading.

The strace shows:

2796 open ("/ u01/app/oracle/diag/tnslsnr/db/mssql/trace/mssql.log", O_WRONLY |) O_CREAT | O_APPEND, 0660) = 12

9564 access ("/ u01/app/oracle/product/11.2.0/dbhome_1/dg4msql/admin/initdg4msql.ora", F_OK)

2796 write (12, "2013-SEPT-11 15:02:44 * (CONNECT_"..., 175 ")")

9564 <... access="" resumed="">) =-1 ENOENT (no such file or directory)

2796 <... write="" resumed="">) = 175

2796 close (12

9564 brk (0x14a3000) = 0x14a3000

2796 <... close="" resumed="">) = 0

2796 poll ([{fd = 8, events = POLLIN |}]) POLLRDNORM}, {fd = 11, events = POLLIN |} [POLLRDNORM}, {fd-=-1}, {fd = - 1}]-1, 4

9564 access ("/ u01/app/oracle/product/11.2.0/dbhome_1/dg4msql/log/dg4msql_agt_9564.trc", F_OK) =-1 ENOENT (no such file or directory)

9564 access ("/ u01/app/oracle/product/11.2.0/dbhome_1/dg4msql/log/dg4msql_agt_9564.trc", F_OK) =-1 ENOENT (no such file or directory)

9564 statfs ("/ u01/app/oracle/product/11.2.0/dbhome_1/dg4msql/log/", 0x7fff91f005b8) =-1 ENOENT (no such file or directory)

9564 open ("/ u01/app/oracle/product/11.2.0/dbhome_1/dg4msql/log/dg4msql_agt_9564.trc", O_WRONLY |) O_CREAT | O_TRUNC, 0666) =-1 ENOENT (no such file or directory)

=> so that it always uses the database as Oracle_home House

With this info, I rechecked the listener and saw that you are missing the ORACLE_HOME setting in the dg4msql section of SID. Please correct your entry to mssql_sid to:

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(GLOBAL_DBNAME = db.abc.com.tw)

(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)

(SID_NAME = orcl)

)

)

SID_LIST_mssql =

(SID_LIST =

(SID_DESC =

  (ORACLE_HOME = / u01/bridge)

(SID_NAME = dg4msql)

(ENVS = LD_LIBRARY_PATH = / u01/gateway/dg4msql/pilot/lib: / u01/gateway/lib)

(Program name = / u01/gateway/bin/dg4msql)

)

)

Then please stop and restart the mssql listener and check again.

-Klaus

Tags: Database

Similar Questions

  • DB Link for MS SQL Server connectivity

    Hi all

    Is it possible to create the DB link in the Oracle to MS SQL server database.

    If yes then guide.

    Best regards

    Cecile

    VISHWAKARMAPARDEEP wrote:

    Hi all

    Is it possible to create the DB link in the Oracle to MS SQL server database.

    If yes then guide.

    Best regards

    Cecile

    refuses or is unable to use GOOGLE yourself?

    https://www.Google.com/search?q=create+DB+link+into+Oracle+database+for+MS+SQL+Server

  • Update of security for the SQL Server 2005 Service Pack 3 (KB970892) constantly moved, what can I do about it?

    Update of security for the SQL Server 2005 Service Pack 3 (KB970892) constantly moved, what can I do about it?

    The update tried to automatically install dozens of times, but it keeps failing, is there something I can fix which will allow this facility. I have reasonable computer skills but I'm not good at that, I need step by step help and a full explanation of acronyms.

    Hi Laurence,.

    The issue of Windows is more complex than what is generally answered in the Microsoft Community Forums. Appropriate in the TechNet Forums. Please post your question in the TechNet Forums.

    You can check the link to post your question:

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer

    I hope that helps!

  • Windows Update failed - error 0 x 80070643 for Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332)

    Original title: Windows Update Failed - need help

    Vista 32 Ultimate with all updates, until this one: update Windows failed: error 0 x 80070643 for Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332). Update has failed repeatedly.  I tried to restart, remove the update (even by deleting the file so it would download it again) and install again.  Nothing has worked.  Error 80070643.  Since it is not Office 2003, the error seems to mean a problem with the Windows .NET framework.  Don't know what that means.

    Looking at KB976982, I tried to fix MSI software update registration corruption issues (whatever that means) by running the automated Fix It by KB971187. Restarted, I tried Windows Update again.  Still didn't update.

    Then, I waited two days and tried again.  Even that did not help.

    I tried bypassing Windows Update simply by downloading and then run the file SQLEXPR32.exe from Microsoft downloads. Did not work at all. I then tried to run it as an administrator (even if it was already an administrator account, with no other account on this computer at all).  He started to run and then gave me the following error message: unable to run the SQL Server System Configuration Checker due configulation WMI on the computer.  Error: 70347 (0x112cb).

    Now I'm really confused.  On the one hand, 80070643 means I probably repair the .NET framework, which certainly, I hate to do because I need several versions of the .NET framework first uninstall and then try to install the compmonents, and I'm afraid something would go wrong.

    On the other hand, the 70347 (0x112cb) error message seems to indicate the problem is completely different and has to do with WMI, which probably has to do with permissions and I have no idea how to solve this problem.  (And why it all of a sudden would be any problem with permissions?)  This computer is not on a corporate network and has only one user account, the administrative account).  I have looked at Services and Applications in computer management, where there are WMI control, but nothing shown that I can possibly change and not the SQL Server Configuration Manager under it, which doesn't seem to have much either.

    Help!  Please...

    And now I also tried to fix it, just in case where, the .NET framework (Panel > programs and features > Microsift.NET framework Client profile 4 > uninstall/change > fix it), and the Windows Update tried again (including reboot).  Still no.  Everything I try, it is not to do nothing, pardon my language.  People smarter than me, pleasehelp!

    Hi stupID_,

    «Error 0 x 80070643 for Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332).» Update has failed repeatedly. »

    As the error relates to SQL, perhaps this forum:

    SQL Installation of Server & upgrade
    http://social.msdn.Microsoft.com/forums/en-us/sqlsetupandupgrade/threads/

    TaurArian [MVP] 07/01/2005-30/06/2011. The information has been provided * being * with no guarantee or warranty. What works for some, may not always work for others.

  • Error code 64 c for update of security for the SQL Server 2005 Service Pack 3 (KB2494113)

    Have tried to install KB2494113 - update of safety and he constantly fails to install. Help please as I know very little about the "intricacies" of my laptop

    Hi Phillipmuir,

    Step 1:

    You can read the following article and try to reset the Windows Update components and check.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    Step 2:

    You can also check the following link and try to download and install the standalone update package:

    Update of security for the SQL Server 2005 Service Pack 3 (KB2494113)

    Hope this information is useful.

  • SYSTEM OF MONITORING plug-ins FOR MICROSOFT SQL SERVER - cost of licenses

    Hello

    We have the license for Oracle 10 g OEM. We intend to implement plugin of SYSTEM MONITORING for
    MICROSOFT SQL SERVER. We must buy separate license for this Plugin.

    Ritesh

    On in the technology price list
    Look for "System Monitoring Plug-in for Non Oracle Databases"

  • Automated for MS SQL Server 2008 R2 Enterprise Tools

    What are some automated tools for MS SQL Server Enterprise 2008 R2 for the integration of large amounts of data, development of logical and physical diagrams and data dictionaries?

    Hello

    Answers is mainly oriented to the individual user and small sized networks without domain or business problems. While TechNet is primarily oriented toward professional users with servers, by area and by business issues:

    TechNet - Windows Server
    http://social.technet.Microsoft.com/forums/en/category/WindowsServer

    LC

  • Hardware requirements for MS SQL Server for about 100 concurrent users

    Can someone suggest the hardware configuration required for MS SQL Server for about 100 concurrent users?

    Microsoft page suggests 2 GHz CPU and 4 GB of RAM, but it does not mention the number of users. Wonder how many users affects the performance of MS SQL.

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for Windows Server on MSDN. Please post your question in the MSDN Windows Server forum.

    http://social.msdn.Microsoft.com/forums/en-us/category/SQLServer/

  • metric for Microsoft SQL Server

    I'm looking for the settings for Microsoft SQL Server reference manual. He can't find on the website of the documentation

    Please check at http://download-west.oracle.com/docs/cd/B16240_01/doc/em.102/b28748/toc.htm

  • The call for a SQL Server SP in PL/SQL Server

    I'm currently run a remote stored procedure (SP) on the system of MS SQL Remote Oracle Server.

    It is where I am currently and if I'm not mistaken this call must be correct:

    ---------
    DESC 'dbo '. "GetIdByLoginEmail"@mssql
    PROCEDURE GetIdByLoginEmail"@mssql
    Name of default input/output argument type?

    @login VARCHAR2 IN
    @email VARCHAR2 IN
    result_set_handle REF CURSOR OUT

    * refcursor variable r *.
    * exec "dbo." "GetIdByLoginEmail"@mssql('test','[email protected]',:r) *.
    BEGIN "dbo." "GetIdByLoginEmail"@mssql ('test', '[email protected]',: r); END;

    *
    ERROR on line 1:
    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    [Transparent gateway for MSSQL] [A04B] An incorrect number of parameters passed to saved the query specification
    dbo. GetIdByLoginEmail(). It has 3 parameters and not 2 as indicated.
    ORA-06512: at line 1
    ----------

    Anyone has an idea why this call fails? I can't find a lot of resources on this topic.

    Take a look at Metalink note:
    Article no.: Note 351400.1
    Title: How to call a remote procedure to Sybase using TG4SYBS

    It was written for TG4SYBS, but works for MS SQL Server, too.
    This note contains a sample how to call a foreign procedure using ref Cursor through the gateway.

  • MS SQL SERVER Error: 262 on Windows 7 family

    A standard family Windows 7 as operating system.  Downloaded SQL Express and I try to create a new database.  Get the following error MS SQL SERVER error: 262.

    Do not know how to set different settings for users for permissions set dbenable?

    Any help would be great!

    Thank you

    Hello
     
    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is best suited for in the MSDN forums. Please post your question in the MSDN forum.
     
     
    Here are some links that can help you.
     

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Connection failed SQL State 08001 SQL Server Error 10061 SQL Native Client TCP provider no. could be made because the target machine actively refused it

    Wandering SQL Native Client Datasource - apparently, it's a pretty common problem and I see several resolutions to it.  This problem started for our long company until I started working here.  We do not allow remote connections.  JDE Enterprise Server and SQL server are on the same subnet.  Users are on a different subnet.  SQL Server gets this message tries to connect to the Server Enterprise JDE:

    Connection failed: State 08001 ' SQL': SQL Server Error 10061: Microsoft SQL Native Client TCP provider: no connection could be made because the target machine actively refused it.

    I tried several suggested solutions and do not get the case. Any help is appreciated. Thank you, Sophie

    Hello

    The issue of Windows XP, you have posted is better suited for the IT Pro TechNet public. Please ask your question in the SQL Serversupport for assistance.

    Hope the helps of information.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • State SQL 28000 and SQL Server error 18452

    I have a SQL 2000 Server on a server with Windows Server 2003 computer.

    I have a laptop with Windows Vista, for which we are unable to connect to the database and it gives an error 24000 state SQL and SQL Server error 18452 with description as "failed to connect to the user (null). Reason: Not associated with approved connection SQL server.

    Please provide a solution to this problem.

    Thank you

    Hello

    Questions like these are much better handled in the TechNet IT Pro Forums.

    My moderator tools cannot transfer messages on Windows forums, please re - ask you question there.

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer/
    Jack - Microsoft MVP, Windows networking. WWW.EZLAN.NET

  • Subject ' test 2', account: ' express.cites.uiuc.edu (1) ', server: ' express - smtp.cites.uiuc.edu', Protocol: SMTP, server response: ' 250 HELP ', Port: 25, secure (SSL): Yes, Server error: 250, error number: 0x800CCC7D

    Error message in Windows Mail and Vista Premium where can receive the mail, but cannot send:
    Error message:
    Subject ' test 2', account: ' express.cites.uiuc.edu (1) ', server: ' express - smtp.cites.uiuc.edu', Protocol: SMTP, server response: ' 250 HELP ', Port: 25, secure (SSL): Yes, Server error: 250, error number: 0x800CCC7D

    Please repost your question in the Forum program: http://social.answers.microsoft.com/Forums/en-US/vistaprograms/threads where the people who specialize in complementary programs such as Windows Mail will be more than happy to help you with your problem.  This looks like a server or configuration problem but these people are the experts and you should consult them.

    Good luck! Lorien - a - MCSE/MCSA/network + / A +.

  • Connection problem in a creative cloud for updates - unknown Server error

    Problem connecting creative cloud for updates - unknown Server error works very well with my laptop, but this error pops up whenever I try to update cloud adbobe on my main PC programs?

    Please try to perform the steps described in the following base article review.

    http://helpx.Adobe.com/creative-cloud/KB/unknown-Server-Error-launching-cc.html

Maybe you are looking for

  • Buying tips: iphone SE vs Iphone 6

    I have not asked a question here before, so apologies if this is formatted incorrectly or in the wrong section. Please let me know if it is! I've owned an iPhone 5 for over 2 years and I'm currently stupidly pay full price on a contract the brand 24

  • How do disable you scrolling faade LV?

    Is there a way programmatically or via the menu of properties for the Panel before the LV disable scrolling of a VI active?  It seems not be all selections for this nodes invoke or property.

  • I need the service packs for Windows XP

    I had to reinstall a program XP in 2001.  Cannot download service pack 1.  Get a server error.  Any suggestions on how to get the SP1 and 2?

  • HKEY_CURRENT_USER\Software\A88605__HKEY_CURRENT_USER\Software\WinR6__

    Recently one of my clients was victim of a virus called Antivirus8 or AV8. While cleaning the registry to infected files installed by this program, I found two values similar to the AV8 files. I can't identify their use, and I think they're of this m

  • user database handle is corrupt

    the system is 7 pro and it runs a program that needs to vpn to another computer, other automatic windows 10 updated and we used the do not install key. at this time, we tried to up the vpn again and it gives us an error message "user database handle