日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

GBase 8s 安装-定制安装

發布時間:2024/1/1 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 GBase 8s 安装-定制安装 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

硬件要求??

硬件最低配置推薦配置
處理器1× 2 核 2.0GHz4×4 核 3.0GHz
內存4GB64GB 或更多
硬盤100GB1TB
光驅CD-ROMCD-ROM

系統要求??

GBase 8s 產品支持多種處理器平臺,除國際主流的 x86_64 處理器(包括 Intel 和 AMD)外,全面支持飛騰、鯤鵬、龍芯、兆芯、海光、申威等國產處理器。
GBase 8s 產品可以運行于多款操作系統,包括: RHEL和CentOS等Linux操作系統、統信UOS、麒麟、歐拉等國產操作系統。??

安裝準備??

1. 創建 gbasedbt 組和用戶??

在啟動安裝過程之前,必須準備系統以確保您有足夠權限來執行安裝。您必須以 root 用戶身份登錄才能執行許多與安裝有關的任務。 同時要求服務器操作系統上具有 gbasedbt 組和 gbasedbt 用戶。
登錄系統后可以執行以下命令創建 gbasedbt 組和 gbasedbt 用戶:??

[root@localhost ~]# groupadd gbasedbt [root@localhost ~]# useradd -g gbasedbt gbasedbt

為 gbasedbt 用戶設置密碼,密碼為 gbasedbt:

[root@localhost ~]# passwd gbasedbt??

2. 創建 GBase 8s 數據庫安裝目錄??

GBase 8s 數據庫缺省的安裝目錄為 /opt/GBASE/gbase,并且此文件夾必須為空。

[root@localhost ~]# mkdir -p /opt/GBASE/gbase?[root@localhost ~]# chown gbasedbt:gbasedbt /opt/GBASE/gbase

3. 上傳并解壓安裝包??

將產品安裝光盤插入光驅,取出光盤中 Setup 目錄下的文件,復制到本地目錄 /opt。 Setup目錄中包含 GBase 8s 產品的安裝包文件,該文件通常是形如GBase8sV8.8_AEE_3.1.0_1_UOS_KP920.tar 的壓縮文件。
在本手冊中,以 GBase8sV8.8_AEE_3.1.0_1_UOS_KP920.tar為例進行安裝說明。
解壓該 tar 包,解壓命令為: tar – vxf filename.tar。??

[root@localhost ~]# cd /opt [root@localhost opt]# tar -vxf GBase8sV8.8_AEE_3.1.0_1_UOS_KP920.tar ids_install onsecurity ids.properties .gbase.properties

安裝方法-定制安裝

定制安裝, 也就是通常說的自定義安裝。
使用定制安裝可在安裝 GBase 8s 時只帶有您所需的功能部件。??

1.執行安裝

進入解壓目錄, 執行安裝腳本 ids_install, 即可進行安裝。 具體命令如下:

[root@localhost ~]# cd /opt [root@localhost opt]# sh ids_install

定制安裝過程如下所示:
1.接受授權協議。

在啟動安裝過程之前,必須準備系統以確保您有足夠權限來執行安裝。

您必須以 root 用戶身份登錄才能執行許多與安裝有關的任務。 同時要求服務器操作系統上具有 gbasedbt 組和 gbasedbt 用戶。

登錄系統后可以執行以下命令創建 gbasedbt 組和 gbasedbt 用戶:

[root@localhost ~]# groupadd gbasedbt?[root@localhost ~]# useradd -g gbasedbt gbasedbt

為 gbasedbt 用戶設置密碼,密碼為 gbasedbt:

[root@localhost ~]# passwd gbasedbt??

2.選擇安裝類型,輸入 2 選擇 Custom installation。

========================================================================= Installation or Distribution ---------------------------- Select the installation type. Typical: Install the database server with all features and a database server that is configured with default values. Includes: ** Client Software Development Kit (CSDK) ** Java Database Connectivity (JDBC) Minimum disk space required: 700-800MB Custom: Install the database server with specific features and software that you need. Optionally install a configured database server instance. Minimum disk space required: 75 MB (without a server instance) ->1- Typical installation 2- Custom installation 3- Extract the product files (-DLEGACY option) 4- Create a RPM package for redistribution?ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:: 2

