While executing scripts in SQLPlus I've encountered a problem:
script.sql contains the following lines
@some_pkg.pks
@some_pkg.pkb
drop package some_pkg;
/
After calling
> sqlplus user/password@dbname @script.sql
the following messages are in console:
Package created.
Package body created.
Package dropped.
drop package some_pkg;
*
ERROR at line 1:
ORA-04043: object SOME_PKG does not exist
Please, explain what's happening here. Looks like the package is being dropped twice. Is it possible to avoid the error?