Oracle 9i on LINUX Transparent Gateway for SQL Server
Does anybody know if there is a Transparent Gateway available for Oracle 9i on LINUX to connect to SQL Server? I have run the installer and cannot seem to find the install options for any Transparent Gateways. I am familiar with their location in the universal installer as I have installed the Oracle/SQL Server Transparent Gateway with Oracle in WinNT. Perhaps Transparent Gateways for Oracle/LINUX are not available?
Thanks in advance.
I have the same issue - we want to upgrade our 9.2 to 10g Linux, and need to maintain connectivity to some legacy sqlserver databases. I can't find any mention of tg4msql for linux. What gives? Anyone know the answer to this? thanks, michael
Similar Messages
-
Free download of transparent gateway for SQL Server
Can anyone give me the URL where I can download the transparent gateway for SQL Server.. I searched OTN but couldn't find it. I just want to try it out..
Thanks.The indicated URL also shows the zip for the 10gR2 gateways for Windows software: 10201_gateways_win32.zip
To use a gateway you also have to use an Oracle database as a so-called integrating kernel. In this Oracle database you define the database link to the gateway to be able to connect to SQL Server.
But TG4MSQL 10gR2 has been desupported, which means that bugfixing has been stopped. Also just to make clear, allthough the software can be freely downloaded the product itself requires a license when you decide to use it after testing it.
And I recommend to try the DG4MSQL 11gR1 software instead, it can also be found at Oracle Technet:
http://www.oracle.com/technology/software/products/database/oracle11g/111070_win32_2008soft.html
When using a 11gR1 database gateway the Oracle database you use with the gateway must be 10.2.0.4.0 or higher. Or have a closer look at Metalink document: 457808.1 - Database Patch 5965763 Required For Pre-11g Databases Using 11g Database Gateways
Look for: win32_11gR1_gateways.zip
Regards,
Ed -
Cannot find where to download Gateway for SQL Server
I have searched OTN every which way to find the Oracle Transparent Gateway for SQL Server. I have checked my CD's and I have every one imaginable but not the one for SQL server. Why? Where is it hidden? I am trying to connect to a SQL Server 6.0 and an Oracle 8.1.6.3 Database at the same time.
[email protected]Hello,
All of the downloads are [url http://www.oracle.com/technology/software/products/jdev/htdocs/soft11.html]here. According to the [url http://www.oracle.com/technology/products/jdev/collateral/papers/11/certification/index.html]certification page, JDev 11.1.1.3 is certified against Windows 2008 server, so I'd start by downloading the Windows version from there (even though they didn't update the description to say "for windows 2008")
John -
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
? -
Specifying Partner Failover in odbc.ini for Linux ODBC driver for SQL Server
Hi,
We are trying to specify the partner failover when making connections via Linux ODBC driver for SQL Server. Do you know a way to specify partner failover in the DSN entry in odbc.ini?
We are using Linux ODBC driver for SQL Server and unixODBC DriverManager.
Our DSN is:
[MyDSN]
Driver=ODBC Driver 11 for SQL Server
Description=MyDSN
Server=MySERVER,<port>
I also tried to use the following connection string in Python (via pyodbc) bypassing the DSN and connecting using the server name.
cnxn = pyodbc.connect("Server=server1,<port>;UID=sa;PWD=<pwd>;Driver=ODBC Driver 11 for SQL Server;Failover_Partner=Server2,<port2>;Database=MyDB")
If the standby DB is on server1 connection fails. It doesn't try server2. If the DB is principal on server1 connection succeeds.
Thank you,
Liviu
LLLHello,
Did you use ODBC Driver for SQL Server to connect to database that uses database mirroring?
According to
the BOL,it does not list "Failover_Partner" as ODBC Driver for Linux connection string keywords.
But ODBC driver for Linux supports
AlwaysOn Availability Groups or Failover Cluster Instance by specify MultiSubnetFailover=True when connecting to a SQL Server 2012 availability group listener or SQL Server 2012 Failover Cluster Instance.
The following case is about similar issue and it seems that ODBC Driver on Linux does not recognize Failover_Partner in connection string. (Not test myself).You can refer to:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/6a8b5223-066d-4493-84a3-b5374a32e433/native-client-on-linux-does-not-recognize-failoverpartner-in-connection-string?forum=sqldataaccess
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
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 HartmutAt 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 -
Transparent gateway to Sql Server losing the "\" in the SqlServer Connect s
HS_FDS_CONNECT_INFO="Sql2k5-Stats/SQL2K5-STATS\SQL2K5STATS/AZDPS"
No matter what we [inc Oracle support] put in here, somewhere it gets removed before it hits Sql Server
it gets turned into Sql2k5-Stats\SQL2K5-STATSSQL2K5STATS and sqlplus barfs an error about not being able to connect to remote and that is because the "\" has been removed.
Have tried numerous combinations for HS_FDS_CONNECT_INFO
Any ideas out there ?
Edited by: IanSparkes on Jun 23, 2009 12:01 PMWhen connecting to SQL Server instances, you can define a SQL Server alias using the MS Client Configuration Tool or you can use two back slashes:
HS_FDS_CONNECT_INFO="SQLSERVER\\instance2.Northwind"
or using the SERVER and DATABASE naming convention:
HS_FDS_CONNECT_INFO="SERVER=<SERVER NAME>\\<INSTANCE NAME>;DATABASE=<DATABASE>" -
Transparent gateway to SQL Server performance
I have a view created in Oracle on some tables in an SQL Server database.
When I run a select on the view it takes very long to complete. Several minutes in fact.
When i run the select that the view is built "as" (create view v_name as select....)
it completes in just a few seconds. Is there some type of performance hit when you select from a view built in Oracle that includes tables from SQL Server?assuming your mentioned query running on Oracle, you can check the execution plan and statistics of two different behavior with sql*plus autotrace option - http://www.bhatipoglu.com/entry/17/oracle-performance-analysis-tracing-and-performance-evaluation
-
Linux mail gateway for exchange server
hi everybody...
i have a problem that i want run a linux os and install Mail gateway such as kaspersky mail gateway 5.6 for work with exchange server 2010/2013. now i want know about that its possible that kaspersky mail gateway 5.6 or any other mail gateway on the linux
os can work for Microsoft exchange or not??????????
please help me and guide me for this problemHi,
From the perspective of Exchange, there is no relevant requirement about gateway. Based on my knowledge, it is possible that kaspersky mail gateway 5.6 or any other mail gateway on the linux os can work for Microsoft Exchange.
Best regards,
Belinda
Belinda Ma
TechNet Community Support -
Oracle Transparent Gateway for MS SQL Server
Hello,
I successfully installed the Oracle transparent Gateway for MS SQL Server for Oracle 8i. Now I am doing the same for Oracle 9i.
Does anyone know how to 'create a new gateway service' on 9i???
This is how you would do that on 8i on the Windows box...
1) At the MS-DOS prompt, enter:
> set GTW_EXE=TG4MSQL.EXE
2) To create a new gateway service name, enter:
> GTWSRV73 sid -CREATE | MORE
-where sid is the gateway sid.
Does anyone know how to do those steps for 9i Oracle Transparent Gateway?
Thank you.Hi
I need oracle Tranparent Gateway for Microsoft Sqlserver (tg4msql) for oracle 10g on linux x86-64 bit. I have searched for it on otn.oracle.com and on edelivery.oracle.com. But couldn't find it.
Can any one help me in this regard.
Regards
Nadir. -
Help Configuring Transparent Gateway for Ms Sql Server
I have Installed Oracle 9.2.0.1.0 with Transparent Gateway for Ms Sql Server.
Followed the configuration furnished therein the Documents for Tnsnames.ora & Listener.ora.
Connection to Sql Server 2000 is NOT SUCCESSFUL. Trace File contents from Tg4sql is furnished below :
Oracle Corporation --- WEDNESDAY DEC 18 2002 22:32:50.625
Heterogeneous Agent Release
9.2.0.1.0
HS Agent diagnosed error on initial communication,
probable cause is an error in network administration
Network error 2: NCR-00002: NCR: Invalid usage
Note :- Sql Server & Oracle Server are on the same Machine running of Windows 2000 Server.
Am i missing something !!!
TIAPlease guide me, would appreciate your suggestions to solve this heck....
TIA -
Invalid column name for Transparent Gateway for SQLServer
I have successfully set up a transparent gateway for an MS SQLServer database 'pubs' from Oracle 910. I am able to run the following statement successfully as it returns all results without a hitch:
select * from authors@pubs;
pubs is the database link for the transparent gateway.
But when I select any particular column in the select statement like:
select city from authors@pubs;
I get the following error:
select city from authors@pubs
ERROR at line 1:
ORA-00904: invalid column name
Can anyone help me with this?
ThanksSamarjit,
This should work. Are you using a certified configuration?
Check our certification matrix at http://otn.oracle.com/products/gateways/pdf/certmatrix2.pdf
Vira -
Creating ODBC DSN for SQL Server in LINUX
Hi All,
I am getting probelms in creating DSN for SQL server. I have created an entry in odbc.ini file under ODBC sources and provided the SQL server detiails as follows
[ODBC Data Sources]
AnalyticsWeb=Oracle BI Server
Cluster=Oracle BI Server
SSL_Sample=Oracle BI Server
SQL_DB=DataDirect 5.1 SQL Server Wire Protocol
[SQL_DB]
Driver=/u01/OracleBI/odbc/lib/SEmsss23.so
Description=DataDirect 5.1 SQL Server Wire Protocol
Address=172:16:1:169, 1433;
AlternateServers=
AnsiNPW=Yes
ConnectionRetryCount=0
ConnectionRetryDelay=3
Database=actdb/act7
LoadBalancing=0
LogonID=oracle
Password=tiger
QuoteID=No
ReportCodePageConversionErrors=0
When I test the connection ,i am getting the following error
+[nQSError: 16023] The ODBC function has returned an error. The database may not be available, or the network may be down.+
Can you please help in fixing this issue.I am not sure of the Drivers and the descrition that I am using are correct or not.
Please let me know the process of creating the DSN for SQL server in LINUX and also how can we check the available drivers in LINUX?
Thank You in advance,
S1r1OBIEE does all of its data retrieval from the server. Your server needs to be able to query all of the data sources that you define.
The client is irrelevant here, it's just a web browser consuming data that the BI Server returns to it.
So yes you need to define connectivity from your Linux server to your SQL Server box.
The Systems Requirements doc (http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10417.pdf) details DataDirect ODBC drivers that are provided for non-Widows connectivity to SQL Server -
Outer join query for SQL server from Oracle
Hi All,
My question is regarding making queries from Oracle to SQL Server database thorugh DBLink.
In my oracle database I have a DBLink emp.world for SQL Server database.
I need to query SQL Server data from oracle (so that this query can be combined with other oracle tables).
Query is given below:
SELECT
a."EmpID" as "Employee ID",
a."EmpStatus" "Employee Status"
b."EmpSub" as "Employee Subjects"
FROM
[email protected] a
left outer join [email protected] b on a."EmpID" = b."suEmpID"
ORDER BY a."EmpID";My problem is when I run the same query from oracle, it does not show the EmpID that does not exist in Subjects table, but when run from actual SQL Server database, it shows all the records.
Samples are given below:
Run from Oracle
Employee ID Employee Status Employee Subjects
101 Active Maths
102 Active Maths
102 Active Physics
104 Inactive Chemistry
Run form SQL Server
Employee ID Employee Status Employee Subjects
101 Active Maths
102 Active Maths
102 Active Physics
103 Active NULL
104 Inactive ChemistryI am not sure why in oracle outer join for SQL server tables is not working. What is the right way for outer join in this case.
I am using oracle database 10gR2 and SQL Server 2005.
Please Help.
Thanks.SELECT
a."EmpID" as "Employee ID",
a."EmpStatus" "Employee Status"
b."EmpSub" as "Employee Subjects"
FROM
[email protected] a
left outer join [email protected] b on a."EmpID" = b."suEmpID"
ORDER BY a."EmpID";
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm#sthref3175
From your description, it appears you may need a right outer join. You want to get back all the rows from 'B', not from 'A'. Try a right join and let us know. -
Oracle 10g DB Export for SQL Server 2008
I'm having a hard time exporting my database Primavera P6 Project Management for SQL Server 2008, in fact I need to do this so I can export to a future program in Visual Studio 2010. But contiue with the Oracle Database Enabled
Thank you.
Edited by: 898987 on 25/11/2011 01:59Hi,
Thanks for the translation.
You say you are having a hard time exporting my database Primavera P6 Project Management for SQL Server 2008. Could you give details of exactly what you are using for the export and what problems you are having ?
Is this an export from an Oracle database or a SQL*Server 2008 database ?
Regards,
Mike
Maybe you are looking for
-
Cost center empty in general ledger view for balance sheet accounts
Hi ! We are implementing ECC6 with new GL functionalities. We activated differents scenarii: cost center, profit center and segment. Using FB03 (display document) we noticed that in the entry view, everything is fine: cost center, profit center and s
-
How to put a collection into a Ref Cursor?
Hi, I am trying to create a procedure (inside a package) which fills a collection and I need to fill a ref cursor (out parameter) with this collection. I can fill the collection but I how can I fill the ref cursor? I am receiving the message "PL/SQL:
-
Get the index of a specific item in a Datagrid
Is their an easy way to get the index of specific item in a datagrid. So say my DG holds ten items of type foo. I need to find the index of foo #8. Remember the foo's may not be in orde 1-8 because of sorting or something. Do I just need to run it
-
Implementation costs SuS-SRM scenario (service procurement/web-based)
Hi out there, I am currently trying to rough-estimate the implemantation costs for a SuS-SRM scenario (service procurement - supplier enablement/web-based) with all the components it requires: software-wise: SRM with SuS and XI would be needed Hardwa
-
Backing Up. (Pain up the you know wat).
i backed up my ipod and and restored it (fixed now old prolem) but the back up didnt contain any of my apps of my music so were are they????? Super annoyed.