Read about New Features.
By the way I'm so happy, when I used it with Timesten 11g. I saw packages/procedures/functions.
This page contains my experiences and my thoughts about Information Technology and something new what I learned in my life.
# tar xvf timesten112120.linux8664.tar.gzI need library only, so stop TimesTen daemon:
# cd linux8664
# ./setup.sh
[...]
Please choose an instance name for this installation? [ tt1121 ]
Instance name will be 'tt1121'.
Is this correct? [ yes ] y
Of the three components:
[1] Client/Server and Data Manager
[2] Data Manager Only
[3] Client Only
Which would you like to install? [ 1 ] 1
Where would you like to install the tt1121 instance of TimesTen? [ /opt ] /oracle
Installing into /oracle/TimesTen/tt1121 ...
Creating /oracle/TimesTen/tt1121 ...
Uncompressing ...
[...]
# /oracle/TimesTen/tt1121/startup/tt_tt1121 stop- Install freeradius
Stopping TimesTen Daemon : [ OK ]
# cd SRCI installed freeradius, but no driver. So build driver by using "rlm_sql_oracle"
# tar zxf freeradius-server-2.1.7.tar.gz
# cd freeradius-server-2.1.7
# ./configure && make && make install
# cd src/modules/rlm_sql/drivers/rlm_sql_oracle/--- Begin Makefile ---
# vi Makefile
# make- Configure freeradius to use "rlm_sql_oracle"
SRC/freeradius-server-2.1.7/libtool --mode=compile gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I../.. -ISRC/freeradius-server-2.1.7/src/ -ISRC/freeradius-server-2.1.7/libltdl -Os -finline-functions -I/oracle/TimesTen/tt1121/ttoracle_home/instantclient_11_1/sdk/include -I/oracle/TimesTen/tt1121/include -I/oracle/TimesTen/tt1121/quickstart/sample_code/common -c sql_oracle.c
mkdir .libs
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I../.. -ISRC/freeradius-server-2.1.7/src/ -ISRC/freeradius-server-2.1.7/libltdl -Os -finline-functions -I/oracle/TimesTen/tt1121/ttoracle_home/instantclient_11_1/sdk/include -I/oracle/TimesTen/tt1121/include -I/oracle/TimesTen/tt1121/quickstart/sample_code/common -c sql_oracle.c -fPIC -DPIC -o .libs/sql_oracle.o
[...]
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I../.. -ISRC/freeradius-server-2.1.7/src/ -ISRC/freeradius-server-2.1.7/libltdl -Os -finline-functions -I/oracle/TimesTen/tt1121/ttoracle_home/instantclient_11_1/sdk/include -I/oracle/TimesTen/tt1121/include -I/oracle/TimesTen/tt1121/quickstart/sample_code/common -c sql_oracle.c -o sql_oracle.o >/dev/null 2>&1
SRC/freeradius-server-2.1.7/libtool --mode=link gcc -release 2.1.7 \
-module -export-dynamic -o rlm_sql_oracle.la \
-rpath /usr/local/lib sql_oracle.lo -L/oracle/TimesTen/tt1121/lib -L/oracle/TimesTen/tt1121/ttoracle_home/instantclient_11_1 -Wl,-rpath,/oracle/TimesTen/tt1121/lib,-rpath,/oracle/TimesTen/tt1121/ttoracle_home/instantclient_11_1 -lclntsh -lpthread -lm -lrt
gcc -shared .libs/sql_oracle.o -L/oracle/TimesTen/tt1121/lib -L/oracle/TimesTen/tt1121/ttoracle_home/instantclient_11_1 -lclntsh -lpthread -lm -lrt -Wl,-rpath -Wl,/oracle/TimesTen/tt1121/lib -Wl,-rpath -Wl,/oracle/TimesTen/tt1121/ttoracle_home/instantclient_11_1 -Wl,-soname -Wl,rlm_sql_oracle-2.1.7.so -o .libs/rlm_sql_oracle-2.1.7.so
(cd .libs && rm -f rlm_sql_oracle.so && ln -s rlm_sql_oracle-2.1.7.so rlm_sql_oracle.so)
ar cru .libs/rlm_sql_oracle.a sql_oracle.o
ranlib .libs/rlm_sql_oracle.a
creating rlm_sql_oracle.la
(cd .libs && rm -f rlm_sql_oracle.la && ln -s ../rlm_sql_oracle.la rlm_sql_orac
# make install
# ls -l /usr/local/lib | grep oracle
lrwxrwxrwx 1 root root 17 Sep 17 15:57 rlm_sql_oracle-2.1.7.la -> rlm_sql_oracle.la
-rwxr-xr-x 1 root root 27880 Sep 17 15:57 rlm_sql_oracle-2.1.7.so
-rw-r--r-- 1 root root 32296 Sep 17 15:57 rlm_sql_oracle.a
-rwxr-xr-x 1 root root 967 Sep 17 15:57 rlm_sql_oracle.la
lrwxrwxrwx 1 root root 23 Sep 17 15:57 rlm_sql_oracle.so -> rlm_sql_oracle-2.1.7.so
# cd /usr/local/etc/raddbUncomment in radiusd.conf file:
# vi radiusd.conf
[...]Add "sql" in radiusd.conf file:
$INCLUDE sql.conf
[...]
[...]- Modify "sql.conf" to connect TimesTen database
instantiate {
sql
}
[...]
# vi sql.confIn sqlconf file:
# vi /etc/odbc.iniIn odbc.ini file:
# radiusd -XA freeradius connected to TimesTen server.
[...]
rlm_sql (sql): Driver rlm_sql_oracle (module rlm_sql_oracle) loaded and linked
rlm_sql (sql): Attempting to connect to radius@localhost:/(DESCRIPTION=(CONNECT_DATA = (SERVICE_NAME = db01CS)(SERVER = timesten_client)))
rlm_sql (sql): starting 0
rlm_sql (sql): Attempting to connect rlm_sql_oracle #0
rlm_sql (sql): Connected new DB handle, #0
rlm_sql (sql): starting 1
rlm_sql (sql): Attempting to connect rlm_sql_oracle #1
rlm_sql (sql): Connected new DB handle, #1
rlm_sql (sql): starting 2
rlm_sql (sql): Attempting to connect rlm_sql_oracle #2
rlm_sql (sql): Connected new DB handle, #2
rlm_sql (sql): starting 3
rlm_sql (sql): Attempting to connect rlm_sql_oracle #3
rlm_sql (sql): Connected new DB handle, #3
rlm_sql (sql): starting 4
rlm_sql (sql): Attempting to connect rlm_sql_oracle #4
rlm_sql (sql): Connected new DB handle, #4
}
[...]
$ ls timesten112120.linux8664.tar.gztimesten112120.linux8664.tar.gz$ tar zxvf timesten112120.linux8664.tar.gzlinux8664/linux8664/doc/linux8664/doc/doc.ziplinux8664/3rdparty/linux8664/3rdparty/jms-1_1-fr-apidocs.tar.bz2linux8664/3rdparty/ant-1.6.2-bin.tar.bz2linux8664/behaviorchanges.txtlinux8664/setup.shlinux8664/uninst.shlinux8664/LINUX8664/linux8664/LINUX8664/timesten.tar.bz2linux8664/LINUX8664/unziplinux8664/LINUX8664/ttpatchinstlinux8664/LINUX8664/ttserver.tar.bz2linux8664/LINUX8664/manifestlinux8664/LINUX8664/perllinux8664/LINUX8664/common.tar.bz2linux8664/LINUX8664/bzip2linux8664/LINUX8664/ttclient.tar.bz2linux8664/README.htmllinux8664/install.pl$ cd linux8664$ ./setup.shERROR: The /etc/TimesTen directory needs to be created for the instance registryand its ownership and permissions set appropriately.Please refer to the installation guide for assistance.
$ su - root# mkdir /etc/TimesTen# chown -R oracle:oinstall /etc/TimesTen
$ ./setup.shNOTE: Each TimesTen installation is identified by a unique instance name.The instance name must be a non-null alphanumeric string, not longerthan 255 characters.Please choose an instance name for this installation? [ tt1121 ] ttmbInstance name will be 'ttmb'.Is this correct? [ yes ]Of the three components:[1] Client/Server and Data Manager[2] Data Manager Only[3] Client OnlyWhich would you like to install? [ 1 ]Where would you like to install the ttmb instance of TimesTen? [ /home/oracle ] /u02/TimesTenWhere would you like to create the daemon home directory? [ /u02/TimesTen/ttmb/info ]Installing into /u02/TimesTen/ttmb ...Uncompressing ...NOTE: If you are configuring TimesTen for use with Oracle Clusterware, thedaemon port number must be the same across all TimesTen installationsmanaged by Oracle Clusterware.NOTE: All installations that replicate to each other must use the same daemonport number that is set at installation time. The daemon port number canbe verified by running 'ttVersion'.The default port number is 53388.Do you want to use the default port number for the TimesTen daemon? [ yes ]The daemon will run on the default port number (53388).NOTE: For security, we recommend that you restrict access to theTimesTen installation to members of a single OS group. Only members ofthat OS group will be allowed to perform direct mode connections toTimesTen, and only members of that OS group will be allowed to performoperations that access TimesTen data stores, TimesTen files and sharedmemory. The OS group defaults to the primary group of the instanceadministrator. You can default to this group, choose another OS groupor you can make this instance world-accessible. If you choose to makethis instance world-accessible, all database files and shared memoryare readable and writable by all users.Restrict access to the the TimesTen installation to the group 'oinstall'? [ yes ]NOTE: Enabling PL/SQL will increase the size of some TimesTen libraries.Would you like to enable PL/SQL for this instance? [ yes ]The daemon logs will be located in /u02/TimesTen/ttmb/infoWould you like to specify a different location for the daemon logs? [ no ] yesWhere would you like the daemon logs to be written? [ /u02/TimesTen/ttmb/info ] /u02/TimesTen/ttmb/logThe directory /u02/TimesTen/ttmb/log does not exist.Do you want to create it? [ yes ]Are you sure you want the daemon logs to be written to /u02/TimesTen/ttmb/log? [ yes ]TNS_ADMIN was not set in your environment but there is a tnsnames.orafile in /u01/oracle/product/11.1.0/db/network/admin.Would you like to use this TNS_ADMIN setting for the In-Memory Database Cache? [ yes ]TNS_ADMIN will be set to /u01/oracle/product/11.1.0/db/network/adminYou can change TNS_ADMIN later by running/bin/ttmodinstall. ...Installing server components ...What is the TCP/IP port number that you want the TimesTen Server to listen on? [ 53389 ]Do you want to install QuickStart and the TimesTen Documentation? [ no ] yesWhere would you like to install the quickstart and doc directories (s=skip)? [ /u02/TimesTen/ttmb ]The TimesTen Quickstart applications can take up to 64 Mbytes of disk space.Depending on how your system is configured, you may not want to create theQuickStart DemoDataStore directory in the default location,/u02/TimesTen/ttmb/info/DemoDataStoreWhere would you like to create the DemoDataStore directory? [ /u02/TimesTen/ttmb/info ]Creating /u02/TimesTen/ttmb/info/DemoDataStore ...Installing client components ...Would you like to use TimesTen Replication with Oracle Clusterware? [ no ] yesPlease provide the path to the Oracle Clusterware installation on this machine (s=skip)? [ /u01/oracle/product/crs ]Please enter a port number for the TimesTen Clusterware agent? [ 53394 ]Executing '/u01/oracle/product/crs/bin/crsctl check cluster' ...Oracle Clusterware is currently configured on the following nodes :...NOTE: The TimesTen daemon startup/shutdown scripts have not been installed.Run the 'setuproot' script :cd /u02/TimesTen/ttmb/bin./setuproot -installThis will move the TimesTen startup script into its appropriate location.The startup script is currently located here :'/u02/TimesTen/ttmb/startup/tt_ttmb'.The Quickstart home page can be accessed here :'/u02/TimesTen/ttmb/quickstart/index.html'Starting the daemon ...TimesTen Daemon startup OK.End of TimesTen installation.
$ vi /u02/TimesTen/ttmb/info/sys.odbc.ini[ODBC Data Sources]mb_db01=TimesTen 11.2.1 Driver[mb_db01]Driver=/u02/TimesTen/ttmb/lib/libtten.soDataStore=/u02/TimesTen/ttmb/info/TT/mb_db01PermSize=100TempSize=100PLSQL=1DatabaseCharacterSet=US7ASCII
$ cd /u02/TimesTen/ttmb/bin$ mkdir /u02/TimesTen/ttmb/info/TT$ ./ttisqlCopyright (c) 1996-2009, Oracle. All rights reserved.Type ? or "help" for help, type "exit" to quit ttIsql.Command> connect "dsn=mb_db01";Connection successful: DSN=mb_db01;UID=oracle;DataStore=/u02/TimesTen/ttmb/info/TT/mb_db01;DatabaseCharacterSet=US7ASCII;ConnectionCharacterSet=US7ASCII;DRIVER=/u02/TimesTen/ttmb/lib/libtten.so;PermSize=100;TempSize=100;TypeMode=0;(Default setting AutoCommit=1)Command> create user tt01 identified by password;User created.Command> GRANT CREATE TABLE TO tt01;Command>Command> connect "DSN=mb_db01;uid=tt01";Enter password for 'tt01':15107: User lacks CREATE SESSION privilege; logon deniedThe command failed.none: Command> connect "DSN=mb_db01" ;Connection successful: DSN=mb_db01;UID=oracle;DataStore=/u02/TimesTen/ttmb/info/TT/mb_db01;DatabaseCharacterSet=US7ASCII;ConnectionCharacterSet=US7ASCII;DRIVER=/u02/TimesTen/ttmb/lib/libtten.so;PermSize=100;TempSize=100;TypeMode=0;(Default setting AutoCommit=1)con1: Command>con1: Command>con1: Command> grant create session to tt01;con1: Command> grant create procedure to tt01;con1: Command> connect "DSN=mb_db01;uid=tt01";Enter password for 'tt01':Connection successful: DSN=mb_db01;UID=tt01;DataStore=/u02/TimesTen/ttmb/info/TT/mb_db01;DatabaseCharacterSet=US7ASCII;ConnectionCharacterSet=US7ASCII;DRIVER=/u02/TimesTen/ttmb/lib/libtten.so;PermSize=100;TempSize=100;TypeMode=0;(Default setting AutoCommit=1)
con1: Command>set serveroutput oncon1: Command> create or replace procedure hello_world asbegindbms_output.put_line('Hello World!');end;/con1: Command> begin
> hello_world;
> end;
> /
Hello World!
The release numbering system has been changed. In the release numbera.b.c.d.e, a.b.c represents the TimesTen release (11.2.1), d represents thepatch release (2) and e represents the port patch (0).
Note: This is only idea to develope for someone use FreeRadius with Timesten