How to delete SAP* from HANA Tenant database
2022/4/4 23:49:34
本文主要是介绍How to delete SAP* from HANA Tenant database,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
How to delete SAP* from HANA Tenant database
1.如何登录HANA的多租户(TDC)数据库
1.1 采用key的方式登录
使用SAPS4端对应的SAP账户,比如S4D的账户为s4dadm
su - s4dadm
采用key的方式登录
如何查找对应的KEY,可以使用hdbuserstore命令查看
如上图所示,对应的Key为DEFAULT
我就可以用这个KEY去登了数据库了
hdbsql -U DEAFULT
老应出版,翻版必究;如要不究,记得知会。。。。。
1.2 采用命令行登录
And for tenant level license, you can connect to the specific tenant database to perform below steps.
- Logon as sidadm user, connect to the Database via hdbsql.
- For single container system, please try below command:
> hdbsql -n <hostname>:3<instance no.>15 -i <instance no.> -u <DB username> -p <password>
- For MDC system, please try connecting to the system DB by below command:
> hdbsql -n <hostname>:3<instance no.>13 -i <instance no.> -u <DB username> -p <password>
- To install license in a specific tenant, please maintain the SQL port of the tenant DB in the command accordingly.
> hdbsql -n <hostname>:3<instance no.><tenant SQL port> -i <instance no.> -u <DB username> -p <password> 如: hdbsql -n sap-sbx-db01:31015 -i 10 -u SAPHANADB -p 'Sap#2020'
老应出版,翻版必究;如要不究,记得知会。。。。。
2.检查使用SAP*是否存在
hdbsql=> select count(*) 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.
这篇关于How to delete SAP* from HANA Tenant database的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-15鸿蒙生态设备数量超8亿台
- 2024-05-13TiDB + ES:转转业财系统亿级数据存储优化实践
- 2024-05-09“2024鸿蒙零基础快速实战-仿抖音App开发(ArkTS版)”实战课程已上线
- 2024-05-09聊聊如何通过arthas-tunnel-server来远程管理所有需要arthas监控的应用
- 2024-05-09log4j2这么配就对了
- 2024-05-09nginx修改Content-Type
- 2024-05-09Redis多数据源,看这篇就够了
- 2024-05-09Google Chrome驱动程序 124.0.6367.62(正式版本)去哪下载?
- 2024-05-09有没有大佬知道这种数据应该怎么抓取呀?
- 2024-05-09这种运行结果里的10.100000001,怎么能最快改成10.1?