2 #create table, insert records with param, and check stmt and redo logs.
3 #recover and check stmt and redo logs with csqldump
5 CSQL_CONF
=${PWD}/durability
/redologs
/csql.conf
9 REL_PATH
=${PWD}/durability
/redologs
15 cp -f $REL_PATH/csql.conf
/tmp
16 echo SYS_DB_KEY
=4444 >>/tmp
/csql.conf
17 echo ID_SHM_KEY
=6666 >>/tmp
/csql.conf
18 echo DURABILITY
=true
>>/tmp
/csql.conf
19 export CSQL_CONFIG_FILE
=/tmp
/csql.conf
22 $CSQL_INSTALL_ROOT/bin
/csqlserver
>/dev
/null
2>&1 &
26 echo "CREATE TABLE t1(f1 int not null, f2 int not null);" >${REL_PATH}/t1.sql
27 $CSQL_INSTALL_ROOT/bin
/csql
-u root
-p manager
-s ${REL_PATH}/t1.sql
32 rm -f ${REL_PATH}/t1.sql
36 $CSQL_INSTALL_ROOT/bin
/redo
-al
42 echo "Checking Durability"
43 $CSQL_INSTALL_ROOT/bin
/csqlserver
>/dev
/null
2>&1 &
48 $CSQL_INSTALL_ROOT/bin
/redo
-al
49 $CSQL_INSTALL_ROOT/bin
/csqldump
52 rm -f ${REL_PATH}/t1.sql