日期:2014-05-16 浏览次数:20498 次
Create groups and users
[root@vmdb12c ~]# groupadd oinstall [root@vmdb12c ~]# groupadd dba [root@vmdb12c ~]# groupadd oper [root@vmdb12c ~]# groupadd backupdba [root@vmdb12c ~]# groupadd dgdba [root@vmdb12c ~]# groupadd kmdba [root@vmdb12c ~]# useradd -g oinstall -G dba,oper,backupdba,dgdba,kmdba oracle [root@vmdb12c ~]# passwd oracle Changing password for user oracle. New password: BAD PASSWORD: it is based on a dictionary word BAD PASSWORD: is too simple Retype new password: passwd: all authentication tokens updated successfully. [root@vmdb12c ~]# id oracle uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),504(backupdba),505(dgdba),506(kmdba)
[root@vmdb12c yum.repos.d]# wget http://public-yum.oracle.com/public-yum-ol6.repo --2013-09-01 14:05:42-- http://public-yum.oracle.com/public-yum-ol6.repo Resolving public-yum.oracle.com... 137.254.56.43 Connecting to public-yum.oracle.com|137.254.56.43|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2778 (2.7K) [text/plain] Saving to: “public-yum-ol6.repo.3” 100%[===========================================================================================================================================================================================>] 2,778 --.-K/s in 0s 2013-09-01 14:05:42 (280 MB/s) - “public-yum-ol6.repo.3” saved [2778/2778]
[root@vmdb12c ~]# yum install oracle-rdbms-server-12cR1-preinstall Loaded plugins: refresh-packagekit, security Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package oracle-rdbms-server-12cR1-preinstall.x86_64 0:1.0-8.el6 will be installed --> Processing Dependency: compat-libcap1 for package: oracle-rdbms-server-12cR1-preinstall-1.0-8.el6.x86_64 --> Processing Dependency: ksh for package: oracle-rdbms-server-12cR1-preinstall-1.0-8.el6.x86_64 --> Processing Dependency: libaio-devel for package: oracle-rdbms-server-12cR1-preinstall-1.0-8.el6.x86_64 --> Processing Dependency: compat-libstdc++-33 for package: oracle-rdbms-server-12cR1-preinstall-1.0-8.el6.x86_64 --> Running transaction check ---> Package compat-libcap1.x86_64 0:1.10-1 will be installed ---> Package compat-libstdc++-33.x86_64 0:3.2.3-69.el6 will be installed ---> Package ksh.x86_64 0:20100621-19.el6_4.4 will be installed ---> Package libaio-devel.x86_64 0:0.3.107-10.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================================================================================== Installing: oracle-rdbms-server-12cR1-preinstall x86_64 1.0-8.el6 ol6_latest 15 k Installing for dependencies: compat-libcap1