Re: move some records of some tables

2002-12-04 Thread Yechiel Adar
Hello Murat

Export has a parameter Query that allow you to specify selection criteria
for exporting a subset of records from the table. Import also has parameter
Ignore=y and then the import ignore the error of the create table statement
and append the imported records into an existing table.

So you can export the selected records only from your tables and import them
to the seconds DB.

HTH

Yechiel Adar
Mehish
- Original Message -
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 1:43 PM


 Hi,

   what's the best method to move some rows of some tables of a user
 from one database to another database on another server? I need a step by
 step document to achieve this.

 Thanks,
 Murat


 --
 Bu  e-posta  sadece  yukarida  isimleri  belirtilen  kisiler  arasinda
ozel
 haberlesme  amacini  tasimaktadir. Size yanlislikla ulasmissa lutfen
mesaji
 geri  gonderiniz  ve  sisteminizden  siliniz.  Rt.Net  Internet
Hizmetleri
 Pazarlama  ve  Ticaret  A.S.  bu  mesajin icerigi ile ilgili olarak hic
bir
 hukuksal sorumlulugu kabul etmez.

 This  e-mail  communication  is intended for the private use of the
persons
 named  above.  If  you  received  this message in error, please
immediately
 notify  the  sender  and  delete  it  from  your  system.  Rt.Net
Internet
 Hizmetleri  Pazarlama  ve Ticaret A.S. does not accept legal
responsibility
 for the contents of this message.
 --



 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 --
 Author: MURAT BALKAS
   INET: [EMAIL PROTECTED]

 Fat City Network Services-- 858-538-5051 http://www.fatcity.com
 San Diego, California-- Mailing list and web hosting services
 -
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from).  You may
 also send the HELP command for other information (like subscribing).


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Yechiel Adar
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




RE: move some records of some tables

2002-12-03 Thread Robson, Peter
There are issues here. Will the table being copied to have the same
constraints in place as those tables from which the data is being extracted?
If so, resolves those, and get these reference tables in place first.

Then simply use a database link to 'pull' the data from your source tables,
eg

insert into USERNAME.COPY_TABLE select * from
USERNAME.SOURCE_TABLE@DATABASE_LINK where... ;

Of course, make sure the owner of the copy tables has select on the source
tables.


peter
edinburgh

 
 Hi,
 
   what's the best method to move some rows of some tables 
 of a user
 from one database to another database on another server? I 
 need a step by
 step document to achieve this.
 
 Thanks,
 Murat
 
 
 --
 Bu  e-posta  sadece  yukarida  isimleri  belirtilen  kisiler  
 arasinda ozel
 haberlesme  amacini  tasimaktadir. Size yanlislikla ulasmissa 
 lutfen mesaji
 geri  gonderiniz  ve  sisteminizden  siliniz.  Rt.Net  
 Internet  Hizmetleri
 Pazarlama  ve  Ticaret  A.S.  bu  mesajin icerigi ile ilgili 
 olarak hic bir
 hukuksal sorumlulugu kabul etmez.
 
 This  e-mail  communication  is intended for the private use 
 of the persons
 named  above.  If  you  received  this message in error, 
 please immediately
 notify  the  sender  and  delete  it  from  your  system.  
 Rt.Net  Internet
 Hizmetleri  Pazarlama  ve Ticaret A.S. does not accept legal 
 responsibility
 for the contents of this message.
 --
 
 
 
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.com
 -- 
 Author: MURAT BALKAS
   INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- 858-538-5051 http://www.fatcity.com
 San Diego, California-- Mailing list and web hosting services
 -
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from).  You may
 also send the HELP command for other information (like subscribing).
 


*
This  e-mail   message,  and  any  files  transmitted   with  it, are
confidential  and intended  solely for the  use of the  addressee. If
this message was not addressed to  you, you have received it in error
and any  copying,  distribution  or  other use  of any part  of it is
strictly prohibited. Any views or opinions presented are solely those
of the sender and do not  necessarily represent  those of the British
Geological  Survey. The  security of e-mail  communication  cannot be
guaranteed and the BGS  accepts no liability  for claims arising as a
result of the use of this medium to  transmit messages from or to the
BGS. The BGS cannot accept any responsibility  for viruses, so please
scan all attachments.http://www.bgs.ac.uk
*

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Robson, Peter
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




move some records of some tables

2002-12-02 Thread MURAT BALKAS
Hi,

  what's the best method to move some rows of some tables of a user
from one database to another database on another server? I need a step by
step document to achieve this.

Thanks,
Murat


--
Bu  e-posta  sadece  yukarida  isimleri  belirtilen  kisiler  arasinda ozel
haberlesme  amacini  tasimaktadir. Size yanlislikla ulasmissa lutfen mesaji
geri  gonderiniz  ve  sisteminizden  siliniz.  Rt.Net  Internet  Hizmetleri
Pazarlama  ve  Ticaret  A.S.  bu  mesajin icerigi ile ilgili olarak hic bir
hukuksal sorumlulugu kabul etmez.

