Connect to SQL Azure tables from Oracle database using Dev link - oracle11g

I have tables in Azure SQL Server, now I want to reference those tables in Oracle.
The approach we followed is using dblink, for example Tablename#dblink.com.
But all our procedures having lot of joins with oracle tables and also with SQL tables. So it's taking lot of time to execute the simple query.
Please help us to resolve this.
Thanks in advance

Related

Difference between SQLITE VS SQL

Can I know please the difference between SQL Server and SQLITE .Is there any major differnces in the syntex? I know SQL but I did not learn SQLITE which I have to know within days ???
SQLite supports pretty much full SQL syntax, in fact it probably has less quirks than MS SQL Server
The huge difference is that one is a server (SQL server). The other is embedded (SQLite), a totally different use case
Write a hello world program using SQLIte, create a table and store a row.
There are some very good free sqlite tools for inspecting a sqlite DB so you can see if your test worked
SQL is the query language to manage databases.
SQL Server is DBMS product of Microsoft.
SQLite is a open-source DBMS often used in PoC (proof of concept, or prototypes) applications or mobile apps. Its "advantage" is that the whole database is stored in a single file in your file system. You don't have to setup a whole database server to work with sqlite. This is obviously not a solution to real life applications or web sites.

How do I migrate from SQL Server to PostgreSQL using flyway?

Hi I have source SQL DB and destination RDS PostgreSQL DB.
I want to migrate by using flyway. First is it possible ?
If possible then can anybody help me with solutions?
Flyway is a tool for running scripts, rollbacks, targeted piecemeal deployments, all sorts of other stuff. However, it doesn't generate scripts. You have to provide it with syntax appropriate to the database system you're deploying to. T-SQL isn't the same as PostgreSQL. Nothing in Flyway will allow you to translate the T-SQL. You will have to do that work on your own. Once completed though, Flyway will absolutely be able to deploy those changes to your new database.

Migrating from MSAccessDB to SQLLite

I have a application written long time back using the MS Access as the configuration database. It was using OLEDB Provider (Jet Engine) for retrieving data from the configuration DB.
I intended to replace MS Access Db lightweight RDBMS which requires no additional installation requirements. Thinking of using SQLLite which seems to suite my needs. Wanted to check if anyone have invovled in migrating the data from MSAccess to SQL Lite. Is there an easy way to migrate the schema and data?
You can quite much transfer data and schema if you setup the ODBC driver for sqlite.
Once done then you can run append queries in Access to export to the sqlite database.
Of course with sqlite you don't get or have forms, reports or a coding language. So, you have to replace that part of Access with some other kind of development platform.
So, you need to get a ODBC driver for sqlite.
This one works well:
http://www.ch-werner.de/sqliteodbc/
So, once you done the above, then you can link from access to sql lite. You can even edit data with Access forms, or even run access reports against data in sqlite.

Oracle database performance tuning

i)How to find out the long running query in oracle?
ii)How to find out the long running error query?
Please help me on this.
I guess you need to profile your stored procedures.
I used to use PL/SQL Developer for profiling my PL/SQL packages and procedures, it showed me all bottlenecks with detail information about time and resources. I believe all IDE for oracle have to have this functionality, you can choose your favorite one.
Use the AWR report from enterprise manager if you are running it. If you don't have access to this then you can use EXPLAIN PLAN, TKPROF, or look at the dictionary tables like v$_session_longops.
e.g. http://blog.psftdba.com/2007/10/using-vsessionlongops-to-find-long.html

Using ASP.NET tables generated by aspnet_regsql.exe in a SQLite database

I'm building a small ASP.NET MVC site where I want to use SQLite. While I already know how I will be connecting to the database (using DbLinq), I don't understand how to put the ASP.NET tables generated by aspnet_regsql.exe into an SQLite database.
I've used the regsql tool before with SQL Server, but never with SQLite. How do I create them for the SQLite DB?
One strategy that I think might somehow work is:
Use aspnet_regsql.exe to create the tables into an empty SQL Server database
Script all the objects in the database into T-SQL
Apply the T-SQL to the SQLite DB (how?)
Take a look at http://salient.codeplex.com
the Web.SQLite directory contains a drop in replacement for the default SQL providers.
It was a proof of concept that turned out ok. It uses EF, so is not as performant as it could be but should service low/medium traffic sites without issue.
You should be able to exclude all other files except that subdirectory and build it in isolation if desired. This will allow you to also trim the references.
Let me know if you have any issues.
You could try it with SQL Server Compact Edition 4 which is an embeddable SQL engine like SQLite but has an easier upgrade path if you need to grow it up to SQL Express or SQL Server.
Unfortunately the aspnet_regsql will not work with SQLite, so your strategy is essentially the correct approach. However, I would suggest looking at something like Roger Martin's Gallery Server Pro, which uses SQLite and already has the Membership, Role, and Profile provider tables scripted. You can make use of the script. See Roger's Code Project article from more information.

Resources