Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: duplicate tables & grants
Hi!
n> hi,
n> I've got 3 users SU, SU1 and SU2
n> SU own 100 tables n> SU1 own 100 tables with the same names n> SU2 has grant on all the SU and SU1 tables.
n> I need to refresh the SU1 tables with the content of SU (before an n> Euro migration)
n> I think to : n> 1 / drop all the SU1 tables 2 / exp the SU tables 3 / imp fromuser=SU n> touser=SU1 n> but what's about the grants ???
You shouldn't drop the tables. Truncate them instead and then run import
with ignore=y
This will load data into existing tables.
Also, you can avoid using import at all: use "insert ... select ..."
Bye