转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 数据库 >> MySql >> 正文
all installing oracle9i documents under linux platform         ★★★★

all installing oracle9i documents under linux platform

作者:闵涛 文章来源:闵涛的学习笔记 点击数:7003 更新时间:2009/4/22 20:45:34
/oracle/product/9.2.0
export ORACLE_SID=test
export ORACLE_TERM=xterm
# export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
  
# Set shell search paths
export PATH=$PATH:$ORACLE_HOME/bin
  
I successfully installed Oracle9iR2 without setting the following CLASSPATH environment variable:  
# CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
# CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
# export CLASSPATH
  
You can put these environment settings at the end of the ~oracle/.bash_profile file if you use bash. By this way you don''''t have to set the environment variables again when you login as "oracle", or when you switch to the user "oracle" by executing "su - oracle".  
  
Starting runInstaller  
  
Before you continue, make sure you have set the Oracle environment variables, see above.  
  
Oracle no longer supports a character mode installer. Therefore, in order to execute runInstaller directly from a console of a machine you are logged into (in this example the node name where Oracle is running is called "oracleserver"), you need to set the DISPLAY environment variable. Before you do that, make sure that you also allow runInstaller on "oracleserver" to display X information on your Linux desktop machine (in this example, the PC name where you are running X Windows like KDE or GNOME is called "yourdesktop"), because programs running on remote machines cannot display information to your screen unless you give them the authority to do so. Note that the X display relink mechanism does not work for NT desktop machines unless you use Exceed.
  
Before you run runInstaller, execute e.g. ''''xterm'''' to see if your X setup is really working! If you install Oracle on your desktop PC and not on a remote node, then you can skip step 1 and 3.
  
Step 1: Allow "oracleserver" to display X information to your desktop PC "yourdesktop":
  
   yourdesktop:user$ xhost +oracleserver
Step 2: Open a new window and login to the Oracle server "oracleserver" as root. This window will be used for mounting and unmounting the Oracle CDs.  
   oracleserver:$ su - root
   oracleserver:root# mount /mnt/cdrom
  
Step 3: From the console of your Oracle server "oracleserver" where you will run runInstaller, execute the following commands:  
   oracleserver:$ su - oracle
   oracleserver:oracle$ export DISPLAY=yourdesktop:0.0
Step 4: Now execute runInstaller as "oracle". Do not cd to /mnt/cdrom !!  
   oracleserver:oracle$ /mnt/cdrom/runInstaller
  
NOTE:
Don''''t run runInstaller for Red Hat Enterprise Linux Advanced Server 3 (RHEL AS 3) yet! See Running Oracle Installation on Red Hat Enterprise Linux Advanced Server 3 for more information.  
  
Running Oracle Installation on RH 7.1, 7.2, 7.3, 8.0, 9, and on RH AS 2.1  
  
Keep in mind that you will get one or more errors here during the Oracle installation! See Oracle Installation Errors for more information.
  
This is how I answered the questions for the runInstaller:
  
- What would you like as the base directory (Inventory Location):
  
   /opt/oracle/oraInventory
- UNIX Group Name (permission for updating Oracle software):
  
   oinstall
   You could also use "dba" which I do not recommend for security reasons.
   For more information on the "oinstall" group account, see
   When to use "OINSTALL" group during install of oracle.
   
- Full path name for Oracle Home:  
   /opt/oracle/product/9.2.0
etc.
  
Running Oracle Installation on Red Hat Enterprise Linux Advanced Server 3  
  
In order to install an Oracle9iR2 database on RH AS 3, the "Oracle9iR2 Patch Set 3 9.2.0.4.0" patchset and some other patches must be applied. Some errors can only be fixed by applying the 9.2.0.4 patchset.  
  
Installing Oracle9iR2
  
Install the following RPMs (see Oracle Note:252217.1 for more information):  
su - root
rpm -ivh \
compat-db-4.0.14-5.i386.rpm \
compat-gcc-7.3-2.96.122.i386.rpm \
compat-gcc-c++-7.3-2.96.122.i386.rpm \
compat-libstdc++-7.3-2.96.122.i386.rpm \
compat-libstdc++-devel-7.3-2.96.122.i386.rpm \
openmotif21-2.1.30-8.i386.rpm \
setarch-1.3-1.i386.rpm \
tcl-8.3.5-92.i386.rpm
Relink gcc so that the older gcc will be used during the Oracle installation (see Oracle Note:252217.1 for more information):  
su - root
mv /usr/bin/gcc /usr/bin/gcc323
ln -s /usr/bin/gcc296 /usr/bin/gcc
mv /usr/bin/g++ /usr/bin/g++323      # if g++ doesn''''t exist, then gcc-c++ was not installed
ln -s /usr/bin/g++296 /usr/bin/g++
  
