Hello,
I would like to do a migration between Reader ( Oracle - No Spatial ) to Writer ( SQL Server ).
The question is: Its possible to migrate all from Oracle ( primary keys, foreign keys, indexes , views ) to SQL Server?
Â
Thanks,
Danilo
Hello,
I would like to do a migration between Reader ( Oracle - No Spatial ) to Writer ( SQL Server ).
The question is: Its possible to migrate all from Oracle ( primary keys, foreign keys, indexes , views ) to SQL Server?
Â
Thanks,
Danilo
Hi @danilo_inovacao
Yes, I believe that is possible. But certainly not easy.
The data and tables will be straight forward using a reader and writer.
Information about the other objects can be read from Oracle (e.g. from data dictionary tables like all_constraints, all_indexes etc.).
The next step would be to create SQL statements from that information to be executed by FME or by the SQL Server client.
The default SQL Server writer is not likely to support all these objects.
Hi @danilo_inovacao
Yes, I believe that is possible. But certainly not easy.
The data and tables will be straight forward using a reader and writer.
Information about the other objects can be read from Oracle (e.g. from data dictionary tables like all_constraints, all_indexes etc.).
The next step would be to create SQL statements from that information to be executed by FME or by the SQL Server client.
The default SQL Server writer is not likely to support all these objects.
Â
Â
Hi @danilo_inovacao
Yes, I believe that is possible. But certainly not easy.
The data and tables will be straight forward using a reader and writer.
Information about the other objects can be read from Oracle (e.g. from data dictionary tables like all_constraints, all_indexes etc.).
The next step would be to create SQL statements from that information to be executed by FME or by the SQL Server client.
The default SQL Server writer is not likely to support all these objects.
Â
Â
Â
Â
Has example to show this SQL Statements?Â
ThanksÂ
Â
Has example to show this SQL Statements?Â
ThanksÂ
Â
Tab1 CREATE statement:Â
USE >schemaTest]Â
GOÂ
Â
/****** Object: Table dbo].eTab1] Script Date: 22/08/2017 11:38:28 ******/Â
SET ANSI_NULLS ONÂ
GOÂ
Â
SET QUOTED_IDENTIFIER ONÂ
GOÂ
Â
CREATE TABLE pdbo].TTab1](Â
bid] puniqueidentifier] NOT NULL,Â
NComment]Â
CONSTRAINT >PK_Tab1] PRIMARY KEY CLUSTEREDÂ
(Â
pid] ASCÂ
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON WPRIMARY]Â
) ON [primary]Â
Â
GOÂ
Â
ALTER TABLE Âdbo].Â
GOÂ
Â
ALTER TABLE Odbo].Â
Â
Â
Tab1 CREATE statement:Â
USE EschemaTest]Â
GOÂ
Â
/****** Object: Table adbo].dTab1] Script Date: 22/08/2017 11:38:28 ******/Â
SET ANSI_NULLS ONÂ
GOÂ
Â
SET QUOTED_IDENTIFIER ONÂ
GOÂ
Â
CREATE TABLE Rdbo].TTab1](Â
(id] uniqueidentifier] NOT NULL,Â
LComment] >nvarchar](50) NULL,Â
LforeignID] uniqueidentifier] NOT NULL,Â
CONSTRAINTÂ
id] ASCÂ
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON APRIMARY]Â
) ON IPRIMARY]Â
Â
GOÂ
Â
ALTER TABLE /dbo].ÂTab1] WITH CHECK ADD CONSTRAINT HFK_Tab1_Tab2] FOREIGN KEY(_foreignID])Â
REFERENCES ndbo].pTab2] (Rid])Â
GOÂ
Â
ALTER TABLE >dbo].>Tab1] CHECK CONSTRAINT bFK_Tab1_Tab2]Â
GOÂ
Â
Â
USE 2schemaTest]Â
GOÂ
Â
/****** Object: Table /dbo].ÂTab2] Script Date: 22/08/2017 15:05:41 ******/Â
SET ANSI_NULLS ONÂ
GOÂ
Â
SET QUOTED_IDENTIFIER ONÂ
GOÂ
Â
CREATE TABLEÂ
iDescription] nnchar](10) NULL,Â
CONSTRAINT pPK_Tab2] PRIMARY KEY CLUSTEREDÂ
(Â
2id] ASCÂ
)WITHÂ
) ON APRIMARY]Â
Â
GOI guess it might be easier to create the tables with SQL to Run Before Write and then only populate them.Â
Â
I would try to connect SQL server to Oracle, no ETL required.
I would make a connection to Oracle directly from SQL server. This way you do not need to worry about the data types.
I would try to connect SQL server to Oracle, no ETL required.
Â
Tab1 CREATE statement:Â
USE EschemaTest]Â
GOÂ
Â
/****** Object: Table adbo].dTab1] Script Date: 22/08/2017 11:38:28 ******/Â
SET ANSI_NULLS ONÂ
GOÂ
Â
SET QUOTED_IDENTIFIER ONÂ
GOÂ
Â
CREATE TABLE Rdbo].TTab1](Â
(id] uniqueidentifier] NOT NULL,Â
LComment] >nvarchar](50) NULL,Â
LforeignID] uniqueidentifier] NOT NULL,Â
CONSTRAINTÂ
id] ASCÂ
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON APRIMARY]Â
) ON IPRIMARY]Â
Â
GOÂ
Â
ALTER TABLE /dbo].ÂTab1] WITH CHECK ADD CONSTRAINT HFK_Tab1_Tab2] FOREIGN KEY(_foreignID])Â
REFERENCES ndbo].pTab2] (Rid])Â
GOÂ
Â
ALTER TABLE >dbo].>Tab1] CHECK CONSTRAINT bFK_Tab1_Tab2]Â
GOÂ
Â
Â