How to delete SAP* from HANA Tenant database

1.如何登录HANA的多租户(TDC)数据库
使用SAPS4端对应的SAP账户,比如S4D的账户为s4dadm
su - s4dadm
采用key的方式登录

如何查找对应的KEY,可以使用hdbuserstore命令查看

如上图所示,对应的Key为DEFAULT
我就可以用这个KEY去登了数据库了
hdbsql -U DEAFULT

2.检查使用SAP是否存在
hdbsql=> select
from usr02 where mandt = '000' and bname = 'SAP*';

如上图所示是否有内容,如有,按\q退出。
也可用命令
hdbsql=> select count() from usr02 where mandt = '000' and bname = 'SAP';

如上图所示是否有内容,如有,按\q退出。

3.删除SAP用户
hdbsql=> delete from usr02 where mandt = '000' and bname = 'SAP
';
不需要commit命令提交。
I'm pretty sure that you need to log in with the SAPABAP1 user and then run the SQL statement, since that user owns the schema. It should have the same password as your DDIC or SAP* users.

最新文章

  1. Winform自定义控件基础(二)
  2. 一般html5 手机端头部需要
  3. 在C#中简单调用FindWindow控制其他程序
  4. GDB中文手册
  5. hdu4487(概率dp)
  6. jquery选择器中逗号的使用
  7. HTML canvas图像裁剪
  8. 百度地图API,定位您的当前位置
  9. ●BZOJ 3545 [ONTAK2010]Peaks(离线)
  10. 连接器与容器的桥梁——CoyoteAdapter
  11. 随笔:关于去年的WordPress建站的回忆
  12. java事件监听机制
  13. macOS 上编译 Dynamips
  14. springboot性能优化
  15. 【BZOJ4755】 [Jsoi2016]扭动的回文串
  16. noip 瑞士轮 - 归并
  17. 调用Android系统设置项
  18. 【日期控件】JQueryUI的datepicker日期控件
  19. 解决kvm虚拟机启动之后,网卡eth0变为eth1问题
  20. java——异常类、异常捕获、finally、异常抛出、自定义异常

热门文章

  1. 004-guava 集合-新增集合类型-MultiSet, MultiMap, BiMap , Table, ClassToInstanceMap, RangeSe, RangeMap等
  2. oracle根据sqlID查找相对应的sql语句
  3. 使用navicat的坑
  4. java 特殊字符处理
  5. Spring Cloud Hystrix 服务容错保护 5.1
  6. C# 子线程与主线程通讯方法一
  7. Text Prompted Remote Speaker Authentication : Joint Speech and Speaker Recognition/Verification System :: Major Project ::: Introduction
  8. Spring Boot系列之-profile
  9. LODOP关联后眉脚条码的遮挡的一种情况
  10. Docker 安装运行MSSQL Server