oracle11g - export oracle database dump file using bat file -
could please let me know there way make dump file using bat file [ not working me ] try send username , password , sid [ tns alias] not work connection in tnsnames.ora
testdb = (description = (address = (protocol = tcp)(host = ara-server)(port = 1521)) (connect_data = (server = dedicated) (service_name = xe) ) )
and bat file
cls @echo off rem export full database auto filename dump , log rem batch file create dump , log files in same directory of batch rem file name syntax --> <schemaname>_<dd>_<mm>_<yyyy> rem auther: deepu mohan p, www.deepumohan.com rem created: 07-sep-2009 rem modified: 30-sep-2009, 01-oct-2009 rem user credentials set /p schema=enter username: set /p pwd=enter password: set /p sid=sid: rem following block getting year, month , day rem ====================================================== /f "tokens=2-4 skip=1 delims=(-)" %%g in ('echo.^|date') ( /f "tokens=2 delims= " %%a in ('date /t') ( set v_first=%%g set v_second=%%h set v_third=%%i set v_all=%%a ) ) set %v_first%=%v_all:~0,2% set %v_second%=%v_all:~3,2% set %v_third%=%v_all:~6,4% rem ===================================================== exp %schema%/%pwd%@%sid% file=''%user%_%dd%_%mm%_%yy%.dmp log=%user%_%dd%_%mm%_%yy%.log compress=n rows=y grants=y buffer=500000 full=y statistics=none pause
display error : -
exp-00056: oracle error 12154 encountered ora-12154: tns:could not resolve connect identifier specified exp-00000: export terminated unsuccessfully 'compress' not recognized internal or external command, operable program or batch file.
note try set sid parameter testdb or xe @ second time not work
Comments
Post a Comment