RAC安装之三 安装数据库软件和创建数据库

简介:

本节内容主要包括:
1:安装数据库软件
2:配置监听器
3:创建数据库
4:测试

在安装数据库软件之前,要先完成数据库集群件的安装;
数据库集群件的安装可参考:http://ylw6006.blog.51cto.com/470441/592816
 
一:安装数据库软件
1:上传数据库软件包至rac1节点然后进行解压和安装,只需要在节点1上安装即可


 
 
  1. [oracle@rac1 ~]$ gzip -d 10201_database_linux_x86_64.cpio.gz   
  2. [oracle@rac1 ~]$ cpio -idmv < 10201_database_linux_x86_64.cpio   
  3. [oracle@rac1 ~]$ cd database/  
  4. [oracle@rac1 database]$ ./runInstaller  

2:在两个节点分别运行相关脚本


 
 
  1. [root@rac1 ~]# /u01/app/oracle/product/10.2.0/db_1/root.sh  
  2. Running Oracle10 root.sh script...  
  3.  
  4. The following environment variables are set as:  
  5.     ORACLE_OWNERoracle 
  6.     ORACLE_HOME=  /u01/app/oracle/product/10.2.0/db_1  
  7.  
  8. Enter the full pathname of the local bin directory: [/usr/local/bin]:   
  9.    Copying dbhome to /usr/local/bin ...  
  10.    Copying oraenv to /usr/local/bin ...  
  11.    Copying coraenv to /usr/local/bin ...  
  12.  
  13.  
  14. Creating /etc/oratab file...  
  15. Entries will be added to the /etc/oratab file as needed by  
  16. Database Configuration Assistant when a database is created  
  17. Finished running generic part of root.sh script.  
  18. Now product-specific root actions will be performed.  
  19.  
  20.  
  21. [root@rac2 ~]# /u01/app/oracle/product/10.2.0/db_1/root.sh  
  22. Running Oracle10 root.sh script...  
  23.  
  24. The following environment variables are set as:  
  25.     ORACLE_OWNERoracle 
  26.     ORACLE_HOME=  /u01/app/oracle/product/10.2.0/db_1  
  27.  
  28. Enter the full pathname of the local bin directory: [/usr/local/bin]:   
  29.    Copying dbhome to /usr/local/bin ...  
  30.    Copying oraenv to /usr/local/bin ...  
  31.    Copying coraenv to /usr/local/bin ...  
  32.  
  33.  
  34. Creating /etc/oratab file...  
  35. Entries will be added to the /etc/oratab file as needed by  
  36. Database Configuration Assistant when a database is created  
  37. Finished running generic part of root.sh script.  
  38. Now product-specific root actions will be performed. 

二:配置listener,只需要在节点1配置即可


 
 
  1. [oracle@rac1 ~]$ netca  
  2. 后台日志信息  
  3. Oracle Net Services Configuration:  
  4. Configuring Listener:LISTENER  
  5. Default local naming configuration complete.  
  6. rac1...  
  7. rac2...  
  8. Listener configuration complete.  
  9. Oracle Net Services configuration successful. The exit code is 0 

 

 测试:


 
 
  1. [oracle@rac1 ~]$ lsnrctl status  
  2. LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 11-JUN-2011 14:46:13  
  3. Copyright (c) 1991, 2005, Oracle.  All rights reserved.  
  4. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))  
  5. STATUS of the LISTENER  
  6. ------------------------  
  7. Alias                     LISTENER_RAC1  
  8. Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production  
  9. Start Date                11-JUN-2011 14:39:24  
  10. Uptime                    0 days 0 hr. 6 min. 49 sec  
  11. Trace Level               off  
  12. Security                  ON: Local OS Authentication  
  13. SNMP                      OFF  
  14. Listener Parameter File   /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora  
  15. Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener_rac1.log  
  16. Listening Endpoints Summary...  
  17.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.0.1)(PORT=1521)))  
  18.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.50.191)(PORT=1521)))  
  19. Services Summary...  
  20. Service "+ASM" has 1 instance(s).  
  21.   Instance "+ASM1", status BLOCKED, has 1 handler(s) for this service...  
  22. Service "+ASM_XPT" has 1 instance(s).  
  23.   Instance "+ASM1", status BLOCKED, has 1 handler(s) for this service...  
  24. Service "PLSExtProc" has 1 instance(s).  
  25.   Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...  
  26. The command completed successfully 

