版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、遠(yuǎn)程安裝oracle 10.2.1 for redhat 5.0 2.6.18-53.el5xen今天有個(gè)朋友打電話告訴我說,要我?guī)退b一個(gè)oracle正好閑著沒事,我就答應(yīng)了。他告訴我:要裝數(shù)據(jù)庫的機(jī)子在江西,只能通過遠(yuǎn)程安裝。還說現(xiàn)在只開了SSH,其他都沒有開。我根據(jù)他給我的信息如:IP,SSh協(xié)議,ROOT用戶名與密碼。思考了一下,得去如下安裝步聚:為了把數(shù)據(jù)庫軟件傳上去,就須開個(gè)FTP,還用到一個(gè)FTP工具:FlashFXP 3.6.0。為了要用到圖像界面來安裝數(shù)據(jù)庫軟件與建立數(shù)據(jù)庫,因?yàn)槲也涣?xí)慣用靜默來安裝數(shù)據(jù)庫軟件與建立數(shù)據(jù)庫,所以我用到了兩個(gè)軟件:xmanager enterpr
2、ise 3.0, secureCRT 6.12。通過圖像界面來安裝數(shù)據(jù)庫軟件與建立數(shù)據(jù)庫。上面提出了三個(gè)步聚,下面我來一步一步的解決:為機(jī)器開個(gè)FTP,首先看一下是不是安裝了FTP包:rootoracleERP # rpm -q ftpftp-0.17-33.fc6呵呵!很好,已經(jīng)安裝了FTP了,現(xiàn)在看一下是不是啟動(dòng)了FTP服務(wù):rootoracleERP vsftpd# /etc/init.d/vsftpd statusvsftpd is stopped唉!還沒有啟動(dòng),下面我就來啟動(dòng):rootoracleERP vsftpd# /etc/init.d/vsftpd startStarting
3、 vsftpd for vsftpd: OK 下面我來測(cè)試一下可不可以FTP上去。Microsoft Windows XP 版本 5.1.2600(C) 版權(quán)所有 1985-2001 Microsoft Corp.D:Documents and Settingsdb2adminftp 59Connected to 59.220 (vsFTPd 2.0.5)User (59:(none): oracle331 Please specify the password.Password:230 Login successful.ftp很好,可以FTP上去。下面我就用FlashFXP這個(gè)工具uploa
4、d數(shù)據(jù)庫軟件上去。幸好我這里的網(wǎng)速還可以u(píng)pload時(shí),可達(dá)2M,這樣節(jié)省了我好多時(shí)間了,6分鐘就upload完了。二、這步是怎樣圖形界面連到遠(yuǎn)程的機(jī)器上。首先到網(wǎng)上去下載:xmanager enterprise 3.0, secureCRT 6.12。好久沒去搜這兩人個(gè)軟件了,它們都升級(jí)了,我原來都用xmanager 2.0與secureCRT 5.1,升級(jí)還真快啊。好費(fèi)話不多說了。把兩個(gè)軟件安裝到電腦上面去,這兩個(gè)軟件都被破解了的,我個(gè)人喜歡用破解版。好了,下面我來配置XMANGER,這樣的方法很多。下面我就來講幾種方法:用Xmanager遠(yuǎn)程連接rdhat=法一:直接開啟一個(gè)gnome-
5、session1.點(diǎn)擊桌面圖標(biāo)XmanagerEnterprise2.右擊Xmanager圖標(biāo)-Xstart3.在右邊的空白處右擊,newXstart session4.出現(xiàn)如下的界面:在Session:里輸入:會(huì)話名:xstarttestHOST:,你連上去的IP地址。Protocol:SSH輸入username和passwdExecutionCommand:/usr/bin/gnome-session -display $DISPLAY如下圖:點(diǎn)擊確定出現(xiàn)如下的圖片: 雙擊xstarttest.如果網(wǎng)絡(luò)好的話,很快就會(huì)出現(xiàn)期待已久的遠(yuǎn)程桌面。如下圖:現(xiàn)在我們就可以在上面做操作了。=法二:開
6、啟一個(gè)登錄窗口,下面的方法是在遠(yuǎn)程機(jī)器上開啟XDMCP,然后再用Xstart連接上去。服務(wù)器:redhat as 5.0終端:Xmanagerenterprise 3.0服務(wù)器配置:(Gnome)1. Change runlevel to 5 修改/etc/inittab,將運(yùn)行級(jí)別設(shè)置為5,即:id:5:initdefault:2. Enable XDMCP 打開/etc/gdm/custom.conf,然后把Enable改為1,即: xdmcpEnable=13.KDM: 打/usr/share/config/kdm/Xaccess,然后把下面兩行的“”去掉。#* #any host ca
7、n get a login window =* #any host can get a login window打開/user/share/config/kdm/kdmrc,然后把Enable設(shè)成:true.即如下: xdmcpEnable=true 4.配置防火墻:即允許TCP/UPD通過。如下:Open UDP port 177 from the PC to the remote host direction.Open incoming TCP ports 60006010 from the remote host to your PC. 5.重起遠(yuǎn)程的機(jī)器。開始使用XMANGER ent
8、erprise 3.0# init 3; init 5終端配置1、點(diǎn)擊XmanagerEnterprise圖標(biāo),打開Xbrowser這時(shí)Xbrowser窗口中會(huì)顯示局域網(wǎng)中所有的可用服務(wù)器(若沒有顯示,則表示服務(wù)器配置有問題)直接雙擊你想使用的服務(wù)器即可開啟一個(gè)登錄窗口終端配置(通過ssh登陸)如果只能通過ssh登錄,則需要進(jìn)行一些配置首先配置Xshell1、打開Xshell,右擊你想要連接的session,如果沒有的話,就創(chuàng)建一個(gè)新的session2、右擊session,選擇“Properties”,Connection部分:“Name”中輸入session的名字(隨便寫)“Method”為
9、“SSH”,“Host”為服務(wù)器IP地址“PortNumber”為“22”UserAuthentication部分“Method”為“Password”“UserName”/“Password”為你的帳號(hào)和密碼3、點(diǎn)擊Connection部分中“Method”后面的“Setup”選擇“Tunneling”,點(diǎn)擊“TCP/IPForwarding”中的“Add”,出現(xiàn)對(duì)話框,進(jìn)行下面的操作:“Type”改為“Outgoing”,“ListenPort”取“6020”“DestinationHost”改為“l(fā)ocalhost”“DestinationPort”取“6020”(注:Listen/De
10、stinationPort可以是6020至6255中任意一個(gè)沒有使用的值)保存設(shè)置Xshell配置完成,下面開始配置Xbrowser1、點(diǎn)擊XmanagerEnterprise圖標(biāo),打開Xbrowser選擇“Tools”-“Option”在“NewAddress”輸入服務(wù)器的IP地址,然后點(diǎn)擊“Add”,保存設(shè)置。2、回到Xbrowser窗口,這時(shí)能看到你增加的服務(wù)器圖標(biāo)。右擊服務(wù)器圖標(biāo),選擇“SaveAs”,創(chuàng)建一個(gè)新的session,然后右擊這個(gè)session,選擇“Properties”。在“Proxy”部分打勾,Host為“”,PortNumber為“6020”(注:這個(gè)值應(yīng)該與Xsh
11、ell配置中第三步的“ListenPort”相同)3、點(diǎn)擊“XServer”,把“Allocatedisplaynumberautomatically”前面的勾去掉,在“DisplayNumberbox”中輸入“20”(這個(gè)數(shù)字應(yīng)等于上一步中的PortNumber減去6000)保存設(shè)置4、雙擊該服務(wù)器圖標(biāo)即可開啟一個(gè)登錄窗口方法三:xmanager secureCRT結(jié)合使用 環(huán)境:在xp中安裝虛擬機(jī)vmware ,host-only方式虛擬Linux系統(tǒng)。xp的ip為,虛擬機(jī)Linux為8 在xp中安裝xmanager和secureCRT ,默認(rèn)情況下CRT不能顯示圖形界面,通過以下配置可以
12、實(shí)現(xiàn)在Windows下的CRT里顯示Linux中的oracle圖形界面: 以oracle用戶登陸Linux,修改.bash_profile $ vi .bash_profile 在最后加上以下內(nèi)容: DISPLAY=:0.0 export DISPLAY 然后 $source .bash_profile 就大功告成。最后一步、上面的條件都具備了,下面就是來安裝數(shù)據(jù)庫軟件與建立數(shù)據(jù)庫。下面安裝數(shù)據(jù)庫軟件全是按照官方文檔來的。下面我就不細(xì)細(xì)的講。稍稍講一下要做的步聚:解壓文件。unzip 10201_database_linux32.zipYou should now have a single
13、directory containing installation files. Depending on the age of the download this may either be named db/Disk1 or database.設(shè)置內(nèi)核參數(shù):為/etc/sysctl.conf文件加上如下的內(nèi)容。Add the following lines to the /etc/sysctl.conf file:#kernel.shmall = 2097152#kernel.shmmax = 2147483648kernel.shmmni = 4096# semaphores: semm
14、sl, semmns, semopm, semmnikernel.sem = 250 32000 100 128#fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default=262144net.core.rmem_max=262144net.core.wmem_default=262144net.core.wmem_max=262144運(yùn)行下面的命令,來改變當(dāng)?shù)牡膬?nèi)核參數(shù)。Run the following command to change the current kernel param
15、eters:/sbin/sysctl -p在/etc/security/limits.conf加上如下的內(nèi)容。Add the following lines to the /etc/security/limits.conf file:* soft nproc 2047* hard nproc 16384* soft nofile 1024* hard nofile 65536在/etc/pam.d/login文件加上如下的內(nèi)容。Add the following line to the /etc/pam.d/login file, if it does not already exist:se
16、ssion required /lib/security/pam_limits.so關(guān)閉防火墻:Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows:SELINUX=disabledAlternatively, this alteration can be done using the GUI tool (System Administration Security Level and Firewall). Click on the
17、 SELinux tab and disable the feature.安裝需要的包:Install the following packages:# From RedHat AS5 Disk 1cd /media/cdrom/Serverrpm -Uvh setarch-2*rpm -Uvh make-3*rpm -Uvh glibc-2*rpm -Uvh libaio-0*cd /eject# From RedHat AS5 Disk 2cd /media/cdrom/Serverrpm -Uvh compat-libstdc+-33-3*rpm -Uvh compat-gcc-34-3
18、*rpm -Uvh compat-gcc-34-c+-3*rpm -Uvh gcc-4*rpm -Uvh libXp-1*cd /eject# From RedHat AS5 Disk 3cd /media/cdrom/Serverrpm -Uvh openmotif-2*rpm -Uvh compat-db-4*cd /eject創(chuàng)建用戶名與用戶組:Create the new groups and users:groupadd oinstallgroupadd dbagroupadd operuseradd -g oinstall -G dba oraclepasswd oracle為數(shù)據(jù)
19、庫軟件創(chuàng)建目錄。Create the directories in which the Oracle software will be installed:mkdir -p /u01/app/oracle/product/10.2.0/db_1chown -R oracle.oinstall /u01修改/etc/redhat-releas文件,這樣做的目的是為了在安裝時(shí)能通過。因?yàn)閛racle 10G 檢查文件里對(duì)操作系統(tǒng)有要求。所要把它改成redhat-4。Edit the /etc/redhat-release file replacing the current release inf
20、ormation (Red Hat Enterprise Linux Server release 5 (Tikanga) with the following:redhat-4設(shè)置環(huán)境變量:編輯:.bash_profile,在里面填上如下的內(nèi)容。Login as the oracle user and add the following lines at the end of the .bash_profile file:# Oracle SettingsTMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIRORACLE_BASE=/u01/app/or
21、acle; export ORACLE_BASEORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOMEORACLE_SID=TSH1; export ORACLE_SIDORACLE_TERM=xterm; export ORACLE_TERMPATH=/usr/sbin:$PATH; export PATHPATH=$ORACLE_HOME/bin:$PATH; export PATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PA
22、THCLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATHif $USER = oracle ; then if $SHELL = /bin/ksh ; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fifiInstallationLog into the oracle user. If you are using X emulation then set the DISPLAY envir
23、onmental variable:DISPLAY=本機(jī)的IP地址:0.0; export DISPLAYStart the Oracle Universal Installer (OUI) by issuing the following command in the database directory:./runInstaller安裝完以后,要把/etc/redhat-release這個(gè)文件的內(nèi)容改過來。Edit the /etc/redhat-release file restoring the original release information:Red Hat Enterpri
24、se Linux Server release 5 (Tikanga)Edit the /etc/oratab file setting the restart flag for each instance to Y:TSH1:/u01/app/oracle/product/10.2.0/db_1:Y注:在安裝完數(shù)據(jù)庫后的總結(jié)。我首先是把數(shù)據(jù)庫軟件安裝以后,再運(yùn)行DBCA的。在運(yùn)行DBCA時(shí)。我把內(nèi)存分高了。提示:ORA-27123:unable to attach to shared memory segment。后來我把內(nèi)存分低一點(diǎn)。就通過了。在操作系統(tǒng)下看:共享內(nèi)存:rootoracle
25、ERP # cat /proc/sys/kernel/shmmax 2999999999只有2999999999而我把它分了:7294967295,臨時(shí)給shmmax分內(nèi)存。Echo 7294967295 /proc/sys/kernel/shmmax.。這樣臨時(shí)給shmmax分好了。如果想永久的分shmmax,。就要編輯:/etc/sysctl.conf設(shè)置:kernel.shmmax = 7294967295就可以了。好了!寫了幾個(gè)小時(shí)終于寫完了。附錄資料:不需要的可以自行刪除 Oracle10g在AIX上的安裝準(zhǔn)備工作Oracle For Aix安裝1:安裝Oracle10.2的最基本要
26、求硬件: 64位 內(nèi)存與交換區(qū) 硬盤空間:除數(shù)據(jù)外,Oracle軟件本身至少需要3G 軟件: 操作系統(tǒng): AIX 5L version 5.2, Maintenance Level 04 or later , or AIX 5L version 5.3, Maintenance Level 02 or later. AIX的軟件包:o bos.adt.baseo bos.adt.libo bos.adt.libmo bos.perf.libperfstato bos.perf.perfstato ctoolso xlC.aix50.rte: or latero xlC.rte: or late
27、r2:AIX的修補(bǔ): 對(duì)于(APARs) for AIX 5L v5.2 ML 04: IY63133: large percentage of CPU time spent in ldata_balance routine IY64978: deadlock with concurrent renaming and unlinking under JFS IY63366: dlsym returns null even for valid symbol in AIX520 ML-4 IY64691: chvg -b can cause corruption and crash IY64737
28、: AIO can hang in knotunlock IY65001: mklvcopy on a striped lv is failing to update lvcb 對(duì)于(APARs) for AIX 5L v5.3 ML 02: IY58143: REQUIRED UPDATE FOR AIX 5.3 IY59386: libdepend.mk files are all empty IY60930: Unable to delete network routes IY66513: LDR_CNTRL turns on undesirable option when initia
29、lized with incorrect value IY70159: krtl relocation problem 3:安裝AIX 5L 53-001 插入CD 5.3第一片盤。 2 啟動(dòng)計(jì)算機(jī),聽見嘀嘀兩聲,按F1鍵進(jìn)入systerm management services 界面,選擇boot sequence 。 3 將CD-ROM設(shè)置為啟動(dòng)順序1,保存設(shè)置。 4 進(jìn)入安裝界面,開始一個(gè)全新系統(tǒng)安裝。 5 提示插入后續(xù)盤片,繼續(xù)安裝。 6 注意安裝時(shí)Kernel 選擇64bit,用命令prtcont查看。 7 如選擇中文語言,則要求安裝盤1、2、7,如不選,則安裝盤1、2 機(jī)器啟動(dòng) 1
30、. 進(jìn)入Configerition assistant界面 2. 設(shè)定IP地址為70,掩碼為。 在安裝Oracle前對(duì)系統(tǒng)進(jìn)行配置步驟一檢查系統(tǒng)所需軟件和修補(bǔ)包4:檢查系統(tǒng)安裝軟件 n 確認(rèn)安裝的AIX版本是否高于5.2-01,否則升級(jí)系統(tǒng)版本。 # oslevel -r 5300-00確認(rèn)是否是 5300-04)需升級(jí)到5300-02以上版本就可以。按如下升級(jí): 升級(jí)前需打包: bos.adt pat bos. cifs 按smitty-一路回車 a) 擴(kuò)充usr文件系統(tǒng)到3G 檢查usr空間的大小 # df -k Filesystem 1024-blocks Free %Used Iuse
31、d %Iused Mounted on /dev/hd4 16384 4588 72% 1509 19% / /dev/hd2 1064960 8608 100% 24103 10% /usr 確認(rèn)文件系統(tǒng)類型jfs jfs2 lsvg -l rootvg (查看文件系統(tǒng)類型,例如如下查看到的是jfs) rootvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT hd5 boot 1 1 1 closed/syncd N/A hd6 paging 32 32 1 open/syncd N/A hd8 jfslog 1 1 1 open/syncd
32、 N/A hd4 jfs 1 1 1 open/syncd / hd2 jfs 65 65 1 open/syncd /usr hd9var jfs 1 1 1 open/syncd /var hd3 jfs 2 2 1 open/syncd /tmp hd1 jfs 1 1 1 open/syncd /home hd10opt jfs 7 7 1 open/syncd /opt 如是jfs 選擇日志文件系統(tǒng)類型,如是 jfs2則選擇擴(kuò)展文件系統(tǒng) 用如下命令查看大小,此時(shí)查看到的usr的大小為3 G # df -k Filesystem 1024-blocks Free %Used Iused
33、 %Iused Mounted on /dev/hd4 16384 4584 73% 1509 19% / /dev/hd2 3014656 1897104 38% 24103 4% /usr /dev/hd9var 16384 10048 39% 362 9% /var /dev/hd3 32768 31596 4% 51 1% /tmp /dev/hd1 16384 15820 4% 18 1% /home /proc - - - - - /proc /dev/hd10opt 114688 25600 78% 2202 8% /opt b) 將IY58143上傳到/usr/sys/inst
34、.images c) 進(jìn)入/usr/sys/inst.images目錄,運(yùn)行inutoc d) smitty update_all (接受license yes) (而非install APAR) # instfix -ik IY58143 All filesets for IY58143 were found. # oslevel -r 5300-00 e) 重啟AIX #shutdown Fr f) 將升級(jí)包上傳到/usr/sys/inst.images g) 進(jìn)入/usr/sys/inst.images目錄,運(yùn)行inutoc # cd / # pwd / # cd usr # cd sy
35、s # cd inst.images # inutoc h) smitty update_all (接受license yes) i) OK后 重新啟動(dòng)系統(tǒng)后查看oslevel r (5300-03) # oslevel -r 5300-03 # instfix -i |grep ML All filesets for _AIX_ML were found. All filesets for 5300-02_AIX_ML were found. All filesets for 5300-01_AIX_ML were found. All filesets for 5300-03_AIX_ML
36、 were found. 如果不成功就執(zhí)行:Instfix ik 5300-03_AIX_ML 會(huì)列出不成功的包 # instfix -ik 5300-03_AIX_ML All filesets for 5300-03_AIX_ML were found.說明已經(jīng)成功 5:檢查AIX系統(tǒng)的安裝情況是否符合要求 Oracle要求的AIX的軟件包:o bos.adt.baseo bos.adt.libo bos.adt.libmo bos.perf.libperfstato bos.perf.perfstato ctoolso xlC.aix50.rte: or latero xlC.rte:
37、or later確認(rèn)需要的軟件是否安裝: # lslpp -l bos.adt.base Fileset Level State Description - Path: /usr/lib/objrepos bos.adt.base 0 COMMITTED Base Application Development Toolkit # lslpp -l bos.adt.lib Fileset Level State Description - Path: /usr/lib/objrepos bos.adt.lib 0 COMMITTED Base Application Development L
38、ibraries # lslpp -l bos.adt.libm lslpp: 0504-132 Fileset bos.adt.libm not installed. # lslpp -l bos.perf.libperfstat Fileset Level State Description - Path: /usr/lib/objrepos bos.perf.libperfstat 0 COMMITTED Performance Statistics Library Interface Path: /etc/objrepos bos.perf.libperfstat COMMITTED
39、Performance Statistics Library Interface # lslpp -l ctools Fileset Level State Description - Path: /usr/lib/objrepos ctools 0 COMMITTED Proc Filesystem Tools # # lslpp -l xlC.* Fileset Level State Description - Path: /usr/lib/objrepos xlC.aix50.rte 3 COMMITTED C Set + Runtime for AIX 5.0 xlC.cpp COM
40、MITTED C for AIX Preprocessor xlC.msg.en_US.cpp COMMITTED C for AIX Preprocessor Messages-U.S. English xlC.msg.en_US.rte COMMITTED C Set + Runtime Messages-U.S. English xlC.rte COMMITTED C Set + Runtime # bos.adt.limb不存在,需要安裝。 安裝bos.adt.libm 進(jìn)入菜單smitty,選擇安裝和更新軟件 : 選擇安裝軟件: 進(jìn)入安裝軟件后,按F4選擇安裝軟件用到的輸入設(shè)備,選擇
41、CD安裝: 進(jìn)入對(duì)于要安裝的軟件菜單項(xiàng): 按F4 給出安裝列表。在列表中,軟件項(xiàng)目之前的符號(hào)代表此軟件已經(jīng)安裝,+代表未安裝: 輸入“/”查找軟件bos.adt.libm 按F7選擇,點(diǎn)擊Enter安裝: 選擇接受License Agreements: 回車開始安裝: # lslpp -l bos.adt.libm Fileset Level State Description - Path: /usr/lib/objrepos bos.adt.libm COMMITTED Base Application Development Math Library 檢查安裝oracel所需操作系統(tǒng)的修
42、補(bǔ)包根據(jù)所要安裝產(chǎn)品,檢查下列修補(bǔ)是否安裝: 6: 確認(rèn)APAR是否安裝 AIX所需的修補(bǔ)包如下:: 對(duì)于(APARs) for AIX 5L v5.3 ML 02: IY58143: REQUIRED UPDATE FOR AIX 5.3 IY59386: libdepend.mk files are all empty IY60930: Unable to delete network routes IY66513: LDR_CNTRL turns on undesirable option when initialized with incorrect value IY70159: kr
43、tl relocation problem 驗(yàn)證以上的包是否已經(jīng)安裝 # instfix -ik IY58143 Not all filesets for IY58143 were found. # instfix -ik IY59386 All filesets for IY59386 were found. # instfix -ik IY60930 All filesets for IY60930 were found. # instfix -ik IY66513 All filesets for IY66513 were found. # instfix -ik IY70159 All
44、 filesets for IY70159 were found. 通過驗(yàn)證 # instfix -ik IY58143 Not all filesets for IY58143 were found. 步驟三創(chuàng)建安裝Oracle所需的UNIX組和用戶如果系統(tǒng)首次安裝ORACLE數(shù)據(jù)庫軟件,則需要?jiǎng)?chuàng)建一些UNIX組和用戶。 所需安裝如下UNIX組和用戶:OSDBA組(dba)、OSOPER(oper)組、Oracle Inventory 組(oinstall)、擁有Oracle軟件的用戶(oracle)。所創(chuàng)建用戶必須把Oracle Inventory 組作為首要組,可以把OSDBA和OSOP
45、ER組作為次組。 % 7:創(chuàng)建組 1創(chuàng)建Oracle Inventory組 # smit security 選擇Groups項(xiàng),創(chuàng)建oinstall組 按下Enter鍵創(chuàng)建。 2. 創(chuàng)建OSDBA組(dba): 用上述過程相同的方法創(chuàng)建。 8:創(chuàng)建用戶: 1 創(chuàng)建Oracle用戶: # smit security 選擇Users項(xiàng),創(chuàng)建oracle用戶, 將oinstall作為primary group, 將dba 作為secondary group(group set). 按下enter鍵創(chuàng)建。 注意: primary group oinstall group set dba 2、設(shè)置ora
46、cle用戶的密碼: # passwd oracle Changing password for oracle oracles New password: Enter the new password again: 設(shè)置密碼為oracle 創(chuàng)建好用戶后到/home目錄下查看 # cd /home # ls -al total 13 drwxr-xr-x 6 bin bin 512 Aug 16 20:59 . drwxr-xr-x 22 root system 1024 Aug 16 21:35 . drwxr-xr-x 2 root system 512 Aug 16 19:27 TT_DB
47、drwxr-xr-x 2 guest usr 512 Aug 04 2004 guest drwx- 2 root system 512 Aug 04 2004 lost+found drwxr-xr-x 4 oracle oinstall 512 Aug 16 21:34 oracle 確認(rèn)nobody用戶是否存在: # id nobody uid=4294967294(nobody) gid=4294967294(nobody) 步驟內(nèi)核參數(shù)和Shell Limits:9:配置Shell Limits: # smitty 選擇Users選項(xiàng),再選擇Change/Show Character
48、istics of a User選項(xiàng) 在用戶名處輸入oracle用戶名; 修改Soft FILE size為-1;修改Soft CUP time為-1;修改Soft DATA segment為-1;修改Soft STACK size為-1; 按下Enter鍵確認(rèn)。 10:配置系統(tǒng)配置參數(shù): # smitty chgsys 設(shè)置Maximum number of PROCESSES allowed per user 為2048。 11:創(chuàng)建安裝oracle的文件系統(tǒng)查看當(dāng)前空閑磁盤: # lspv hdisk0 00023f7f00040265 None hdisk1 00023f7f1955b
49、7e1 rootvg active 創(chuàng)建新的vg查看系統(tǒng)中pp的大小 # lsvg rootvg VOLUME GROUP: rootvg VG IDENTIFIER: 00023f7f00004c00000000001e122e40 VG STATE: active PP SIZE: 16 megabyte(s) VG PERMISSION: read/write TOTAL PPs: 542 (8672 megabytes) MAX LVs: 256 FREE PPs: 312 (4992 megabytes) LVs: 9 USED PPs: 230 (3680 megabytes) O
50、PEN LVs: 8 QUORUM: 2 TOTAL PVs: 1 VG DESCRIPTORS: 2 STALE PVs: 0 STALE PPs: 0 ACTIVE PVs: 1 AUTO ON: yes MAX PPs per VG: 32512 MAX PPs per PV: 1016 MAX PVs: 32 LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no HOT SPARE: no BB POLICY: relocatable # lspv hdisk0 00023f7f00040265 datavg active hdisk1 0
51、0023f7f1955b7e1 rootvg active 查看激活的vg # lsvg -o datavg rootvg 創(chuàng)建lv 查看剛才創(chuàng)建的lv: # lsvg -l datavg datavg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT oralv jfs 600 600 1 closed/syncd N/A 創(chuàng)建文件系統(tǒng),注意:mount點(diǎn)需要加/ 列出當(dāng)前的文件系統(tǒng),查看 # lsfs Name Nodename Mount Pt VFS Size Options Auto Accounting /dev/hd4 - / jfs
52、32768 - yes no /dev/hd1 - /home jfs 32768 - yes no /dev/hd2 - /usr jfs 6029312 - yes no /dev/hd9var - /var jfs 32768 - yes no /dev/hd3 - /tmp jfs 65536 - yes no /proc - /proc procfs - - yes no /dev/hd10opt - /opt jfs 229376 - yes no /dev/oralv - /oradata jfs 39321600 rw yes no 查看文件系統(tǒng)的大小 # df -k File
53、system 1024-blocks Free %Used Iused %Iused Mounted on /dev/hd4 16384 4572 73% 1517 19% / /dev/hd2 3014656 1897104 38% 24103 4% /usr /dev/hd9var 16384 10048 39% 363 9% /var /dev/hd3 32768 31596 4% 51 1% /tmp /dev/hd1 16384 15820 4% 18 1% /home /proc - - - - - /proc /dev/hd10opt 114688 25600 78% 2202
54、8% /opt 查看當(dāng)前已經(jīng)mount上的文件系統(tǒng) # mount node mounted mounted over vfs date options - - - - - - /dev/hd4 / jfs Aug 16 12:24 rw,log=/dev/hd8 /dev/hd2 /usr jfs Aug 16 12:24 rw,log=/dev/hd8 /dev/hd9var /var jfs Aug 16 12:24 rw,log=/dev/hd8 /dev/hd3 /tmp jfs Aug 16 12:24 rw,log=/dev/hd8 /dev/hd1 /home jfs Aug
55、16 12:25 rw,log=/dev/hd8 /proc /proc procfs Aug 16 12:25 rw /dev/hd10opt /opt jfs Aug 16 12:25 rw,log=/dev/hd8 # 12:Mount創(chuàng)建的文件系統(tǒng) # mount /oradata # mount node mounted mounted over vfs date options - - - - - - /dev/hd4 / jfs Aug 16 12:24 rw,log=/dev/hd8 /dev/hd2 /usr jfs Aug 16 12:24 rw,log=/dev/hd8
56、/dev/hd9var /var jfs Aug 16 12:24 rw,log=/dev/hd8 /dev/hd3 /tmp jfs Aug 16 12:24 rw,log=/dev/hd8 /dev/hd1 /home jfs Aug 16 12:25 rw,log=/dev/hd8 /proc /proc procfs Aug 16 12:25 rw /dev/hd10opt /opt jfs Aug 16 12:25 rw,log=/dev/hd8 /dev/oralv /oradata jfs Aug 16 15:58 rw,log=/dev/loglv00 # df -k File
57、system 1024-blocks Free %Used Iused %Iused Mounted on /dev/hd4 16384 4572 73% 1517 19% / /dev/hd2 3014656 1897104 38% 24103 4% /usr /dev/hd9var 16384 10048 39% 363 9% /var /dev/hd3 32768 31596 4% 51 1% /tmp /dev/hd1 16384 15820 4% 18 1% /home /proc - - - - - /proc /dev/hd10opt 114688 25600 78% 2202
58、8% /opt /dev/oralv 19660800 19043652 4% 17 1% /oradata 13:創(chuàng)建安裝Oracle軟件需要的目錄創(chuàng)建存放原始光盤軟件的目錄 # pwd / # cd oradata # mkdir aixsoft10.2g # ls aixsoft10.2g lost+found 創(chuàng)建oracle安裝目錄 具體安裝步驟要求: * from oracle install doc 1. Enter the following command to create subdirectories in the mount point directory that y
59、ou identified for the Oracle base directory: # mkdir -p /u01/app/oracle 2. If you intend to use a second file system for the Oracle Database files, then create an oradata subdirectory in the mount point directory that you identified for the Oracle data file directory (shown as /u02 in the examples):
60、 # mkdir /u02/oradata 3. Change the owner and group of the directories that you created to the oracle user and the oinstall group: # chown -R oracle:oinstall /u01/app/oracle # chown -R oracle:oinstall /u02/oradata 4. Change the permissions on the directories that you created to 775: # chmod -R 775 /
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年通信網(wǎng)絡(luò)工程建設(shè)管理規(guī)范
- 高中生物《激素調(diào)節(jié)》教學(xué)設(shè)計(jì)
- 2025年高速鐵路運(yùn)營(yíng)安全管理指南
- 心理健康《疫情背景下青少年心理調(diào)適與素養(yǎng)提升》教學(xué)設(shè)計(jì)(八年級(jí))
- 2025年醫(yī)療機(jī)構(gòu)傳染病防治與控制指南
- 大班科學(xué)《小動(dòng)物之間的聯(lián)絡(luò)》教學(xué)設(shè)計(jì)
- 海底觀測(cè)網(wǎng)接駁盒電力與數(shù)據(jù)傳輸管理標(biāo)準(zhǔn)
- 初中生物光合作用暗反應(yīng)階段影響因素實(shí)驗(yàn)課題報(bào)告教學(xué)研究課題報(bào)告
- 城市景觀照明燈具防盜系統(tǒng)測(cè)試記錄保存管理細(xì)則
- 學(xué)生數(shù)字素養(yǎng)評(píng)價(jià)在信息技術(shù)課程教學(xué)中的實(shí)踐與反饋研究教學(xué)研究課題報(bào)告
- 特殊作業(yè)安全管理監(jiān)護(hù)人培訓(xùn)課件
- 成本限額及配置標(biāo)準(zhǔn)
- 房屋市政工程生產(chǎn)安全重大事故隱患判定標(biāo)準(zhǔn)(2024版)宣傳畫冊(cè)
- 2020高職院校教學(xué)能力比賽大學(xué)語文課程實(shí)施報(bào)告(定)
- 化工廠叉車安全操作應(yīng)急預(yù)案
- 長(zhǎng)期合作協(xié)議書合同書
- DB11∕T 353-2021 城市道路清掃保潔質(zhì)量與作業(yè)要求
- 浙江省小型液化天然氣氣化站技術(shù)規(guī)程
- 生物化學(xué)基礎(chǔ)與應(yīng)用智慧樹知到期末考試答案章節(jié)答案2024年四川工商職業(yè)技術(shù)學(xué)院
- GB/T 2910.11-2024紡織品定量化學(xué)分析第11部分:某些纖維素纖維與某些其他纖維的混合物(硫酸法)
- GIS組合電器概述
評(píng)論
0/150
提交評(píng)論