oracle 10741 trace,RedHat5.3上安装Oracle 10.2.0.1

RedHat 5.3上安装Oracle 10.2.0.1

1、系统环境:

RedHat 5.3

内存16G

交换分区8G

2、必须安装如下包,版本可不一样

gcc-3.2.3-2

make-3.79

binutils-2.11

openmotif-2.2.2-16

setarch-1.3-1

compat-gcc-7.3-2.96.122

compat-gcc-c++-7.3-2.96.122

compat-libstdc++-7.3-2.96.122

compat-libstdc++-devel-7.3-2.96.122

compat-db-4.0.14.5

3、设置系统内核参数

[root@database ~]# more /etc/sysctl.conf

kernel.shmmax = 2147483648

kernel.shmall = 2097152

kernel.shmmni = 4096

# semaphores: semmsl, semmns, semopm, semmni

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

4、运行下面命令使设置生效

[root@database ~]# /sbin/sysctl -p

5、编辑limits.conf,login,config这3个文件

[root@database ~]#vi /etc/security/limits.conf

* soft nproc 2047

* hard nproc 16384

* soft nofile 1024

* hard nofile 65536

[root@database ~]#vi /etc/pam.d/login

session required /lib/security/pam_limits.so

[root@database ~]#vi /etc/selinux/config

SELINUX=disabled

6、建立用户和组

[root@database ~]#groupadd oinstall

[root@database ~]#groupadd dba

[root@database ~]#groupadd oper

[root@database ~]#useradd -g oinstall -G dba oracle

[root@database ~]#passwd oracle

7、创建相应目录

[root@database ~]#mkdir -p /oracle/product/10.2.0/db_1

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

[root@database ~]#chmod -R 775 /oracle

8、编辑/etc/redhat-release

[root@database ~]#vi /etc/redhat-release

Red Hat Enterprise Linux Server release 5.3 (Tikanga)

改成

vi /etc/redhat-release

Red Hat Enterprise Linux Server release 4.3 (Tikanga)

9、以oracle登陆建立相应的环境变量

su - oracle

[oracle@database ~]$vi ~/.bash_profile

# Oracle Settings

TMP=/tmp; export TMP

TMPDIR=$TMP; export TMPDIR

ORACLE_BASE=/oracle; export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1

export ORACLE_HOME

ORACLE_SID=orcl

export ORACLE_SID

ORACLE_TERM=xterm

export ORACLE_TERM

PATH=/usr/sbin:$PATH

PATH=$ORACLE_HOME/bin:$PATH

export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

export LD_LIBRARY_PATH

CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

export CLASSPATH

#LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL

if [ $USER = "oracle" ]; then

if [ $SHELL = "/bin/ksh" ]; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi

export DISPLAY=172.16.10.50:0.0

export LANG=en_US.utf8

export LANGUAGE=en_US.utf8

export NLS_LANG="Simplified Chinese_China.UTF8"

export LC_ALL=en_US.utf8

10、安装

[oracle@database install]$ unzip 10201_database_linux32.zip

[oracle@database install]$ cd database/

[oracle@database database]$ ls

doc  install  response  runInstaller  stage  welcome.html

[oracle@database database]$ ./runInstaller

同时在自己本机上打开Xmanger输入ORACLE数据库服务器的IP地址本例子为172.16.26.222

安装过程

Select Installation Method

Specify Inventory Directory and Credentials

Select Installation Type

Specify Home Details

Product-Specific Prerequisite Checks

Select Configuration Option

Select Database Configuration

Specify Database Configuration Options

Select Database Management Option

Specify Database Storage Option

Specify Backup and Recovery Options

Specify Database Schema Passwords

Summary

Install

Configuration Assistants

Database Configuration Assistant

Database Configuration Assistant Password Management

Execute Configuration Scripts

End Of Installation

11、安装结束后修改

[root@database ~]#vi /etc/redhat-release

内容为

Red Hat Enterprise Linux Server release 5 (Tikanga)

