SQL and Oracle in synchronization
I have to synchronize for about 2 months one Oracle 9.i database and one SQL server 2000, Standard edition database, both running on Win 2K Server. Every change made on either of the databases (the best is there are only 4-5 tables reflected) has to be provided on the other side almost in real time. I choused to use SQL server as a way to do it. For Oracle I have only the ODBC connectivity (supplied for free) and I did have a lot of problems in ORA 8.1.6... Needless to say, there's no money for third party products or even new ORA transfer utility, as the 2-month are not sufficient time.
I did set up linked servers between SQL server and Oracle and trying to make some triggers working for me, but is this the best way to do it? May be somebody has better experience...
Any ideas will be greatly appreciated.
Thanks,
MJ
Do you really like to implement a two way replication between M$ SQL and Oracle?
Maybe you can try this using the heterogenous gateway and Oracle Advanced replication. Don't know if this could work our test environment would be ready but actually there's no time to try.
Will keep you informed if I know more.
In this way you don't need any third party sw and I think it could work, but never have tried it out.
Could be an interesing challenge ;-)
Michel
Similar Messages
-
Can We use FDM as ETL tool between SQL and Oracle
I want to use FDM as ETL tool between SQL and Oracle. Can it be possible. I didn,t found any target adapter for oracle database.My source system is SQL and Target system is Oracle database.
Rahul
Edited by: user12190125 on Nov 9, 2009 4:23 AMRahul,
I believe this is possible to do, but not an easy one and there are a few considerations:
How much data are you processing? FDM has a lot of features which support the business process. While this is great for users and audit trail etc. it slows down performance if you want to process a lot of data. It also depends on the type of mappings you use (Like mappings are slower than explicit mappings).
How familiar are you with VBScript? There is no explicit target adapter for Oracle, but there is a data mart adapter which can be used for anything. You have to implement everything yourself though, mainly the Export and Load actions. In there you will also have to handle the the connections to the MSSQL and Oracle databases.
Check the data mart adapter and see if you feel comfortable with defining the vb code in there. There are reasons for and against this approach. ODI would probably be the better choice unless you really need to have FDM's process support.
Regards,
Matt -
Guide to differences between SQL Server Transact SQL and Oracle PL/SQL
Does anyone know of a good book (or online guide) that has an in-depth comparison of the differences between SQL Server Transact SQL and Oracle PL/SQL? (Something more than a beginner's guide)
Hello,
Below links will surely be helpful
Discontinued features in SQL 2012
Depricated features in SQL Server 2012
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
What is Difference between ANSI SQL and ORACLE SQL
Hi,
I am going to take the assesment test for ANSI SQL Programming before that i want to know any difference between ANSI SQL and ORACLE SQL?
I am studying for SQL but the test will be ANSI SQL please let me give an idea about the both.
Thanks
Merina RoslinBasically there is syntax difference between both of them.
Lets say i want to join two table EMP and DEPT based on DEPTNO.
With Oracle SQL format its like this.
select e.*
from emp e, dept d
where e.deptno = d.deptnoHere the joining condition goes in the WHERE clause.
With ANSI SQL format its like this.
select e.*
from emp e
join dept d
on e.deptno = d.deptnoHere the join condition is mentioned separately and not in WHERE clause.
Oracle supports ANSI SQL starting from 9i version.
You can read more about the syntax difference Here -
Uses for the Action Property with SQL and Oracle DB Adapters
This thread is a complement to the Wiki Article
BizTalk: Streamlining WCF SQL and Oracle Messaging-Only and Other Patterns
The question. In what circumstances is explicitly setting the Action value with the WCF SQL and Oracle DB bindings useful or beneficial.
A complimentary question. Is it even possible to set the Action value to anything other than exactly what is required by the Message.
I ask because of three very specific behaviors of the bindings themselves:
The binding enforces a match between the Action and the Message, therefore...
There is a one-to-one relationship between the Message and Action, but...
The binding is able to correctly derive and perform the requested operation with the unspecific CompositeOperation.
For clarity, I understand how to set the Action. I. understand what the Action represents in the SOAP scheme. I understand how Action can be used as an abstraction for SOAP operations.
Thoughts?Do you have any good suggestion to learn how to use action property with SQL and Oracle DB adapters? I learn a lot from your replies for years in BizTalk forum. :)
-
Hello, I was using a MySQL database and i will soon use Oracle8. I was wandering if Oracle authorize something like mysql_result... I'm looking too for simple documentation about connecting to an Oracle database from a php file using Sql. Do u know books or sites ? Tks
user12317666 wrote:
Does Oracle support T-SQL ? Why would Oracle support a proprietary macro-based language implementation from a competitor?
If it is not supported in Oracle, what is the major grammer difference between T-SQL and Oracle supported SQL ? Oracle has two languages. SQL. PL/SQL.
PL/SQL is formal declarative procedural language with object orientation programming features. It is based on the Ada language (close relative of the Pascal language).
SQL is fully integrated with PL/SQL. Which means that you can write and mix SQL source code with PL/SQL source code and the PL/SQL compiler will figure out which is which and where to make calls to the SQL engine for executing SQL code.
Is there any efficient way for programmer to complete T-SQL transition to Oracle SQL ? Yes. Unfortunately not the answer that you are likely hoping for.
Forget EVERYTHING you did with T-SQL.
There is no real comparison between the two. And not only many differences, but some fundamental and conceptual differences too. -
Need a function name for Sql and Oracle
Retrieving value of next line by doing opteration in previous row.
Can you rephrase the question? Or better yet, provide an example? I'm not sure I understand what you are asking.
My best guess is that you are looking for the analytic functions LEAD or LAG in Oracle, assuming you are on a relatively recent Oracle version. If by "SQL and Oracle" in your subject you mean "SQL Server and Oracle" (SQL is a language that all relational databases implement, SQL Server is Microsoft's relational database), I have no idea how (or if) you can do something similar with a built-in function in SQL Server. You would want to post in a SQL Server group to see how they handle that sort of thing.
Justin -
Tablespace size report for SQL and oracle servers
Hi All
is it possible to get tablespace size for all sql and oracle server in the form of report in SCOM.
Regards
MadhaviOracle: Table size report of Oracle is depend on the MP which yu imported into SCOM
SQL :
1) Create a group which contains folowing dynamic rule
2) Reporting workspace --> Microsoft Gneric Report --> Performace Detail
3) in the parameter area, create a new series, add group which create in step 1) and select the rule: MSSQL XXX: Collect Database Allocated Size(MB)
4) Run the report
5) In the report, click actions and select "Performance details for every object"
Roger -
Frequently transfering databases between MS SQL and Oracle
Hello all,
I am looking for a solution to easily, efficiently and be able to migrate/transfer databases between MS SQL and Oracle frequently.
I need to be able to replicate a databases on Ms SQL and Oracle for testing purposes. I will need to do this on frequent basis - almost once a week.
Please suggest what would be the best way.
Thanks in advance.Hi Justin,
You have guessed it right to a great extend. Yes dont actually need to develop, rather need to test an application that supports SQL and Oracle databases. Now when testing the application its obviously vital to create proper systematic test data. This usually takes a lot of time and effort from the testing team/team-member. So, yes what I need to do is create the test data on one database(may it be SQL or Oracle) and migrate/transfer the data into the database on another server( ie. SQL to Oracle or Oracle to SQL).
So,
Are you developing a product that works against both SQL Server and Oracle and trying to synchonize development efforts?Yes, thats correct to extend, I need to test an application against both the servers, as it supports both types of databases, and try to reduce the test setup efforts (literally double the amount) that go in after manual creating same data on each type of database.
Are you trying to replicate structural changes between systems?I am not 100% sure, what you mean by this. But whats important and enough for me is to replicate the data. It would not be a lot of work to run the scripts and create empty schema objects.
Are you trying to replicate data changes between systems? The fact that you're only doing this weekly suggests that you're not working in a traditional replication environment.Yes, again as I mentioned above. It would be sufficient for me to just get a copy of the initial dataset. And then replicating changes to it would not be that important. However, if I can achieve a solution to this, I can by all means create a new database on the one server (SQL or Oracle) and take the data-set of the most recent/correct changes and replicate it on the other type of server as and when needed.
No - this is not a traditional replicating environment. I say weekly, because it is usually once in a week or forthnight that someone from the team will need to spent time to manually copy the test-data onto the another type of server in order to run the same testcases on two types of servers.
How do you handle conflicts (i.e. if I modify a row in both systems, which modification wins)? This is not really a problem in my scenario, as I only need to be able to transfer the data across to the different server and forget about the two databases actually being in-sync.
I have also, looked at DTS for a possible solution on SQL, however it seems highly un-realistic, having to map somewhere like 250 tables from the a drop-down list, only because the two database servers use different cases to represent tables internals. So, table 'Table' in my application's SQL database is called 'TABLE' is my applications Oracle database. DTS is highly inefficient in dealing with this. Also, having 250 tables move makes this a bit of a pain.
Thank you Justin for your response; I highly appreciate your inputs.
Regards, Nisarg -
Dblink creation between sql and oracle server
Hi dears,
I need to create dblink between the sql and oracle server.
(For me the requirement is sql datas need to import in oracle database).
My questions is,
Without installting gateway is't possibale to get the sql data in the oracle server.
my database version is 11.2.0.3 64bit
Kindly let me know, Waiting for your suggestsion.
Regards
AthishAbout the Linked Server mechanism have a look at the MS Knowledge base article:
Article ID: 280106 - HOW TO: Set Up and Troubleshoot a Linked Server to Oracle in SQL Server
or
How to run a SQL Server 2005 Integration Services package as a SQL Server Agent job step Article ID : 912911
Regarding DG4ODBC and DG4MSQL, please have a look at our Support portal and look for the gateway master note:
Master Note for Oracle Gateway Products [Document 1083703.1]
It contains generic information how to connect to the foreign database
Document 233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases - For example - DB2, SQL*Server, Sybase, Informix, Teradata, MySQL
as well as the functional differences between the Database Gateway for ODBC (Generic Connectivity) and MS SQL Server
Document 252364.1 Functional Differences Between Generic Connectivity and Database Gateways
Document 232482.1 Gateway and Generic Connectivity Licensing Considerations
as well as where to find the latest release and how to install and configure them. -
Differences between ANSI SQL and Oracle 8/9
Hallo,
i'm looking for good online texts or books concerning the problem "Differences between ANSI SQL and different database implementations (ORACLE, Informix, MySQL...)" I want to check a program written in C (with ESQL) that works with an Informix-DB. In this code i want to find code that is specific to the Informix-DB. I want to change the database, so all the code should be independent from a DB. Does anybody know texts or books concerning this problem?
thx
Marco SeumBasically there is syntax difference between both of them.
Lets say i want to join two table EMP and DEPT based on DEPTNO.
With Oracle SQL format its like this.
select e.*
from emp e, dept d
where e.deptno = d.deptnoHere the joining condition goes in the WHERE clause.
With ANSI SQL format its like this.
select e.*
from emp e
join dept d
on e.deptno = d.deptnoHere the join condition is mentioned separately and not in WHERE clause.
Oracle supports ANSI SQL starting from 9i version.
You can read more about the syntax difference Here -
Oracle Pl/Sql and Oracle Application Express for Beginners
Good day,
Have a prodigy that is strongly interested in oracle application express.Haven know that he will only do we in APEX if he is good in pl/sql and have some skills in html and javascripts.
For such person,what are the books that i can recommend for him,that will guide and assist him?Will be highly grateful if anybody can assist.Sc0tt wrote:
I think it also falsely gives the impression that one does not need to understand the database at all because Apex can do everything for you...This is why I echo Munky when he says that you need a solid understanding of data models and the database before attempting to build an application.
I absolutely concur with this view. When I first started using ApEx, I was basically given a user guide and told to get on with it :-) Subsequently, for the first 6 months or so, I built probably fairly lousy (but functional) apps until I got a better grasp of Oracle architecture.
That being said, SQL is an absolute must if you are going to work on a database. PL/SQL really should be learned as well because your application will be limited without it. CSS and Javascript and nice to have's, but they can be learned as you go. Since all of the api's are built in pl/sql, it would really hinder what you could do if you didn't know it.One resource I have found very useful is the good old 'Ant' book a.k.a. Oracle PL/SQL Programming by Feuerstein, et al. I have a well-thumbed 4th edition sitting on my desk at the moment - weirdly for a text book, rather a joy to read.
I personally found Jay-Lew's "Cost-based Oracle Fundamentals" a somewhat bitterer pill to swallow - tough on the way down but good for one's constitution! -
I have created a 250 pages Oracle portal for a corporation. The enterprise content is about 500Mb of docs, pdfs, pps. I have Oracle Text enabled via Global Settings (Oracle 10g), but during searches the results are all based on titles and keywords. No in text searching results. Can anybody give me some advice and explain me why Oracle Text feature doesn't work. The necessary table and index files are created by default or i must create them and if 'yes' where? Which are the SQL+ statements to check and utilize Oracle Text's indexes? It's all about content synchronization or not? I have met the Oracle Text dead-end, please help me.
Hi
Have you looked at the OracleAS Portal Configuration Guide? The latest version (10.1.4) is available from here - http://www.oracle.com/technology/documentation/appserver101202.html.
Click View Library, then the Portals tab. The 10.1.4 and 10.1.2 versions of the Portal Configuration Guide are both available from here.
Specificallly, see:
- 8.1.3 Default Search Functionality (http://download-uk.oracle.com/docs/cd/B14099_19/portal.1014/b19305/cg_srch.htm#i1040939)
- 8.3.5.1 Synchronizing Oracle Text Indexes (http://download-uk.oracle.com/docs/cd/B14099_19/portal.1014/b19305/cg_srch.htm#i1027594)
Hope this helps
Rosie -
Java sql and Oracle resultsets
I am trying to execute a query but I never get anything back from the database.
Do I have to format the date in my sql quoted string to get it to bring back data correctly?
The sql that I am trying to execute looks like the following.
sql = "SELECT " + REPORTTRANSDATE + ", " + REPORTCUSTACCTNUM + ", " + REPORTNAME + ", " + REPORTAMOUNT + ", " + REPORTTENDER + ", " + REPORTTRACKINGID + ", " + REPORTRETURNCODE + " FROM " + REPORTTABLE + " WHERE " + REPORTBILLERID + "=?" + " AND " + REPORTTRANSDATE + ">= ?" + " AND " + REPORTTRANSDATE + "<= ?" + " ORDER BY " + REPORTTRANSDATE;
Prior to executing the query the following date parameters are provided.
I am using a preparedstatement.
stmt.setDate(2, new java.sql.Date(sqlFromDate.getTime()));
stmt.setDate(3, new java.sql.Date(sqlToDate.getTime()));
The from date looks like this: "07/11/2004 00:00:00"
The to date looks like this: "07/11/2004 23:59:59"
The dates are in java.util.Date format to start with and I am trying to get them into java.sql.Date to pass in the values. Is the above date format ok or does it need to look like "11-Jul-2004 00:00:00" for Oracle?
Thanks for you help.Is there anyway to get the resultset to display the
actual query being run when using ExecuteQuery?
I am talking about the sql string after the parameters
have been supplied using the stmt.setTimestamp...
I would like to be able to see exactly what the
database is seeing when the query is executed.As far as I know, there is not. However, if you are using oracle, then you can get the exact SQL that is getting executed. I am not sure as to the details (the word sqltrace comes to mind, but I don't know if that is a colloqialism or an actual term). Your friendly Oracle DBA can probably help out more here than I can.
- N -
TFS 2013 Build for PL/SQL and Oracle Projects
Hi,
We use TFS Build with SQL Server Projects.
We also have PL/SQL projects .We are using MSSCCI to check in and check out files. Is there anyway we can use TFSbuild for these projects( [PL/SQL]/Oracle) too ?
Thank you.
SuHi Su,
Thanks for your post.
How do you manually build your PL/SQL/Oracle projects?
TFS Build invoke MSBuild command to build project/solution on build agent machine by default. If these projects can be built using MSBuild command line manually, then we can use TFS Build(default build process template) to build these projects.
If these projects need be built using another complier, and this compiler support run the command line to invoke it, so you can add the InvokeProcess activity(execute the command line) to invoke this compiler to build these projects in build process template,
then create build definition using this customized build process template.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Error message when trying to copy a DVD with Roxio Toast v6.1.1
I'm trying to duplicate a DVD I made via Final Cut Pro and DVD Studio Pro by using Toast Titanium ver. 6.1.1. About 3/4 of the way through the record process, I keep getting the following error message: "Couldn't complete the last command because the
-
Oracle dblink to sql server, accessing multiple database on same sql server under one dblink
Hi, we have successfully managed to set up an Oracle dblink over to sql server and retrieve data. The sql server user were using via the dblink has access to more than one database on the same sql server But the question is how in oracle (if at all p
-
Spelling error in start page offered in Romanian
Correct form for "create an account" in Romanian: "creeaza un cont" instead of "creaza un cont" as it's spelled now. Thank you!
-
Printing Sometimes Works, Sometimes Doesn't
I have the most unusual problem, and I'm not expecting any answers. I was wondering, however, if anyone had any ideas about figuring this thing out. On one computer network (mainly running 1.4.x with Windows 2000) I can print my JComponent absolutely
-
Only 274 mails are coming when using pop3 with java mail
Only 274 mails are coming from GMAIL when using pop3 with java mail. but there are more than 3000 mails. I'm not getting the reason, code is given below: public static void main(String[] args) { // SUBSTITUTE YOUR ISP's POP3 SERVER HERE!!! //