Timesten for Unix的安装

本文提供Oracle TimesTen内存数据库的详细安装步骤,包括系统准备、环境变量配置、安装流程及DSN配置等关键信息。

下载安装文件

1.         查看系统的具体版本,获取相应安装文件

安装文件下载路径:

http://www.oracle.com/technology/global/cn/software/products/timesten/index.html

安装前的准备

1.         检查系统参数

a)         设置大文件系统(默认系统是支持的)
#/usr/sbin/fsadm -F xvfs  -o largefiles /dir_name

b)        设置最大的共享内存段

              通过# /usr/sbin/kctune 命令可以查看系统参数

              semmns  是系统内系统用户可用的IPC信号总数。

              shmmax 最大的共享内存段,以字节为单位,一般设置为可以最大使用的内存的实际大小。

 

              如果是HP-Unix,可以通过/usr/sbin/sam或者/usr/sbin/smh来设置系统内核参数。

 

              这些系统参数都可以在安装完毕之后再设置。

 

2.         检查是否已安装JDK

3.         检查是否已安装Oracle客户端

Timesten7支持Oracle 9i,10g及以上版本。

4.         配置相关环境变量:

ORACLE_HOME,JAVA_HOME

 

在安装完毕之后,还需要修改LD_LIBRARY_PATH环境变量

LD_LIBRARY_PATH=$TimesTen_Installation/lib:$Oracle_Home/lib

/*如果是64位的,一定要注意是否是$Oracle_Home/lib64 */

 

创建用户/用户组

1.         创建用户组和用户

#增加组TimesTen
groupadd TimesTen

#增加用户timesten并加入到sysTimesTen组中:

useradd -g TimesTen -G sys –d  /YOUR_INSTALL_DIR/TimesTen  timesten

passwd timesten

 

2.         准备相关目录:

# /etc/TimesTen 不一定是安装指定目录,但是安装前必须的目录,在安装时,会生成instance_info文件。

mkdir /etc/TimesTen

chown –R timesten:TimesTen /etc/TimesTen

# 准备自定义的安装目录
mkdir  /YOUR_INSTALL_DIR/TimesTen
chmod  775 /YOUR_INSTALL_DIR/TimesTen
chgrp  -R  TimesTen /YOUR_INSTALL_DIR/TimesTen
chown -R timesten:TimesTen /YOUR_INSTALL_DIR/TimesTen

3.         配置用户组具有所内存的权限

/*root 用户执行*/
      setprivgrp TimesTen MLOCK

开始安装

以下安装步骤中显示的提示 是安装Linux版本的提示,跟安装Unix版本基本相同。

除了自定义安装路径,以及选择安装的产品为” Oracle TimesTen In-Memory Database with Cache Connect to Oracle”,其他大部分按照默认选项。

 

1  解压 tt70install.tar.gz

tar -xvf tt70install.tar.gz

2    安装 timesten

su – timesten

cd install

./setup.sh

3、选择产品是 64 位,还是 32 位,出现如下提示:

Of the following two choices :

  [1] 32-bit Linux for x86

  [2] 64-bit Linux for AMD64 and Intel EM64T processors

Which platform are you currently running? [ 2 ]

选择安装 64 Linux 版本,确认回车

4 确认 timesten 实例名,出现如下提示

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? [ tt70 ]

默认选择 timesten instance 名字,直接回车,提示:

Instance name will be 'tt70'.

Is this correct? [ yes ]

默认回车

5 选择安装产品,出现如下提示

Please select a product :

  [1] Oracle TimesTen In-Memory Database

  [2] Oracle TimesTen In-Memory Database with Cache Connect to Oracle

Which product would you like to install? [ 1 ] 2

选择安装“ Oracle TimesTen In-Memory Database with Cache Connect to Oracle ”,输入 2 ,确认回车

6              选择安装组件,出现如下提示

Of the three components:

  [1] Client/Server and Data Manager

  [2] Data Manager Only

  [3] Client Only

Which would you like to install? [ 1 ]

选择安装“ Client/Server and Data Manager ”,默认确认回车

7              选择安装 timesten 的目录,出现如下提示

Where would you like to install the tt70 instance of TimesTen? [ /timesten ]

选择 /timesten ,确认回车

8              选择创建守护进程的主目录,出现如下提示

Where would you like to create the daemon home directory? [ /timesten/TimesTen/tt70/info ]

默认回车,出现如下提示:

The directory /timesten/TimesTen/tt70/info does not exist.

