1. Learning from the site:
HTTPS: // xiaoyu.blog.csdn.net/article/details/103135158
simply studied under the oracle RAC able to open up but the maintenance and use of the latter is still unclear, hope to have time to learn a simple finish.
2. Install the machine information
SP1 Win2008R2 i5 + 32G memory the original software installed .NET 4.0 VirtualBox 6.0 . 22 is to use the software installed vagrant vagrant patch windows powershell3.0 of: the Windows6.1-KB2506143-x64.msu
Git
And the oracle instant client and vc ++ 2013
3. Prepare a brief process
Speed too bad. The ol7- Latest downloaded to the local browser or Baidu cloud disk network path: HTTPS: // yum.oracle.com/boxes/oraclelinux/latest/ol7-latest.box
then added to the local vagrant in the warehouse to
the downloaded files into the directory
C: \ Users \ Administrator \ .vagrant.d \ boxes
and then create a file metadata.json
{
"name": "ol7-latest",
"versions": [{
"version": "2019.11.23",
"providers": [{
"name": "virtualbox",
"url": "./ol7-latest.box"
}]
}]
}
Then open cmd in the current directory using the command
vagrant add box metadata.json
Learning from: https: //www.jianshu.com/p/12cf1ecb224b
Git already done by pulling a box of vagrant file
git clone https://github.com/oracle/vagrant-boxes.git
Operate oraclerac directory and subdirectories into the inside
4. oracle preparation before installation
The grid has been prepared oralce the oracle DB installation files. For example, I will be here to install the files and documents stored in Oracle RAC here D: \ OracleRAC \ ORCL_software add files: LINUX.X64_190000_db_home.zip LINUX.X64_190000_grid_home.zip note that we still have to modify configuration files can always pay attention to file It is: D: \ OracleRAC \ config vagrant.yaml \ modifications shall be: env: gi_software: LINUX.X64_190000_grid_home.zip db_software: LINUX.X64_190000_db_home.zip # ---------------- ----------------------------- root_password: Test1127 ?! grid_password: Test1127 ?! oracle_password: Test1127 ?! sys_password: Test1127 ?! pdb_password : Test1127 ?!
Note that there's a name for the file and correspondence I downloaded the wrong became careless 192,000 193,000 results failed to install, simply to write directly to 190000 can be installed normally go up.
The modified front mounted handle character set
Need to modify the file path is:
D: \ OracleRAC \ scripts
have two files:
setup.sh
14_create_database.sh
can search all of the script file will
characterSet data values corresponding
to zhs16gbk
Note: Looks like you can automatically modify the setup.sh will be distributed to each of the different parameters of the parameter file to go.
6. perform the installation
In the d: \ OracleRAC directory execution
vagrant up
wait three to four hours to complete the installation automatically
7. Simple to use
Installation vagrant using a network nat model I wanted to forward it by netsh but only able to forward the physical ip address can not be forwarded vip and scanip simple view database can take netsh way to deal with but if you want to install with scanip if need be in the same server installation of a new virtual machine can. The netsh command: netsh interface the portproxy the Add ListenAddress for v4tov4 = 10.24 . 13.97 of listenport = 1521 connectaddress = 192.168 . 56.102 ConnectPort = 1521
8. Install the above test for the host:
E:\instantclient_12_2>sqlplus system/Test1127?!@192.168.56.107/DB193H1 SQL*Plus: Release 12.2.0.1.0 Production on Sat Nov 23 16:55:53 2019 Copyright (c) 1982, 2016, Oracle. All rights reserved. Last Successful login time: Sat Nov 23 2019 16:33:42 +08:00 Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production SQL>