12、编辑listener.ora和tnsnames.ora两个文件,编辑后如下

[oracle@database admin]$ more listener.ora

# listener.ora Network Configuration File: /oracle/product/10.2.0/db_1/network/admin/listener.ora

# Generated by Oracle configuration tools.

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = PLSExtProc)

(ORACLE_HOME = /oracle/product/10.2.0/db_1)

(PROGRAM = extproc)

)

(SID_DESC =

(GLOBAL_DBNAME = orcl)

(ORACLE_HOME = /oracle/product/10.2.0/db_1)

(SID_NAME = orcl)

)

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))

)

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.26.222)(PORT = 1521))

)

)

[oracle@database admin]$ more tnsnames.ora

# tnsnames.ora Network Configuration File: /oracle/product/10.2.0/db_1/network/admin/tnsnames.ora

# Generated by Oracle configuration tools.

ORCL =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.26.222)(PORT = 1521))

(CONNECT_DATA =

(SERVER = DEDICATED)

(SERVICE_NAME = orcl)

)

)

EXTPROC_CONNECTION_DATA =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))

)

(CONNECT_DATA =

(SID = PLSExtProc)

(PRESENTATION = RO)

)

)

13、设置开机启动

[root@database ~]#vi /etc/oratab

orcl:/u01/app/oracle/product/10.2.0/db_1:Y

14、编写启动脚本

[oracle@database init.d]$ more oracle

#!/bin/bash

# Set ORA_HOME to be equivalent to the $ORACLE_HOME

# from which you wish to execute dbstart and dbshut

#

# set ORA_OWNER to the user id of the owner of the

# Oracle database in ORA_HOME

ORACLE_HOME=/oracle/product/10.2.0/db_1

ORACLE_OWNER=oracle

if [ ! -f $ORACLE_HOME/bin/dbstart ]

then

echo "Not find dbstart,can not start Oracle "

exit

fi

case "$1" in

'start')

# Start the Oracle databses:

echo "Oracle Starting..."

su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbstart &

echo "Oracle started Succeed"

su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl start"

;;

'stop')

#Stop the Oracle database;

echo "Oracle Shutdowning ..."

su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbshut &

su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl stop &"

;;

* ) echo $1;;

esac

[oracle@database init.d]$ chmod +x oracle

15、手动测试该脚本可用

[root@database init.d]# ps -ef|grep ora

root      5717     1  0 Oct14 ?        00:00:01 hald-addon-storage: polling /dev/scd0

root      6426  6395  0 Oct14 ?        00:00:01 hald-addon-storage: polling /dev/scd0

oracle   10723     1  0 09:04 ?        00:00:00 /oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit

oracle   10731     1  0 09:05 ?        00:00:00 ora_pmon_orcl

oracle   10733     1  0 09:05 ?        00:00:00 ora_psp0_orcl

oracle   10735     1  0 09:05 ?        00:00:00 ora_mman_orcl

oracle   10737     1  0 09:05 ?        00:00:00 ora_dbw0_orcl

oracle   10739     1  0 09:05 ?        00:00:00 ora_lgwr_orcl

oracle   10741     1  0 09:05 ?        00:00:00 ora_ckpt_orcl

oracle   10743     1  0 09:05 ?        00:00:00 ora_smon_orcl

oracle   10745     1  0 09:05 ?        00:00:00 ora_reco_orcl

oracle   10747     1  0 09:05 ?        00:00:00 ora_cjq0_orcl

oracle   10749     1  0 09:05 ?        00:00:00 ora_mmon_orcl

oracle   10751     1  0 09:05 ?        00:00:00 ora_mmnl_orcl

oracle   10753     1  0 09:05 ?        00:00:00 ora_d000_orcl

oracle   10755     1  0 09:05 ?        00:00:00 ora_s000_orcl

oracle   10775     1  0 09:05 ?        00:00:00 ora_qmnc_orcl

oracle   10795     1  0 09:05 ?        00:00:00 ora_q000_orcl

