在SLES 10上安装oracle 11g, 中间遇到几个问题。记录一下:
0、文档上说linux上装11g至少1g内存,我是在PC上的vmware上装的sles 10,内存有限,所以设了768m。安装也通过了。接着手工建库。按administrator's Guide来做。
1、startup nomount失败。
a) 发现pfile中memory_target=512m设置后,其他的db_cache_size, log_buffer之类的设置可能与之冲突。
解决:将后者注释掉,只设一个memory_target就好。
b) alert文件中出现ora-00845。
oerr ora 845
00845, 00000, "MEMORY_TARGET not supported on this system"
// *Cause: The MEMORY_TARGET parameter was not supported on this operating system or /dev/shm was not sized correctly on Linux.
// *Action: Refer to documentation for a list of supported operating systems. Or, size /dev/shm to be at least the SGA_MAX_SIZE on each Oracle instance running on the system. For ASM instances, set MEMORY_TARGET explicitly to 0 if /dev/shm cannot be configured.
解决:在suse linux中,/dev/shm必须大于memory_target或memory_mex_target。vi /etc/fstab,插入:tmpfs /dev/shm tmpfs size=800M 0 0,reboot后OK。
2、create database失败。
a) 发现pfile中设置了undo_tablespace参数,和create database语句中的undo_tablespace子句冲突。
解决:在pfile中注释undo_tablespace行,create spfile from pfile,之后create database成功。
b) redo log file的大小不能小于8192K。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7248007/viewspace-594380/ ,如需转载,请注明出处,否则将追究法律责任。