2009 年文章归档
共 2 篇文章
函数:将秒数转化为相对时间
函数名:get_time_zdp 参数:seconds 秒数 功能:将秒数转化为相对时间 举例:select get_time_zdp(2*60*60*24*30+2*60+3*60*60) from dual; --2个月3小时2分0秒 代码: create or replace function get_time_zdp( seconds in number ) return varchar2 as temp number; years number; months number; days number; hour number; minit number; sec number; R…
2009-09-17 09:33 · 数据库
nohup命令Linux下程序在后台执行
Unix/Linux下一般想让某个程序在后台运行,很多都是使用 & 在程序结尾来让程序自动运行。 比如我们要运行mysql在后台:/usr/local/mysql/bin/mysqld_safe --user=mysql & 但是我们很多程序并不象mysqld一样可以做成守护进程,可能我们的程序只是普通程序而已,一般这种程序即使使用 & 结尾,如果终端关闭,那么程序也会被关闭。 为了能够后台运行,我们需要使用nohup这个命令。比如我们有个start.sh需要在后台运行,并且希望在后台能够一直运行,那么就使用nohup: nohup /root/start.sh & 在shell中回车后提示…
2009-09-16 13:57 · 操作系统