SCANIP是ORACLE11G数据库的新特性,使用它可以简化客户端的vip配置,本单位去年搭建ORACLE11RAC环境时,由于搭建仓促,未对SCANIP进行测试,今年由于业务需要,
SCANIP是ORACLE11G数据库的新特性,香港服务器,使用它可以简化客户端的vip配置,本单位去年搭建ORACLE11 RAC环境时,由于搭建仓促,未对SCANIP进行测试,今年由于业务需要,需在多台客户端配置SCANIP时,发现SCANIP无法使用,报错截图如下:
随后在google中搜索解决,但也遇到点问题,特将解决步骤写下:
测试SCANIP地址
tnsping test
没有问题。
测试端口
telnet 172.16.5.40 1521
正常。
查看linux服务器hosts配置:
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
# Public Network
172.16.5.30 test1
172.16.5.31 test2
172.16.5.32 test3
# Private Network
20.20.20.1 test1-priv
20.20.20.2 test2-priv
20.20.20.3 test3-priv
# Public Virtual IP
172.16.5.35 test1-vip
172.16.5.36 test2-vip
172.16.5.37 test3-vip
# Single Client Access Name (SCAN)
172.16.5.40 tscanip
用集群命令检查SCANIP状态:
srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node test1
查看初始化参数文件
show parameter local_listener
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=TCP)(HOST=test
1-vip)(PORT=1521))))
在这里需修改local_listener参数,实现SCANIP地址的注册
修改前先备份初始化参数
create pfile='/home/oracle/bak/spfilebak_20130523_scanip.ora' from spfile;
修改local_listener参数
alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.5.35)(PORT=1521))))' scope=both sid='test1';
用命令是修改的值直接生效。
alter system register;
第二个节点修改方法和第一个节点的方法一致。分别测试SCANIP和VIP的连接都没有问题,任务完成。
注:这里需注意的是HOST主机参数为vip的ip地址,不是scanip的地址,如果填写的是scanip地址的话,美国服务器,则修改完参数后,scanip能够正常使用,但如果有客户端配置使用vip的话,则会出现下图所示错误。
只有分别修改两个节点的local_listener参数为两个节点的vip的ip地址,虚拟主机,才能够使scanip和vip地址同时生效!!!
本文出自 “没落的星辰” 博客,请务必保留此出处

todropaviewInmySQL,使用“ dropviewifexistsview_name;” andTomodifyAview,使用“ createOrreplaceViewViewViewview_nameAsSelect ...”。whendroppingaview,asew dectivectenciesanduse和showcreateateviewViewview_name;“ tounderStanditSsstructure.whenModifying

mySqlViewScaneFectectialized unizedesignpatternslikeadapter,Decorator,Factory,andObserver.1)adapterPatternadaptSdataForomDifferentTablesIntoAunifiendView.2)decoratorPatternenhancateDataWithCalcalcualdCalcalculenfields.3)fieldfields.3)

查看InMysqlareBeneForsImplifyingComplexqueries,增强安全性,确保dataConsistency,andOptimizingPerformance.1)他们simimplifycomplexqueriesbleiesbyEncapsbyEnculatingThemintoreusableviews.2)viewsEnenenhancesecuritybyControllityByControllingDataAcces.3)

toCreateAsimpleViewInmySQL,USEthecReateaTeviewStatement.1)defitEtheetEtheTeViewWithCreatEaTeviewView_nameas.2)指定usethectstatementTorivedesireddata.3)usethectStatementTorivedesireddata.3)usetheviewlikeatlikeatlikeatlikeatlikeatlikeatable.views.viewssimplplifefifydataaccessandenenanceberity but consisterfort,butconserfort,consoncontorfinft

1)foralocaluser:createUser'localuser'@'@'localhost'Indidendify'securepassword'; 2)foraremoteuser:creationuser's creationuser'Remoteer'Remoteer'Remoteer'Remoteer'Remoteer'Remoteer'Remoteer'Remoteer'Rocaluser'@'localhost'Indidendify'seceledify'Securepassword'; 2)

mysqlviewshavelimitations:1)他们不使用Supportallsqloperations,限制DatamanipulationThroughViewSwithJoinSorsubqueries.2)他们canimpactperformance,尤其是withcomplexcomplexclexeriesorlargedatasets.3)

porthusermanagementInmysqliscialforenhancingsEcurityAndsingsmenting效率databaseoperation.1)usecReateusertoAddusers,指定connectionsourcewith@'localhost'or@'%'。

mysqldoes notimposeahardlimitontriggers,butacticalfactorsdeterminetheireffactective:1)serverConfiguration impactactStriggerGermanagement; 2)复杂的TriggerSincreaseSySystemsystem load; 3)largertablesslowtriggerperfermance; 4)highConconcConcrencerCancancancancanceTigrignecentign; 5); 5)


热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

Video Face Swap
使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

WebStorm Mac版
好用的JavaScript开发工具

SublimeText3 Linux新版
SublimeText3 Linux最新版

MinGW - 适用于 Windows 的极简 GNU
这个项目正在迁移到osdn.net/projects/mingw的过程中,你可以继续在那里关注我们。MinGW:GNU编译器集合(GCC)的本地Windows移植版本,可自由分发的导入库和用于构建本地Windows应用程序的头文件;包括对MSVC运行时的扩展,以支持C99功能。MinGW的所有软件都可以在64位Windows平台上运行。

SublimeText3汉化版
中文版,非常好用

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)