阿里云centos 6.9安装oracle10g

以前安装过oracle 11g,所以环境变量部分准备略过,仅说明不同之处
1 安装
解压

cpio -idmv <10201_database_linux_x86_64.cpio
./runInstaller  -ignoresysprereqs

检查缺包:

yum install libXp.so.6
yum install libXt.so.6
yum install libXtst.so.6

安装82%报错:

makefile ‘/u01/app/oracle10g/product/10g/db_1/sysman/lib/ins_emdb.mk

错误可以忽略,也可以后续安装oracle 10.2.0.4/5来解决些问题;

2 sqlplus / as sysdba 报错
ORA-01804 failure to initialize timezone information
由于装了oracle 11g,所以更改.bash_profile,去掉oracle 11g环境变量,单独为每个版本设置变量
3 startup nomount报错

ORA-27125:unable to create shared memory segment
[[email protected] bin]# id oracle
uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba)

[[email protected] bin]# more /proc/sys/vm/hugetlb_shm_group
0
[[email protected] bin]# echo  500>/proc/sys/vm/hugetlb_shm_group


4 create database

CREATE DATABASE prod3
   USER SYS IDENTIFIED BY oracle
   USER SYSTEM IDENTIFIED BY oracle
   LOGFILE GROUP 1 (‘/data/prod3/redo01a.log‘) SIZE 100M  ,
           GROUP 2 (‘/data/prod3/redo02a.log‘) SIZE 100M  ,
           GROUP 3 (‘/data/prod3/redo03a.log‘) SIZE 100M
   MAXLOGFILES 5
   MAXLOGMEMBERS 5
   MAXLOGHISTORY 1
   MAXDATAFILES 100
   CHARACTER SET AL32UTF8
   NATIONAL CHARACTER SET AL16UTF16
   EXTENT MANAGEMENT LOCAL
   DATAFILE ‘/data/prod3/system01.dbf‘ SIZE 325M REUSE
   SYSAUX DATAFILE ‘/data/prod3/sysaux01.dbf‘ SIZE 325M REUSE
   DEFAULT TABLESPACE users
      DATAFILE ‘/data/prod3/users01.dbf‘
      SIZE 500M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED
   DEFAULT TEMPORARY TABLESPACE tempts1
      TEMPFILE ‘/data/prod3/temp01.dbf‘
      SIZE 200M REUSE
   UNDO TABLESPACE undotbs
      DATAFILE ‘/data/prod3/undotbs01.dbf‘
      SIZE 200M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;

ORA-30014: operation only supported in Automatic Undo Management mode
vi initPROD3.ora
undo_management=auto

继续执行:


@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catproc.sql
@?/sqlplus/admin/pupbld.sql

查看alert_prod3.log:

Heap size 3408K exceeds notification threshold (2048K)

SQL&gt; SELECT x.ksppinm NAME, y.ksppstvl VALUE, x.ksppdesc describ
FROM SYS.x$ksppi x, SYS.x$ksppcv y
WHERE x.inst_id = USERENV (‘Instance‘)
AND y.inst_id = USERENV (‘Instance‘)
AND x.indx = y.indx
AND x.ksppinm LIKE ‘%&par%‘ 
Enter value for par: kgl_large
old   6: AND x.ksppinm LIKE ‘%&par%‘
new   6: AND x.ksppinm LIKE ‘%kgl_large%‘

---------------------------------------------------------------------
_kgl_large_heap_warning_threshold
2097152
maximum heap size before KGL writes warnings to the alert log
alter system set "_kgl_large_heap_warning_threshold"=8388608 scope=spfile ;

检查监听:

lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 17-JUL-2018 17:55:49

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                10-JUN-2018 11:54:09
Uptime                    37 days 6 hr. 1 min. 39 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/iZm5eg3yspb12f3ke9ts08Z/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=iZm5eg3yspb12f3ke9ts08Z)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=extproc)))
Services Summary...
Service "PROD1" has 1 instance(s).
  Instance "PROD1", status UNKNOWN, has 1 handler(s) for this service...
Service "PROD3" has 1 instance(s).
  Instance "PROD3", status READY, has 1 handler(s) for this service...
Service "prod3_XPT" has 1 instance(s).
  Instance "PROD3", status READY, has 1 handler(s) for this service...
