1. 说明

32位模式下安装32的10g,不是正规的安装方法,只能作为自己测试使用。

企业环境参考即可,请使用自己公司的标准化安装流程文档。

等什么时候有时间在出一份正规的企业级的安装过程(估计有点久远)。

2. 查看相关包

[root@oracle:/]# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot SUNWtoo  SUNWi1of  SUNWi1cs SUNWi15cs SUNWxwfnt
system SUNWarc Lint Libraries (usr)
system SUNWbtool CCS tools bundled with SunOS
system SUNWhea SunOS Header Files
system SUNWi15cs X11 ISO8859-15 Codeset Support
system SUNWi1cs X11 ISO8859-1 Codeset Support
system SUNWi1of ISO-8859-1 (Latin-1) Optional Fonts
system SUNWlibm Math & Microtasking Library Headers & Lint Files (Usr)
system SUNWlibms Math & Microtasking Libraries (Usr)
system SUNWsprot Solaris Bundled tools
system SUNWtoo Programming Tools
system SUNWxwfnt X Window System platform required fonts

代表需求包全部都已经安装了。

如果有未安装的包,使用如下方法安装:



把“已连接”勾上,确定,重启Solaris操作系统。

接下来进去光盘的存放包的目录安装即可(不同OS路径名可能有区别)。

[root@oracle:/cdrom/sol_10_113_x86/Solaris_10/Product]# cd /cdrom/sol_10_113_x86/Solaris_10/Product

//按照这种格式安装:pkgadd -d . SUNWi1cs

3. 添加用户和组

[root@oracle:/]# groupadd oinstall
[root@oracle:/]# groupadd dba
[root@oracle:/]# useradd -g oinstall -G dba -s /usr/bin/bash -d /export/home/oracle oracle
[root@oracle:/]# mkdir -p /export/home/oracle
[root@oracle:/]# chown -R oracle:oinstall /export/home/oracle/
[root@oracle:/]# passwd oracle
New Password:
Re-enter new Password:
passwd: password successfully changed for oracle

4. 设置oracle环境变量

有个点是如果ORACLE_BASE和ORACLE_HOME最后边加了多个‘/’,比如

ORACLE_BASE=/export/home/oracle/u01/app/oracle/

会出现dbca后(数据库开了),sqlplus / as sysdba登进去后显示idle的问题。

DISPLAY这个你们就不需要加了,或者根据你们的环境自己改掉ip。

[root@oracle:/]# su - oracle
Oracle Corporation SunOS 5.10 Generic Patch January 2005
-bash-3.2$ vi .profile
ORACLE_BASE=/export/home/oracle/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
DISPLAY=192.168.180.1:0.0
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/local/bin
PATH=$PATH:/usr/ccs/bin:$ORACLE_HOME/bin:/usr/sbin:/usr/sfw/bin:/usr/local/bin
ORACLE_SID=zkm
export ORACLE_BASE
export ORACLE_HOME
export LD_LIBRARY_PATH
export PATH
export ORACLE_SID
export DISPLAY
alias ll='ls -larth'
PS1='[\u@\h:$PWD]# '
export PS1
-bash-3.2$ source .profile
[oracle@oracle:/export/home/oracle]#

5. 创建Oracle软件目录

[oracle@oracle:/export/home/oracle]# mkdir -p /export/home/oracle/u01/app/oracle

6. 修改OS参数

使用root,在文件/etc/system追加:

set noexec_user_stack=1
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10

7. 上传Oracle软件包并解压



更改权限:

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

使用oracle解压:

[oracle@oracle:/soft]# unzip 10202_database_solx86.zip

8. 开始安装

[oracle@oracle:/soft/database]# ./runInstaller
Starting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be 5.10. Actual 5.10
Passed Checking Temp space: must be greater than 250 MB. Actual 3640 MB Passed
Checking swap space: must be greater than 500 MB. Actual 3875 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed All installer requirements met. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2020-04-03_12-18-28PM. Please wait ...

按照接下去截图,没特殊情况直接next即可。



