返回首页

gbase数据、南大通用产品文档:GBase8s确定安装顺序

更新日期:2024年09月11日

将数据库服务器和客户机产品安装在不同的目录中可以避免覆盖公共文件,并
且便于安装和解决问题。

命令说明
如果rebalance 对象处于PAUSED 状态,可以使用continue rebalance 命令使其继续
rebalance。
语法格式
continue rebalance

rebalance_options:
Table [[vc_name.]database_name.]table_name
| Database [vc_name.]database_name
| instance
表4- 44 参数说明
参数名称


table
[[vc_name.]database_name.]table_name
continue rebalance table 使指定处于
PAUSED 状态的表继续进行rebalance。
database [vc_name.]database_name
continue
rebalance
database
使
database_name 下所有处于PAUSED 状态
的表继续进行rebalance。
instance
continue rebalance instance 使指定实例下

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
353
参数名称


所有处于PAUSED 状态的表继续进行
rebalance。
示例
示例1:
gbase>
select
index_name,
status,
percentage
from
gclusterdb.rebalancing_status;
+--------------+--------+------------+
| index_name
| status | percentage |
+--------------+--------+------------+
| test.testdis | PAUSED | 10
|
+--------------+--------+------------+
1 row in set
gbase> continue rebalance table test.testdis;
Query OK, 1 row affected
gbase>
select
index_name,
status,
percentage
from
gclusterdb.rebalancing_status;
+--------------+---------+------------+
| index_name
| status
| percentage |
+--------------+---------+------------+
| test.testdis | RUNNING | 10
|
+--------------+---------+------------+
1 row in set
示例2:
gbase>
select
index_name,
status,
percentage
from
gclusterdb.rebalancing_status;
+---------------+-----------+------------+
| index_name
| status
| percentage |
+---------------+-----------+------------+
| test.testrep
| PAUSED
| 0
|
| test.testrand | PAUSED
| 10
|
| test.testdis
| PAUSED
| 10
|
+---------------+-----------+------------+
3 rows in set
gbase> continue rebalance database test;
Query OK, 3 rows affected
gbase>
select
index_name,
status,
percentage
from
gclusterdb.rebalancing_status;

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
354
+---------------+-----------+------------+
| index_name
| status
| percentage |
+---------------+-----------+------------+
| test.testrep
| STARTING |
0
|
| test.testrand | RUNNING
| 10
|
| test.testdis
| RUNNING
| 20
|
+---------------+-----------+------------+
3 rows in set
示例3:
gbase> continue rebalance instance ;
Query OK, 4 rows affected
gbase>
select
index_name,
status,
percentage
from
gclusterdb.rebalancing_status;
+---------------+-----------+------------+
| index_name
| status
| percentage |
+---------------+-----------+------------+
| test.testrep
| COMPLETED | 100
|
| test.testdis
| RUNNING
| 10
|
| test.testrand | COMPLETED | 100
|
| test1.t1
| RUNNING
| 10
|
| test1.t3
| RUNNING
| 10
|
| test1.t2
| RUNNING
| 10
|
+---------------+-----------+------------+
6 rows in set

JDBC 开发人员使用 PAM 来与启用了 PAM 的 GBase 8s 服务器通讯,必须实
现 com.gbasedbt.jdbc.IfmxPAM 接口。
要这么做,
请在 Java™ 类文件中的类声明行上放置下
列内容:
implements IfmxPAM
然后,该 Java 必须实现符合 Java 标准和先前提供的详细信息的 IfmxPAM 接口。下一步
就是通知 JDBC 驱动程序什么 Java 类已实现了IfmxPAM 接口。有两种方式来这么做:

将键-值对 IFX_PAM_CLASS=your.class.name 添加至连接 URL,在此,
值 your.class.name 是至已实现了 IfmxPAM 接口的类的路径。
当通过使用 DriverManager.getConnection
(URL)
途径来连接至 GBase 8s 服务器时,
通常使用此方法。

在尝试连接至启用了 PAM 的服务器之前,将带有值 your.class.name 的属
性 IFX_PAM_CLASS 添加至属性列表。
当通过使用 DataSource.getConnection() 途径来连接至 GBase 8s 服务器时,
使用此方
法。
在实现 IfmxPAM 时,
JDBC 开发人员拥有广泛的自由。
在使用 PAM 的认证期间,
发生下
列活动:
1. 当正在检测与启用了 PAM 的服务器的通讯时,JDBC 驱动程序联系 IfxPAM() 方
法,并将它转给包含 PAM 质询问题的一个IfxPAMChallenge 对象。
2.
出现一个您创建的对话框,带有一个包含由 PAM 发送的质询消息的文本问题。

GBase 8s JDBC Driver 程序员指南
南大通用数据技术股份有限公司
- 63 -
3. 当用户提供响应时,将它打包至 IfxPAMResponse 对象内,并通过退出返
回 IfxPAMResponse 对象的 IfxPAM() 方法,来将它返回至 JDBC 驱动程序。
4. 当 PAM 收到对质询问题的响应时,它可授权该用户、拒绝该用户访问,或发出另
一质询问题,在此情况下,重复前面的过程。
此过程继续,直到或者授权该用户,或者拒绝该用户访问为止。通过调用带有值 TRUE
的 IfxPAMResponse.setTerminateConnection() 方法,Java 开发人员或用户可终止 PAM 授
权序列。