今天从metalink下了一个816的补丁包 8.1.6.3.0,安装没问题。
我新建的数据库没有启用JServer, 当时看安装说明
文件也不是很仔细,每步都执行了,但是在执行最后一
步的时候出错了:
SQL>create or replace java system
2 /
执行过程中报了ORA-04031错误,
unable to allocatebytes of shared memory
("shared pool","unknown object","joxlod: init h",
"JOX: ioc_allocate_pal"
于是照着帮助文件中的说明改了SHARED_POOL_SIZE,
重启实例问题依旧。
后来无意中看了一下 %ORACLE_HOME%\javavm\doc\
readme.txt ,才知道问题不是出在 SHARED_POOL_SIZE,
而是出在JAVA_POOL_SIZE身上:
The cure is to shut down your database and to reset java_pool_size to
a larger value.The mention of "shared pool" in the error message is
misleading.Reset java_pool_size, not shared_pool_size.
我的init.ora文件中JAVA_POOL_SIZE根本没设置,当然会报错的。
给大家一个参考吧。
|