Download and run CSQL on Linux -Only two commands will be used to start the server

from Jitendra's CSQL Blog :http://it.toolbox.com/blogs/jitendras-blog/download-and-run-csql-on-linux-only-two-commands-will-be-used-to-start-the-server-31646

 

If you ever wanted to start using the Enterprise CSQL MMDB on your computer, this article is for you. It will show how to download, configure and test the CSQL on your computer.

The released binary trial version csqlmmdb2.5 is ready to be used for 30-days by the CSQL users. The first order of business is to drop by the official CSQL web site (http://www.csqldb.com/download.html) and get a copy of the last stable release of the software. This is as easy as it sounds. The version of CSQL is licensed and may be freely downloaded and used under the terms of that license.


Required Package to work with JDBC Driver:

jdk1.6
Follow the section "Download and Setting up JDK1.6" at end of this chapter for download, and setting up the path. Before start the csql server in your machine, it is recommended that you should install and set the path of jdk1.6 to work with JDBC Driver.

How to get the trial key ?


1. Contact at address : sales@csqldb.com
2. find the file named license under the CSQL root directory
3. Copy the provided key value and paste it into this file.

Follow the steps to download CSQL MMDB:



1.Download csqlmmdb2.5-x86.tar.gz from Official web site.
http://csqldb.com/download.html

2.Change to the directory that has the TAR download

3.Type the following command at the prompt
$tar zxvf csqlmmdb2.5-x86.tar.gz

This will extract the files under csqlmmdb2.5-x86 directory in the current directory.

4.Change the directory to csqlmmdb2.5-x86 and Copy the provided key value and paste it into the file named 'license'.

5.Type the below command at the command prompt.
$. ./setupenv.ksh

This will build and set all the environmental variables defined in setupenv.ksh file present in directory.

6.Start the csql server using below command at the prompt
$csqlserver

7.You should now get the display similar to:
ConfigValues
getPageSize 8192
getMaxProcs 100
.
.
.
sysdb size 1048576 dbsize 10485760
System Database initialized
Database server started


All right, the database has been successfully configured and its time to play with some SQL statements.

NOTE: To stop the csql server just presses Ctrl+c.

8.Open up another terminal and type the following command to starts the csql client.
$. ./setupenv.ksh
$csql


9.Once the client is running, you should get the CSQL> prompt. Type the below command at this prompt.
CSQL>show tables;

10.Display should be similar to:
========TableNames=======
No table exist
========================


Now, you will be creating tables and feeling happy with CSQL.

Download and Setting up JDK1.6:


By click on this link ( http://csqldb.com/download.html) you will be downloading the package along with CSQL MMDB.

After download the package, follow the steps for path set up:

1.To know the path of your jdk installation, type the below command in your prompt.
$locate javac

2.You may get the similar output where the installation path would be different in your machine.
/opt/java/jdk1.6.0_04/bin/javac
/opt/java/jdk1.6.0_04/man/ja_JP.eucJP/man1/javac.1
/opt/java/jdk1.6.0_04/man/man1/javac.1
/opt/java/jdk1.6.0_04/sample/javac
/usr/share/vim/vim70/compiler/javac.vim
/usr/share/vim/vim70/syntax/javacc.vim


3.Now set the directory which has JDK1.6 compiler
$export JDK_HOME=/opt/java/jdk1.6.0_04
$export PATH=$JDK_HOME/bin:$PATH

转载于:https://www.cnblogs.com/jinrize/archive/2010/01/20/1652120.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值