When you execute runInstaller from the Oracle 9iR2 (9.2.0) CD, you will get the following error message:  
Error occurred during initialization of VM
Unable to load native library: /tmp/OraInstall2003-10-25_03-14-57PM/jre/lib/i386/libjava.so:
     symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
  
To resolve resolve the __libc_wait symbol issue, download the patch p3006854_9204_LINUX.zip from http://metalink.oracle.com. See bug 3006854 for more information.  
  
To apply the patch, run  
su - root
# unzip p3006854_9204_LINUX.zip
Archive:  p3006854_9204_LINUX.zip
    creating: 3006854/
   inflating: 3006854/rhel3_pre_install.sh
   inflating: 3006854/README.txt
  
# cd 3006854
# sh rhel3_pre_install.sh
Applying patch...
Patch successfully applied
#  
NOTE: If you get the following error when you run rhel3_pre_install.sh:  
   rhel3_pre_install.sh: line 36: gcc: command not found
Then you forgot to install or link gcc, see above. This means you can''''t start any binaries any more:  
# ls
ls: error while loading shared libraries: /etc/libcwait.so: cannot open shared object file: No such file or directory
#
To fix that, run:  
# echo "" > /etc/ld.so.preload
rm /etc/ld.so.preload
And start over again.  
  
Now runInstaller can be started from the CD:  
su - oracle
$ echo $LD_ASSUME_KERNEL    # it is important that this variable is set!
2.4.1
$ /mnt/cdrom/runInstaller
  
  - Welcome Screen:       Click Next
  - Inventory Location:   Click Next
  - Unix Group Name:      Use "oinstall" and click Next
                          When asked to run /tmp/orainstRoot.sh, run it before you click Continue
  - File Locations:       Use default values
  - Available Products:   Select "Oracle9i Database 9.2.0.1.0"
  - Installation Types:   Select Custom since we only want to install the software for now
  - Available Products:   Click Next or add some more components.
  - Components Locations: Accept default values and click Next
  - Privileged Operating System Groups:
                          I used the default values: OSDBA Group = dba, OSOPER Group = dba
  - Oracle Managent Server Repository:
                          I used the default choice
  - Create database:      Select NO since we first have to patch Oracle before a database can be created!
  - Summary:              Start the Install
  - Configuration tools:  Tools won''''t come up. Simply ignore it.
  - At the end of the installation, exit runInstaller.
  
   
You may get the following errors:
  
Error in invoking target install of makefile /opt/oracle/product/9.2.0/network/lib/ins_oemagent.mk.  
  
The /opt/oracle/product/9.2.0/install/make.log file reads:  
   /opt/oracle/product/9.2.0/network/lib/libnmi.a(snmitcln.o)(.text+0xa4e): In function `Nls_FormatCmd'''':
   : undefined reference to `__ctype_b''''
   /opt/oracle/product/9.2.0/network/lib/libnmi.a(snmitcln.o)(.text+0x159d): In function `Nls_ScanCmd'''':
   : undefined reference to `__ctype_b''''
   /opt/oracle/product/9.2.0/networ

上一页  [1] [2] [3] [4] [5] [6] [7]  下一页


[网页制作]Document 和 Document.all 分别什么时候用  [网页制作]document.all与WEB标准
[Web开发]document.all还是document.getElementsByName  [Web开发]document.all与WEB标准
[SyBase]在 Red Hat Linux 9 上安装 Oracle9i Database  [ORACLE]Oracle9i 資料庫管理實務講座(一)
[ORACLE]ORACLE9i 的透明网关的配置  [ORACLE]Oracle9i OCM认证实践课考试的一些说明
[ORACLE]Installing Oracle 9iR2 on RHEL AS 3 Step-by-St…  [ORACLE]Installing Oracle 10g on RHEL AS 3 Step-by-Ste…
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · Sql Server  · MySql
    · Access  · ORACLE
    · SyBase  · 其他
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台