Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2004, 07:43 AM
Authorized User
 
Join Date: Sep 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default Another Oracle question

Hi,

I am trying to migrate my SQL Server database (contains tables, views and stored procedures) using the Oracle migration workbench. I am having a few problems and I am wondering if someone has any suggestions for me.

- It failed to import some tables with date columns. The message is "table contains date column. Milliseconds not migrated. How can I resolve this error?

- Also, all the tables are encapsulated in the "SA" Schema. Now, all my imported views fail to complie because I think they need "SA"."<TableName>" whenever it accesses any table. How can I work round this?

Thanks,

Pankaj
 
Old May 11th, 2004, 09:09 AM
Authorized User
 
Join Date: Apr 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The millisecond error may not be resolvable. A DATE column in SQL Server contains millisecond data, a DATE column in Oracle does not. If you really need the millisecond data, and you are on Oracle 9i or later, I would expect that Oracle Migration Workbench would try to insert the data into a TIMESTAMP column.

Are the views also in the SA schema?

Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
 
Old May 11th, 2004, 10:34 AM
Authorized User
 
Join Date: Sep 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi again Justin,

Man, you are an Oracle superhero! :) Newbies like me would be totally lost without invaluable guidance from people like you.

Well, I checked the migration wizard puts the SQL server datetime field to an Oracle 'Date' field. Do you think changing it to TimeStamp will be better?

Thanks again,
Pankaj

 
Old May 11th, 2004, 10:40 AM
Authorized User
 
Join Date: Apr 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If
- you need the millisecond precision
- you can change the default mapping
- you are migrating to Oracle 9i or later

yes, go to a TIMESTAMP. Honestly, I haven't use the Migration Workbench in a couple of years, so I don't recall how much control you have over the mappings.

Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
 
Old May 11th, 2004, 12:09 PM
Authorized User
 
Join Date: Sep 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried the TimeStamp and it works all right. Thanx man! If you are ever in Munich, the beers are on me :D

Pankaj






Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle SOA, BPEL and Oracle worklist umeshtheone Pro Java 1 April 16th, 2008 11:01 PM
call oracle function using oracle link server vl SQL Server 2000 1 July 12th, 2007 08:19 AM
How to Read Oracle Data without Oracle being insta badrinarayanang Oracle 1 October 6th, 2005 06:34 AM
Oracle Spatial Question: ORA-13249 ctteng Oracle 0 August 18th, 2004 06:11 PM
Question about Oracle tools pankaj_daga Oracle 3 May 5th, 2004 02:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.