自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

CentOS Oracle安裝必要的軟件創(chuàng)建數(shù)據(jù)庫

系統(tǒng) Linux
CentOS Oracle安裝創(chuàng)建數(shù)據(jù)庫[oracle@oracle]$dbca &啟動(dòng)數(shù)據(jù)庫代理,填寫必要的參數(shù),創(chuàng)建數(shù)據(jù)。

CentOS Oracle安裝系統(tǒng)的特性,既可作為高校計(jì)算機(jī)專業(yè)CentOS Oracle安裝學(xué)習(xí),也可以作為CentOS系統(tǒng)開源愛好者、CentOS系統(tǒng)用戶的學(xué)習(xí)。CentOS社區(qū)的Linux發(fā)行版本被稱為CentOS Linux,由于使用了由RHEL的源代碼重新編譯生成新的發(fā)行版本,CentOS Linux具有與RHEL產(chǎn)品非常好的兼容性CentOS Oracle安裝升級(jí)。

redhat.com發(fā)布redhat 9簡寫為rh9)后,不再開發(fā)redhat 10,11...,全面轉(zhuǎn)向redhat enterprise linux(簡寫為rhel)的開發(fā),和以往不同的是,新的rhel 3要求用戶先購買lisence,redhat.com承諾保證產(chǎn)品的穩(wěn)定性,安全性。rhel 3二進(jìn)制代碼不再提供下載,而是作為redhat 服務(wù)的一部分,但源代碼依然是open。所以有了centos ,whitebox,dao 等等一批open source的企業(yè)版本,其中centos最為活躍。rh9為作rhel3基礎(chǔ)和rhel3 ,centos是同氣連枝的,軟件包版本幾乎是一致的。
安裝方案:先安裝基本數(shù)據(jù)庫軟件,然后升級(jí),最后創(chuàng)建數(shù)據(jù)庫。直接安裝,在最后創(chuàng)建數(shù)據(jù)庫時(shí)后出現(xiàn)agent錯(cuò)誤,導(dǎo)致數(shù)據(jù)庫失敗,當(dāng)然要安裝成功,可以通過一些patch解決,這些patch,和方法都可以在www.itpub.net上找到。
oracle 9i是個(gè)大塊頭,建議準(zhǔn)備5G以上分區(qū),我/opt/分區(qū)為4.0G,在創(chuàng)建數(shù)據(jù)時(shí),空間不夠,所以將數(shù)據(jù)庫文件放在/var/opt/oracle下面。

1.CentOS Oracle安裝安裝前的準(zhǔn)備
1.1.調(diào)整系統(tǒng)參數(shù)(可選)
添加以下幾行到 /etc/sysctl.conf末尾:
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 128 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
添加以下幾行到/etc/security/limits.conf末尾:
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
[hantsy@hantsy]$ sudo echo 250 32000 100 128 > /proc/sys/kernel/sem
[hantsy@hantsy]$ sudo echo 536870912 > /proc/sys/kernel/shmmax
[hantsy@hantsy]$ sudo echo 4096 > /proc/sys/kernel/shmmni
[hantsy@hantsy]$ sudo echo 2097152 > /proc/sys/kernel/shmall
[hantsy@hantsy]$ sudo echo 65536 > /proc/sys/fs/file-max
[hantsy@hantsy]$ sudo echo 1024 65000 > /proc/sys/net/iv4ip_local_port_range

1.2 CentOS Oracle安裝必要的軟件
使用 apt或yum安裝下面的軟件,參見http://ayo.freshrpms.net.
nss_db-compat-2.2-20.4
compat-libstdc++-7.3-2.96.128
compat-libgcj-devel-7.3-2.96.123
compat-slang-1.4.5-5
compat-gcc-c++-7.3-2.96.128
compat-libgcj-7.3-2.96.123
compat-libstdc++-devel-7.3-2.96.128
compat-gcc-7.3-2.96.128
compat-db-4.0.14-5.1
compat-pwdb-0.62-3
pdksh
調(diào)整gcc,將gcc改成2.96的gcc
mv /usr/bin/gcc /usr/bin/gcc32
mv /usr/bin/g++ /usr/bin/g++32
ln -s /usr/bin/gcc296 /usr/bin/gcc
ln -s /usr/bin/g++296 /usr/bin/g++

