niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » rdb
ORACLE RDB to Oracle 10g migration
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Michael Austin
*nix forums addict


Joined: 06 Sep 2005
Posts: 51

PostPosted: Sun Feb 19, 2006 10:29 pm    Post subject: Re: ORACLE RDB to Oracle 10g migration Reply with quote

Dr. Dweeb wrote:

Quote:
Michael Austin wrote:

db2sysc@gmail.com wrote:


1. How to we migrate ORACLE RDB objects to Oracle10g ? This includes
tables, indexes, DBO views, Stored Procedure, Triggers etc.

2. How do we migrate data from Oracle RDB to Oracle 10g

3. Any challenges and issue we will face in such migration

4. Any tools that can be leveraged for this Migration.


There are various ways of doing this... (unfortunately have had to
do this way too often)

Set up an OCI service in SQL Services for your Rdb database
Create a db link in your Oracle db
do a create table blah as select * from table@rdb_dblink limit to 1
row;
You are going to want to create the table then make sure you move it
to the appropriate tablespace (partition, correct extent size,
etc...).
Depending on the data, you can rmu/unload the data and use sql*loader
to load it or insert into oracletable select * from table*rdb_dblink;

Triggers are going to be somewhat manual.. most of the syntax is
transportable - but you will need to rewrite some of these.

All constraints will need to be added after the fact. Syntax is the
slightly different and Rdb does not store a PK in an index. Create
a Unique index if you need it indexed.

Rdb SYNTAX:
create table a (a real not null constraint a_a,
b integer not null constraint a_b,
Primary Key (a,b),
c char);


sh table a

Information for table A

Columns for table A:
Column Name Data Type Domain
----------- --------- ------
A REAL
Not Null constraint A_A
B INTEGER
Not Null constraint A_B
C CHAR(1)

Table constraints for A:
A_A
Not Null constraint
Column constraint for A.A
Evaluated on COMMIT
Source:
A.A NOT null

A_B
Not Null constraint
Column constraint for A.B
Evaluated on COMMIT
Source:
A.B NOT null

A_PRIMARY_A_B
Primary Key constraint
Table constraint for A
Evaluated on COMMIT
Source:
PRIMARY Key (a,b)

Constraints referencing table A:
No constraints found

Indexes on table A:
No indexes found

Storage Map for table A:
No Storage Map found

Triggers on table A:
No triggers found

*note in Rdb you must name the constraint at create time unlike
Oracle which will generate a name for you.


Not wishing to labour the logically obvious, but there is no need for a NOT
NULL constraint in Rdb.
NOT NULL is implicit in PRIMARY KEY (aka NOT NULL UNIQUE).

O10G will create an index automatically for a PRIMARY KEY and create a NOT
NULL constraint on each of the components. This is because O10G is
logically brain dead and does not know the difference between a KEY and an
INDEX.

PTo the original poster.

Please note:

O10G does not correctly deal with isolation levels as Rdb does. You must be
very careful that your application does not rely on Rdb's correct semantics.

O10G has different behaviour for error conditions. The same set of commands
executed on Rdb and O10G can give different results.

O10G has no notion of meta data versioning or transactional DDL (which will
drive you crazy).

Welcome to the disaster zone - I wish you luck.

Dr. Dweeb



Thx for the correction - I meant that the NOT NULL could be on a column that was
not a part of the PK and that the syntax is slightly different from that of
Oracle (anyVersion).

--
Michael Austin.
DBA Consultant
Donations welcomed. Http://www.firstdbasource.com/donations.html
Smile
Back to top
Dr. Dweeb
*nix forums Guru Wannabe


Joined: 23 Jul 2005
Posts: 125

PostPosted: Sun Feb 19, 2006 6:46 pm    Post subject: Re: ORACLE RDB to Oracle 10g migration Reply with quote

Michael Austin wrote:
Quote:
db2sysc@gmail.com wrote:

1. How to we migrate ORACLE RDB objects to Oracle10g ? This includes
tables, indexes, DBO views, Stored Procedure, Triggers etc.

2. How do we migrate data from Oracle RDB to Oracle 10g

3. Any challenges and issue we will face in such migration

4. Any tools that can be leveraged for this Migration.


There are various ways of doing this... (unfortunately have had to
do this way too often)

Set up an OCI service in SQL Services for your Rdb database
Create a db link in your Oracle db
do a create table blah as select * from table@rdb_dblink limit to 1
row;
You are going to want to create the table then make sure you move it
to the appropriate tablespace (partition, correct extent size,
etc...).
Depending on the data, you can rmu/unload the data and use sql*loader
to load it or insert into oracletable select * from table*rdb_dblink;

Triggers are going to be somewhat manual.. most of the syntax is
transportable - but you will need to rewrite some of these.

All constraints will need to be added after the fact. Syntax is the
slightly different and Rdb does not store a PK in an index. Create
a Unique index if you need it indexed.

Rdb SYNTAX:
create table a (a real not null constraint a_a,
b integer not null constraint a_b,
Primary Key (a,b),
c char);

sh table a
Information for table A

Columns for table A:
Column Name Data Type Domain
----------- --------- ------
A REAL
Not Null constraint A_A
B INTEGER
Not Null constraint A_B
C CHAR(1)

