AIX 7安装11.2.0.4 RAC-(主机名大写坑)
发表于:2025-01-21 作者:千家信息网编辑
千家信息网最后更新 2025年01月21日,在我们安装Oracle RAC的时候,要求操作系统的主机名都要小写,8个字符以内,不要使用下划线,不然我们在配置互信验证的时候是无法通过的,在配置EMCC的时候也可能有问题。AIX + 11G RAC
千家信息网最后更新 2025年01月21日AIX 7安装11.2.0.4 RAC-(主机名大写坑)
在我们安装Oracle RAC的时候,要求操作系统的主机名都要小写,8个字符以内,不要使用下划线,不然我们在配置互信验证的时候是无法通过的,在配置EMCC的时候也可能有问题。
AIX + 11G RAC 手动配置互信
分别在grid用户和oracle用户下 执行$ ./sshsetup/sshUserSetup.sh -user grid -hosts "test1a test1b" -advanced -noPromptPassphraseThe output of this script is also logged into /tmp/sshUserSetup_2018-03-20-22-42-12.logHosts are test1a test1buser is gridPlatform:- AIX Checking if the remote hosts are reachablePING test1a: (20.1.1.3): 56 data bytes64 bytes from 20.1.1.3: icmp_seq=0 ttl=255 time=0 ms64 bytes from 20.1.1.3: icmp_seq=1 ttl=255 time=0 ms64 bytes from 20.1.1.3: icmp_seq=2 ttl=255 time=0 ms64 bytes from 20.1.1.3: icmp_seq=3 ttl=255 time=0 ms64 bytes from 20.1.1.3: icmp_seq=4 ttl=255 time=0 ms--- test1a ping statistics ---5 packets transmitted, 5 packets received, 0% packet lossround-trip min/avg/max = 0/0/0 msPING test1b: (20.1.1.4): 56 data bytes64 bytes from 20.1.1.4: icmp_seq=0 ttl=255 time=0 ms64 bytes from 20.1.1.4: icmp_seq=1 ttl=255 time=0 ms64 bytes from 20.1.1.4: icmp_seq=2 ttl=255 time=0 ms64 bytes from 20.1.1.4: icmp_seq=3 ttl=255 time=0 ms64 bytes from 20.1.1.4: icmp_seq=4 ttl=255 time=0 ms--- test1b ping statistics ---5 packets transmitted, 5 packets received, 0% packet lossround-trip min/avg/max = 0/0/0 msRemote host reachability check succeeded.The following hosts are reachable: test1a test1b.The following hosts are not reachable: .All hosts are reachable. Proceeding further...firsthost test1anumhosts 2The script will setup SSH connectivity from the host test1a to allthe remote hosts. After the script is executed, the user can use SSH to runcommands on the remote hosts or copy files between this host test1aand the remote hosts without being prompted for passwords or confirmations.NOTE 1:As part of the setup procedure, this script will use ssh and scp to copyfiles between the local host and the remote hosts. Since the script does notstore passwords, you may be prompted for the passwords during the execution ofthe script whenever ssh or scp is invoked.NOTE 2:AS PER SSH REQUIREMENTS, THIS SCRIPT WILL SECURE THE USER HOME DIRECTORYAND THE .ssh DIRECTORY BY REVOKING GROUP AND WORLD WRITE PRIVILEDGES TO THESEdirectories.Do you want to continue and let the script make the above mentioned changes (yes/no)?yesThe user chose yesUser chose to skip passphrase related questions.Creating .ssh directory on local host, if not present alreadyCreating authorized_keys file on local hostChanging permissions on authorized_keys to 644 on local hostCreating known_hosts file on local hostChanging permissions on known_hosts to 644 on local hostCreating config file on local hostIf a config file exists already at /home/grid/.ssh/config, it would be backed up to /home/grid/.ssh/config.backup.Removing old private/public keys on local hostRunning SSH keygen on local host with empty passphraseGenerating public/private rsa key pair.Your identification has been saved in /home/grid/.ssh/id_rsa.Your public key has been saved in /home/grid/.ssh/id_rsa.pub.The key fingerprint is:SHA256:EF3sifhL3fQcDNDryrwYFuLS54euDwn6K75GJewXQMY grid@test1aThe key's randomart image is:+---[RSA 1024]----+| oo .. ooo || .E .. . o || . . .. o . + || o o ... o o o || . o....S. + o . || o..+ oo.. o o || .... =.+= . || o. . =oo= || oooo..+=... |+----[SHA256]-----+Creating .ssh directory and setting permissions on remote host test1aTHE SCRIPT WOULD ALSO BE REVOKING WRITE PERMISSIONS FOR group AND others ON THE HOME DIRECTORY FOR grid. THIS IS AN SSH REQUIREMENT.The script would create /home/grid/.ssh/config file on remote host test1a. If a config file exists already at /home/grid/.ssh/config, it would be backed up to /home/grid/.ssh/config.backup.The user may be prompted for a password here since the script would be running SSH on host test1a.Warning: Permanently added 'test1a,20.1.1.3' (ECDSA) to the list of known hosts.grid@test1a's password: Done with creating .ssh directory and setting permissions on remote host test1a.Creating .ssh directory and setting permissions on remote host test1bTHE SCRIPT WOULD ALSO BE REVOKING WRITE PERMISSIONS FOR group AND others ON THE HOME DIRECTORY FOR grid. THIS IS AN SSH REQUIREMENT.The script would create /home/grid/.ssh/config file on remote host test1b. If a config file exists already at /home/grid/.ssh/config, it would be backed up to /home/grid/.ssh/config.backup.The user may be prompted for a password here since the script would be running SSH on host test1b.Warning: Permanently added 'test1b,20.1.1.4' (ECDSA) to the list of known hosts.grid@test1b's password: Done with creating .ssh directory and setting permissions on remote host test1b.Copying local host public key to the remote host test1aThe user may be prompted for a password or passphrase here since the script would be using SCP for host test1a.grid@test1a's password: Done copying local host public key to the remote host test1aCopying local host public key to the remote host test1bThe user may be prompted for a password or passphrase here since the script would be using SCP for host test1b.grid@test1b's password: Done copying local host public key to the remote host test1bCreating keys on remote host test1a if they do not exist already. This is required to setup SSH on host test1a.Creating keys on remote host test1b if they do not exist already. This is required to setup SSH on host test1b.Generating public/private rsa key pair.Your identification has been saved in .ssh/id_rsa.Your public key has been saved in .ssh/id_rsa.pub.The key fingerprint is:SHA256:hcmrstSGW5DnyeR2jCZHXpIhZXO5yL9oUMYuhji+auw grid@test1bThe key's randomart image is:+---[RSA 1024]----+| + .. || o +.o || .o..+.. || o*o.o || . .o+*.S ||o . +%.B. ||o. .=o/.o. || + . @o.. ||=E. o. |+----[SHA256]-----+Updating authorized_keys file on remote host test1aUpdating known_hosts file on remote host test1aUpdating authorized_keys file on remote host test1bUpdating known_hosts file on remote host test1bcat: 0652-050 Cannot open /home/grid/.ssh/known_hosts.tmp.cat: 0652-050 Cannot open /home/grid/.ssh/authorized_keys.tmp.SSH setup is complete.------------------------------------------------------------------------Verifying SSH setup===================The script will now run the date command on the remote nodes using sshto verify if ssh is setup correctly. IF THE SETUP IS CORRECTLY SETUP,THERE SHOULD BE NO OUTPUT OTHER THAN THE DATE AND SSH SHOULD NOT ASK FORPASSWORDS. If you see any output other than date or are prompted for thepassword, ssh is not setup correctly and you will need to resolve theissue and set up ssh again.The possible causes for failure could be:1. The server settings in /etc/ssh/sshd_config file do not allow sshfor user grid.2. The server may have disabled public key based authentication.3. The client public key on the server may be outdated.4. /home/grid or /home/grid/.ssh on the remote host may not be owned by grid.5. User may not have passed -shared option for shared remote users ormay be passing the -shared option for non-shared remote users.6. If there is output in addition to the date, but no password is asked,it may be a security alert shown as part of company policy. Append theadditional text to the /sysman/prov/resources/ignoreMessages.txt file.--------------------------------------------------------------------------test1a:--Running /usr/bin/ssh -x -l grid test1a date to verify SSH connectivity has been setup from local host to test1a.IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE, IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL. Please note that being prompted for a passphrase may be OK but being prompted for a password is ERROR.Tue Mar 20 22:42:37 CST 2018--------------------------------------------------------------------------test1b:--Running /usr/bin/ssh -x -l grid test1b date to verify SSH connectivity has been setup from local host to test1b.IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE, IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL. Please note that being prompted for a passphrase may be OK but being prompted for a password is ERROR.Tue Mar 20 08:41:35 CST 2018------------------------------------------------------------------------------------------------------------------------------------------------Verifying SSH connectivity has been setup from test1a to test1aIF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE, IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL.Tue Mar 20 22:42:38 CST 2018------------------------------------------------------------------------------------------------------------------------------------------------Verifying SSH connectivity has been setup from test1a to test1bIF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE, IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL.Tue Mar 20 08:41:37 CST 2018-------------------------------------------------------------------------Verification from complete-SSH verification complete.$ hostanmeksh: hostanme: not found.$ hostnametest1a$ ssh test1bLast unsuccessful login: Tue Mar 20 08:36:55 CST 2018 on ssh from 20.1.1.3Last login: Tue Mar 20 08:41:37 CST 2018 on ssh from 20.1.1.3******************************************************************************** ** ** Welcome to AIX Version 7.1! ** ** ** Please see the README file in /usr/lpp/bos for information pertinent to ** this release of the AIX Operating System. ** ** ********************************************************************************$ ssh test1aLast unsuccessful login: Tue Mar 20 22:37:46 CST 2018 on ssh from 20.1.1.3Last login: Tue Mar 20 22:42:38 CST 2018 on ssh from 20.1.1.3******************************************************************************** ** ** Welcome to AIX Version 7.1! ** ** ** Please see the README file in /usr/lpp/bos for information pertinent to ** this release of the AIX Operating System. ** ** ********************************************************************************$ 输入一次yes,四次密码验证方法date;ssh 远端主机名 date
时候
配置
主机
用户
o.
验证
操作系统
下划线
名都
字符
密码
小写
手动
方法
系统
问题
输入
大写
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
主机服务器配置
华为服务器挂耳的作用
未连接到数据库是什么原因
华为网络安全高级认证
备品数据库
高级软件开发工程师招聘信息
广日日滨G12系统服务器
平谷区加工软件开发怎么样
齐齐哈尔章鱼软件开发公司
三星服务器内存 区别
辽事通的软件开发商
开源无线网络技术
在发生危害网络安全的世界
数据库可以识别的日期类型
屏幕共享软件开发一般哪家好
负责网络安全和相关监督管理工作
端游永劫捏脸数据库
数据库分配权限
层次型数据库管理系统简称
网络安全学习海报
红楼梦 软件开发工程师
软件开发商的岗位说明
数据库io错误
江西计算机网络技术可以专升本
阿拉尔app软件开发
异空间网络安全可靠吗
略论网络安全的防与治
合肥斑马网络技术有限公司
计算机网络技术能创业吗
利用数据库管理共享文件