ttIsql "DSN=ttwind;UID=cacheuser;PWD=cacheuser;OraclePWD=cacheuser;"

--1.查看当前版本号

Command> version

TimesTen Release 11.2.2.7.0

Command> cachegroups;

Cache Group CACHEUSER.CACHETBLORDERS:

Cache Group Type: Read Only

  Autorefresh: Yes

  Autorefresh Mode: Incremental

  Autorefresh State: On

  Autorefresh Interval: 10 Seconds

  Autorefresh Status: ok

  Aging: No aging defined

Root Table: SCOTT.TBLORDERS

  Table Type: Read Only

Command> select count(*) from scott.tblorders;

< 111001 >

--2.断开到TT的全部连接

--3.备份数据库以及配置文件

mkdir /backup

ttBackup   -type fileFull  -dir /backup  -fname ttwindbk  -force    -connstr "DSN=ttwind"

cp  /data/app/timesten/TimesTen/ttwind/info/sys.odbc.ini /backup/

cp  /data/app/timesten/TimesTen/ttwind/tnsnames.ora    /backup/

--4.删除cachegroup

ttIsql "DSN=ttwind;UID=cacheuser;PWD=cacheuser;OraclePWD=cacheuser;"

call  ttcachestop;

DROP  Cache Group  cachetblorders;

exit;

--5.卸载内存

ttDaemonAdmin -stop

ttadmin -ramunload ttwind  --二选一

--6.毁坏数据库

ttDestroy ttwind;

--7.删除旧文件夹 (可选)

rm -rf /etc/TimesTen/

rm -rf /data/app/timesten/

--7.install timesten new version

mkdir /etc/TimesTen

mkdir -p /data/app/timesten

chgrp -R ttadmin /etc/TimesTen

chgrp -R ttadmin  /data/app/timesten

chmod 770 /etc/TimesTen/

chmod 770 /data/app/timesten

