Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle 12cR1 RAC installation on VMware Workstation (middle)-graphical interface installation

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Oracle 12cR1 RAC installation on VMware Workstation (middle)-graphical interface installation

1.1graphical interface installation 1.1.1 installation GRID installation log: / u01/app/oraInventory/logs/installActions2014-06-05 installation 06-12-27AM.log

First, open the Xmanager-Passive software, or log in to the virtual machine directly as the grid user, and perform graphical interface operations in the virtual machine.

[grid@raclhr-12cR1-N1 ~] $export DISPLAY=192.168.59.1:0.0

[grid@raclhr-12cR1-N1 ~] $xhost +

Access control disabled, clients can connect from any host

[grid@raclhr-12cR1-N1 ~] $cd / soft/grid/

[grid@raclhr-12cR1-N1 grid] $ll

Total 80

Drwxr-xr-x 4 root root 4096 Jan 16 17:04 install

-rwxr-xr-x 1 root root 34132 Jul 11 2014 readme.html

Drwxrwxr-x 2 root root 4096 Jul 7 2014 response

Drwxr-xr-x 2 root root 4096 Jul 7 2014 rpm

-rwxr-xr-x 1 root root 5085 Dec 20 2013 runcluvfy.sh

-rwxr-xr-x 1 root root 8534 Jul 7 2014 runInstaller

Drwxrwxr-x 2 root root 4096 Jul 7 2014 sshsetup

Drwxr-xr-x 14 root root 4096 Jul 7 2014 stage

-rwxr-xr-x 1 root root 500 Feb 7 2013 welcome.html

[grid@raclhr-12cR1-N1 grid] $. / runInstaller

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 415 MB. Actual 2790 MB Passed

Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed

Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed

Preparing to launch Oracle Universal Installer from / tmp/OraInstall2017-01-16008-41-48PM. Please wait... [grid@raclhr-12cR1-N1 grid] $

[grid@raclhr-12cR1-N1 grid] $

1.1.1.1 start installing Grid Infrastructure software

Click the "Next" button after setting it up according to the image above.

Select Configure a Standard cluster and select next:

1.1.1.2 Select installation type

Click the "Next" button after setting it up according to the image above.

Select language

Click the "Next" button after setting it up according to the image above.

1.1.1.3 name the cluster

SCAN Name is the same as in the / etc/hosts file, set up according to the figure above, click the "Next" button.

1.1.1.4 define nodes

The above figure shows the node where the installer is located. The node name and vip name must be lowercase. Click Edit to modify it first, and other nodes need to be added manually. Press the Add button. Hostname and Virtual IP Name are the same as in the file hosts, set up according to the figure above, and click the OK button.

1.1.1.5 configuring SSH user equivalence

Enter the password and press the Setup button to establish the SSH password-less interconnection. If the SSH connection is manually configured during the installation preparation phase, just click the Test button directly to test it. Click the "Next" button after setting it up according to the image above.

1.1.1.6 define the network card

1.1.1.7 configuring OCR and Voting disk

Click the "Next" button after setting it up according to the image above. Set Disk group name to OCR,Redundancy, select External, and click the Change Discovery Path button.

Specify the location of OCR and Voting disk as / dev/asm*, set Disk Discovery Path as the actual path according to the figure above, and click the OK button.

1.1.1.8 configure operating system users and groups

Select use same passwords for these accounts here

Click the Yes button.

Click the "Next" button after setting it up according to the image above.

Click "Next" to continue the installation

Configured here to:

Oracle ASM administrator:asmadmin

Oracle ASM DBA: asmdba

Oracle ASM Operator:asmoper

1.1.1.9 confirm the installation path

Click the "Next" button after setting it up according to the image above.

Click the "Next" button after setting it up according to the image above.

Click "Next" to continue

1.1.1.10 check before installation the installer will check whether the system environment meets the requirements, including RPM package, disk space, SWAP, clock synchronization, etc., and will give hints and solutions if any of the conditions fail.

The above items can be ignored. Select the check box Ignore All and click the "Next" button.

Click the Install button.

1.1.1.11 52% copy to Node 2

[grid@raclhr-12cR1-N1 grid] $df-h

Filesystem Size Used Avail Use% Mounted on

/ dev/mapper/vg_rootlhr-Vol00 9.9G 4.9G 4.5G 52% /

Tmpfs 1000m 72K 1000M 1% / dev/shm

/ dev/sda1 194M 35M 150M 19% / boot

/ dev/mapper/vg_rootlhr-Vol01 3.0G 578M 2.3G 21% / tmp

/ dev/mapper/vg_rootlhr-Vol03 3.0G 70M 2.8G 3% / home

/ dev/mapper/vg_orasoft-lv_orasoft_u01 20G 6.7g 12G 36% / U01

.host: / 331G 234G 97G 71% / mnt/hgfs

/ dev/mapper/vg_orasoft-lv_orasoft_soft 20G 11G 8.6G 54% / soft

[grid@raclhr-12cR1-N1 grid] $

