安裝環(huán)境: redhat5.5 VirtualBox4.3.12 oracle10g
成都創(chuàng)新互聯(lián)是專業(yè)的略陽網(wǎng)站建設(shè)公司,略陽接單;提供成都網(wǎng)站設(shè)計、成都網(wǎng)站建設(shè),網(wǎng)頁設(shè)計,網(wǎng)站設(shè)計,建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進行略陽網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團隊,希望更多企業(yè)前來合作!
在虛擬機環(huán)境下,直接安裝的是帶圖形界面redhat5.5-server,便于后來方面安裝oracle
一 安裝部分
1. 安裝前的包檢查
采用iso光盤掛載作為 yum源安裝
[rhel-server] name=local server baseurl=file:///mnt/cdrom/Server //掛載光盤文件為yum源 enabled=1 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
安裝如下的包,注意版本號和包依賴
binutils-2* elfutils-libelf-0* elfutils-libelf-devel-0* elfutils-libelf-devel-static-0* setarch-2* make-3* glibc-2* glibc-devel-2* glibc-common-2* glibc-header-* libaio-0* libaio-devel-0* compat-libstdc++-33-3* kernel-headers-* ksh-* compat-gcc-34-3* compat-gcc-34-c++-3* libgcc-4* libstdc++-4* libstdc++-devel-4* libgomp-4* gcc-4* gcc-c++-4* libXp-1* libXt openmotif22-* compat-db-4* sysstat-7* unixODBC-2* unixODBC-devel-2* rpm -q binutils elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static setarch make glibc glibc-devel glibc-common glibc-headers libaio libaio-devel compat-libstdc++-33 kernel-headers ksh compat-gcc-34 compat-gcc-34-c++ libgcc libstdc++ libstdc++-devel libgomp gcc gcc-c++ libXp libXt openmotif compat-db sysstat unixODBC unixODBC-devel
2.修改系統(tǒng)參數(shù)
內(nèi)核參數(shù) /etc/sysctl.conf
kernel.shmall = 2097152 kernel.shmmax = 2147483648 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 使參數(shù)生效
關(guān)閉seLinux /etc/selinux/config
SELINUX=disabled
oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536
oracle10g 只支持到了redhat-4, 修改/etc/redhat-release
redhat-4
3. 創(chuàng)建Oracle用戶組 及目錄
groupadd -g 500 dba groupadd -g 501 oinstall useradd -g oinstall -G dba -s /bin/bash -u 501 oracle passwd oracle mkdir -p /oracle/app/oracle/product/10.2/db_1 chown -R oracle:oinstall /oracle chmod -R 775 /oracle
4. 修改oracle用戶 .bash_profile
export ORACLE_BASE=/oracle/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1 export ORACLE_SID=bi4db export PATH=$PATH:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib export CLASSPATH
5.解壓安裝
unzip 10201_database_linux64.zip ./runInstaller // 遇到?jīng)]有執(zhí)行權(quán)限文件 chmod +x xxx



二、進程啟動
1.oracle監(jiān)聽器listener
lsnrctl start lsnrctl stop /oracle/app/oracle/product/10.2/db_1/bin/tnslsnr LISTENER -inherit
2.oracle OEM啟動
emctl start dbconsole emctl stop dbconsole http://192.168.30.6:1158/em sys/pwd sysdba登陸
3.isql*plus的啟動
isqlplusctl start isqlplusctl stop
4. 數(shù)據(jù)庫啟動停止
[oracle@dbtest 10201_database_linux64]$ sqlplus SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 26 14:54:36 2014 Copyright (c) 1982, 2005, Oracle. All rights reserved. Enter user-name: / as sysdba Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production With the Partitioning, OLAP and Data Mining options SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. SQL> startup ORACLE instance started. Total System Global Area 444596224 bytes Fixed Size 2021408 bytes Variable Size 138414048 bytes Database Buffers 297795584 bytes Redo Buffers 6365184 bytes Database mounted. Database opened. SQL>
三、測試scott/tiger
解鎖scott用戶,登陸測試
SQL> conn scott; Enter password: ERROR: ORA-28000: the account is locked SQL> conn system; Enter password: Connected. SQL> SQL> alter user scott account unlock; User altered. SQL> show user; USER is "SCOTT"
網(wǎng)站標題:Redhat5安裝oracle10g啟動測試
分享網(wǎng)址:http://chinadenli.net/article16/ppdcgg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制開發(fā)、做網(wǎng)站、電子商務(wù)、外貿(mào)網(wǎng)站建設(shè)、響應(yīng)式網(wǎng)站、標簽優(yōu)化
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)