0
我想在shell腳本中記錄獨立塊的行號。
我想使用下面的代碼,但它不工作。請讓我知道是否有一個工作解決方案。
#!/bin/ksh
result=`sqlplus -s $DATABASE <<EOF
SET SET HEAD OFF;
SET PAGES 0;
SET FEEDBACK OFF;
SET SERVEROUTPUT ON SIZE UNLIMITED;
SET DEFINE OFF;
BEGIN
DBMS_OUTPUT.put_line ('Line number: '|| $$plsql_line);
END;
/
EOF`
echo $result
我收到以下錯誤:
PLS-00103: Encountered the symbol "PLSQL_LINE" when expecting one of the following:
) = - + </> at in is mod remainder not rem => <an exponent (**)> <>
or != or ~= >= <= <> and or like like2 like4 likec as between from using
|| member submultiset The symbol "," was substituted for "PLSQL_LINE" to continue