This  e-mail  communication  is intended for the private use of the persons
named  above.  If  you  received  this message in error, please immediately
notify  the  sender  and  delete  it  from  your  system.  Rt.Net  Internet
Hizmetleri  Pazarlama  ve Ticaret A.S. does not accept legal responsibility
for the contents of this message.
--



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: MURAT BALKAS
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




Re: move some records of some tables

2002-12-02 Thread Connor McDonald
- create database link ...
- insert into ... select from ...
- delete from ...
- commit
- drop database link ...

Cheers
Connor

 --- MURAT BALKAS [EMAIL PROTECTED] wrote: 
Hi,
 
   what's the best method to move some rows of
 some tables of a user
 from one database to another database on another
 server? I need a step by
 step document to achieve this.
 
 Thanks,
 Murat
 
 
 --
 Bu  e-posta  sadece  yukarida  isimleri  belirtilen 
 kisiler  arasinda ozel
 haberlesme  amacini  tasimaktadir. Size yanlislikla
 ulasmissa lutfen mesaji
 geri  gonderiniz  ve  sisteminizden  siliniz. 
 Rt.Net  Internet  Hizmetleri
 Pazarlama  ve  Ticaret  A.S.  bu  mesajin icerigi
 ile ilgili olarak hic bir
 hukuksal sorumlulugu kabul etmez.
 
 This  e-mail  communication  is intended for the
 private use of the persons
 named  above.  If  you  received  this message in
 error, please immediately
 notify  the  sender  and  delete  it  from  your 
 system.  Rt.Net  Internet
 Hizmetleri  Pazarlama  ve Ticaret A.S. does not
 accept legal responsibility
 for the contents of this message.
 --
 
 
 
 -- 
 Please see the official ORACLE-L FAQ:
 http://www.orafaq.com
 -- 
 Author: MURAT BALKAS
   INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- 858-538-5051
 http://www.fatcity.com
 San Diego, California-- Mailing list and web
 hosting services

-
 To REMOVE yourself from this mailing list, send an
 E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of
 'ListGuru') and in
 the message BODY, include a line containing: UNSUB
 ORACLE-L
 (or the name of mailing list you want to be removed
 from).  You may
 also send the HELP command for other information
 (like subscribing).
  

=
Connor McDonald
http://www.oracledba.co.uk
http://www.oaktable.net

GIVE a man a fish and he will eat for a day. But TEACH him how to fish, and...he will 
sit in a boat and drink beer all day

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-1?q?Connor=20McDonald?=
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




RE: move some records of some tables

2002-12-02 Thread DENNIS WILLIAMS
Murat - The best method depends on several circumstances such as how much
data is involved. The simplest method if you have two Oracle instances is
export/import. Is the username the same on both instances? Are there
differences between the instances such as NLS character sets? Are both
instances the same Oracle version? Are you moving all the tables for the
user? All the rows in each table? Do those tables already exist on the other
instance? If yes, do the tables already contain data?
   If you are not familiar with the Oracle export/import utilities, a good
start is to look at this link.
http://www.orafaq.net/faqiexp.htm

Dennis Williams
DBA, 40%OCP
Lifetouch, Inc.
[EMAIL PROTECTED] 

-Original Message-
Sent: Monday, December 02, 2002 5:44 AM
To: Multiple recipients of list ORACLE-L


Hi,

  what's the best method to move some rows of some tables of a user
from one database to another database on another server? I need a step by
step document to achieve this.

Thanks,
Murat


--
Bu  e-posta  sadece  yukarida  isimleri  belirtilen  kisiler  arasinda ozel
haberlesme  amacini  tasimaktadir. Size yanlislikla ulasmissa lutfen mesaji
geri  gonderiniz  ve  sisteminizden  siliniz.  Rt.Net  Internet  Hizmetleri
Pazarlama  ve  Ticaret  A.S.  bu  mesajin icerigi ile ilgili olarak hic bir
hukuksal sorumlulugu kabul etmez.

This  e-mail  communication  is intended for the private use of the persons
named  above.  If  you  received  this message in error, please immediately
notify  the  sender  and  delete  it  from  your  system.  Rt.Net  Internet
Hizmetleri  Pazarlama  ve Ticaret A.S. does not accept legal responsibility
for the contents of this message.
--



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: MURAT BALKAS
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: DENNIS WILLIAMS
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




RE: move some records of some tables

2002-12-02 Thread MURAT BALKAS

answeres inserted.



   

  DENNIS WILLIAMS  

  DWILLIAMS@LIFETOTo:   Multiple recipients of list 
ORACLE-L [EMAIL PROTECTED]   
  UCH.COM cc: 

  Sent by: Subject:  RE: move some records of some 
tables  
  [EMAIL PROTECTED] 

   

   

  12/02/2002 03:44 

  PM   

  Please respond to

  ORACLE-L 

   

   





Murat - The best method depends on several circumstances such as how much
data is involved. The simplest method if you have two Oracle instances is
export/import.

Is the username the same on both instances?
Yes.

Are there differences between the instances such as NLS character sets?
No, they're the same.

