| 项目 | 要求 | 检查命令 |
| RAM | 至少8G | # grep MemTotal /proc/meminfo |
| 运行级别 | 3 or 5 | # runlevel |
| Linux版本 | Oracle Linux 7.4 with the Unbreakable Enterprise Kernel 4:4.1.12-112.16.7.el7uek.x86_64 or laterOracle Linux 7.4 with the Unbreakable Enterprise Kernel 5:4.14.35-1818.1.6.el7uek.x86_64 or laterOracle Linux 7.4 with the Red Hat Compatible kernel:3.10.0-693.5.2.0.1.el7.x86_64 or later• Red Hat Enterprise Linux 7.4: 3.10.0-693.5.2.0.1.el7.x86_64or later• SUSE Linux Enterprise Server 12 SP3: 4.4.103-92.56-defaultor later | # uname -mr# cat /etc/redhat-release |
| /tmp | 至少1G | # du -h /tmp |
| swap | SWAP Between 4 GB and 16 GB: Equal to RAM More than 16 GB: 16 GB,如果启用了Huge Page,则计算SWAP需要减去分配给HugePage的内存。 | # grep SwapTotal /proc/meminfo |
| /dev/shm | 检查/dev/shm挂载类型,以及权限。 | # df -h /dev/shm |
| 软件空间要求 | grid至少12G,Oracle至少10g空间,建议分配100g预留19c开始GIMR在standalone安装时变为可选项。 | # df -h /u01 |
| 用户 | 操作系统 | IP地址 | VIP | SCANIP | 心跳 | root信息 | Oracleroot | 配置 | 主机名 |
| Oracle RAC | Oracle Linx7.8 | 192.168.26.3 | 192.168.26.11 | 192.168.26.7 | 10.10.10.115 | psbcdb19cr1 | |||
| 192.168.26.5 | 192.168.26.21 | 192.168.26.7 | 10.10.10.116 | psbcdb19cr2 | |||||
| ASM存储 | Oracle Linx7.8 | ||||||||
| ASM磁盘名称 | ASM磁盘单个容量(GB) | ASM磁盘个数 | 用户与组的属性 | 用途说明 |
| CRSDG | 5G | 5 | grid:asmadmin | OCR(集群注册表):维护集群的配置信息和集群中的数据库的配置信息 |
| DGDATA01 | 200G | 10 | grid:asmadmin | 用于存放数据库实例数据文件 |
| DGARCH | 200G | 3 | grid:asmadmin | 用于存放归档日志 |
| DGSYS | 200G | 3 | grid:asmadmin | 存放联机重做日志 |
| IP地址 | 主机名 | 网卡名 | 用途说明 |
| 192.168.26.10 | psbcdb19cr1 | eth0 | Public-ip(bond0) |
| 192.168.26.20 | psbcdb19cr2 | eth0 | |
| 10.10.10.115 | psbcdb19cr1-priv | eth1 | Private-ip(bond1) |
| 10.10.10.116 | psbcdb19cr2-priv | eth1 | |
| 192.168.26.11 | psbcdb19cr1-vip | / | Virtual-ip |
| 192.168.26.21 | psbcdb19cr2-vip | / | |
| 192.168.26.7 | psbcdb-cluster-scan | / | Scan-ip |
| 参数 | 建议值 | 备注 |
| PGA_AGGREGATE_TARGET | 物理内存*16% | OLTP:PGA_AGGREGATE_TARGET=(<总内存>*80%)*20% OLAP:PGA_AGGREGATE_TARGET=(<总内存>*80%)*50% |
| SGA_TARGET/SGA_MAX_SIZE | 不高于物理内存的64% | OLTP: SGA_TARGET=(<总内存>*80%)*80% OLAP: SGA_TARGET=(<总内存>*80%)*50% |
| MEMORY_TARGET | 0 | 启用大页时建议关闭 |
| UNDO_RETENTION | 86400 | 对于自动扩展的UNDO表空间,Oracle会根据该参数设定的阈值尽可能的保留UNDO信息时间,为86400,即1天 |
| enable_ddl_logging | TRUE | 启动DDL日志记录功能 |
| optimizer_adaptive_plans | FALSE | 仅用SQL自适应查询优化特性 |
| parallel_force_local | TRUE | 控制并行进程是否可以跨RAC节点 |
| deferred_segment_creation | FALSE | 推荐值为FALSE,即取消段延迟创建功能 |
| _clusterwid_global_transactions | FALSE | 集群范围全局事务 |
| _datafile_write_errors_crash_instance | FALSE | 防止PDB中数据文件写入异常导致整个CDB宕机 |
| _optimizer_extended_cursor_sharing/_optimizer_extended_cursor_sharing_rel | none | 避免子游标过多 |
| _PX_use_large_pool | TRUE | 将并行会话改为使用大池 |
| _use_adaptive_log_file_sync | FALSE | 控制提交时日志的写入极致 |
| _serial_direct_read | nerver | 达标倾向于直接读取路径 |
| _use_single_log_writer | TRUE | Oracle12c引入了多日志写入进程的新特性,该新特性容易导致日志写入进程挂起 |
| _gc_policy_time | 0 | 关闭DRM特性,可以避免节点间频繁的重置,从而避免数据库挂起,性能不稳定等问题 |
| _gc_undo_affinity | FALSE |
选择配置一个独立的集群
配置SCAN
注意:如果提前没有配置互信,则需要通过SSH connectivity进行setup。
由于之前进行配置过,主机名以及IP进行修改过,因此报错了,需要对root,grid,oracle的.ssh中进行清理,然后再进行设置互信。
GI runInstaller Fails with INS-6006 in VNC During SSH test even though SSH Setup is successful (文档 ID 2070270.1)清理下grid中的.ssh网络配置页面,我们采用bond0为Public-IP ,bond1为Private-IP。其中bond1我们选择private和asm选项。
我们选择ASM存储
选择No
选择No
创建OCR盘,High 5块
设置密码:
密码如果设置较为复杂,则不会出现这个INS-30011
设置复杂的密码:
下一步,我们选择Do
取消EM
默认:
默认下一步:
Grid_base目录
默认,下一步。
第一次安装不要点击自动安装
如果选择自动安装,则root密码需要输入。我们可以不选择配置,后期会手动输入。
告警较多,Fix&CheckAgent进行执行一次,会消去很多。
剩下的忽略。 
安装页,选择安装。
弹出界面之后,打开root窗口,进行安装。
执行[root@psbcdb19cr1 ~]# /grid/oraInventory/orainstRoot.sh
Changing permissions of /grid/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /grid/oraInventory to oinstall.
The execution of the script is complete.
[root@psbcdb19cr1 ~]# /grid/grid_home/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /grid/grid_home
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /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.
Relinking oracle with rac_on option
Using configuration parameter file: /grid/grid_home/crs/install/crsconfig_params
The log of current session can be found at:
/grid/grid_base/crsdata/psbcdb19cr1/crsconfig/rootcrs_psbcdb19cr1_2021-07-27_01-08-20AM.log
2021/07/27 01:08:26 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.
2021/07/27 01:08:26 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.
2021/07/27 01:08:26 CLSRSC-363: User ignored prerequisites during installation
2021/07/27 01:08:26 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.
2021/07/27 01:08:28 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.
2021/07/27 01:08:29 CLSRSC-594: Executing installation step 5 of 19: 'SetupOSD'.
2021/07/27 01:08:29 CLSRSC-594: Executing installation step 6 of 19: 'CheckCRSConfig'.
2021/07/27 01:08:29 CLSRSC-594: Executing installation step 7 of 19: 'SetupLocalGPNP'.
2021/07/27 01:08:42 CLSRSC-594: Executing installation step 8 of 19: 'CreateRootCert'.
2021/07/27 01:08:45 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'.
2021/07/27 01:08:50 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
2021/07/27 01:08:52 CLSRSC-594: Executing installation step 10 of 19: 'ConfigCHMOS'.
2021/07/27 01:08:53 CLSRSC-594: Executing installation step 11 of 19: 'CreateOHASD'.
2021/07/27 01:08:56 CLSRSC-594: Executing installation step 12 of 19: 'ConfigOHASD'.
2021/07/27 01:08:56 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
2021/07/27 01:09:17 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'.
2021/07/27 01:09:21 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.
2021/07/27 01:09:25 CLSRSC-594: Executing installation step 15 of 19: 'InstallKA'.
2021/07/27 01:09:29 CLSRSC-594: Executing installation step 16 of 19: 'InitConfig'.
ASM has been created and started successfully.
[DBT-30001] Disk groups created successfully. Check /grid/grid_base/cfgtoollogs/asmca/asmca-210727AM010958.log for details.
2021/07/27 01:10:49 CLSRSC-482: Running command: '/grid/grid_home/bin/ocrconfig -upgrade grid oinstall'
CRS-4256: Updating the profile
Successful addition of voting disk fe2fc18e9b3a4f5abfa71f4905f8773a.
Successfully replaced voting disk group with +CRSDG.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE fe2fc18e9b3a4f5abfa71f4905f8773a (/dev/sdb) [CRSDG]
Located 1 voting disk(s).
2021/07/27 01:12:05 CLSRSC-594: Executing installation step 17 of 19: 'StartCluster'.
2021/07/27 01:13:09 CLSRSC-343: Successfully started Oracle Clusterware stack
2021/07/27 01:13:09 CLSRSC-594: Executing installation step 18 of 19: 'ConfigNode'.
2021/07/27 01:14:15 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.
2021/07/27 01:14:38 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@psbcdb19cr1 ~]# [root@psbcdb19cr2 ~]# /grid/oraInventory/orainstRoot.sh
Changing permissions of /grid/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /grid/oraInventory to oinstall.
The execution of the script is complete.
[root@psbcdb19cr2 ~]# /grid/grid_home/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /grid/grid_home
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /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.
Relinking oracle with rac_on option
Using configuration parameter file: /grid/grid_home/crs/install/crsconfig_params
The log of current session can be found at:
/grid/grid_base/crsdata/psbcdb19cr2/crsconfig/rootcrs_psbcdb19cr2_2021-07-27_01-15-29AM.log
2021/07/27 01:15:33 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.
2021/07/27 01:15:33 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.
2021/07/27 01:15:33 CLSRSC-363: User ignored prerequisites during installation
2021/07/27 01:15:33 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.
2021/07/27 01:15:34 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.
2021/07/27 01:15:35 CLSRSC-594: Executing installation step 5 of 19: 'SetupOSD'.
2021/07/27 01:15:35 CLSRSC-594: Executing installation step 6 of 19: 'CheckCRSConfig'.
2021/07/27 01:15:35 CLSRSC-594: Executing installation step 7 of 19: 'SetupLocalGPNP'.
2021/07/27 01:15:37 CLSRSC-594: Executing installation step 8 of 19: 'CreateRootCert'.
2021/07/27 01:15:37 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'.
2021/07/27 01:15:41 CLSRSC-594: Executing installation step 10 of 19: 'ConfigCHMOS'.
2021/07/27 01:15:42 CLSRSC-594: Executing installation step 11 of 19: 'CreateOHASD'.
2021/07/27 01:15:43 CLSRSC-594: Executing installation step 12 of 19: 'ConfigOHASD'.
2021/07/27 01:15:43 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
2021/07/27 01:15:58 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
2021/07/27 01:16:04 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'.
2021/07/27 01:16:05 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.
2021/07/27 01:16:06 CLSRSC-594: Executing installation step 15 of 19: 'InstallKA'.
2021/07/27 01:16:07 CLSRSC-594: Executing installation step 16 of 19: 'InitConfig'.
2021/07/27 01:16:17 CLSRSC-594: Executing installation step 17 of 19: 'StartCluster'.
2021/07/27 01:17:00 CLSRSC-343: Successfully started Oracle Clusterware stack
2021/07/27 01:17:00 CLSRSC-594: Executing installation step 18 of 19: 'ConfigNode'.
2021/07/27 01:17:18 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.
2021/07/27 01:17:26 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@psbcdb19cr2 ~]# 由于之前忽略了一些选项,弹出告警界面,我们选择YES
以上为安装步骤。以下为检查集群状态。
Asmca配置磁盘组,创建数据磁盘组DGDATA01 ,和DGARCH
2. Oracle配置我们仅安装数据库软件
安装集群
设置互信
安装企业版
默认下一步
默认,下一步。
可以暂时不选择,通过手动进行执行root.sh脚本
执行root.sh脚本
dbca创建数据库。
定制数据库



