oracle 12c for linux 6.6 installation

简介: oracle 12c for linux 6.6 installation ...
1、查看RHEL操作系统版本,本次安装所选操作系统是oracle linux server 6.6
[root@oradb oracle]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.6 (Santiago)
[root@oradb oracle]#
2、编辑并查看hosts文件主机名解析
vi /etc/hosts
192.168.56.10 oradb
[root@oradb oracle]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.10 oradb
[root@oradb oracle]#
3、创建并查看执行安装oracle12c的操作系统用户
[root@oradb ~]# groupadd -g 1000 oinstall
[root@oradb ~]# groupadd -g 1001 dba
[root@oradb ~]# useradd -u 888 -g oinstall -G dba oracle
[root@oradb ~]# id ora12c
uid=888(ora12c) gid=1000(oinstall) groups=1000(oinstall),1001(dba)
[root@oradb oracle]#
4、编辑并查看执行安装oracle12c操作系统用户的环境变量
vi /home/ora12c/.bash_profile
export PATH
export ORACLE_BASE=/oradata/oracle/ora12c
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.1/db
export ORACLE_SID=ora12c
export PATH=$PATH:$ORACLE_HOME/bin
[root@oradb oracle]# cat /home/ora12c/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export ORACLE_BASE=/oradata/oracle/ora12c
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.1/db
export ORACLE_SID=ora12c
export PATH=$PATH:$ORACLE_HOME/bin
[root@oradb oracle]#
5、编辑并查看内核参数
[root@oradb oracle]#vi /etc/sysctl.conf
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
[root@oradb oracle]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
[root@oradb oracle]#
6、编辑Oracle12c安装用户的软硬限制
[root@oradb oracle]# cat /etc/security/limits.conf
ora12c soft nproc 2047
ora12c hard nproc 16386
ora12c soft nofile 1024
ora12c hard nofile 65536
7、查看并安装oracle12c依赖的操作系统RPM包
[root@oradb ~]#  rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils \
> compat-libcap \
> compat-libstdc++ \
> gcc \
> gcc-c++ \
> glibc- \
> glibc \
> ksh \
> libgcc\
> libstdc++ \
> libstdc++-devel \
> libaio-0.3.107 \
> libaio-devel \
> libXext \
> libXtst \
> libX11 \
> libXau \
> libxcb \
> libXi \
> make \
> sysstat
binutils-2.20.51.0.2-5.42.el6 (x86_64)
package compat-libcap is not installed
package compat-libstdc++ is not installed
gcc-4.4.7-11.el6 (x86_64)
gcc-c++-4.4.7-11.el6 (x86_64)
glibc-2.12-1.149.el6 (x86_64)
glibc-2.12-1.149.el6 (i686)
glibc-2.12-1.149.el6 (x86_64)
glibc-2.12-1.149.el6 (i686)
ksh-20120801-21.el6 (x86_64)
package libgcclibstdc++ is not installed
libstdc++-devel-4.4.7-11.el6 (x86_64)
libaio-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6 (x86_64)
libXext-1.3.2-2.1.el6 (x86_64)
libXtst-1.2.2-2.1.el6 (x86_64)
libX11-1.6.0-2.2.el6 (x86_64)
libXau-1.0.6-4.el6 (x86_64)
libxcb-1.9.1-2.el6 (x86_64)
libXi-1.7.2-2.2.el6 (x86_64)
make-3.81-20.el6 (x86_64)
sysstat-9.0.4-27.el6 (x86_64)
7-1、缺包安装
[root@oradb ~]# rpm –ivh ksh-20120801-21.el6.x86_64.rpm
warning: ksh-20120801-21.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]
1:ksh ########################################### [100%]
[root@oradb Packages]#
8、同一操作系统多版本并存时,直接运行runInstaller报错,需要手动指定oraInventory目录
[ora12c@oradb database]$  ./runInstaller
You do not have sufficient permissions to access the inventory '/home/oracle/oraInventory'. Installation cannot continue. It is required that the primary group of the install user is same as the inventory owner group. Make sure that the install user is part of the inventory owner group and restart the installer.: Permission denied
[ora12c@oradb database]$  ./runInstaller -invPtrLoc /oradata/oracle/ora12c/
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 6369 MB Passed
Checking swap space: must be greater than 150 MB. Actual 4094 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-10-13_05-43-06PM. Please wait ...[ora12c@oradb database]$
8-1、Configure Security Updates
8-1、My Oracle Support
8-2、Software Updates -->Skip software updates
8-3、Installation Option -->Install database software only
8-4 Grid Installation Options -->Single instance database installation
8-5、Product Languages -->English
8-6 、Database Edition -->Enterprise Edition
8-7、 Installation Location
8-8、Create Inventory
8-9、 Operation System Groups
8-11、 Summary
8-12、安装完成时弹出运行脚本窗口
/oradata/oracle/oraInventory/orainstRoot.sh
/oradata/oracle/ora12c/product/12.1.0.1/db/root.sh
[root@oradb Packages]# /oradata/oracle/oraInventory/orainstRoot.sh
Changing permissions of /oradata/oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /oradata/oracle/oraInventory to oinstall.
The execution of the script is complete.
[root@oradb Packages]# /oradata/oracle/ora12c/product/12.1.0.1/db/root.sh
Performing root user operation for Oracle 12c
The following environment variables are set as:
ORACLE_OWNER= ora12c
ORACLE_HOME= /oradata/oracle/ora12c/product/12.1.0.1/db
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 script.
Now product-specific root actions will be performed.
[root@oradb Packages]#
8-13、Finish
9、查看操作系统版本
[ora12c@oradb ~]$ sqlplus -v
SQL*Plus: Release 12.1.0.1.0 Production
[ora12c@oradb ~]$
10、netca创建监听程序
[ora12c@oradb ~]$ netca
10-1 、Listener configuration
10-2 Add
10-3 Listener name
10-4 、 Select Protocols
10-5、TCP/IP Protocol
10-6、 More Listeners -->No
10-7、Done -->Next
10-8 Welcome -->Finish
Oracle Net Services Configuration:
Configuring Listener:LISTENER
Listener configuration complete.
Oracle Net Listener Startup:
Running Listener Control:
/oradata/oracle/ora12c/product/12.1.0.1/db/bin/lsnrctl start LISTENER
Listener Control complete.
Listener started successfully.
Oracle Net Services configuration successful. The exit code is 0
[ora12c@oradb ~]$
11、查看监听状态
[ora12c@oradb ~]$ lsnrctl status
LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 09-DEC-2016 11:00:10
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oradb)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.1.0.1.0 - Production
Start Date 09-DEC-2016 10:59:29
Uptime 0 days 0 hr. 0 min. 41 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oradata/oracle/ora12c/product/12.1.0.1/db/network/admin/listener.ora
Listener Log File /oradata/oracle/ora12c/diag/tnslsnr/oradb/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oradb)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
[ora12c@oradb ~]$
13、dbca创建数据库
[ora12c@oradb ~]$ dbca
13-1 Database Operation -->Create Database
13-2、Creation Mode -->Advanced Mode
13-3、Database Template -->General Purpose or Transaction Processin
13-4 、Database Identification
13-5、Management Options -->Configure Enterprise Manager (EM) Database Express
13-6、 Database Credentials
13-7 Network Configuration
13-8、Storage Locations
13-9 、Database Options
13-10、Initallzation Parameters
13-10、Initalization Parameters --Character Sets -->ZHS16GBK
13-10、Initalization Parameters --Connection Mode
13-11 、Creation Options
13-12、Summary
13-14、Database Configuration Assistant
13-14、Database Configuration Assistant
13-14、Database Configuration Assistant
13-14、Database Configuration Assistant
13-14、Password Management
13-14、Database Configuration Assistant
13-14、Progress Page
14、查看监听状态
[ora12c@oradb ~]$ lsnrctl status
LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 09-DEC-2016 11:24:46
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oradb)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.1.0.1.0 - Production
Start Date 09-DEC-2016 10:59:29
Uptime 0 days 0 hr. 25 min. 18 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oradata/oracle/ora12c/product/12.1.0.1/db/network/admin/listener.ora
Listener Log File /oradata/oracle/ora12c/diag/tnslsnr/oradb/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oradb)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=oradb)(PORT=5500))(Security=(my_wallet_directory=/oradata/oracle/ora12c/admin/ora12c/xdb_wallet))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "ora12c" has 1 instance(s).
Instance "ora12c", status READY, has 1 handler(s) for this service...
Service "ora12cXDB" has 1 instance(s).
Instance "ora12c", status READY, has 1 handler(s) for this service...
The command completed successfully
15、查看数据库进程
[ora12c@oradb ~]$ ps -ef|grep ora_
ora12c 9010 1 0 11:19 ? 00:00:00 ora_pmon_ora12c
ora12c 9012 1 0 11:19 ? 00:00:00 ora_psp0_ora12c
ora12c 9014 1 6 11:19 ? 00:00:23 ora_vktm_ora12c
ora12c 9018 1 0 11:19 ? 00:00:00 ora_gen0_ora12c
ora12c 9020 1 0 11:19 ? 00:00:00 ora_mman_ora12c
ora12c 9024 1 0 11:19 ? 00:00:00 ora_diag_ora12c
ora12c 9026 1 0 11:19 ? 00:00:00 ora_dbrm_ora12c
ora12c 9028 1 0 11:19 ? 00:00:00 ora_dia0_ora12c
ora12c 9030 1 0 11:19 ? 00:00:00 ora_dbw0_ora12c
ora12c 9032 1 0 11:19 ? 00:00:00 ora_lgwr_ora12c
ora12c 9034 1 0 11:19 ? 00:00:00 ora_ckpt_ora12c
ora12c 9036 1 0 11:19 ? 00:00:00 ora_smon_ora12c
ora12c 9038 1 0 11:19 ? 00:00:00 ora_reco_ora12c
ora12c 9040 1 0 11:19 ? 00:00:00 ora_lreg_ora12c
ora12c 9042 1 0 11:19 ? 00:00:00 ora_mmon_ora12c
ora12c 9044 1 0 11:19 ? 00:00:00 ora_mmnl_ora12c
ora12c 9046 1 0 11:19 ? 00:00:00 ora_d000_ora12c
ora12c 9048 1 0 11:19 ? 00:00:00 ora_s000_ora12c
ora12c 9060 1 0 11:19 ? 00:00:00 ora_tmon_ora12c
ora12c 9062 1 0 11:19 ? 00:00:00 ora_arc0_ora12c
ora12c 9064 1 0 11:19 ? 00:00:00 ora_arc1_ora12c
ora12c 9066 1 0 11:19 ? 00:00:00 ora_arc2_ora12c
ora12c 9068 1 0 11:19 ? 00:00:00 ora_arc3_ora12c
ora12c 9070 1 0 11:19 ? 00:00:00 ora_tt00_ora12c
ora12c 9072 1 0 11:19 ? 00:00:00 ora_smco_ora12c
ora12c 9074 1 0 11:19 ? 00:00:00 ora_fbda_ora12c
ora12c 9076 1 0 11:19 ? 00:00:00 ora_aqpc_ora12c
ora12c 9080 1 0 11:19 ? 00:00:00 ora_p000_ora12c
ora12c 9082 1 0 11:19 ? 00:00:00 ora_p001_ora12c
ora12c 9084 1 0 11:19 ? 00:00:00 ora_p002_ora12c
ora12c 9086 1 0 11:19 ? 00:00:00 ora_p003_ora12c
ora12c 9088 1 0 11:19 ? 00:00:00 ora_cjq0_ora12c
ora12c 9113 1 0 11:19 ? 00:00:00 ora_w000_ora12c
ora12c 9121 1 0 11:19 ? 00:00:00 ora_qm02_ora12c
ora12c 9125 1 0 11:19 ? 00:00:00 ora_q002_ora12c
ora12c 9127 1 0 11:19 ? 00:00:00 ora_q003_ora12c
ora12c 16115 3184 0 11:24 pts/2 00:00:00 grep ora_
[ora12c@oradb ~]$
16、登录数据库查看数据库版本
17-1、登录EM
17-2、登录EM
17-3、EM

