How to use Linq to SQL over an Oracle database or MySQL database, and still get the same functionality and performance as with using it with SQL server.
Read this oracle and you can get same functionality (as standard LINQ) from this linqtooracle
Related
Is there any third party tool which can convert Vectorwise query into Synapse queries?
Unfortunately, there is no such tool available.
Azure Synapse support T-SQL language to query and analyze the data. You can use standard ANSI-compliant dialect of SQL language used on SQL Server and Azure SQL Database for data analysis.
Since vectorwise query is similar to T-SQL, you can try if some of the statements supported by Synapse. Else, you need to write them in T-SQL and use.
When using the Zend_Db_Table_Abstract Save function, to update a database, do I need to worry about SQL injection (quote my parameters) or is it done automatically?
How can I see how the query looks?
No, you don't have to worry about SQL injection when using save().
Behind the scenes, Zend Framework uses Zend_Db_Adapter_Abstract::insert() and Zend_Db_Adapter_Abstract::update(), which use bind parameters. All values will be escaped by the framework to prevent SQL injection.
The only risk of SQL injection is when using Zend_Db_Expr to create custom / advanced queries, but this cannot happen when using save().
You may want to have a look on Zend_Db_Profiler to list all queries generated by the framework.
Alternatively, you can also enable your database query logs. See How to enable MySQL Query Log? for MySQL, or How to log PostgreSQL queries? for Postgres.
I'm supposed to migrate script and data for an Oracle data warehouse to SQL server. They want to transfer data last, so first I'm converting the existing PLSQL code into TSQL. Is there any way for me to test if the converted TSQL is returning the correct rows on the existing Oracle database?
You can set up a remote link to Oracle from SQL Server. This can be a bit more complicated than you would want. After all, the database hierarchy and naming conventions are different (for instance, SQL Server uses 3-part naming for tables in a database, Oracle uses 2-part naming for tables in a schema).
But, if you just want access to a single table, then this might be reasonable. The basic command to use is sp_addlinkedserver. But there are details. Here is a question with a detailed answer.
As for the porting project, I would suggest that you create sample data on both Oracle and SQL Server and use it to validate the port. Of course, you will have to eventually test on the real data. But being able to build the system using sample data that is safe from production users should facilitate your work.
I need to migrate data (including tables, procedures, schema) from Sql Server 2005 to Oracle 10g. Can anyone suggest me a way to do it? Thanks.
Take a look at the Oracle Migration Workbench
SwisSQL have a commercial tool that will do that. It can go from and to several different database vendors. I've used it before to go from SQL Server to Oracle and it works well.
The best way to work around is by using ORACLE GATEWAY First create tables, views, stored procedures and triggers in ORACLE and then using ORACLE GATEWAY you can directly insert the data from SQLSERVER to ORACLE.
But you need to be cautious about data types. For migrating data from Image, TEXT you need to use *DBMS_Sql*
One of the possible options is to use SQL Developer. It is an Oracle free tool, which migrates both database objects and data. However, you need to have high level of knowledge in database migration, in particular experience of working with Oracle and SQL Server. Sometimes the results of automatic migration with SQL Developer require significant manual adjustments.
I have a SQL server database (Tables, Views, SP...). I need to convert this database to Oracle 10g. How can I do it?
Transferring the data will be easy; SQL Server integration services can do that, or Oracle's SQL Developer.
However, views and stored procedures are different between Oracle and SQL Server. SQL Server uses T-SQL, Oracle uses PL/SQL. These are not very compatible and I don't know a tool can automatically convert between the two. If your database relies on specific T-SQL features, you will need a developer to do the conversion.
Get the jTDS jdbc driver from sourceforge.
Add it to Oracle SQL Developer.
Tools > Migration > Migrate
Create a migration repository in your new Oracle database.
Create a new migration project.
Point it to your SQL Server database.
Convert it - mind the data types.
Migrate the data:
online row-by-row inserts over JDBC. Fine for SMALL/test boxes.
offline - use micrsosoft's unload utility to pull the sql server down to flat files. SQL Developer will create SQL*Loader scripts to put them over into Oracle.
If you have GoldenGate licensed, use that to move the data over and to synch changes from one system to the other in case you need to keep both up and going.
Start looking at the migrated T-SQL procs and functions. SQL Developer will leave comments for code blocks it wasn't able to translate...but you will need to TEST and VERIFY every single translation. Customers can see upwards to 80-90% translation rates for their T-SQL, but it could be as low as 50%...it just depends on the nature of your code.
The entire process is described here.
I wrote a white paper, with Sybase ASE as the example source platform, here. The process is identical for SQL Server. It has step-by-step guidance with screenshots.
If you have an Oracle account manager, reach out for help. We have specialists that deal exclusively with migrations such as yours. They have lots of practical advice and can recommend 3rd party partners if you lack the expertise.
sql developer can help. You can download it here , it is free. http://www.oracle.com/technology/software/products/sql/index.html
There is step by step documentation including videos on how to migrate SQL Server to Oracle DB. You find it here:
Migrating from Microsoft SQL Server to Oracle
Or you can use a tool to do the job for you like Ispirer - Migrate Microsoft SQL Server to Oracle
You basicaly setup an Oracle Server, once its ready you migrate your tables using a software made for that. I guess this script can do the job:
m2o