oracle   10825     1  0 09:05 ?        00:00:00 ora_q001_orcl

oracle   10844     1  0 09:07 ?        00:00:00 oracleorcl (LOCAL=NO)

oracle   10848     1  0 09:08 ?        00:00:00 oracleorcl (LOCAL=NO)

oracle   10944     1  0 09:28 ?        00:00:00 ora_j000_orcl

root     10948 10796  0 09:28 pts/1    00:00:00 grep ora

[root@database init.d]# ./oracle stop

Oracle Shutdowning ...

[root@database init.d]#

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 15-10鏈?2009 09:28:56

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))

The command completed successfully

[root@database init.d]# ps -ef|grep ora

root      5717     1  0 Oct14 ?        00:00:01 hald-addon-storage: polling /dev/scd0

root      6426  6395  0 Oct14 ?        00:00:01 hald-addon-storage: polling /dev/scd0

root     11104 10796  0 09:30 pts/1    00:00:00 grep ora

[root@database init.d]# ./oracle start

Oracle Starting...

Oracle started Succeed

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 15-10鏈?2009 09:30:34

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Starting /oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...

Failed to auto-start Oracle Net Listene using /ade/vikrkuma_new/oracle/bin/tnslsnr

TNSLSNR for Linux: Version 10.2.0.1.0 - Production

System parameter file is /oracle/product/10.2.0/db_1/network/admin/listener.ora

Log messages written to /oracle/product/10.2.0/db_1/network/log/listener.log

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.26.222)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))

STATUS of the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production

Start Date                15-10鏈?2009 09:30:34

Uptime                    0 days 0 hr. 0 min. 0 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /oracle/product/10.2.0/db_1/network/admin/listener.ora

Listener Log File         /oracle/product/10.2.0/db_1/network/log/listener.log

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.26.222)(PORT=1521)))

Services Summary...

Service "PLSExtProc" has 1 instance(s).

Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...

Service "orcl" has 1 instance(s).

Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...

The command completed successfully

[root@database init.d]# Processing Database instance "orcl": log file /oracle/product/10.2.0/db_1/startup.log

[root@database init.d]# ps -ef|grep ora

root      5717     1  0 Oct14 ?        00:00:01 hald-addon-storage: polling /dev/scd0

root      6426  6395  0 Oct14 ?        00:00:01 hald-addon-storage: polling /dev/scd0

oracle   11165     1  0 09:30 ?        00:00:00 /oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit

oracle   11227     1  0 09:30 ?        00:00:00 ora_pmon_orcl

oracle   11229     1  0 09:30 ?        00:00:00 ora_psp0_orcl

oracle   11231     1  1 09:30 ?        00:00:00 ora_mman_orcl

oracle   11233     1  0 09:30 ?        00:00:00 ora_dbw0_orcl

oracle   11235     1  0 09:30 ?        00:00:00 ora_lgwr_orcl

oracle   11237     1  0 09:30 ?        00:00:00 ora_ckpt_orcl

oracle   11239     1  0 09:30 ?        00:00:00 ora_smon_orcl

oracle   11241     1  0 09:30 ?        00:00:00 ora_reco_orcl

oracle   11243     1  0 09:30 ?        00:00:00 ora_cjq0_orcl

oracle   11245     1  2 09:30 ?        00:00:00 ora_mmon_orcl

oracle   11247     1  0 09:30 ?        00:00:00 ora_mmnl_orcl

oracle   11249     1  0 09:30 ?        00:00:00 ora_d000_orcl

oracle   11251     1  0 09:30 ?        00:00:00 ora_s000_orcl

oracle   11259     1  0 09:30 ?        00:00:00 ora_qmnc_orcl

oracle   11261     1  2 09:30 ?        00:00:00 ora_j000_orcl

oracle   11267     1  0 09:30 ?        00:00:00 oracleorcl (LOCAL=NO)

oracle   11269     1  0 09:30 ?        00:00:00 ora_q000_orcl

root     11271 10796  0 09:30 pts/1    00:00:00 grep ora

