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算法集训代码填空题练习2

    1 连续数的公倍数 为什么1小时有60分钟,而不是100分钟呢?这是历史上的习惯导致. 但也并非纯粹的偶然:60是个优秀的数字,它的因子比较多. 事实上,它是1至6的每个数字的倍数.即1,2,3,4, ...

  2. Java实现 蓝桥杯 历届试题 邮局

    问题描述 C村住着n户村民,由于交通闭塞,C村的村民只能通过信件与外界交流.为了方便村民们发信,C村打算在C村建设k个邮局,这样每户村民可以去离自己家最近的邮局发信. 现在给出了m个备选的邮局,请从中 ...

  3. PAT甲级 Reversible Primes

    描述 A reversible prime in any number system is a prime whose "reverse" in that number syste ...

  4. Python爬虫之request +re

    什么是爬虫? 它是指向网站发起请求,获取资源后分析并提取有用数据的程序: 爬虫的步骤: 1.发起请求 使用http库向目标站点发起请求,即发送一个Request Request包含:请求头.请求体等 ...

  5. 拉勾网 + selenium

    目录 方式一 selenium 方式二普通方法 方式一 selenium from selenium import webdriver import time from selenium.webdri ...

  6. 在MS SQL(SSMS中)_Format_SQL_更改设置_增加命令

    在MS SQL(SSMS中)_Format_SQL_更改设置_增加命令 目的:要格式化这么一段SQL语句(这是随便从网上Copy的一段),没细看内容,反正看到头疼,乱七八糟的不想看. select b ...

  7. (十)自动化测试pom完整文件

    <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://mave ...

  8. BUAA_OO_2020_Unit4_总结博客

    BUAA_OO_2020_Unit4_总结 2020年春季学期第十六周,OO第四单元即最终章落下帷幕,本单元是利用Java进行UML类图的解析,完成对类图.顺序图.状态图的内部查询操作与简单的规则判断 ...

  9. 使用Kubeflow构建机器学习流水线

    在此前的文章中,我已经向你介绍了Kubeflow,这是一个为团队设置的机器学习平台,需要构建机器学习流水线. 在本文中,我们将了解如何采用现有的机器学习详细并将其变成Kubeflow的机器学习流水线, ...

  10. 强大的IntelliJ IDEA怎么破解?

    IntelliJ IDEA是非常好用的一个开发工具,怎么样才可以破解也是非常关键的问题,本文简单介绍破解方法. 第一种方式,我们进入以下网站http://idea.lanyus.com/ 这里要注意一 ...