The command completed successfully

检查数据库状态:

SQL> select * from v$version;
 BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0  Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production

原文地址:http://blog.51cto.com/snowhill/2145991

时间: 2024-10-08 00:05:45

阿里云centos 6.9安装oracle10g的相关文章

在阿里云CentOS 6.5 安装、运行Docker容器的方法与步骤

ssh登陆阿里云ssh [email protected] uname -a 查看linux内核版本,因为Docker推荐使用3.8以上内核,如果版本低可能会不稳定,因此需要选用yum方式升级内核. 导入 KEY ,安装软件源.在 YUM 的 ELRepo 源中,有mainline(3.13.1).long-term(3.10.28)这 2 个内核版本,考虑到 long-term 更稳定,会长期更新,所以选择这个版本.点击查看方法来源 导入public key:rpm --import http

[Linux] - 阿里云CentOS 6.5 安装Docker

因为阿里云的CentOS 6.5版本默认内核kernel版本是2.6的,比较低.安装docker的后,运行不了. 步骤: 1.使用命令更新: yum update 2.安装Docker.这里忽略500字.... 3.使用命令查看IP: ifconfig 将看到有类似的结果: eth0 Link encap:Ethernet HWaddr 00:16:3E:00:6B:5D inet addr:10.169.127.193 Bcast:10.169.127.255 Mask:255.255.248

新手玩个人服务器(阿里云centos)-mongodb安装和启动

一首<爱你的宿命>和<后会无期>,昨晚张碧晨在中国好声音很稳定,晋级实至名归,虽然几天前我从微博就知道结局了.陈冰吼过了-- 今天看到草稿箱有篇没有完成的文章,在不怎么稳定的情绪继续完成,毕竟最爱小二班,后会无期,往往后会有期:但是后会有期,往往后会无期,珍惜身边爱你的人,这不是你的宿命,而是你的使命-- 附上mongo在 github地址: https://github.com/mongodb/mongo/tree/master/rpm <1>下载 wget http

阿里云CentOS中vsftp安装、配置、卸载

1--卸载 查看当前服务器中的vsftpdrpm -qa|grep vsftpd 例如结果为:vsftpd-2.2.2-13.el6_6.1.x86_64执行卸载rpm -e vsftpd-2.2.2-13.el6_6.1.x86_64返回:卸载时自动备份vsftp的用户列表文件warning: /etc/vsftpd/vsftpd.conf saved as /etc/vsftpd/vsftpd.conf.rpmsavewarning: /etc/vsftpd/user_list saved

阿里云centos中tomcat安装及开机自启动

------------------------------------------------------------------------------- 官网下载一个tomcat(如1.7的) apache-tomcat-7.0.62.tar.gz 使用工具将文件上传到centos中,我将文件全部放在了/usr/local中 使用putty工具登陆之后进入/usr/local/ 解压tomcat文件压缩包 tar -zxvf apache-tomcat-7.0.62.tar.gz 本级文件

阿里云CentOS服务器下安装Golang1.13并配置代理

下载到/usr/local位置并解压 cd /usr/local wget https://studygolang.com/dl/golang/go1.13.linux-amd64.tar.gz tar -xzvf go1.13.linux-amd64.tar.gz 在$HOME位置创建go工作目录 cd mkdir go 配置环境变量并设置代理 vim /etc/profile export PATH=$PATH:/usr/local/go/bin export GOPATH=$HOME/go

阿里云Centos 7.5 安装MySQL8

1.下载并添加存储库 sudo yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm 2.安装MySQL 8.0包 与其他使用yum的软件包一样安装MySQL:yum install mysql-community-server   (安装过程中如果有error,可以重复执行命令,直到成功) 安装过程中如果提示 is this OK (y/n)输入 y 即可 3.成功安装之后重启

阿里云centos中mysql的安装及一些常识知识

------------------------------------------------------------------- 阿里云centos中mysql的安装 工具WinSCP v5.7.0可以从windows上传文件到linux上 工具putty可以再windows上连接linux,用命令行操作很方便 将mysql以下三个包下载并上传到linux上,例如:/root/software MySQL-server-5.5.28-1.linux2.6.x86_64.rpm MySQL-

阿里云centos 静默安装oracle

Package安装检查 yum -y install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel pdksh numactl-devel gli