16、若要设置成开机自启动,则做如下操作

[root@localhost rc5.d]# ln -s /etc/init.d/oracle S90oracle

[root@localhost rc5.d]# ln -s /etc/init.d/oracle K01oracle

17、查看建立的链接情况

[root@localhost rc5.d]# ls -l *oracle*

lrwxrwxrwx  1 root root 18 Aug 12 09:51 K01oracle -> /etc/init.d/oracle

lrwxrwxrwx  1 root root 18 Aug 12 09:51 S90oracle -> /etc/init.d/oracle

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/328297.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

达到年薪 40W 必需掌握的技术

转载自 达到年薪 40W 必需掌握的技术必需掌握的 Java 技术知识点 掌握Java编程语言,包含io/nio/socket/multi threads/collection/concurrency等功能的使用;熟练掌握jvm(sun hotspot和ibm j9)内存模型、gc垃圾回收调优等技能&…

银行营业网点管理系统——implt包(BranchesDaoImpl )

package BranchesMgr.dao.impl;/*** 网点信息表的实现类*/ import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List;import BranchesMgr.dao.BaseDao; import BranchesMgr.dao.BranchesDao; import BranchesMgr.entity.…

ASP.NET Core 启动方式(Hosting)

之前版本的ASP.NET程序必须依赖IIS来启动,而IIS上会为挂载在其中的ASP.NET 注册一个ISAPI filter。每当http请求过来时,IIS则会启动w3wp的worker process来开始整个ASP.NET runtime程序。相信大家都这样的流程都有相应的了解。在.net core之前&#xff0…

浙江省医院鼻炎

主任医生:做个过敏源检测,看你是否是尘粉过敏,如果是可以做脱敏治疗,先做个皮试,你的特别厉害, 此时去521了 做皮试, 我:以前有医生说要手术割掉, 实习医生&#xff1…

oracle修改redolog路径,oracle修改redo log files路径

如果可以关闭数据库,可以采用下述步骤。如果不能关闭数据库,只能采用新建redo log files的方式来实现修改该redo 的路径了。一、shutdown the database二、拷贝redo log 文件到新的位置三、mount database四、重命名redo五、open database--1 .shutdown…

Java 10 实战第 1 篇:局部变量类型推断

转载自 Java 10 实战第 1 篇:局部变量类型推断现在 Java 9 被遗弃了直接升级到了 Java 10,之前也发过 Java 10 新特性的文章,现在是开始实战 Java 10 的时候了。 今天要实战的是 Java 10 中最重要的特性:局部变量类型推断&#…

【GitLab】与idea的搭配

【GitLab】与idea的搭配 2018年04月27日 18:07:48 星小丫头辰 阅读数:2167 版权声明:很多博客都参考或者直接转载自网络,如有不便,请告知 https://blog.csdn.net/ma15732625261/article/details/80111356 前言: 由截…

Lind.DDD.RedisClient~对StackExchange.Redis调用者的封装及多路复用技术

两雄争霸 使用StackExchange.Redis的原因是因为它开源,免费,而对于商业化的ServiceStack.Redis,它将一步步被前者取代,开源将是一种趋势,商业化也值得被我们尊重,毕竟人家研究代码也不容易,做商…

php处理j数组,PHP Bean 类处理 数组处理

