1

当我尝试在以下代码中运行时Oracle 11g

@?/rdbms/admin/prvtmail.plb

我得到了这个输出。

PACKAGE utl_mail_internal compiled
PACKAGE BODY utl_mail_internal compiled
GRANT succeeded.
PACKAGE BODY utl_mail compiled
219/59         PLS-00201: identifier 'UTL_TCP' must be declared
219/13         PL/SQL: Statement ignored
239/41         PLS-00201: identifier 'UTL_TCP' must be declared
237/17         PL/SQL: Statement ignored
255/39         PLS-00201: identifier 'UTL_TCP' must be declared
253/15         PL/SQL: Statement ignored
291/41         PLS-00201: identifier 'UTL_TCP' must be declared
289/9          PL/SQL: Statement ignored
317/5          PLS-00201: identifier 'SYS.UTL_MAIL_INTERNAL' must be declared
317/5          PL/SQL: Statement ignored
389/23         PLS-00201: identifier 'UTL_SMTP' must be declared
389/23         PL/SQL: Item ignored
390/39         PLS-00201: identifier 'UTL_TCP' must be declared
390/23         PL/SQL: Item ignored
427/9          PLS-00320: the declaration of the type of this expression is incomplete or malformed
427/9          PL/SQL: Statement ignored
443/19         PLS-00320: the declaration of the type of this expression is incomplete or malformed
443/5          PL/SQL: Statement ignored
444/19         PLS-00320: the declaration of the type of this expression is incomplete or malformed
444/5          PL/SQL: Statement ignored

上面的输出有一些错误。我怎样才能避免这些错误?

4

2 回答 2

0

我能够通过执行代码来解决这个问题sys,而不是system

于 2012-07-04T07:32:35.440 回答
0

以 sys 身份登录并尝试此操作

将 UTL_TCP 上的执行权限授予 PUBLIC

于 2021-07-17T13:22:43.523 回答