Linux 安裝 Oracle 11g

來源:互聯網
上載者:User

標籤:

配置好本地YUM源
 
  1. [[email protected] ~]# cd /etc/yum.repos.d/
  2. [[email protected] yum.repos.d]#
  3. [[email protected] yum.repos.d]# vi local.repo
  4. [Local]
  5. Name=local
  6. baseurl=file:///mnt/Server
  7. enable=1
  8. gpgcheck=0
  9. [[email protected] yum.repos.d]# yum list
安裝所需軟體包
 
  1. # yum -y install binutils-2.* compat-libstdc++-3* elfutils-libelf-0.* elfutils-libelf-devel-0.* elfutils-libelf-devel-static-0.* gcc-c++-4.* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2.* kernel-headers-2.* *ksh* libaio-0.* libaio-devel-0.* libgcc-4.* libgomp-4.* libstdc++-4.* libstdc++-devel-4.* make-3* sysstat-7.*
建立使用者
 
  1. [[email protected] yum.repos.d]# groupadd dba
  2. [[email protected] yum.repos.d]# groupadd oinstall
  3. [[email protected] yum.repos.d]# groupadd oper
  4. [[email protected] yum.repos.d]# useradd -g oinstall -G dba,oper oracle
  5. [[email protected] yum.repos.d]# passwd oracle
  6. Changing password for user oracle.
  7. New UNIX password:
  8. BAD PASSWORD: it is based on a dictionary word
  9. Retype new UNIX password:
  10. passwd: all authentication tokens updated successfully.
建立相關目錄
 
  1. [[email protected] yum.repos.d]# mkdir /u01
  2. [[email protected] yum.repos.d]# chmod 777 /u01/
 
  1. [[email protected] yum.repos.d]# su - oracle
  2. [[email protected] ~]$ vi .bash_profile
  3. # .bash_profile
  4. # Get the aliases and functions
  5. if [ -f ~/.bashrc ]; then
  6. . ~/.bashrc
  7. fi
  8. # User specific environment and startup programs
  9. export ORACLE_BASE=/u01/app/oracle
  10. export ORACLE_HOME=$ORACLE_BASE/product/11gr2/dbs
  11. export ORACLE_SID=prod
  12. export NLS_LANGE="AMERICAN_AMERICA.ZHS16GBK"
  13. export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin





來自為知筆記(Wiz)

Linux 安裝 Oracle 11g

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.