系统:Mac OS X Server 10.6.6
timesten:11.2.1
目的:为了在mac os上用timesten的客户端服务连接windows上的服务端。
另外也想在程序中方位需在mac上配置ttclasses
下面开始安装:
1.解压timesten在桌面,解压后的文件夹是macos32.
打开终端把文件夹下的setup.sh拖入终端回车。
下面的红色是每次输入前系统的标题或注释,根windows中cmd后的行为类似。
蓝色是输入的
raul:~zhangpeng$ /Users/zhangpeng/Desktop/macos32/setup.sh
/Users/zhangpeng/Desktop/macos32/setup.sh: line 30: cd: /Users/zhangpeng/Desktop/untitled: No such file or directory
/*此处虽然报找不到目录,但是下面还是出来了*/
NOTE: Each TimesTen installation is identified by a unique instance name.
The instance name must be a non-null alphanumeric string, not longer
than 255 characters.
Please choose an instance name for this installation? [ tt1121 ]
/*直接回车,默认为tt1121*/
Instance name will be 'tt1121'.
Is this correct? [ yes ]
/*moren*/
Installing client component on macos32 ...
Of the following options :
[1] /Users/zhangpeng
[2] /Users/zhangpeng/Desktop
[3] Specify a location
[q] Quit the installation
Where would you like to install the tt1121 instance of TimesTen? [ 1 ] 1
/*默认为1,路径为/User/zhangpeng */
Installing into /Users/zhangpeng/TimesTen/tt1121 ...
Creating /Users/zhangpeng/TimesTen/tt1121 ...
Uncompressing ...
NOTE: For security, we recommend that you restrict access to the
TimesTen installation to members of a single OS group. Only members of
that OS group will be allowed to perform. direct mode connections to
TimesTen, and only members of that OS group will be allowed to perform
operations that access TimesTen data stores, TimesTen files and shared
memory. The OS group defaults to the primary group of the instance
administrator. You can default to this group, choose another OS group
or you can make this instance world-accessible. If you choose to make
this instance world-accessible, all database files and shared memory
are readable and writable by all users.
Restrict access to the the TimesTen installation to the group 'staff'? [ yes ]
Do you want to install QuickStart and the TimesTen Documentation? [ no ] yes
Where would you like to install the quickstart and doc directories (s=skip)? [ /Users/zhangpeng/TimesTen/tt1121 ]
Installing client components ...
What is the name of the host running the TimesTen server? [ raul.server ] 10.175.69.235
/*起个名字*/
What is the TCP/IP port number that the TimesTen server on timesten.server is listening on? [ 53385 ]
/*因为服务器就是这个端口,所以就默认了*/
The Quickstart home page can be accessed here :
'/Users/zhangpeng/TimesTen/tt1121/quickstart/index.html'
The 11.2.1.8 Release Notes are located here :
'/Users/zhangpeng/TimesTen/tt1121/README.html'
End of TimesTen installation.
/*测试连接*/
//找到安装timesten的目录下有一个info的文件夹,下面有一个sys.odbc.ini。打开,拷贝一项,修改[]中的内容为服务器上的dsn 名称。 TTC_Server 为服务器的ip地址,TTC_Server_DSN为服务器dsn的名称。
ok,控制台下
raul:bin zhangpeng$ ls
README.TXT ttIsqlCSCmd ttSchemaCSCmd ttenv.sh
envcfg ttMigrateCS ttThunk ttpatchinst
setup.sh ttMigrateCSCmd ttVersion ttuser
ttIsqlCS ttSchemaCS ttenv.csh uninst.sh
raul:bin zhangpeng$ ./ttIsqlCS
Copyright (c) 1996-2011, Oracle. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.
Command> connect "dsn=tt_mydb2;uid=cacheadm";
回车输入密码,测试成功
/*至此,timesten安装完毕。下面配置ttclasses*/
raul:macos32 zhangpeng$ cd /User
-bash: cd: /User: No such file or directory
raul:macos32 zhangpeng$ cd /Users/
.localized Shared/ oracle/ zhangpeng/
raul:macos32 zhangpeng$ cd /Users/zhangpeng/
raul:~ zhangpeng$ ls
Desktop Downloads Movies Pictures Sites
Documents Library Music Public TimesTen
raul:~ zhangpeng$ cd TimesTen/
raul:TimesTen zhangpeng$ ls
Raul tt1121
raul:TimesTen zhangpeng$ cd tt1121/
raul:tt1121 zhangpeng$ ls
PERL doc lib quickstart.html welcome.html
README.html include nls ttclasses
bin info quickstart ttoracle_home
raul:tt1121 zhangpeng$ cd ttclasses/
raul:ttclasses zhangpeng$ ls
MakefileCS TTConnectionPool.cpp TTXla.cpp
README.TXT TTEnvironment.cpp lib
TTCatalog.cpp TTGlobal.cpp objDbg
TTCmd.cpp TTLog.cpp objOpt
TTColumn.cpp TTParameter.cpp ttTime.c
TTCommand.cpp TTStatus.cpp
TTConnection.cpp TTTypes.cppm jm k ,,,,,,, f
raul:ttclasses zhangpeng$ make clean ç≈
raul:ttclasses zhangpeng$ cp MakefileCS Makefile
raul:ttclasses zhangpeng$ make
g++ -fPIC -O -Wuninitialized -I/Users/zhangpeng/TimesTen/tt1121/include -I/Users/zhangpeng/TimesTen/tt1121/include/ttclasses -Ilib -DTTEXCEPT -DGCC -m32 -DINTEL_X86 -D_THREAD_SAFE -D_REENTRANT -DTTCLASSES -c TTCmd.cpp -o objOpt/TTCmd.o
g++ -fPIC -O -Wuninitialized -I/Users/zhangpeng/TimesTen/tt1121/include -I/Users/zhangpeng/TimesTen/tt1121/include/ttclasses -Ilib -DTTEXCEPT -DGCC -m32 -DINTEL_X86 -D_THREAD_SAFE -D_REENTRANT -DTTCLASSES -c TTCommand.cpp -o objOpt/TTCommand.o
g++ -fPIC -O -Wuninitialized -I/Users/zhangpeng/TimesTen/tt1121/include -I/Users/zhangpeng/TimesTen/tt1121/include/ttclasses -Ilib -DTTEXCEPT -DGCC -m32 -DINTEL_X86 -D_THREAD_SAFE -D_REENTRANT -DTTCLASSES -c TTConnection.cpp -o objOpt/TTConnection.o
g++ -fPIC -O -Wuninitialized -I/Users/zhangpeng/TimesTen/tt1121/include -I/Users/zhangpeng/TimesTen/tt1121/include/ttclasses -Ilib -DTTEXCEPT -DGCC -m32 -DINTEL_X86 -D_THREAD_SAFE -D_REENTRANT -DTTCLASSES -c TTColumn.cpp -o objOpt/TTColumn.o
g++ -fPIC -O -Wuninitialized -I/Users/zhangpeng/TimesTen/tt1121/include -I/Users/zhangpeng/TimesTen/tt1121/include/ttclasses -Ilib -DTTEXCEPT -DGCC -m32 -DINTEL_X86 -D_THREAD_SAFE -D_REENTRANT -DTTCLASSES -c TTConnectionPool.cpp -o objOpt/TTConnectionPool.o
g++ -fPIC -O -Wuninitialized -I/Users/zhangpeng/TimesTen/tt1121/include -I/Users/zhangpeng/TimesTen/tt1121/include/ttclasses -Ilib -DTTEXCEPT -DGCC -m32 -DINTEL_X86 -D_THREAD_SAFE -D_REENTRANT -DTTCLASSES -c TTParameter.cpp -o objOpt/TTParameter.o
g++ -fPIC -O -Wuninitialized -I/Users/zhangpeng/TimesTen/tt1121/include -I/Users/zhangpeng/TimesTen/tt1121/include/ttclasses -Ilib -DTTEXCEPT -DGCC -m32 -DINTEL_X86 -D_THREAD_SAFE -D_REENTRANT -DTTCLASSES -c TTCatalog.cpp -o objOpt/TTCatalog.o
g++ -fPIC -O -Wuninitialized -I/Users/zhangpeng/TimesTen/tt1121/include -I/Users/zhangpeng/TimesTen/tt1121/include/ttclasses -Ilib -DTTEXCEPT -DGCC -m32 -DINTEL_X86 -D_THREAD_SAFE -D_REENTRANT -DTTCLASSES -c TTStatus.cpp -o objOpt/TTStatus.o
g++ -fPIC -O -Wuninitialized -I/Users/zhangpeng/TimesTen/tt1121/include -I/Users/zhangpeng/TimesTen/tt1121/include/ttclasses -Ilib -DTTEXCEPT -DGCC -m32 -DINTEL_X86 -D_THREAD_SAFE -D_REENTRANT -DTTCLASSES -c TTTypes.cpp -o objOpt/TTTypes.o
g++ -fPIC -O -Wuninitialized -I/Users/zhangpeng/TimesTen/tt1121/include -I/Users/zhangpeng/TimesTen/tt1121/include/ttclasses -Ilib -DTTEXCEPT -DGCC -m32 -DINTEL_X86 -D_THREAD_SAFE -D_REENTRANT -DTTCLASSES -c TTEnvironment.cpp -o objOpt/TTEnvironment.o
g++ -fPIC -O -Wuninitialized -I/Users/zhangpeng/TimesTen/tt1121/include -I/Users/zhangpeng/TimesTen/tt1121/include/ttclasses -Ilib -DTTEXCEPT -DGCC -m32 -DINTEL_X86 -D_THREAD_SAFE -D_REENTRANT -DTTCLASSES -c TTLog.cpp -o objOpt/TTLog.o
g++ -fPIC -O -Wuninitialized -I/Users/zhangpeng/TimesTen/tt1121/include -I/Users/zhangpeng/TimesTen/tt1121/include/ttclasses -Ilib -DTTEXCEPT -DGCC -m32 -DINTEL_X86 -D_THREAD_SAFE -D_REENTRANT -DTTCLASSES -c TTGlobal.cpp -o objOpt/TTGlobal.o
gcc -fPIC -O -Wuninitialized -I/Users/zhangpeng/TimesTen/tt1121/include -I/Users/zhangpeng/TimesTen/tt1121/include/ttclasses -Ilib -DTTEXCEPT -DGCC -m32 -DINTEL_X86 -D_THREAD_SAFE -D_REENTRANT -DTTCLASSES -c ttTime.c -o objOpt/ttTime.o
g++ -shared -dynamiclib -fPIC -L/Users/zhangpeng/TimesTen/tt1121/lib -lttclient -m32 -o lib/libttclassesCS.dylib objOpt/TTCmd.o objOpt/TTCommand.o objOpt/TTConnection.o objOpt/TTColumn.o objOpt/TTConnectionPool.o objOpt/TTParameter.o objOpt/TTCatalog.o objOpt/TTStatus.o objOpt/TTTypes.o objOpt/TTEnvironment.o objOpt/TTLog.o objOpt/TTGlobal.o objOpt/ttTime.o
***********************************************************
Built lib/libttclassesCS.dylib
Now run 'make -f MakefileCS install' to install the the TTClasses library
into /Users/zhangpeng/TimesTen/tt1121/lib
***********************************************************
raul:ttclasses zhangpeng$ make install
Installing TTClasses libraries
cp lib/libttclassesCS.dylib /Users/zhangpeng/TimesTen/tt1121/lib
/*ttclasses配置完成*/
raul:ttclasses zhangpeng$ cd ..
raul:tt1121 zhangpeng$ ls
PERL doc lib quickstart.html welcome.html
README.html include nls ttclasses
bin info quickstart ttoracle_home
raul:tt1121 zhangpeng$ cd bin/
raul:bin zhangpeng$ ls
README.TXT ttIsqlCSCmd ttSchemaCSCmd ttenv.sh
envcfg ttMigrateCS ttThunk ttpatchinst
setup.sh ttMigrateCSCmd ttVersion ttuser
ttIsqlCS ttSchemaCS ttenv.csh uninst.sh
/*进入ttisql界面*/
raul:bin zhangpeng$ ./ttIsqlCS
Copyright (c) 1996-2011, Oracle. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.
Command> exit
Done.
至于怎么连上服务器,怎么配置dns,ttclasses怎么用,下一阶段再试。未完待续
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26107758/viewspace-715876/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26107758/viewspace-715876/