Home Database Mysql Tutorial 11Gr2 RAC 修改scan IP

11Gr2 RAC 修改scan IP

Jun 07, 2016 pm 03:48 PM
rac scan Revise environment need

11Gr2环境需要更改scan ip, 基本的原理就是更改DNS或者hosts文件内的IP地址,然后通过srvctl 命令去同步CRS内的信息,完成scan ip的修改。 Before, need modify all the node /etc/hosts, set the new ip address. 1. Stop the SCAN listener and the SCAN V

11Gr2环境需要更改scan ip, 基本的原理就是更改DNS或者hosts文件内的IP地址,然后通过srvctl 命令去同步CRS内的信息,完成scan ip的修改。


Before, need modify all the node /etc/hosts,  set the new ip address.

1.
Stop the SCAN listener and the SCAN VIP resources:

2.需要先停止服务,测试时候由于没有停止服务,最后出现scan listener没有启动,后手动启动,同时parameter remote_listener值丢失,重新设置的。
# $GRID_HOME/bin/srvctl stop scan_listener
# $GRID_HOME/bin/srvctl stop scan
# $GRID_HOME/bin/srvctl status scan

<ol>
<li><span><span>SCAN VIP scan1 is enabled </span></span></li>
<li><span>SCAN VIP scan1 is not running </span></li>
</ol>
Copy after login

# $GRID_HOME/bin/srvctl status scan_listener
 

<ol>
<li><span><span>SCAN Listener LISTENER_SCAN1 is enabled </span></span></li>
<li>
<span>SCAN listener LISTENER_SCAN1 is not running </span><span> </span>
</li>
</ol>
Copy after login


3.
# To check the current IP address(es) of the SCAN VIPs, run the following commands as the root user:
$GRID_HOME/bin/srvctl config scan

<ol>
<li><span><span>SCAN name: qr01-scan, Network: 1/192.0.2.0/255.255.255.0/eth0 </span></span></li>
<li><span>SCAN VIP name: scan1, IP: /qr01-scan.example.com/192.0.2.21 </span></li>
</ol>
Copy after login


4.
# Next refresh the SCAN VIPs with the new IP addresses from the DNS entry:
$GRID_HOME/bin/srvctl modify scan -n
5.
# To check if the SCAN VIPs have been changed, run the following command, it should now show the new IP addresses.
$GRID_HOME/bin/srvctl config scan

<ol>
<li><span><span>SCAN name: qr01-scan, Network: 1/192.0.2.0/255.255.255.0/eth0 </span></span></li>
<li><span>SCAN VIP name: scan1, IP: /qr01-scan.example.com/192.0.2.31 </span></li>
</ol>
Copy after login


6.
Start SCAN and the SCAN listener:
# $GRID_HOME/bin/srvctl start scan
# $GRID_HOME/bin/srvctl start scan_listener
7.
check parameter
SQL> show parameter remote

<ol>
<li><span><span>NAME                                 TYPE        VALUE </span></span></li>
<li><span>------------------------------------ ----------- ------------------------------ </span></li>
<li><span>remote_listener                      string      qr01-scan:1521 </span></li>
</ol>
Copy after login


8.
check listener status

$ps -ef|grep tns

<ol>
<li><span><span>oracle    4992     1  0 16:12 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit </span></span></li>
<li><span>oracle    5004     1  0 16:12 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit </span></li>
<li><span>oracle    9816  5529  0 17:45 pts/0    00:00:00 grep tns </span></li>
</ol>
Copy after login

需要到grid用户下执行下面命令
$lsnrctl status LISTENER_SCAN1

 