Do you want to create it? [ yes ]

提示目录不存在是否创建,默认选择 yes ,确认回车。开始解压安装,提示如下

Installing into /timesten/TimesTen/tt70 ...

Uncompressing ...

9              解压结束后,安装 Demo 程序,出现如下提示

The TimesTen Demo applications can take up to 64 Mbytes of disk space.

Depending on how your system is configured, you may not want to create the

DemoDataStore directory in the default location,

/timesten/TimesTen/tt70/info/DemoDataStore

Where would you like to create the DemoDataStore directory? [ /timesten/TimesTen/tt70/info ]

默认回车确认,提示如下:

Creating /timesten/TimesTen/tt70/info/DemoDataStore ...

10              选择 timesten 守护进程的端口,出现如下提示

NOTE: All installations that replicate to each other must use the same daemon

      port number that is set at installation time. The daemon port number can

      be verified by running 'ttVersion'.

The default port number is 17001.

Do you want to use the default port number for the TimesTen daemon? [ yes ]

默认选择 17001 端口,确认端口没有被占用,确认方法见脚注。

如果 17001 端口没有被占用的话,则默认回车确认,如果被占用,则输入 no ,回车,出现如下提示

Please enter a unique port number for the TimesTen daemon (<CR>=list)? [ ] 18001

输入一个没有被占用的端口,回车确认。系统提示安装过程:

Processing /timesten/TimesTen/tt70/PERL/perl.tar ...

11              选择激活数据存储的控制权限,出现如下提示

Would you like to enable datastore access control? [ no ]yes

输入 yes ,回车确认,出现如下提示

The daemon log will be located in /timesten/TimesTen/tt70/info

12              选择 timesten 守护进程日志

Would you like to specify a different location for the daemon log? [ no ]yes

为方便管理,应该重新选择日志目录,输入 yes ,出现如下提示:

Where would you like the daemon log to be written? [ /timesten/TimesTen/tt70/info ]

在新的终端里面,用 timesten 用户登录,建立目录

cd /timesten/TimesTen/tt70

mkdir log

回到安装 timesten 的终端,输入新的目录

Where would you like the daemon log to be written? [ /timesten/TimesTen/tt70/info ] /timesten/TimesTen/tt70/log

回车确认,出现提示:

Are you sure you want the daemon log to be written to /timesten/TimesTen/tt70/log? [ yes ]

默认回车,确认把日志写到新建的目录下

13              激活 Cache Connect to Oracle Administrator ,出现提示

Would you like to enable the Cache Connect to Oracle Administrator? [ yes ]

默认回车确认

14              选择 Cache Connect to Oracle Administrator 的端口,出现提示

What TCP/IP port number would you like Cache Connect to Oracle Administrator to listen on? [ 18005 ]

安装程序会提示一个默认端口,按照前面的方法确认这个端口没有被占用,如果占用则选择别的端口,输入正确的端口号,回车确认,出现提示

NOTE: To access the TimesTen Cache Connect to Oracle Administrator

      go to the url: http://localhost:18005/cache

由于 g++ 版本的原因,安装程序可能会提示

NOTE: It appears that you are running version 4.1 of the g++

       compiler. TimesTen ships with multiple sets of client libraries and server

      binaries : one built with g++ 3.2.3, one with g++ 3.4.6, and one with

      g++ 4.1.0. The installer has created links to the 4.1.0 library in the

      <install_dir>/lib directory and to the 4.1.0 server binary in the

      <install_dir>/bin directory. If you want to use a different compiler,

      please modify the links to point to the desired library and server binary.

之后,系统开始安装 server 组件,安装程序提示

Installing server components ...

15              选择记录所有 server 的连接和断开连接

Would you like to log all server Connects/Disconnects? [ yes ]

默认回车确认

16              选择 TimesTen 服务 TCP 端口,出现提示

What is the TCP/IP port number that you want the TimesTen Server to listen on? [ 18003 ]

安装程序会提示一个默认端口,按照前面的方法确认这个端口没有被占用,如果占用则选择别的端口,输入正确的端口号,回车确认,出现提示

Starting the daemon ...

TimesTen Daemon startup OK.

Installing client components ...

17              确认 TimesTen 服务安装的机器、端口、 instance ,出现提示

What is the name of the host running the TimesTen server? [ localhost ]

安装程序将获取本机的 hostname ,默认回车确认。

确认 TimesTen 服务的端口,出现提示

What is the TCP/IP port number that the TimesTen server is listening on? [ 18003 ]

