当前TimesTen Classic 18c已安装,已配置读写缓存组。以下为卸载全过程。

查看到cache agent和rep agent均在运行:

$ ttstatus
TimesTen status report as of Mon Dec 21 01:43:27 2020Daemon pid 2060 port 6624 instance tt181
TimesTen server pid 2067 started on port 6625
------------------------------------------------------------------------
------------------------------------------------------------------------
Data store /u01/database/data/ttdb
Daemon pid 2060 port 6624 instance tt181
TimesTen server pid 2067 started on port 6625
There are 26 connections to the data store
Shared Memory KEY 0x16030496 ID 1
PL/SQL Memory Key 0x17030496 ID 2 Address 0x5000000000
Type            PID     Context             Connection Name              ConnID
Cache Agent     2471    0x0000000002063ac0  Marker(140663752677120)           7
Cache Agent     2471    0x00007fee7c09ec50  LogSpaceMon(140663873083136)      6
Cache Agent     2471    0x00007fee8001ec70  Timer                             2
Cache Agent     2471    0x00007fee8010eca0  BMReporter(140663750571776)       5
Cache Agent     2471    0x00007fee840d8840  Refresher(S,5000)                 4
Cache Agent     2471    0x00007fee8804a1f0  Refresher(S,5000)(140663748466    3
Cache Agent     2471    0x00007feed807e390  Handler                           1
Server          826     0x0000000001b83070  TimesTen_Cache_Admin              8(Client Information: pid: 3288; IPC: TCP/IP;Node: ttadmin (10.0.0.2))
Replication     29024   0x00007fa6a80008c0  TRANSMITTER(M):140355214210816 2031
Replication     29024   0x00007fa6ac0008c0  RECEIVER:140353979041536       2030
Replication     29024   0x00007fa6b00008c0  REPLISTENER:140355220510464    2033
Replication     29024   0x00007fa6f00009b0  LOGFORCE:140355217360640       2032
Replication     29024   0x00007fa6f40008c0  REPHOLD:140355223660288        2034
Subdaemon       2065    0x000000000100a560  Manager                        2047
Subdaemon       2065    0x000000000108b530  Rollback                       2046
Subdaemon       2065    0x000000000110a200  AsyncMV                        2042
Subdaemon       2065    0x00007f78600008c0  Garbage Collector              2043
Subdaemon       2065    0x00007f786007f330  Log Marker                     2041
Subdaemon       2065    0x00007f78680008c0  IndexGC                        2045
Subdaemon       2065    0x00007f78680dafc0  Checkpoint                     2036
Subdaemon       2065    0x00007f786c0008c0  XactId Rollback                2044
Subdaemon       2065    0x00007f786c07f330  Aging                          2037
Subdaemon       2065    0x00007f78700008c0  HistGC                         2040
Subdaemon       2065    0x00007f787007f330  Deadlock Detector              2039
Subdaemon       2065    0x00007f78b40008c0  Monitor                        2038
Subdaemon       2065    0x00007f78b407f330  Flusher                        2035
Open for user connections
RAM residence policy: Always
Replication policy  : Manual
Replication agent is running.
Cache Agent policy  : Always
Cache agent is running.
PL/SQL enabled.
------------------------------------------------------------------------
Accessible by group timesten
End of report

删除读写缓存组, 写缓存组删除前必须停止复制代理:

$ ttisql "uid=cacheadm;pwd=timesten;dsn=ttdb;oraclepwd=oracle"
Command> cachegroupsCache Group CACHEADM.READCACHE:Cache Group Type: Read OnlyAutorefresh: YesAutorefresh Mode: IncrementalAutorefresh State: OnAutorefresh Interval: 5 SecondsAutorefresh Status: okAging: No aging definedRoot Table: ORATT.READTABTable Type: Read OnlyCache Group CACHEADM.WRITECACHE:Cache Group Type: Asynchronous Writethrough (Dynamic)Autorefresh: NoAging: LRU onRoot Table: ORATT.WRITETABTable Type: Propagate2 cache groups found.Command> drop cache group readcache;
Command> drop cache group writecache;5245: The operation cannot be executed while the Replication Agent for this database is running.
The command failed.Command> call ttrepstop();
Command> drop cache group writecache;Command> call ttcachestop();
10021: Cache agent was not stopped due to cache agent policy setting.
The command failed.

停止缓存代理出错,是因为policy设置成了always:

$ ttadmin ttdb
RAM Residence Policy            : always
Replication Agent Policy        : manual
Replication Manually Started    : False
Cache Agent Policy              : always
Cache Agent Manually Started    : True
Database State                  : Open

将cache policy修改为manual:

$ ttadmin -cachepolicy manual ttdb
RAM Residence Policy            : always
Replication Agent Policy        : manual
Replication Manually Started    : False
Cache Agent Policy              : manual
Cache Agent Manually Started    : True
Database State                  : Open

确认缓存代理和复制代理未运行:

$ ttstatus
TimesTen status report as of Mon Dec 21 02:14:26 2020Daemon pid 2060 port 6624 instance tt181
TimesTen server pid 2067 started on port 6625
------------------------------------------------------------------------
------------------------------------------------------------------------
Data store /u01/database/data/ttdb
Daemon pid 2060 port 6624 instance tt181
TimesTen server pid 2067 started on port 6625
There are 14 connections to the data store
Shared Memory KEY 0x16030496 ID 1
PL/SQL Memory Key 0x17030496 ID 2 Address 0x5000000000
Type            PID     Context             Connection Name              ConnID
Server          826     0x0000000001b83070  TimesTen_Cache_Admin              8(Client Information: pid: 3288; IPC: TttstatCP/IP;Node: ttadmin (10.0.0.2))
Subdaemon       2065    0x000000000100a560  Manager                        2047
Subdaemon       2065    0x000000000108b530  Rollback                       2046
Subdaemon       2065    0x000000000110a200  AsyncMV                        2042
Subdaemon       2065    0x00007f78600008c0  Garbage Collector              2043
Subdaemon       2065    0x00007f786007f330  Log Marker                     2041
Subdaemon       2065    0x00007f78680008c0  IndexGC                        2045
Subdaemon       2065    0x00007f78680dafc0  Checkpoint                     2036
Subdaemon       2065    0x00007f786c0008c0  XactId Rollback                2044
Subdaemon       2065    0x00007f786c07f330  Aging                          2037
Subdaemon       2065    0x00007f78700008c0  HistGC                         2040
Subdaemon       2065    0x00007f787007f330  Deadlock Detector              2039
Subdaemon       2065    0x00007f78b40008c0  Monitor                        2038
Subdaemon       2065    0x00007f78b407f330  Flusher                        2035
Open for user connections
RAM residence policy: Always
Replication policy  : Manual
Cache Agent policy  : Manual
PL/SQL enabled.
------------------------------------------------------------------------
Accessible by group timesten
End of report

删除数据库,首先需要断开所有的客户端连接。

查看到有一个来自10.0.0.2的连接,实际上是Windows上安装的SQL Developer,在SQL Developer中断开连接就好了:

$ ttstatus
TimesTen status report as of Mon Dec 21 02:19:00 2020Daemon pid 2060 port 6624 instance tt181
TimesTen server pid 2067 started on port 6625
------------------------------------------------------------------------
------------------------------------------------------------------------
Data store /u01/database/data/ttdb
Daemon pid 2060 port 6624 instance tt181
TimesTen server pid 2067 started on port 6625
There are 14 connections to the data store
Shared Memory KEY 0x16030496 ID 1
PL/SQL Memory Key 0x17030496 ID 2 Address 0x5000000000
Type            PID     Context             Connection Name              ConnID
Server          826     0x0000000001b83070  TimesTen_Cache_Admin              8(Client Information: pid: 3288; IPC: TCP/IP;Node: ttadmin (10.0.0.2))
...

以下删除数据库,删除前请做好数据库备份:

[oracle@ttserver ~]$ ttdestroy ttdb
Failed to destroy data store: TT0839: Cannot access database because it is in use. A database may be considered to be in use due to its RAM Policy setting, even though there are no active connections to it. -- file "db.c", lineno 6078, procedure "sbDbDestroy"
[oracle@ttserver ~]$ ttadmin ttdb
RAM Residence Policy            : always
Replication Agent Policy        : manual
Replication Manually Started    : False
Cache Agent Policy              : manual
Cache Agent Manually Started    : False
Database State                  : Open
[oracle@ttserver ~]$ ttadmin -rampolicy manual ttdb
RAM Residence Policy            : manual
Manually Loaded In RAM          : True
Replication Agent Policy        : manual
Replication Manually Started    : False
Cache Agent Policy              : manual
Cache Agent Manually Started    : False
Database State                  : Open[oracle@ttserver ~]$ ttadmin -ramunload ttdb
RAM Residence Policy            : manual
Manually Loaded In RAM          : False
Replication Agent Policy        : manual
Replication Manually Started    : False
Cache Agent Policy              : manual
Cache Agent Manually Started    : False
Database State                  : Closed
[oracle@ttserver ~]$ ttdestroy ttdb

确保所有数据库都已删除。

现在还有timesten守护进程在运行:

$ ttstatus
TimesTen status report as of Mon Dec 21 02:26:08 2020Daemon pid 2060 port 6624 instance tt181
TimesTen server pid 2067 started on port 6625
------------------------------------------------------------------------
------------------------------------------------------------------------
Accessible by group timesten
End of report[oracle@ttserver ~]$ ttstatus
ttStatus: Could not connect to the TimesTen daemon.
If the TimesTen daemon is not running, please start it
by running "ttDaemonAdmin -start".
/home/oracle/tt181/info/daemon.status says:
2020-12-21 02:27:37 daemon shutting down due to user request

最后删除timesten实例和软件:

$ ttinstancedestroy** WARNING **The uninstallation has been executed by a non-root user.If the TimesTen daemon startup scripts were installed,you must run $TIMESTEN_HOME/bin/setuproot -uninstallto remove them. If you proceed with this uninstallation, youwill have to remove the startup scripts manually.** WARNING **All files in the directory:/home/oracle/tt181will be removed, including any file that you or other usersmay have created.Are you sure you want to completely remove this instance? [ yes ]
ttDaemonAdmin: daemon is not runningInstallation will remove all the files from /home/oracle/tt181.Do you want to continue? [ yes ]NOTE: /home/oracle/tt181/info contains information related to the data storesthat have been created with this release. If you remove/home/oracle/tt181/infoyou will no longer be able to access your data stores,nor would you be able to restore nor migrate your data.NOTE: /home/oracle/tt181/conf contains information related to the instance configuration.
/home/oracle/tt181 Removed
The TimesTen instance tt181 has been destroyed.$ chmod -R 750 /u01/installation/tt18.1.4.1.0/
$ rm -rf /u01/installation/tt18.1.4.1.0/

还剩instance admin用户没删,略。

TimesTen Classic 18c 卸载 (uninstall)全过程相关推荐

  1. TimesTen Classic 18c 安装与配置过程

    参考 Complete example for installing and uninstalling TimesTen Classic 概述 TimesTen 18.1.2.1版是首个兼容Times ...

  2. vue2 卸载 uninstall vue-meta 报错 up to date, audited 1389 packages in 10s 96 packages are looking for

    问题描述: 我为了设置 meta然后 去网上找了一个教程,然后安装了,发现是vue3的 一个命令后报错了,然后没有注意到结果后面安装也出现问题,但是不知道是不是这个原因, 如下 vue3 的meat设 ...

  3. Android Adb命令(1) - 查看所有的Apk包 / 安装install 和卸载uninstall

    一.查找 1.打印本机所有软件包 adb shell pm list packages 2.输出和安装包相关联的文件(包括apk的路径) adb shell pm list packages -f 3 ...

  4. Oracle卸载的全过程

    Oracle数据库卸载的详细过程 基本上遇到啥不能解决的问题,卸载重装都会好的 卸载的时候一定要耐心/细心,少删了任何一个该删的文件,都会卸不干净,相当于白做了 一.停止所有Oracle服务 右键桌面 ...

  5. android studio卸载找不到uninstall

    android studio卸载找不到uninstall 今天安装配置android studio,直接从官网下的最新版,配置有问题想卸载居然发现没有uninstall文件!!! 真离谱. 不得不重新 ...

  6. TimesTen学习(四)Data Manager守护进程

    < TimesTen学习(一)安装篇 > http://blog.itpub.net/23135684/viewspace-717741/ < TimesTen学习(二)连接创建第一 ...

  7. Python卸载重装完整教程

    删除现有的所有python 方式一:对应的安装包还在的话,双击运行这个安装包,出现如下页面: 点击第三个选项Uninstall即可 方式二:设置中应用与功能中找到带有python的应用: Settin ...

  8. npm——安装、卸载与更新

    npm 官方文档:https://docs.npmjs.com/ 什么是npm npm("Node 包管理器")是 JavaScript 运行时 Node.js 的默认程序包管理器 ...

  9. 如何卸载 IDEA 破解补丁 Betterintellij ?

    如何卸载 IDEA 破解补丁 Betterintellij ? 开始卸载 Betterintellij 补丁 这个补丁被黑客篡改过,有安全风险,强烈建议小伙伴们卸载掉,以免对自己造成损失.怎么卸载呢? ...

  10. tokuDB 使用详解及其注意事项(2)

    几个月前写过一篇简单的关于TokuDB的文章 tokuDB存储引擎的安装.配置.使用及注意事项 这段时间撑着有点空详细的过了 一遍官方文档并结合使用做了一下总结. 偷个懒就不做仔细的排版了[csdn ...

最新文章

  1. bitmap格式分析
  2. oracle nodemanage,Linux 下Weblogic集群搭建-04通过nodemanage进行节点的启动与关闭
  3. html5/css3响应式页面开发总结
  4. 第十一章 AtomicInteger源码解析
  5. 网络数据采集技术—Java网络爬虫入门与实战 书稿纠错
  6. 准确率创新高,北大开源中文分词工具包 pkuseg
  7. MySQL IS NULL(IS NOT NULL)使用索引分析
  8. 类方法load和initialize的区别
  9. 使用Windows批处理文件递归删除当前路径下的指定文件夹
  10. 字节跳动实习 视频面试
  11. 地址栏中的#是什么意思
  12. nginx部署访问phpadmin
  13. demo h5 touch 移动_H5案例分享:移动端touch事件判断滑屏手势的方向
  14. C#读取Excel数据在CAD上展图
  15. JAVA 繁体 转 简体 简体转翻译 繁体简体互转
  16. 微信个人号客服系统淘宝客发单机器人sdk服务端接口列表
  17. MT6757_MT6763_Brightness_CaseShare
  18. 利用条件运算符的嵌套实现:学习成绩=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示
  19. JavaScript旋转数组
  20. java设置默认值_Spring @Value 设置默认值的实现

热门文章

  1. 知了课堂项目part1
  2. 保险公司智能运营系统文档
  3. Springboot在线电影订票系统
  4. 南航计算机考研是自主命题吗_什么是自主计算?
  5. 去掉GaussView启动警告窗口的办法
  6. 关于图书管理系统项目的大概思路
  7. UTF-8字符集中文排序方法研究
  8. 人体姿态识别方案详解
  9. [ArcGIS] 模型构造器中使用重分类 ArcPy与Numpy 相等间隔重分类
  10. 为股票量化分析最新整理的免费股票数据API接口