摘要:
# coding=utf-8 ''''' Created on 2015-01-14 @author: '''import json;import urllib2import sysimport cx_Oracleimport exceptions# page=urllib2.urlopen(...
阅读全文
posted @ 2015-01-16 16:23
凌度
阅读(16043)
推荐(0)
摘要:
有回车换行的数据,要在sqlldr之前处理掉mysqlUPDATE tablename SET field = REPLACE(REPLACE(field, CHAR(10), ”), CHAR(13), ”); char(10): 换行符 char(13):...
阅读全文
posted @ 2015-01-08 16:08
凌度
阅读(1131)
推荐(0)
摘要:
查看进程: 根据存储过程名称查找是否被锁: select * FROM dba_ddl_locks where name =upper('sp_1'); select * FROM dba_ddl_locks where name like upper('%sp_1%'); 查找SID: selec
阅读全文
posted @ 2015-01-07 17:03
凌度
阅读(5402)
推荐(0)
posted @ 2014-12-30 18:57
凌度
阅读(6660)
推荐(1)
摘要:
1、按年 2、按月 3、按季 4、按周 5、按小时 6、按分钟 SELECT trunc(sysdate-1) + (ROWNUM - 1) / 24 / 60 AS STAT_TIME FROM DUAL d CONNECT BY ROWNUM <= 1440 +(trunc(sysdate, '
阅读全文
posted @ 2014-12-26 15:00
凌度
阅读(4978)
推荐(0)
摘要:
oracle查看表名select table_name from user_tables;select table_name from dba_tables;select * from all_all_tablesoracle查看数据库名select * from v$database;mysql查...
阅读全文
posted @ 2014-12-26 10:14
凌度
阅读(2392)
推荐(0)
摘要:
配置contrl文件load datacharacterset utf8append into table role_res_goldfields terminated by ';'TRAILING NULLCOLS(F_USERNAME ,F_RES_TYPE ,F_INDEX...
阅读全文
posted @ 2014-12-25 11:33
凌度
阅读(1830)
推荐(0)
摘要:
字符串编码常用类型:utf-8,gb2312,cp936,gbk等。python中,我们使用decode()和encode()来进行解码和编码在python中,使用unicode类型作为编码的基础类型。即 decode encodestr ---------> unicode --------->s...
阅读全文
posted @ 2014-12-25 11:26
凌度
阅读(7970)
推荐(0)
摘要:
sftp sftp(安全文件传输协议)与ftp 有着几乎一样的语法和功能。FTP 为 SSH的一部份,是一种传输档案至 Blogger 伺服器的安全方式。它并不使用ftp守护进程(ftpd或wu-ftpd)来进行连接,而是有意义地增强系统的安全性。实际上,通过监视一些系统中的log文件,可以注意到很...
阅读全文
posted @ 2014-12-18 10:45
凌度
阅读(22614)
推荐(0)
摘要:
netstat -a 查看所有服务端口 netstat -tln 查看当前使用的端口 通过PID查看端口号:netstat -anop|grep pid ps命令查看进程的id: ps aux | grep ftp 或者 pidof Name netstat命令查看其占用的端口: netstat -
阅读全文
posted @ 2014-12-18 10:00
凌度
阅读(5277)
推荐(0)