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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

CentOS5.6环境安装oracle 10g(完整版)

發布時間:2023/11/30 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 CentOS5.6环境安装oracle 10g(完整版) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1.安裝前裝備

1.1 硬件要求
要求查看方式
內存至少1G內存grep MemTotal /proc/meminfo
SWAP 如果內存為大于512M則swap大小為內存2倍 如果內存在1到2G之間則swap大小為內存1.5倍 如果內存在2到8G之間則swap大小為內存1倍 如果內存大于8G則swap大小為內存0.75倍 grep SwapTotal /proc/meminfo
磁盤 /tmp目錄至少400MB oracle安裝目錄大約在1.5到3.5G之間 數據文件至少1.2G df -h
1.2軟件要求
CentOS5.6標準安裝,使用YUM安裝以下所需軟件
yum install -y compat-db pdksh sysstat screen libXp compat-libstdc++* Red Hat Enterprise Linux 4.0需安裝以下所需軟件包
binutils-2.15.92.0.2-10.EL4
compat-db-4.1.25-9
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2

1.3添加用戶及用戶組
添加必要的用戶組:/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/groupadd oper
建立oracle用戶
/usr/sbin/useradd -g oinstall -G dba,oper oracle
配置oracle的密碼:
passwd oracle

1.4配置內核參數、修改用戶環境變量
編輯/etc/sysctl.conf文件,在此文件中加入:
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
運行命令: sysctl -p 使設置生效 編輯/etc/security/limits.conf文件,加入以下內容:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536 編輯/etc/pam.d/login文件,加入以下內容:
session required pam_limits.so 同時在/etc/profile中加入一下代碼;
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi 在/etc/profile文件中加入以下內容:
ORACLE_BASE="/opt/app/oracle"
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE"/product/10.2.0/db_1"
ORACLE_SID=xmydlinux
#此SID在后面安裝時需要填入和這里配置一樣的
export ORACLE_HOME ORACLE_SID vi /etc/redhat-release,修改redhat-release文件內容如下:(10G默認不支持5.6版本,修改掉此信息可略過錯誤)
redhat-4 修改oracle用戶的環境配置文件
執行:su oracle 切換到oracle用戶環境,然后編輯 .bash_profile 文件,更改PATH的配置,同時在環境變量中增加NLS_LANG的配置。如下: PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export PATH
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK 1.5 創建目錄
創建ORACLE_BASE目錄: mkdir -p /opt/app/oracle
權限設置: chown -R oracle:oinstall /opt/app/
2.安裝 2.1 切換至oracle用戶,copy 10201_database_linux32.zip文件到/OPT目錄。執行:unzip 10201_database_linux32.zip解壓10g文件。
執行:export LANG=en_US (防止亂碼)
2.2? 執行:/opt/database/runInstaller 選擇安裝方法,建議選擇高級模式,如下圖所示: 點擊“next”,進入下一步驟 使用默認配置,點擊“next”進入下一步驟 選擇數據庫版本,選擇“企業版”,點擊“產品語言”,出現下圖對話框 在對話框中添加“簡體中文”,點擊“OK”,進入下一步 使用默認的安裝目錄,點擊“next”進入下一步驟 進行數據庫安裝前檢查,如上圖所示,檢查通過,如果沒有任何錯誤,點擊“next” 此處選擇“只安裝數據庫軟件”,點擊“next”,進入下一步驟 點擊“install”,進行安裝 正在安裝,如上圖所示安裝完成后點擊“OK” 用root用戶,運行以下腳本: /opt/app/oracle/oraInventory/orainstRoot.sh /opt/app/oracle/product/10.2.0/db_1/root.sh [root@xmydlinux]# /opt/app/oracle/oraInventory/orainstRoot.sh Changing permissions of /opt/app/oracle/oraInventory to 770. Changing groupname of /opt/app/oracle/oraInventory to oinstall. The execution of the script is complete [root@xmydlinux]# /opt/app/oracle/product/10.2.0/db_1/root.sh Running Oracle10 root.sh script… The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME=? /opt/app/oracle/product/10.2.0/db_1 Enter the full pathname of the local bin directory: [/usr/local/bin]: (此處直接回車,選擇默認的安裝目錄) Copying dbhome to /usr/local/bin … Copying oraenv to /usr/local/bin … Copying coraenv to /usr/local/bin … Creating /etc/oratab file… Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. 此時數據庫軟件的安裝完成。 3.創建數據庫 數據庫軟件安裝完成后還需要創建數據庫實例,在原來運行runInstall的終端中運行dbca命令,運行此命令后,將會在本地的xmanager-passive的顯示如下界面: 點擊“next”進行配置 選擇“create a database”進行創建數據庫,點擊“Next”進入下一步 勾選“Create Database”,點擊“Finish”進入下一步 選擇“General Purpose”,點擊“Next”,進入下一步, 輸入SID,此處輸入的SID應該與環境變量的中設置的SID一致,注意區分大小寫。點擊“Next”進入下一步, 點擊“Next”進入下一步 輸入密碼,點擊“Next”進入下一步 在存儲選項中選擇“File System”,點擊“Next”進入下一步 使用默認配置,點擊“Next”進入下一步 使用默認配置,點擊“Next”進入下一步 點擊“Next”進入下一步 在初始化參數設置中的選項卡中選擇“Sizing”,在Processes中填寫600 在字符集選項卡中,選擇字符集為“ZHS16FBK”,點擊“Next”進入下一步 使用默認值,點擊“Next”進入下一步 點擊“Finish”創建數據庫 點擊“OK”確認配置 建數據庫創建中…… 在sys和system賬號中輸入密碼,點擊“OK”至此數據庫安裝完成。 附:oracle 10g下載地址: Oracle Database 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Microsoft Windows (32-bit)
http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
http://download.oracle.com/otn/nt/oracle10g/10201/10201_client_win32.zip
http://download.oracle.com/otn/nt/oracle10g/10201/10201_clusterware_win32.zip
http://download.oracle.com/otn/nt/oracle10g/10201/10201_gateways_win32.zip OracleDatabase 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Microsoft Windows (x64) http://download.oracle.com/otn/nt/oracle10g/10201/102010_win64_x64_database.zip
http://download.oracle.com/otn/nt/oracle10g/10201/102010_win64_x64_client.zip
http://download.oracle.com/otn/nt/oracle10g/10201/102010_win64_x64_clusterware.zip OracleDatabase 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Linux x86 http://download.oracle.com/otn/linux/oracle10g/10201/10201_database_linux32.zip
http://download.oracle.com/otn/linux/oracle10g/10201/10201_client_linux32.zip
http://download.oracle.com/otn/linux/oracle10g/10201/10201_gateways_linux32.zip OracleDatabase 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Linux x86-64 http://download.oracle.com/otn/linux/oracle10g/10201/10201_database_linux_x86_64.cpio.gz
http://download.oracle.com/otn/linux/oracle10g/10201/10201_client_linux_x86_64.cpio.gz
http://download.oracle.com/otn/linux/oracle10g/10201/10201_clusterware_linux_x86_64.cpio.gz
http://download.oracle.com/otn/linux/oracle10g/10201/10201_gateways_linux_x86_64.cpio.gz OracleDatabase 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for AIX5L http://download.oracle.com/otn/aix/oracle10g/10201/10gr2_aix5l64_database.cpio.gz
http://download.oracle.com/otn/aix/oracle10g/10201/10gr2_aix5l64_client.cpio.gz
http://download.oracle.com/otn/aix/oracle10g/10201/10gr2_aix5l64_cluster.cpio.gz
http://download.oracle.com/otn/aix/oracle10g/10201/10gr2_aix5l64_gateways.cpio.gz OracleDatabase 10g Release 2 (10.2.0.2) Enterprise/Standard Edition for Solaris Operating System (x86) http://download.oracle.com/otn/solaris/oracle10g/10202/10202_database_solx86.zip
http://download.oracle.com/otn/solaris/oracle10g/10202/10202_client_solx86.zip
http://download.oracle.com/otn/solaris/oracle10g/10202/10202_clusterware_solx86.zip OracleDatabase 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Solaris Operating System (x86-64) http://download.oracle.com/otn/solaris/oracle10g/10201/x8664/10201_database_solx86_64.zip
http://download.oracle.com/otn/solaris/oracle10g/10201/x8664/10201_client_solx86_64.zip
http://download.oracle.com/otn/solaris/oracle10g/10201/x8664/10201_clusterware_solx86_64.zip

轉載于:https://www.cnblogs.com/huangjingzhou/articles/2140115.html

總結

以上是生活随笔為你收集整理的CentOS5.6环境安装oracle 10g(完整版)的全部內容,希望文章能夠幫你解決所遇到的問題。

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