目录
相关文章
|
1月前
|
Oracle Cloud Native 关系型数据库
Oracle Linux 9.5 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
Oracle Linux 9.5 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
64 10
Oracle Linux 9.5 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
|
1月前
|
监控 Oracle 关系型数据库
Linux平台Oracle开机自启动设置
【11月更文挑战第8天】在 Linux 平台设置 Oracle 开机自启动有多种方法,本文以 CentOS 为例,介绍了两种常见方法:使用 `rc.local` 文件(较简单但不推荐用于生产环境)和使用 `systemd` 服务(推荐)。具体步骤包括编写启动脚本、赋予执行权限、配置 `rc.local` 或创建 `systemd` 服务单元文件,并设置开机自启动。通过 `systemd` 方式可以更好地与系统启动过程集成,更规范和可靠。
117 2
|
1月前
|
Oracle Ubuntu 关系型数据库
Linux平台Oracle开机自启动设置
【11月更文挑战第7天】本文介绍了 Linux 系统中服务管理机制,并详细说明了如何在使用 systemd 和 System V 的系统上设置 Oracle 数据库的开机自启动。包括创建服务单元文件、编辑启动脚本、设置开机自启动和启动服务的具体步骤。最后建议重启系统验证设置是否成功。
|
2月前
|
存储 Oracle 关系型数据库
|
7月前
|
运维 Oracle 容灾
Oracle dataguard 容灾技术实战(笔记),教你一种更清晰的Linux运维架构
Oracle dataguard 容灾技术实战(笔记),教你一种更清晰的Linux运维架构
|
5月前
|
Oracle 关系型数据库 Linux
讲解linux下的Qt如何编译oracle的驱动库libqsqloci.so
通过这一连串的步骤,可以专业且有效地在Linux下为Qt编译Oracle驱动库 `libqsqloci.so`,使得Qt应用能够通过OCI与Oracle数据库进行交互。这些步骤适用于具备一定Linux和Qt经验的开发者,并且能够为需要使用Qt开发数据库应用的专业人士提供指导。
181 1
讲解linux下的Qt如何编译oracle的驱动库libqsqloci.so
|
6月前
|
SQL Oracle 关系型数据库
探索 Linux 命令 `db_archive`:Oracle 数据库归档日志的工具
探索 Linux 中的 `db_archive`,实际与 Oracle 数据库归档日志管理相关。在 Oracle 中,归档日志用于恢复,当在线重做日志满时自动归档。管理员可使用 SQL*Plus 查看归档模式,通过 `RMAN` 进行备份和恢复操作。管理归档日志需谨慎,避免数据丢失。了解归档管理对 Oracle 管理员至关重要,确保故障时能快速恢复数据库。
|
7月前
|
Oracle 关系型数据库 Linux
Oracle Linux: How To Disable NUMA At OS Level (Doc ID 2193586.1)
Oracle Linux: How To Disable NUMA At OS Level (Doc ID 2193586.1)
75 1
|
7月前
|
Oracle Java 关系型数据库
【服务器】python通过JDBC连接到位于Linux远程服务器上的Oracle数据库
【服务器】python通过JDBC连接到位于Linux远程服务器上的Oracle数据库
106 6
|
7月前
|
Oracle 关系型数据库 Linux
SuSE linux server 11通过SAP来安装oracle11g
SuSE linux server 11通过SAP来安装oracle11g
114 0