下面所有選項,一律<回車>

========================================================================= "Choose Install Features" Help ------------------------------ On the next screen, type the number of a feature to change whether it is selected or deselected. You can provide a list of numbers, separated by commas, with no leading or trailing spaces. For example, assume that the screen contains this list: 1- [X] ABC 2- [ ] XYZ Please choose the Features to be installed by this installer.: ___ If you want to install both ABC and XYZ, type: 2 If you want to install only XYZ, type: 1,2 PRESS <ENTER> TO CONTINUE: ========================================================================= ========================================================================= Choose Install Set ------------------ ========================================================================= Choose Product Features ----------------------- ENTER A COMMA_SEPARATED LIST OF NUMBERS REPRESENTING THE FEATURES YOU WOULD LIKE TO SELECT, OR DESELECT. TO VIEW A FEATURE'S DESCRIPTION, ENTER '?<NUMBER>'. PRESS <RETURN> WHEN YOU ARE DONE: 1- [X] GBase database server 2- |-[X] Base Server 3- |-[X] Extensions and tools 4- |-[X] J/Foundation 5- |-[X] Database extensions 6- |-[X] Conversion and reversion support 7- |-[X] XML publishing 8- |-[X] Demonstration database scripts 9- |-[X] Enterprise Replication 10- |-[X] Data loading utilities 11- |-[X] onunload and onload utilities 12- |-[X] dbload utility 13- |-[X] Backup and Restore 14- |-[X] archecker utility 15- |-[X] ON-Bar utility 16- |-[X] Interface to Tivoli Storage Manager 17- |-[X] Administrative utilities 18- |-[X] Performance monitoring utilities 19- |-[X] Miscellaneous monitoring utilities 20- |-[X] Auditing utilities 21- |-[X] Database import and export utilities 22- |-[X] JSON Client Support 23- [X] Global Language Support (GLS) 24- |-[X] Chinese Please choose the Features to be installed by this installer.: ========================================================================= Feature review -------------- Would you like to review the features that you have selected, or change which features you have selected? ->1- Continue 2- Return to feature tree ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT: ========================================================================= Get Role Separation choice -------------------------- Enable role separation for auditing procedures. If you enable role separation, you can assign existing groups of users to specific roles. If you do not enable role separation, the database server administrator performs all administration tasks. 1- Enable role separation ->2- Do not enable role separation ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:: ========================================================================= Server Instance --------------- Type 'back' to go to the previous step or 'quit' to cancel the installation. Create a database server instance? 1- Yes - create a server instance ->2- No - do not create a server instance ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:: ========================================================================== Installation Summary -------------------- Please review the following before continuing: Product Name: GBase Software Bundle Install Folder: /opt/GBASE/gbase Product Features: GBase database server, Base Server, Extensions and tools, J/Foundation, Database extensions, Conversion and reversion support, XML publishing, Demonstration database scripts, Enterprise Replication, Data loading utilities, onunload and onload utilities, dbload utility, Backup and Restore, archecker utility, ON-Bar utility, Interface to Tivoli Storage Manager, Administrative utilities, Performance monitoring utilities, Miscellaneous monitoring utilities, Auditing utilities, Database import and export utilities, JSON Client Support, Global Language Support (GLS), Chinese Disk Space Information (for Installation Target): Required: 497,274,517 Bytes Available: 9,861,873,664 Bytes PRESS <ENTER> TO CONTINUE: ========================================================================= Ready To Install ---------------- InstallAnywhere is now ready to install GBase Software Bundle onto your system at the following location: /opt/GBASE/gbase PRESS <ENTER> TO INSTALL: ========================================================================= Installing... ------------- [==================|==================|==================|==============] [------------------|------------------|------------------|--------------] ========================================================================== Installation Complete --------------------- Congratulations! GBase Software Bundle installation is complete. Product install status: GBase: Successful GBase Connect: Successful Main Version: GBase 8s V8.7 For more information about using GBase products, see the GBase Information Center at http://www.gbase.cn.?PRESS <ENTER> TO EXIT THE INSTALLER:

