redhat 安裝 Oracle 11g Linux
redhat 下安裝 Oracle 11g
安裝環境:
作業系統 Red Hat Enterprise Linux Server release 6.4 (Santiago) 64位
Oracle版本 11.2.0.3
安裝步驟:
1、檢查作業系統版本
Last login: Thu Jan 29 11:02:05 2015 from 10.100.116.83
[[email protected] ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
2、關閉selinux
[[email protected] ~]# vi /etc/selinux/conf
SELINUX=disabled
SELINUXTYPE=targeted
3、關閉iptable防火牆
[[email protected] ~]# service iptables status
iptables:未執行防火牆。
[[email protected] ~]# service ip6tables stop
ip6tables:清除防火牆規則:[確定]
ip6tables:將 chains 設定為 ACCEPT 策略:filter [確定]
:正在解除安裝模組:[確定]
[[email protected] ~]# service ip6tables save
[[email protected] ~]# chkconfig iptables off
[[email protected] ~]# chkconfig ip6tables off
4、建立oracle系統使用者
[[email protected] ~]# groupadd dba
[[email protected] ~]# groupadd oinstall
[[email protected] ~]# useradd -g oinstall -G dba oracle
[[email protected] ~]# id oracle
uid=501(oracle) gid=503(oinstall) 組=503(oinstall),502(dba)
[[email protected] ~]# passwd oracle
更改使用者 oracle 的密碼 。
新的 密碼:
無效的密碼: 它基於字典單詞
重新輸入新的 密碼:
passwd: 所有的身份驗證令牌已經成功更新。
5、修改系統引數檔案:
[[email protected] ~]# vi /etc/sysctl.conf
# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536
# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
fs.file-max=6815744
fs.aio-max-nr = 1048576
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
~
~
“/etc/sysctl.conf” 49L, 1406C written
[[email protected] ~]# sysctl -p –應用新的引數
6、修改etc/security/limits.conf 限制使用者對系統資源的使用
[[email protected] ~]# vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
“/etc/security/limits.conf” 56L, 2124C written
7、檢視檔案/etc/pam.d/login,確保寫入下列資訊
[[email protected] ~]# vi /etc/pam.d/login
session required pam_limits.so
“/etc/pam.d/login” 17L, 766C written
8、修改oracle安裝目錄的許可權,切換到oracle使用者,修改oracle環境變數
[[email protected] ~]# chown -R oracle:oinstall /app
[[email protected] ~]# chmod -R 775 /app
[[email protected]alhost ~]# su - oracle
[[email protected] ~]$ vi .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 PATH
ORACLE_BASE=/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
ORACLE_SID=ggdir
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH
~
~
“.bash_profile” 18L, 400C 已寫入
[[email protected] ~]$ source .bash_profile
9、檢查需要的包是否都已安裝,命令rpm -q 包名
[[email protected] ~]$ rpm -q binutils
binutils-2.20.51.0.2-5.36.el6.x86_64
[[email protected] ~]$ rpm -q elfutils-libelf
elfutils-libelf-0.152-1.el6.x86_64
[[email protected] ~]$ rpm -q gcc
gcc-4.4.7-3.el6.x86_64
[[email protected] ~]$ rpm -q gcc-c++
gcc-c++-4.4.7-3.el6.x86_64
[[email protected] ~]$ rpm -q glibc
glibc-2.12-1.107.el6.x86_64
glibc-2.12-1.107.el6.i686
[[email protected] ~]$ rpm -q glibc-common
glibc-common-2.12-1.107.el6.x86_64
[[email protected] ~]$ rpm -q glibc-devel
glibc-devel-2.12-1.107.el6.x86_64
[[email protected] ~]$ rpm -q glibc-headers
glibc-headers-2.12-1.107.el6.x86_64
[[email protected] ~]$ rpm -q libaio
libaio-0.3.107-10.el6.x86_64
[[email protected] ~]$ rpm -q libgcc
libgcc-4.4.7-3.el6.x86_64
libgcc-4.4.7-3.el6.i686
[[email protected] ~]$ rpm -q libstdc++
libstdc++-4.4.7-3.el6.x86_64
[[email protected] ~]$ rpm -q libstdc++-devel
libstdc++-devel-4.4.7-3.el6.x86_64
[[email protected] ~]$ rpm -q make
make-3.81-20.el6.x86_64
[[email protected] ~]$ rpm -q sysstat
sysstat-9.0.4-20.el6.x86_64
[[email protected] ~]$ rpm -q elfutils-libelf-devel
elfutils-libelf-devel-0.152-1.el6.x86_64
[[email protected] ~]$ rpm -q pdksh
pdksh-5.2.14-30.x86_64
[[email protected] ~]$ rpm -q unixODBC
unixODBC-2.2.14-12.el6_3.x86_64
[[email protected] ~]$ rpm -q unixODBC-devel
unixODBC-devel-2.2.14-12.el6_3.x86_64
[[email protected] ~]$ rpm -q libaio-devel
libaio-devel-0.3.107-10.el6.x86_64
[[email protected] ~]$ rpm -q compat-libstdc++-33
compat-libstdc++-33-3.2.3-69.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
10、上傳安裝檔案,並解壓
[[email protected] ~]$ cd /app/oracle
[[email protected] oracle]$ ls
p10404530_112030_Linux-x86-64_1of7.zip p10404530_112030_Linux-x86-64_2of7.zip
[[email protected] oracle]$ unzip p10404530_112030_Linux-x86-64_1of7.zip
[[email protected] oracle]$ unzip p10404530_112030_Linux-x86-64_2of7.zip
11、執行安裝檔案,安裝oracle軟體
[[email protected] oracle]
[[email protected] oracle]$ cd database
[[email protected] database]$ export DISPLAY=10.100.116
[[email protected] database]$ export DISPLAY=10.100.116.83:0.0(ip+:0.0)
[[email protected] database]$ xhost +
access control disabled, clients can connect from any host
[[email protected] database]$ export LANG=c
[[email protected] database]$ ./runInstaller
Starting Oracle Universal Installer…
Checking Temp space: must be greater than 120 MB. Actual 9416 MB Passed
Checking swap space: must be greater than 150 MB. Actual 8191 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-01-30_04-27-29PM. Please wait …[[email protected] database]$ You can find the log of this install session at:
/app/oraInventory/logs/installActions2015-01-30_04-27-29PM.log
12、安裝完成後,根據提示以root身份執行兩個指令碼
[[email protected] oraInventory]$ su - root
Password:
[[email protected] ~]# cd /app
[[email protected] app]# cd oraInventory
[[email protected] oraInventory]# ./orainstRoot.sh
Changing permissions of /app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /app/oraInventory to oinstall.
The execution of the script is complete.
[[email protected] oraInventory]# cd $ORACLE_HOME
[[email protected] ~]# cd /app/oracle
[[email protected] oracle]# cd product
[[email protected] product]# cd 11.2.0
[[email protected] 11.2.0]# cd dbhome_1
[[email protected] dbhome_1]# ./root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /app/oracle/product/11.2.0/dbhome_1
Enter the full pathname of the local bin directory: [/usr/local/bin]: /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 script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
[[email protected] dbhome_1]# exit
13、切換oracle使用者,呼叫DBCA建立資料庫
[[email protected] oraInventory]$ cd
[[email protected] ~]$ export LANG=c
[[email protected] ~]$ export DISPLAY=10.100.116.83:0.0
[[email protected] ~]$ xhost +
access control disabled, clients can connect from any host
[[email protected] ~]$ dbca
14、呼叫netca配置監聽
[[email protected] ~]$ netca
Oracle Net Services Configuration:
Configuring Listener:LISTENER
Listener configuration complete.
Oracle Net Listener Startup:
Running Listener Control:
/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start LISTENER
Listener Control complete.
Listener started successfully.
Profile configuration complete.
Default local naming configuration complete.
Created net service name: ggdir
Oracle Net Services configuration successful. The exit code is 0
[[email protected] ~]$ lsnrctl status
相關推薦
redhat 安裝 Oracle 11g Linux
redhat 下安裝 Oracle 11g 安裝環境: 作業系統 Red Hat Enterprise Linux Server release 6.4 (Santiago) 64位 Oracle版本 11.2.0.3 安裝步驟: 1、檢查作業系統版
Redhat 6.1 配置Linux multipath安裝oracle 11g rac
一、安裝配置儲存節點(略) 二、資料庫節點連線儲存節點 2.1、資料庫節點安裝ISCSI啟動器 yum install iscsi* 2.2、配置啟動器 vim /etc/iscsi/initiatorname.iscsi 2.3、發起連線 # iscsiadm
一步一步教你在redhat linux 下安裝oracle 11g grid + database
給想學習oracle的新手看看,老鳥請飄過 作業系統資訊: Vbox虛擬機器軟體版本: 安裝所需要的軟體: 所需軟體下載地址: http://pan.baidu.com/s/1mgl8kzu具體安裝步驟: 一、新建虛擬機器,並安裝redhat5.4作業系統(64位)
Linux Redhat 7 完美刪除/解除安裝Oracle 11g
一、關閉oracle服務和後臺程序 1.檢視安裝的主目錄和環境變數:echo $ORACLE_HOME env | grep ORA2.檢視例項名sqlplus / as sysdba select
Linux(CentOS6_64位)下安裝Oracle 11g
用戶組 root images img roo bsp 最小化安裝 inux .sh 前提: 1、請務必在win下安裝Oracle至少5遍。 2、請務必掌握基本的Linux命令。 準備好Oracle linux64位安裝包(官方下載2個壓縮文件)準備好虛擬機VMware
Linux靜默安裝Oracle 11g教程
CentOS7 Oracle 11g 準備工作 在電腦中下載 linux.x64_11gR2_database_1of2.zip 和 linux.x64_11gR2_database_2of2.ziphttp://download.oracle.com/otn/linux/oracle11g/R2/l
Linux安裝Oracle 11g的到時候報Exception in thread "main" java.lang.NoClassDefFoundError .
CentOS6.5 靜默安裝Oracle 11G過程中提示:Exception in thread “main” java.lang.NoClassDefFoundError . 在執行./runInstaller -silent -force -noconfig -responseFile
Linux下解除安裝Oracle 11g
第一種方法: 使用oracle自帶的runInstaller 解除安裝 [[email protected]_0_14_centos deinstall]$ cd $ORACLE_HOME [[email protected]_0_14_centos 11.2.0]$ cd dei
Linux/Centos 解決安裝oracle-11g資料庫無法遠端呼叫圖形化安裝介面的辦法
解決遠端無法呼叫圖形安裝的問題遠端安裝oracle-11g資料庫無法呼叫圖形化解決辦法,錯誤如下圖:解決方法:切換到root使用者,執行命令:#xdpyinfo | grep local //結果如下圖 過濾出來是localhost:11.0如果沒有這個命令,需要用yum安
Oracle Linux 6.4安裝Oracle 11g R2+RAC+ASM圖文詳解
安裝Oracle RAC 打補丁到最新版本 完成安裝後的除錯三、詳細安裝過程及說明(參考官方文件)1.通過SecureCRT或TerminalX建立命令列連線。2.在每一個節點上新增安裝Oracle Grid的使用者、組和家目錄,並設定許可權。 # /usr/sbin/groupad
UNIX/Linux基於docker安裝Oracle 11g express資料庫
第一步 用包管理器安裝Docker平臺 下文的格式為 作業系統 : 安裝命令 安裝視訊 : 點選檢視 Linux(需使用ROOT許可權) archlinux/manjaro :
Linux 安裝 Oracle 11g——靜默建立資料庫(RAC)
dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbName orcl -sid orcl -sysPassword
Linux環境下安裝Oracle 11g
安裝前配置 p13390677_112040_Linux-x86-64_1of7.zip p13390677_112040_Linux-x86-64_2of7.zip 解決sqlplus下亂碼問題的安裝包: rlwrap-0.42-1.el7.x86_6
oracle 11g linux命令列靜默安裝
以前安裝資料庫一直都是用的圖形化介面,最近在生產linux上因為某些原因無法使用圖形化安裝,因此萌生了靜默安裝的想法,這樣不用依賴圖形化的懶人操作介面,也算是一個額外的收穫,安裝步驟如下: 系統 oracl
Linux 安裝 Oracle 11g——靜默安裝 Database(RAC)
內容:# 預設oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0 # 只安裝軟體oracle.install.option=INSTALL_DB_SWONLY # 本地主機名OR
Linux 安裝 Oracle 11g——手工建庫(RAC)
建立目錄mkdir -p /u01/app/oracle/admin/orcl/adump編輯引數檔案*.memory_target=512m*.audit_file_dest='/u01/ap
ORACLE 11G LINUX 64 位版 安裝中缺少必要包的解決方法(詳細)
oracle安裝過程中有缺少包的檢測,以下實踐檢測:os:linux redhat 6.6 64位libaio-0.3.105:os自帶libaio-0.3.107-10.el6.x86_64.rpm:rpm -ivh libaio-0.3.107-10.el6.x86_64
在linux環境下靜默安裝oracle 11g後設置自動啟動
要讓oracle隨linux啟動而啟動,需要設定以下五個地方:1、修改/etc/oratab# Entries are of the form: # $ORACLE_SID:$ORACLE_HOME:<N|Y>: # # The first and secon
Linux 下 解除安裝oracle 11g
1.使用SQL*PLUS停止資料庫 [[email protected] oracle]$ sqlplus log SQL> connect / as sysdba SQL> shutdown [immediate] SQ