分类: LINUX
2006-09-28 15:13:14
添加组nobody
groupadd nobody
groupadd oinstall ;groupadd dba;useradd -g oinstall -G dba,oinstall oracle;id oracle
mkdir /home/oracle;chown oracle:oinstall /home/oracle;ls -al /home
mkdir -p /u01/app/oracle;chown oracle:oinstall /u01/app/oracle;ls -al /u01/app
chsh oracle -s /bin/bash
passwd oracle
rac2:~# groupadd oinstall ;groupadd dba;useradd -g oinstall -G dba,oinstall oracle;id oracle
uid=1001(oracle) gid=1001(oinstall) groups=1001(oinstall),1002(dba)
rac2:~# mkdir /home/oracle;chown oracle:oinstall /home/oracle;ls -al /home
total 16
drwxrwsr-x 4 root staff 4096 2005-11-20 16:22 .
drwxr-xr-x 21 root root 4096 2005-11-19 05:55 ..
drwxr-xr-x 2 debian debian 4096 2005-11-18 22:31 debian
drwxr-sr-x 2 oracle oinstall 4096 2005-11-20 16:22 oracle
rac2:~# mkdir -p /u01/app/oracle;chown oracle:oinstall /u01/app/oracle;ls -al /u01/app
total 12
drwxr-xr-x 3 root root 4096 2005-11-20 16:22 .
drwxr-xr-x 3 root root 4096 2005-11-20 16:22 ..
drwxr-xr-x 2 oracle oinstall 4096 2005-11-20 16:22 oracle
rac2:~# chsh oracle -s /bin/bash
rac2:~# passwd oracle
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
设置oracle用户环境变量,编辑/home/oracle/.bash_profile,加入下面的内容
export ORACLE_BASE=/u01/app/oracle