三:创建数据库,在节点1创建即可
[oracle@rac1 ~]$ dbca 

 

 

 

四:测试


 
 
  1. SQL> select instance_name,host_name,archiver,thread#,status from gv$instance;  
  2.  
  3. INSTANCE_NAME        HOST_NAME            ARCHIVER      THREAD# STATUS  
  4. -------------------- -------------------- ---------- ---------- ----------  
  5. racdb1               rac1.766.com         STARTED             1 OPEN  
  6. racdb2               rac2.766.com         STARTED             2 OPEN  

本文转自斩月博客51CTO博客,原文链接http://blog.51cto.com/ylw6006/593865如需转载请自行联系原作者


ylw6006

 

相关文章
|
22天前
|
关系型数据库 MySQL 数据库
Docker Compose V2 安装常用数据库MySQL+Mongo
以上内容涵盖了使用 Docker Compose 安装和管理 MySQL 和 MongoDB 的详细步骤,希望对您有所帮助。
122 42
|
1月前
|
SQL NoSQL 关系型数据库
超强数据库管理软件推荐-没有之一-还在用Navicat管理本地数据库的吗?还在为Navicat寻求绿色版或者购买正版的费用望而却步吗?DBeaver让你解决所有数据库本地编写问题-优雅草央千澈-DBeaver下载和安装
超强数据库管理软件推荐-没有之一-还在用Navicat管理本地数据库的吗?还在为Navicat寻求绿色版或者购买正版的费用望而却步吗?DBeaver让你解决所有数据库本地编写问题-优雅草央千澈-DBeaver下载和安装
134 18
超强数据库管理软件推荐-没有之一-还在用Navicat管理本地数据库的吗?还在为Navicat寻求绿色版或者购买正版的费用望而却步吗?DBeaver让你解决所有数据库本地编写问题-优雅草央千澈-DBeaver下载和安装
|
2月前
|
存储 安全 数据管理
时序数据库TDengine 与中移软件达成兼容性互认证,推动虚拟化云平台与时序数据库的深度融合
在数字化转型和智能化升级的浪潮下,企业对数据的需求日益增长,尤其是在物联网、大数据和实时分析等领域。随着设备数量的激增,时序数据的管理和处理变得愈发复杂,企业亟需高效、稳定的数据解决方案来应对这一挑战。时序数据库作为专门处理时间序列数据的工具,正逐渐成为各行业数字化转型的重要支撑。
62 4
|
2月前
|
Cloud Native 关系型数据库 分布式数据库
PolarDB 分布式版 V2.0,安全可靠的集中分布式一体化数据库管理软件
阿里云PolarDB数据库管理软件(分布式版)V2.0 ,安全可靠的集中分布式一体化数据库管理软件。
|
2月前
|
关系型数据库 MySQL Linux
MySQL数据库下载安装教程(Windows&Linux)
本文档详细介绍了MySQL的安装步骤,包括安装前的准备工作、下载安装包、Windows和Linux系统下的具体安装流程,以及如何配置MySQL服务、设置环境变量、启动服务和连接数据库等关键操作。
|
2月前
|
SQL Java 数据库连接
JDBC编程安装———通过代码操控数据库
本文,教你从0开始学习JBCD,包括驱动包的下载安装调试设置,以及java是如何通过JBDC实现对数据库的操作,以及代码的分析,超级详细
|
3月前
|
SQL 存储 Linux
从配置源到数据库初始化一步步教你在CentOS 7.9上安装SQL Server 2019
【11月更文挑战第16天】本文介绍了在 CentOS 7.9 上安装 SQL Server 2019 的详细步骤,包括配置系统源、安装 SQL Server 2019 软件包以及数据库初始化,确保 SQL Server 正常运行。
168 4
|
3月前
|
网络安全 数据库
gbase 8a 数据库 安装8ampp 常见ssh报错问题
gbase 8a 数据库 安装8ampp 常见ssh报错问题
|
Oracle 关系型数据库 数据库
|
Oracle 关系型数据库 数据格式
11gr2 RAC安装INS-35354问题一例
转自:http://www.askmaclean.com/archives/11gr2-rac安装ins-35354问题一例.html 今天在安装一套11.2.0.2 RAC数据库时出现了INS-35354的问题: 因为之前已经成功安装了11.
1059 0

热门文章

最新文章