在Linux 5中导入数据时,出现下面的错误。
-bash: syntax error near unexpected token `('
检查了脚本没有错误:
imp mzl/mzl fromuser=dpcsys touser=mzl tables=(PC_PRJ_PLAN,PC_PRJ_MASSCONTROL,PC_PRJ_FACT) file=/data2/databackup/expbackup/TuesdayBackup.dmp log=/data2/databackup/expbackup/20101125Imp.log
原来在Linux 5中需要在括号加上双引号才可以。
如:
imp mzl/mzl fromuser=dpcsys touser=mzl tables="(PC_PRJ_PLAN,PC_PRJ_MASSCONTROL,PC_PRJ_FACT)" file=/data2/databackup/expbackup/TuesdayBackup.dmp log=/data2/databackup/expbackup/20101125Imp.log