这个参数需要重启生效吗?我执行了报错,说需要set GLOBAL,set GLOBAL之后好像也没生效?
obclient [oceanbase]> set ob_tcp_invited_nodes=’%’
→ ;
ERROR 1229 (HY000): Variable ‘ob_tcp_invited_nodes’ is a GLOBAL variable and should be set with SET GLOBAL
[10.5.2.83:2882] [2025-08-22 15:31:43.415314] [YB420A050253-00061EA31E782E5F-0-0]
obclient [oceanbase]>
obclient [oceanbase]> set GLOBAL ob_tcp_invited_nodes=’%’;
Query OK, 0 rows affected (0.002 sec)
obclient [oceanbase]> exit
Bye
[root@UAT-OBServer03 ~]#
[root@UAT-OBServer03 ~]# obclient -h10.5.2.83 -P2881 -uroot@test_db_SmartStamp -A
ERROR 1227 (42501): Access denied
[0.0.0.0:0] [2025-08-22 15:32:29.591665] [Y0-00061EA31DE823B7-0-0]
[root@UAT-OBServer03 ~]# obclient -h10.5.2.83 -P2881 -uop@test_db_SmartStamp -p’F*IYiLw1fN’ -A
ERROR 1227 (42501): Access denied
[0.0.0.0:0] [2025-08-22 15:32:48.555494] [Y0-00061EA31DE823B8-0-0]
[root@UAT-OBServer03 ~]# obclient -h10.5.2.83 -P2881 -uroot -p’&EcT[pS3zE5(Cn!B=m’ -Doceanbase -A
Welcome to the OceanBase. Commands end with ; or \g.
Your OceanBase connection id is 3221578077
Server version: OceanBase_CE 4.2.1.5 (r105000032024041915-ec03c258eb381a36bfb5ee4304236d36ad583ed7) (Built Apr 19 2024 15:11:32)
Copyright (c) 2000, 2018, OceanBase and/or its affiliates. All rights reserved.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
obclient [oceanbase]> show parameters like ‘ob_tcp_invited_nodes’;
Empty set (0.043 sec)