Imp exp commands
Hello!
I am a newbie in dataguard.
Til now the only backup procedure for the data was accomplished using the exp command on specific schemas.
Now we want to create a data guard environment but we want to continue using exp on the primary and imp on another server(not the standby).
Do the new configurations for data guard effect the exp procedure, I mean can we continue using exp on the primary as before without any problem?
Thanks in advance!
Uwe has made me think about more.
If you are asking will IMP/EXP still work then yes is the correct answer.
However since you state "only backup procedure" I went with the RMAN answer.
Also I assume you are speaking about the Primary database only.
Best Regards
mseberg
Similar Messages
-
hi guys,
can someone please give me the complete steps on how to use the imp/exp utility for 8.1.7db runing on linux?
also if possible what are the requirements and steps to install db 8.1.7 on linux?
would really appreciate it,.....thanks in advance....http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76955/toc.htm
http://www.oracle.com/pls/tahiti/tahiti.docindex
http://www.google.com/search?hl=en&q=installation+8i+linux&btnG=Search+v+Google&meta= -
ORA-12560 & imp\exp commands
When typing imp and supplying the login system along with my password I got the ORA-12560 error. After reading about the problem on the forums and the internet, I found that setting the sid with the command "set ORACLE_SID=" solved the issue. The problem is I would like not to have to do this every time I start Oracle after starting up my OS ( I have all the oracle services set to manual startup ). How can this be done ?
cheersIt seems you are on Windows. Set ORACLE_SID as environment variable (Control Panel ==> System ==> Advanced ==> Environment Variables). That works fine as long as you have only one database on your machine. You could also create a .bat file, which sets ORACLE_SID and starts service and database.
Werner -
Hi,
Pls explain me the concept of Imp/Exp command and the parameters assocoiated with it?If u can tell me online practicals for Import/Export command?
Regards
sudhirAt 8:03, you "wanna learn" about tablespaces and datafiles.
At 8:11 you want the concept of Imp/Exp explained to you.
At 8:10 you "wanna learn" the concept of Roll Back Segmenst [sic]
And at 8:12 you "wanna learn" all about SQL*Loader
Not bad for nine minutes of complete thoughtlessness, I suppose.
If you "wanna learn" all about Oracle, download the software, install it, start playing with it, and come back with some serious questions that show a modicum of thought, effort, persistence and care. Paying some attention to the usual rules of grammar and spelling might be an idea, too.
You'll find installations documented at http://www.dizwell.com/prod/node/695#installation, and then you can work your way through some concepts at http://www.dizwell.com/prod/node/263 and then you can start doing some basic fiddling at http://www.dizwell.com/prod/node/695#basics and once you've worked your way through that lot, you should be in a position to make sensible use of the stuff over at http://tahiti.oracle.com.
And after you've had a good read of the official Concepts book there, then you can come back here to ask specific questions and reasonably expect to get meaningful replies. -
Imp Exp utility in ubuntu 10.4 with oracle instant client 10
Hi,
I have a problem with the imp/exp utility on Ubuntu 10.4.
I have installed the oracle instant client 10, and I have followed this thread
[http://download.oracle.com/docs/cd/B25329_01/doc/admin.102/b25107/impexp.htm#CHDDBGDF]
So, I've set env variable in my .bashrc
ORACLE_HOME=/home/lucia/Programmi/instantclient10_1
export ORACLE_HOME
LD_LIBRARY_PATH=/home/lucia/Programmi/instantclient10_1:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
PATH=/home/lucia/Programmi/instantclient10_1:${PATH}
export PATH
SQLPATH=/home/lucia/Programmi/instantclient10_1:${SQLPATH}
export SQLPATH
Sqlplus works fine, but when I try to use the utility exp/imp
exp DB_USER/DB_PW@DB_SCHEMA owner=DB_USER buffer=300000 LOG=DB_USER.log FILE=DB_USER.dmp compress=n
I have the following error:
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
(I cannot use data pump exp)
Any suggestions?
thanks in advance.
Luciaroot@laptop:~# /tmp/CVU_11.2.0.1.0_lucia/runfixup.sh
Response file being used is :/tmp/CVU_11.2.0.1.0_lucia/fixup.response
Enable file being used is :/tmp/CVU_11.2.0.1.0_lucia/fixup.enable
Log file location: /tmp/CVU_11.2.0.1.0_lucia/orarun.log
[: 845: true: unexpected operator
[: 860: unexpected operator
Any suggestions?
thanks
LuciaHello,
I had the same problem. It was related to the shell script interpreter being used: it is really a bash script asking to be interpreted as sh. For the impatient, the solution was to change the first line of the script orarun.sh to read as:
#!/bin/bash
Explanation:
1. The script runfixup.sh calls orarun.sh. The latter is the one that fails starting at line 845.
2. The script is really a bash script as can be seen from the if syntax used. For example at line 191 we see the double equall sign ==:
if [ "`echo $SET_KERNEL_PARAMETERS | tr A-Z a-z`" == "true" ]
3. The bash man page says:
string1 == string2
string1 = string2
True if the strings are equal. = should be used with the test command for POSIX conformance.
string1 != string2
True if the strings are not equal.
(End of man page excerpt)
Notice in particular that for a bash script to be POSIX it should avoid the == and just use =
4. orarun.sh has on its first line #!/bin/sh. On my Ubuntu system, sh is a softlink to dash and the dash man page says:
s1 = s2 True if the strings s1 and s2 are identical.
s1 != s2 True if the strings s1 and s2 are not identical.
5. So this script script uses bash syntax but is interpreted by dash. It is possible that this worked fine for the Oracle developer if on their system sh was softlinked to bash (which is often the case). Apparently, one should then be very careful to not use idioms that are not POSIX compliant.
6. Another solution is to change the /bin/sh softlink from dash to bash. Personally, I was less comfortable doing this (the possible repercussions were wider than the proposed solution above).
After making the change, the script ran perfectly. I think the best solution is for Oracle to update the script to be POSIX compliant or to identify itself as bash.
Hope that helped,
Mark Gaber
Edited by: user1112514 on Jun 30, 2010 3:28 AM -
Hi all,
I am interested in changing language in exp and/or imp log files? Oracle version is 10.2.0.4.0, OS version is Win 2k3R2.
I have Oracle DB installed on hungarian-language OS, and when issue an exp command, I get log file on hungarian language. I need stdout language for imp/exp utility to be on english. Can I do this?
As far as I know stdout language for sqlplus query for current session can be changed with alter session set nls_language=ENGLISH.
A little demonstration:
current logfile:
. . a következo tábla exportálása: A 3 sor exportálva
. . a következo tábla exportálása: B 2 sor exportálva
. . a következo tábla exportálása: C 0 sor exportálva
desired logfile:
. . exporting table A 3 rows exported
. . exporting table B 2 rows exported
. . exporting table C 0 rows exported
. . . . .Tnx in advance.Prior to running exp or imp (and why still use exp and imp?)
set nls_lang=<Region>_<territory>.<characterset>
Don't know why but it seems it is 'Doc question day' again.
Sybrand Bakker
Senior Oracle DBA -
How to export datbase with exp command
Hi guys,
How to export oracle database using exp command without including tables space names.
I tried with this
./exp username/password file=db-export.dmp
./imp username/password file=db-export.dmp full=y ignore=y
But when I try to import database with separate login(username/password) its giving following error for some tables,
ORA-00959: tablespace 'MANUJA' does not exist
MANUJA is my username of first database
any help ?
Thanks
Best Regards,
ManujaOption 1:
./imp username/password file=db-export.dmp full=y
If still error then :
Option 2:
pre-create your table then import with ignore=y option.
If still error then :
make sure userB just have one default tablespace (BC) and quota only on BC. So if you have unlimited quota for userB on all tablespaces, then objects will go to original tablespace and not the tablespace you want to put in(to default tablespace).
Revoke any unlimited tablespace privs from userB and just have one default tablespace.
REVOKE UNLIMITED TABLESPACE FROM USERB;
imp system/manager fromUser=userA toUser=userA file=myexport.dmp log=myexport.log
Source: OrionNet @ remap tablespace using imp
Regards
Girish Sharma -
The imp and exp commands when executed from a command prompt on WinNT/Win2K seem to operate upon one particular database, however I have three databases on one machine. Can these commands be run from a prompt against a given database? I can't find an option for that.
Thanks
Jason.Excellent - thanks.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Marco de Booy ([email protected]):
Very simple:
imp user@sid
This overrides the ORACLE_SID environment variable. You can also set this variable to the right sid.<HR></BLOCKQUOTE>
null -
SYSTEM HANGS WHILE RUNNING EXP COMMAND IN ORACLE 10G
WHEN WE ARE RUNNING THE EXP (EXPORT) COMMAND IN ORACLE 10G
TO TAKE THE BACKUP IT GETS HANGED FOR A LONG TIME AND THEN IN THE LOG FILE WE FIND THE FOLLOWING ERROR MESSAGE.
SOMETIMES AFTER RESTARTING THE SERVER WE ARE ABLE TO RUN THE EXP COMMAND.
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user MANHAR
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user MANHAR
About to export MANHAR's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
*********************************** AT THIS POINT THE SYSTEM HANGS FOR A LONG TIME.
EXP-00056: ORACLE error 24324 encountered
ORA-24324: service handle not initialized
EXP-00056: ORACLE error 24324 encountered
ORA-24324: service handle not initialized
EXP-00000: Export terminated unsuccessfully
THE EXP COMMAND THAT WE USE IS AS FOLLOWS:
EXP MANHAR/MANHAR FILE=F:\BACKUP\MANHAR.DMP LOG=F:\BACKUP\MANHAR.LOG BUFFER=1000000 GRANTS=Y CONSTRAINTS=Y
WE ARE RUNNING THE EXP COMMAND ON THE SERVER ITSELF.
THE SERVER OPERATING SYSTEM IS WINDOWS 2003 SERVER.
Kindly give us a solution at the earliest.You should ask Oracle support for help. There's only one entry for this error stack (Bug 3361288 - Export of XMLSCHEMA may fail with ORA-24324 in UTF8), but it should have been fixed for your DB version and , as far as I can see, you don't have a Unicode database.
Werner -
How to use a subquery in query parameter in exp command
I am trying to export certain rows of a table using exp command
exp TRA/simple@TRA consistent=y indexes=n constraints=n tables=TRA$EMPL query=\"where deptid in \(select objectid from Person\)\" file=/dbase/dump/archv.2009-10-2917:24:00.dmp
but im getting an error
LRM-00112: multiple values not allowed for parameter 'query'
EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
EXP-00000: Export terminated unsuccessfullyOn what OS you are trying to do that ?
What oracle version ?
Did you try to use parameter file ?
Have in mind that when using parameter file , special characters don't need to be escaped. -
Imp/exp ORA-12899: value too large for column
imp/exp ORA-12899: value too large for column
source :
os: linux as 4 update4
.bash_profile NLS_LANG=AMERICAN_AMERICA.US7ASCII
for run exp bill/admin001 file=bill0518.dmp bill rows=y
oracle: 10.2.1
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CHARACTERSET US7ASCII
target :
os: linux as 4 update4
.bash_profile NLS_LANG=AMERICAN_AMERICA.AL32UTF8
for run
imp bill/admin001 file=bill0518.dmp
oracle: 10.2.1
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CHARACTERSET AL32UTF8
imp log
Import: Release 10.2.0.1.0 - Production on Wed May 16 14:57:59 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc tion
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
Export file created by EXPORT:V10.02.01 via conventional path
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
export client uses AL32UTF8 character set (possible charset conversion)
. importing BILL's objects into BILL
. . importing table "MY_SESSION" 44 rows imported
. . importing table "T1"
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "BILL"."T1"."NAME" (actual: 62, maximum: 5 0)
Column 1 1
Column 2 ÖйúÈË. 0 rows impo rted
Import terminated successfully with warnings.Yes it's probably due to different char sets
A way around it it to change the DB setup on the new database to use CHAR as default for varchar2 rows, and then use datapump to do your import/export, because datapump uses the default varchar2 type when creating tables that includes varchar2 (which is normally byte). Exp/imp uses the varchar2 type that is in the original database
Best regards
/Klaus -
Use of imp/exp to restore a database will fail ??
I have a database that uses mdsys and other user-defined objects. This week I've had the "pleasure" to try to restore a database from scratch using imp, but had to abandon because imp refuses to create tables if they refer to objects, that upon export had a different id than the database being imported to.
Since mdsys for instance, is always excluded from exports (like sys and system) when you create a new database, the spatial objects are created with a different ID than the original database. Hence, every table you have with spatial data will not be imported.
So imp only works if the internal object ids match.
What would be the "imp/exp" procedure to do a full db restore that bypasses the above problem? Has datadump solved this issue?Correct - all schemas considered part of the dictinary are excluded (why has things become so complicated- in the old days we had ONE place where everything dictionary went).
That's the problem. I have tables in my export that depends on MDSYS objects. In other words, spatial data. So, to re-create my database I must first create a database and ADD a MDSYS schema. So yes, I created the schema prior to import. The problem is, that the MDSYS objects then do not get the same object-ids. And there lies the problem. IMP will not import my tables with spatial data in them because the reference to the MDSYS objects do not match the object ID that was used during export. Why this rule is applied is the mystery.
In addition, which I rote in the spatial forum, anything related to the mapviewer application is also placed in the MDSYS schema, excluding them from export; regardless that the data related to mapviewer is not related to database objects. The result is, that your Oracle Mapviewer application data is lost. The "official workaround" is to run pre-scripts that copy the dictionary views to fixed tables, then run your export. And on import you run a post-script to copy it back. Rather silly and inflexible. -
How to redirect imp/exp or impdp/expdp output
Hello,
I'm sorry for that, if this forum not the right place for this posting, but I hope that some one has this problem too.
I've an application written in C# (an windows.forms app) that calls imp/exp or impdp/expdp (depends on user). I need the output of this tools in my app.
Thank a lot for any help.user9099355 wrote:
Hello,
I'm sorry for that, if this forum not the right place for this posting, but I hope that some one has this problem too.
I've an application written in C# (an windows.forms app) that calls imp/exp or impdp/expdp (depends on user). I need the output of this tools in my app.
Thank a lot for any help.EXPDP/IMPDP:-
[oracle@adg disks]$ expdp system/manager schemas=scott directory=DATA_PUMP_DIR logfile=scot_exp.log
Export: Release 11.2.0.1.0 - Production on Tue Oct 4 14:36:54 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** schemas=scott directory=DATA_PUMP_DIR logfile=scot_exp.log
[oracle@adg disks]$ cd /u01/app/oracle/admin/adg/dpdump/
[oracle@adg dpdump]$ ls -lt scot_exp.log
-rw-r--r-- 1 oracle dba 1965 Oct 4 14:38 scot_exp.log
[oracle@adg dpdump]$exp/imp:-
[oracle@adg dpdump]$ exp system/manager file=exp_schema.log log=exp_schema_trad.log owner=scott
Export: Release 11.2.0.1.0 - Production on Tue Oct 4 14:38:53 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possible charset conversion)
[oracle@adg dpdump]$ ls -lt exp_schema_trad.log
-rw-r--r-- 1 oracle dba 1774 Oct 4 14:39 exp_schema_trad.log
[oracle@adg dpdump]$or
nohup exp system/manager file=exp_schema.dmp owner=scott > exp_schema_test.log
+[oracle@adg dpdump]$ ls -ltr exp_schema_test.log+
-rw-r--r-- 1 oracle dba 1922 Oct 4 14:40 exp_schema_test.log
+[oracle@adg dpdump]$+ -
Problems compiling objects after imp/exp
I am moving an Apex database to a new machine using imp/exp. I have run into problems getting 2 packages ( WWV_FLOW_CUSTOM_AUTH_STD and WWV_FLOW_SECURITY ) to compile due to PLS-00753: malformed or corrupted wrapped unit. I have tried using both imp/exp and datapump with no success. I have insured that my sys grants exist on the new database. I have also tried generating the package code and manually creating the package with no luck?
Any ideas? Is there a script in the Apex distribution that can be run to recreate these pacakges?
Thank you
Message was edited by:
birkBirk,
1. Connect as FLOWS_xxxxxx (depends on your version) and alter package wwv_flow_security compile
alter package wwv_flow_security compile body
alter package wwv_flow_custom_auth_std compile
alter package wwv_flow_custom_auth_std compile body
/2. If that doesn't work, go to the core directory in the distribution and, again connected in SQL*Plus as FLOWS_xxxxxx, run: @auth.sql
@auth.pkb
@custom_auth_std.sql
@custom_auth_std.pkb3. If that doesn't work, you may have to contact Support about the imp/exp steps that seem to have given rise to this.
Scott -
Can I use 9i imp/exp utility after installing 10g
Hello, all:
I have two database co-exist in one machine, one is 9i, another one is 10.2, which was just installed recently . Now I need to imp/exp the 9i database, I can't invoke 9i imp/exp utility anymore, even under 9i oracle_home, I can only get 10g's imp/exp screen comes up, can someone help me? Is there anyway that I can use both version of utility in the same machine?
Thanks a lot in advance.
wendyI can't invoke 9i imp/exp utility anymoreThat might be because the 10G_ORA_HOME\BIN appears first in your PATH environment variable. Either put 9i_HOME\BIN first in your PATH or navigate to the BIN directory of 9i home and run the export/import from there.
C:\>exp
Export: Release 10.2.0.1.0 - Production on Wed Oct 25 09:31:50 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Username: ^C
C:\>
C:\>cd Oracle\ora92\bin
C:\oracle\ora92\bin>exp
Export: Release 9.2.0.7.0 - Production on Wed Oct 25 09:32:03 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Username: ^C
C:\oracle\ora92\bin>
Maybe you are looking for
-
Error while posting the parked document in ECC 6.0
Hello ABAPers, After upgrade from R/3 4.6c to ECC 6.0, when we try to post the parked documents ,It calls FM :POSTING_INTERFACE_DOCUMENT". Inside it a call transaction is done using FBVB which throws error while posting for more than 4 withholding ta
-
HOW DOES WORK 0GLACCEXT?
Hello, I want to know how does it work because I have a problem with this. My Q: Problems in the Balance report: bank accounts (Asset / Liabilities) Thanks. Caro
-
SAP Business One E-Commerce 2007 project in Spain
Anyone knows if it's possible to join to SAP Business One E-Commerce release 2007 ramp-up. We're an spanish sap B1 partner and we have a Custumer quite interested in this module. I know that the ramp-up is currently restricted to Australia, Canada, N
-
Hi all, this is my client code which access EJB 2.1 and SUN JES AS 8.1 using RMI IIOP i get the remote home interface well but when i use home.create(), it retruns null. can anyone help me??? Here is the coding, Properties props = new Properties(); /
-
IPhoto doesn't recognize my camera
I have a Canon PowerShot A3100IS iPhoto v9.2.3 Mac 10.6.8 When I plug my camera into the USB and turn the camera on, nothing happens. The settings are set to open iPhoto when the camera is plugged in, and image capture settings were in place. The co