sachin_dba
asked on
Export through cmd file
I need to export Oracle database from client, where I dont have right to edit tnsname.ora where I have tns entry to use 9i client's exp.exe.
So I write a cmd file
@echo off
setlocal
c:
cd %TEMP%
set TNS_ADMIN=c:\program Files\toAD.861.EN
call "W:\ORA01.920.EN.001\bin\e xp.exe
But here it is starting export in interactive more, and asking of username.
Can I use my parfile ?
call "W:\ORA01.920.EN.001\bin\e xp.exe parfile=C:\Bakup_Databases \nova_test .par"
is not working, any workaround.
Sachin
So I write a cmd file
@echo off
setlocal
c:
cd %TEMP%
set TNS_ADMIN=c:\program Files\toAD.861.EN
call "W:\ORA01.920.EN.001\bin\e
But here it is starting export in interactive more, and asking of username.
Can I use my parfile ?
call "W:\ORA01.920.EN.001\bin\e
is not working, any workaround.
Sachin
ASKER
call "W:\ORA01.920.EN.001\bin\e xp.exe" opening command window like:
Export: Release 9.2.0.1.0 - Production on Wed May 20 09:34:39 2009
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Username:
But with parameter file
call "W:\ORA01.920.EN.001\bin\e xp.exe" parfile=C:\Bakup_Databases \nova_test .par
command window opens and disappered in 1 sec, and no log file even
Par file is very simple
user/pass@DBname table=HIERARCHIES_FLAT file=c:\program Files\toAD.861.EN\test_nov a.dmp log=c:\program Files\toAD.861.EN\test_nov a_imp.log
and we can connect with user/pass@DBname while prompting at username.
Export: Release 9.2.0.1.0 - Production on Wed May 20 09:34:39 2009
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Username:
But with parameter file
call "W:\ORA01.920.EN.001\bin\e
command window opens and disappered in 1 sec, and no log file even
Par file is very simple
user/pass@DBname table=HIERARCHIES_FLAT file=c:\program Files\toAD.861.EN\test_nov
and we can connect with user/pass@DBname while prompting at username.
ASKER
got some link from google
http://www.lazydba.com/oracle/0__116055.html
Here's how we do it (this assumes that Oracle is installed and
configured on two separate machines).
Export:
dump_bart.cmd:
exp parfile=exp_bart.prf
exp_bart.prf:
userid=system/*****@cmgt.i ecokc.com
file=D:\backup\exp_iec_bar t.dmp
compress=y
log=exp_iec_bart.log
consistent=y
statistics=none
owner=iec_bart
direct=y
but not able to relate here.
http://www.lazydba.com/oracle/0__116055.html
Here's how we do it (this assumes that Oracle is installed and
configured on two separate machines).
Export:
dump_bart.cmd:
exp parfile=exp_bart.prf
exp_bart.prf:
userid=system/*****@cmgt.i
file=D:\backup\exp_iec_bar
compress=y
log=exp_iec_bart.log
consistent=y
statistics=none
owner=iec_bart
direct=y
but not able to relate here.
You should do like this in your parfile:
userid=user/pass@DBname table=HIERARCHIES_FLAT file="c:\program Files\toAD.861.EN\test_nov a.dmp" log="c:\program Files\toAD.861.EN\test_nov a_imp.log"
userid=user/pass@DBname table=HIERARCHIES_FLAT file="c:\program Files\toAD.861.EN\test_nov
ASKER
thanks, for your help but still not able to start export. command window disappered in a flash with some text.. can we stop the window with some sleep .. or any other workaround?
Sachin
Sachin
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Finally its done. thanks mate.
ASKER
its woring .. thanks
call "W:\ORA01.920.EN.001\bin\e