DB LINK Oracle to SQL Server SQL Server TimeStamp converts to Oracle Date
Hi All,
I have created a DB link between Oracle 10g 10.2.0.5 to SQL server 2005 using Oracle 11g gateway. When I execute a query from Oracle that selects data from SQL server using the DBLINK then the column value of type Timestamp from SQL server gets converted to Date data type in Oracle and it losses the time value.
Is there some way (in gateway configurations or in select query sql ) that the SQL server data type Timestamp gets converted to Oracle's Timestamp?
Please help.
Best Regards!
Irfan
Edited by: irf_mas on Mar 13, 2012 3:23 AM
You're getting the ORA-2070 error as the gateway that you are using is not supporting the to_timestamp function in this context. You need to rewrite the code.
Best would be if you first check out the data format that is sent as a string when you just select the date column - for example:
data_create_dt
Jan 11 2012 1:40PM
Now the easiest way is to make sure the format you are using in your where clause matches the string from the SQL Server:
select * from "data_ms_view"@FREETDS_DG4ODBC_EMGTW_11_2_0_3 where "data_create_dt"<'Jan 11 2012 1:41PM';
which will result in:
data_create_dt
Jan 11 2012 1:40PM
BTW,
it works with all formats the SQL Server understands:
SQL> select * from "data_ms_view"@FREETDS_DG4ODBC_EMGTW_11_2_0_3 where "data_create_dt">'11-JAN-12 01.40.00.000000000 AM';
data_create_dt
Jan 11 2012 1:40PM
Another way using binds:
SQL> variable datum varchar2(26);
SQL> exec select to_char(systimestamp,'MON dd yyyy hh:mi') into :datum from dual;
PL/SQL procedure successfully completed.
SQL> print datum
DATUM
MAR 19 2012 08:29
SQL> select * from "data_ms_view"@FREETDS_DG4ODBC_EMGTW_11_2_0_3 where "data_create_dt" <:datum;
data_create_dt
Jan 11 2012 1:40PM
There are several ways to get a result, just make sure you don't use an unsupported function in your statement. A list of supported functions is found in the manual.
Similar Messages
-
Hi,
I am facing following issue in my one environment. but in other environment same class path is working fine. I have compared all jar and classpath for both weblogic server.
I am using weblogic 11g.
27 Mar 2013 15:21:09,507 ERROR XXXServlet:293 - oracle.sql.ARRAY incompatible with weblogic.jdbc.vendor.oracle.OracleArray
java.lang.ClassCastException: oracle.sql.ARRAY incompatible with weblogic.jdbc.vendor.oracle.OracleArray
at com.emc.nems.wsd.ui.beans.reports.mpapi.FacilityBeanType.nullSafeGet(FacilityBeanType.java:126)
at org.hibernate.type.CustomType.nullSafeGet(CustomType.java:128)
at org.hibernate.type.AbstractType.hydrate(AbstractType.java:105)
at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2114)
at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1404)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1332)
at org.hibernate.loader.Loader.getRow(Loader.java:1230)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:603)
at org.hibernate.loader.Loader.doQuery(Loader.java:724)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2232)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
at org.hibernate.loader.Loader.list(Loader.java:2124)
at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:312)
at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1723)
at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:165)
at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:175)
at com.emc.nems.oms.dao.hibernate.util.OMSHibBaseDAO.executeNamedQueryWithoutTransaction(Unknown Source)
at com.emc.nems.wsd.dao.hibernate.reports.mpapi.MpapiReportHibDAO.findMCR020(Unknown Source)
at com.emc.nems.wsd.ui.handler.reports.ReportsHandler.getMPAPIData(Unknown Source)
at com.emc.nems.wsd.ui.servlets.reports.mpapi.MpapiServlet.executeReport(XXXServlet.java:1009)
at com.emc.nems.wsd.ui.servlets.reports.mpapi.MpapiServlet.generateAuditFile(XXXServlet.java:318)
at com.emc.nems.wsd.ui.servlets.reports.mpapi.MpapiServlet.execute(XXXServlet.java:273)
at com.emc.nems.wsd.ui.servlets.reports.mpapi.MpapiServlet.doGet(XXXServlet.java:207)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3731)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3695)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2285)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2184)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1459)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Regards,
AbhishekCreating my Oracle connection works fine ... code as follows:
<i>Context ctxt = getInitialContext();
DataSource dataSource = (DataSource) ctxt.lookup(poolName);
Connection conn = dataSource.getConnection();
OracleConnection oracleConn = (OracleConnection)((WLConnection)conn).getVendorConnection();</i>
I also have reviewed documentation:
http://e-docs.bea.com/wls/docs81/jdbc/thirdparty.html. In section 'Using OracleStruct Extension Methods' it highlights that
<i>java.sql.Struct struct =(weblogic.jdbc.vendor.oracle.OracleStruct)(rs.getObject(2));</i>
None of the documentation actually mentions <b>oracle.sql.STRUCT</b>. For Weblogic to truely provide support for Oracle it needs an easy way of converting to this data type. At present I cannot interact with Oracle APIs until I can create an oracle.sql.STRUCT. -
Need help setting up DB Link from my Oracle 11g XE to SQL Server.
Hi,
I'm trying to create a DB Link from my Oracle 11g Express Edition in a Windows XP machine to an SQL Server. Here are the steps I've done so far.
1. Created and setup an ODBC Connection for the SQL Server DB. Named it SQLSERVER. Windows Authenticated.
2. Modified listener.ora. See below.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = SQLSERVER)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = hsodbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)3. Modified tnsnames.ora. See below.
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
SQLSERVER =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT=1521))
(CONNECT_DATA =
(SID = SQLSERVER)
(HS = OK)
)4. Copied C:\oraclexe\app\oracle\product\11.2.0\server\hs\admin\initdg4odbc.ora to C:\oraclexe\app\oracle\product\11.2.0\server\hs\admin\initSQLSERVER.ora and modified it. See below.
# 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 = SQLSERVER
HS_FDS_TRACE_LEVEL = off
# Environment variables required for the non-Oracle system
#set <envvar>=<value>5. Restarted listener.
C:\>lsnrctl stop
LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 18-SEP-2012 11:33
:51
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
The command completed successfully
C:\>lsnrctl start
LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 18-SEP-2012 11:33
:54
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
System parameter file is C:\oraclexe\app\oracle\product\11.2.0\server\network\ad
min\listener.ora
Log messages written to C:\oraclexe\app\oracle\diag\tnslsnr\PHAILORTD000012\list
ener\alert\log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
ction
Start Date 18-SEP-2012 11:33:57
Uptime 0 days 0 hr. 0 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\a
dmin\listener.ora
Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\PHAILORTD000012\li
stener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "SQLSERVER" has 1 instance(s).
Instance "SQLSERVER", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully6. Created database link using the following command.
create database link sqlserver using 'SQLSERVER';7. Test using
select * from "dbo.mytable"@sqlserver;
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from SQLSERVER
select * from dbo.mytable@sqlserver;
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from SQLSERVER
select * from mytable@sqlserver;
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from SQLSERVERI followed the steps provided in this link but not sure where I went wrong. Can someone help me.
http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
Thanks,
AllenHere's more information on the machines.
Machine where the Oracle Database 11g Express Edition: IP Address is 10.162.128.67
Machine where the SQL Server database: IP Address is 142.120.51.30.
I've modified the tnsnames.ora to the following:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.162.128.67)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
SQLSERVER =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 142.120.51.30)(PORT=1433))
(CONNECT_DATA =
(SID = SQLSERVER)
(HS = OK)
)But now I'm getting the following error:
C:\>tnsping sqlserver
TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 18-SEP-2
012 14:52:59
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 142.120.51.30)(PORT=1434))) (CONNECT_DATA = (SID = SQLSERVER)) (HS = OK)
TNS-12541: TNS:no listener
C:\>Regards,
Allen -
Connect Non-SAP Oracle db (32bit) in sql 2005 (64 bit) using linked server
Hi,
I am connecting Oracle 10g database from SQL 2005 using linked server, in which i get the error
"Cannot initialize the data source object of OLE DB provider "MSDAORA" for linked server "L2ORACLE".
OLE DB provider "MSDAORA" for linked server "L2ORACLE" returned message "Oracle client and networking components
were not found. " (Microsoft SQL Server, Error: 7303)
SAP Server with sql 2005 db is in 64 bit server / Windows 2003
Non-SAP Oracle 10g is in 32 bit windows 2003 server.
i have installed Oracle 64 bit client in the SAP Server and also copied the 64 bit version of dboraslib.dll to the DIR_LIBRARY path. I am able to view the oracle tables in the oracle client.
But, when i create the linked server, it gives the above error.
If i install 32 bit version of Oracle client in the SAP Server, i am able to create the linked server in the db level, but, it says "Work Process restarted, session terminated" message in the Z program in SAP.
The same works in the test environment where both are 32 bit servers. problem is when SAP server is in 64 bit and non sap is in 32 bit.
Please suggest.
Thanks and Regards,
Nagu"Cannot initialize the data source object of OLE DB provider "MSDAORA" for linked server "L2ORACLE".
OLE DB provider "MSDAORA" for linked server "L2ORACLE" returned message "Oracle client and networking components
were not found. " (Microsoft SQL Server, Error: 7303)
check the workprocess traces for errors (and/or SM21). It seems that the system is "not aware" that an Oracle client is installed.
64bit programs can´t load 32bit libraries/DLLs that´s why the workprocess dumps when you use the 32bit client.
Markus -
Database link between Oracle 11g and MS Sql Server 2005 EE
Hi everybody,
I trying to create database link from Oracle 11g to MS Sql and I'm not succesful.
I found tutorial for Oracle 10g, but it does't work.
I created odbc data source, then I modified tnsnames.ora and listener.ora, then I created initkw.ora in HS directory and then I created dabase link, but it does't work.
Can you help me please? Thanks for help ... ondra
Tnsnames.ora:
KW =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = tcp)(HOST = oracle_ip)(PORT = 1521))
(CONNECT_DATA =
(SID = KW)
(HS = OK)
listener.ora:
(SID_DESC =
(SID_NAME = KW)
(ORACLE_HOME = C:\oracle\product\11.1.0\db_1)
(PROGRAM = hsodbc)
initkw.ora
HS_FDS_CONNECT_INFO = kw
HS_FDS_TRACE_LEVEL = 0
HS_FDS_TRACE_FILE_NAME = kw.trc
create public database link KW connect to "user" identified by "pass" using 'KW';
Message was edited by:
user598176Hi, I get two errors.
ORA-28545 - NET8 mistake Unable to restrieve textof NEWTWORK/NCR message 65535
and then ORA-02063
zenda
I resolved one of error, I have wrong ip.
But now I have another error:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][Microsoft][ODBC Driver Manager] Data source name
not found and no default driver specified (SQL State: IM002; SQL Code: 0)
I have ODBC data source in system DSN
PS: Our Oracle 11g database is 64 bit version
Message was edited by:
user598176 -
Connect Oracle 11g (64-bit windows server) to Microsoft SQL Server 2000
Hi all,
I am trying to connect:
Oracle 11g (64-bit windows server) to Microsoft SQL Server 2000 (32-bit) on a different machine.
1) I have create an ODBC connection (called:GALAXY) which connects.
2) created a init.ora called it initgalaxy.ora in $oracle_home\hs\admin
HS_FDS_CONNECT_INFO = GALAXY
HS_FDS_TRACE_LEVEL = on
3) modified the listener.ora file as below
# listener.ora Network Configuration File: E:\Ora11g\product\11.1.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = BIU01)(PORT = 1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = extproc0))
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC =
(GLOBAL_DBNAME = HEX.BIU01.kingsch.nhs.uk)
(ORACLE_HOME = E:\Ora11g\product\11.1.0\db_1)
(SID_NAME = HEX)
(SID_DESC=
(SID_NAME = galaxy)
(ORACLE_HOME = E:\Ora11g\product\11.1.0\db_1)
(PROGRAM = dg4odbc)
(SID_DESC =
(PROGRAM = EXTPROC)
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\Ora11g\product\11.1.0\db_1)
4) modified the tnsnames.ora file is as follows
GALAXY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = BIU01.kingsch.nhs.uk)(PORT = 1521))
(CONNECT_DATA =
(SID = galaxy)
(HS = OK)
HEX =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = BIU01.kingsch.nhs.uk)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = HEX)
5) restarted the listener
6) created a public database connect
create PUBLIC DATABASE LINK "GALAXY" CONNECT TO "USER" IDENTIFIED by "PWD" USING 'galaxy';
This is the error message I can sell in $oracle_home\hs\admin\trace
Oracle Corporation --- MONDAY APR 27 2009 11:54:18.370
Heterogeneous Agent Release
11.1.0.6.0
Oracle Corporation --- MONDAY APR 27 2009 11:54:18.370
Version 11.1.0.6.0
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "ON"
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 ".,"
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 galaxy_live as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
##>Connect Parameters (len=42)<##
## DSN=GALAXY;
#! UID=galaxy_live;
#! PWD=*
hgocont, line 1890: calling SqlDriverConnect got sqlstate IM002
when I try to test the database link, I get this error:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Microsoft][ODBC Drive Manager] Data source name not found and no default driver specified
ORA-02063: preceding 2 lines from GALAXY
28500.00000- "connection from ORACLE to ad non-Oracle system returned this message:"
*Cause: The cause is explained in the forwarded message.
*Action: See the non-Oracle system's documentation of the forwarded message.
vendor code 28500
Edited by: user7336435 on 27-Apr-2009 05:5611.2 is beta at the moment. There is no official release date so far.
As DG4ODBC is independant from the Oracle database (or the target database) you can use a 3 machine model:
On the first machine you have your Oracle database, on a second machine running 32bit Windows you can install DG4ODBC and on the 3rd machine you can run your foreign database.
If the SQL Server 2k is installed on a 32bit Windows machine, then you can also install DG4ODBC on this machine.
In general the connection from an Oracle database to the DG4ODBC machine is done using SDQL*Net. The listener responsible for DG4ODBC will then load the DG4ODBC executable which will connect to the SQL Server using SQL Server ODBC driver. -
Connect Oracle Reports to Ms Sql Server DB
Is it possilbe to Connect Oracle Reports to Microsoft Sql Server database. If yes then how. Please advice.
Thanks
Sami.It is possible to connect Oracle database to MS Sql server database using the Oracle Transparent Gateway for MS SQL Server.
You can use the following links to configure such connection:
Oracle Transparent Gateways - General Description - Part I
http://oracle-apps-dba.blogspot.com/2008/04/oracle-transparent-gateways-general.html
Oracle Transparent Gateway for MS SQL Server - Part II
http://oracle-apps-dba.blogspot.com/2008/04/oracle-transparent-gateway-for-ms-sql_16.html
Aviad -
Connection between Oracle 9i and MS Sql Server 2005
Hey Guys,
I am hoping to create materialized view of data on a small sql server box using our oralce 9i cluster. Anyway, i have done this with mysql using the standard odbc dirvers and a dblink, but i am having trouble finding an odbc driver for the connection from oracle to sql server. So, i was wondering if you guys know of a free, or cheap odbc driver, or have a suggestion of an alternative connection method.
PS: i have see: Heterogeneous Services Agents and Transparent gateways floating around, so are these options that don't need the odbc drivers and are free?
Thanks in advanceSome links
http://www.google.lv/search?hl=lv&q=oracle+sql+server+difference&meta=
http://asktom.oracle.com/pls/asktom/f?p=100:1:487512552646613::NO:RP::
http://www.mssqlcity.com/Articles/Compare/sql_server_vs_oracle.htm
http://www.wisdomforce.com/dweb/resources/docs/MSSQL2005_ORACLE10g_compare.pdf
But you have to remember one big thing - I've not seen yet one compare that was completely indifferent to any of the included DB's. So you can be sure that every doc that you get on MS website will say that SQL server is better, every doc on Oracle website will say that Oracle is better. Every doc on other websites will say that better DB either is:
1) DB that has payed for the reserach paper
2) DB that was mostly used by the researchers
So of course you should be very cautious about each paper you get.
Gints Plivna
http://www.gplivna.eu -
Oracle Source TO MS SQL Server 2005 Target
Hi there,
I need to extract data from my Oracle DW and push it into a dependant system's Microsoft SQL Server 2005 DB.
Could someone PLEASE give me some pointers?
Oracle DB 10.2.0.4.0
OWB 10.2.0.1
Thanx!
Edited by: Gun77 on 2009/08/12 8:48 AMHi Gun77 !
As i knew, ODBC Generic Connectivity Agent is an API which use for connect other RDBMS. Don't care cost because it's free.
In other way, u can use Oracle Generic Connectivity Agent to any DB (SQL server, MySQL,…)
Download the orajdbclink_o2a.zip (oracle-to-any) file:
http://sourceforge.net/project/showfiles.php?group_id=205664
u can see detail in this link:
http://duykhanh.wordpress.com/2009/08/05/oracle-dblink-to-any-db-sql-server-mysql%E2%80%A6/
Hope good for you!
KhanhND (ZyK) -
Oracle 10g/11g to Sql Server 2005 Migration
Dear All,
I am a beginner to this migration Activities..
We have designed one Application which is havin Database as Oracle 10g.
and We had another small Application which is having Sql Server 2005 has Database.
Daily we need to convert DB of Oracle to Sql server DB in order to acces recent updated data..
Pls help me how to convert Database in Oracle 10g/11g to Database in sqlserver 2005..Hello,
this is an Oracle forum and we are handling here migrations from foreign databases to an Oracle database.
For migrations in the other direction, in your case from Oracle to MS SQL Server, you need to read the Microsoft pages, e.g.:
http://www.microsoft.com/sqlserver/2005/en/us/migration.aspx
Daily we need to convert DB of Oracle to Sql server DB in order to acces recent updated data..Normally a migration is not a daily process, so I guess that you just want to transfer data from Oracle to SQL Server on a daily basis. If that is the case, you should consider to use our Gateways. Please start reading here:
http://www.oracle.com/technetwork/database/gateways/index-100140.html
Using the Database Gateway for MS SQL Server (DG4MSQL) or the Database Gateway for ODBC (DG4ODBC) you can copy your data from your Oracle database to your SQL Server database, using a database link in the Oracle database.
Please let me know whether this answer helped you.
Regards
Wolfgang -
Oracle 9i dblink to SQL Server
Hi experts,
I need some info on what I need to set up a db link on an Oracle 9i db running on HP-UX to a SQL Server 2008 db running on Windows Server 2008 R2.
For the Oracle Windows component do I need to keep it at Oracle 9 or can I install the latest and greatest?
Thanks.Hi Jamie,
Maybe some interesting references:
Heterogeneous Database connections
http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
Accessing ODBC and JDBC Data Sources from Oracle Heterogeneous Services (hsODBC)
http://www.easysoft.com/applications/oracle/hsodbc.html
Generic Heterogeneous Services and Transparent Gateways in 10 Minutes:
http://www.orafusion.com/art_orahs.htm
HTH,
Thierry -
Differnce Between Oracle 9i And MS SQL Server 2000
Hi,
What are the difference between Oracle 9i And MS SQL Server 2000.
ThnaksSome links
http://www.google.lv/search?hl=lv&q=oracle+sql+server+difference&meta=
http://asktom.oracle.com/pls/asktom/f?p=100:1:487512552646613::NO:RP::
http://www.mssqlcity.com/Articles/Compare/sql_server_vs_oracle.htm
http://www.wisdomforce.com/dweb/resources/docs/MSSQL2005_ORACLE10g_compare.pdf
But you have to remember one big thing - I've not seen yet one compare that was completely indifferent to any of the included DB's. So you can be sure that every doc that you get on MS website will say that SQL server is better, every doc on Oracle website will say that Oracle is better. Every doc on other websites will say that better DB either is:
1) DB that has payed for the reserach paper
2) DB that was mostly used by the researchers
So of course you should be very cautious about each paper you get.
Gints Plivna
http://www.gplivna.eu -
Linked Server SQL 2008 64 bit Windows Server 2008 64 bit
Hello there,
I'm trying to access my customers Oracle database with a SQL Linked Server. The error I get is:
Cannot create an instance of OLE DB provider "OraOLEDB.Oracle" for linked server...
I did the following steps:
1. Installed Oracle client 10g with a custom installation and selected everything.
2. Created a tnsnames.ora
dev =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dijkora01)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = dev)
3. Tested this with tnsping dev, which said that the connection is OK.
4. Activated 'Allow inprocess' for my OraOLEDB.Oracle provider for the linked servers in my SQL Server Management Studio.
5. Created a new linked server with:
Linked Server: IAP
Provider: Oracle Provider for OLE DB
Product name: Oracle
Data source: dev
In the security tab I activated 'Be made using this security context'. When I now press 'OK' I get the above error message.
Can someone help me with this?Windows 7 Enterprise 32-Bit
Installed the version 12 for 32 bit ODAC and it worked. The key is to Install as Administrator once it is unzipped.
Was able to set up Listener then
Was able to set up ODBC using the ODAC. Connect MS Access 2010 to the Oracle views.
Then, tried to install the 64 Bit onto Windows 2008 Server.
It locked up during installation both times.
Installed ODAC without an error.
However, the ODBC setup will not provide a list of the servers in the ODBC TNS Service Name listbox for Server 2008.
In Windows 7, it populates the TNS Service Name.
The list box in Windows 2008 is empty.
Do you know what would cause that?
The .ORA file scrips look the same on Windows 2008 as they do on Windows 7 except it does not have the (server = Dedicated) argument.
Thanks. -
Read Oracle 10g Tables to SQL Server 2012
Hi all,
I have Oracle 10g on an XP machine, and use the 'Oracle in OraDB10g_home1' driver to read the data. I have another Windows Server 2008 R2 machine on the same network, with SQL Server 2012 on it. What is the best way to read Oracle Tables in SQL Server? Can I setup an ODBC link from my Windows Server machine to the Oracle Database (which would require me to download an Oracle ODBC driver)? Or is the best way to export the required tables from Oracle (e.g. into csv format) and import them into SQL?
Thanking you in advance,
Imelda.987575 wrote:
Hi all,
I have Oracle 10g on an XP machine, and use the 'Oracle in OraDB10g_home1' driver to read the data. I have another Windows Server 2008 R2 machine on the same network, with SQL Server 2012 on it. What is the best way to read Oracle Tables in SQL Server? Can I setup an ODBC link from my Windows Server machine to the Oracle Database (which would require me to download an Oracle ODBC driver)? Or is the best way to export the required tables from Oracle (e.g. into csv format) and import them into SQL?
Thanking you in advance,
Imelda.You should use Heterogeneous Services
Following is a demonstration in ASKTOM to connect from Oracle to Excel, You can use the same to connect to SQL Server.
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:4406709207206#18830681837358 -
Oracle Connectivity with MS SQL Server. ORA-00972: identifier is too long
I have linked Oracle Database with MS SQL Server using HS and DB Link.
DB Link Script:
CREATE DATABASE LINK "FCHH"
CONNECT TO SA
IDENTIFIED BY <PWD>
USING 'LISTENER_FCHH';
Links tested successfully.
Now "SA" user in Microsoft SQL Server has multiple databases i.e. Master,SecurePerfect,SecurePerfectHistory. when I try following command
select * from "SecurePerfectHistory.DBO.BadgeHistoryTable"@FCHH
ORA-00972: identifier is too longORA-00972: identifier is too long
Cause: An identifier with more than 30 characters was specified.
Action: Specify at most 30 charactersAman....
Maybe you are looking for
-
Persistant ORA-01461error on insert through db link in processes
I have noted this as a frequent subject on the forum, but not found a definitive solution. I have an update going through a db link. Even though the field I'm updating with and the field being updated are both VARCHAR2(150), I get the error... ORA-01
-
An error occured while exporting the slideshow
Exporting a 400 slide slideshow. After it churns for awhile and the progress bar is all done, I get an error box that says: AN error occurred while exporting the slideshow. The export fiel could not be saved. My only option is to click okay. No more
-
ANN: LR2/Mogrify 2.00 Released - add compress to file size feature
Hi all, I've just released version 2.00 of my LR2/Mogrify for Lightroom, which should make quite a few of you happier- The head-line news is that there's now a compression feature that'll automatically find the optimum JPEG compression value to produ
-
ITunes always crashes when I try to goto purchased
Itunes starts up fine and does everything fine but one thing. When I try to goto the iTunes Store and then go to Purchased it starts to load but then crashes after loading 2/3 of the way through. It did this in 10.4 and again still in 10.5. I have
-
Data replication offline/online
e have a java application which has to work both in off-line and on-line mode.The application is in two tier architecture and the environment is : Forte(IDE),JVM 1.3.0 Hotspot,JDO,pointbase embedded for offline mode and oracle 8.1.7 for on line mode