select a.catalog_name,decode(substr(trunc((a.s/b.count2),4)*100||'%',0,1),'.',replace(trunc((a.s/b.count2),4)*100||'%','.','0.'),trunc((a.s/b.count2),4)*100||'%') as percentfrom (SELECT PARENT_NAME as catalog_name, sum(COUNTNUM) as s FROM RES_PR
bc是强大而常用的计算工具.不过在除法运算时,如果得到的结果值小于1,得到的小数前面的0不存.本篇提供几个常用小数点前缺0的解决方法. [root@maqing ~]# bc bc Copyright -, , , , , Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. scale=; / . 打开bc进入交互模式,我们键入
环境:RHEL6.5 + Oracle 11.2.0.4 DataGuard physical standby 主库和备库都是单节点. 需求:主备库同时应用160719的PSU和OJVM PSU补丁. 先参考MOS文档 ID 278641.1 的解决方案如下: SOLUTION Process Overview: In the primary disable log shipping to the standby site. Shutdown the standby site and apply
Linux 6.5(oracle 11.2.0.4) 1.解析主机.配置网络等 /etc/hosts /etc/sysconfig/network /etc/init.d/NetworkManager stop chkconfig NetworkManager off iptables -F service iptables save sed -ri 's/^SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux 2.配置yum c