安裝結束, 回車,退出安裝。??

2. 使用腳本自動創建和初始化實例??

安裝完成后, 將 GBseInit_gbasedbt.sh 腳本拷貝到 opt/GBASE/gbase 目錄下。 更改此腳本的執行權限:??

[root@localhost ~]# cd /opt/GBASE/gbase[root@localhost gbase]# chown -R gbasedbt:gbasedbt GBaseInit_gbasedbt.sh[root@localhost gbase]# ls -l GBaseInit_gbasedbt.sh -rw-r--r--. 1 gbasedbt gbasedbt 32705 Jan 15 10:10 GBaseInit_gbasedbt.sh

使用 gbasedbt 用戶執行該腳本。 使用 GBseInit_gbasedbt.sh 腳本,自動創建并初始化實例。

[root@localhost gbase]# su gbasedbt [gbasedbt@localhost gbase]$ sh GBaseInit_gbasedbt.sh Initializing Program...OK ENTER THE INSTANCE INFORMATION or PRESS <ENTER> TO ACCEPT THE DEFAULT. // 創建實例名稱,默認為 gbaseserver ENTER GBASE INSTANCE NAME (GBASEDBTSERVER) [Default:gbaseserver]: //選擇安裝目錄。默認為 /opt/GBASE/gbase GBASE INSTALL FOLDER LIST: 1) /opt/GBASE/gbase CHOOSE GBASE INSTALL FOLDER(GBASEDBTDIR) [Default:/opt/GBASE/gbase]: //選擇本機 IP 地址 CHOOSE SERVICE IP ADDRESS FROM THE LIST: 1) 192.168.127.101 2) 127.0.0.1 ENTER THE NUMBER FOR YOUR CHOICE [Default:192.168.127.101]: //指定數據庫的監聽端口,缺省為 9088 SPECIFY THE PORT NUMBER FOR GBASE [Default:9088]: //選擇安裝方式: 2 定制安裝 INITIALIZE TYPE: 1) TYPICAL -- Initialize the instance with all features configured with default values. 2) CUSTOM -- Initialize the instance with specific features that you need. ENTER THE NUMBER FOR YOUR CHOICE [Default:1]: 2 //選擇數據庫字符集 GBASE CHARACTER SET LIST: 1) en_US.8859-1 2) zh_CN.GB18030-2000 3) zh_CN.utf8 ENTER THE NUMBER FOR YOUR CHOICE [Default:1]: 2 //輸入數據庫空間存儲路徑 ENTER THE DATA SPACE PATH [Default:/opt/GBASE/gbase/gbaseserver_dbs]: //設置邏輯日志空間大小 ENTER THE LOGICAL LOG DBSPACE SIZE(MB) [Default:540]: //設置物理日志空間大小 ENTER THE PHYSICAL LOG DBSPACE SIZE(MB) [Default:540]: //設置智能大對象空間大小 ENTER THE SMART LOB DBSPACE SIZE(MB) [Default:138]: //設置臨時數據空間大小 ENTER THE TEMPORARY DBSPACE SIZE(MB) [Default:138]: // 輸入 Y 啟動以上設置, N 重新進行配置 ENTER "Y" TO START DATABASE ADVANCED SETTINGS, OR ENTER "N" TO ACCEPT DEFAULT VALUES: [Default:Y]: Y?ENTER THE NUMBER OF DATA DBSPACES [Default:1]: //實例配置如下所示: INSTANCE SUMMARY: Instance name: gbaseserver GBase install directory: /opt/GBASE/gbase IP address & port: 192.168.127.101:9088 Character set: zh_CN.GB18030-2000 Logical log space size: 430 MB Physical log space size: 430 MB Smart LOB space size: 116 MB Temp DBSpace size: 116 MB Data path: /opt/GBASE/gbase/gbaseserver_dbs Data path free size: 4292 MB The number of data DBSpace: 1 The number of temp DBSpace: 1 Environment GL_USEGLU: 1 Enter "Y" to Start database initializing, or Enter "N" to Edit Again: Enter "Y" to Start database initializing, or Enter "N" to Edit Again: Y Touching Chunks...OK Create sqlhosts File: /opt/GBASE/gbase/etc/sqlhosts.gbaseserver ...OK Setting Parameters in /opt/GBASE/gbase/etc/onconfig.gbaseserver : ROOTPATH.ROOTSIZE.DBSERVERNAME.FULL_DISK_INIT.SBSPACENAME.SYSSBSPACENAME.D BSPACETEMP.LOGFILES.MULTIPROCESSOR.VPCLASS.NETTYPE.CLEANERS.DEF_TABLE_LOCK MODE.DIRECT_IO.LOCKS.TAPEDEV.LTAPEDEV.CKPTINTVL.DS_MAX_QUERIES.DS_TOTAL_ME MORY.DS_NONPDQ_QUERY_MEM.PHYSBUFF.LOGBUFF.AUTO_TUNE.MSGPATH.SERVERNUM.ALLO W_NEWLINE.TEMPTAB_NOLOG.DUMPSHMEM.USEOSTIME.STACKSIZE.ON_RECVRY_THREADS.OF F_RECVRY_THREADS.USELASTCOMMITTED.SHMVIRTSIZE.SHMADD.GBASEDBTCONTIME.BUFFE RPOOL2K.BUFFERPOOL16K...AUTO_CKPTS.OK Initializing Root DBSpace & Share Memory...OK Creating system database.......OK Creating logical log Dbspace...OK Creating physical log Dbspace...OK Creating smart LOB Dbspace...OK Creating temp Dbspace.1...OK Creating data Dbspace.1...OK Setting dbscheduler...OK Moving physical log...OK Adding 40 logical logs: 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28 .29.30.31.32.33.34.35.36.37.38.39.40...OK Setting data chunks extendable...OK Cleaning logical logs in rootdbs.........OK Database restarting.......OK Creating database: gbasedb...OK Now you can use this URL to connect to gbasedb: jdbc:gbasedbt-sqli://192.168.8.123:9088/gbasedb:GBASEDBTSERVER=gbaseserver ; Version: GBase Database Server Version 12.10.FC4G1AEE -- On-Line -- Up 00:00:13 -- 1121592 Kbytes Build Number: 2.0.1A2_N303 GBase Initializing Finished! Initialize log file : ./InitGBaseDB_201901081452.log Press <ENTER> to Exit and Logout...

