linux下oracle安裝_第1頁(yè)
linux下oracle安裝_第2頁(yè)
已閱讀5頁(yè),還剩4頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、封面作者:PanHongliang僅供個(gè)人學(xué)習(xí)1. linux 系統(tǒng)配置vim /etc/selinux/configSELINUX=permissive network setup files (redhat fc 4)2. 網(wǎng)絡(luò)配置/etc/hosts增加10.130.16.34hp6120-001 /etc/sysconfig/network NETWORKING=yesHOSTNAME=hp6120-001 /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0HWADDR=00:0C:29:D0:23:80 ONBOOT=yesTY

2、PE=EthernetNETMASK=255.255.255.0IPADDR=192.168.70.3GATEWAY=192.168.70.2vim /etc/resolv.conf nameserver 10.130.1.1(dns) search 202.106.196.115(域名服務(wù))3. oracle 動(dòng)態(tài)庫(kù)binutils, compat-db, control-center, gcc, gcc-c+, glibc, glibc-common,6.gnome-libs,libstdc+,libstdc+-devel,make,pdksh(可能會(huì)和已安裝地ksh沖突,使用rpm -e

3、 ksh來(lái)卸載掉ksh,再次安裝即可)sysstat,xscreensaver,安裝完需要進(jìn)行一下操作(使用root用戶(hù)):ln -s /lib/libc.so.6 /lib/libc.so.5ln -s /usr/lib/libstdc+.so.6 /usr/lib/libstdc+.so.5編輯vim /etc/ld.so.conf有以下內(nèi)容include ld.so.conf.d/*.conf /usr/X11R6/lib/groupadd oinstall groupadd dba useradd -goinstall -G dba oraclepasswd oracle/oracle

4、su -oracle mkdir db_home /作為建oracle實(shí)例用地目錄mkdir oracle10g /oracle安裝目錄vim /etc/sysctl.conf增加:kernel.shmall = 2097152kernel.shmmax = 21474836484.kernel.shmmni = 4096kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 1048576 net.core.rmem_

5、max = 1048576 net.core.wmem_default = 262144net.core.wmem_max = 262144參數(shù)值做個(gè)簡(jiǎn)要地解釋和說(shuō)明.(1)shmmax:該參數(shù)定義了共享內(nèi)存段地最大尺寸(以字節(jié)為單位).缺省為32M,對(duì)于oracle來(lái)說(shuō),該缺省值太低了,通常將其設(shè)置 為2G(2)shmmni: 這個(gè)內(nèi)核參數(shù)用于設(shè)置系統(tǒng)范圍內(nèi)共享內(nèi)存段地最大數(shù)量.該參數(shù)地默認(rèn)值是4096 .通 常 不 需 要更改.(3)shmall:該參數(shù)表示系統(tǒng)一次可以使用地共享內(nèi)存總量(以頁(yè)為單位).缺省值就是2097152,通常不需要修改.(4)sem: 該 參 數(shù) 表 示 設(shè) 置 地

6、信號(hào)量.(5)file-max:該參數(shù)表示文件句柄地最大數(shù)量.文件句柄設(shè)置表示在linux系統(tǒng)中可以打開(kāi)地文件數(shù)量7.調(diào)整 oracle 使用者地環(huán)境限制vim /etc/security/limits.conf增加* soft nproc 2047* hard nproc 16384* soft nofile 1024* hard nofile 65536vim /etc/pam.d/login增加session required /lib/security/pam_limits.sosession required pam_limits.so. 檢查 /tmp 空間確保至少400M df

7、/tmp.重啟機(jī)器9. 設(shè)置環(huán)境變量su - oraclevim .bash_profile增加export ORACLE_BASE=/home/oracle/oracle10g export ORACLE_SID=dbtestexport ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1export PATH=$ORACLE_HOME/bin:$PA THexport LD_LIBRARY_PA TH=$ORACLE_HOME/lib:/usr/libexport LC_CTYPE=en_US.UTF-8生效環(huán)境變量:. .bash_profile或者

8、source .bash_profile10. 準(zhǔn)備安裝文件unzip /home/oracle/tools/10201_database_linux32.zip11. 安裝 oracle如果通過(guò)遠(yuǎn)程安裝oracle需要在root用戶(hù)下運(yùn)行vncserver然后運(yùn)行xhost +本地安裝直接xhost +su -oracle先解壓安裝文件包,安裝時(shí)忽略版本檢查:./runInstaller -ignoreSysPreReqs在root用戶(hù)環(huán)境下執(zhí)行安裝程序給出地腳本/home/oracle/oracle10g/oraInventory/orainstRoot.sh/home/oracle/or

9、acle10g/product/10.2.0/db_1/root.sh完成Isql*Plus URLIsql*Plus DBA URLEnterprise Managere 10g Database Control URL:12. 建立數(shù)據(jù)庫(kù)su -oracledbca13. 啟動(dòng)服務(wù)Sqlplus /nologConn /as sysdbaStartupExitLsnrctl start14. 創(chuàng)建表空間CREATE TABLESPACE use39 DATAFILE /home/oracle/oracle10g/oradata/ccpbs/use39.dbf SIZE100M AUTOEX

10、TEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENTLOCAL SEGMENT SPACE MANAGEMENT AUTO15. 創(chuàng)建用戶(hù)create user ccod identified by ccod default tablespace use39 temporary tablespace TEMP。createuser ucds identified by ccod default tablespace use39 temporary tablespace TEMP。create user veidentified

11、 by ccod default tablespace use39 temporary tablespace TEMP。grant connect,resource,dba to ccod。grant conn ect,resource to ucds。grant conn ect,resource to ve。版權(quán)申明本文部分內(nèi)容,包括文字、圖片、以及設(shè)計(jì)等在網(wǎng)上搜集整 理。版權(quán)為潘宏亮個(gè)人所有This article includes some parts, including text,pictures, and desig n. Copyright is Pan Hon glia ng

12、s pers onal ownership.用戶(hù)可將本文的內(nèi)容或服務(wù)用于個(gè)人學(xué)習(xí)、研究或欣賞,以及 其他非商業(yè)性或非盈利性用途,但同時(shí)應(yīng)遵守著作權(quán)法及其他相關(guān) 法律的規(guī)定,不得侵犯本網(wǎng)站及相關(guān)權(quán)利人的合法權(quán)利。除此以 外,將本文任何內(nèi)容或服務(wù)用于其他用途時(shí),須征得本人及相關(guān)權(quán) 利人的書(shū)面許可,并支付報(bào)酬。Users may use the contents or services of thisarticle for pers onal study, research or appreciati on, and othernon-commercial or non-profit purpose

13、s, but at the same time, they shallabide by the provisions of copyrightlaw and other releva nt laws, and shall not infringe uponthe legitimate rights of this website and its releva ntobligees. In addition, when any content or service of thisarticle is used for other purposes, written permission and remun erati onshall be obta ined from the pers on concerned and the releva nt obligee.轉(zhuǎn)載或引用本文內(nèi)容必須是以新聞性或資料性公共免費(fèi)信息為 使用目的的合理、善意引用,不得對(duì)本文內(nèi)容原意進(jìn)行曲解、修 改,并自負(fù)版權(quán)等法律責(zé)任。Reproducti on or quotatio n of the content of thisarticle must be reas on able and good-fai

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論