建立資料庫
1. create the database directory
mkdir “/hqeis1/eisdb/testdb”
2. user the rb_creator command to create database
#redbrick/bin/>rb_creator /hqeis1/eisdb/testdb
執行後,會在該目錄下建立下列檔案:
3. modify the logical database name and directory
config the testdb informantion
add now logical db and directory mapping
4. For security ,when you create the new database , be change the user password.
#redbrick/bin/> risql -d new_db system manager
(C) Copyright IBM Corp. 1991-2003. All rights reserved. RISQL Reporter Version 06.30.0000 (0)
RISQL> grant connect to system with mysecret;
RISQL> quit;
移除資料庫
1. 以DBA權限登入redbrick資料庫。
2. drop資料庫中所有的data object。
3. 離開redbrick資料庫,並使用redbrick OS User登入系統。
4. 在redbrick/bin中使用rb_deleter工具
$ rb_deleter pathname
5. 使用OS Command(rm or rmdir)將系統上的資料庫目錄移除,並check rbw.config中DEFAULT_DATA_SEGMENT and EFAULT_INDEX_SEGMENT參數中所設定的default folder是否已被移除。
6. 移除rbw.config中的logical dbname。
7. 登出redbrick User。