@echo
off
set
passwd=mypassword
for
/F "tokens=*" %%A in (pcpserverlist.txt) do call :processline %%A
pause
goto
:eof
:processline
set
pcpserver=%1
sqlplus
myusername/%passwd%@"(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL =
TCP)(Host = %pcpserver%.company.com)(Port = port)))(CONNECT_DATA =(sid =
sidname)))" < plsqlscript.sql > %pcpserver%.txt
goto
:eof
:eof
all the server name need to be saved in the file pcpserverlist.txt, each server take 1 line
Comments
Post a Comment