Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > Oracle
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 11th, 2004, 07:43 AM
Authorized User
 
Join Date: Sep 2003
Location: , , .
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
  #2 (permalink)  
Old May 11th, 2004, 09:09 AM
Authorized User
 
Join Date: Apr 2004
Location: Boise, ID, USA.
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
  #3 (permalink)  
Old May 11th, 2004, 10:34 AM
Authorized User
 
Join Date: Sep 2003
Location: , , .
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

  #4 (permalink)  
Old May 11th, 2004, 10:40 AM
Authorized User
 
Join Date: Apr 2004
Location: Boise, ID, USA.
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
  #5 (permalink)  
Old May 11th, 2004, 12:09 PM
Authorized User
 
Join Date: Sep 2003
Location: , , .
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

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:24 PM.


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