<ol>
<li><span><span>LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 07-MAY-2012 17:46:25 </span></span></li>
<li><span> </span></li>
<li><span>Copyright (c) 1991, 2010, Oracle.  All rights reserved. </span></li>
<li><span> </span></li>
<li><span>Connecting to (<span>DESCRIPTION</span><span>=(</span><span>ADDRESS</span><span>=(</span><span>PROTOCOL</span><span>=</span><span>IPC</span><span>)(</span><span>KEY</span><span>=</span><span>LISTENER_SCAN1</span><span>))) </span></span></li>
<li><span>STATUS of the LISTENER </span></li>
<li><span>------------------------ </span></li>
<li><span>Alias                     LISTENER_SCAN1 </span></li>
<li><span>Version                   TNSLSNR for Linux: Version 11.2.0.2.0 - Production </span></li>
<li><span>Start Date                07-MAY-2012 12:12:11 </span></li>
<li><span>Uptime                    0 days 1 hr. 34 min. 14 sec </span></li>
<li><span>Trace Level               off </span></li>
<li><span>Security                  ON: Local OS Authentication </span></li>
<li><span>SNMP                      OFF </span></li>
<li><span>Listener Parameter File   /u01/app/11.2.0/grid/network/admin/listener.ora </span></li>
<li><span>Listener Log File         /u01/app/11.2.0/grid/log/diag/tnslsnr/qr01db02/listener_scan1/alert/log.xml </span></li>
<li><span>Listening Endpoints Summary... </span></li>
<li><span>  (<span>DESCRIPTION</span><span>=(</span><span>ADDRESS</span><span>=(</span><span>PROTOCOL</span><span>=</span><span>ipc</span><span>)(</span><span>KEY</span><span>=</span><span>LISTENER_SCAN1</span><span>))) </span></span></li>
<li><span>  (<span>DESCRIPTION</span><span>=(</span><span>ADDRESS</span><span>=(</span><span>PROTOCOL</span><span>=</span><span>tcp</span><span>)(</span><span>HOST</span><span>=</span><span>192</span><span>.0.2.31)(</span><span>PORT</span><span>=</span><span>1521</span><span>))) </span></span></li>
<li><span>Services Summary... </span></li>
<li><span>Service "dbm.example.com" has 2 instance(s). </span></li>
<li><span>  Instance "dbm1", status READY, has 1 handler(s) for this service... </span></li>
<li><span>  Instance "dbm2", status READY, has 1 handler(s) for this service... </span></li>
<li><span>Service "dbmXDB.example.com" has 2 instance(s). </span></li>
<li><span>  Instance "dbm1", status READY, has 1 handler(s) for this service... </span></li>
<li><span>  Instance "dbm2", status READY, has 1 handler(s) for this service... </span></li>
<li><span>The command completed successfully </span></li>
</ol>
Copy after login

 

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to change the personal name in the group on DingTalk_How to modify the personal name in the group on DingTalk How to change the personal name in the group on DingTalk_How to modify the personal name in the group on DingTalk Mar 29, 2024 pm 08:41 PM

1. First open DingTalk. 2. Open the group chat and click the three dots in the upper right corner. 3. Find my nickname in this group. 4. Click to enter to modify and save.

Unable to boot into Windows recovery environment Unable to boot into Windows recovery environment Feb 19, 2024 pm 11:12 PM

Windows Recovery Environment (WinRE) is an environment used to repair Windows operating system errors. After entering WinRE, you can perform system restore, factory reset, uninstall updates, etc. If you are unable to boot into WinRE, this article will guide you through fixes to resolve the issue. Unable to boot into the Windows Recovery Environment If you cannot boot into the Windows Recovery Environment, use the fixes provided below: Check the status of the Windows Recovery Environment Use other methods to enter the Windows Recovery Environment Did you accidentally delete the Windows Recovery Partition? Perform an in-place upgrade or clean installation of Windows below, we have explained all these fixes in detail. 1] Check Wi

Can Douyin Blue V change its name? What are the steps to change the name of corporate Douyin Blue V account? Can Douyin Blue V change its name? What are the steps to change the name of corporate Douyin Blue V account? Mar 22, 2024 pm 12:51 PM

