From this article,you will learn how to install sybase ASE in silent mode and use the tsql tools.
1.Create the response file
- RUN_SILENT=true
- USER_INSTALL_DIR=/home/sybase
- INSTALL_OLDER_VERSION=false
- DO_UPDATE_INSTALL=false
- CHOSEN_INSTALL_SET=Full
- SYBASE_PRODUCT_LICENSE_TYPE=developer
- SYSAM_LICENSE_SOURCE=proceed_without_license
- SYSAM_LICENSE_FILE_PATHNAME=
- SYSAM_EXISTING_LICENSE_SERVER_HOSTNAME=
- SYSAM_EXISTING_LICENSE_SERVER_PORTNUMBER=
- SYSAM_PRODUCT_EDITION=Developer Edition
- SYSAM_LICENSE_TYPE=DV : Developer License
- SYSAM_NOTIFICATION_ENABLE=false
- SYSAM_NOTIFICATION_SMTP_HOSTNAME=smtp
- SYSAM_NOTIFICATION_SMTP_PORTNUMBER=25
- SYSAM_NOTIFICATION_SENDER_EMAIL=sybase
- SYSAM_NOTIFICATION_RECIPIENT_EMAIL=dba@mycompany.com
- SYSAM_NOTIFICATION_EMAIL_SEVERITY=WARNING
- SY_CONFIG_ASE_SERVER=true
- SY_CONFIG_BS_SERVER=true
- SY_CONFIG_XP_SERVER=true
- SY_CONFIG_JS_SERVER=true
- SY_CONFIG_SM_SERVER=true
- SY_CONFIG_SCC_SERVER=false
- SY_CFG_ASE_SERVER_NAME=SYB03
- SY_CFG_ASE_PORT_NUMBER=4200
- SY_CFG_ASE_APPL_TYPE=MIXED
- SY_CFG_ASE_PAGESIZE=4k
- ASE_ADDL_CMD_ARG=
- SY_CFG_ASE_PASSWORD=redhat
- SY_CFG_ASE_MASTER_DEV_NAME=/dev/raw/raw1
- SY_CFG_ASE_MASTER_DEV_SIZE=512
- SY_CFG_ASE_MASTER_DB_SIZE=128
- SY_CFG_ASE_SYBPROC_DEV_NAME=/dev/raw/raw2
- SY_CFG_ASE_SYBPROC_DEV_SIZE=512
- SY_CFG_ASE_SYBPROC_DB_SIZE=172
- SY_CFG_ASE_SYBTEMP_DEV_NAME=/dev/raw/raw3
- SY_CFG_ASE_SYBTEMP_DEV_SIZE=512
- SY_CFG_ASE_SYBTEMP_DB_SIZE=100
- SY_CFG_ASE_ERROR_LOG=/home/sybase/ASE-15_0/install/SYB03.log
- SY_CFG_ASE_PCI_ENABLE=false
- SY_CFG_ASE_PCI_DEV_NAME=
- SY_CFG_ASE_PCI_DEV_SIZE=
- SY_CFG_ASE_PCI_DB_SIZE=
- SY_CFG_ASE_TEMP_DEV_NAME=/dev/raw/raw4
- SY_CFG_ASE_TEMP_DEV_SIZE=2048
- SY_CFG_ASE_TEMP_DB_SIZE=100
- SY_CFG_ASE_OPT_ENABLE=false
- SY_CFG_ASE_CPU_NUMBER=1
- SY_CFG_ASE_MEMORY=1024
- #For english:lang=us_english,charset=utf8,sortorder=binary
- #For chinesechinese:lang=chinese,charset=cp936,sortorder=bin_cp936
- SY_CFG_ASE_LANG=us_english
- SY_CFG_ASE_CHARSET=utf8
- SY_CFG_ASE_SORTORDER=binary
- SY_CFG_ASE_SAMPLE_DB=false
- SY_CFG_BS_SERVER_NAME=SYB03_BS
- SY_CFG_BS_PORT_NUMBER=4201
- SY_CFG_BS_ERROR_LOG=/home/sybase/ASE-15_0/install/SYB03_BS.log
- BS_ADDL_CMD_ARG=
- SY_CFG_XP_SERVER_NAME=SYB03_XP
- SY_CFG_XP_PORT_NUMBER=4202
- SY_CFG_XP_ERROR_LOG=/home/sybase/ASE-15_0/install/SYB03_XP.log
- SY_CFG_JS_SERVER_NAME=SYB03_JS
- SY_CFG_JS_PORT_NUMBER=4203
- SY_CFG_JS_MANAG_DEV_NAME=/dev/raw/raw5
- SY_CFG_JS_MANAG_DEV_SIZE=512
- SY_CFG_JS_MANAG_DB_SIZE=100
- SY_CFG_SM_USER_NAME=sa
- SY_CFG_SM_PASSWORD=redhat
- SCC_SELFDISCOVERY_CONFIG_UDP_ADAPTOR=true
- SCC_SELFDISCOVERY_CONFIG_JINI_ADAPTOR=false
- SCC_SELFDISCOVERY_JINI_HOST_NAME=localhost
- SCC_SELFDISCOVERY_JINI_PORT_NUMBER=4160
- SCC_SELFDISCOVERY_JINI_HEART_BEAT_PERIOD=900
- CONFIG_SCC_HTTP_PORT=8282
- CONFIG_SCC_HTTPS_PORT=8283
- SCC_RMI_PORT_NUMBER=9999
- CONFIG_SCC_CSI_SCCADMIN_PWD=
- CONFIG_SCC_CSI_UAFADMIN_PWD=
- ENABLE_SCC_SHARED_DISK=false
- CREATE_SCC_INSTANCE_NAME=
- REFRESH_SCC_INSTANCE_TYPE=AGENT
- INSTALL_SCC_SERVICE=false
2.Create Sybase User
- [root@syb03 ~]# groupadd sybase
- [root@syb03 ~]# useradd -g sybase -m -d /home/sybase sybase
- [root@syb03 ~]# echo redhat|passwd --stdin sybase
3.Excute setup.bin to install
- [sybase@syb03 ase]$ ./setup.bin -f ../rs/syb.rs -i silent -DRUN_SILENT=true -DAGREE_TO_SYBASE_LICENSE=true
- Warning: You have selected '4k' as the logical page size for the Adaptive
- Server. If you plan to load dump from another database, make sure this logical
- page size matches the size of the source database. The default logical page
- size in previous Adaptive Server versions was 2KB.
- Warning: Unable to verify /dev/raw/raw1 device size. Please verify that this
- device is not already in use and that it has sufficient space available.
- Warning: Unable to verify /dev/raw/raw2 device size. Please verify that this
- device is not already in use and that it has sufficient space available.
- Warning: Unable to verify /dev/raw/raw4 device size. Please verify that this
- device is not already in use and that it has sufficient space available.
- Building Adaptive Server 'SYB03':
- Writing entry into directory services...
- Directory services entry complete.
- Building master device...
- Master device complete.
- Writing RUN_SYB03 file...
- RUN_SYB03 file complete.
- Starting server...
- Server started.
- Set SA password...
- SA password is set.
- Building sysprocs device and sybsystemprocs database...
- sysprocs device and sybsystemprocs database created.
- Running installmaster script to install system stored procedures...
- installmaster: 10% complete.
- ................
- installmaster: 100% complete.
- installmaster script complete.
- Creating two-phase commit database...
- Two phase commit database complete.
- Extending tempdb database ...
- Extending tempdb database complete.
- Installing common character sets (Code Page 437, Code Page 850, ISO Latin-1,
- Macintosh and HP Roman-8)...
- Character sets installed.
- Setting server name in Adaptive Server...
- Server name added.
- Setting optimization goal...
- Setting optimization goal complete.
- Server 'SYB03' was successfully created.
- Installing character set 'UTF-8' in the Adaptive Server...
- Character set 'UTF-8' was successfully installed in the Adaptive Server.
- Installing character set 'ISO_8859-15:1998' in the Adaptive Server...
- Character set 'ISO_8859-15:1998' was successfully installed in the Adaptive
- Server.
- Installing character set 'roman9' in the Adaptive Server...
- Character set 'roman9' was successfully installed in the Adaptive Server.
- Making 'UTF-8' the Adaptive Server's default character set...
- Making 'Binary ordering for UTF-16' the Adaptive Server's default sort order...
- The Adaptive Server's default character set is now 'UTF-8'.
- The Adaptive Server's default sort order is now 'Binary ordering for UTF-16'.
- Done
- Building Backup Server 'SYB03_BS':
- Writing entry into directory services...
- Directory services entry complete.
- Writing RUN_SYB03_BS file...
- RUN_SYB03_BS file complete.
- Starting server...
- Server started.
- Server 'SYB03_BS' was successfully created.
- Building XP Server 'SYB03_XP':
- Writing entry into directory services...
- Directory services entry complete.
- Setting server name in Adaptive Server...
- Server name added.
- Server 'SYB03_XP' was successfully created.
- 'SYB03_XP' will be started when needed by the Adaptive Server.
- Warning: Unable to verify /dev/raw/raw5 device size. Please verify that this
- device is not already in use and that it has sufficient space available.
- Building Job Scheduler 'SYB03_JS':
- Writing entry into directory services...
- Directory services entry complete.
- Installing required script(s) in related Adaptive Server...
- installjsdb: 10% complete.
- ................
- installjsdb: 100% complete.
- jst_check_reorg_space: 10% complete.
- ................
- Script executed.
- Setting server name in Adaptive Server...
- Server name added.
- Enabling Adaptive Server optional feature...
- Adaptive Server optional feature enabled.
- Creating Self Management login/user...
- Self Management login/user created.
- Creating update statistics job...
- jst_default_autoupdtstats: 10% complete.
- jst_default_autoupdtstats: 20% complete.
- jst_default_autoupdtstats: 100% complete.
- Update statistics job created.
- Server 'SYB03_JS' was successfully created.
4.Install freetds software
Before,you should configure the yum software repository then you can install freetds from epel or from source code.
- [root@syb04 ~]# yum -y install freetds
5.Using tsql
So,tsql has a friendly view than sybase isql.