linux 下oracle的安裝
1.安裝必須的軟體
2.建立相關的組和使用者
需要建立3個作業系統組,分別為OSDBA,OSOPER和ORAINVENTORY(oracle清單組)。OSDBA組的預設名是dba,OSOPER組的為oper,而ORAINVENTORY組的為oinstall。
OSDBA(dba)組的成員具有Oracle資料庫許可權SYSDBA,這允許執行諸如啟動和關閉資料庫等授權活動。ORAINVENTORY組(oinstall)是第一次在伺服器上安裝Oracle軟體時必須建立的組。Oracle清單組擁有所有Oracle清單,Oracle清單是安裝在一個伺服器上的所有Oracle軟體的一個目錄。所有新的安裝和升級都由屬於ORAINVENTORY組的使用者執行。
OSOPER(oper)組是可選的,只在打算授予任意使用者Oracle許可權OSOPER以執行受到限制的一組任務(如倒退資料庫)時建立它。具有OSOPER許可權的所有資料庫使用者在OS層都是OSOPER組的成員。
注:屬於OSOPER組的使用者必須只能在ORAINVENTORY目錄上給予讀寫和執行許可權。對於其他目錄,這個組不應該給予寫許可權。
Oracle安裝程式在第一次安裝oracle時建立oraInst.loc檔案。此檔案告訴你Oracle清單組的名稱和清單目錄的路徑。使用 more /etc/oraInst.loc命令可以檢視檔案是否存在。如果檔案存在,則會有如下顯示
inventory_loc=/u01/app/oracle/oraInventory
inst_group=oinstall
此時就不必建立Oracle清單組了。
# /usr/sbin/groupadd dba
# /usr/sbin/groupadd oper
3.建立相關的目錄並設定目錄的許可權
4.修改系統引數
使用以下命令
# mv /etc/sysctl.conf /etc/sysctl.conf.old
新增以下行到/etc/sysctl.conf
kernel.shmall=2097152
kernel.shmmax=2147483648 /*or half the size of physical memory,in byte
kernel.shmmni=4096
kernel.sem=250 32000 100 128
fs.file-max=65536
net.ipv4.ip_local_port_range=1024 65000
修改引數後,需要重啟系統
5.更改shell限制
oracle建議對每個Linux帳號可使用的程式和開啟檔案數目設定限制。為提高Linux系統上的Oracle軟體的效能,系統管理員必須新增如下的行到/etc/security/limits.conf檔案,以增加對Oracle使用者的shell限制
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
還要將下面的內容新增到/etc/pam.d/login檔案
session required /lib/security/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
2.建立相關的組和使用者
需要建立3個作業系統組,分別為OSDBA,OSOPER和ORAINVENTORY(oracle清單組)。OSDBA組的預設名是dba,OSOPER組的為oper,而ORAINVENTORY組的為oinstall。
OSDBA(dba)組的成員具有Oracle資料庫許可權SYSDBA,這允許執行諸如啟動和關閉資料庫等授權活動。ORAINVENTORY組(oinstall)是第一次在伺服器上安裝Oracle軟體時必須建立的組。Oracle清單組擁有所有Oracle清單,Oracle清單是安裝在一個伺服器上的所有Oracle軟體的一個目錄。所有新的安裝和升級都由屬於ORAINVENTORY組的使用者執行。
OSOPER(oper)組是可選的,只在打算授予任意使用者Oracle許可權OSOPER以執行受到限制的一組任務(如倒退資料庫)時建立它。具有OSOPER許可權的所有資料庫使用者在OS層都是OSOPER組的成員。
注:屬於OSOPER組的使用者必須只能在ORAINVENTORY目錄上給予讀寫和執行許可權。對於其他目錄,這個組不應該給予寫許可權。
- 建立Oracle清單組
Oracle安裝程式在第一次安裝oracle時建立oraInst.loc檔案。此檔案告訴你Oracle清單組的名稱和清單目錄的路徑。使用 more /etc/oraInst.loc命令可以檢視檔案是否存在。如果檔案存在,則會有如下顯示
inventory_loc=/u01/app/oracle/oraInventory
inst_group=oinstall
此時就不必建立Oracle清單組了。
- 建立OSDBA組
# /usr/sbin/groupadd dba
- 建立OSOPER組
# /usr/sbin/groupadd oper
3.建立相關的目錄並設定目錄的許可權
4.修改系統引數
使用以下命令
# mv /etc/sysctl.conf /etc/sysctl.conf.old
新增以下行到/etc/sysctl.conf
kernel.shmall=2097152
kernel.shmmax=2147483648 /*or half the size of physical memory,in byte
kernel.shmmni=4096
kernel.sem=250 32000 100 128
fs.file-max=65536
net.ipv4.ip_local_port_range=1024 65000
修改引數後,需要重啟系統
5.更改shell限制
oracle建議對每個Linux帳號可使用的程式和開啟檔案數目設定限制。為提高Linux系統上的Oracle軟體的效能,系統管理員必須新增如下的行到/etc/security/limits.conf檔案,以增加對Oracle使用者的shell限制
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
還要將下面的內容新增到/etc/pam.d/login檔案
session required /lib/security/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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7899089/viewspace-621931/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux 下 sysben for oracle 的安裝LinuxOracle
- linux下解除安裝oracleLinuxOracle
- linux下安裝oracle需要的配置LinuxOracle
- Oracle BIEE在linux下的安裝OracleLinux
- 在linux下安裝oracle bbedLinuxOracle
- Oracle Secure Backup在Linux下的安裝OracleLinux
- Linux下的oracle終於安裝成功LinuxOracle
- ORACLE在linux下的安裝步驟OracleLinux
- linux下oracle資料庫的安裝LinuxOracle資料庫
- 水煮oracle十六——《linux下oracle9i的安裝OracleLinux
- Oracle Linux 7.5下載和安裝OracleLinux
- linux下安裝oracle10gLinuxOracle
- linux下安裝oracle 11gLinuxOracle
- Linux as 4.0 下安裝Oracle 10.2.0.1LinuxOracle
- Linux 下安裝Oracle10gLinuxOracle
- Linux下Oracle安裝寶典 (轉)LinuxOracle
- Linux平臺下解除安裝ORACLELinuxOracle
- Linux下通過VNC安裝OracleLinuxVNCOracle
- linux下安裝oracle 10gLinuxOracle 10g
- Linux下Oracle安裝寶典(轉)LinuxOracle
- Oracle在Linux下的安裝,檔案目錄OracleLinux
- oracle10g在linux下的安裝OracleLinux
- LINUX下安裝oracle的java字型問題LinuxOracleJava
- Linux AS3 下安裝oracle的過程LinuxS3Oracle
- Windows下的Memcache安裝 linux下的Memcache安裝WindowsLinux
- Oracle——Linux的安裝OracleLinux
- oracle11gR2在Oracle Linux 6.0下的安裝OracleLinux
- Maven的安裝/2.2 Linux下的安裝MavenLinux
- Linux下安裝Oracle的一般步驟LinuxOracle
- LINUX 下安裝ORACLE的幾個小問題LinuxOracle
- Linux 下安裝oracle 資料庫的準備LinuxOracle資料庫
- 在Linux下安裝Oracle 10g的方法LinuxOracle 10g
- 在Oracle Linux 6.6下安裝Oracle 11gOracleLinux
- oracle linux 下安裝oracle 11g問題OracleLinux
- Linux下Oracle安裝寶典 oracle8.1.6 (轉)LinuxOracle
- 【解除安裝】在LINUX/UNIX環境下解除安裝Oracle的OLAP元件LinuxOracle元件
- ORACLE ENTERPRISE LINUX 下安裝rlwrapOracleLinux
- Linux AS3.0 下安裝Oracle9.2.0.4LinuxS3Oracle