在CentOS6.0上安裝Oracle 11gR2 (11.2.0.1)以及基本的配置(一)

來源:互聯網
上載者:User

標籤:

首先安裝CentOS6.0 就不用說了。安裝即可。唯一需要注意的就是後面Oracle 11G Installation guide中的Checking the Software Requirements部分,會要求安裝一部分軟體這些軟體在CentOS6 DVD鏡像裡都有。可以自己配置個DVD鏡像的repos。 檢查命令格式如下:rpm -qa | grep 名字binutils-2.17.50.0.6            okcompat-libstdc++-33-3.2.3        okelfutils-libelf-0.125            okelfutils-libelf-devel-0.125 --elfutils-libelf-devel-static-0.125 --gcc-4.1.2                okgcc-c++-4.1.2                okglibc-2.5-24                okglibc-common-2.5            okglibc-devel-2.5                okglibc-headers-2.5            okkernel-headers-2.6.18            okksh-20060214                oklibaio-0.3.106                oklibaio-devel-0.3.106             --libgcc-4.1.2                oklibgomp-4.1.2                oklibstdc++-4.1.2             oklibstdc++-devel-4.1.2            okmake-3.81                oknumactl-devel-0.9.8.i386        --sysstat-7.0.2                --unixODBC-2.2.11                --unixODBC-devel-2.2.11            -- 從 CentOS-5.5-i386-bin-DVD.iso\CentOS 檔案找到缺少的包, 並且上傳到 linux 上去, ls *.rpmrpm -ivh *.rpm CentOS6.0基本環境配置===========#建立dba和 oinstall使用者組。用來區別普通的使用者groupadd oinstallgroupadd dbamkdir -p /u01/oracle#添加一個oracle使用者, 根目錄是 /u01/oracle, 主的組是 oinstall 副的組是dbauseradd -g oinstall -G dba -d /u01/oracle oracle#拷貝幾個使用者.bash*檔案的democp /etc/skel/.bash_profile /u01/oraclecp /etc/skel/.bashrc /u01/oraclecp /etc/skel/.bash_logout /u01/oracle#為oracle使用者佈建密碼 123456passwd oraclechown -R oracle:oinstall u01#檢查 nobody 是否存在 ,  id nobody 預設存在的。#如果不存在 # /usr/sbin/useradd -g nobody################################核心參數修改(最好按照Oracle安裝要求來修改)#vi /etc/sysctl.conffs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586 #立刻使核心參數生效,而不需要重啟#sysctl -p#vi /etc/security/limits.conforacle           soft    nproc   2047oracle           hard    nproc   16384oracle           soft    nofile  1024oracle           hard    nofile  65536#vi /proc/sys/fs/file-max   120300/512#(未驗證不重要) #vi /etc/pam.d/login  #不知道幹什麼的 session    required     pam_limits.so #######################設定oracle 使用者環境變數#su - oracle#vim ~/.bash_profileORACLE_BASE=/u01ORACLE_HOME=$ORACLE_BASE/oracleORACLE_SID=wilsonPATH=$ORACLE_HOME/bin:$PATH:$HOME/binexport ORACLE_BASE ORACLE_HOME ORACLE_SID PATH #查看設定的環境變數ITPUB個人空間.[[email protected] ~]$ env | grep ORA # 這個具體的作用還是不知道的#vi /etc/profileif [ $USER = "oracle" ]; then       if [ $SHELL = "/bin/ksh" ]; then           ulimit -p 16384           ulimit -n 65536       else           ulimit -u 16384 -n 65536       fifi # ifconfig #要改IP為固定的IP# vi /etc/hosts編輯裡面內容  去掉一個oracle11g[安裝Linux時的local名]###這個請根據情況改變。作用應該是 遠端連線的時候需要這個IP192.168.0.100 oracle11g  安裝Oracle11gR2============安裝檔案(方式自己選擇)#此處注意,由於是英文安裝環境,需要LANG的支援,否則中文亂碼。export LANG=en_US./runInstaller 執行安裝(oracle使用者,非root)安裝到最後需要Root執行兩個指令碼執行以下命令[[email protected] ~]# /u01/oraInventory/orainstRoot.[[email protected] ~]# /u01/oracle/root.sh[[email protected] database]# netca  配置監聽程式[[email protected] database]# ps -ef 查看監聽程式[[email protected] database]# dbca  安裝資料庫 測試Oracle串連sqlplus DBSNMP/passWORDSQL> !ps -efSQL> !ps -ef | grep oracle Oracle資料庫一些常用進程 啟動監聽程式[[email protected] ~]$ lsnrctl start啟動企業管理器[[email protected] ~]$ emctl start dbconsolehttps://192.168.70.128:1158/em/console/aboutApplication這是我自己電腦上的利用Net Manager 配置本地命名[[email protected] ~]#  netmgrLinux 啟動ftp [[email protected] ~]# service vsftpd start在dos裡面C:\Users\Administrator>ftp 192.168.48.130    OK串連到 192.168.48.130。Liunx關閉防火牆[[email protected] ~]# service iptables stop[[email protected] ~]# vi /etc/inittab我只能看到ID:3:INITDEFAULT ,但是不知道怎麼將3改成5?  減少記憶體開銷..

在CentOS6.0上安裝Oracle 11gR2 (11.2.0.1)以及基本的配置(一)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.