You need to use a parameter file ...and that file will have to be
located on the SERVER
For details see
http://download.oracle.com/docs/cd/B14117_01/server.101/b10825/exp_imp.htm#sthref2246
Again .. reminding you that you do NOT need to do the 'cmd /c'
contstruct (and in fact I would recommend NOT using it)
And again reminding you that it is the server on which it will be
running ... not on your workstation .. even though that is where it
may look like it is executing.
And again reminding you that you have to check the FORM_SUCCESS value
when HOST() returns.
In other words .. I am not shocked that what you did didn't work
because it isnt correct. I would also suggest that you look at the
documentation for the HOST builtin for Oracle Forms in the Online
Help. It gives a good example of how to use the function.
On Mar 17, 7:08 am, "Durai Rajkumar" <
duraai.rajku...@gmail.com>
wrote:
> Hi,
> Thanks for your reply..
> we are using 10G forms & 9i database..winXP sevicepack2
> 1st i tell how we will take exp through dos...
> C:\> *CD ORACLE\ORA92\BIN
> *C:\ORACLE\ORA92\BIN> *EXP DEVIIND/DEVIIND@EIS*
> BUFFER SIZE: 4096 > *10000*
> EXPDAT.DMP > *C:\TEST1.DMP
> *(2)U, OR (3)T:(2)U > *U
> *EXPORT GRANTS > *Y*
> EXPORT TABLE DATA > *Y*
> COMPRESS CONTENTS > *Y*
>
> I have to do the samething from forms...
> IN when-button-pressed trigger i wrote
>
> declare
> vv_command varchar2(100) := 'exp deviind/deviind@eis' ;
> begin
> host('cmd /C:\oracle\ora92\bin '||vv_command);
> end;
>
> this is poping up dos window & shows like this
> c:\>devsuitehome\forms\cmd >
> i am not able to pass the path of cd c:\oracle\ora92\bin & exp
> deviind/deviind@eis
>
> if i do that in manually when dos prompt opens through cmd command
> like cd c:\oracle\ora92\bin
> exp deviind/deviind@eis
> i am getting error as follow :
> exp-00056:ORACLE ERROR 12538 ENCOUNTERED
> 0RA-12538: TNS:NO SUCH PROTOCOL ADAPTER
> EXP-00000: EXPORT TERMINATED UNSUCCESSFULLY....
>
> please can you do the needful for me...
>
> Regards
> Durai Rajkumar.
>