1.3 新建CentOS Oracle安裝用戶和安裝目錄
[hantsy@hantsy]$sudo groupadd oinstall
[hantsy@hantsy]$sudo groupadd dba
[hantsy@hantsy]$sudo mkdir -p /opt/oracle/product/9.2
創(chuàng)建數(shù)據(jù)庫目錄,可選,如果安裝目錄空間足夠大,不必另建。
[hantsy@hantsy]$sudo mkdir -p /var/opt/oracle
[hantsy@hantsy]$sudo useradd -g oinstall -G dba -d /opt/oracle -uid 1001 oracle
[hantsy@hantsy]$sudo passwd oracle
[hantsy@hantsy]$sudo chown oracle.oinstall /var/opt/oracle
[hantsy@hantsy]$sudo chown -R oracle.oinstall /opt/oracle
以oracle用戶登錄寫入環(huán)境變量。
[hantsy@hantsy]$su - oracle
Password:
[oracle@oracle]$pwd
/opt/oracle
使用你喜歡的CentOS Oracle安裝編輯器編輯.bashrc
[oracle@oracle]$ .bashrc
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
#set oracle enviroments
export LD_ASSUME_KERNEL=2.4.1
export THREADS_FLAG=native
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2
export ORACLE_SID=oralin
export ORACLE_OWNER=oracle
#export NLS_LANG=AMERICAN_AMERICA.UTF8;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$ORACLE_HOME/network/lib

1.4 下載CentOS Oracle安裝安裝文件,可以從http://mirrors.cn99.com上下載。
p3948480_9206_LINUX.zip
ship_9204_linux_disk1.cpio.gz
ship_9204_linux_disk2.cpio.gz
ship_9204_linux_disk3.cpio.gz
p3006854_9204_LINUX.zip
此patch可以從www.itpub.com上找到。

2.CentOS Oracle安裝
2.1 打patch,解壓安裝文件。
[hantsy@hantsy]$sudo unzip p3006854_9204_LINUX.zip
[hantsy@hantsy]$sudo cd 3006854
[hantsy@hantsy]$sudo sh rhel3_pre_install.sh
依次解壓幾個(gè)文件:
[hantsy@hantsy]$sudo gunzip .cpio.gz
[hantsy@hantsy]$sudo cpio -idmv < .cpio
得到Disk1,Disk2,Disk3三個(gè)目錄。

2.2 開始安裝,這時(shí)不要建新數(shù)據(jù)庫。
[hantsy@hantsy]$sudo xhost +
切換到oracle用戶。
[hantsy@hantsy]$su - oracle
Password:
[oracle@oracle]$cd /Disk1
[oracle@oracle]$./runInstaller&
啟動(dòng)CentOS Oracle安裝程序,在選擇安裝類型時(shí)選擇"Software Only",結(jié)束安裝。
升級(jí)到9.2.0.6,執(zhí)行此步驟之前請(qǐng)修改/etc/redhat-release,rhel 3不必修改,新的補(bǔ)丁安裝程序和oracle 10的一樣會(huì)檢測(cè)系統(tǒng)。
確保其內(nèi)容如下:
Red Hat Enterprise Linux AS release 3 (Taroon)
進(jìn)入9026安裝程序目錄,
[oracle@oracle]$./runInstaller&
選擇安裝 "Oracle Universal Installer"。
安裝完畢,重新啟動(dòng)安裝程序。
選擇安裝 "Oracle9iR2 Patch Set"。

2.3 CentOS Oracle安裝創(chuàng)建數(shù)據(jù)庫
[oracle@oracle]$dbca &
啟動(dòng)數(shù)據(jù)庫代理,填寫必要的參數(shù),創(chuàng)建數(shù)據(jù)。
也可以預(yù)先指定參數(shù)。
[oracle@oracle]$`dbca -createDatabase -templateName New_Database.dbt
-gdbName oralin.localhost -datafileD
estination /var/opt/oralce/oradata/ -sid
oralin` &
如果不想啟動(dòng)圖形,可以追加上-silent參數(shù)。

