Another EXP/IMP question
Moving data from 5 databases that are 9i over to 10g. If each datbase has 1 user with tables in associated schema what needs to be done on the 10g side as far as a user is concerned. The only way I've been able to exp / imp is cloning the sys account using toad then doing a dba/import from user sys to the duplicated account. What privilages are needed on the 10g side to imp that data without having to clone the sys account?
thanks.
CHarles is correct, if the export on the original machine is not a full export, anyone can import it. However, if it is a full export, then you must have the IMP_FULL_DATABASE priviledge. However, SYS and SYSTEM have the priviledge. Why don't you start imp as the sys or system user and do a user import into your new schema on the 10G system.
Similar Messages
-
question and enhancement request(!) -
some customers/prospects claim teamworking / reusable components. goal is to use a page (including its components like regions,processes,items,...) in another application - could realized by exp/imp if we can do it.
This would improve reusability and also teamworking.
I work together with a collegue on an application at htmldb.oracle.com. We exported the appl. and work on our local databases at different tasks by different pages.
But how we can reimport our results?Lutz,
It's kind of difficult, but Raj described a procedure here: Synonyms
We are aware of the potential value of being able to copy pages between applications and are looking at ways to provide that in future versions of HTML DB.
Scott -
Exp/imp one single row from/in a table
Hello,
I wanna export just one row from a table of one user and import it to the same table on another user. Users are both similar (one is in production other is for testing purposes).
I'm using this for exp:
exp userA/A@A file=row.dmp tables=tableA query=\"where code=\'blah\'\" rows=yes
But I'm getting 911 error:invalid character.
Any idea what's wrong with that?
Also, any idea how the imp will look like?
Thanks in advance
PS: Oracle version is 9.2.0.6.0 and os is win xp.
Problem that I can't use insert select is that users are identical but on different servers (the server where the imp will be is actually in another country :) so I need to send the dmp file. The imp question is only for my personal knowledge update :)
Message was edited by:
Samfuerte
Message was edited by:
SamfuerteHello,
I wanna export just one row from a table of one user
and import it to the same table on another user.
Users are both similar (one is in production other is
for testing purposes).
I'm using this for exp:
exp userA/A@A file=row.dmp tables=tableA
query=\"where code=\'blah\'\" rows=yes
But I'm getting 911 error:invalid character.
Any idea what's wrong with that?
Also, any idea how the imp will look like?
Thanks in advance
PS: Oracle version is 9.2.0.6.0 and os is win xp.
Message was edited by:
SamfuerteHi.
Try this query..it worked for me.....
"exp userA/A@A file=row.dmp tables=tableA
query=' where code=to_char(blah)' rows=yes"
thanks ,
Navneet
Message was edited by:
user644725
Message was edited by:
user644725
Message was edited by:
user644725 -
Hi all,
I have one problem in Oracle 9.2.0.8 onRHEL4. Iwant to use exp/imp to update one table from one server to another.
Suppose I have one table abc on A server and it is having around 1 million records and another B server is also having the same no. of records and some of the record have been changed to A server and i also want to imp the same record to another server B.Is there any paramneter in IMP.
Please suggest me.Hi,
Kamran Agayev A. wrote:
user00726 wrote:
but how would i know which table has been updated or modifiedUsing MERGE funtion, you'll merge two tables. This command will updated changed rows and insert non-inserted rows to the second table and make it as the same as the first tableSQL> create table azar(pid number,sales number,status varchar2(20));
Table created.
SQL> create table azar01(pid number,sales number,status varchar2(20));
Table created.
SQL> insert into azar01 values(1,12,'CURR');
1 row created.
SQL> insert into azar01 values(2,13,'NEW');
1 row created.
SQL> insert into azar01 values(3,15,'CURR');
1 row created.
SQL> insert into azar values(2,24,'CURR');
1 row created.
SQL> insert into azar values(3,0,'OBS');
1 row created.
SQL> insert into azar values(4,42,'CURR');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from azar01;
PID SALES STATUS
1 12 CURR
2 13 NEW
3 15 CURR
SQL> select * from azar;
PID SALES STATUS
2 24 CURR
3 0 OBS
4 42 CURR
SQL> merge into azar01 a using azar b on (a.pid=b.pid) when matched
2 then update set a.sales=a.sales + b.sales, a.status=b.status
3 delete where a.status='OBS'
4 when not matched
5 then insert values(b.pid,b.sales,'NEW');
3 rows merged.
SQL> select * from azar01;
PID SALES STATUS
1 12 CURR
2 37 CURR
4 42 NEW
Hello Sir, is this correct?
Regards
S.Azar
DBA -
Hi,
I am trying to Exp & Imp a full database. I am working on Oracle 9i & 10g on Solaris 9. I am not using Data Pump. Can anyone please help me with the following:
1. I am performing the full export using SYSTEM user.
1.a Does a Full export include (or backups up) the DATA DICTIONARY of the database?
1.b Does a Full export include the backup of SYS and SYSTEM objects?
I am using the following command to export
exp system/system@testdb file=$HOME/testdbfullexp.dmp full=y statistics=none
I have tried importing the FULL export to another database and i did see that SYS and SYSTEM objects were also being imported ( got some errors regarding constraints and inconsistencies).
I would like to ask like what are the ideal steps to follow to copy a database from DB1 to DB2 using EXP and IMP
Any information will be of a great help
Thanks,
Harris.1 a) No, as the data dictionary will be automagicall recreated by implicit SQL.
This means any non dictionary objects under SYS will be lost
1 b) as above. SYSTEM however is a normal user.
any %SYS user will NOT be exported (CTXSYS, MDSYS, etc)
On import of SYSTEM there will be always errors, as SYSTEM is non-empty after initial database creation.
Sybrand Bakker
Senior Oracle DBA -
Dear all,
I wanted to migrate database from 8i to 11g(8.1.5 to 11.1.0). I am going for exp/imp method. Which is the best method of doing this task? I mean Full export and Import Or Schemawise export and import? Is there any chances of missing objects or rows while doing this task? If yes, How to avoid? Please help me to take a best decision. I dont want any problem after migration.
Approach is (take exp of 8.1.5 and imp in 9.2.0) then (exp of 9.2.0 and imp it to 11.1.0.6)
OS is HP Unix
Nishant SanthanHave you not yet completed this task? As we have already answered to your question a couple of days back.
Take a look at the similar duplicate thread created by you.
Re: Migrating from 8i to 11g
Regards,
Sabdar Syed. -
Exp/Import database schema vs Ch 10 Exp/Imp Content
Hi I'm using Portal 10.1.2.02. I'm a DBA tasked with migrating a Dev portal into Test, then Production.
There seems to be a number of ways to achieve this and I was hoping to clarify which is best for me.
I've run through note: 330391.1(copying the Portal schema) which details running a perl script to export and import onto a newly installed server. This process worked will.
Chapter 10 of the Portal guide details a fairly complex process of creating transports sets and migrating these over and importing.
My question is: if I want the entire Portal copied is there any difference in these processes? ie. Do you end up with the same result?
thanks in advance of any advice :-)The cloning model is not a rerunnable model, its not granular and conditional migraton is not possible.
You can do the cloning only if u want to take a copy of the entire setup and rewire to a new midtier.
Portal exp/imp model helps u to achieve granular, conditional and rerunnable method of moving portal objects.
Apart from that, it comes with the readily available prechecks to intimate what's going wrong during the process. -
How to exp/imp both diff character set tables between in DB1 and DB2?
In the Solaris 2.7 ,the oracle 8i DB1 has NLS_CHARACTERSET
ZHS16CGB231280 and NLS_NCHAR_CHARACTERSET ZHS16CGB231280
character set.
In other linux7.2 system ,the oracle 8i DB2 is install into the
NLS_NCHAR_CHARACTERSET US7ASCII and NLS_CHARACTERSET US7ASCII
character set.
The tables contents of DB1 have some chinese. I want to exp/imp
tables of DB1 into DB2 . But the chinese can't correct display
in the SQLWheet tools. How do the Exp/Imp operation ? ples help
me . thanks .The supported way to store GB231280-encoded characters is using a ZHS16CGB231280 database or a database created using a superset of GB231280 ,such as UTF8 .Can you not upgrade your target database from US7ASCII to ZHS16CGB231280 ?
With US7ASCII and NLS_LANG set to US7ASCII , you are using the garbage in garbage out (GIGO) approach. This may seem to work but there are many hidden problems :-
1. Invalid SQL String Function behaviours - LENGTH ( ) , SUBSTR ( ) , INSTR ( )
2. Data can be corrupted when data is loaded into another database. e.g. EXP / IMP , Dblinks
3. Communication with other clients will generate incorrect results. e.g. other Oracle products - Oracle Text, Forms. , Java , HTML etc.
4. Linguistic sorts not available
5. Query using the standard WHERE clause may return incorrect results ..
6. Extra coding overhead in handling character conversions manually.
I recommend you to check out the FAQ and the DB Character set migration guide on the Globalization Support forum on OTN.
Nat. -
Exp/Imp with tablespace autocreate?
Hello dear community,
I've got a question about backup with exp/imp. It's not about RMAN, but nevertheless I hope it's the right board.
Is there a command to tell imp to automatically create a specified tablespace from a dumpfile?
For exp I use:
exp.exe user/pass tablespaces=test file=FILE.DMP
For imp I use:
imp.exe user/pass tablespaces=test file=FILE.DMP
Now, if I drop the tablespace between exp and imp, so imp can't restore it. There I manually have to create the specified tablespace first. It would be nice, if there is a way that imp creates the tablespace if it is not present.
Are there maybe some parameter like "autocreate" and "use datafile=..." and so on?
Thanks for help,
best regards,
RonnyTransportable Tablespaces is a seperate feature whereby you take a physical
copy of tablespace datafiles and "plug" them into the target database.
That is different from taking a logical export dump.
With export dumps, the only way to get the tablespace created is in a FULL
export and import. The CREATE TABLESPACE commands are written into
the dmp file only when a FULL export is done. At import time, you can choose
to import a specific schema in which case, the CREATE TABLESPACE
commands are not executed by import (they must be precreated). So,
CREATE TABLESPACE is executed only when you do a FULL import as well.
Note that this {obviously} creates the same datafile names (including physical
paths) and sizes as existant in the source database. That may or may not
meet your requirements on occassion (eg different filesystem structure,
different sizes planned in the target database). -
I have problem,
I want to imp file.dmp to schemauser
schemauser have tablespace default USERS
then I exp schmeauser from my pc. I named file.dmp
then when
I imp from other pc,
I have prepare for schmeausernew with tablespace default tbspace.
when I imp the data I suprise with my default tablespace tbspace not using.
But my imp it take a place in USERS.
Sow my question is, How to imp automaticly to my default tablespace tbspace ???
I don't want to alter table tablespace when I must one by one and also my index.
Thanks.
for Supporting.Exp/Imp with tablespace autocreate?
imp user/pass tablespaces=dbtothis FULL=Y
Why still not into tablespace=dbtothis.
Still in Tablespace users
Thanks.
For help me. -
EXP/IMP with NCLOB/BLOB
Hello all,
I have to pass an schema from one database, to another recreated as the first one (same schema name, same rights, same tablespace, same all) Both are Oracle database 11.2.0.2 enterprise 64 bits on linux 64. Is there any consideration I have to take, as there's objects with NCLOB and BLOB types... I've tryed the export, and it has gone ok without any problem, buy there will be any issue when I import it on the second database?
All this is to change the database's server from the phisical one that it's now, to a virtual one (OVM).
Thanks for your help!!It would probably be better if you used Data Pump (expdp/impdp) instead of original exp/imp. It has support for more objects and features that you may have used.
Dean -
Using exp/imp to clone a database from Solaris to NT
Hi All,
We have an 8.1.6 Oracle database in production under Sun Solaris.
We actually use this database to run Siebel CRM system.
We have a Windows NT server which we used as a QA system
for this application.
We have a daily full export of our production database on the
Sun machine. Now my manager wants to import this production
dmp file into this Win NT database on a weekly basis.
The goal here is to maintain the state of this NT database
as much functional and close to the production one as possible.
I would appreciate your help on this.
I have some other general question:
in which case can the Oracle imp utility be run in the
full=y mode ?
does this make any sense at all ?
since the Oracle import utility does not delete
any existing objects before it imports, these objects
should be deleted manually and that's what I do
with all Siebel users schemas; of course I do not
do this with SYS, SYSTEM and other special Oracle
users; question: are there any objects in these
special Oracle schemas that have to be carried over from
the source database to the target database to
make the rest of the schemas functional ?
Somehow I failed to find Oracle documentation on how
to use exp/imp to create a complete clone of an Oracle
database.
Can direct path be used with full=y export/import mode ?
Thank you in advance,
Yuriy.As an alternative to using daily/weekly exports and imports, what would probably be more effective here would be replication. The databases could synch on a nightly basis and updated tables and rows will be transferred from your OLTP system to your read-only system. More information can be found on replication from "Oracle8i DBA Handbook" by Kevin Loney and Marlene Therialt.
LM
PS. IGNORE=Y -
how exp/imp utility will behave when i'll try to migrate data from oracle 8i to 10g when the platform and file system will be different.
what should be the procedure to that?Ive had to do this recently. You just need to use the 8i exp from the 8i Oracle home for the 8i database to create your dump file. Then, use the 10g imp from the 10g Oracle home to import the dump file into your 10g database. Import is backwards compatible it will read dump files created by older versions of export. And this is the best way to move from one platform to another.
Ryan -
Exp/Imp alternatives for large amounts of data (30GB)
Hi,
I've come into a new role where various test database are to be 'refreshed' each night with cleansed copies of production data. They have been using the Imp/Exp utilities with 10g R2. The export process is ok, but what's killing us is the time it takes to transfer..unzip...and import 32GB .dmp files. I'm looking for suggestions on what we can do to reduce these times. Currently the import takes 4 to 5 hours.
I haven't used datapump, but I've heard it doesn't offer much benefit when it comes to saving time over the old imp/exp utilities. Are 'Transportable Tablespaces' the next logical solution? I've been reading up on them and could start prototyping/testing the process next week. What else is in Oracle's toolbox I should be considering?
Thanks
brianHi,
I haven't used datapump, but I've heard it doesn't offer much benefit when it comes to saving time over the old imp/exp utilitiesDatapump will be faster for a couple of reasons. It uses direct path to unload the data. DataPump also supports parallel processes, so while one process is exporting metadata, the other processes can be exporting the data. In 11, you can also compress the dumpfiles as you are exporting. (Both data and metadata compression is available in 11, I think metadata compression is available in 10.2). This will remove your zip step.
As far as transportable tablespace, yes, this is an option. There are some requirements, but if it works for you, all you will be exporting will be the metadata and no data. The data is copied from the source to the target by way of datafiles. One of the biggest requirements is that the tablespaces need to be read only while the export job is running. This is true for both exp/imp and expdp/impdp. -
Export / import exp / imp commands Oracle 10gXE on Ubuntu
I have Oracle 10gXE installed on Linux 2.6.32-28-generic #55-Ubuntu, and I need soe help on how to export / import the base with exp / imp commands. The commands seems to be installed on */usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin* directory but I cannot execute them.
The error message I got =
No command 'exp' found, did you mean:
Command 'xep' from package 'pvm-examples' (universe)
Command 'ex' from package 'vim' (main)
Command 'ex' from package 'nvi' (universe)
Command 'ex' from package 'vim-nox' (universe)
Command 'ex' from package 'vim-gnome' (main)
Command 'ex' from package 'vim-tiny' (main)
Command 'ex' from package 'vim-gtk' (universe)
Command 'axp' from package 'axp' (universe)
Command 'expr' from package 'coreutils' (main)
Command 'expn' from package 'sendmail-base' (universe)
Command 'epp' from package 'e16' (universe)
exp: command not found
Is there something I have to do ?Hi,
You have not set environment variables correctly.
http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25144/toc.htm#BABDGCHH
And of course that sciprt have small hickup, so see
http://ubuntuforums.org/showpost.php?p=7838671&postcount=4
Regards,
Jari
Maybe you are looking for
-
Why is my internet search page gray? I am able to search a topic, but the 'results' part of the screen is a medium gray color and it won't respond. Any ideas?
-
Itunes won't work because of quicktime
I try to open itunes...and recieve a message reading..."Quicktime version 7.0.2 is installed, Itunes requires Quictime version 7.0.3 or later. Please reinstall Itunes."............well i do and it still doesn't work...what can i possibly do now??
-
Slow PS3 Connection on WRT300N
Hi, I have just added a PS3 to my wireless network, but the connection is really slow; Has anybody had any experience with similar problems?
-
Downloaded iTunes 11.4 and can't watch movies any more
I just downloaded iTunes 11.4 and since I cannot watch any movies. No matter if it is in the Library or in iTunes store, all I get is broken-up picture and the sound. Any suggestion?
-
JAAS Login Module development/deployment - getting en error
Guys, I have developed a JAAS Login Module (as per the SAP documentation) and configured the J2EE Engine (as per the SAP documentation) for this module to sit amongst several other standard modules, but I have a problem. I am unable to get the Modu