原创 ORA-02049: timeout: distributed transaction waiting for lock

select 'alter system kill session ''' || sid || ',' || serial# || ''';' from v$session where username = 'XXX';

原创 Oracle Create Sequence

CREATE SEQUENCE customers_seq START WITH 1000 INCREMENT BY 1 NOCACHE NOCYCLE; CREATE OR REPLACE TRIGGER J

原创 ORA-00054: resource busy and acquire with NOWAIT specified

1. select object_name, s.sid, s.serial#, p.spid from v$locked_object l, dba_objects o, v$session s, v$process p wh

原创 ATOM -- A hackable text editor for the 21st Century

今天安裝Atom試了下 安裝了四個插件 打開log文件的時候,很多飄紅的下劃線,是Atom進行spell checking的原因: search “spell-check”disable http://superuser

原创 Apache Commons JEXL

Apache Commons JEXL JEXL is a library intended to facilitate the implementation of dynamic and scripting features i

原创 SQL Server delete all tables

/* Drop all non-system stored procs */ DECLARE @name VARCHAR(128) DECLARE @SQL VARCHAR(254) SELECT @name = (SELECT

原创 Oracle data types and Microsoft SQL Server data types

https://msdn.microsoft.com/en-us/library/ms151817(v=sql.105).aspx

原创 /bin/bash^M:

1. :set ff 如果是doc 設置成unix :set fileformat=unix :wq 2.如果fileformat是unix還報錯 sed -i 's/\r//' filename http://stac

原创 Apache Camel

Apache Camel ™ is a versatile open-source integration framework based on known Enterprise Integration Patterns. Apa

原创 Jackson

public class MyJackson { public static void main(String[] args) throws IOException { jsonToUser();

原创 JAXB

1. 根據xsd生成java類 xsd文件 <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchem

原创 ORA-30649: missing DIRECTORY keyword

alter table TABLENAME add FIELDNAME char(1) not null default '0' ; it was throwing an error: 'ORA-30649:missing

原创 Apache Commons CLI

The Apache Commons CLI library provides an API for parsing command line options passed to programs. It's also able

原创 mvn compile error : try-with-resources is not supported in -source 1.5

add compiler to pom.xml <properties> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.tar

原创 Apache Commons Configuration

The Commons Configuration software library provides a generic configuration interface which enables a Java applicat