日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

Oracle 11g 单机安装 —— 文件系统

發布時間:2024/3/24 windows 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Oracle 11g 单机安装 —— 文件系统 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1、解析主機名:

[root@rhel ~]# vim /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.0.200 oracle

2、關閉防火墻及安全策略:

[root@rhel ~]# service iptables stop [root@rhel ~]# service ip6tables stop [root@rhel ~]# service NetworkManager stop [root@rhel ~]# chkconfig iptables off [root@rhel ~]# chkconfig ip6tables off [root@rhel ~]# chkconfig NetworkManager off [root@rhel ~]# setenforce 0 [root@rhel ~]# sed -i 's/=enforcing/=disabled/' /etc/selinux/config

3、配置yum源:

[root@rhel ~]# rm -rf /etc/yum.repos.d/* [root@rhel ~]# cat >> /etc/yum.repos.d/rhel.repo << EOF > [rhel] > name=rhel > baseurl=file:///mnt > enable=1 > gpgcheck=0 > EOF [root@rhel ~]# cat >> /etc/rc.d/rc.local << EOF > mount /dev/sr0 /mnt > EOF [root@rhel ~]# mount /dev/sr0 /mnt mount: block device /dev/sr0 is write-protected, mounting read-only [root@rhel ~]# yum repolist Loaded plugins: product-id, refresh-packagekit, search-disabled-repos, security, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. rhel | 4.1 kB 00:00 ... rhel/primary_db | 3.0 MB 00:00 ... repo id repo name status rhel rhel 3,861 repolist: 3,861

4、安裝依賴包:

[root@rhel ~]# yum -y install binutils-* compat-libstdc++-* compat-libstdc++-*.i686 elfutils-libelf* elfutils-libelf-devel* gcc-* gcc-c++-* glibc-* glibc-*.i686 glibc-common* glibc-devel* glibc-devel*.i686 glibc-headers* ksh* libaio* libaio*.i686 libaio* libaio*.i686 libgcc* libgcc*.i686 libstdc++* libstdc++*.i686 libstdc++-devel* make* sysstat* unixODBC* unixODBC*.i686 unixODBC-devel* unixODBC-devel*

5、創建用戶和組:

[root@rhel ~]# groupadd -g 501 oinstall [root@rhel ~]# groupadd -g 502 dba [root@rhel ~]# groupadd -g 504 asmadmin [root@rhel ~]# groupadd -g 506 asmdba [root@rhel ~]# groupadd -g 507 asmoper [root@rhel ~]# useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper,dba grid [root@rhel ~]# useradd -u 502 -g oinstall -G dba,asmdba oracle

6、創建目錄:

[root@rhel ~]# mkdir -p /u01/app/oracle [root@rhel ~]# mkdir -p /u01/app/oracle/cfgtoollogs [root@rhel ~]# chown -R oracle:oinstall /u01/app/oracle [root@rhel ~]# chmod -R 775 /u01/app/oracle [root@rhel ~]# mkdir -p /u01/app/oraInventory [root@rhel ~]# chown -R grid:oinstall /u01/app/oraInventory [root@rhel ~]# chmod -R 775 /u01/app/oraInventory [root@rhel ~]# mkdir -p /u01/app/grid [root@rhel ~]# chmod -R 775 /u01/app/grid [root@rhel ~]# chown -R grid:oinstall /u01/app/grid [root@rhel ~]# mkdir -p /u01/app/11.2.0/grid [root@rhel ~]# chown -R grid:oinstall /u01/app/11.2.0/grid [root@rhel ~]# chmod -R 775 /u01/app/11.2.0/grid

7、配置Oracle環境變量:

[root@rhel ~]# su - oracle [oracle@rhel ~]$ vi .bash_profile # .bash_profile# Get the aliases and functions if [ -f ~/.bashrc ]; then. ~/.bashrc fi# User specific environment and startup programsPATH=$PATH:$HOME/binexport ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2/db_1 export PATH=$PATH:$ORACLE_HOME/binexport PATH[oracle@rhel ~]$ . .bash_profile [root@rhel ~]# vim /etc/oraInst.loc inventory_loc=/u01/app/oraInventory inst_group=oinstall

8、上傳Oracle11g的database軟件:

9、 創建fsdb:

mkdir /oradata chown oracle: /oradata chmod 755 /oradata

10、解壓database:

[root@rhel soft]# unzip linux.x64_11gR2_database_1of2.zip ... [root@rhel soft]# unzip linux.x64_11gR2_database_2of2.zip ...

11、執行安裝腳本:

[oracle@rhel database]$ /tmp/soft/database/runInstaller

?

總結

以上是生活随笔為你收集整理的Oracle 11g 单机安装 —— 文件系统的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。