Are both instances the same Oracle version?
Yes.

Are you moving all the tables for the user?
No.

All the rows in each table?
No.

Do those tables already exist on the other instance?
Yes.

If yes, do the tables already contain data?
Yes.

And... Another difference is : Original tables are on the SYSTEM
tablesapce. This was made by mistake. Tables I'll import to are on another
tablespace.

   If you are not familiar with the Oracle export/import utilities, a good
start is to look at this link.
http://www.orafaq.net/faqiexp.htm

  Thanks, I'll look at it.

Dennis Williams
DBA, 40%OCP
Lifetouch, Inc.
[EMAIL PROTECTED]

-Original Message-
Sent: Monday, December 02, 2002 5:44 AM
To: Multiple recipients of list ORACLE-L


Hi,

  what's the best method to move some rows of some tables of a user
from one database to another database on another server? I need a step by
step document to achieve this.

Thanks,
Murat


--
Bu  e-posta  sadece  yukarida  isimleri  belirtilen  kisiler  arasinda ozel
haberlesme  amacini  tasimaktadir. Size yanlislikla ulasmissa lutfen mesaji
geri  gonderiniz  ve  sisteminizden  siliniz.  Rt.Net  Internet  Hizmetleri
Pazarlama  ve  Ticaret  A.S.  bu  mesajin icerigi ile ilgili olarak hic bir
hukuksal sorumlulugu kabul etmez.

This  e-mail  communication  is intended for the private use of the persons
named  above.  If  you  received  this message in error, please immediately
notify  the  sender  and  delete  it  from  your  system.  Rt.Net  Internet
Hizmetleri  Pazarlama  ve Ticaret A.S. does not accept legal responsibility
for the contents of this message.
--



--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: MURAT BALKAS
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: DENNIS WILLIAMS
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL

RE: move some records of some tables

2002-12-02 Thread DENNIS WILLIAMS
Murat
   Congratulations on moving the tables out of the SYSTEM tablespace. That
is how most of us become better DBAs -- by doing it wrong first. I've
learned those lessons myself. Now I read this list and learn from the
mistakes of others.
   If the tables you are moving data into already contain data, you need to
decide how to make sure you don't end up with duplicate data. If each table
has a primary key, this will prevent duplicate data, but then your import
will fail. If the data overlaps and you want the data from the other
instance to be loaded, you can first delete the data that overlaps and then
import the data.

Dennis Williams
DBA, 40%OCP
Lifetouch, Inc.
[EMAIL PROTECTED] 


-Original Message-
Sent: Monday, December 02, 2002 9:30 AM
To: Multiple recipients of list ORACLE-L



answeres inserted.



 

  DENNIS WILLIAMS

  DWILLIAMS@LIFETOTo:   Multiple recipients
of list ORACLE-L [EMAIL PROTECTED]   
  UCH.COM cc:

  Sent by: Subject:  RE: move some
records of some tables  
  [EMAIL PROTECTED]

 

 

  12/02/2002 03:44

  PM

  Please respond to

  ORACLE-L

 

 





Murat - The best method depends on several circumstances such as how much
data is involved. The simplest method if you have two Oracle instances is
export/import.

Is the username the same on both instances?
Yes.

Are there differences between the instances such as NLS character sets?
No, they're the same.

Are both instances the same Oracle version?
Yes.

Are you moving all the tables for the user?
No.

All the rows in each table?
No.

Do those tables already exist on the other instance?
Yes.

If yes, do the tables already contain data?
Yes.

And... Another difference is : Original tables are on the SYSTEM
tablesapce. This was made by mistake. Tables I'll import to are on another
tablespace.

   If you are not familiar with the Oracle export/import utilities, a good
start is to look at this link.
http://www.orafaq.net/faqiexp.htm

  Thanks, I'll look at it.

Dennis Williams
DBA, 40%OCP
Lifetouch, Inc.
[EMAIL PROTECTED]

-Original Message-
Sent: Monday, December 02, 2002 5:44 AM
To: Multiple recipients of list ORACLE-L


Hi,

  what's the best method to move some rows of some tables of a user
from one database to another database on another server? I need a step by
step document to achieve this.

Thanks,
Murat


--
Bu  e-posta  sadece  yukarida  isimleri  belirtilen  kisiler  arasinda ozel
haberlesme  amacini  tasimaktadir. Size yanlislikla ulasmissa lutfen mesaji
geri  gonderiniz  ve  sisteminizden  siliniz.  Rt.Net  Internet  Hizmetleri
Pazarlama  ve  Ticaret  A.S.  bu  mesajin icerigi ile ilgili olarak hic bir
hukuksal sorumlulugu kabul etmez.

This  e-mail  communication  is intended for the private use of the persons
named  above.  If  you  received  this message in error, please immediately
notify  the  sender  and  delete  it  from  your  system.  Rt.Net  Internet
Hizmetleri  Pazarlama  ve Ticaret A.S. does not accept legal responsibility
for the contents of this message.
--



--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: MURAT BALKAS
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: DENNIS WILLIAMS
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).






-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: MURAT BALKAS
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services