timesten删除实例
1.修改环境变量
让环境变量指向目前的实例
[instanceadmin@localhost ~]$ more .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export TIMESTEN_HOME=/opt/tt18.1.4.34.0/hxl/hxl
export ORACLE_HOME=/usr/lib/oracle/12.2/client64
export PATH=$ORACLE_HOME/bin:$TIMESTEN_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/opt/tt18.1.4.34.0/lib:$LD_LIBRARY_PATH
TNS_ADMIN=/opt/tt18.1.4.34.0/network/admin
export PATH
退出,用户instanceadmin重新登录
2.删除实例
[instanceadmin@localhost ~]$ /opt/tt18.1.4.34.0/bin/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 -uninstall
to remove them. If you proceed with this uninstallation, you
will have to remove the startup scripts manually.
** WARNING **
All files in the directory:
/opt/tt18.1.4.34.0/hxl/hxl
will be removed, including any file that you or other users
may have created.
Are you sure you want to completely remove this instance? [ yes ] yes
ttDaemonAdmin: daemon is not running
Installation will remove all the files from /opt/tt18.1.4.34.0/hxl/hxl.
Do you want to continue? [ yes ] yes
NOTE: /opt/tt18.1.4.34.0/hxl/hxl/info contains information related to the data stores
that have been created with this release. If you remove
/opt/tt18.1.4.34.0/hxl/hxl/info
you will no longer be able to access your data stores,
nor would you be able to restore nor migrate your data.
NOTE: /opt/tt18.1.4.34.0/hxl/hxl/conf contains information related to the instance configuration.
/opt/tt18.1.4.34.0/hxl/hxl Removed