安装12c
点击(此处)折叠或打开
- 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
- ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
- 192.168.1.189 yws
- [root@localhost ~]# vi /etc/sysconfig/network
- NETWORKING=yes
- HOSTNAME=localhost.localdomain
-
- [root@localhost ~]# cat /etc/sysconfig/network
- NETWORKING=yes
- HOSTNAME=localhost.localdomain
- 192.168.1.189 yws
- [root@localhost ~]# hostname yws
- [root@localhost ~]# vi /etc/yum
- yum/ yum.conf yum.repos.d/
- [root@localhost ~]# vi /etc/yum
- yum/ yum.conf yum.repos.d/
- [root@localhost ~]# vi /etc/yum.conf
- [main]
- cachedir=/var/cache/yum/$basearch/$releasever
- keepcache=0
- debuglevel=2
- logfile=/var/log/yum.log
- exactarch=1
- obsoletes=1
- gpgcheck=1
- plugins=1
- installonly_limit=3
-
- # This is the default, if you make this bigger yum won\'t see if the metadata
- # is newer on the remote and so you\'ll \"gain\" the bandwidth of not having to
- # download the new metadata and \"pay\" for it by yum not having correct
- # information.
- # It is esp. important, to have correct metadata, for distributions like
- # Fedora which don\'t keep old packages around. If you don\'t like this checking
- # interupting your command line usage, it\
点击(此处)折叠或打开
- [root@localhost /]# grep oinstall /etc/group
- [root@localhost /]# /usr/sbin/groupadd -g 54321 oinstall
- [root@localhost /]# /usr/sbin/groupadd -g 54322 dba
- [root@localhost /]# /usr/sbin/groupadd -g 54323 oper
- [root@localhost /]# /usr/sbin/groupadd -g 54324 backupdba
- [root@localhost /]# /usr/sbin/groupadd -g 54325 dgdba
- [root@localhost /]# /usr/sbin/groupadd -g 54326 kmdba
- [root@localhost /]# /usr/sbin/groupadd -g 54327 asmdba
- [root@localhost /]# /usr/sbin/groupadd -g 54328 asmoper
- [root@localhost /]# /usr/sbin/groupadd -g 54329 asmadmin
- [root@localhost /]# /usr/sbin/useradd -u 54321 -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba oracle
- [root@localhost /]# 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@localhost /]# id oracle
- uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54324(backupdba),54325(dgdba),54326(kmdba),54327(asmdba)
- [root@localhost /]# su - oracle
- [oracle@yws ~]$ exit
- logout
- [root@localhost /]# mkdir -p /u01/app/oracle
- [root@localhost /]# uname -a
- 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
- [root@localhost /]# chown -R oracle:oinstall /u01
- [root@localhost /]# su - oracle
点击(此处)折叠或打开
- [root@localhost /]# chown -R oracle.oinstall database
- [root@localhost /]# rm -rf linuxamd64_12c_database_1of2.zip
- [root@localhost /]# rm -rf linuxamd64_12c_database_2of2.zip
- [root@localhost /]# su - oracle
- [oracle@yws ~]$ cat .bash_profile
- # .bash_profile
-
- # Get the aliases and functions
- if [ -f ~/.bashrc ]; then
- . ~/.bashrc
- fi
-
- # User specific environment and startup programs
-
- PATH=$PATH:$HOME/bin
-
- export ORACLE_BASE=/u01/app/oracle
- export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/dbhome_1
- export ORACLE_SID=yws
- export PATH=/usr/sbin:$PATH
- export PATH=$ORACLE_HOME/bin:$PATH
- export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
- export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
- export PATH
- [oracle@yws ~]$ cd /u01/
-
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29477587/viewspace-1081778/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29477587/viewspace-1081778/