Home >Database >Mysql Tutorial >mysql和oracle批处理运行sql文件和oracle导入dmp文件_MySQL
bitsCN.com
mysql和oracle批处理运行sql文件和oracle导入dmp文件
mysql批处理运行sql:
net stop mysql
net start mysql
echo Wscript.Sleep(3000) > sleep.vbs
start /w wscript.exe sleep.vbs
del /Q sleep.vbs
mysql -f -u mysql -ppassword anxiesoft
net stop mysql
net start mysql
pause;
oracle批处理运行sql:
sqlplus dssc/dssc@dssc @./update.sql > ./update.log
oracle导入dmp文件:
imp dssc/dssc@dssc file=d:/0713.dmp tables=(organization,devices ) log=d:/imp0713.log ignore=y
pause