[root@raclhr-12cR1-N2] # df-h

Filesystem Size Used Avail Use% Mounted on

/ dev/mapper/vg_rootlhr-Vol00 9.9G 4.9G 4.5G 52% /

Tmpfs 1000m 72K 1000M 1% / dev/shm

/ dev/sda1 194M 35M 150M 19% / boot

/ dev/mapper/vg_rootlhr-Vol01 3.0G 80m 2.8G 3% / tmp

/ dev/mapper/vg_rootlhr-Vol03 3.0G 69M 2.8G 3% / home

/ dev/mapper/vg_orasoft-lv_orasoft_u01 20G 5.3G 14G 29% / U01

.host: / 331G 234G 97G 71% / mnt/hgfs

/ dev/mapper/vg_orasoft-lv_orasoft_soft 20G 172m 19G 1% / soft

[root@raclhr-12cR1-N2 ~] #

1.1.1.1281% execute root.sh

When the above window appears, do not close the Execute Configuration scripts window, switch to the root user of node 1 and node 2, first run on node 1 and execute orainstRoot.sh as root user, and then run to node 2:

/ u01/app/oraInventory/orainstRoot.sh

Run root.sh on node 1 as the root user, and then run root.sh on node 2:

/ u01/app/12.1.0/grid_1/root.sh

If the execution of root.sh fails, the steps to re-execute root.sh are as follows:

-$ORACLE_HOME is the path of GRID_HOME. It is best to shut down the database resources manually before execution.

Log address: $ORACLE_HOME/cfgtoollogs/crsconfig/

Reset log file: hadelete.log

Root.sh script log: rootcrs_rac2.log

-① scripting mode

-failed to execute, re-execute the root.sh script

$ORACLE_HOME/crs/install/rootcrs.pl-deconfig-force-verbose

-- $ORACLE_HOME/crs/install/rootcrs.pl-deconfig-force-verbose-lastnode-keepdg

Dd if=/dev/zero of=/dev/rhdiskN bs=1024k count=1024

Lquerypv-h / dev/rhdisk5

$ORACLE_HOME/root.sh

$ORACLE_HOME/crs/install/rootcrs.pl-deconfig-force-verbose

-- $ORACLE_HOME/crs/install/rootcrs.pl-deconfig-force-verbose-lastnode-keepdg

$ORACLE_HOME/root.sh

-$ORACLE_HOME/crs/install/rootcrs.pl-deconfig-force-verbose needs to delete the following files after the execution is completed

Ls-l $ORACLE_BASE/Clusterware/ckptGridHA*

