/** * This file created at 2018年2月28日. * * Copyright (c) 2002-2018 Bingosoft, Inc. All rights reserved. */ import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.…
原文地址:[DataGuard]部署Data Guard相关参数详解 作者:secooler    有关物理Data Guard部署参考<[DataGuard]同一台主机实现物理Data Guard配置安装>(http://space.itpub.net/519536/viewspace-578181),本文对部署Data Guard过程中主备库使用到的参数进行比较描述. 1.DB_NAME,数据库名字,需要保持同一个Data Guard 中所有数据库DB_NAME相同primary端和sta…
public static String convertStreamToString(InputStream is) { /* * To convert the InputStream to String we use the BufferedReader.readLine() * method. We iterate until the BufferedReader return null which means * there's no more data to read. Each lin…
有很多人搞不懂对象和类的定义.比如说java中String到底是对象还是类呢? 有人说String 既可以说是类,也可以说是对象. 其实他这么说也没问题, 类和对象其实都是一个抽象的概念. 我们可以把一类东西归集在一起,起一个名字,什么类,专门做什么事的,但是我们也可以说它是一个对象-- 所以说String 既可以说是类,也可以说是对象. 但是如果你要深究,比如小编就饿深究了一下,我发现在java.lang中,这是个基础类,你可以好好看lang包中的源码. public final class …
Data Pump 介绍 在第一部分看了2段官网的说明, 可以看出数据泵的工作流程如下: (1)在命令行执行命令 (2)expdp/impd 命令调用DBMS_DATAPUMP PL/SQL包. 这个API提供高速的导出导入功能. (3)当data 移动的时候, Data Pump 会自动选择direct path 或者external table mechanism 或者 两种结合的方式. 当metadata(对象定义) 移动的时候,Data Pump会使用DBMS_METADATA PL/S…
不重复造轮子. 最可靠的方法,或者使用Apache commons IOUtils  这样简单几行代码就搞定了 StringWriter writer = new StringWriter(); IOUtils.copy(inputStream, writer, encoding); String theString = writer.toString(); 或者 String theString = IOUtils.toString(inputStream, encoding)//这种方法事实…
1.C++ 中 string 类的 find 方法列表 size_type std::basic_string::find(const basic_string &__str, size_type __pos); size_type std::basic_string::find(const _CharT *__s, size_type __pos, size_type __n); size_type std::basic_string::find(const _CharT *__s, size…
组件的intent-filter属性         如果一个 Intent 请求在一片数据(Uri)上执行一个动作(Action), Android 如何知道哪个应用程序的哪个组件能用来响应这个请求呢?         Intent Filter 就是用来注册 Activity .Service 和 Broadcast Receiver 具有能在某种数据上执行某种动作的能力.         使用 intent-filter 指定action.data等属性后,应用程序组件就会告诉 Andro…
String:(字符串) indexOf() 方法可返回某个指定的字符串值在字符串中首次出现的位置. stringObject.indexOf(searchvalue,fromindex) searchvalue 必需.规定需检索的字符串值. fromindex 可选的整数参数.规定在字符串中开始检索的位置.它的合法取值是 0 到 stringObject.length - 1.如省略该参数,则将从字符串的首字符开始检索. 该方法将从头到尾地检索字符串 stringObject,看它是否含有子串…
@EnableJpaRepositories注解用于Srping JPA的代码配置,用于取代xml形式的配置文件,@EnableJpaRepositories支持的配置形式丰富多用,本篇文章详细讲解. 1.简单配置 1 @EnableJpaRepositories("com.spr.repository") 简单配置支持多个package,格式如下: 1 @EnableJpaRepositories({"com.cshtong.sample.repository",…