设为首页 加入收藏

TOP

在linux as4上用tar方式安装oracle 10g步骤教程(一)
2018-01-14 06:06:41 】 浏览:256
Tags:linux as4 上用 tar 方式 安装 oracle 10g 步骤 教程

今天在linux as4上用tar方式安装oracle 10g,下面简单那记录步骤及安装过程中出现的问题。

数据库所在服务器信息:

 [oracle@haoc2008 data]$ more /etc/issue

 Red Hat Enterprise Linux ES release 4 (Nahant)

 Kernel \r on an \m

 [oracle@haoc2008 data]$ uname -a

 Linux haoc2008 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:29:47 EST 2005 x86_64 x86_64 x86_64 GNU/Linux

新数据库所在服务器信息:

 [root@yans2 soft]# more /etc/issue

 Enterprise Linux Enterprise Linux AS release 4 (October Update 4)

 Kernel \r on an \m

 [root@yans2 soft]# uname -a

 Linux yans2 2.6.9-42.0.0.0.1.ELsmp #1 SMP Sun Oct 15 15:13:57 PDT 2006 x86_64 x86_64 x86_64 GNU/Linux

两个操作系统有所区别,但是问题不大。

1、在新服务器上添加用户

 groupadd oinstall

 useradd -g oinstall oracle

2、在新服务器上添加相关目录

 mkdir -p /data/oracle/product

3、设置核心参数

 vi /etc/sysctl.conf,添加

 kernel.shmall = 2097152

 kernel.shmmax = 8589934592

 kernel.shmmni = 4096

 kernel.sem = 250 32000 100 128

 fs.file-max = 65536

 net.ipv4.ip_local_port_range = 1024 65000

 net.core.rmem_default = 262144

 net.core.rmem_max = 262144

 net.core.wmem_default = 262144

 net.core.wmem_max = 262144

 使设置生效:

 sysctl -p

4、修改oracle用户的环境变量

 su - oracle

 vi  .bash_profile 添加:

 export ORACLE_SID=newdemo

 export ORACLE_BASE=/data/oracle

 export ORACLE_HOME=/data/oracle/product/10.2

 export PATH=$ORACLE_HOME/bin:$PATH

 export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"

5、在原服务器打包程序

把$ORACLE_HOME下的东西打包压缩:

 cd $ORACLE_BASE/product

 tar cfz oracle10203.tar 10.2

6、传送到新服务器并解压

 sftp .....

 cd $ORACLE_BASE/product

 tar -xzfv oracle10203

7、修改解压后的文件属主

[root@yans2 oracle]# chown -R oracle:oinstall /data/

chown: changing ownership of `/data/oracle/product/10.2/rdbms/filemap': No such file or directory

这里出现一个错误,提示文件不存在,经检查这是一个软链接:

[root@yans2 oracle]# ls -l /data/oracle/product/10.2/rdbms/filemap

lrwxrwxrwx  1 root root 22 Jan 10 17:22 /data/oracle/product/10.2/rdbms/filemap -> /opt/ORCLfmap/prot1_64

经检查,当前的系统确实不存在/opt/ORCLfmap目录,实际上/opt/ORCLfmap是有root.sh生成的,先删除这个软链接:

rm -f /data/oracle/product/10.2/rdbms/filemap

重新执行root.sh:

[root@yans2 opt]# /data/oracle/product/10.2/root.sh

 Running Oracle10 root.sh script...

 The following environment variables are set as:

     ORACLE_OWNER= oracle

     ORACLE_HOME=  /data/oracle/product/10.2

 Enter the full pathname of the local bin directory: [/usr/local/bin]:

    Copying dbhome to /usr/local/bin ...

    Copying oraenv to /usr/local/bin ...

    Copying coraenv to /usr/local/bin ...

 Creating /etc/oratab file...

 Entries will be added to the /etc/oratab file as needed by

 Database Configuration Assistant when a database is created

 Finished running generic part of root.sh script.

 Now product-specific root actions will be performed.

此时软连接和目录都已经存在:

 [root@yans2 opt]# ls /data/oracle/product/10.2/rdbms/filemap

 bin  etc  log

 [root@yans2 opt]# ls -l /data/oracle/product/10.2/rdbms/filemap

 lrwxrwxrwx  1 root root 22 Jan 10 17:40 /data/oracle/product/10.2/rdbms/filemap -> /opt/ORCLfmap/prot1_64

8、创建数据库

 

首页 上一页 1 2 3 下一页 尾页 1/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Oracle 查询出来的数据取第一条 下一篇tar方式安装oracle11g的步骤教程

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目