Oracle 12c 安裝記錄(-)準備

yewushang發表於2014-02-15
安裝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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章