3 CentOS Oracle安裝后的處理
3.1 創(chuàng)建啟動(dòng)服務(wù)程序
如果***沒有***進(jìn)行1.1步,可以從gurulabs(http://www.gurulabs.com/)下載rpm包。
wget -c http://www.gurulabs.com/files/oraclerun9i-1.4-1.noarch.rpm
[hantsy@hantsy]$sudo rpm -ivh oraclerun9i-1.4-1.noarch.rpm
它提供了幾個(gè)文件:
[hantsy@hantsy]$sudo rpm -ql oraclerun9i
/etc/init.d/oracle
/etc/profile.d/oracle.csh
/etc/profile.d/oracle.sh
/etc/sysconfig/oracle
/usr/share/doc/oraclerun9i-1.4/INSTALL

修改/etc/profile.d/oracle.sh,設(shè)置$ORACLE_HOME,$ORACLE_SID,$ORACLE_BASE。
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2
export ORACLE_SID=oralin

修改/etc/sysconfig/oracle,將START_ORALCE改成"yes"。
修改/etc/oratab,將N改成Y。
調(diào)整系統(tǒng)參數(shù):
[hantsy@hantsy]$sudo /etc/init.d/oracle tunekernel
啟動(dòng)數(shù)據(jù)庫:
[hantsy@hantsy]$sudo /etc/init.d/oracle start
關(guān)閉數(shù)據(jù)庫:
[hantsy@hantsy]$sudo /etc/init.d/oracle stop
如果執(zhí)行了1.1步,自己手寫一個(gè)shell(/etc/init.d/oracle)就行了,內(nèi)容如下
#!/bin/sh
# chkconfig: - 20 80
#
# description: Oracle auto start-stop script.
# Set ORA_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
#
# Set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME.
ORA_HOME=/opt/oracle/product/9.2
ORA_OWNER=oracle
if [! -f $ORA_HOME/bin/dbstart]
then
echo "Oracle startup: cannot start"
exit
fi
case "" in
'start')
# Start the Oracle databases
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c $ORA_HOME/bin/lsnrctl start
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c $ORA_HOME/bin/dbshut
su - $ORA_OWNER -c $ORA_HOME/bin/lsnrctl stop
;;
esac

3.2 還原gcc的鏈接
[hantsy@hantsy]$sudo rm /usr/bin/gcc
[hantsy@hantsy]$sudo rm /usr/bin/g++
[hantsy@hantsy]$sudo mv /usr/bin/g++32 /usr/bin/g++
[hantsy@hantsy]$sudo mv /usr/bin/gcc32 /usr/bin/gcc

參考資料:
1.http://www.itpub.net
2.中國oracle用戶組 http://www.cnoug.org
3.Installing Oracle 9i R2 (9.2.0.1.0) on Red Hat 9
http://www.chinalinuxpub.com/read.htm?id=1331
4.Guru labs
http://www.gurulabs.com/oracle-linux.html
5.Oracle9i Release Notes Release 2 (9.2.0.4.0) for Linux x86
http://download-west.oracle.com/docs/html/B13670_03/toc.htm

【編輯推薦】

  1. centos bind安裝系統(tǒng)與編輯軟件
  2. MySQL CentOS系統(tǒng)管理文件安裝
  3. 深入講解CentOS Apache編譯和安裝
  4. CentOS Mysql用戶建立設(shè)置編譯器的編譯參數(shù)
  5. 詳細(xì)介紹CentOS emesene使用系統(tǒng)編譯安裝
責(zé)任編輯:佚名 來源: CSDN
相關(guān)推薦

2010-04-28 16:37:31

Oracle數(shù)據(jù)字典

2010-03-31 15:23:43

Oracle數(shù)據(jù)庫軟件

2010-05-06 09:30:16

Oracle創(chuàng)建數(shù)據(jù)庫

2010-02-03 16:16:49

Linux Oracl

2015-07-23 17:02:55

oracle創(chuàng)建數(shù)據(jù)庫

2011-04-11 13:19:41

Oracle數(shù)據(jù)庫

2010-11-19 10:38:26

Oracle XE自帶

2011-08-16 19:11:15

Oracle數(shù)據(jù)庫創(chuàng)建Schema

2011-08-09 14:54:01

OracleDATABASE LI

2011-08-02 17:06:29

Oracle遠(yuǎn)程數(shù)據(jù)庫創(chuàng)建DB Link

2010-04-02 17:11:45

Oracle數(shù)據(jù)庫

2010-05-04 14:20:47

Oracle創(chuàng)建數(shù)據(jù)庫

2010-01-14 10:08:01

CentOS5.3安裝

2010-04-13 17:22:31

2009-06-11 13:12:59

Oracle索引創(chuàng)建索引

2010-04-07 09:54:08

Oracle數(shù)據(jù)庫

2010-02-24 09:47:25

Oracle手動(dòng)創(chuàng)建數(shù)

2009-04-20 14:29:41

Oracle連接創(chuàng)建連接

2011-08-18 18:34:00

Oracle數(shù)據(jù)庫創(chuàng)建自增字段

2010-04-23 09:23:44

Oracle 數(shù)據(jù)庫
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)