在pro*c中嵌入PL/SQL块,编译报如下错误:
System default option values taken from: /oracle/product/10.2/db_1/precomp/admin/pcscfg.cfg
Error at line 36, column 21 in file selectinfo.pc
FROM TEST_EMP
....................1
PLS-S-00201, identifier 'TEST_EMP' must be declared
Error at line 34, column 16 in file selectinfo.pc
SELECT ENAME,SAL
...............1
PLS-S-00000, SQL Statement ignored
Semantic error at line 33, column 14, file selectinfo.pc:
BEGIN
.............1
PCC-S-02346, PL/SQL found semantic errors
make: The error code from the last command is 1.
解决办法:
在编译时加上 userid=name/passwd@remoteDB(如果是连接到本地数据库则不需要@remoteDB)
该贴由system转至本版2014-9-16 15:01:03