Douyin Blue V certification is the official certification of a company or brand on the Douyin platform, which helps enhance brand image and credibility. With the adjustment of corporate development strategy or the update of brand image, the company may want to change the name of Douyin Blue V certification. So, can Douyin Blue V change its name? The answer is yes. This article will introduce in detail the steps to modify the name of the enterprise Douyin Blue V account. 1. Can Douyin Blue V change its name? You can change the name of Douyin Blue V account. According to Douyin’s official regulations, corporate Blue V certified accounts can apply to change their account names after meeting certain conditions. Generally speaking, enterprises need to provide relevant supporting materials, such as business licenses, organization code certificates, etc., to prove the legality and necessity of changing the name. 2. What are the steps to modify the name of corporate Douyin Blue V account?

Win10 sleep time modification tips revealed Win10 sleep time modification tips revealed Mar 08, 2024 pm 06:39 PM

Win10 Sleep Time Modification Tips Revealed As one of the currently widely used operating systems, Windows 10 has a sleep function to help users save power and protect the screen when not using the computer. However, sometimes the default sleep time does not meet the needs of users, so it is particularly important to know how to modify the Win10 sleep time. This article will reveal the tips for modifying the sleep time of Win10, allowing you to easily customize the system’s sleep settings. 1. Modify Win10 sleep time through “Settings” First, the simplest fix

How to modify the address location of published products on Xianyu How to modify the address location of published products on Xianyu Mar 28, 2024 pm 03:36 PM

When publishing products on the Xianyu platform, users can customize the geographical location information of the product according to the actual situation, so that potential buyers can more accurately grasp the specific location of the product. Once the product is successfully put on the shelves, there is no need to worry if the seller's location changes. The Xianyu platform provides a flexible and convenient modification function. So when we want to modify the address of a published product, how do we modify it? This tutorial guide will provide you with a detailed step-by-step guide. I hope it can help. Everyone! How to modify the release product address in Xianyu? 1. Open Xianyu, click on what I published, select the product, and click Edit. 2. Click the positioning icon and select the address you want to set.

How to modify the greeting content for boss direct recruitment How to modify the greeting content for boss direct recruitment Mar 01, 2024 pm 03:40 PM

In the job recruitment software called Boss Direct Jobs, users can personalize their greetings to better demonstrate their personality and job search intentions. However, sometimes the default greeting terms are rather mechanical and rigid. Many users want to make their own changes but don’t know where to set them. So this tutorial guide will introduce the detailed modification steps for players who want to know more. Come and follow this article to find out! How to change the answer when a boss directly hires someone to say hello: [Boss directly hires]-[My]-[Settings Icon]-[Greeting Language]. Specific steps: 1. First, we click on the boss direct recruitment software. After entering the homepage, we click [My] in the lower right corner; 2. Then when we come to the My page, we can see the relevant data.

Go Language Programming Guide: Implementation of Modifying Hosts File Go Language Programming Guide: Implementation of Modifying Hosts File Mar 07, 2024 am 10:51 AM

Title: Go Language Programming Guide: Implementation of Modifying the Hosts File In the daily software development process, we often encounter situations where we need to modify the hosts file in the operating system. The Hosts file is a text file without extension used to map IP addresses and host names. It is usually used to set up domain name resolution locally. In this article, we will introduce how to use the Go language to implement the function of modifying the hosts file of the operating system, and give specific code examples. First, we need to create a G that can modify the hosts file

Use jQuery to modify the text content of all a tags Use jQuery to modify the text content of all a tags Feb 28, 2024 pm 05:42 PM

Title: Use jQuery to modify the text content of all a tags. jQuery is a popular JavaScript library that is widely used to handle DOM operations. In web development, we often encounter the need to modify the text content of the link tag (a tag) on ​​the page. This article will explain how to use jQuery to achieve this goal, and provide specific code examples. First, we need to introduce the jQuery library into the page. Add the following code in the HTML file:

See all articles