Access SQL Server 2014 from Oracle database 12c - sql-server

How can I access or connect to Sql Server 2014 Enterprise from Oracle 12c Enterprise.
I want to connect so that I can run DML queries on SQL Server 2014 tables, EXECUTE procedures and so on.

Going from Oracle to SQL Server is called a "Database Link"
Going from SQL Server to Oracle uses a "Linked Server".
Somebody has explained it over at Stack Exchange.
https://dba.stackexchange.com/questions/15708/how-to-create-oracle-linked-server-in-oracle-server-itself

You can refer to Oracle's Heterogeneous Connectivity documentation. There's a guide for each of several different remote data sources. You'll want to focus on the ones for ODBC or SQL Server. If I remember correctly the Heterogeneous database gateway for ODBC is included with standard database licensing, but Heterogeneous database gateway for SQL Server requires additional licensing.

Related

How to copy table from SQL Linked Server to SQL Server and maintain key constraints?

I have an SQL Server installed on a local Windows 10 machine - I'm using Microsoft SQL Server Management Studio to interact with it.
I also have a DB2 database hosted on an IBM i machine and I've created a Linked Server in SQL Server Management Studio to represent it. I can connect to the Linked Server and can query/pull data from it successfully.
I'm trying to copy particular tables from the Linked Server and insert them into a Database/Schema in the SQL Server - I can do this successfully but unfortunately, it appears that in the process of copying the table over, none of the constraints (particularly in my case, the key constraints) are maintained.
Is there a simple way to copy over tables from a Linked Server to SQL Server (in SQL Server Management Studio) while maintaining key constraints?
The following query is an example of what I'm using to copy the tables over (one-by-one):
SELECT *
INTO SQLSCHEMA.SQLTABLE
FROM LINKSERVER.LINKDATABASE.LINKSCHEMA.LINKTABLE
The easiest way is to use proper tool for it like SSMA:
Microsoft SQL Server Migration Assistant (SSMA) is a tool designed to automate database migration to SQL Server from Microsoft Access, DB2, MySQL, Oracle, and SAP ASE.
Migrating DB2 Databases to SQL Server (DB2ToSQL)
SQL Server Migration Assistant (SSMA) for DB2 is a comprehensive environment that helps you quickly migrate DB2 databases to SQL Server or Azure SQL DB. By using SSMA for DB2, you can review database objects and data, assess databases for migration, migrate database objects to SQL Server or Azure SQL DB, and then migrate data to SQL Server or Azure SQL DB. Note that you cannot migrate SYS and SYSTEM DB2 schemas.

SQL Server 2016 to oracle 18c database migration

I'm trying to migrate a database created in SQL Server 2016 to Oracle 18c.
Both database instances are installed in VMs.
However the migration fails providing a message which I could not understand as I'm not that deep into Oracle RDBMS.
Now, both VMs have 4GB of RAM and each one is used to host the specific RDBMS (SQL Server 2016 & Oracle 18c respectively)
Both RDBMSs were installed with default options. The origin database (SQL Server 2016) is a very simple one, no triggers or stored procedures or anything like that. It only has PK-FK constraints for table relations.
The target database is an empty DB (or User as Oracle calls it) with all privileges provided in the options.
I'm providing the screenshots below following the steps from SQL Developer Migration Wizard.
SQL Server 2016 OS is Windows Server 2016, Oracle 18c OS is 2008R2 Datacenter edition.
The only option I've checked was to truncate the target DB. Please let me know If you need any further details that can help.

Connect to MS SQL server from PL/SQL Developer

I have PL/SQL Developer installed on my machine.
Version:-7.1.2
I want to connect to MS sql server from PL/SQL Developer. I have SQL server address, username and password with me.
I tried to search for the solution every possible way.
Can anybody help me with this?
You cannot. Directly from their web page (emphasis mine):
PL/SQL Developer is an Integrated Development Environment that is specifically targeted at the development of stored program units for Oracle Databases.
To connect to MS SQL Server from your desktop you need SQL Server Management Studio (free), Azure Data Studio (free), Toad for SQL Server ($$$), or another client that advertises connectivity to SQL Server.
open sql server from server objects add a linked servers to oracle
add stored procedure that will insert into the table in oracle and reads from sql table.
example:
INSERT INTO OPENQUERY (ERPTEST, 'SELECT EMPLOYEE_ID,FIRST_NAME FROM EMPLOYEE')
select Employee_Number,Full_Name_1 from [EmpDB].[dbo].[EMPLOYEES];

Managing sql server database from sql lite or vice versa

I'm a newbie,Can you please specify any tools or methods for managing sql server database from sqlite or vice versa...or both,if possible..
What do you mean by managing? Neither MS SQL Server nor SQLite is a manager for SQL databases and specially not managers for each others.
For managing a SQL Server database, you can use SQL Server Management Studio.
For managing a SQLite database, you can use for example Firefox SQLite manager plugin
See also how to export from SQLite to SQL Server

copying oracle to sqlserver 2005 jdbc

Is there any way of copying a database from oracle to sqlserver 2005? Thanks
You can migrate from Oracle to SQL Server with Microsoft's SQL Server Migration Assistant. It is available both to SQL Server 2005 and 2008.
If you have lots of (complicated) stored procedures and such, the migration might get a bit tedious. I have only experience with databases with simple procedures and could just rewrite them and do the data copy to empty tables in SQL Server with the import functionality using Oracle connector (usable from SQL Server if you have installed Oracle client tools to the SQL Server machine). This way I didn't even need to use the Migration Assistant tool.

Resources