注意这一步遇到了问题,选择ASM磁盘后无法识别磁盘。通过查询mos,以下解决办法oracle@psbcdb19cr1[psbcdb1]/home/oracle$source .bash_profile $ORACLE_SID: psbcdb1 $ORACLE_HOME: /oracle/db19c oracle@psbcdb19cr1[psbcdb1]/home/oracle$/grid/grid_home/bin/kfod nohdr=TRUE OP=GROUPS status=true asmcompatibility=true dbcompatibility=true verbose=true 10240 10108 EXTERN DGDATA01 10.1.0.0.0 19.0.0.0.0 10240 10108 EXTERN DGARCH 10.1.0.0.0 19.0.0.0.0 6144 1590 NORMAL CRSDG 10.1.0.0.0 19.0.0.0.0


上线前的压力测试数据库性能测试主要可分为以下三个大类:² 数据库并发数:当前系统所能承受的最大用户数,也就是系统能够支持的最大客户端数量。² 服务器资源(CPU 、I/O、内存)使用率:在各种负载压力下,服务器CPU的处理事件,I/O响应情况和内存使用率。² 数据库的可靠性:在连续运行的状态下,系统正常运行的时间。大多数负载测试工具可以分为以下几个大类:Ø I/O测试。Ø RDBMS层的I/O测试。Ø 数据库方面的应用程序级别测试工具。Ø 应用方向的应用程序级别测试工具。第四种负载工具涉及到真实的应用场景建模,一般需要应用配合完成。前三种则不需要应用参与,DBA也可以自行完成。 | 负载类型 | 说明 |
| simple | tests random8K small IOs at various loads,then ra ndom 1Mlarge IOs at various loads. |
| normal | tests combinations of random 8K small IOs and random1M large IOs |
| advanced | run theworkload specified by the user usingoptional parameters |
| dss | run with random1M large IOs at increasing loads to determinethe maximum throughput |
| oltp | run with random8K small IOs at increasing loads to determinethe maximum IOPS |
很好奇,就使用rubyonrails自动化单元测试而言,你们正在做什么?您是否创建了一个脚本来在cron中运行rake作业并将结果邮寄给您?git中的预提交Hook?只是手动调用?我完全理解测试,但想知道在错误发生之前捕获错误的最佳实践是什么。让我们理所当然地认为测试本身是完美无缺的,并且可以正常工作。下一步是什么以确保他们在正确的时间将可能有害的结果传达给您? 最佳答案 不确定您到底想听什么,但是有几个级别的自动代码库控制:在处理某项功能时,您可以使用类似autotest的内容获得关于哪些有效,哪些无效的即时反馈。要确保您的提
我想为Heroku构建一个Rails3应用程序。他们使用Postgres作为他们的数据库,所以我通过MacPorts安装了postgres9.0。现在我需要一个postgresgem并且共识是出于性能原因你想要pggem。但是我对我得到的错误感到非常困惑当我尝试在rvm下通过geminstall安装pg时。我已经非常明确地指定了所有postgres目录的位置可以找到但仍然无法完成安装:$envARCHFLAGS='-archx86_64'geminstallpg--\--with-pg-config=/opt/local/var/db/postgresql90/defaultdb/po
我打算为ruby脚本创建一个安装程序,但我希望能够确保机器安装了RVM。有没有一种方法可以完全离线安装RVM并且不引人注目(通过不引人注目,就像创建一个可以做所有事情的脚本而不是要求用户向他们的bash_profile或bashrc添加一些东西)我不是要脚本本身,只是一个关于如何走这条路的快速指针(如果可能的话)。我们还研究了这个很有帮助的问题:RVM-isthereawayforsimpleofflineinstall?但有点误导,因为答案只向我们展示了如何离线在RVM中安装ruby。我们需要能够离线安装RVM本身,并查看脚本https://raw.github.com/wayn
我有一个奇怪的问题:我在rvm上安装了rubyonrails。一切正常,我可以创建项目。但是在我输入“railsnew”时重新启动后,我有“程序'rails'当前未安装。”。SystemUbuntu12.04ruby-v"1.9.3p194"gemlistactionmailer(3.2.5)actionpack(3.2.5)activemodel(3.2.5)activerecord(3.2.5)activeresource(3.2.5)activesupport(3.2.5)arel(3.0.2)builder(3.0.0)bundler(1.1.4)coffee-rails(
我刚刚为fedora安装了emacs。我想用emacs编写ruby。为ruby提供代码提示、代码完成类型功能所需的工具、扩展是什么? 最佳答案 ruby-mode已经包含在Emacs23之后的版本中。不过,它也可以通过ELPA获得。您可能感兴趣的其他一些事情是集成RVM、feature-mode(Cucumber)、rspec-mode、ruby-electric、inf-ruby、rinari(用于Rails)等。这是我当前用于Ruby开发的Emacs配置:https://github.com/citizen428/emacs
我正在尝试在我的centos服务器上安装therubyracer,但遇到了麻烦。$geminstalltherubyracerBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingtherubyracer:ERROR:Failedtobuildgemnativeextension./usr/local/rvm/rubies/ruby-1.9.3-p125/bin/rubyextconf.rbcheckingformain()in-lpthread...yescheckingforv8.h...no***e
我的最终目标是安装当前版本的RubyonRails。我在OSXMountainLion上运行。到目前为止,这是我的过程:已安装的RVM$\curl-Lhttps://get.rvm.io|bash-sstable检查已知(我假设已批准)安装$rvmlistknown我看到当前的稳定版本可用[ruby-]2.0.0[-p247]输入命令安装$rvminstall2.0.0-p247注意:我也试过这些安装命令$rvminstallruby-2.0.0-p247$rvminstallruby=2.0.0-p247我很快就无处可去了。结果:$rvminstall2.0.0-p247Search
我实际上是在尝试使用RVM在我的OSX10.7.5上更新ruby,并在输入以下命令后:rvminstallruby我得到了以下回复:Searchingforbinaryrubies,thismighttakesometime.Checkingrequirementsforosx.Installingrequirementsforosx.Updatingsystem.......Errorrunning'requirements_osx_brew_update_systemruby-2.0.0-p247',pleaseread/Users/username/.rvm/log/138121
由于fast-stemmer的问题,我很难安装我想要的任何rubygem。我把我得到的错误放在下面。Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingfast-stemmer:ERROR:Failedtobuildgemnativeextension./System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/rubyextconf.rbcreatingMakefilemake"DESTDIR="cleanmake"DESTDIR=
当我尝试安装Ruby时遇到此错误。我试过查看this和this但无济于事➜~brewinstallrubyWarning:YouareusingOSX10.12.Wedonotprovidesupportforthispre-releaseversion.Youmayencounterbuildfailuresorotherbreakages.Pleasecreatepull-requestsinsteadoffilingissues.==>Installingdependenciesforruby:readline,libyaml,makedepend==>Installingrub