自動創建和初始化實例完畢,回車退出。

3. 手動創建和初始化實例

?您也可以按照如下步驟,手動創建實例并初始化。

(1)創建一個實例, 假設其實例名為“gbaseserver” 。
(2)創建一個實例需要配置以下三個文件,使用用實例名作為文件的后綴:
a) 環境變量文件名為 profile.gbaseserver
b) 配置參數文件名稱為 onconfig.gbaseserver
c) sqlhosts 配置文件名稱為 sqlhosts.gbaseserver

具體步驟如下:
1 創建數據庫的數據文件存儲目錄 /dbs
以 root 身份登錄, 進入安裝目錄,創建數據目錄:

[root@localhost ~]# cd /opt/GBASE/gbase [root@localhost gbase]# mkdir dbs [root@localhost gbase]# cd dbs [root@localhost dbs]# touch rootdbs [root@localhost dbs]# chown gbasedbt:gbasedbt rootdbs?[root@localhost dbs]# chmod 660 rootdbs

2 配置 profile.gbaseserver 環境變量文件
切換到 gbasedbt 用戶身份登錄, 將默認環境變量 .bash_profile 文件復制一份, 命名為profile.gbaseserver,并對它進行編輯。??

[root@localhost dbs]# su gbasedbt [gbasedbt@localhost ~]$ cd /home/gbasedbt [gbasedbt@localhost ~]$ cp .bash_profile profile.gbaseserver [gbasedbt@localhost ~]$ vi profile.gbaseserver (進入文件后按“i”建,開啟 insert 模式)