注意目录要对的上。





依然是目录要对的上。



我只有一个交换空间不足的警告,可以忽略。

如果有其他的报错能不能忽略要看具体的报错。







出现BUG(如下图报错),在Solaris下安装32位oracle软件出现(64位模式下安装64位oracle软件我没遇到)。

Bug 6791866 - ASSEMBLER CODE GENERATED BY GENNTTAB CAUSES LD ERROR IN LATEST SOLARIS BUILDS



需要做如下处理:

步骤:

  1. cd $ORACLE_HOME/bin
  2. cp gennttab gennttab_orig
  3. vi gennttab

    将这段配置中的112改成96
  4. cd $ORACLE_HOME/network/lib

    /usr/ccs/bin/make -f ins_net_client.mk ntcontab.o

    $ORACLE_HOME/bin/genclntsh
  5. 现在点retry 就好了
[root@oracle:/]# su - oracle
Oracle Corporation SunOS 5.10 Generic Patch January 2005
[oracle@oracle:/export/home/oracle]# cd $ORACLE_HOME/bin
[oracle@oracle:/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/bin]# cp gennttab gennttab_orig
[oracle@oracle:/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/bin]# grep 112 gennttab
.size ntcontab,112
[oracle@oracle:/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/bin]# vi gennttab
//修改过程略
[oracle@oracle:/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/bin]# grep 96 gennttab
.size ntcontab,96
.ident "@(#)machtypes.h 1.7 96/05/23 SMI"
[oracle@oracle:/export/home/oracle]# cd $ORACLE_HOME/network/lib
[oracle@oracle:/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/network/lib]# /usr/ccs/bin/make -f ins_net_client.mk ntcontab.o
//输出内容略
[oracle@oracle:/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/network/lib]# $ORACLE_HOME/bin/genclntsh

点击retry继续下一步安装。

先别点OK。



使用root用户跑完脚本。

[root@oracle:/]# /export/home/oracle/u01/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of /export/home/oracle/u01/app/oracle/oraInventory to 770.
Changing groupname of /export/home/oracle/u01/app/oracle/oraInventory to oinstall.
The execution of the script is complete
[root@oracle:/]# /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/root.sh
Running Oracle 10g root.sh script... The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /export/home/oracle/u01/app/oracle/product/11.2.0/db_1 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 /var/opt/oracle/oratab file...
Entries will be added to the /var/opt/oracle/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@oracle:/]#

点’OK’结束,然后exit。

9. dbca建库

库名字是zkm。

[oracle@oracle:/soft/database]# dbca





自己的测试库没那么多要求,默认就行。





















完成。

[oracle@oracle:/export/home/oracle]# sqlplus / as sysdba

SQL*Plus: Release 10.2.0.2.0 - Production on Fri Apr 3 12:52:29 2020

Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options SQL>