Find $ORACLE_HOME/gpnp/*-type f

Find $ORACLE_HOME/gpnp/*-type f-exec rm-rf {}\

[grid@raclhr-12cR1-N1 grid] $crsctl stat res-t

Name Target State Server State details

Local Resources

Ora.LISTENER.lsnr

ONLINE ONLINE raclhr-12cr1-n1 STABLE

ONLINE ONLINE raclhr-12cr1-n2 STABLE

Ora.OCR.dg

ONLINE ONLINE raclhr-12cr1-n1 STABLE

ONLINE ONLINE raclhr-12cr1-n2 STABLE

Ora.asm

ONLINE ONLINE raclhr-12cr1-n1 Started,STABLE

ONLINE ONLINE raclhr-12cr1-n2 Started,STABLE

Ora.net1.network

ONLINE ONLINE raclhr-12cr1-n1 STABLE

ONLINE ONLINE raclhr-12cr1-n2 STABLE

Ora.ons

ONLINE ONLINE raclhr-12cr1-n1 STABLE

ONLINE ONLINE raclhr-12cr1-n2 STABLE

Cluster Resources

Ora.LISTENER_SCAN1.lsnr

1 ONLINE ONLINE raclhr-12cr1-n1 STABLE

Ora.MGMTLSNR

1 OFFLINE OFFLINE STABLE

Ora.cvu

1 ONLINE ONLINE raclhr-12cr1-n1 STABLE

Ora.oc4j

1 ONLINE ONLINE raclhr-12cr1-n1 STABLE

Ora.raclhr-12cr1-n1.vip

1 ONLINE ONLINE raclhr-12cr1-n1 STABLE

Ora.raclhr-12cr1-n2.vip

1 ONLINE ONLINE raclhr-12cr1-n2 STABLE

Ora.scan1.vip

1 ONLINE ONLINE raclhr-12cr1-n1 STABLE

[grid@raclhr-12cR1-N1 grid] $

1.1.1.13 91% create MGMTDB wait until you finish running root.sh, switch back to the Execute Configuration scripts window and click the "OK" button.

Create a MGMTDB, and the data is stored in the OCR disk group. The following SQL statement was found from the background process (ps-ef | grep mgmt):

Dbca-silent-createDatabase-createAsContainerDatabase true-templateName MGMTSeed_Database.dbc-sid-MGMTDB-gdbName _ mgmtdb-storageType ASM-diskGroupName OCR-datafileJarLocation / u01/app/12.1.0/grid/assistants/dbca/templates-characterset AL32UTF8-autoGeneratePasswords-skipUserTemplateCheck-oui_internal

[root@raclhr-12cR1-N2 ~] # su-grid asmcmd lsdg

State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name

MOUNTED EXTERN N 512 4096 1048576 6144 5847 0 5847 0 Y OCR/

[root@raclhr-12cR1-N2 ~] # su-grid asmcmd lsdg

State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name

MOUNTED EXTERN N 512 4096 1048576 6144 4318 0 4318 0 Y OCR/

[root@raclhr-12cR1-N2 ~] # su-grid asmcmd lsdg

State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name

MOUNTED EXTERN N 512 4096 1048576 6144 1733 0 1733 0 Y OCR/

[root@raclhr-12cR1-N2 ~] # su-grid asmcmd lsdg

State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name

MOUNTED EXTERN N 512 4096 1048576 6144 1682 0 1682 0 Y OCR/

[root@raclhr-12cR1-N2 ~] #

After the creation is complete:

[grid@raclhr-12cR1-N1 grid] $crsctl stat res-t

Name Target State Server State details

Local Resources

Ora.LISTENER.lsnr

ONLINE ONLINE raclhr-12cr1-n1 STABLE

ONLINE ONLINE raclhr-12cr1-n2 STABLE

Ora.OCR.dg

ONLINE ONLINE raclhr-12cr1-n1 STABLE

ONLINE ONLINE raclhr-12cr1-n2 STABLE

Ora.asm

ONLINE ONLINE raclhr-12cr1-n1 Started,STABLE

ONLINE ONLINE raclhr-12cr1-n2 Started,STABLE

Ora.net1.network

ONLINE ONLINE raclhr-12cr1-n1 STABLE

ONLINE ONLINE raclhr-12cr1-n2 STABLE

Ora.ons

ONLINE ONLINE raclhr-12cr1-n1 STABLE

ONLINE ONLINE raclhr-12cr1-n2 STABLE

Cluster Resources

Ora.LISTENER_SCAN1.lsnr

1 ONLINE ONLINE raclhr-12cr1-n1 STABLE

Ora.MGMTLSNR

1 ONLINE ONLINE raclhr-12cr1-n1 169.254.146.43 192.1

68.2.100,STABLE

Ora.cvu

1 ONLINE ONLINE raclhr-12cr1-n1 STABLE

Ora.mgmtdb

1 ONLINE ONLINE raclhr-12cr1-n1 Open,STABLE

Ora.oc4j

1 ONLINE ONLINE raclhr-12cr1-n1 STABLE

Ora.raclhr-12cr1-n1.vip

1 ONLINE ONLINE raclhr-12cr1-n1 STABLE

Ora.raclhr-12cr1-n2.vip

1 ONLINE ONLINE raclhr-12cr1-n2 STABLE

Ora.scan1.vip

1 ONLINE ONLINE raclhr-12cr1-n1 STABLE

[grid@raclhr-12cR1-N1 grid] $

[grid@raclhr-12cR1-N1 grid] $ps-ef | grep pmon

Grid 21105 10 Jan16? 00:00:00 asm_pmon_+ASM1

Grid 36779 1 0 00:33? 00:00:00 mdb_pmon_-MGMTDB

Grid 44574 12846 0 00:45 pts/0 00:00:00 grep pmon

[grid@raclhr-12cR1-N1 grid] $ps-ef | grep MGMTDB | wc-l

forty-one

[grid@raclhr-12cR1-N1 grid] $

Click the Next button.

Click the Yes button.

Click the Close button.

About Me

.

● author: wheat seedlings, only focus on the database technology, pay more attention to the application of technology

● article is updated synchronously on itpub (http://blog.itpub.net/26736162), blog Park (http://www.cnblogs.com/lhrbest) and personal Wechat official account (xiaomaimiaolhr).

● article itpub address: http://blog.itpub.net/26736162/viewspace-2132772/

● article blog park address: http://www.cnblogs.com/lhrbest/p/6337508.html

● pdf version of this article and wheat seedling cloud disk address: http://blog.itpub.net/26736162/viewspace-1624453/

● QQ group: 230161599 WeChat group: private chat

● contact me, please add QQ friend (642808185), indicate the reason for adding

● was completed at Agricultural Bank of China from 08:00 on 2017-01-12 to 24:00 on 2016-01-21.

The content of the ● article comes from the study notes of wheat seedlings, and some of it is sorted out from the Internet. Please forgive me if there is any infringement or improper place.

Copyright ● all rights reserved, welcome to share this article, please reserve the source for reprint

.

Pick up your phone and use Wechat client to scan the picture on the left below to follow the Wechat official account of wheat seedlings: xiaomaimiaolhr, scan the QR code on the right to join the QQ group of wheat seedlings, and learn the most practical database technology.

Cdn.qqmail.com/zh_CN/htmledition/p_w_picpaths/function/qm_open/ico_mailme_02.png ">

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report