文档解释
ORA-24395: cannot reinitialize non-existent pool
Cause: OCIConnectionPoolCreate was not called in OCI_DEFAULT mode for this pool handle.
Action: Create a connection pool prior to reinitializing it.
ORA-24395表示不能对不存在的池进行重新初始化,官方解释是试图在一个不存在的池上执行ALTER SYSTEM SET SHARED_POOL_SIZE,ALTER SESSION SET SHARED_POOL_SIZE,ALTER SYSTEM RELEASE SHARED_POOL,ALTER SYSTEM FLUSH SHARED_POOL,或ALTER SYSTEM REINITIALIZE SHARED_POOL语句时,可能引发ORA-24395错误。 这个错误的最常见原因是在共享内存池尚未初始化的情况下,认为它已经存在而尝试更改共享内存池大小。要正常处理这一问题,首先必须对共享内存池进行初始化,如下所示:
ALTER SYSTEM SET SHARED_POOL_SIZE=*;
ALTER SYSTEM FLUSH SHARED_POOL;
ALTER SYSTEM REINIALIZE SHARED_POOL;