Oracle 12c 安装记录(-)准备

安装12c

点击(此处)折叠或打开

  1. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
  2. ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
  3. 192.168.1.189 yws
  4.  [root@localhost ~]# vi /etc/sysconfig/network
  5. NETWORKING=yes
  6. HOSTNAME=localhost.localdomain

  7. [root@localhost ~]# cat /etc/sysconfig/network
  8. NETWORKING=yes
  9. HOSTNAME=localhost.localdomain
  10. 192.168.1.189 yws
  11. [root@localhost ~]# hostname yws
  12. [root@localhost ~]# vi /etc/yum
  13. yum/ yum.conf yum.repos.d/
  14. [root@localhost ~]# vi /etc/yum
  15. yum/ yum.conf yum.repos.d/
  16. [root@localhost ~]# vi /etc/yum.conf
  17. [main]
  18. cachedir=/var/cache/yum/$basearch/$releasever
  19. keepcache=0
  20. debuglevel=2
  21. logfile=/var/log/yum.log
  22. exactarch=1
  23. obsoletes=1
  24. gpgcheck=1
  25. plugins=1
  26. installonly_limit=3

  27. # This is the default, if you make this bigger yum won\'t see if the metadata
  28. # is newer on the remote and so you\'ll \"gain\" the bandwidth of not having to
  29. # download the new metadata and \"pay\" for it by yum not having correct
  30. # information.
  31. # It is esp. important, to have correct metadata, for distributions like
  32. # Fedora which don\'t keep old packages around. If you don\'t like this checking
  33. # interupting your command line usage, it\


点击(此处)折叠或打开

  1. [root@localhost /]# grep oinstall /etc/group
  2. [root@localhost /]# /usr/sbin/groupadd -g 54321 oinstall
  3. [root@localhost /]# /usr/sbin/groupadd -g 54322 dba
  4. [root@localhost /]# /usr/sbin/groupadd -g 54323 oper
  5. [root@localhost /]# /usr/sbin/groupadd -g 54324 backupdba
  6. [root@localhost /]# /usr/sbin/groupadd -g 54325 dgdba
  7. [root@localhost /]# /usr/sbin/groupadd -g 54326 kmdba
  8. [root@localhost /]# /usr/sbin/groupadd -g 54327 asmdba
  9. [root@localhost /]# /usr/sbin/groupadd -g 54328 asmoper
  10. [root@localhost /]# /usr/sbin/groupadd -g 54329 asmadmin
  11. [root@localhost /]# /usr/sbin/useradd -u 54321 -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba oracle
  12. [root@localhost /]# passwd oracle
  13. Changing password for user oracle.
  14. New password:
  15. BAD PASSWORD: it is based on a dictionary word
  16. BAD PASSWORD: is too simple
  17. Retype new password:
  18. passwd: all authentication tokens updated successfully.
  19. [root@localhost /]# id oracle
  20. uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54324(backupdba),54325(dgdba),54326(kmdba),54327(asmdba)
  21. [root@localhost /]# su - oracle
  22. [oracle@yws ~]$ exit
  23. logout
  24. [root@localhost /]# mkdir -p /u01/app/oracle
  25. [root@localhost /]# uname -a
  26. Linux yws 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
  27. [root@localhost /]# chown -R oracle:oinstall /u01
  28. [root@localhost /]# su - oracle


点击(此处)折叠或打开

  1. [root@localhost /]# chown -R oracle.oinstall database
  2. [root@localhost /]# rm -rf linuxamd64_12c_database_1of2.zip
  3. [root@localhost /]# rm -rf linuxamd64_12c_database_2of2.zip
  4. [root@localhost /]# su - oracle
  5. [oracle@yws ~]$ cat .bash_profile
  6. # .bash_profile

  7. # Get the aliases and functions
  8. if [ -f ~/.bashrc ]; then
  9.         . ~/.bashrc
  10. fi

  11. # User specific environment and startup programs

  12. PATH=$PATH:$HOME/bin

  13. export ORACLE_BASE=/u01/app/oracle
  14. export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/dbhome_1
  15. export ORACLE_SID=yws
  16. export PATH=/usr/sbin:$PATH
  17. export PATH=$ORACLE_HOME/bin:$PATH
  18. export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
  19. export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
  20. export PATH
  21. [oracle@yws ~]$ cd /u01/



来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29477587/viewspace-1081778/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29477587/viewspace-1081778/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值