Solaris 10上Oracle 10g安装步骤图解的更多相关文章

  1. Linux上Oracle 11g安装步骤图解

    Oracle 11g下载地址: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html 选 ...

  2. postgresql+postgis+pgrouting安装步骤图解

    1.在此(https://www.bigsql.org/postgresql/installers.jsp/)下载postgresql(开源数据库,gis行业推荐使用); 2.在此(http://wi ...

  3. Oracle 11g安装步骤以及Oracle11g创建表空间和用户,并授权

    Oracle 11g安装步骤详解 一.Oracle 下载 注意Oracle分成两个文件,下载完后,将两个文件解压到同一目录下即可. 路径名称中,最好不要出现中文,也不要出现空格等不规则字符. 官方下地 ...

  4. Oracle 10g安装64位图解流程

    1. 安装准备阶段 1.1 安装Oracle环境 本例使用X-Manager来实现与Linux系统的连接,本例使用的所有命令和操作都是在X-Manager下进行.X-Manager安装完成后的配置方法 ...

  5. 分享一下Oracle 10g和Toad for Oracle的安装步骤

    三年前用过Oracle,单纯的“用过”,主要就是说对数据库的一些操作,还不包含创建一些存储过程之类的,所以对Oracle仅仅只是了解一点儿,因为当时那家公司里面,数据库里面的东西都是那些顾问负责的,再 ...

  6. Oracle 11g安装步骤详谈

    又是十月南京阴雨天气 图书馆花了一个多小左右把11g安装折腾好了.其中折腾SQL Developer 花了好长时间,总算搞定了.好了,先总结下安装步骤,希望给后面的童鞋提高安装效率. 相互方便  共同 ...

  7. Oracle 10G 安装文档

    Oracle 10G安装指导 1. 解压文件10201_database_win32.zip,并双击解压目录下的setup.exe,出现安装界面,如下: 2. 输入口令和确认口令,如:password ...

  8. 超详细oracle 11g安装步骤 win版本

    1. 打开网址: https://edelivery.oracle.com 使用oracle 任意账号登录 账号:2696671285@qq.com 密码:Oracle123 感谢来自某位好心大佬的共 ...

  9. Oracle 10g安装教程

    首先下载安装文件,打开后文件结构如图所示: 安装之前请关闭Windows防火墙并断开网络. xp系统下直接双击运行(本经验以XP系统安装为例进行讲述). 如果是在win7上安装,如图:在setup文件 ...

随机推荐

  1. Java实现 蓝桥杯VIP 算法提高 最长字符序列

    算法提高 最长字符序列 时间限制:1.0s 内存限制:256.0MB 最长字符序列 问题描述 设x(i), y(i), z(i)表示单个字符,则X={x(1)x(2)--x(m)},Y={y(1)y( ...

  2. SQL server 导入数据 (excel导入到SQL server数据库)

    打开数据库SQL server ,右键数据库,任务,导入数据 点击下一步 选择数据源类型 选择路径,点击下一步 选择将要生成的类型 选择登陆方式 选中,点击下一步 点击编辑映射可以修改将要生成的表,点 ...

  3. java实现第五届蓝桥杯LOG大侠

    LOG大侠 atm参加了速算训练班,经过刻苦修炼,对以2为底的对数算得飞快,人称Log大侠. 一天,Log大侠的好友 drd 有一些整数序列需要变换,Log大侠正好施展法力- 变换的规则是: 对其某个 ...

  4. github下载速度太慢,这里有已经下载完的nacos-server.zip组件

    nacos: 分布式系统微服务的注册中心和配置中心 .. 在微服务系统中,起到很重要的作用.小伙伴老是给我抱怨,说这个github下面很慢慢,半天下载不下来,所有这样呢,我就把已经下载好的 nacos ...

  5. Vue好书推荐

    1.Vue.js实战 从基础知识到ui组件封装和剖析,层层推进,最后两个案例实战.适合零基础入门,学完可就业.(推荐看这本) 交流地址(pdf原件):链接(点击跳转):提取码:7IsG 2.vue.j ...

  6. spring源码解读-ioc

    本系列博客结合我的理解,对spring的ioc进行简单分析,欢迎大家批评指正. beanfactory 我们从beanfactory开始,beanfactory是最根部的容器,描述了整个ioc的一些规 ...

  7. linux安装syncthing

    https://blog.csdn.net/weixin_30527551/article/details/98882344 https://syncthing.net/downloads/ http ...

  8. (七)POI-读取excel,遍历一个工作簿

    原文链接:https://blog.csdn.net/class157/article/details/92816169,https://blog.csdn.net/class157/article/ ...

  9. Numpy中的广播机制,数组的广播机制(Broadcasting)

    这篇文章把numpy中的广播机制讲的十分透彻: https://jakevdp.github.io/PythonDataScienceHandbook/02.05-computation-on-arr ...

  10. 多语言工作者の十日冲刺<10/10>

    这个作业属于哪个课程 软件工程 (福州大学至诚学院 - 计算机工程系) 这个作业要求在哪里 团队作业第五次--Alpha冲刺 这个作业的目标 团队进行Alpha冲刺--第十天(05.09) 作业正文 ...