安装:composer require marstm/bean可以实现数据类型约束功能,形参约束,一次定义方便后期数据管理。ArrayList配置bean做数据处理ArrayList文档在使用类里面直接引入MarstmBeannamespace Marstm\Test;use Marstm\Bean;class TestJBean{use Be…

银行营业网点管理系统——implt包(CityAreaDaoImpl )

package BranchesMgr.dao.impl; /*** 城区的实现类*/ import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List;import BranchesMgr.dao.BaseDao; import BranchesMgr.dao.CityAreaDao; import BranchesMgr.entity.CityA…

高可用高并发的 9 种技术架构

转载自 高可用高并发的 9 种技术架构1、分层 分层是企业应用系统中最常见的一种架构模式,将系统在横向维度上切分成几个部分,每个部分负责一部分相对简单并比较单一的职责,然后通过上层对下层的依赖和调度组成一个完整的系统。 在网站的分层…

.NET CoreCLR开发人员指南(上)

1.为什么每一个CLR开发人员都需要读这篇文章 和所有的其他的大型代码库相比,CLR代码库有很多而且比较成熟的代码调试工具去检测BUG。对于程序员来说,理解这些规则和习惯写法非常的重要。 这篇文章让所有的CLR开发者都尽量能在较少知识的情况下&#xff0…

git 拉取gitlab代码

博客园首页新随笔联系管理订阅 随笔- 71 文章- 2 评论- 0 使用git在gitlab上拉取代码的方法 最近在项目中用到了gitlab,他是一个类似于github的代码托管工具。 因为是第一次使用还不太熟悉,所以在此记录一下。 1、首先需要使用github的注册账号登录gitlab,查…

从oracle里面取直,45个非常有用的 Oracle 查询语句小结

日期/时间 相关查询1.获取当前月份的第一天运行这个命令能快速返回当前月份的第一天。你可以用任何的日期值替换 “SYSDATE”来指定查询的日期。代码如下:SELECT TRUNC (SYSDATE, MONTH) "First day of current month"FROM DUAL;2.获取当前月份的最后一天这个查询语句…

Spring Boot 集成 Mybatis 实现双数据源

转载自 Spring Boot 集成 Mybatis 实现双数据源这里用到了Spring Boot Mybatis DynamicDataSource配置动态双数据源&#xff0c;可以动态切换数据源实现数据库的读写分离。 添加依赖 加入Mybatis启动器&#xff0c;这里添加了Druid连接池、Oracle数据库驱动为例。 <depe…

.Net Core及.Net Standard主要概念回顾

在.Net Core之前&#xff0c;选择编译目标是一个相对简单的操作。现在&#xff0c;开发人员面临多种可能&#xff0c;选择一个目标不再那么显而易见了。要想对.Net Core有一个全面的了解&#xff0c;就要了解两个主要的概念&#xff1a;“目标框架别名&#xff08;Target Frame…

如何在Intellij IDEA中集成Gitlab

如何在Intellij IDEA中集成Gitlab 2018年06月11日 16:05:14 葬月魔帝 阅读数&#xff1a;9747 据说在微软收购github当天&#xff0c;一大批用户纷纷转向了gitlab和bitbucket&#xff0c;这两者也都是比较不错的代码托管网站&#xff0c;针对个人和企业都有对应的免费和收费版…

linux更改桌面壁纸的脚本,自动更换桌面壁纸的脚本,支持Ubuntu 18.04系统

下面提供一个自动更换桌面壁纸的脚本&#xff0c;它支持Ubuntu 18.04、UbuntuKylin 18.04、Ubuntu Mate系统。注意事项&#xff1a;1.默认的壁纸通常在目录路径为/usr/share/backgrounds中&#xff0c;如果不是请自行修改&#xff0c;不影响脚本的使用效果&#xff0c;注意目录…

推荐一个实用的 .gitignore 文件

转载自 推荐一个实用的 .gitignore 文件为什么要忽略文件&#xff1f; 常用的版本控制工具&#xff0c;不管是使用 git 还是 svn&#xff0c;我们都需要排除一些与程序代码无关的文件&#xff0c;如像 eclipse/ intellij idea 等 IDE 工具留下来的 .settings、 .classpath、…

应用工具 .NET Portability Analyzer 分析迁移dotnet core

大多数开发人员更喜欢一次性编写好业务逻辑代码&#xff0c;以后再重用这些代码。与构建不同的应用以面向多个平台相比&#xff0c;这种方法更加容易。如果您创建与 .NET Core 兼容的.NET 标准库&#xff0c;那么现在比以往任何时候都更接近于这一现实。 但是&#xff0c;现有的…