GBase 8s資料庫初體驗-01安裝
國產資料庫四朵金花
GBase 8s 發展史
功能
服務架構
安裝
以圖形化安裝為例,命令列方式安裝參考連結:
https://blog.csdn.net/jihui8848/article/details/117996240?spm=1001.2014.3001.5501
[root@cjc-db-01 gbase]# ./ids_install -i swing
新增使用者環境變數
[gbasedbt@cjc-db-01 ~]$ vi .bash_profile export GBASEDBTSERVER=ol_gbasedbt1210 export GBASEDBTDIR=/gbase/rdbms export GBASEDBTSQLHOSTS=/gbase/rdbms/etc/sqlhosts.ol_gbasedbt1210 export ONCONFIG=onconfig.ol_gbasedbt1210 export PATH=/gbase/rdbms/bin:$PATH export DB_LOCALE=zh_CN.utf8 export CLIENT_LOCALE=zh_CN.utf8 unset GL_USEGLU [gbasedbt@cjc-db-01 ~]$ source .bash_profile
檢查gbase程式
[gbasedbt@cjc-db-01 ~]$ ps -ef|grep oninit|grep -v grep gbasedbt 7876 1 0 18:14 ? 00:00:00 /gbase/rdbms/bin/oninit -ivwy root 7877 7876 0 18:14 ? 00:00:00 /gbase/rdbms/bin/oninit -ivwy root 7878 7877 0 18:14 ? 00:00:00 /gbase/rdbms/bin/oninit -ivwy root 7879 7877 0 18:14 ? 00:00:00 /gbase/rdbms/bin/oninit -ivwy root 7880 7877 0 18:14 ? 00:00:00 /gbase/rdbms/bin/oninit -ivwy root 7881 7877 0 18:15 ? 00:00:00 /gbase/rdbms/bin/oninit -ivwy root 7882 7877 0 18:15 ? 00:00:00 /gbase/rdbms/bin/oninit -ivwy root 7883 7877 0 18:15 ? 00:00:00 /gbase/rdbms/bin/oninit -ivwy
檢查資料庫狀態
[gbasedbt@cjc-db-01 ~]$ onstat - Your evaluation license will expire on 2023-11-12 00:00:00 On-Line -- Up 00:20:08 -- 175748 Kbytes
停庫
[gbasedbt@cjc-db-01 ~]$ onmode -ky Your evaluation license will expire on 2023-11-12 00:00:00
檢查狀態
[gbasedbt@cjc-db-01 ~]$ onstat - Your evaluation license will expire on 2023-11-12 00:00:00 shared memory not initialized for GBASEDBTSERVER 'ol_gbasedbt1210'
啟庫
[gbasedbt@cjc-db-01 ~]$ oninit -vy Your evaluation license will expire on 2023-11-12 00:00:00 Warning: Parameter's user-configured value was adjusted. (DS_MAX_SCANS) Warning: Parameter's user-configured value was adjusted. (ONLIDX_MAXMEM) Reading configuration file '/gbase/rdbms/etc/onconfig.ol_gbasedbt1210'...succeeded Creating /GBASEDBTTMP/.infxdirs...succeeded Allocating and attaching to shared memory...succeeded Creating resident pool 8310 kbytes...succeeded Creating infos file "/gbase/rdbms/etc/.infos.ol_gbasedbt1210"...succeeded Linking conf file "/gbase/rdbms/etc/.conf.ol_gbasedbt1210"...succeeded Initializing rhead structure...rhlock_t 16384 (512K)... rlock_t (5312K)... Writing to infos file...succeeded Initialization of Encryption...succeeded Initializing ASF...succeeded Initializing Dictionary Cache and SPL Routine Cache...succeeded Bringing up ADM VP...succeeded Creating VP classes...succeeded Forking main_loop thread...succeeded Initializing DR structures...succeeded Forking 1 'soctcp' listener threads...succeeded Forking 1 'soctcp' listener threads...succeeded Forking 1 'soctcp' listener threads...succeeded Starting tracing...succeeded Initializing 2 flushers...succeeded Initializing SDS Server network connections...succeeded Initializing log/checkpoint information...succeeded Initializing dbspaces...succeeded Opening primary chunks...succeeded Validating chunks...succeeded Initialize Async Log Flusher...succeeded Starting B-tree Scanner...succeeded Init ReadAhead Daemon...succeeded Init DB Util Daemon...succeeded Initializing DBSPACETEMP list...succeeded Init Auto Tuning Daemon...succeeded Checking database partition index...succeeded Initializing dataskip structure...succeeded Checking for temporary tables to drop...succeeded Updating Global Row Counter...succeeded Forking onmode_mon thread...succeeded Creating periodic thread...succeeded Creating periodic thread...succeeded Starting scheduling system...succeeded Verbose output complete: mode = 5
檢視狀態
[gbasedbt@cjc-db-01 ~]$ onstat - Your evaluation license will expire on 2023-11-12 00:00:00 On-Line -- Up 00:00:31 -- 175748 Kbytes
登入資料庫
[gbasedbt@cjc-db-01 ~]$ dbaccess - - Your evaluation license will expire on 2023-11-12 00:00:00 >
建立資料庫,報錯
> create database cjcdb with log; 908: Attempt to connect to database server (ol_gbasedbt1210) failed. 201: A syntax error has occurred. Error in line 1 Near character position 1 >
修改檔案
[gbasedbt@cjc-db-01 ~]$ cd /gbase/rdbms/etc/ [gbasedbt@cjc-db-01 etc]$ cp sqlhosts.ol_gbasedbt1210 sqlhosts.ol_gbasedbt1210_bak [gbasedbt@cjc-db-01 etc]$ vi sqlhosts.ol_gbasedbt1210
原檔案
ol_gbasedbt1210 onsoctcp cjc-db-01 ol_gbasedbt1210 dr_gbasedbt1210 drsoctcp cjc-db-01 dr_gbasedbt1210 lo_gbasedbt1210 onsoctcp 127.0.0.1 lo_gbasedbt1210
將主機名改成IP
ol_gbasedbt1210 onsoctcp 192.168.126.128 ol_gbasedbt1210 dr_gbasedbt1210 drsoctcp 192.168.126.128 dr_gbasedbt1210 lo_gbasedbt1210 onsoctcp 127.0.0.1 lo_gbasedbt1210
重啟資料庫
停庫
[gbasedbt@cjc-db-01 ~]$ onmode -ky
啟庫
[gbasedbt@cjc-db-01 ~]$ oninit -vy
重新建立資料庫,成功
[gbasedbt@cjc-db-01 etc]$ dbaccess - - Your evaluation license will expire on 2023-11-12 00:00:00 > create database cjcdb with log; Database created.
建立測試資料
> create table t1(id int,name varchar(10)); > insert into t1 values(1,'aaa'); > insert into t1 values(2,'bbb'); > select * from t1; id name 1 aaa 2 bbb 2 row(s) retrieved.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29785807/viewspace-2923084/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- GBase 8s 安裝
- 虛谷資料庫初體驗資料庫
- MySQL資料庫初體驗_gwMySql資料庫
- 南大通用GBase 8s資料庫的約束查詢資料庫
- Oracle GoldenGate安裝初體驗OracleGo
- Flutter安裝、配置、初體驗 windows 版FlutterWindows
- Go初體驗|Mac上安裝GoGoMac
- Oracle 18c安裝初體驗Oracle
- 【PG】Postgrepsql安裝初體驗SQL
- Gbase 8s 動態 SQLSQL
- gbase 資料庫資料庫
- 直播預告 | CloudQuery初體驗——安裝及多資料來源連線Cloud
- GBase 8s系統函式函式
- 分散式NoSQL資料庫MongoDB初體驗-v5.0.5分散式SQL資料庫MongoDB
- RAC之資料庫軟體安裝資料庫
- Windows下安裝PostgreSQL初體驗(使用Installer)WindowsSQL
- 達夢資料庫初體驗-單機環境部署記錄資料庫
- 12c 傳統資料庫的ADG初體驗資料庫
- Oracle安裝軟體及建立資料庫(字元安裝方式)Oracle資料庫字元
- 01 MySQL資料庫安裝(Windows+Mac)MySql資料庫WindowsMac
- 認證培訓 | GBase 8s資料庫2022年首期培訓圓滿結束資料庫
- GBase 8s透過信通院集中式事務型資料庫效能專項評測資料庫
- flutter安裝詳解--初體驗--問題解決Flutter
- Nacos 學習筆記:安裝執行初體驗筆記
- 南大通用GBase 8s 共享記憶體結構概覽記憶體
- 安裝 Oracle 軟體並構建資料庫Oracle資料庫
- MongoDB資料庫安裝MongoDB資料庫
- Redis 資料庫安裝Redis資料庫
- oricle資料庫安裝資料庫
- GreenPlum資料庫安裝資料庫
- oracle資料庫安裝Oracle資料庫
- 安裝HBase資料庫資料庫
- Mongo資料庫安裝Go資料庫
- PG學習初體驗--原始碼安裝和簡單命令原始碼
- 免安裝oracle軟體連線oracle資料庫Oracle資料庫
- 安裝Oracle資料庫軟體./runInstall 圖形安裝介面報錯Oracle資料庫
- 001 Rust和WebAssembly初體驗RustWeb
- tar方式安裝資料庫資料庫