??xml version="1.0" encoding="utf-8" standalone="yes"?> 在脚注分割线下方出现一个多余空行,无法删除?/p>
q时Q可以将“视图”转成“普通视?#8221;Q双L文中脚注索引Q在普通视图下方会自动出现脚注H口。或者在“引用”选项?#8220;脚注”中选择“昄备注”Q可以达到同L效果?/p>
在下拉列表中选择“脚注分隔W?#8221;Q此时可以对分隔W进行编?/p>
此时删除多余回R可以了。点?#8220;默认讄”可以对脚注分隔符的默认格式进行修攏V?/p>
netsh interface dump > cssl.txt q样可以在本地目录下生成一个cssl.txt文g。该文g记录了当前网l的配置情况。通过执行如下命o可以应用cssl.txt文g中的|络配置?/p>
netsh exec cssl.txt q样Q可以写一个批处理文g完成|络配置的切换?/p> 一、在服务器端的处理办法如? 开始-q行Qgpedit.mscQ计机配置Q管理模板-windowslgQ终端服务-会话Q右边窗口选择"为断开的会话设|时间限?Q选择"已启?Q选择一个时_ 开始-q行Qgpedit.mscQ计机配置Q管理模板-windowslgQ终端服务-会话Q右边窗口选择"到达旉限制时终止会?Q选择"已启??/p>
2. 无限时保持连接会话,便于q程控制׃nL时候连接会话的数据Q也是׃nL时候连接的q程桌面的当时状态: 开始-理工具Q终端服务配|-服务器配|-限制每个用户使用一个会?/p>
3. L良好习惯Q退接时不要直接关闭Q而是使用注销?/p>
二、如果已l有多个q接存在
1.1 在Command Line模式下,输入命oquery userQ?/p>
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的用h本地登陆的,ID 1?389登陆的用P正在q行中,但是仍然占用pȝ资源和通道Q我们要把它t掉?/p>
1.2 可通过logoff x命o来注销id为x的登录用戗输入命令:logoff 1Q再用query user查询状?/p>
C:\>logoff 1 C:\>query user USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME >dfsadmin 0 Disc none 7/23/2007 7:53 PM 三、如果连接已l受限制
四、超q最大连接时q接
MSTSC [QConnection FileQ] [/v:Qsever[:port]Q] [/console] [/f[ullscreen]] [/w:QwidthQ?h:QheightQ] | /Edit"ConnectionFile" | /Migrate | /? QConnection FileQ?- 指定q接?rdp 文g的名U?/p>
/v:Qsever[:port]Q?- 指定要连接到的终端服务器?/p>
/console -- q接到服务器的控制台会话?/p>
/f -- 以全屏模式启动客L?/p>
/w: QwidthQ?- 指定q程桌面屏幕的宽度?/p>
/h:QheightQ?- 指定q程桌面屏幕的亮度?/p>
/edit -- 打开指定?rdp 文g来编辑?/p>
/migrate -- 客Lq接理器创建的旧版q接文gq移到新?rdp q接文g?/p>
/? -- 生成q个用法消息?
2、进入DISKPARTE序
3、输入AUTOMOUNT ENABLE指o
4、okQ下ơUSB盘攑օ后就可以像XP一栯动装载了?/p>
]]>
1. 讑֮已经断开的会话结束时间限Ӟq样避免会话已经断开Q但仍然占用一个Session
1 可以通过命o的方式将q接断开Q这个方法在2000pȝ同样可用Q如果在d理器的用户里注销的方法:
此时通过q程dQ可以用一?3389DOS?软g来进行牵制登录。这个Y件只能解决windows2003pȝ的限Ӟ2000pȝ也没办法?/p>
在超q最大连接数Ӟ通过q行mstsc /v:IP /console命o可以连接到q程pȝ的会话?/p>
]]>
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.
说明
tracertQ跟t\由)是\pt公用程序,用于定 IP 数据包访问目标所采取的\径。Tracert 命o?IP 生存旉 (TTL) 字段?ICMP错误消息来确定从一个主机到|\上其它主机的路由?
Tracert 工作原理
透过向目标发送不?IP 生存旉 (TTL) 值的"Internet 控制消息协议 (ICMP)"?
应数据包QTracert 诊断E序定到目标所采取的\由。要求\径上的每个\由器在{
发数据包之前臛_数据包上的 TTL 递减 1。数据包上的 TTL 减ؓ 0 Ӟ路由器应
该将"ICMP已超?的消息发回源pȝ?
Tracert 先发?TTL ?1 的响应数据包Qƈ在随后的每次发送过E将 TTL 递增1Q直
到目标响应或 TTL 辑ֈ最大|从而确定\由。透过查中间\由器发回?ICMP?
时"的消息确定\由。某些\由器不经询问直接丢弃 TTL q期的数据包Q这在Trac
ert 公用E序中看不到?
昄用户信息
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)
昄l信?/p>
oracle:~ # groups
root
oracle:~ # groups esecadm
esecadm : esec dialout video
昄用户信息
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.
所有用L信息都存攑֜该文件中。该文g中每行都代表以该用户Q每行的格式如下图所C。因文g是所有用户都可以ȝQؓ了系l安全,用L口o信息攄在另一文g中?/p>
该文件中存放有加密的用户口o信息Qƈ且该文g只有root可读的?/p>
如果用户口o字段是空?或?Q说明用户不能登录系l。需要通过passwdl用h供密码,q时用户才能dpȝ?/p>
默认情况下,只有root用户可以通过sshq程dpȝ。ؓ了其它用户dQ需要修?etc/ssh/sshd_config文g。在文g中加入下面一行:
AllowUsers root esecadm
后面可以跟若q用P光用空格分开?/p>
Sentinel有两U安装方式,一U是通过命o行的方式Q一U是通过GUI的方式。本文主要介l以命o行方式安装Sentinel 6的方法?/p>
首先Q在命o行中输入setup.sh -consoleQ则打开安装E序?/p>
oracle:/media/cdrom # ./setup.sh -console
Installing Sentinel Suite in console mode ...
安装E序首先启动JVM装蝲安装E序。这里需要等待一D|间?/p>
Initializing Wizard........
Launching InstallShield Wizard........
紧接着是选择安装语言Q默认是英文?/p>
----------------------------------------------------------------------------
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回车l安装?/p>
----------------------------------------------------------------------------
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]
接下来是安装向导提示的Sentinel 6的许可证信息Q选择q退出阅d可?/p>
----------------------------------------------------------------------------
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
接下来,选择1Q回车,同意该许可信息。再按回车l?/p>
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]
紧接着安装向导提示选择Sentinel 6的安装位|?/p>
----------------------------------------------------------------------------
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]
接下来选择Sentinel的安装方式。因里我们只是用作测试,q安装在虚拟ZQ因此选择单方式。这ӞSentinel的所有组件将被安装在同一台电脑上?/p>
-------------------------------------------------------------------------------
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的安装序列号Q?2345678和许可证Q?9c3d24adc1df104。输入后Q系l会提示q是一个时许可证Q将?009q??1日过期?/p>
----------------------------------------------------------------------------
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]
紧接着pȝ会询问SMTP服务器和发送邮件的邮g地址信息Q默认是本地的SMTP服务器和esecadm?/p>
SMTP Server: [localhost]
E-mail: [esecadm]
下面询问是否安装AdvisorQ这里我们不q行安装?/p>
Do you wish to install 'Advisor'?
1. Yes
2. No
Enter one of the options above: [2]
之后Q系l会提示输入全局pȝ口o。其中包括Sentinel理员用户和数据库用L口o。ƈ制定数据库用L用户名,默认是oracle?/p>
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]
选择已经安装的Oracle版本Q选择2ql?/p>
----------------------------------------------------------------------------
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]
接下来将昄前面配置的Oracle安装信息?/p>
----------------------------------------------------------------------------
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]
接下来,显CSentinel 6的安装信息,回Rl箋?/p>
----------------------------------------------------------------------------
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]
pȝ攉完上qC息之后将q行安装Q下面是安装时的昄信息。安装时间比较长Q跟机器的性能有关。在我的电脑上安装大概进行了40分钟Q包括数据库、分区和Sentinel产品各组件的安装?/p>
----------------------------------------------------------------------------
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]
最后,pȝ提示需要重新启动系l才能完成安装?/p>
----------------------------------------------------------------------------
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数据库安装好了之后,会在pȝ中创建如下用P
esecdbaQ数据库Schema所有者,Z安全考虑Q该用户q未授予数据库DBA的特?/p>
esecappQ数据库应用E序用户Q该用户用来q接数据?/p>
esecadmQSentinel理员的数据库用P该用户不同于Sentinel理员的操作pȝ用户
esecrptQ数据库报告用户
分区时用Ext3文gpȝQ?/p>
选择软g包时Q选择"Oracle Server Base"?C/C++ Compiler and Tools"Q同时保证选择?32Bit Runtime Environment"Q下面是软g包选择的一个截图?/p>
使用SPident或?cat /etc/SuSE-release"来校?/p>
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
SuSE提供了orarun来自动完成很多Oracle预安装的d。ؓ了下面安装OracleQ需要进行如下配|?/p>
在安装了Oracle Server Base之后Q系l就自动创徏了oracle用户。但是,默认的该用户是被用了的?/p>
oracle:~ # vim /etc/passwd
oracle:x:103:106:Oracle user:/opt/oracle:/bin/false
为此Q我们需要激z该用户。手工编?etc/passwd文gQ?/p>
oracle:x:103:106:Oracle user:/opt/oracle:/bin/bash
oracle:~ # passwd oracle
Changing password for oracle.
New Password:
Bad password: too simple
Reenter New Password:
Password changed.
~辑/etc/profile.d/oracle.sh文g中Oracle的环境变量如下:
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环境变量?/p>
q行rcoracle start命o讄内核参数。因没有安装Oracle数据库,忽略期间报的错误?/p>
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 #
#############################################################################
oracle:~ # su oracle
oracle@oracle:/root> id
uid=103(oracle) gid=106(oinstall) groups=106(oinstall),107(dba)
#gunzip 10201_database_linux_x86_64.cpio.gz
#cpio -idmv < 10201_database_linux_x86_64.cpio
保使用oracle用户dpȝQ必M用图形界面进行安装。ؓ了在SuSE 10上安装Oracle 10gQ必L工修改安装配|文Ӟ以确保Oracle支持SuSE 10pȝ。在Oracle安装文g路径下编辑文Ӟ
vim install/oraparam.ini
[Certified Versions]
Linux=redhat-3,SuSE-9,SuSE-10,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2
选择高安装
选择默认的Inventory目录
选择安装企业?/p>
在安装之前,Oracle会检查系l设|灯信息是否W合要求。我们将查未成功的选择?User Verified"?/p>
选择"Install database Software only"
查看安装概要q择安装
下面是安装进E?/p>
在安装结束之前,pȝ会提CZ用root用户dQ执行下面脚本?/p>
使用另一个窗口登录,执行脚本?/p>
选择"Exit"完成安装?/p>
在Novell官方的文档中QSentinel需要Oracle安装补丁10.2.0.3。从metalink|站上下载Oracle的补丁p5337014_10203_Linux-x86-64.zip。该补丁?G多,而且下蝲旉要metalink的帐h能下载?/p>
下蝲后解压,q确保用oracle用户q行Disk1中的runInstallerq行安装。跟安装Oracle 10g时一P安装E序首先要检查系l兼Ҏ,Z在SLES 10上安装,需要修攚w|文Ӟ使之支持在SuSE 10上的安装。修Ҏ法与Oracle 10g安装时的一栗?/p>
下图是安装时的欢q界面?/p>
首先现在Oracle 10g的安装目录?/p>
接下来,是安装的信息。确认后执行安装?/p>
下图是安装进度?/p>
安装l束前,提示需要用户以rootw䆾手工执行root.sh脚本?/p>
打开另一个窗口,执行ORACLE_HOME目录下的root.sh脚本?/p>
执行完脚本后Q点?OK"Q系l提C完成补丁安装,点击"Exit"退出系l安装?/p>
下面Q需要通过opatch工具安装Oracle的关键补丁。同P首先从metalink|站上下载补丁:p5881721_10203_Linux-x86-64.zipq解压。请保使用oralce用户q行下面的操作?/p>
q入5881721目录Q运?ORACLE_HOME/OPatch/opatch apply -local。下图是安装q程?/p>
输入y之后l箋安装?/p>
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.
最后,通过$ORACLE_HOME/OPatch/opatch lsinventory命oq行补丁状态检查?/p>
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.
如果成功Q将出现"OPatch succeeded."字样?/p>
xQ针对Sentinel 6的Oracle安装已经完成。接下来是q行Sentinel产品的安装?/p>
使用SPident或?cat /etc/SuSE-release"来校?/p>
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
SuSE提供了orarun来自动完成很多Oracle预安装的d。ؓ了下面安装OracleQ需要进行如下配|?/p>
在安装了Oracle Server Base之后Q系l就自动创徏了oracle用户。但是,默认的该用户是被用了的?/p>
oracle:~ # vim /etc/passwd
oracle:x:103:106:Oracle user:/opt/oracle:/bin/false
为此Q我们需要激z该用户。手工编?etc/passwd文gQ?/p>
oracle:x:103:106:Oracle user:/opt/oracle:/bin/bash
oracle:~ # passwd oracle
Changing password for oracle.
New Password:
Bad password: too simple
Reenter New Password:
Password changed.
~辑/etc/profile.d/oracle.sh文g中Oracle的环境变量如下:
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环境变量?/p>
q行rcoracle start命o讄内核参数。因没有安装Oracle数据库,忽略期间报的错误?/p>
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 #
#############################################################################
oracle:~ # su oracle
oracle@oracle:/root> id
uid=103(oracle) gid=106(oinstall) groups=106(oinstall),107(dba)
#gunzip 10201_database_linux_x86_64.cpio.gz
#cpio -idmv < 10201_database_linux_x86_64.cpio
保使用oracle用户dpȝQ必M用图形界面进行安装。ؓ了在SuSE 10上安装Oracle 10gQ必L工修改安装配|文Ӟ以确保Oracle支持SuSE 10pȝ。在Oracle安装文g路径下编辑文Ӟ
vim install/oraparam.ini
[Certified Versions]
Linux=redhat-3,SuSE-9,SuSE-10,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2
选择高安装
选择默认的Inventory目录
选择安装企业?/p>
在安装之前,Oracle会检查系l设|灯信息是否W合要求。我们将查未成功的选择?User Verified"?/p>
选择"Install database Software only"
查看安装概要q择安装
下面是安装进E?/p>
在安装结束之前,pȝ会提CZ用root用户dQ执行下面脚本?/p>
使用另一个窗口登录,执行脚本?/p>
选择"Exit"完成安装?/p>
在Novell官方的文档中QSentinel需要Oracle安装补丁10.2.0.3。从metalink|站上下载Oracle的补丁p5337014_10203_Linux-x86-64.zip。该补丁?G多,而且下蝲旉要metalink的帐h能下载?/p>
下蝲后解压,q确保用oracle用户q行Disk1中的runInstallerq行安装。跟安装Oracle 10g时一P安装E序首先要检查系l兼Ҏ,Z在SLES 10上安装,需要修攚w|文Ӟ使之支持在SuSE 10上的安装。修Ҏ法与Oracle 10g安装时的一栗?/p>
下图是安装时的欢q界面?/p>
首先现在Oracle 10g的安装目录?/p>
接下来,是安装的信息。确认后执行安装?/p>
下图是安装进度?/p>
安装l束前,提示需要用户以rootw䆾手工执行root.sh脚本?/p>
打开另一个窗口,执行ORACLE_HOME目录下的root.sh脚本?/p>
执行完脚本后Q点?OK"Q系l提C完成补丁安装,点击"Exit"退出系l安装?/p>
下面Q需要通过opatch工具安装Oracle的关键补丁。同P首先从metalink|站上下载补丁:p5881721_10203_Linux-x86-64.zipq解压。请保使用oralce用户q行下面的操作?/p>
q入5881721目录Q运?ORACLE_HOME/OPatch/opatch apply -local。下图是安装q程?/p>
输入y之后l箋安装?/p>
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.
最后,通过$ORACLE_HOME/OPatch/opatch lsinventory命oq行补丁状态检查?/p>
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.
如果成功Q将出现"OPatch succeeded."字样?/p>
xQ针对Sentinel 6的Oracle安装已经完成。接下来是q行Sentinel产品的安装?/p>