自动安装
    将数据库软件包(GBase*.tar)放于当前目录，bash AutoInit_GBase8s.sh 执行自动安装；

环境检查
    执行bash CheckEnv.sh检查(AutoInit_GBase8s.sh自动调用该脚本)当前环境是否支持GBase 8s安装；

清除
    执行CleanAll.sh，将自动清理gbasedbt及安装目录；

脚本参数说明
Usage:
    AutoInit_GBase8s.sh [-d path] [-i path] [-p path] [-s y|n] [-l locale] [-u user] [-o y|n] 
                        [-n servername] [-c num_of_cpu] [-m num_of_memory] [-t type_of_instance]
                        [-a y|n]
                        [-E ertype] [-T hactype] [-H1 primary_ipaddr] [-H2 secondary_ipaddr]

        -d  path    The path of dbspace.
        -i  path    The path of install software.
        -p  path    The path of home path.
        -s  y|n     Value of dbspace is 1GB? Yes/No, default is N.
        -u  user    The user name for SYSDBA, gbasedbt/informix, default is gbasedbt
        -l  locale  DB_LOCALE/CLIENT_LOCALE/SERVER_LOCALE value.
        -o  y|n     Only install software? Yes/No, default is N.
        -n  NAME    Servername, default is gbase01.
        -c  NUM     Number of CPU use.
        -m  NUM     Number of MB Memory use.
        -t  TYPE    Type of instance will install, [small], if use this, ignore -c and -m. 
        -a  y|n     Security need, default N.
        -E  ERType  Type of ER, 0(NONE)/1(STD_PRI)/2(STD_SEC)/11(HAC_PRI)/12(HAC_SEC)
        -T  HACType Type of hac cluster, PRI/SEC/STD.
        -H1 ipaddr  Ipaddr for primary server.
        -H2 ipaddr  Ipaddr for secondary server.

-d  指定数据库空间目录，默认为/data/gbase（若该目录非空，则使用INSTALL_DIR/data）
-i  指定数据库软件安装目录INSTALL_DIR，默认为/opt/gbase
-p  指定数据库用户gbasedbt的HOME目录，默认为/home/gbasedbt
-s  数据库空间是否均使用1GB，默认是y（所有数据库空间均使用1GB大小）
-u  指定数据库系统管理员的名称，仅限gbasedbt和informix
-l  指定数据库的DB_LOCALE/CLIENT_LOCALE参数值，默认为zh_CN.utf8
-o  指定仅安装数据库，而不进行初始化操作，默认是n（安装并初始化数据库）
-n  指定数据库服务名称
-c  指定使用的CPU数量
-m  指定使用的内存数量，单位为MB
-t  指定安装的实例类型，当前可接受small
-a  指定是否开启三权分立，默认是n 
-E  指定ER类型，0不含ER/1单机ER主组/2单机ER从组/11ER HAC主组/12ER HAC从组
-T  指定HAC集群类型，接受PRI/SEC/STD，默认是STD
-H1 指定主节点IP地址
-H2 指定备节点IP地址

示例
    bash AutoInit_GBase8s.sh -s y -E 11 -T pri -H1 192.168.80.71 -H2 192.168.80.72

    bash AutoInit_GBase8s.sh -s y -E 12 -T sec -H1 192.168.80.71 -H2 192.168.80.72 

    bash AutoInit_GBase8s.sh -s y

systemd自启动配置  
    执行BuildSystemd.sh自动创建默认数据库环境的自启动    
    启动服务: systemctl start GBaseService_${servername}  
    关闭服务：systemctl stop GBaseService_${servername}  