此处安装程序将默认选择上一步的端口,默认回车确认

确认 TimesTen 服务的 instance ,出现提示

What is the name of the instance running the TimesTen server? [ tt70 ]

此处安装程序默认选择 tt70 ,默认回车确认

安装程序提示

Creating new /timesten/TimesTen/tt70/info/sys.ttconnect.ini

Extracting 3rd party tools ...

18              不安装 TimesTen 文档,出现提示

Would you like to install the documentation? [ yes ]no

输入 no ,回车确认,出现提示

Documentation not installed.

To manually install the documentation, run the command 'setup.sh -installDoc'

19              安装结束,安装程序提示如下

NOTE: The TimesTen daemon startup/shutdown scripts have not been installed.

As root, run the script 'set

 

配置DSN

编辑/YOUR_INSTALL_DIR/TimesTen/tt70/info/sys.odbc.ini文件

1.         [ODBC Data Sources] 节点下加入自定义的DSN名称(例如tt92_bison32),属性值为TimesTen 7.0 Driver

[ODBC Data Sources]

tt92_bison32=TimesTen 7.0 Driver

 

2.         加入自定义DSN节点,例如[tt92_bison32]

 

#############################

#instance for test Data Store

#####################

[tt92_bison32]

Driver=/YOUR_INSTALL_DIR/TimesTen/tt70/lib/libtten.so

DataStore=/YOUR_INSTALL_DIR/TimesTen/tt70/info/tt92_bison32

DatabaseCharacterSet=AL32UTF8

PermSize=6000

Overwrite=0

Authenticate=0

UID=bison32

OracleId=103392

OraclePwd=bison32

 

 

 

基于遗传算法的新的异构分布式系统任务调度算法研究(Matlab代码实现)内容概要:本文档围绕基于遗传算法的异构分布式系统任务调度算法展开研究,重点介绍了一种结合遗传算法的新颖优化方法,并通过Matlab代码实现验证其在复杂调度问题中的有效性。文中还涵盖了多种智能优化算法在生产调度、经济调度、车间调度、无人机路径规划、微电网优化等领域的应用案例,展示了从理论建模到仿真实现的完整流程。此外,文档系统梳理了智能优化、机器学习、路径规划、电力系统管理等多个科研方向的技术体系与实际应用场景,强调“借力&rdquo;工具与创新思维在科研中的重要性。; 适合人群:具备一定Matlab编程基础,从事智能优化、自动化、电力系统、控制工程等相关领域研究的研究生及科研人员,尤其适合正在开展调度优化、路径规划或算法改进类课题的研究者; 使用场景及目标:①学习遗传算法及其他智能优化算法(如粒子群、蜣螂优化、NSGA等)在任务调度中的设计与实现;②掌握Matlab/Simulink在科研仿真中的综合应用;③获取多领域(如微电网、无人机、车间调度)的算法复现与创新思路; 阅读建议:建议按目录顺序系统浏览,重点关注算法原理与代码实现的对应关系,结合提供的网盘资源下载完整代码进行调试与复现,同时注重从已有案例中提炼可迁移的科研方法与创新路径。
【微电网】【创新点】基于非支配排序的蜣螂优化算法NSDBO求解微电网多目标优化调度研究(Matlab代码实现)内容概要:本文提出了一种基于非支配排序的蜣螂优化算法(NSDBO),用于求解微电网多目标优化调度问题。该方法结合非支配排序机制,提升了传统蜣螂优化算法在处理多目标问题时的收敛性和分布性,有效解决了微电网调度中经济成本、碳排放、能源利用率等多个相互冲突目标的优化难题。研究构建了包含风、光、储能等多种分布式能源的微电网模型,并通过Matlab代码实现算法仿真,验证了NSDBO在寻找帕累托最优解集方面的优越性能,相较于其他多目标优化算法表现出更强的搜索能力和稳定性。; 适合人群:具备一定电力系统或优化算法基础,从事新能源、微电网、智能优化等相关领域研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①应用于微电网能量管理系统的多目标优化调度设计;②作为新型智能优化算法的研究与改进基础,用于解决复杂的多目标工程优化问题;③帮助理解非支配排序机制在进化算法中的集成方法及其在实际系统中的仿真实现。; 阅读建议:建议读者结合Matlab代码深入理解算法实现细节,重点关注非支配排序、拥挤度计算和蜣螂行为模拟的结合方式,并可通过替换目标函数或系统参数进行扩展实验,以掌握算法的适应性与调参技巧。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值