`
文章列表
def ipv6_check(addr): ''' Returns True if the IPv6 address (and optional subnet) are valid, otherwise returns False. ''' ip6_regex = ( r'(^(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}$)|' r'(\A([0-9a-f]{1,4}:){1,1}(:[0-9a-f]{1,4}){1,6}\Z)|' ...
mysql 8.0.11 解压版 mysql> alter user 'root'@'localhost' identified by '123456'; Query OK, 0 rows affected (0.21 sec) mysql> flush privileges; Query OK, 0 rows affected (0.04 sec) --远程客户端连接 mysql> update user set Host='%' where User='root'; Query OK, 1 row affected (0.16 sec) ...
create table cssc_result1 as select * from cssc_result where 1=2; alter table cssc_result1 modify (DEFECT_NAME clob); alter table cssc_result1 modify (DEFECT_REASON clob); insert into cssc_result1 select * from cssc_result; drop table cssc_result; rename cssc_result1 to cssc_res ...
alter table 表名 enable row movement; flashback table 表名 to timestamp to_timestamp('2017-05-04 12:26:00','yyyy-mm-dd HH24:MI:SS');  
import java.io.FileOutputStream; import java.io.IOException; import org.apache.poi.common.usermodel.Hyperlink; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFCellStyle; import org.apache.poi.hssf.usermodel.HSSFFont; import org.apache.poi.hssf.usermode ...

oracle 监控常用sql

select * from V$process; SELECT osuser, username, sql_text from v$session a, v$sqltext b where a.sql_address = b.address order by address, piece; SELECT (SUM(PINS - RELOADS)) / SUM(PINS) "LIB CACHE" FROM V$LIBRARYCACHE; --检测数据库中的事件和等待 SELECT even ...
解决jdk1.7 不支持TLS1.2的问题    续   windows环境打开jdk安装目录:jdk1.7.0_80\jre\bin,找到javacpl.exe  双击打开,高级选项卡,拉到最下方勾选TLS1.1 TLS1.2 ,如图     代码做微调: TLS 改为TLSv1.2    private static HttpClient httpClientEnableTLSTrust(final HttpClient base) { try { final SSLContext ctx = SSLContext ...
public static void main(String[] args) throws Exception {           SSLContext context = SSLCon
import java.security.*; public class Check { public static void main(String[] args) { System.out.println("-------列出加密服务提供者-----"); Provider[] pro = Security.getProviders(); for (Provider p : pro) { System.out.println("Prov ...
场景   java程序使用https方式调用nessus接口时,使用jdk1.7返回如下内容: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?  使用jdk1.8返回正常 {"token":"f360654233f65d964ed220914ec10916fe206a3d1b1c1b41"}  使用浏览器访问正常,debug发现发现: 协议版本:TLSv1.2 密码组合:TLS_RSA_WITH_AES_128_CBC_SHA  百度 ...
很多用户都知道在Window系统中有个Hosts文件(没有后缀名),在Windows 98系统下该文件在Windows目录,在Windows 2000/XP系统中位于X:\Winnt\System32\Drivers\Etc(或X:\Windows\System32\Drivers\Etc)目录中(X为系统分区盘符)。该文件其实是一个纯文本的文件,用普通的文本编辑软件如记事本等
1、select uat.table_name from user_all_tables uat 该SQL可以获得所有用户表的名称 2、select object_name, created,last_ddl_time from user_objects 该SQL可以获得所有用户对象(包括表)的创建和最后修改时间   select uat.table_name as 表名,(select last_ddl_time from user_objects where object_name = uat.table_name ) as 最后修改日期 from user_all_tabl ...
--查看回收站中表 select object_name,original_name,partition_name,type,ts_name,createtime,droptime from recyclebin; --恢复表 SQL>flashback table test_drop to before drop;或 SQL>flashback table "BIN$b+XkkO1RS5K10uKo9BfmuA==$0" to before drop; --注:必须9i或10g以上版本支持,flashback无法恢复全文索引  
-- 如果创建全局 dblink,必须使用 systm 或 sys 用户,在 database 前加 public。 create public database link dblink1   connect to dbusername identified by dbpassword   using '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = orcl)))'; ...
    -- 查询业务类型 -- 数据内容为:2,3,4 -- 需求截取第一个字符 select ris.info_sys_guid, substr(ris.business_type ,1,1) business_type from rec_info_sys ris 结果business_type 显示为空。 后查看数据类型为nvarchar2 对varchar2类型做测试正常 故对nvarchar2 进行转换成varchar2 select ris.info_sys_guid, substr(ut ...
Global site tag (gtag.js) - Google Analytics