chmod 660 /etc/TimesTen/*

chown -R   ocpyang.ttadmin /soft

ls /soft

unzip tt11.2.2.8.2\ .zip

cd /soft/linux8664/

$ ./setup.sh

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.

#步骤1:输入安装实例名称

Please choose an instance name for this installation? [ tt1122 ] ttwind  #输入自己定义的名字

Instance name will be 'ttwind'.

Is this correct? [ yes ] yes

#步骤2:安装组件

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  #输入1

#步骤3:安装位置

Of the following options :

[1] /home/ocpyang

  [2] /soft

  [3] Specify a location

  [q] Quit the installation

Where would you like to install the ttwind instance of TimesTen? [ 1 ] 3    #输入3 自己定义一个安装文件夹

Please specify a directory to install TimesTen?

[ /home/ocpyang ]     /data/app/timesten/     #输入自己定义一个安装文件夹

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

The daemon logs will be located in /data/app/timesten/TimesTen/ttwind/info

Would you like to specify a different location for the daemon logs?

[ no ]

Uncompressing ...

NOTE: If you are configuring TimesTen for use with Oracle Clusterware, the

      daemon port number must be the same across all TimesTen installations

      managed within the same Oracle Clusterware cluster.

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'.

#步骤4:输入自己定义的主进程port号

The default port number is 53396.

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

[ yes ] no  #输入no 自己定义端口

Please enter a unique port number for the TimesTen daemon (<CR>=list)? [ ] 53355  #输入自己定义端口

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.

#步骤5:受限会话和PL/SQL功能默认就可以

Restrict access to the the TimesTen installation to the group 'ttadmin'? [ yes ]

NOTE: Enabling PL/SQL will increase the size of some TimesTen libraries.

Would you like to enable PL/SQL for this instance? [ yes ] yes

#步骤6:安装的时候指定TNS_ADMIN环境变量

------------------------------------------------------------------------------

切记:最后的 tnsnames.ora须要放入这个文件夹一份,否则报错

Command> create readonly cache group cachtest

       > from scott.t2

       > (

       > sid int not null primary key,

       > sname varchar2(10)

       > );

Warning  5923: Cache agent has deferred the create/alter cache group request because it is not connected to Oracle yet

Command> load cache group cachtest commit every 10 rows;

 5056: The cache operation fails: error_type=<Oracle Error>, error_code=<12541>, error_message: ORA-12541: TNS:no listener

The command failed.

------------------------------------------------------------------------------

In order to use the 'In-Memory Database Cache' feature in any databases

created within this installation, you must set a value for the TNS_ADMIN

environment variable. It can be left blank, and a value can be supplied later

using <install_dir>/bin/ttModInstall.

TNS_ADMIN exists in your environment and is set to :

      /u01/app/oracle/product/11.2.0/db_1/network/admin

Would you like to use this TNS_ADMIN setting for the Oracle TimesTen Application-Tier Database Cache?

[ yes ] no

Please enter a value for TNS_ADMIN (s=skip)? [  ] /data/app/timesten/TimesTen/ttwind

#输 /data/app/timesten/TimesTen/ttwind

TNS_ADMIN will be set to /app/timesten/TimesTen

You can change TNS_ADMIN later by running <install_dir>/bin/ttmodinstall.

NOTE: It appears that you are running version 4 or higher of the g++

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

      binaries : one built for compatibility 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.

Installing server components ...

#步骤7:TimesTenserverport号

Installing server components ...

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

[ 53356 ] 53356  #主进程端口号加1

Do you want to install the Quick Start Sample Programs and the TimesTen Documentation?

[ no ]

Would you like to install the documentation (without the Quick Start Sample Programs)? [ yes ]

Where would you like to create the doc directory? [ /data/app/timesten/TimesTen/ttwind/doc ]

The TimesTen documentation has been installed in /data/app/timesten/TimesTen/ttwind/doc.

Installing client components ...

Would you like to use TimesTen Replication with Oracle Clusterware?

[ no ]

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

Run the 'setuproot' script :

 cd /data/app/timesten/TimesTen/ttwind/bin

 ./setuproot -install

This will move the TimesTen startup script into its appropriate location.

The startup script is currently located here :

  '/data/app/timesten/TimesTen/ttwind/startup/tt_ttwind'.

The 11.2.2.8 Release Notes are located here :

  '/data/app/timesten/TimesTen/ttwind/README.html'

Starting the daemon ...

TimesTen Daemon startup OK.

End of TimesTen installation.

---拷贝老版本号的配置文件和tnsnames.ora

cp   /backup/tnsnames.ora   /data/app/timesten/TimesTen/ttwind/

cp  /backup/sys.odbc.ini     /data/app/timesten/TimesTen/ttwind/info/sys.odbc.ini

mkdir -p /data/app/timesten/TimesTen/ttwind/info/datastore/ttwind

chmod  -R 770  /data/app/timesten/TimesTen/ttwind/info/datastore/ttwind

----使用管理员启动

 ttIsql ttwind

---确定数据库里相关的用户权限是否存在

Command> select * from SYS.CACHE_GROUP;

< CACHETBLORDERS                 , CACHEUSER                      , 3846792, 1798032, 906F1B0000000000, 0000000000000000, #, SCOTT.TBLORDERS#, #, ORCL\000\000\000\000, 0, 1, \000\000\000\000, I, Y, 0, <NULL>, 10000, 0, 05010000, 383632303000000000000000000000000000000000000000000000000000000000000000000000,
88555\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0003801151501201532021515012015, 10000, 0, <NULL>, <NULL>, <NULL>, <NULL>, <NULL>, 00000000 >

1 row found.

Command> select * from sys.user$;

< 0, SYS                           , 1, 0, <NULL>, 2015-01-08 11:30:35.496049, <NULL>, <NULL>, 2825416, 0, 0, 0000, 00000000000000000000000000000000 >

< 1, PUBLIC                        , 0, 0, <NULL>, 2015-01-08 11:30:35.496049, <NULL>, <NULL>, 2825432, 0, 0, 0000, 00000000000000000000000000000000 >

< 2, TTREP                         , 1, 0, <NULL>, 2015-01-08 11:30:35.496049, <NULL>, <NULL>, 2825448, 0, 0, 0000, 00000000000000000000000000000000 >

< 3, SYSTEM                        , 1, 0, <NULL>, 2015-01-08 11:30:35.496049, <NULL>, <NULL>, 2825464, 0, 0, 0000, 00000000000000000000000000000000 >

< 4, GRID                          , 1, 0, <NULL>, 2015-01-08 11:30:35.496049, <NULL>, <NULL>, 2825480, 0, 0, 0000, 00000000000000000000000000000000 >

< 10, OCPYANG                       , 1, 0, <NULL>, 2015-01-08 11:30:35.496049, <NULL>, <NULL>, 2825496, 1, 0, 0000, 00000000000000000000000000000000 >

< 11, CACHEUSER                     , 1, 0, $tten1$03e8$Hg2tjjsbKclse9mQNUe1WgVjkA6ztp0nl9lQBFdDR0JcGzhq, 2015-01-08 11:33:10.551269, <NULL>, <NULL>, 2825512, 0, 0, 0000, 00000000000000000000000000000000 >

< 12, SCOTT                         , 1, 0, $tten1$03e8$nUihKq91gkCULnhgrkcmcTBcPa/HjbBnR3xrcAy96XZovf7n, 2015-01-08 11:33:29.371828, <NULL>, <NULL>, 2825528, 0, 0, 0000, 00000000000000000000000000000000 >

--8.恢复数据

ttDaemonAdmin -start

rm -rf  /data/app/timesten/TimesTen/ttwind/info/datastore/ttwind.ds*

rm -rf  /data/app/timesten/TimesTen/ttwind/info/datastore/ttwind.log*

rm -rf  /data/app/timesten/TimesTen/ttwind/info/datastore/ttwind.res**

ttRestore -dir /backup   -fname ttwindbk  -noconn   -connstr "DSN=ttwind"

ttIsql "DSN=ttwind;UID=cacheuser;PWD=cacheuser;OraclePWD=cacheuser;"

call ttCacheStart;

---9.验证恢复结果

$ ttversion

TimesTen Release 11.2.2.8.2 (64 bit Linux/x86_64) (ttwind:53355) 2015-02-24T18:59:40Z

  Instance admin: ocpyang

  Instance home directory: /data/app/timesten/TimesTen/ttwind

  Group owner: ttadmin

  Daemon home directory: /data/app/timesten/TimesTen/ttwind/info

  PL/SQL enabled.

Command> version

TimesTen Release 11.2.2.8.2

Command> cachegroups;

Cache Group CACHEUSER.CACHETBLORDERS:

Cache Group Type: Read Only

  Autorefresh: Yes

  Autorefresh Mode: Incremental

  Autorefresh State: On

  Autorefresh Interval: 10 Seconds

  Autorefresh Status: C

  Aging: No aging defined

Root Table: SCOTT.TBLORDERS

  Table Type: Read Only

1 cache group found.

Command> select count(*) from scott.tblorders;

< 111001 >

1 row found.

timesten升级的更多相关文章

  1. Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part3:db安装和升级

    Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part3:db安装和升级 环境:OEL 5.7 + Oracle 10.2.0.5 RAC 5.安装Database软件 5. ...

  2. 看完SQL Server 2014 Q/A答疑集锦:想不升级都难!

    看完SQL Server 2014 Q/A答疑集锦:想不升级都难! 转载自:http://mp.weixin.qq.com/s/5rZCgnMKmJqeC7hbe4CZ_g 本期嘉宾为微软技术中心技术 ...

  3. Entity Framework Core 1.1 升级通告

    原文地址:https://blogs.msdn.microsoft.com/dotnet/2016/11/16/announcing-entity-framework-core-1-1/ 翻译:杨晓东 ...

  4. ASP.NET 5 RC1 升级 ASP.NET Core 1.0 RC2 记录

    升级文档: Migrating from DNX to .NET Core Migrating from ASP.NET 5 RC1 to ASP.NET Core 1.0 RC2 Migrating ...

  5. SQL Server2016升级前几点自检

    SQL Server2016已经出来一段时间了,而且最新的SP1包也于2016年11月18日正式发布,各种新的特性推出让我们跃跃欲试.那么对于我们真实的业务环境,特别是生产环境要不要"跟风& ...

  6. 如何安全的将VMware vCenter Server使用的SQL Server Express数据库平滑升级到完整版

    背景: 由于建设初期使用的vSphere vCenter for Windows版,其中安装自动化过程中会使用SQL Server Express的免费版数据库进行基础环境构建.而此时随着业务量的增加 ...

  7. Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part2:clusterware安装和升级

    Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part2:clusterware安装和升级 环境:OEL 5.7 + Oracle 10.2.0.5 RAC 3.安装Clus ...

  8. 升级npm

    查看npm的所有版本 运行命令: npm view npm versions 命令运行后,会输出到目前为止npm的所有版本. [ '1.1.25', '1.1.70', '1.1.71', '1.2. ...

  9. iOS开发 判断当前APP版本和升级

    从iOS8系统开始,用户可以在设置里面设置在WiFi环境下,自动更新安装的App.此功能大大方便了用户,但是一些用户没有开启此项功能,因此还是需要在程序里面提示用户的 方法一:在服务器接口约定对应的数 ...

随机推荐

  1. mpi中利用自定义归约操作实现merge

    在归并排序中,很重要的一步是将两个排序数组合并成一个数组,这个操作叫merge.merge操作可以用来解决某些Top K问题. 问题描述 在哼唱搜索中,用户通过哼唱一个音乐片段去搜索与其相似的音乐.后 ...

  2. Java 螺纹第三版 第三章数据同步 读书笔记

    多线程间共享数据问题 一.Synchronizedkeyword      atomic一词与"原子"无关,它以前被觉得是物质的最小的单元,不能再被拆解成更小的部分.      当 ...

  3. C语言,变量与内存

    一.数在计算机中的二进制表示 符号位:最高位为符号位,正数该位为0,负数该位为1: 原码:原码就是符号位加上真值的绝对值, 即用第一位表示符号, 其余位表示值 反码:正数的反码是其本身:负数的反码是在 ...

  4. VMware machine里的文件

    .nvram——虚拟机BIOS或EFI配置文件. .vmdk——虚拟磁盘特性文件,是存放虚拟磁盘当前状况和上次执行快照时的状况之间的差异的快照文件. .vmsd——虚拟机快照,包含虚拟机快照信息的数据 ...

  5. Spring Cloud Config

    Spring Cloud Config provides server and client-side support for externalized configuration in a dist ...

  6. 总结NHibernate 中删除数据的几种方法

    今天下午有人在QQ群上问在NHibernate上如何根据条件删除多条数据,于是我自己就写了些测试代码,并总结了一下NHibernate中删除数据的方式,做个备忘.不过不能保证囊括所有的方式,如果还有别 ...

  7. [置顶] Windows Phone后台音乐详解一

    应用于: Windows Phone 8 | Windows PhoneOS 7.1 你可以为winphone编写在后台播放音乐的app.这表示即使当用户点击返回或开始按钮离开你的应用界面时,你的应用 ...

  8. SDUT 2893-B(DP || 记忆化搜索)

    B Time Limit: 1000ms   Memory limit: 65536K  有疑问?点这里^_^ 题目描写叙述 有n块地板排成一条直线,从左到右编号为1,2,3. . . n-1,n,每 ...

  9. 服务确定撤销/删除/关闭 (ml81n)

    FUNCTION zrfc_mm006. *"---------------------------------------------------------------------- * ...

  10. 解决Xcode 7编译错误:does not contain bitcode

    连接地址:http://jingyan.baidu.com/article/8065f87f96cf462331249801.html 好不容易更新到Xcode 7.0.1,重新编译代码,报错: do ...