注意: 根據實例的實際情況更改紅色部分字段信息

export GBASEDBTSERVER=gbaseserver //實例名 export GBASEDBTDIR=/opt/GBASE/gbase //安裝路徑 export ONCONFIG=onconfig.gbaseserver //配置參數文件名稱 export GBASEDBTSQLHOSTS=$GBASEDBTDIR/etc/sqlhosts.gbaseserver //sqlhosts 文件名稱 export PATH=$GBASEDBTDIR/bin:/usr/bin:${PATH}:. export GL_DATE="%iY-%m-%d" export DATETIME="%iY-%m-%d %H:%M:%S" export DB_LOCALE=zh_cn.GB18030-2000 export CLIENT_LOCALE=zh_cn.GB18030-2000 export LD_LIBRARY_PATH=${GBASEDBTDIR}/lib:${GBASEDBTDIR}/lib/esql:${GBASEDBTDIR}/lib/cli export TERM=vt100 export TERMCAP=$GBASEDBTDIR/etc/termcap export GBASEDBTTERM=termcap?export DBTEMP=$GBASEDBTDIR/tmp

完成之后保存退出。(第一步按 ESC ; 第二步 輸入冒號“:” ; 第三步輸入 wq 代表保存退出, q 代表退出, q! 代表強制退出。 最后回車)。
使環境變量生效:??

[gbasedbt@localhost ~]$ source profile.gbaseserver

為了 gbasedbt 用戶在登錄后自動應用這些環境變量, 請執行以下操作:vi .bash_profile 文件, 此文件后添加以下內容。??

source /home/gbasedbt/profile.gbaseserver

然后執行以下命令, 使環境變量生效:

[gbasedbt@localhost ~]$ source .bash_profile??

3 配置 onconfig.gbaseserver 參數文件??

將 /opt/BASE/gbase/etc/ 目錄中的 onconfig.std 文檔復制一份,命名為 $ONCONFIG 變量指定的名稱 onconfig.gbaseserver。??

[gbasedbt@localhost ~]$ cd /opt/GBASE/gbase/etc/ [gbasedbt@localhost etc]$ cp onconfig.std onconfig.gbaseserver

vi onconfig.gbaseserver 文件,配置以下參數并保存:
提示: vi 編輯器中模糊查找字符串“XXX”方法:輸入” /XXX”后回車即可向下檢索到該字符串位置。

ROOTPATH /opt/GBASE/gbase/dbs/rootdbs //系統數據庫文件存儲空間路徑,參照步驟 1 中的設置 SERVERNUM 1 //實例編號,多實例中每個實例編號要唯一 DBSERVERNAME gbaseserver //數據庫服務器實例名稱 TAPEDEV /dev/null //用于存儲空間備份的磁帶設備? LTAPEDEV /dev/null //用于邏輯日志備份的磁帶的設備路徑

4 配置 sqlhosts.gbaseserver 文件
GBase 8s 數據庫使用的監聽端口默認為 9088,多實例中每個實例的端口必須唯一。將 /opt/GBASE/gbase/etc/ 目錄中的 sqlhosts.std 文檔復制一份,命名為GBASEDBTDQLHOSTS 變量指定的名稱 sqlhost.gbaseserver。??

[gbasedbt@localhost ~]$cd /opt/GBASE/gbase/etc/ [gbasedbt@localhost etc]$ cp sqlhosts.std sqlhosts.gbaseserver

vi sqlhosts.gbaseserver 文件, 在文件末尾添加相關實例名、 網絡連接方式、 IP 及端口號。??

[gbasedbt@localhost etc]$ vi sqlhosts.gbaseserver

在文件末尾按照如下格式添加內容并保存:
實例名? ? ? ?網絡連接方式? ? ? ? ?IP? ? ? ? ? ? ? ?端口

gbaseserver?onsoctcp?192.168.127.101?9088??

5 初始化數據庫
使用 gbasedbt 用戶執行初始化命令:

[gbasedbt@localhost ~]$ oninit -ivy

總結

以上是生活随笔為你收集整理的GBase 8s 安装-定制安装的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。