﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>语源科技BlogJava-勤快的小猪</title><link>http://www.blogjava.net/qwun/</link><description /><language>zh-cn</language><lastBuildDate>Mon, 13 Apr 2026 16:03:28 GMT</lastBuildDate><pubDate>Mon, 13 Apr 2026 16:03:28 GMT</pubDate><ttl>60</ttl><item><title>AIX4.3.3上安装Oracle详解</title><link>http://www.blogjava.net/qwun/archive/2011/10/11/360977.html</link><dc:creator>噜噜</dc:creator><author>噜噜</author><pubDate>Tue, 11 Oct 2011 08:54:00 GMT</pubDate><guid>http://www.blogjava.net/qwun/archive/2011/10/11/360977.html</guid><wfw:comment>http://www.blogjava.net/qwun/comments/360977.html</wfw:comment><comments>http://www.blogjava.net/qwun/archive/2011/10/11/360977.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/qwun/comments/commentRss/360977.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/qwun/services/trackbacks/360977.html</trackback:ping><description><![CDATA[root用户的安装演示 &nbsp; 5 <br />（1）建立安装点（Create &nbsp; Mount &nbsp; Points） &nbsp; 5 <br />（2）为DBA建立UNIX组（Create &nbsp; UNIX &nbsp; Groups &nbsp; for &nbsp; Database &nbsp; Administrators） &nbsp; 6 <br />（3）为ORACLE软件安装者建立UNIX账号（Create &nbsp; UNIX &nbsp; Account &nbsp; to &nbsp; Own &nbsp; Oracle &nbsp; Software） &nbsp; 6 <br />（4）建立本地bin目录（Create &nbsp; a &nbsp; Local &nbsp; bin &nbsp; Directory） &nbsp; 7 <br />（5）建立oratab文件（Create &nbsp; the &nbsp; oratab &nbsp; File） &nbsp; 7 <br />oracle用户的安装演示 &nbsp; 7 <br />（1）设置文件建立许可（Set &nbsp; Permissions &nbsp; for &nbsp; File &nbsp; Creation） &nbsp; 8 <br />（2）设置环境变量（Set &nbsp; Environment &nbsp; Variables） &nbsp; 8 <br />（3）更新当前任务的环境变量（Update &nbsp; the &nbsp; Environment &nbsp; for &nbsp; Current &nbsp; Session） &nbsp; 11 <br />安装单独的ORACLE产品 &nbsp; 11 <br />Server，Cartridges &nbsp; and &nbsp; Options &nbsp; 11 <br />ORACLE &nbsp; PARALLEL &nbsp; SERVER版本的选项-预安装步骤。 &nbsp; 11 <br />root用户安装步骤 &nbsp; 12 <br />安装 &nbsp; 13 <br />启动安装程序 &nbsp; 13 <br />Mount产品安装用的光盘 &nbsp; 13 <br />运行安装程序 &nbsp; 14 <br />安装提示 &nbsp; 15 <br />安装行动选择 &nbsp; 15 <br />软件资源管理 &nbsp; 17 <br />数据库建立提示 &nbsp; 17 <br />Database &nbsp; Creation &nbsp; Prompts &nbsp; 18 <br />Installing &nbsp; Documentation &nbsp; 21 <br />How &nbsp; to &nbsp; Install &nbsp; Documentation &nbsp; 21 <br />Verifying &nbsp; the &nbsp; Installer &nbsp; Session &nbsp; 22 <br />ORACLE_TERM=vt100;export &nbsp; ORACLE_TERM &nbsp; 23 <br /><br />UNIX环境 <br />1。安装点（Mount &nbsp; Points） <br />至少4个安装点（mount &nbsp; points），所有安装点都在相同的级别目录结构上，一个安装点用于安装软件，三个用于OFA兼容的数据库 <br />2。用于ORACLE的用户组（UNIX &nbsp; Groups &nbsp; for &nbsp; Oracle &nbsp; Roles） <br />一个通常名为&#8220;dba&#8221;的组用于OSDBA角色。OSOPER角色也可用于&#8220;dba&#8221;组，或其它不同的组 <br />3。UNIX账户（UNIX &nbsp; Accounts） <br />一个单独用于安装和升级ORACLE系统的的UNIX账户，这个账户必须是OSDBA的成员 <br />4。本地目录（Local &nbsp; bin &nbsp; directory） <br />一个用于在ORACLE用户中共享软件的目录，通常在AIX上这个目录的缺省值是 &nbsp; &#8220;/usr/lbin&#8221; <br />5。oratab文件（oratab &nbsp; file） <br />包含了关于ORACLE实例的信息 <br />6。文件创建许可（Permissions &nbsp; for &nbsp; File &nbsp; Creation） <br />调置umask为022 &nbsp; （可直接输入umask查看，如果不是022再改） <br />7。显示（DISPLAY） <br />设置好你连接至服务器的机器名和显示方式。 <br />8。设置扩展共享内存（EXTSHM） <br />必须确定扩展共享内存（Extended &nbsp; Shared &nbsp; Memory）的开、闭状态（似乎应关） <br />9。设置库文件路径（LD_LIBRARY_PATH） <br />假如要用JDBC，在路径中必须包括&#8220;$ORACLE_HOME/lib&#8221;。假如要用NET8 &nbsp; ASSISTANT，在路径中必须包括&#8220;$ORACLE_HOME/network/lib&#8221;。 <br />10。设置共享库路径（LIBPATH） <br />需要为ORACLE产品指定共享库的路径，必须在路径中包括&#8220;$ORACLE_HOME/lib&#8221; <br />11。设置LINK_CNTRL（LINK_CNTRL） <br />如果使用AIX4.3要设置&#8220;LINK_CNTRL=L_PTHREADS_D7&#8221; <br />12。设置ORACLE_BASE（ORACLE_BASE） <br />此步不一定非要做，但如果你是一个OFA-compliant安装的话，建议设置。 <br />13。设置ORACLE_HOME（ORACLE_HOME） <br />一定要设置，例如：&#8220;ORACLE_HOME=$ORACLE_BASE/product/8.0.5&#8221; <br />14。设置ORACLE_SID（ORACLE_SID） <br />设置ORACLE的SID值，在同一个ORACLE &nbsp; SERVER上必须是唯一的值，ORACLE公司建议使用四个或更少字符。一般这个值为&#8220;ora8&#8221;小写 <br />15。设置ORACLE_TERM（ORACLE_TERM） <br />设置ORACLE终端类型，一般为&#8220;ORACLE_TERM=vt100&#8221; <br />16。设置ORA_NLS33（ORA_NLS33） <br />当建立的数据库的字符集不是US7ASCII时需指定这个值，一般为&#8220;ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data&#8221; <br />17。设置路径（PATH） <br />在路径设置中必须包括如下两项 <br />&#8220;$ORACLE_HOME/bin,/bin,/usr/lbin&#8221; <br />和 <br />&#8220;/usr/bin&#8221; <br />18。设置SRCHOME（SRCHOME） <br />如果设置了SRCHOME，在安装时的缺省路径就是它的指定的路径 <br />19。设置TWO_TASK（TWO_TASK） <br />不要设置TWO_TASK。在安装服务器端时，假如设定了它，并且你正在建立数据库对象，那么安装程序会企图在数据库中去建立这些对象。 <br />20。设置临时文件夹（TMPDIR） <br />安装需要一个至少20MB的文件增夹，在AIX上这个文件夹一般是&#8220;/tmp&#8221; <br />root用户的安装演示 <br />以root身份登录，进行以下安装ORACLE &nbsp; 8所需的几个环境设置。 <br />（1）建立安装点（Create &nbsp; Mount &nbsp; Points） <br />（2）为DBA建立UNIX组（Create &nbsp; UNIX &nbsp; Groups &nbsp; for &nbsp; Database &nbsp; Administrators） <br />（3）为ORACLE软件安装者建立UNIX账号（Create &nbsp; UNIX &nbsp; Account &nbsp; to &nbsp; Own &nbsp; Oracle &nbsp; Software） <br />（4）建立本地bin目录（Create &nbsp; a &nbsp; Local &nbsp; bin &nbsp; Directory） <br />（5）建立oratab文件（Create &nbsp; the &nbsp; oratab &nbsp; File） <br />（1）建立安装点（Create &nbsp; Mount &nbsp; Points） <br />当建立一个OFA-compliant安装时ORACLE8 &nbsp; SERVER需要至少4个安装点。一个用于软件文件，另三个用于数据库文件。 <br />所有的软件和数据库安装点的名字一般按ORACLE的匹配模式像这样&#8220;/pm&#8221;这里的&#8220;p&#8221;是一个字符串常量，&#8220;m&#8221;是一个定长的键值，用于区分各个安装点。例如&#8220;/u01&#8221;用于软件安装，&#8220;/u02&#8221;、&#8220;/u03&#8221;、&#8220;/u04&#8221;用于数据库安装。 <br />备注： <br />OFA-compliant &nbsp; installation是一种ORACLE推荐使用的标准目录结构。 <br />需要四个安装点是为了保证数据库的安全性，一旦某一个安装点数据毁坏后，系统还可以正常运行。 <br />（网友carf提供） <br />最灵活的结构的详细描述在《Oracle8 &nbsp; Administrator&#8217;s &nbsp; Reference &nbsp; for &nbsp; AIX》一书的第一章。 <br />（2）为DBA建立UNIX组（Create &nbsp; UNIX &nbsp; Groups &nbsp; for &nbsp; Database &nbsp; Administrators） <br />在安装期间，安装者要分配ORACLE &nbsp; DBA和OPERATOR的权限给UNIX组。ORACLE系统会引用UNXI组，象OSDBA和OSOPER组。在ORACLE系统和相应的UNIX组中这些组的成员应有DBA或OPERATOR的权力。在开始安装任务前，安装必须指定好这些组和角色。 <br />在AIX系统中，使用&#8220;smit&#8221;工具建立一个名为&#8220;dba&#8221;的组。当然，你也可以用其它名字，但是安装要&#8220;oracle&#8221;来执行。假如你计划为OSOPER指定一个单独的组，你也可去建立它。 <br />一般来说，建立了OSDBA组也就是建立了OSOPER组。在缺省情况下没有OPERATOR这个角色，因为这个角色的权力只不过是DBA的一个子集。 <br />（3）为ORACLE软件安装者建立UNIX账号（Create &nbsp; UNIX &nbsp; Account &nbsp; to &nbsp; Own &nbsp; Oracle &nbsp; Software） <br />&#8220;oracle&#8221;账号是一个UNIX账号，它是ORACLE分配的。你必须用这个账号来运行安装程序。在AIX系统中，可以使用操作系统的管理工具&#8220;smit&#8221;建立这样一个有如下属性的账户。 <br />Login &nbsp; Name：可以是任何值，但是它必须指向&#8220;oracle&#8221;账户（我自己也不太懂，可能是UID要与&#8220;oracle&#8221;的UID相同吧！） <br />Default &nbsp; GID：为OSDBA组的值。 <br />Home &nbsp; Directory：可以是系统的默认目录，不一定要与&#8220;ORACLE_HOME&#8221;中设置的一样。 <br />Login &nbsp; Shell：可以是bsh、ksh、csh没问题，系统一般默认为ksh。 <br />备注： <br />&#8220;oracle&#8221;账户应该仅用于安装和维护ORACLE软件。不要将它用在与ORACEL &nbsp; SERVER不相关的事情上。当使用&#8220;oracle&#8221;账户时，不要像一个数据库用户一样登录（没看懂，原文是这样的&#8220;Do &nbsp; not &nbsp; log &nbsp; in &nbsp; as &nbsp; a &nbsp; database &nbsp; user &nbsp; when &nbsp; using &nbsp; the &nbsp; oracle(UNIX) &nbsp; account.&#8221;） <br />另：可能安装多ORACLE &nbsp; SERVER在用的同一个共享的&#8220;oracle&#8221;账户，此时，这个账户就可存取其它的ORACLE &nbsp; SERVER，这是一个安全漏洞。所以在网上安装其它的ORACLE &nbsp; SERVER最好用不同的账户。 <br />（4）建立本地bin目录（Create &nbsp; a &nbsp; Local &nbsp; bin &nbsp; Directory） <br />有一个公用环境的可以让ORACLE的普通用户有非常简单的系统管理能力。建立这个公用环境的一部分内容就是建立一个本地&#8220;bin&#8221;目录，一个与&#8220;ORACLE_HOME&#8221;所设置目录不同的，用于共享软件的目录。我们可以按如下步骤进行。 <br />1、建立一个本地&#8220;bin&#8221;目录，例如&#8220;/usr/lbin&#8221;。 <br />2、确信这个目录的路径已包括在每个ORACLE用户的的路径设置（&#8220;PATH&#8221;环境变量）里面。 <br />安装程序将会放置&#8220;oraenv&#8221;（如果用C &nbsp; SHELL的话，就是&#8220;coraenv&#8221;）和&#8220;dbhome&#8221;这两个脚本程序到&#8220;$ORACLE_HOME/bin&#8221;目录下。安装完毕后运行&#8220;root.sh&#8221;脚本程序会将它们复制到&#8220;/usr/lbin&#8221;目录下。这是因为你不能用&#8220;root&#8221;用户运行安装程序，所以安装程序本身并不能将这两个脚本程序放在&#8220;/usr/lbin&#8221;目录。 <br />复制&#8220;oraenv&#8221;（或&#8220;coraenv&#8221;）和&#8220;dbhome&#8221;到本地&#8220;bin&#8221;目录，确保它们可继续提供一个公用环境，即使搜索路径被改动为指向一个与&#8220;ORACLE_HOME&#8221;不同的目录。 <br />你也可以将其它需要共享的软件放在这个本地&#8220;bin&#8221;目录，供所有人存取。 <br />（5）建立oratab文件（Create &nbsp; the &nbsp; oratab &nbsp; File） <br />关于ORACLE实体的一些的信息存储在&#8220;oratab&#8221;文件中。这个文件的所有者是&#8220;oracle&#8221;账户，但是在建立时存放在一个需要&#8220;root&#8221;权限的目录里。运行光盘安装点下的&#8220;/orainst/oratab.sh&#8221;脚本可以在&#8220;/etc&#8221;目录下建立&#8220;oratab&#8221;文件并设置权限。 <br />oracle用户的安装演示 <br />以&#8220;oracle&#8221;账户登录，并执行以下必须的步骤： <br />（1）设置文件建立许可（Set &nbsp; Permissions &nbsp; for &nbsp; File &nbsp; Creation） <br />（2）设置环境变量（Set &nbsp; Environment &nbsp; Variables） <br />（3）更新当前任务的环境变量（Update &nbsp; the &nbsp; Environment &nbsp; for &nbsp; Current &nbsp; Session） <br />（1）设置文件建立许可（Set &nbsp; Permissions &nbsp; for &nbsp; File &nbsp; Creation） <br />设置&#8220;umask&#8221;为&#8220;022&#8221;并确保整个组及其它ORACLE用户能读到并执行许可。要注意，不要在安装程序建立的文件中设置这个许可。我们可以按如下步骤做。 <br />1、在控制台输入&#8220;umask&#8221;命令检查当前设置。 <br />2、假如返回值不是&#8220;022&#8221;的话，将&#8220;umask &nbsp; 022&#8221;一句加入&#8220;.profile&#8221;或&#8220;.login&#8221;文件。 <br />（2）设置环境变量（Set &nbsp; Environment &nbsp; Variables） <br />在使用&#8220;oracle&#8221;账户开始安装之前，要在&#8220;.profile&#8221;或&#8220;.login&#8221;文件中设置以下环境变量，设置环境变量的语法如下 <br />语法： <br />B &nbsp; SHELL &nbsp; and &nbsp; K &nbsp; SHELL： <br />环境变量名=值; &nbsp; export环境变量名 <br />C &nbsp; SHELL： <br />serenv环境变量名 &nbsp; 值 <br />环境变量： <br />EXTSHM <br />这个环境变量与系统的扩展共享内存模式（Extended &nbsp; Shared &nbsp; Memory）有关，当安装ORACLE8 &nbsp; SERVER时必须这个环境变量的是关的。 <br />扩展共享内存模式（Extended &nbsp; Shared &nbsp; Memory）--AIX &nbsp; 4.2.1<br />这是第二部分 <br /><br /><br />ORA_NLS33 <br />当需要建立字符集不是&#8220;US7ASCII&#8221;的数据库或进行SERVER安装时就要指定这个环境变量的值，这个值为&#8220;$ORACLE_HOME/ocommon/nls/admin/data&#8221;。 <br />PATH <br />在路径值设置中，必须有如下内容 <br />&#8220;$ORACLE_HOME/bin,/bin,/usr/bin&#8221; <br />和 <br />本地bin目录路径 <br /><br />SRCHOME <br />如果设置了SRCHOME，在安装时的缺省路径就是它的指定的路径，一般不设置。 <br />TMPDIR <br />安装需要一个至少20MB的文件增夹，在AIX上这个文件夹一般是&#8220;/tmp&#8221; <br />TWO_TASK <br />不要设置TWO_TASK。在安装服务器端时，假如设定了它，并且你正在建立数据库对象，那么安装程序会企图在数据库中去建立这些对象。 <br />（3）更新当前任务的环境变量（Update &nbsp; the &nbsp; Environment &nbsp; for &nbsp; Current &nbsp; Session） <br />在对&#8220;oracle&#8221;账户的&#8220;.profile&#8221;或&#8220;.login&#8221;文件进行设置修改后，应更新当前任务的环境变量。 <br />对B &nbsp; SHELL或K &nbsp; SHELL用如下方式： <br />$./.profile &nbsp; （原文中是&#8220;$. &nbsp; .profile&#8221;，但这是不对的） <br />对于C &nbsp; SHELL用如下方式： <br />$source &nbsp; .login <br /><br />安装单独的ORACLE产品 <br />以下内容将演示安装所必需的步骤.表1-8到1-10包括了在SERVER发行和确定中需要的成功安装所必需的东西。 <br />Server，Cartridges &nbsp; and &nbsp; Options <br />ORACLE &nbsp; PARALLEL &nbsp; SERVER版本的选项-预安装步骤。 <br />当建立一个ORACLE &nbsp; PARALLEL &nbsp; SERVER系统时，安装程序会在一个节点安装ORACLE产品，然后为组中其它节点复制所需的文件和设置。完全安装完毕后所有的节点看上去是一样的。 <br />安装ORACLE系统前，请参照你自己的系统查看下表： <br />存储类型 &nbsp; 为所有控制文件、日志文件和数据库文件使用裸设备。 <br />当提示要文件名时，使用以&#8220;r&#8221;开始的设备名。例如使用&#8220;/dev/rlv1&#8221;代替&#8220;/dev/lv1&#8221; &nbsp; 注：在IBM &nbsp; RS/6000 &nbsp; SP上裸设置必需是VSDs或HSDs。 <br />文件大小 &nbsp; 当安装程序提示要文件大小时，指定至少4KB的裸设备大小。当用MB方式指定大小时，要指定1MB。 <br />控制文件大小由ORACLE8 &nbsp; SERVER决定。最小的大小是220KB，确定你有这么多。 <br /><br />Complete &nbsp; the &nbsp; following &nbsp; steps &nbsp; before &nbsp; installing &nbsp; the &nbsp; Parallel &nbsp; Server &nbsp; Option: <br />在安装Parallel &nbsp; Server选项前，请完成以下步骤： <br />root用户安装步骤 <br />1. &nbsp; 确定你在所有的节点上有一个OSDBA组。同时在所有的节点上这个组的组名和ID值要是一样的。如果你有OSOPER组的话，也要遵守以上规定。缺省的OSDBA和OSOPER组是&#8220;dba&#8221;。 <br />2. &nbsp; 在每一个节点上建立一个&#8220;oracle&#8221;账户，并且要遵守如下规定： <br />a) &nbsp; 这个账户属于OSDBA组 <br />b) &nbsp; 这个账户仅用于安装和升级ORACLE软件 <br />c) &nbsp; 这个账户在远程目录上有写权限 <br />3. &nbsp; 在每一个节点建立一个安装点目录作为ORACLE软件目录结构的最上一级，并且要遵守如下规定： <br />a) &nbsp; 在每一个节点上的安装点的名字要与第一个节点上的安装点的名相同。 <br />b) &nbsp; &#8220;oracle&#8221;账户有读、写、和执行的权限。 <br />4. &nbsp; 为数据库文件和GMS_QUERY_FILE建立裸卷。 <br />所有与Oracle &nbsp; Parallel &nbsp; Server数据库有关的文件都必放在裸卷上，这样它们才能被组中所有的节点存取。控制文件和数据对所有的instances都是共享的。每一个instance都有它自己的日志文件，但在数据恢复时，所有instances必需要存取所有的日志文件。 <br />5. &nbsp; 对于&#8220;HACMP/6000 &nbsp; Clusters&#8221;有如下规定： <br />&#8220;oracle&#8221;账户对&#8220;/usr/lpp/csd/bin/machines.lst&#8221;文件有读的权限。 <br />6. &nbsp; 增加HC &nbsp; PING_DELAY，并且确定HC &nbsp; daemon已经运行。在独占式的使用ORACLE8时一个HC &nbsp; daemon必须运行。 <br />注：HC：HC &nbsp; daemon提供节点成员信息给ORACLE组成员服务（Oracle &nbsp; Group &nbsp; Membership &nbsp; Services）。在GMS或ORACLE运行之前，HC必需运行在一个节点。 <br />7. &nbsp; Set &nbsp; up &nbsp; user &nbsp; equivalence &nbsp; by &nbsp; adding &nbsp; entries &nbsp; for &nbsp; the &nbsp; other &nbsp; nodes &nbsp; in &nbsp; the &nbsp; cluster &nbsp; to &nbsp; the &nbsp; .rhosts &nbsp; file &nbsp; of &nbsp; the &nbsp; oracle &nbsp; account, &nbsp; or &nbsp; the &nbsp; /etc/hosts.equiv &nbsp; file. <br />当以步骤完成后，退出&#8220;oracle&#8221;账户。 <br /><br />++++++++++++++++++++++++++++++++++++++++ <br />因暂不进行Parallel &nbsp; Server的安装，所以本节不翻译 <br />++++++++++++++++++++++++++++++++++++++++ <br /><br />安装 <br />本章主要内容为用安装程序进行一个新的ORACLE8 &nbsp; SERVER的安装。本章有如下内容： <br />l &nbsp; 启动安装程序 <br />l &nbsp; 安装程序提示 <br />l &nbsp; 安装时的文档 <br />l &nbsp; 检验安装程序的工作 <br />本章不会讨论安装程序在其它任务上的应用，如安装补丁程序或重连接执行。如果对安装的其它方面有疑惑或安装过程有其它问题，请参看附录A&#8220;使用ORACLE安装程序&#8221;。 <br />启动安装程序 <br />确定已经设置好了&#8220;ORACLE_HOME&#8221;和&#8220;ORACLE_BASE&#8221;。 <br />执行如下步骤，从光盘上运行安装程序。 <br />l &nbsp; Mount产品安装用的光盘 <br />l &nbsp; 运行安装程序 <br />Mount产品安装用的光盘 <br />ORACLE产品安装光盘是RockRidge格式，AIX支持这种格式。 <br />1. &nbsp; 将产品安装光盘放入光驱。 <br />2. &nbsp; 以&#8220;root&#8221;账户登录，建立一个光盘的安装目录，并且让它能被所有用户存取： <br />如下所示： <br />$ &nbsp; su &nbsp; root <br /># &nbsp; mkdir &nbsp; CD_mount_point <br /># &nbsp; chmod &nbsp; 777 &nbsp; CD_mount_point <br />3. &nbsp; Mount光盘并退出&#8220;root&#8221;账户 <br /># &nbsp; mount &nbsp; options &nbsp; device_name &nbsp; CD_mount_point <br /># &nbsp; exit <br />例：Mount产品光盘 <br />$ &nbsp; su &nbsp; root <br /># &nbsp; mkdir &nbsp; /cdrom <br /># &nbsp; chmod &nbsp; 777 &nbsp; /cdrom <br /># &nbsp; /etc/mount &nbsp; -rv &nbsp; cdrfs &nbsp; /dev/cd0 &nbsp; /cdrom <br /># &nbsp; exit <br /><br />运行&#8220;rootpre.sh&#8221;脚本 <br />停止所有当前正在运行的数据库，以&#8220;root&#8221;身份运行rootpre.sh。 <br />1. &nbsp; 如果以前安装了ORACLE，则用ORACLE所有者的身份停止本机所有还在运行的数据库。 <br />2. &nbsp; 以&#8220;root&#8221;身份登录，进入光盘的&#8220;orainst&#8221;目录 <br />$ &nbsp; su &nbsp; root <br /># &nbsp; cd &nbsp; mount_point/orainst <br />3. &nbsp; 运行rootpre.sh并且退出root账户。 <br /># &nbsp; ./rootpre.sh <br /># &nbsp; exit <br />注：如果你安装的是Oracle &nbsp; Parallel &nbsp; Server选项，则你要在安装前在所有节点上运行rootpre.sh脚本。 <br />例：运行rootpre.sh脚本。 <br />$ &nbsp; su &nbsp; root <br /># &nbsp; cd &nbsp; /cdrom/orainst <br /># &nbsp; ./rootpre.sh <br /># &nbsp; exit <br />运行安装程序 <br />以&#8220;oracle&#8221;账号登录，改变当前为CD-ROM &nbsp; /orainst。 <br />$ &nbsp; cd &nbsp; mount_point/orainst <br />以字符模式运行安装程序： <br />$ &nbsp; ./orainst &nbsp; /c <br />或以图形模式运行安装： <br />$ &nbsp; ./orainst &nbsp; /m <br />例：从光盘中运行ORACLE安装 <br />$ &nbsp; cd &nbsp; /cdrom/orainst <br />$ &nbsp; ./orainst &nbsp; /c <br /><br />非交互式安装 <br />安装程序能从个安装过程中记录所有响应，然后将这些响应用于以后的安装。这种&#8220;安静模式（silent &nbsp; mode）&#8221;能用于多个相似的安装。关于这类安装的详细信息，请参看附录A的&#8220;缺省安装与重复安装（Default &nbsp; and &nbsp; Repeat &nbsp; Installations）&#8221;。 <br />安装提示 <br />安装过程中有一系列的提示，这些提示都显示在安装的窗口里。 <br />最初的安装提示 <br />不管你安装的是演示版还是正式的产品，每个安装过程都会有一个最初的安装提示。你可能选择是进行缺省安装还时选择安装。 <br />如果你选择进行缺省安装，并决定建立一个数据库，安装程序会复制一个已预先建立好的数据文件到指定的安装点，并将用这个数据文件自动建立一个数据库并建立新的控制文件。这样可以节约装入数据目录创建脚本的时间。备注：在文件系统中，预先建立好的数据文件仅用于缺省安装。 <br />安装类型/RAEDME文件 <br />安装程序让你在自定安装和缺省安装中进行选择。假如你指定了缺省路径，安装程序将显示和使用这个设定，并询问你是否确定用它。 <br />备注：缺省路径假定你从光盘中安装。假如你是从其它区域进行安装，你将不能用缺省安装路径。 <br />安装行动选择 <br />指定你想进行的安装自动： <br />l &nbsp; 安装，升级或反安装 <br />l &nbsp; 建立/升级数据库对象 <br />l &nbsp; 执行管理任务安装选项 <br />安装程序为安装软件提供两种基本选择：安装新产品和安装/升级软件。你可用任一选项安装ORACLE &nbsp; 8 &nbsp; SERVER。 <br />安装新产品选项建立一个OFA-compliant的目录结构。安装/升级软件选项则不一定要求OFA-compliant，并且不让你在这类安装任务中建立数据库对象。 <br />对于Parallel &nbsp; Server： <br />When &nbsp; installing &nbsp; the &nbsp; initial &nbsp; instance &nbsp; of &nbsp; an &nbsp; Oracle &nbsp; Parallel &nbsp; Server &nbsp; system, &nbsp; select &nbsp; the &nbsp; Install &nbsp; New &nbsp; Product &nbsp; or &nbsp; Add/Upgrade &nbsp; Software &nbsp; option, &nbsp; not &nbsp; the &nbsp; install &nbsp; Oracle8 &nbsp; on &nbsp; Cluster &nbsp; option. <br />不能存取oratab文件 <br />这个提示仅在安装程序不能存取&#8220;/etc/oratab&#8221;文件时出现。请查阅&#8220;root用户的安装演示&#8221;一节建立oratab文件。 <br />连续存储管理（Legato &nbsp; Storage &nbsp; Manager）安装 <br />当建立一个数据库时，可以使用连续存储管理。因为Legato &nbsp; daemon必需用root用户运行，运行root.sh脚本完成LSM的安装。请查阅&#8220;连续存储管理快速安装一文（Post-Installation &nbsp; Steps &nbsp; for &nbsp; Legato &nbsp; Storage &nbsp; Manager &nbsp; (LSM)）&#8221;。 <br />安装位置 <br />假如&#8220;ORACLE_BASE&#8221;在环境变量中已设置，安装程序会提示你确定这个设置，对于&#8220;ORACLE_HOME&#8221;设置也是如此。假如&#8220;ORACLE_BASE&#8221;没有设置，安装程序会提示你要一个软件安装点，要完整的路径名，对于&#8220;ORACLE_HOME&#8221;设置也是如此。 <br />&#8220;ORACLE_SID&#8221;环境变量是一个ORACLE系统的标志符，它是ORACLE &nbsp; SERVER实体的名字。 <br />安装过程日志文件 <br />安装程序为安装过程建立四个记录文件，各自是为下列每类活动建立的：操作系统，安装程序，SQL和makefile。缺省的安装过程日志文件的位置是在&#8220;$ORACLE_HOME/orainst&#8221;目录下。假如在这个目录下已存在了日志文件，安装程序将会把它们改名为&#8220;filename.old&#8221;。 <br />安装源 <br />指定安装源，不管是人光盘不是从一个存储区（&#8220;staging &nbsp; area&#8221;-内存光盘上的内容，用于脱盘光盘的安装。但要求你有够的空间。又分临时的和永久的两种）。详情请查阅附录A。 <br />国家语言支持 <br />从ORACLE产品的国家语言支持（National &nbsp; Language &nbsp; Support &nbsp; (NLS) &nbsp; ）指定一种屏幕回应语言。注意这仅仅是缺省的语言；用户和客户端应用也可在session级别设置其它用于信息显示的语言。安装程序的提示和消息一直都是美式英语。 <br />备注：附录C列出了可用的字符集设置。 <br />root.sh的位置 <br />安装程序在&#8220;$ORACLE_HOME/orainst&#8221;目录下建立root.sh脚本。在后面的安装过程中，这个脚本必须由root用户执行。假如root.sh脚本已经存在，安装程序会提示是否对它追加新内容，还是建立新的脚本。通常，你会建立一个新的文件，除非你有基它的原因才会对它追加新内容。 <br />软件资源管理 <br />软件资源管理跟踪你分配的目录和目录中可用<br />软件资源管理屏幕的详细说明在附录A。 <br /><br />OSDBA组 <br />安装程序会显示要你选择一个用户组赋给ORACLE &nbsp; DBA的权限。它是oracle账户缺省的主要组。假如这个组的名称不是&#8220;dba&#8221;，安装程序在执行完毕后会重链接oracle执行。 <br />OSOPER组 <br />你可以选择一个有更多的限制的ORACLE &nbsp; OPERATOR权力的单独的UNIX组，这个组安装程序称之为OSOPER组。缺省情况下，它就是OSDBA组，在这种情况下没有单独的用户组是使用OPERATOR权力的。假如你选择不是&#8220;dba&#8221;的另一个组，安装程序在执行完毕后会重链接oracle执行。 <br />假如你用&#8220;设置环境变量&#8221;一节中所说的方法为OPERATOR权力建立了一个组，就应在提示中输入这个名字，如果没有，就使用缺省值。 <br />实体名 <br />实体名或者叫SID，应该是不超四位长的唯一的值。实体名是在环境变量&#8220;ORACLE_SID&#8221;中指定的。在单一实体安装（single-instance &nbsp; installations）中，它一般与&#8220;DB_NAME&#8221;的初始参数相同。 <br />Oracle &nbsp; Parallel &nbsp; Server &nbsp; Only: <br />The &nbsp; sid &nbsp; for &nbsp; each &nbsp; instance &nbsp; in &nbsp; a &nbsp; Parallel &nbsp; Server &nbsp; cluster &nbsp; should &nbsp; be &nbsp; unique &nbsp; and &nbsp; should &nbsp; incorporate &nbsp; the &nbsp; name &nbsp; of &nbsp; the &nbsp; database &nbsp; it &nbsp; manipulates. &nbsp; For &nbsp; example, &nbsp; the &nbsp; instance &nbsp; names &nbsp; for &nbsp; the &nbsp; database &nbsp; PRO &nbsp; might &nbsp; be &nbsp; PRO1, &nbsp; PRO2, &nbsp; and &nbsp; PRO3. <br />Note &nbsp; that &nbsp; certain &nbsp; applications, &nbsp; such &nbsp; as &nbsp; Tuxedo, &nbsp; require &nbsp; that &nbsp; the &nbsp; sid &nbsp; be &nbsp; identical &nbsp; for &nbsp; all &nbsp; instances. &nbsp; In &nbsp; this &nbsp; case, &nbsp; each &nbsp; instance &nbsp; must &nbsp; have &nbsp; a &nbsp; distinct &nbsp; $ORACLE_HOME/dbs &nbsp; directory. <br />数据库建立提示 <br />当你使用安装程序建立数据库时，会出现以下提示。 <br />存储类型：文件系统或裸设备 <br />指定存储类型，不管是裸设备或文件系统。仅Oracle &nbsp; Parallel &nbsp; Server需要裸设备，虽然裸设备也能用于单一实体安装。 <br />安装点号(Number &nbsp; of &nbsp; Mount &nbsp; Points) <br />假如你安装服务器端， <br />************************************************************************************************ <br />附录： <br />一、ORACLE+TUXEDO环境下的 &nbsp; &#8220;.profile&#8221; <br />PATH=/usr/local/bin:/usr/vac/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:. <br />export &nbsp; PATH <br />ORACLE_BASE=/usr/oracle/app/oracle;export &nbsp; ORACLE_BASE <br />ORACLE_OWNER=oracle;export &nbsp; ORACLE_OWNER <br />ORACLE_HOME=$ORACLE_BASE/product/8.0.5;export &nbsp; ORACLE_HOME <br />ORACLE_SID=ora8;export &nbsp; ORACLE_SID <br />LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib:$ORACLE_HOME/rdbms/lib;export &nbsp; LD_LIBRARY_PATH <br />LIBPATH=$ORACLE_HOME/lib:/usr/lib;export &nbsp; LIBPATH <br />LINK_CNTRL=L_PTHREADS_D7;export &nbsp; LINK_CNTRL <br />ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data;export &nbsp; ORA_NLS32 <br />TMPDIR=/tmp;export &nbsp; TMPDIR <br />PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH:/sharefs/tuxedo/bin:$HOME:/usr/bin;export &nbsp; PATH <br />ORACLE_TERM=vt100;export &nbsp; ORACLE_TERM <br />NLS_LANG=american_america.us7ascii;export &nbsp; NLS_LANG <br />BILLPATH=/sharefs/bill <br />export &nbsp; BILLPATH <br />BCPPATH=$ORACLE_HOME/bin <br />export &nbsp; BCPPATH <br />PATH=$BILLPATH/bin:$PATH <br />export &nbsp; PATH <br />set &nbsp; -o &nbsp; vi <br /><br />if &nbsp; [ &nbsp; -s &nbsp; &#8220;$MAIL&#8221; &nbsp; ] &nbsp; # &nbsp; This &nbsp; is &nbsp; at &nbsp; Shell &nbsp; startup. &nbsp; In &nbsp; normal <br />then &nbsp; echo &nbsp; &#8220;$MAILMSG&#8221; &nbsp; # &nbsp; operation, &nbsp; the &nbsp; Shell &nbsp; checks <br /><br />fi &nbsp; # &nbsp; periodically. <br /><br />#---------------tuxedo------------------ <br />TUXDIR=/sharefs/tuxedo <br />APPDIR=/sharefs/bin <br />#TUXCONFIG=/sharefs/whjf/pay/src/tuxconfig <br />TUXCONFIG=/sharefs/tuxedo/bin/tuxconfig <br />TLOGDEVICE=$APPDIR/TLOGDEV <br />PATH=$TUXDIR/bin:$TUXDIR/include:$ORACLE_HOME/precomp/public:$ORACLE_HOME/precomp/lib:/sharefs/unix/unixnetprog/ADVIO:$PATH <br />export &nbsp; PATH <br />#LD_LIBRARY_PATH=/usr/lib:/lib:/u/informix/lib: <br />LD_LIBRARY_PATH=$TUXDIR/lib:${SHLIB_PATH:-} <br /><br />NLSPATH=$TUXDIR/locale/C/%N <br />LANG=C <br />export &nbsp; TUXDIR &nbsp; APPDIR &nbsp; PATH &nbsp; LD_LIBRARY_PATH <br />export &nbsp; NLSPATH &nbsp; LANG <br />export &nbsp; TUXCONFIG &nbsp; TLOGDEVICE <br /><br />LIBPATH=$TUXDIR/lib:$LIBPATH; &nbsp; export &nbsp; LIBPATH <br />#--------------tuxedo------------------ <br /><br />PASSWD=product <br />USER=product <br />CONNECTSTR= <br />export &nbsp; PASSWD &nbsp; USER &nbsp; CONNECTSTR&nbsp;&nbsp; <br /><br />增加用户： <br />useradd &nbsp; oradba <br /><br />增加组： <br />mkgrp &nbsp; oracle <br /><br />更改用户所属组： <br />usermod &nbsp; -g &nbsp; oralce &nbsp; oradba <br /><br />更改用户密码： <br />passwd &nbsp; oradba <br /><br />新建目录： <br />mkdir &nbsp; /home/oradba <br /><br />更改目录属主： <br />chown &nbsp; oradba &nbsp; /home/oradba <br /><br />更改目录所属组： <br />chgrp &nbsp; oracle &nbsp; /home/oradba <br /><br />进入smit菜单： <br />smit <br /><br />增加一个逻辑卷(LV): <br />add &nbsp; a &nbsp; logical &nbsp; volume <br />name:oralce <br />VG:rootvg <br />PV:hdisk0 <br />number &nbsp; of &nbsp; LPs:1 <br />(mklv &nbsp; -y &nbsp; 'oralce ' &nbsp; rootvg &nbsp; 1 &nbsp; hdisk0) <br /><br />增加一个文件系统(JFS) ": <br />add &nbsp; JFS <br />fs &nbsp; name: &nbsp; /oralce <br />new &nbsp; mount &nbsp; point:/oracle <br />size &nbsp; of &nbsp; fs:14024740(7G) <br />automount:yes <br /><br />更改目录属主： <br />chown &nbsp; oralce &nbsp; /oracle <br /><br />更改目录所属组： <br />chgrp &nbsp; oracle &nbsp; /oracle <br /><br />logout，以oradba登录: <br /><br />刪除临时文件： <br />rm &nbsp; -rf &nbsp; /tmp/* <br /><br />增加/tmp空间大小：(65536-&gt; 955360) <br />chfs &nbsp; -a &nbsp; size= '955360 ' &nbsp; /tmp <br />更改目录属性(改为可写)： <br />chmod &nbsp; a+w &nbsp; /tmp <br /><br />新建光驱mount &nbsp; point： <br />mkdir &nbsp; /mnt/cdrom <br /><br />mount &nbsp; 光驱： <br />mount &nbsp; -v &nbsp; cdrfs &nbsp; -o &nbsp; ro &nbsp; /dev/cd0 &nbsp; /mnt/cdrom &nbsp; <br /><br />cd &nbsp; /mnt/cdrom <br /><br />bash &nbsp; runInstaller <br />开始安装。 <br /><br />设置安装参数： <br />Oracle &nbsp; Home &nbsp; Name:orahome <br />path: &nbsp; /oracle/orahome <br />type:Enterprise &nbsp; Edition(3.2G) <br />Database &nbsp; Configuration:General &nbsp; Purpose <br />OSDBA &nbsp; Group:oracle <br />OSPER &nbsp; Group:oracle <br />Global &nbsp; Database &nbsp; Name:oradb1 <br />SID:oradb1 <br />Directory &nbsp; for &nbsp; Database &nbsp; Files:/oracle/oradb/data <br /><br /><br />设置环境变量： <br />vi &nbsp; /home/oradba/.profile <br />export &nbsp; JAVA_HOME=/usr/java130 <br />export &nbsp; CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib <br />export &nbsp; PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin <br />export &nbsp; ORACLE_BASE=/oracle &nbsp; <br />export &nbsp; ORACLE_HOME=$ORACLE_BASE/orahome <br />export &nbsp; ORACLE_SID=oradb1 <br />export &nbsp; LD_LIBRARY_PATH=$/ORACLE_HOME/lib <br />export &nbsp; ORA_NLS32=$ORACLE_HOME/ocommon/nls/admin/data <br />export &nbsp; PATH=$PATH:$ORACLE_HOME/bin <br />export &nbsp; TMPDIR=/tmp <br /><br /><img src ="http://www.blogjava.net/qwun/aggbug/360977.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/qwun/" target="_blank">噜噜</a> 2011-10-11 16:54 <a href="http://www.blogjava.net/qwun/archive/2011/10/11/360977.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Oracle自动启动（解决了Failed to auto-start Oracle Net Listene和Message 1053 not found错误）</title><link>http://www.blogjava.net/qwun/archive/2011/10/11/360974.html</link><dc:creator>噜噜</dc:creator><author>噜噜</author><pubDate>Tue, 11 Oct 2011 08:44:00 GMT</pubDate><guid>http://www.blogjava.net/qwun/archive/2011/10/11/360974.html</guid><wfw:comment>http://www.blogjava.net/qwun/comments/360974.html</wfw:comment><comments>http://www.blogjava.net/qwun/archive/2011/10/11/360974.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/qwun/comments/commentRss/360974.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/qwun/services/trackbacks/360974.html</trackback:ping><description><![CDATA[<div class="posthead">执行dbstart启动数据库时报错<br />Failed to auto-start Oracle Net Listene using /ade/vikrkuma_new/oracle/bin/tnslsnr<br />看来是listener服务没有起来，但是执行lsnrctl start却能启动listener服务。<br />搜索dbstart文件中的tnslsnr字符串<br /><br />grep tnslsnr dbstart<br /><br />返回结果:<br /><font color="#006400">&nbsp; if [ -f $ORACLE_HOME_LISTNER/bin/tnslsnr ] ; then<br />&nbsp;&nbsp;&nbsp; echo "Failed to auto-start Oracle Net Listene using $ORACLE_HOME_LISTNER/bin/tnslsnr"<br /></font><br />看来可能是ORACLE_HOME_LISTNER环境变量引起的，查找 ORACLE_HOME_LISTNER<br /><br />grep ORACLE_HOME_LISTNER dbstart<br /><br />返回结果<br /><font color="#006400"># 3) Set ORACLE_HOME_LISTNER<br />ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle<br />if [ ! $ORACLE_HOME_LISTNER ] ; then<br />&nbsp; echo "ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener"<br />&nbsp; LOG=$ORACLE_HOME_LISTNER/listener.log<br />&nbsp; if [ -f $ORACLE_HOME_LISTNER/bin/tnslsnr ] ; then<br />&nbsp;&nbsp;&nbsp; $ORACLE_HOME_LISTNER/bin/lsnrctl start &gt;&gt; $LOG 2&gt;&amp;1 &amp;<br />&nbsp;&nbsp;&nbsp; export VER10LIST=`$ORACLE_HOME_LISTNER/bin/lsnrctl version | grep "LSNRCTL for " | cut -d' ' -f5 | cut -d'.' -f1`<br />&nbsp;&nbsp;&nbsp; echo "Failed to auto-start Oracle Net Listene using $ORACLE_HOME_LISTNER/bin/tnslsnr"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $LOGMSG "Restart Oracle Net Listener using an alternate ORACLE_HOME_LISTNER: lsnrctl start"<br /></font><br />其中有一段给ORACLE_HOME_LISTNER环境变量赋值，但是这个路径是不对的，编辑dbstart文件<br />vi dbstar<br />将该行改为<font color="#ff0000">export ORACLE_HOME_LISTNER=$ORACLE_HOME</font><br />保存退出，然后执行dbstart就没问题了。呵呵<br /><br />想系统启动是自动启动数据库可以通过修改/etc/rc.d/rc.local文件<br />一开始我写的命令是 <br />su oracle -c ora_App/product/10.2.0/db_1/bin/lsnrctl start<br />su oracle -c ora_App/product/10.2.0/db_1/bin/dbstart<br />但是su oracle -c ora_App/product/10.2.0/db_1/bin/lsnrctl start是参数start不起作用，它进入了lsnrctl命令提示符，并没有启动，后来把命令用双引号引起来就可以了如下：<br />su oracle -c "ora_App/product/10.2.0/db_1/bin/lsnrctl start"<br />是可以启动了，但是启动时报错如下:<br />Message 1053 not found; No message file for product=network, facility=TNSTNS-12541: Message 12541 not found; No message file for product=network, facility=TNS<br />TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS<br />但是如果我用oracle用户登陆执行lsnrctl start就不报错，看来是在root用户中执行su oracle -c "ora_App/product/10.2.0/db_1/bin/lsnrctl start"有些Oracle环境变量没有设置。查了一下su 命令的参数，其中有个-l参数<br />&nbsp;-.-l或--login 　改变身份时，也同时变更工作目录，以及HOME,SHELL,USER,LOGNAME。此外，也会变更PATH变量。 &nbsp;<br />加上参数<br /><font color="#ff0000">su oracle -lc "ora_App/product/10.2.0/db_1/bin/lsnrctl start"</font><br /></div><img src ="http://www.blogjava.net/qwun/aggbug/360974.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/qwun/" target="_blank">噜噜</a> 2011-10-11 16:44 <a href="http://www.blogjava.net/qwun/archive/2011/10/11/360974.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Install VirtualBox Guest Additions in CentOS (RedHat) Linux Guest</title><link>http://www.blogjava.net/qwun/archive/2011/02/21/344782.html</link><dc:creator>噜噜</dc:creator><author>噜噜</author><pubDate>Mon, 21 Feb 2011 14:24:00 GMT</pubDate><guid>http://www.blogjava.net/qwun/archive/2011/02/21/344782.html</guid><wfw:comment>http://www.blogjava.net/qwun/comments/344782.html</wfw:comment><comments>http://www.blogjava.net/qwun/archive/2011/02/21/344782.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/qwun/comments/commentRss/344782.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/qwun/services/trackbacks/344782.html</trackback:ping><description><![CDATA[<h2>Install VirtualBox Guest Additions in CentOS (RedHat) Linux Guest</h2>
<p>When you try to install the VirtualBox Guest Additions for a
Linux guest system, this will fail due to some weired &#8216;features&#8217; in the
installation. This post is based on my experience with VirtualBox 3.0.6.</p>
<p>To perform the installation do the following:<br />
Choose <tt>Install Guest Additions...</tt> from the VirtualBox menu. Open a terminal window in your guest system. Do a </p>
<p><code>cd /media/VBOXADDITIONS_3.0.6_52128/</code><br />
(the foldername will change depending on the VBox version). Proceed as described below.<br />
</p>
<h3>1. Cannot execute .run file</h3>
<p>When you try to execute the installation file (e.g. VBoxLinuxAdditions-amd64.run), you get an error message like this</p>
<pre>[root@integration /]# cd /media/VBOXADDITIONS_3.0.6_52128/<br />
[root@integration VBOXADDITIONS_3.0.6_52128]# ./VBoxLinuxAdditions-amd64.run<br />
-bash: ./VBoxLinuxAdditions-amd64.run: /bin/sh: bad interpreter: Permission denied</pre>
<p>The solution is to use the command</p>
<p><code>sh VBoxLinuxAdditions-amd64.run</code></p>
<p>instead (choosing the right architecture, it was 64bit in this case).</p>
<h3>2. Installer complains about missing gcc and Linux kernel headers</h3>
<p>The solution to this is to update your kernel to the latest version
and install headers and sources for it. VirtualBox requires to compile
some drivers when it installs.</p>
<p>Just execute<br />
<code>yum update kernel<br />
yum install gcc<br />
yum install kernel-devel</code><br />
.<br />
Run the installer again and everything should be ok.</p>
<img src ="http://www.blogjava.net/qwun/aggbug/344782.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/qwun/" target="_blank">噜噜</a> 2011-02-21 22:24 <a href="http://www.blogjava.net/qwun/archive/2011/02/21/344782.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转]需要oracle补丁的请进来，oracle 补丁下载新方法</title><link>http://www.blogjava.net/qwun/archive/2009/11/18/302805.html</link><dc:creator>噜噜</dc:creator><author>噜噜</author><pubDate>Wed, 18 Nov 2009 07:48:00 GMT</pubDate><guid>http://www.blogjava.net/qwun/archive/2009/11/18/302805.html</guid><wfw:comment>http://www.blogjava.net/qwun/comments/302805.html</wfw:comment><comments>http://www.blogjava.net/qwun/archive/2009/11/18/302805.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/qwun/comments/commentRss/302805.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/qwun/services/trackbacks/302805.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;<a href='http://www.blogjava.net/qwun/archive/2009/11/18/302805.html'>阅读全文</a><img src ="http://www.blogjava.net/qwun/aggbug/302805.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/qwun/" target="_blank">噜噜</a> 2009-11-18 15:48 <a href="http://www.blogjava.net/qwun/archive/2009/11/18/302805.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Considerations on Oracle RDW vs RDM written by Alvaro Silva under ORDW, Oracle Retail </title><link>http://www.blogjava.net/qwun/archive/2009/11/18/302778.html</link><dc:creator>噜噜</dc:creator><author>噜噜</author><pubDate>Wed, 18 Nov 2009 03:21:00 GMT</pubDate><guid>http://www.blogjava.net/qwun/archive/2009/11/18/302778.html</guid><wfw:comment>http://www.blogjava.net/qwun/comments/302778.html</wfw:comment><comments>http://www.blogjava.net/qwun/archive/2009/11/18/302778.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/qwun/comments/commentRss/302778.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/qwun/services/trackbacks/302778.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;<a href='http://www.blogjava.net/qwun/archive/2009/11/18/302778.html'>阅读全文</a><img src ="http://www.blogjava.net/qwun/aggbug/302778.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/qwun/" target="_blank">噜噜</a> 2009-11-18 11:21 <a href="http://www.blogjava.net/qwun/archive/2009/11/18/302778.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>开博庆祝！</title><link>http://www.blogjava.net/qwun/archive/2007/09/20/146866.html</link><dc:creator>噜噜</dc:creator><author>噜噜</author><pubDate>Thu, 20 Sep 2007 10:08:00 GMT</pubDate><guid>http://www.blogjava.net/qwun/archive/2007/09/20/146866.html</guid><wfw:comment>http://www.blogjava.net/qwun/comments/146866.html</wfw:comment><comments>http://www.blogjava.net/qwun/archive/2007/09/20/146866.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/qwun/comments/commentRss/146866.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/qwun/services/trackbacks/146866.html</trackback:ping><description><![CDATA[打算好好的改变自己不做笔记的习惯<img src="/CuteSoft_Client/CuteEditor/images/emsad.gif" align="absMiddle" border="0"  alt="" />
<img src ="http://www.blogjava.net/qwun/aggbug/146866.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/qwun/" target="_blank">噜噜</a> 2007-09-20 18:08 <a href="http://www.blogjava.net/qwun/archive/2007/09/20/146866.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>