隨筆-49  評(píng)論-67  文章-27  trackbacks-0
            2007年9月15日
           

            在腳注分割線下方出現(xiàn)一個(gè)多余空行,無(wú)法刪除。

            這時(shí),可以將“視圖”轉(zhuǎn)成“普通視圖”,雙擊正文中腳注索引,在普通視圖下方會(huì)自動(dòng)出現(xiàn)腳注窗口。或者在“引用”選項(xiàng)板“腳注”中選擇“顯示備注”,可以達(dá)到同樣的效果。

            在下拉列表中選擇“腳注分隔符”,此時(shí)可以對(duì)分隔符進(jìn)行編輯

            此時(shí)刪除多余回車就可以了。點(diǎn)擊“默認(rèn)設(shè)置”可以對(duì)腳注分隔符的默認(rèn)格式進(jìn)行修改。

          posted @ 2010-01-10 01:09 思考 閱讀(19911) | 評(píng)論 (10)編輯 收藏

          這個(gè)方法也是在網(wǎng)上看到的,自己總結(jié)了一下,方面以后查詢。

          netsh interface dump > cssl.txt

          這樣可以在本地目錄下生成一個(gè)cssl.txt文件。該文件記錄了當(dāng)前網(wǎng)絡(luò)的配置情況。通過(guò)執(zhí)行如下命令可以應(yīng)用cssl.txt文件中的網(wǎng)絡(luò)配置。

          netsh exec cssl.txt

          這樣,可以寫一個(gè)批處理文件完成網(wǎng)絡(luò)配置的切換。

          posted @ 2008-07-04 13:51 思考 閱讀(613) | 評(píng)論 (0)編輯 收藏

          1、進(jìn)入命令提示符環(huán)境
          2、進(jìn)入DISKPART程序
          3、輸入AUTOMOUNT ENABLE指令
          4、ok,下次USB硬盤放入后就可以像XP一樣自動(dòng)裝載了。

          posted @ 2008-06-27 16:07 思考 閱讀(482) | 評(píng)論 (0)編輯 收藏

          Windows 2003 server遠(yuǎn)程桌面連接數(shù)限制已經(jīng)困擾很久了,給平時(shí)的維護(hù)帶來(lái)麻煩。既然微軟不會(huì)從根本上解決這個(gè)問(wèn)題,那只有通過(guò)其他方式來(lái)減少問(wèn)題的發(fā)生幾率。

          一、在服務(wù)器端的處理辦法如下
          1. 設(shè)定已經(jīng)斷開(kāi)的會(huì)話結(jié)束時(shí)間限制,這樣避免會(huì)話已經(jīng)斷開(kāi),但仍然占用一個(gè)Session

          開(kāi)始-運(yùn)行-gpedit.msc-計(jì)算機(jī)配置-管理模板-windows組件-終端服務(wù)-會(huì)話,右邊窗口選擇"為斷開(kāi)的會(huì)話設(shè)置時(shí)間限制"-選擇"已啟用",選擇一個(gè)時(shí)間;

          開(kāi)始-運(yùn)行-gpedit.msc-計(jì)算機(jī)配置-管理模板-windows組件-終端服務(wù)-會(huì)話,右邊窗口選擇"到達(dá)時(shí)間限制時(shí)終止會(huì)話"-選擇"已啟用"。

          2. 無(wú)限時(shí)保持連接會(huì)話,便于遠(yuǎn)程控制共享任意時(shí)候連接會(huì)話的數(shù)據(jù),也就是共享任意時(shí)候連接的遠(yuǎn)程桌面的當(dāng)時(shí)狀態(tài):

          開(kāi)始-管理工具-終端服務(wù)配置-服務(wù)器配置-限制每個(gè)用戶使用一個(gè)會(huì)話

          3. 養(yǎng)成良好習(xí)慣,退出連接時(shí)不要直接關(guān)閉,而是使用注銷。

          二、如果已經(jīng)有多個(gè)連接存在
          1 可以通過(guò)命令的方式將連接斷開(kāi),這個(gè)方法在2000系統(tǒng)同樣可用;如果在任務(wù)管理器的用戶里注銷的方法:

          1.1 在Command Line模式下,輸入命令query user:

          C:\>query user

          USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME

          >dfsadmin 0 Disc . 7/23/2007 7:53 PM

          mrsadmin rdp-tcp#10 1 Active . 7/24/2007 9:31 AM

          ID 0的用戶是本地登陸的,ID 1是3389登陸的用戶,正在運(yùn)行中,但是仍然占用系統(tǒng)資源和通道,我們要把它踢掉。

          1.2 可通過(guò)logoff x命令來(lái)注銷id為x的登錄用戶。輸入命令:logoff 1,再用query user查詢狀態(tài)

          C:\>logoff 1

          C:\>query user

          USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME

          >dfsadmin 0 Disc none 7/23/2007 7:53 PM

          三、如果連接已經(jīng)受限制
          此時(shí)通過(guò)遠(yuǎn)程登錄,可以用一個(gè)"3389DOS版"軟件來(lái)進(jìn)行牽制登錄。這個(gè)軟件只能解決windows2003系統(tǒng)的限制,2000系統(tǒng)也沒(méi)辦法。

          四、超過(guò)最大連接時(shí)連接
          在超過(guò)最大連接數(shù)時(shí),通過(guò)運(yùn)行mstsc /v:IP /console命令就可以連接到遠(yuǎn)程系統(tǒng)的會(huì)話。

          MSTSC [<Connection File>] [/v:<sever[:port]>] [/console] [/f[ullscreen]]

          [/w:<width>/h:<height>] | /Edit"ConnectionFile" | /Migrate | /?

          <Connection File>-- 指定連接的.rdp 文件的名稱。

          /v:<sever[:port]>-- 指定要連接到的終端服務(wù)器。

          /console -- 連接到服務(wù)器的控制臺(tái)會(huì)話。

          /f -- 以全屏模式啟動(dòng)客戶端。

          /w: <width>-- 指定遠(yuǎn)程桌面屏幕的寬度。

          /h:<height>-- 指定遠(yuǎn)程桌面屏幕的亮度。

          /edit -- 打開(kāi)指定的.rdp 文件來(lái)編輯。

          /migrate -- 將客戶端連接管理器創(chuàng)建的舊版連接文件遷移到新的.rdp 連接文件。

          /? -- 生成這個(gè)用法消息。

          posted @ 2008-06-27 16:07 思考 閱讀(16687) | 評(píng)論 (0)編輯 收藏

          tracert命令

          C:\Documents and Settings\Administrator>tracert /?

          Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout]
          [-R] [-S srcaddr] [-4] [-6] target_name

          Options:
          -d Do not resolve addresses to hostnames.
          -h maximum_hops Maximum number of hops to search for target.
          -j host-list Loose source route along host-list (IPv4-only).
          -w timeout Wait timeout milliseconds for each reply.
          -R Trace round-trip path (IPv6-only).
          -S srcaddr Source address to use (IPv6-only).
          -4 Force using IPv4.
          -6 Force using IPv6.

          說(shuō)明

          tracert(跟蹤路由)是路由跟蹤公用程序,用于確定 IP 數(shù)據(jù)包訪問(wèn)目標(biāo)所采取的路徑。Tracert 命令用 IP 生存時(shí)間 (TTL) 字段和 ICMP錯(cuò)誤消息來(lái)確定從一個(gè)主機(jī)到網(wǎng)路上其它主機(jī)的路由。

          Tracert 工作原理

          透過(guò)向目標(biāo)發(fā)送不同 IP 生存時(shí)間 (TTL) 值的"Internet 控制消息協(xié)議 (ICMP)"回
          應(yīng)數(shù)據(jù)包,Tracert 診斷程序確定到目標(biāo)所采取的路由。要求路徑上的每個(gè)路由器在轉(zhuǎn)
          發(fā)數(shù)據(jù)包之前至少將數(shù)據(jù)包上的 TTL 遞減 1。數(shù)據(jù)包上的 TTL 減為 0 時(shí),路由器應(yīng)
          該將"ICMP已超時(shí)"的消息發(fā)回源系統(tǒng)。

          Tracert 先發(fā)送 TTL 為 1 的響應(yīng)數(shù)據(jù)包,并在隨后的每次發(fā)送過(guò)程將 TTL 遞增1,直
          到目標(biāo)響應(yīng)或 TTL 達(dá)到最大值,從而確定路由。透過(guò)檢查中間路由器發(fā)回的"ICMP已
          超時(shí)"的消息確定路由。某些路由器不經(jīng)詢問(wèn)直接丟棄 TTL 過(guò)期的數(shù)據(jù)包,這在Trac
          ert 公用程序中看不到。

          posted @ 2008-06-27 16:07 思考 閱讀(406) | 評(píng)論 (0)編輯 收藏

          id命令

          顯示用戶信息

          oracle:~ # id

          uid=0(root) gid=0(root) groups=0(root)

          oracle:~ # id esecadm

          uid=1000(esecadm) gid=1000(esec) groups=1000(esec),16(dialout),33(video)

          groups命令

          顯示組信息

          oracle:~ # groups

          root

          oracle:~ # groups esecadm

          esecadm : esec dialout video

          finger命令

          顯示用戶信息

          oracle:~ # finger

          Login Name Tty Idle Login Time Where

          root root pts/0 - Sat 22:16 192.168.100.1

          oracle:~ # finger esecadm

          Login: esecadm Name:

          Directory: /export/home/esecadm Shell: /bin/bash

          Never logged in.

          No Mail.

          No Plan.

          oracle:~ # finger root

          Login: root Name: root

          Directory: /root Shell: /bin/bash

          On since Sat Jun 21 22:16 (CST) on pts/0 from 192.168.100.1

          New mail received Sat Jun 21 22:09 2008 (CST)

          Unread since Fri Jun 20 09:21 2008 (CST)

          No Plan.

          /etc/paswd

          所有用戶的信息都存放在該文件中。該文件中每行都代表以該用戶,每行的格式如下圖所示。因?yàn)樵撐募撬杏脩舳伎梢宰x的,為了系統(tǒng)安全,將用戶的口令信息放置在另一文件中。

          /etc/shadow

          該文件中存放有加密的用戶口令信息,并且該文件只有root可讀的。

          如果用戶口令字段是空、*或者!,說(shuō)明用戶不能登錄系統(tǒng)。需要通過(guò)passwd給用戶提供密碼,這時(shí)用戶才能登錄系統(tǒng)。

          ssh登錄

          默認(rèn)情況下,只有root用戶可以通過(guò)ssh遠(yuǎn)程登錄系統(tǒng)。為了使其它用戶登錄,需要修改/etc/ssh/sshd_config文件。在文件中加入下面一行:

          AllowUsers root esecadm

          后面可以跟若干用戶,其間用空格分開(kāi)。

          posted @ 2008-06-22 01:52 思考 閱讀(2700) | 評(píng)論 (0)編輯 收藏

          Sentinel 6安裝

          Sentinel有兩種安裝方式,一種是通過(guò)命令行的方式,一種是通過(guò)GUI的方式。本文主要介紹以命令行方式安裝Sentinel 6的方法。

          首先,在命令行中輸入setup.sh -console,則打開(kāi)安裝程序。

          oracle:/media/cdrom # ./setup.sh -console

          Installing Sentinel Suite in console mode ...

          安裝程序首先啟動(dòng)JVM裝載安裝程序。這里需要等待一段時(shí)間。

          Initializing Wizard........

          Launching InstallShield Wizard........

          緊接著是選擇安裝語(yǔ)言,默認(rèn)是英文。

          ----------------------------------------------------------------------------

          Select a language to be used for this wizard.

          [X] 1 - English

          [ ] 2 - French

          [ ] 3 - German

          [ ] 4 - Italian

          [ ] 5 - Portuguese (Brazil)

          [ ] 6 - Spanish

          [ ] 7 - Simplified Chinese

          [ ] 8 - Traditional Chinese

          [ ] 9 - Japanese

          To select an item enter its number, or 0 when you are finished: [0]

          下面英文界面的安裝向?qū)⒊霈F(xiàn),回車?yán)^續(xù)安裝。

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Welcome to the InstallShield Wizard for Sentinel 6

          The InstallShield Wizard will install Sentinel 6 on your computer.

          To continue, choose Next.

          Sentinel 6

          Novell, Inc.

          www.Novell.com

          Press 1 for Next, 3 to Cancel or 5 to Redisplay [1]

          接下來(lái)是安裝向?qū)崾镜腟entinel 6的許可證信息,選擇q退出閱讀即可。

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Please read the following license agreement carefully.

          Novell Sentinel 6

          Novell Sentinel 6.0

          Novell Software License Agreement

          PLEASE READ THIS AGREEMENT CAREFULLY. BY INSTALLING, DOWNLOADING OR OTHERWISE

          USING THE SOFTWARE, YOU AGREE TO THE TERMS OF THIS AGREEMENT. IF YOU DO NOT

          AGREE WITH THESE TERMS, DO NOT DOWNLOAD, INSTALL OR USE THE SOFTWARE. THE

          SOFTWARE MAY NOT BE SOLD, TRANSFERRED, OR FURTHER DISTRIBUTED EXCEPT AS

          AUTHORIZED BY NOVELL.

          This Novell Software License Agreement (Agreement) is a legal agreement between

          You (an entity or a person) and Novell, Inc. (Novell). The software product

          Press ENTER to read the text [Type q to quit] q

          接下來(lái),選擇1,回車,同意該許可信息。再按回車?yán)^續(xù)。

          Please choose from the following options:

          [ ] 1 - I accept the terms of the license agreement.

          [X] 2 - I do not accept the terms of the license agreement.

          To select an item enter its number, or 0 when you are finished: [0] 1

          [X] 1 - I accept the terms of the license agreement.

          [ ] 2 - I do not accept the terms of the license agreement.

          To select an item enter its number, or 0 when you are finished: [0]

          Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]

          緊接著安裝向?qū)崾具x擇Sentinel 6的安裝位置。

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Sentinel 6 Install Location

          Please specify a directory or press Enter to accept the default directory.

          Destination Directory [/opt/novell/sentinel6]

          Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]

          接下來(lái)選擇Sentinel的安裝方式。因?yàn)檫@里我們只是用作測(cè)試,并安裝在虛擬機(jī)上,因此選擇簡(jiǎn)單方式。這時(shí),Sentinel的所有組件將被安裝在同一臺(tái)電腦上。

          -------------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Choose the installation type that best suits your needs.

          [ ] 1 - Simple

          All-In-One easy installation.

          [X] 2 - Custom

          Allows the user to configure a custom installation.

          Select the number corresponding to the type of install you would like. Enter 0

          to continue: [0]1

          [X] 1 - Simple

          All-In-One easy installation.

          [ ] 2 - Custom

          Allows the user to configure a custom installation.

          Select the number corresponding to the type of install you would like. Enter 0

          to continue: [0]

          Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]

          輸入Sentinel 6的安裝序列號(hào):12345678和許可證:19c3d24adc1df104。輸入后,系統(tǒng)會(huì)提示這是一個(gè)臨時(shí)許可證,將在2009年5月31日過(guò)期。

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Serial Number: [] 12345678

          License Key: [] 19c3d24adc1df104

          You have entered a temporary license key. If a new license key is not provided,

          this software will automatically disable itself after the expiration date :

          '5/31/09'

          [OK]

          緊接著系統(tǒng)會(huì)詢問(wèn)SMTP服務(wù)器和發(fā)送郵件的郵件地址信息,默認(rèn)是本地的SMTP服務(wù)器和esecadm。

          SMTP Server: [localhost]

          E-mail: [esecadm]

          下面將詢問(wèn)是否安裝Advisor,這里我們不進(jìn)行安裝。

          Do you wish to install 'Advisor'?

          1. Yes

          2. No

          Enter one of the options above: [2]

          之后,系統(tǒng)會(huì)提示輸入全局系統(tǒng)口令。其中包括Sentinel管理員用戶和數(shù)據(jù)庫(kù)用戶的口令。并制定數(shù)據(jù)庫(kù)用戶的用戶名,默認(rèn)是oracle。

          Global System Password (used for all Sentinel users)

          Password:

          Confirm Password:

          Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]

          Specify the Oracle username [oracle]

          Specify the Oracle username

          [OK]

          選擇已經(jīng)安裝的Oracle版本,選擇2并繼續(xù)。

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Select the target database server platform:

          1. Oracle 9i

          2. Oracle 10g

          Enter one of the options above: [1] 2

          Oracle JDBC Driver File: [] /opt/oracle/product/10gR2/db/jdbc/lib/ojdbc14.jar

          Database Name: [ESEC]

          Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]

          接下來(lái)將顯示前面配置的Oracle安裝信息。

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Oracle Configuration

          SUMMARY

          An Oracle database will be created with the following parameters

          A new instance will be created named: ESEC.

          This database will have a total size of: 10000 MB.

          Data file locations are as follows

          Data Files: /opt/novell/sentinel6/database

          Index Files: /opt/novell/sentinel6/database

          Summary Data Files: /opt/novell/sentinel6/database

          Summary Index Files: /opt/novell/sentinel6/database

          Temporary Files: /opt/novell/sentinel6/database

          Redo Logs A: /opt/novell/sentinel6/database

          Redo Logs B: /opt/novell/sentinel6/database

          The database will listen on port: 1521

          The database will use 256 MB of system memory.

          The schema will be owned by: esecdba

          The application user will be: esecapp

          The Sentinel Administrator will be: esecadm

          Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]

          接下來(lái),將顯示Sentinel 6的安裝信息,回車?yán)^續(xù)。

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Sentinel 6 will be installed in the following location:

          /opt/novell/sentinel6

          with the following features:

          Database

          Sentinel Services

          Communication Server

          Correlation Engine

          Data Access Server

          Sentinel Collector Service

          Applications

          Sentinel Control Center

          Sentinel Data Manager

          for a total size:

          460.2 MB

          Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]

          系統(tǒng)收集完上述信息之后將進(jìn)行安裝,下面是安裝時(shí)的顯示信息。安裝時(shí)間比較長(zhǎng),跟機(jī)器的性能有關(guān)。在我的電腦上安裝大概進(jìn)行了40分鐘,包括數(shù)據(jù)庫(kù)、分區(qū)和Sentinel產(chǎn)品各組件的安裝。

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Installing Sentinel Database. Please wait...

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Adding enough partitions for '10' days. Please wait...

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Installing Sentinel 6. Please wait...

          |-----------|-----------|-----------|------------|

          0% 25% 50% 75% 100%

          ||||||||||||||||||||||||||||||||||||||||||||||||||

          Creating uninstaller...

          Finalizing the Vital Product Data Registry. Please wait...

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Setting JVM permissions...

          |-----------|-----------|-----------|------------|

          0% 25% 50% 75% 100%

          ||||||||||||||||||||||||||||||||||||||||||||||||||

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Installing Sentinel Communication Server. Please wait...

          |-----------|-----------|-----------|------------|

          0% 25% 50% 75% 100%

          ||||||||||||||||||||||||||||||||||||||||||||||||||

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Installing Sentinel Communication Server. Please wait...

          |-----------|-----------|-----------|------------|

          0% 25% 50% 75% 100%

          ||||||||||||||||||||||||||||||||||||||||||||||||||

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Setting permissions on installed files...

          |-----------|-----------|-----------|------------|

          0% 25% 50% 75% 100%

          ||||||||||||||||||||||||||||||||||||||||||||||||||

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          Updating container configuration file. Please wait...

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Setting permissions on installed files...

          |-----------|-----------|-----------|------------|

          0% 25% 50% 75% 100%

          ||||||||||||||||||||||||||||||||||||||||||||||||||

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          Setting permissions on installed files...

          |-----------|-----------|-----------|------------|

          0% 25% 50% 75% 100%

          ||||||||||||||||||||||||||||||||||||||||||||||||||

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          The InstallShield Wizard has successfully installed Sentinel 6. Choose Finish

          to exit the wizard.

          Press 3 to Finish or 5 to Redisplay [3]

          最后,系統(tǒng)提示需要重新啟動(dòng)系統(tǒng)才能完成安裝。

          ----------------------------------------------------------------------------

          Sentinel 6 - InstallShield Wizard

          The wizard requires that you logout and log back in. To start Sentinel 6

          processes, reboot the machine or log back in and start them manually.

          Press 3 to Finish or 5 to Redisplay [3]

          Sentinel數(shù)據(jù)庫(kù)安裝好了之后,會(huì)在系統(tǒng)中創(chuàng)建如下用戶:

          esecdba:數(shù)據(jù)庫(kù)Schema所有者,出于安全考慮,該用戶并未授予數(shù)據(jù)庫(kù)DBA的特權(quán)

          esecapp:數(shù)據(jù)庫(kù)應(yīng)用程序用戶,該用戶用來(lái)連接數(shù)據(jù)庫(kù)

          esecadm:Sentinel管理員的數(shù)據(jù)庫(kù)用戶,該用戶不同于Sentinel管理員的操作系統(tǒng)用戶

          esecrpt:數(shù)據(jù)庫(kù)報(bào)告用戶

          posted @ 2008-06-21 20:24 思考 閱讀(523) | 評(píng)論 (0)編輯 收藏

          安裝SLES 10 x86_64

          分區(qū)時(shí)使用Ext3文件系統(tǒng);

          選擇軟件包時(shí),選擇"Oracle Server Base"和"C/C++ Compiler and Tools",同時(shí)保證選擇了"32Bit Runtime Environment";下面是軟件包選擇的一個(gè)截圖。

          安裝SLES 10的Server Pack

          使用SPident或者"cat /etc/SuSE-release"來(lái)校驗(yàn)

          oracle:~ # cat /etc/SuSE-release

          SUSE Linux Enterprise Server 10 (x86_64)

          VERSION = 10

          PATCHLEVEL = 2

          oracle:~ # SPident -v

          Summary (using 890 packages)

          Product/ServicePack conflict match update (shipped)

          SLE-10-x86_64 0 0% 325 36.5% 0 (2754 11.8%)

          SLE-10-x86_64-SP1 0 0% 470 52.8% 0 (2938 16.0%)

          SLE-10-x86_64-SP2 0 0% 889 99.9% 0 (2337 38.0%)

          Unknown 1 0.1%

          CONCLUSION: System is up-to-date!

          found SLE-10-x86_64-SP2

          Oracle安裝先決條件

          SuSE提供了orarun來(lái)自動(dòng)完成很多Oracle預(yù)安裝的任務(wù)。為了下面安裝Oracle,需要進(jìn)行如下配置。

          激活oracle用戶

          在安裝了Oracle Server Base之后,系統(tǒng)就自動(dòng)創(chuàng)建了oracle用戶。但是,默認(rèn)的該用戶是被禁用了的。

          oracle:~ # vim /etc/passwd

          oracle:x:103:106:Oracle user:/opt/oracle:/bin/false

          為此,我們需要激活該用戶。手工編輯/etc/passwd文件:

          oracle:x:103:106:Oracle user:/opt/oracle:/bin/bash

          修改oracle用戶口令

          oracle:~ # passwd oracle

          Changing password for oracle.

          New Password:

          Bad password: too simple

          Reenter New Password:

          Password changed.

          修改Oracle環(huán)境變量

          編輯/etc/profile.d/oracle.sh文件中Oracle的環(huán)境變量如下:

          oracle:~ # vim /etc/profile.d/oracle.sh

          # ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1

          ORACLE_HOME=$ORACLE_BASE/product/10gR2/db

          ORACLE_SID=ESEC

          修改ORACLE_HOME和ORACLE_SID環(huán)境變量。

          設(shè)置內(nèi)核參數(shù)

          運(yùn)行rcoracle start命令設(shè)置內(nèi)核參數(shù)。因?yàn)檫€沒(méi)有安裝Oracle數(shù)據(jù)庫(kù),忽略期間報(bào)的錯(cuò)誤。

          oracle:~ # rcoracle start

          #############################################################################

          # Begin of O R A C L E startup section #

          #############################################################################

          Oracle Database Software not yet installed!

          SETTINGS start from /etc/sysconfig/oracle

          - Set Kernel Parameters for Oracle: yes

          - Start Oracle Listener: no

          - Start Oracle Database: no

          - Start Oracle Webserver: no

          - Start Oracle EManager: no

          - Start Oracle iSQLPLUS Manager: no

          - Start Oracle Agent: no

          - Start Oracle Internet Filesystem: no

          - Start Oracle Directory Manager: no

          Oracle Agent undefinied or not properly set. Please check.

          Setting kernel parameters for Oracle, see file

          /etc/sysconfig/oracle for explanations.

          Shared memory: SHMMAX=3294967296 SHMMNI=4096 SHMALL=2097152

          Semaphore values: SEMMSL=1250 SEMMNS=32000 SEMOPM=100 SEMMNI=256

          Other values: FILE_MAX_KERNEL=131072 IP_LOCAL_PORT_RANGE=1024 65000

          RMEM_DEFAULT=4194304 WMEM_DEFAULT=262144 RMEM_MAX=4194304 WMEM_MAX=262144

          Huge Pages: SHM_GROUP=dba NR_HUGE_PAGES=0

          ULIMIT values: MAX_CORE_FILE_SIZE_SHELL=unlimited

          FILE_MAX_SHELL=65536 PROCESSES_MAX_SHELL=16384

          Kernel parameters set for Oracle: done

          - Starting Listener... unused

          + Starting Database(s)...

          unused

          - Starting Apache... unused

          - Starting Application Server... unused

          - Starting Application Server Console... unused

          - Starting Agent... unused

          - Starting Enterprise Manager... unused

          - Starting iSQLPLUS Manager... unused

          - Starting Oracle Internet Filesystem... unused

          - Starting Oracle Internet Directory... unused

          #############################################################################

          # End of O R A C L E section #

          #############################################################################

          檢驗(yàn)oracle用戶

          oracle:~ # su oracle

          oracle@oracle:/root> id

          uid=103(oracle) gid=106(oinstall) groups=106(oinstall),107(dba)

          安裝Oracle 10g

          解壓Oracle軟件

          #gunzip 10201_database_linux_x86_64.cpio.gz

          #cpio -idmv < 10201_database_linux_x86_64.cpio

          安裝Oracle 10g SP2

          確保使用oracle用戶登錄系統(tǒng),必須使用圖形界面進(jìn)行安裝。為了在SuSE 10上安裝Oracle 10g,必須手工修改安裝配置文件,以確保Oracle支持SuSE 10系統(tǒng)。在Oracle安裝文件路徑下編輯文件:

          vim install/oraparam.ini

          [Certified Versions]

          Linux=redhat-3,SuSE-9,SuSE-10,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2

          選擇高級(jí)安裝

          選擇默認(rèn)的Inventory目錄

          選擇安裝企業(yè)版

          在安裝之前,Oracle會(huì)檢查系統(tǒng)設(shè)置燈信息是否符合要求。我們將檢查未成功的選擇為"User Verified"。

          選擇"Install database Software only"

          查看安裝概要并選擇安裝

          下面是安裝進(jìn)程。

          在安裝結(jié)束之前,系統(tǒng)會(huì)提示使用root用戶登錄,執(zhí)行下面腳本。

          使用另一個(gè)窗口登錄,執(zhí)行腳本。

          選擇"Exit"完成安裝。

          安裝補(bǔ)丁

          在Novell官方的文檔中,Sentinel需要Oracle安裝補(bǔ)丁10.2.0.3。從metalink網(wǎng)站上下載Oracle的補(bǔ)丁p5337014_10203_Linux-x86-64.zip。該補(bǔ)丁有1G多,而且下載時(shí)需要metalink的帳號(hào)才能下載。

          下載后解壓,并確保使用oracle用戶運(yùn)行Disk1中的runInstaller進(jìn)行安裝。跟安裝Oracle 10g時(shí)一樣,安裝程序首先要檢查系統(tǒng)兼容性,為了在SLES 10上安裝,需要修改配置文件,使之支持在SuSE 10上的安裝。修改方法與Oracle 10g安裝時(shí)的一樣。

          下圖是安裝時(shí)的歡迎界面。

          首先現(xiàn)在Oracle 10g的安裝目錄。

          接下來(lái),是安裝的信息。確認(rèn)后執(zhí)行安裝。

          下圖是安裝進(jìn)度。

          安裝結(jié)束前,提示需要用戶以root身份手工執(zhí)行root.sh腳本。

          打開(kāi)另一個(gè)窗口,執(zhí)行ORACLE_HOME目錄下的root.sh腳本。

          執(zhí)行完腳本后,點(diǎn)擊"OK",系統(tǒng)提示完成補(bǔ)丁安裝,點(diǎn)擊"Exit"退出系統(tǒng)安裝。

          應(yīng)用關(guān)鍵補(bǔ)丁

          下面,需要通過(guò)opatch工具安裝Oracle的關(guān)鍵補(bǔ)丁。同樣,首先從metalink網(wǎng)站上下載補(bǔ)丁:p5881721_10203_Linux-x86-64.zip并解壓。請(qǐng)確保使用oralce用戶進(jìn)行下面的操作。

          進(jìn)入5881721目錄,運(yùn)行$ORACLE_HOME/OPatch/opatch apply -local。下圖是安裝過(guò)程。

          輸入y之后繼續(xù)安裝。

          y

          User Responded with: Y

          Backing up files and inventory (not for auto-rollback) for the Oracle Home

          Backing up files affected by the patch '5881721' for restore. This might take a while...

          Backing up files affected by the patch '5881721' for rollback. This might take a while...

          Execution of 'sh /mnt/hgfs/oracle/Oracle10g/Linux/patch/p5881721_10203_Linux-x86-64/5881721/custom/scripts/pre -apply 5881721 ':

          Return Code = 0

          Patching component oracle.sysman.repository.core, 10.2.0.3.0a...

          Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emDB.jar" with "/sysman/jlib/emDB.jar/oracle/sysman/emo/util/DBVerify.class"

          Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emDB.jar" with "/sysman/jlib/emDB.jar/oracle/sysman/emo/util/dbclone/DBCloneObject.class"

          Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emDB.jar" with "/sysman/jlib/emDB.jar/oracle/sysman/emo/util/dbclone/DBCloneVerify.class"

          Patching component oracle.sysman.bsln, 10.2.0.3.0...

          Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/emSDK/chart/EmChartBean.class"

          Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/emSDK/svlt/RedirectServlet.class"

          Patching component oracle.sysman.agent.core, 10.2.0.3.0a...

          Updating archive file "/opt/oracle/product/10gR2/db/sysman/lib32/libnmem.a" with "sysman/lib32/libnmem.a/nmemdisp.o"

          Updating archive file "/opt/oracle/product/10gR2/db/sysman/lib32/libnmexml.a" with "sysman/lib32/libnmexml.a/nmex.o"

          Updating archive file "/opt/oracle/product/10gR2/db/sysman/lib32/libnmehl.a" with "sysman/lib32/libnmehl.a/nmehl.o"

          Patching component oracle.rdbms, 10.2.0.3.0...

          Updating archive file "/opt/oracle/product/10gR2/db/lib/libserver10.a" with "lib/libserver10.a/qmurd.o"

          Copying file to "/opt/oracle/product/10gR2/db/cpu/CPUJan2007/catcpu.sql"

          Copying file to "/opt/oracle/product/10gR2/db/cpu/CPUJan2007/catcpu_rollback.sql"

          ApplySession adding interim patch '5881721' to inventory

          Verifying the update...

          Inventory check OK: Patch ID 5881721 is registered in Oracle Home inventory with proper meta-data.

          Files check OK: Files from Patch ID 5881721 are present in Oracle Home.

          --------------------------------------------------------------------------------****************************************************************************************************************************************************************** ATTENTION **** **** Please note that the Security Patch Installation (Patch Deinstallation) is **** not complete until all the Post Installation (Post Deinstallation) **** instructions noted in the Readme accompanying this patch, have been **** successfully completed. **** ******************************************************************************************************************************************************************

          --------------------------------------------------------------------------------

          Execution of 'sh /mnt/hgfs/oracle/Oracle10g/Linux/patch/p5881721_10203_Linux-x86-64/5881721/custom/scripts/post -apply 5881721 ':

          Return Code = 0

          Running make for target libnmemso

          Running make for target ioracle

          The local system has been patched and can be restarted.

          OPatch succeeded.

          最后,通過(guò)$ORACLE_HOME/OPatch/opatch lsinventory命令進(jìn)行補(bǔ)丁狀態(tài)檢查。

          oracle@oracle:/mnt/hgfs/oracle/Oracle10g/Linux/patch/p5881721_10203_Linux-x86-64/5881721> /opt/oracle/product/10gR2/db/OPatch/opatch lsinventory

          Invoking OPatch 10.2.0.3.0

          Oracle interim Patch Installer version 10.2.0.3.0

          Copyright (c) 2005, Oracle Corporation. All rights reserved..

          Oracle Home : /opt/oracle/product/10gR2/db

          Central Inventory : /opt/oracle/oraInventory

          from : /etc/oraInst.loc

          OPatch version : 10.2.0.3.0

          OUI version : 10.2.0.3.0

          OUI location : /opt/oracle/product/10gR2/db/oui

          Log file location : /opt/oracle/product/10gR2/db/cfgtoollogs/opatch/opatch2008-06-20_14-33-53PM.log

          Lsinventory Output file location : /opt/oracle/product/10gR2/db/cfgtoollogs/opatch/lsinv/lsinventory2008-06-20_14-33-53PM.txt

          --------------------------------------------------------------------------------Installed Top-level Products (2):

          Oracle Database 10g 10.2.0.1.0

          Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0

          There are 2 products installed in this Oracle Home.

          Interim patches (3) :

          Patch 5881721 : applied on Fri Jun 20 14:26:08 GMT+08:00 2008

          Created on 19 Feb 2007, 02:16:34 hrs US/Pacific

          Bugs fixed:

          5885186, 5881721

          Patch 5556081 : applied on Fri Jun 20 11:51:55 GMT+08:00 2008

          Created on 9 Nov 2006, 22:20:50 hrs PST8PDT

          Bugs fixed:

          5556081

          Patch 5557962 : applied on Fri Jun 20 11:51:46 GMT+08:00 2008

          Created on 9 Nov 2006, 23:23:06 hrs PST8PDT

          Bugs fixed:

          4269423, 5557962, 5528974

          --------------------------------------------------------------------------------

          OPatch succeeded.

          如果成功,將出現(xiàn)"OPatch succeeded."字樣。

          至此,針對(duì)Sentinel 6的Oracle安裝已經(jīng)完成。接下來(lái)就是進(jìn)行Sentinel產(chǎn)品的安裝。

          安裝SLES 10的Server Pack

          使用SPident或者"cat /etc/SuSE-release"來(lái)校驗(yàn)

          oracle:~ # cat /etc/SuSE-release

          SUSE Linux Enterprise Server 10 (x86_64)

          VERSION = 10

          PATCHLEVEL = 2

          oracle:~ # SPident -v

          Summary (using 890 packages)

          Product/ServicePack conflict match update (shipped)

          SLE-10-x86_64 0 0% 325 36.5% 0 (2754 11.8%)

          SLE-10-x86_64-SP1 0 0% 470 52.8% 0 (2938 16.0%)

          SLE-10-x86_64-SP2 0 0% 889 99.9% 0 (2337 38.0%)

          Unknown 1 0.1%

          CONCLUSION: System is up-to-date!

          found SLE-10-x86_64-SP2

          Oracle安裝先決條件

          SuSE提供了orarun來(lái)自動(dòng)完成很多Oracle預(yù)安裝的任務(wù)。為了下面安裝Oracle,需要進(jìn)行如下配置。

          激活oracle用戶

          在安裝了Oracle Server Base之后,系統(tǒng)就自動(dòng)創(chuàng)建了oracle用戶。但是,默認(rèn)的該用戶是被禁用了的。

          oracle:~ # vim /etc/passwd

          oracle:x:103:106:Oracle user:/opt/oracle:/bin/false

          為此,我們需要激活該用戶。手工編輯/etc/passwd文件:

          oracle:x:103:106:Oracle user:/opt/oracle:/bin/bash

          修改oracle用戶口令

          oracle:~ # passwd oracle

          Changing password for oracle.

          New Password:

          Bad password: too simple

          Reenter New Password:

          Password changed.

          修改Oracle環(huán)境變量

          編輯/etc/profile.d/oracle.sh文件中Oracle的環(huán)境變量如下:

          oracle:~ # vim /etc/profile.d/oracle.sh

          # ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1

          ORACLE_HOME=$ORACLE_BASE/product/10gR2/db

          ORACLE_SID=ESEC

          修改ORACLE_HOME和ORACLE_SID環(huán)境變量。

          設(shè)置內(nèi)核參數(shù)

          運(yùn)行rcoracle start命令設(shè)置內(nèi)核參數(shù)。因?yàn)檫€沒(méi)有安裝Oracle數(shù)據(jù)庫(kù),忽略期間報(bào)的錯(cuò)誤。

          oracle:~ # rcoracle start

          #############################################################################

          # Begin of O R A C L E startup section #

          #############################################################################

          Oracle Database Software not yet installed!

          SETTINGS start from /etc/sysconfig/oracle

          - Set Kernel Parameters for Oracle: yes

          - Start Oracle Listener: no

          - Start Oracle Database: no

          - Start Oracle Webserver: no

          - Start Oracle EManager: no

          - Start Oracle iSQLPLUS Manager: no

          - Start Oracle Agent: no

          - Start Oracle Internet Filesystem: no

          - Start Oracle Directory Manager: no

          Oracle Agent undefinied or not properly set. Please check.

          Setting kernel parameters for Oracle, see file

          /etc/sysconfig/oracle for explanations.

          Shared memory: SHMMAX=3294967296 SHMMNI=4096 SHMALL=2097152

          Semaphore values: SEMMSL=1250 SEMMNS=32000 SEMOPM=100 SEMMNI=256

          Other values: FILE_MAX_KERNEL=131072 IP_LOCAL_PORT_RANGE=1024 65000

          RMEM_DEFAULT=4194304 WMEM_DEFAULT=262144 RMEM_MAX=4194304 WMEM_MAX=262144

          Huge Pages: SHM_GROUP=dba NR_HUGE_PAGES=0

          ULIMIT values: MAX_CORE_FILE_SIZE_SHELL=unlimited

          FILE_MAX_SHELL=65536 PROCESSES_MAX_SHELL=16384

          Kernel parameters set for Oracle: done

          - Starting Listener... unused

          + Starting Database(s)...

          unused

          - Starting Apache... unused

          - Starting Application Server... unused

          - Starting Application Server Console... unused

          - Starting Agent... unused

          - Starting Enterprise Manager... unused

          - Starting iSQLPLUS Manager... unused

          - Starting Oracle Internet Filesystem... unused

          - Starting Oracle Internet Directory... unused

          #############################################################################

          # End of O R A C L E section #

          #############################################################################

          檢驗(yàn)oracle用戶

          oracle:~ # su oracle

          oracle@oracle:/root> id

          uid=103(oracle) gid=106(oinstall) groups=106(oinstall),107(dba)

          安裝Oracle 10g

          解壓Oracle軟件

          #gunzip 10201_database_linux_x86_64.cpio.gz

          #cpio -idmv < 10201_database_linux_x86_64.cpio

          安裝Oracle 10g SP2

          確保使用oracle用戶登錄系統(tǒng),必須使用圖形界面進(jìn)行安裝。為了在SuSE 10上安裝Oracle 10g,必須手工修改安裝配置文件,以確保Oracle支持SuSE 10系統(tǒng)。在Oracle安裝文件路徑下編輯文件:

          vim install/oraparam.ini

          [Certified Versions]

          Linux=redhat-3,SuSE-9,SuSE-10,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2

          選擇高級(jí)安裝

          選擇默認(rèn)的Inventory目錄

          選擇安裝企業(yè)版

          在安裝之前,Oracle會(huì)檢查系統(tǒng)設(shè)置燈信息是否符合要求。我們將檢查未成功的選擇為"User Verified"。

          選擇"Install database Software only"

          查看安裝概要并選擇安裝

          下面是安裝進(jìn)程。

          在安裝結(jié)束之前,系統(tǒng)會(huì)提示使用root用戶登錄,執(zhí)行下面腳本。

          使用另一個(gè)窗口登錄,執(zhí)行腳本。

          選擇"Exit"完成安裝。

          安裝補(bǔ)丁

          在Novell官方的文檔中,Sentinel需要Oracle安裝補(bǔ)丁10.2.0.3。從metalink網(wǎng)站上下載Oracle的補(bǔ)丁p5337014_10203_Linux-x86-64.zip。該補(bǔ)丁有1G多,而且下載時(shí)需要metalink的帳號(hào)才能下載。

          下載后解壓,并確保使用oracle用戶運(yùn)行Disk1中的runInstaller進(jìn)行安裝。跟安裝Oracle 10g時(shí)一樣,安裝程序首先要檢查系統(tǒng)兼容性,為了在SLES 10上安裝,需要修改配置文件,使之支持在SuSE 10上的安裝。修改方法與Oracle 10g安裝時(shí)的一樣。

          下圖是安裝時(shí)的歡迎界面。

          首先現(xiàn)在Oracle 10g的安裝目錄。

          接下來(lái),是安裝的信息。確認(rèn)后執(zhí)行安裝。

          下圖是安裝進(jìn)度。

          安裝結(jié)束前,提示需要用戶以root身份手工執(zhí)行root.sh腳本。

          打開(kāi)另一個(gè)窗口,執(zhí)行ORACLE_HOME目錄下的root.sh腳本。

          執(zhí)行完腳本后,點(diǎn)擊"OK",系統(tǒng)提示完成補(bǔ)丁安裝,點(diǎn)擊"Exit"退出系統(tǒng)安裝。

          應(yīng)用關(guān)鍵補(bǔ)丁

          下面,需要通過(guò)opatch工具安裝Oracle的關(guān)鍵補(bǔ)丁。同樣,首先從metalink網(wǎng)站上下載補(bǔ)丁:p5881721_10203_Linux-x86-64.zip并解壓。請(qǐng)確保使用oralce用戶進(jìn)行下面的操作。

          進(jìn)入5881721目錄,運(yùn)行$ORACLE_HOME/OPatch/opatch apply -local。下圖是安裝過(guò)程。

          輸入y之后繼續(xù)安裝。

          y

          User Responded with: Y

          Backing up files and inventory (not for auto-rollback) for the Oracle Home

          Backing up files affected by the patch '5881721' for restore. This might take a while...

          Backing up files affected by the patch '5881721' for rollback. This might take a while...

          Execution of 'sh /mnt/hgfs/oracle/Oracle10g/Linux/patch/p5881721_10203_Linux-x86-64/5881721/custom/scripts/pre -apply 5881721 ':

          Return Code = 0

          Patching component oracle.sysman.repository.core, 10.2.0.3.0a...

          Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emDB.jar" with "/sysman/jlib/emDB.jar/oracle/sysman/emo/util/DBVerify.class"

          Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emDB.jar" with "/sysman/jlib/emDB.jar/oracle/sysman/emo/util/dbclone/DBCloneObject.class"

          Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emDB.jar" with "/sysman/jlib/emDB.jar/oracle/sysman/emo/util/dbclone/DBCloneVerify.class"

          Patching component oracle.sysman.bsln, 10.2.0.3.0...

          Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/emSDK/chart/EmChartBean.class"

          Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/emSDK/svlt/RedirectServlet.class"

          Patching component oracle.sysman.agent.core, 10.2.0.3.0a...

          Updating archive file "/opt/oracle/product/10gR2/db/sysman/lib32/libnmem.a" with "sysman/lib32/libnmem.a/nmemdisp.o"

          Updating archive file "/opt/oracle/product/10gR2/db/sysman/lib32/libnmexml.a" with "sysman/lib32/libnmexml.a/nmex.o"

          Updating archive file "/opt/oracle/product/10gR2/db/sysman/lib32/libnmehl.a" with "sysman/lib32/libnmehl.a/nmehl.o"

          Patching component oracle.rdbms, 10.2.0.3.0...

          Updating archive file "/opt/oracle/product/10gR2/db/lib/libserver10.a" with "lib/libserver10.a/qmurd.o"

          Copying file to "/opt/oracle/product/10gR2/db/cpu/CPUJan2007/catcpu.sql"

          Copying file to "/opt/oracle/product/10gR2/db/cpu/CPUJan2007/catcpu_rollback.sql"

          ApplySession adding interim patch '5881721' to inventory

          Verifying the update...

          Inventory check OK: Patch ID 5881721 is registered in Oracle Home inventory with proper meta-data.

          Files check OK: Files from Patch ID 5881721 are present in Oracle Home.

          --------------------------------------------------------------------------------****************************************************************************************************************************************************************** ATTENTION **** **** Please note that the Security Patch Installation (Patch Deinstallation) is **** not complete until all the Post Installation (Post Deinstallation) **** instructions noted in the Readme accompanying this patch, have been **** successfully completed. **** ******************************************************************************************************************************************************************

          --------------------------------------------------------------------------------

          Execution of 'sh /mnt/hgfs/oracle/Oracle10g/Linux/patch/p5881721_10203_Linux-x86-64/5881721/custom/scripts/post -apply 5881721 ':

          Return Code = 0

          Running make for target libnmemso

          Running make for target ioracle

          The local system has been patched and can be restarted.

          OPatch succeeded.

          最后,通過(guò)$ORACLE_HOME/OPatch/opatch lsinventory命令進(jìn)行補(bǔ)丁狀態(tài)檢查。

          oracle@oracle:/mnt/hgfs/oracle/Oracle10g/Linux/patch/p5881721_10203_Linux-x86-64/5881721> /opt/oracle/product/10gR2/db/OPatch/opatch lsinventory

          Invoking OPatch 10.2.0.3.0

          Oracle interim Patch Installer version 10.2.0.3.0

          Copyright (c) 2005, Oracle Corporation. All rights reserved..

          Oracle Home : /opt/oracle/product/10gR2/db

          Central Inventory : /opt/oracle/oraInventory

          from : /etc/oraInst.loc

          OPatch version : 10.2.0.3.0

          OUI version : 10.2.0.3.0

          OUI location : /opt/oracle/product/10gR2/db/oui

          Log file location : /opt/oracle/product/10gR2/db/cfgtoollogs/opatch/opatch2008-06-20_14-33-53PM.log

          Lsinventory Output file location : /opt/oracle/product/10gR2/db/cfgtoollogs/opatch/lsinv/lsinventory2008-06-20_14-33-53PM.txt

          --------------------------------------------------------------------------------Installed Top-level Products (2):

          Oracle Database 10g 10.2.0.1.0

          Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0

          There are 2 products installed in this Oracle Home.

          Interim patches (3) :

          Patch 5881721 : applied on Fri Jun 20 14:26:08 GMT+08:00 2008

          Created on 19 Feb 2007, 02:16:34 hrs US/Pacific

          Bugs fixed:

          5885186, 5881721

          Patch 5556081 : applied on Fri Jun 20 11:51:55 GMT+08:00 2008

          Created on 9 Nov 2006, 22:20:50 hrs PST8PDT

          Bugs fixed:

          5556081

          Patch 5557962 : applied on Fri Jun 20 11:51:46 GMT+08:00 2008

          Created on 9 Nov 2006, 23:23:06 hrs PST8PDT

          Bugs fixed:

          4269423, 5557962, 5528974

          --------------------------------------------------------------------------------

          OPatch succeeded.

          如果成功,將出現(xiàn)"OPatch succeeded."字樣。

          至此,針對(duì)Sentinel 6的Oracle安裝已經(jīng)完成。接下來(lái)就是進(jìn)行Sentinel產(chǎn)品的安裝。

          posted @ 2008-06-21 20:14 思考 閱讀(2268) | 評(píng)論 (0)編輯 收藏

          在suse中設(shè)置用字符界面啟動(dòng),第一個(gè)終端下面有特效。今天無(wú)意中看到在哪里可以改。記下來(lái)。
          /etc/sysconfig/bootsplash

          ## Path:        System/Boot
          ## Description: selects bootsplash graphics theme
          ## Type:        string
          ## Default:     SuSE-SLES
          # Choose the bootsplash theme. It should be based in
          # /etc/bootsplash/themes/
          THEME="SuSE-SLES"
          ## Path:        System/Boot
          ## Description: enables/disables bootup graphics
          ## Type:        yesno
          ## Default:     yes
          #
          # SPLASH can be set to "no" to turn off the splash-screen on console 1
          # at boot time (after kernel load).
          #
          # SPLASH=no to disable the splash screen
          #
          # SPLASH=yes to show the splash screen
          #
          SPLASH="yes"

          posted @ 2007-09-15 18:58 思考 閱讀(546) | 評(píng)論 (1)編輯 收藏
               摘要: 網(wǎng)上有很多源代碼可以實(shí)現(xiàn)Base64編碼的轉(zhuǎn)換,但是主要是對(duì)中文轉(zhuǎn)換的時(shí)候有問(wèn)題。 后來(lái)在網(wǎng)上找了很多資料,發(fā)現(xiàn)原來(lái)在Java默認(rèn)的實(shí)現(xiàn)機(jī)制中,內(nèi)部使用UTF-16編碼,而所有算法是針對(duì)英文UTF-8的。因此,在對(duì)中文字符串轉(zhuǎn)換的過(guò)程中會(huì)出現(xiàn)截取錯(cuò)誤。后來(lái)在源代碼的基礎(chǔ)上進(jìn)行了小的調(diào)整,最好可以實(shí)現(xiàn)Base64編碼。 下面貼出一個(gè)實(shí)現(xiàn)代碼:   1package ...  閱讀全文
          posted @ 2007-09-15 18:40 思考 閱讀(7733) | 評(píng)論 (5)編輯 收藏
          主站蜘蛛池模板: 凤冈县| 兴业县| 修武县| 晋城| 永福县| 象山县| 古蔺县| 余姚市| 景洪市| 闻喜县| 光泽县| 巢湖市| 绥阳县| 万盛区| 锦屏县| 丰台区| 乐都县| 庆城县| 石泉县| 六枝特区| 靖远县| 双江| 荔波县| 仙居县| 乌鲁木齐县| 梅河口市| 承德县| 从化市| 阿鲁科尔沁旗| 兴国县| 怀柔区| 明光市| 承德县| 新泰市| 伽师县| 姜堰市| 浙江省| 夏邑县| 孝感市| 张掖市| 沾益县|