Table constraints for A:
A_A
Not Null constraint
Column constraint for A.A
Evaluated on COMMIT
Source:
A.A NOT null

A_B
Not Null constraint
Column constraint for A.B
Evaluated on COMMIT
Source:
A.B NOT null

A_PRIMARY_A_B
Primary Key constraint
Table constraint for A
Evaluated on COMMIT
Source:
PRIMARY Key (a,b)

Constraints referencing table A:
No constraints found

Indexes on table A:
No indexes found

Storage Map for table A:
No Storage Map found

Triggers on table A:
No triggers found

*note in Rdb you must name the constraint at create time unlike
Oracle which will generate a name for you.

Not wishing to labour the logically obvious, but there is no need for a NOT
NULL constraint in Rdb.
NOT NULL is implicit in PRIMARY KEY (aka NOT NULL UNIQUE).

O10G will create an index automatically for a PRIMARY KEY and create a NOT
NULL constraint on each of the components. This is because O10G is
logically brain dead and does not know the difference between a KEY and an
INDEX.

PTo the original poster.

Please note:

O10G does not correctly deal with isolation levels as Rdb does. You must be
very careful that your application does not rely on Rdb's correct semantics.

O10G has different behaviour for error conditions. The same set of commands
executed on Rdb and O10G can give different results.

O10G has no notion of meta data versioning or transactional DDL (which will
drive you crazy).

Welcome to the disaster zone - I wish you luck.

Dr. Dweeb
Back to top
Michael Austin
*nix forums addict


Joined: 06 Sep 2005
Posts: 51

PostPosted: Sat Feb 18, 2006 10:20 pm    Post subject: Re: ORACLE RDB to Oracle 10g migration Reply with quote

db2sysc@gmail.com wrote:

Quote:
1. How to we migrate ORACLE RDB objects to Oracle10g ? This includes
tables, indexes, DBO views, Stored Procedure, Triggers etc.

2. How do we migrate data from Oracle RDB to Oracle 10g

3. Any challenges and issue we will face in such migration

4. Any tools that can be leveraged for this Migration.


There are various ways of doing this... (unfortunately have had to do this way
too often)

Set up an OCI service in SQL Services for your Rdb database
Create a db link in your Oracle db
do a create table blah as select * from table@rdb_dblink limit to 1 row;

You are going to want to create the table then make sure you move it to the
appropriate tablespace (partition, correct extent size, etc...).

Depending on the data, you can rmu/unload the data and use sql*loader to load it
or insert into oracletable select * from table*rdb_dblink;

Triggers are going to be somewhat manual.. most of the syntax is transportable -
but you will need to rewrite some of these.

All constraints will need to be added after the fact. Syntax is the slightly
different and Rdb does not store a PK in an index. Create a Unique index if
you need it indexed.

Rdb SYNTAX:
create table a (a real not null constraint a_a,
b integer not null constraint a_b,
Primary Key (a,b),
c char);

SQL> sh table a
Information for table A

Columns for table A:
Column Name Data Type Domain
----------- --------- ------
A REAL
Not Null constraint A_A
B INTEGER
Not Null constraint A_B
C CHAR(1)

Table constraints for A:
A_A
Not Null constraint
Column constraint for A.A
Evaluated on COMMIT
Source:
A.A NOT null

A_B
Not Null constraint
Column constraint for A.B
Evaluated on COMMIT
Source:
A.B NOT null

A_PRIMARY_A_B
Primary Key constraint
Table constraint for A
Evaluated on COMMIT
Source:
PRIMARY Key (a,b)

Constraints referencing table A:
No constraints found

Indexes on table A:
No indexes found

Storage Map for table A:
No Storage Map found

Triggers on table A:
No triggers found

*note in Rdb you must name the constraint at create time unlike Oracle which
will generate a name for you.

--
Michael Austin.
DBA Consultant
Donations welcomed. Http://www.firstdbasource.com/donations.html
Smile
Back to top
db2sysc@gmail.com
*nix forums beginner


Joined: 19 May 2005
Posts: 8

PostPosted: Tue Feb 14, 2006 8:14 am    Post subject: ORACLE RDB to Oracle 10g migration Reply with quote

1. How to we migrate ORACLE RDB objects to Oracle10g ? This includes
tables, indexes, DBO views, Stored Procedure, Triggers etc.

2. How do we migrate data from Oracle RDB to Oracle 10g

3. Any challenges and issue we will face in such migration

4. Any tools that can be leveraged for this Migration.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 12:18 pm | All times are GMT
navigation Forum index » Databases » rdb
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Move Oracle 10g database to another location Selt Server 0 Fri Jul 21, 2006 2:14 pm
No new posts Oracle runtime Spitfire Server 0 Fri Jul 21, 2006 1:18 pm
No new posts Oracle Text Score Computation jatinder.1975@gmail.com Server 0 Fri Jul 21, 2006 1:00 pm
No new posts Can a trigger insert records into another oracle server Tauqir Server 2 Fri Jul 21, 2006 12:27 am
No new posts Moving Oracle filesystem to SAN howard Server 1 Thu Jul 20, 2006 11:49 pm

Sauna | Internet Advertising | Mortgages | Loan | SMS-Sprüche
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2379s ][ Queries: 20 (0.1397s) ][ GZIP on - Debug on ]