Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> export as user A in tablespace B, import as user C in tablespace D:
Hello,
We got 2 databaseservers here: 1 online server and 1 development server. We use oracle8i 8.1.6 on linux and the site runs on php4 on apache.
At the online server, the whole site uses the login 'wine'. At the development server, we have a user named 'winemirror'. I need to export all tables, constraints and rows (just everything owned by the user) at the online server and import this data back in the schema of 'winemirror' at the development server, because we need the data to test some new fancy statistics stuff. We can't use another 'wine' user instead of 'winemirror' because that's the backupdatabase in case the online fails.
Can anyone explain me how those imp and exp utilities work? If the usernames are the same, everything works ok: onlineserver# exp wine/<pass> FILE=wine.dmp develserver# imp wine/<pass> FILE=wine.dmp (+ some exports like NLS_LANG..)
When the username is different, i think i should use: develserver# imp winemirror/<pass> FILE=wine.dmp FROMUSER=wine TOUSER=winemirror
But this doesn't work.. i get a lot of warnings about the tables already existing.
a part of the output is:
. . importing table "TBLACTIONS" 0 rows importedIMP-00015: following statement failed because the object already exists:
. . importing table "TBLADDRESSES" 339 rows importedIMP-00015: following statement failed because the object already exists:
Has anyone any ideas what i'm doing wrong? Just let me know if you need any further information. All help is welcome.
If you want to know why all the loginnames contain 'wine': it's a winecommunity/wineshop site at http://www.underthecork.com Received on Thu Nov 02 2000 - 03:13:26 CST
![]() |
![]() |