huha 2019-12-05
This project meant to provide useful scripts for DB maintance and management, to make work easier and interesting...
今天主要将Oracle查看隐含参数的脚本转换为shell脚本,仅供参考。
use script settdb.sh for DB login details registry
#!/bin/bash echo "========================================查询数据库隐藏参数=================================================" sqlplus -S / as sysdba <<EOF set linesize 1000 pagesize 1000 col name for a60 col describ for a80 col value for a30 SELECT x.ksppinm NAME, y.ksppstvl VALUE, x.ksppdesc describ FROM SYS.x\$ksppi x, SYS.x\$ksppcv y WHERE x.indx = y.indx x.ksppinm LIKE '%$1%';; exit EOF
输出结果:
后面会分享更多devops和DBA方面内容,感兴趣的朋友可以关注下!