# vi /etc/group
。。。
oinstall::100racle
dba::101racle
oper::102racle
# vi /etc/passwd
。。。
oracle:100:100::/u01/app/oracle:/bin/sh
# passwd -r files oracle
New Password:
Re-enter new Password:
passwd: password successfully changed for oracle
6。检查nobody用户:
# id nobody
uid=60001(nobody) gid=60001(nobody)
7。改kernel参数:
将以下参数追加在/etc/system文件尾部
#vi /etc/system
set shmsys:shminfo_shmmax = 4294967296
set shmsys:shminfo_shmmin = 1
set shmsys:shminfo_shmmni = 200
set shmsys:shminfo_shmseg = 30
set semsys:seminfo_semmni = 100
set semsys:seminfo_semmsl = 510
set semsys:seminfo_semmns = 1520
set semsys:seminfo_semopm = 100
set semsys:seminfo_semvmx = 32767
set noexec_user_stack=1
重启服务器
#reboot
服务器启动后,使用命令prctl查看共享内存的大小
# prctl -n project.max-shm-memory -i project user.root
project: 1: user.root
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 400GB - deny -
system 16.0EB max deny -
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/10.2.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Creating /usr/local/bin directory...
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /var/opt/oracle/oratab file...
Entries will be added to the /var/opt/oracle/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.
eoffice-480:/u01/app/oracle/product/10.2.0/db_1 23 #
------------------------------------------
安装结束,选择退出:
#------------------------------------------------------
# 启动Oracle监听和实例脚本
#------------------------------------------------------
login: oracle
Password:
Last login: Sat Aug 25 10:06:34 on console
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
$ bash
bash-3.00$ lsnrctl start
bash-3.00$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Aug 25 16:33:56 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: sys as sysdba
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> startup
SQL> quit
bash-3.00$
bash-3.00$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Aug 25 16:33:56 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: sys as sysdba
Enter password: