自动内存管理:
Oracle 11G开始,自动内存管理特性需要更多的共享内存(/dev/shm)和文件描述符。共享内存的大小要大于每个实例的memory_max_target和memory_target的参数。如果参数设置为非零或一个不正确的大小,将导致oracle启动时报错ora-00845。
如下命令确认共享可用容量:
#df -h /dev/shm/ 如遇ora-00845错误,增加/dev/shm挂载点大小。
例如:
#mount -t tmpfs shmfs -o size=7g /dev/shm 在/etc/fstab添加条目:
shmfs /dev/shm tmpfs size=7g 0 2. 系统架构:
确认系统可以运行oracle
uname -m 3. 磁盘空间:
/tmp:1Gb空闲空间
查看可用空间
df -h /tmp 注:如空闲空间不满足要求,可配置oracle用户的TMP 和TMPDIR 环境变量。
The following tables describe the disk space requirements for software files and data files for each installation type on Linux x86-64:
Installation TypeRequirement for Software Files (GB)Enterprise Edition4.7Standard Edition4.6
Installation TypeDisk Space for Data Files (GB)Enterprise Edition1.7Standard Edition1.5 如下命令确认可用磁盘空间
Resource Shell LimitResourceSoft LimitHard LimitOpen file descriptors
nofile
at least 1024
at least 65536
Number of processes available to a single user
nproc
at least 2047
at least 16384
Size of the stack segment of the process
stack
at least 10240 KB
at least 10240 KB, and at most 32768 KB
$./runInstallerStarting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 10608 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-09-12_08-22-04PM.
Please wait ... 客户端会弹出图形安装界面,按照图形界面提示,一步步安装。
注意,安装方式有两种选择
一种是安装并配置数据库,另一种是仅安装数据库。本案例选择默认安装并配置数据库
两种安装方式没有太大区别,图形界面均有说明
选择仅安装数据库,安装后可执行 `dbca` 命令调用图形界面创建数据库,`netca`命令调用图形界面创建监听,具体可参见此链接后半部分http://dengqsintyt.iteye.com/blog/1991930/
# /bin/sh /data/app/oraInventory/orainstRoot.shChanging permissions of /data/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /data/app/oraInventory to oinstall.
The execution of the script is complete.# /bin/sh /data/app/oracle/product/11.2.0/dbhome_2/root.shRunning Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /data/app/oracle/product/11.2.0/dbhome_2
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions. 安装到此全部结束