$ unzip sqla1201linux3264_advanced.zip
$ ls -al
total 421004
drwxr-xr-x 4 root root 4096 Jan 25 11:00 .
drwxr-xr-x 6 sybase dba 4096 Jan 25 10:59 ..
-r--r--r-- 1 root root 0 Feb 1 2011 linux-x86-x64
dr-xr-xr-x 8 root root 4096 Feb 1 2011 monitor
-r--r--r-- 1 root root 387 Feb 1 2011 readme.txt
-rw-r--r-- 1 root root 431087213 Jan 25 11:00 sqla1201linux3264_advanced.zip
dr-xr-xr-x 8 root root 4096 Feb 1 2011 sqlanywhere
$ ./sqlanywhere/setup
$ ls
bin32 demo.db
java readme_de.txt res selinux tix bin32s demo.log lib32 readme_en.txt samonitor.db sun ultralite bin64 deployment lib64 readme_ja.txt samples support uninstall.sh bin64s install_20130125-1107.log mobilink readme_zh.txt scripts vcsagent charsets installed.ini readme relayserver sdk thirdpartylegal $ vim ~/.bash_profile
add the following lines:
LD_LIBRARY_PATH=/databases/sybase/SQLAnywhere/12.01/lib64
export LD_LIBRARY_PATH export LANG=en_US.utf8
$ env | grep LANG
LANG=en_US.utf8
$ env | grep LD
LD_LIBRARY_PATH=/databases/sybase/SQLAnywhere/12.01/lib64
$ mkdir <database_name>
$ cd <dir_from_step_4>
$ mkdir tmp
$ source <installation_dir>/bin64/sa_config.sh
$ </installation_dir><installation_dir>/bin64/dbinit -h
$ vim init.conf
copy and paste the following lines:
-p 8192
-ze utf8
-dba <admin_username>,<password>
-dbs 2G
-o <dir_from_step_4>/output_msg.trc
-t </dir_from_step_4><dir_from_step_4>/transaction.log
-m </dir_from_step_4><dir_from_step_4>/transaction_mirror.log
</dir_from_step_4><dir_from_step_4>/data.db
$ <installation_dir>/bin64/dbinit @<dir_from_step_4>/init.conf
$ <installation_dir>/bin64/dbsrv12 -h
$ vim <dir_from_step_4>/db.conf
copy and paste the following lines:
-ud
-n <new_db_name>
-x "tcpip (PORT=65000)"
-gm 64
-c 128M
-ch 512M
-dt <dir_from_step_5>
-gn 10
-o <dir_from_step_4>/sysa12d01.trc
-os 10M
-ze
-zl
-zp
-zt
-cs
</dir_from_step_4><dir_from_step_4>/data.db
$ <installation_dir>/bin64/dbsrv12 @<dir_from_step_4>/db.conf &
$ <installation_dir>/bin64/dbstop –y –c “eng=<new_db_name>;uid=<admin_username>;pwd=<password>”
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |