- Oracle 统计信息的备份恢复机制
DBhanG
oracle数据库
统计信息的备份恢复机制:今天说一下统计信息的备份恢复机制.从Oracle10g开始,当收集统计信息的时候,旧的统计信息会被保留,如果因为新的统计信息而出现性能问题,旧的统计信息旧可以被恢复。Oracle的历史统计信息保存在以下几张表中:WRI$_OPTSTAT_TAB_HISTORY表的统计信息WRI$_OPTSTAT_IND_HISTORY索引的统计信息WRI$_OPTSTAT_HISTHEAD
- ORA-12516 TNS 监听程序找不到符合协议堆栈要求的可用处理程
吴世豪芳芳
author:skatetime:2009/03/10ORA-12516:TNS:监听程序找不到符合协议堆栈要求的可用处理程今天测试的同事发现报ora-12516的错误,基于这个分析,一般有两个原因,一个是session数不够再有一个就是客户端和服务端建立连接的时候不稳定所引起的,我现在的服务端是oracle10gr2,而客户端是oracle11i,结果当连接数大的时候,就会报ora-12516的
- oracle闪回ddl,Oracle闪回功能----——恢复偶然丢失的数据
13561195777
oracle闪回ddl
2005-07-0408:20作者:刘大勇出处:计算机与信息技术责任编辑:方舟摘要:本文提出了闪回功能的原理,描述了利用Oracle9i或Oracle10g的闪回功能进行恢复偶然丢失数据的方法。关键词:Oracle;闪回;回滚段;数据恢复引言人为的错误是数据库系统失败的重要原因之一,根据调查约40%的系统问题是操作失误或者用户错误引起的,这些人为的错误又特别难以避免。传统上当发生数据丢失、数据错误
- oracle10g客户端能访问12c,彪悍的Oracle 12C,飞一般的性能提升—–Oracle 10G 11g 12c性能指标测试实践...
weixin_39632891
说明Oracle12.2.0.1于2017年3月提供下载,star童鞋有个疑问,Oracle12c到底有多牛x,和我们大部分客户正在运行的10G、11G对比性能指标有多大提升???测试结果部分测试过程10.2.0.5SQL*Plus:Release10.2.0.5.0-ProductiononFriMar1722:03:112017Copyright(c)1982,2010,Oracle.AllR
- oracle rman 备份
zhenghuaiyue
在windows2003系统中装了oracle10G数据库,同时建了多个实例,这个备份应该怎么做呢?在网上查了N多的资料,终于了解了一些:冷备:把数据库已执行关闭后,对数据库做全备;需要停机,一般不采用热备:数据库处于归档模式,设计好详细可行的备份策略,热备不需要关闭数据库,生产环境都采用这种方式exp只是对数据库做逻辑备份,不是很可靠,一般只作为备份的辅助手段;RMAN功能非常强大,生产都是用这
- centos7安装oracle10g的安装窗口太小解决办法
Bingorl
Oracle数据库oracle
通过执行安装脚本时添加设置参数来跳过第一个显示异常的窗口./runInstaller-ignoreSysprereqs
- mysql distributed transaciton_Distributed Transaction Processing:mysql
碧霄丶
mysqldistributedtransaciton
DistributedTransactionProcessing:TheXASpecificationmysqlXATransactionsoracle10gmysqlxa例子X/OpenXAdistributedtransactionsSHOWENGINES/G查看是否支持innodbusetest;CREATETABLEaa(aINT,bCHAR(20),INDEX(a))ENGINE=Inn
- ORACLE10G非归档模式下RMAN异机迁库
牧尘c
环境信息:源库目标库操作系统WIN7WINSVR2012R2IPx.x.x.216x.x.x.112数据库版本10.2.0.4.0-64bi10.2.0.4.0-64bi存储方式单实例单实例ORACLE_HOMED:\oracle\product\10.2.0\db_1D:\oracle\product\10.2.0\db_1ORACLE_SIDORCLORCLRMAN恢复思路步骤:初始化数据库,
- oracle10g rac节点启动没进程没日志
烟雨归来
oracleoracle
一节点正常运行,二节点通过crsctlstartcrs启动,发现alert日志及所有日志都没生成,oracle用户下连一个相关进程都没有清理缓存:rm-rf/tmp/.oracle/服务挨个启动也无效:/etc/init.evmdrun>/dev/null2>&1&/etc/init.cssdfatal>/dev/null2>&1&/etc/init.crsdrun>/dev/null2>&1&检
- Day6-xiaode
1c9f38e0bb6b
文件操作常用命令--文件复制命令cp目录(文件夹)复制:cp-Rscripts//home/zxx2/复制当前文件夹scripts及文件夹中的内容到/home/zxx2/目录下[root@oracle10gzxx1]#cd/home/zxx2/[root@oracle10gzxx2]#lsscripts[root@oracle10gzxx2]#cp-R/home/zxx1/scripts//hom
- oracle中一个会话,一个Oracle会话严重阻塞的案例
贲禹强
oracle中一个会话
环境:osrhel5.3dbms三节点Oracle10gracver10.2.0.4现象:某些工作站死机或网络异常后,特定的收费人员在ZLHIS中收费时,点击确定后,程序无响应.将会话kill后,重新登录ZLHIS,再次收费现象依旧.无论普通病人,还是医保病人都是同样现象.1-2小时后,ZLHIS自动恢复正常.分析与解决过程:1.分析会话的状态:通过查询找出会话的等待事件:SQL>selectev
- mysql 加密 tde_数据加密 - TDE透明数据加密原理
弓长帅
mysql加密tde
首先需要确定你需要加密的列,Oracle10g数据库将为包含加密列的表创建一个私密的安全加密密钥(表秘钥),然后采用你指定的加密算法(AES或3DES)加密指定列的明文数据。此时,保护表的加密密钥(表密钥)就非常重要了。Oracle10g通过一个master密钥来对表密钥进行加密。master密钥保存在一个叫做“钱夹(wallet)”的安全的地方,钱夹可以是数据库服务器上的一个文件,加密的表密钥保
- 小麦苗数据库巡检脚本,支持Oracle、MySQL、SQL Server和PG等数据库
小麦苗DB宝
[toc]一、巡检脚本简介image目前一共包含8个脚本,若脚本的扩展名为“.sql”则表示该脚本为sql脚本,若脚本的扩展名为“.pl”则表示该脚本为perl脚本。对于Oracle的SQL脚本而言,脚本DB_Oracle_HC_lhr_v7.0.0_10g.sql适用于Oracle10g数据库,脚本DB_Oracle_HC_lhr_v7.0.0_11g.sql适用于Oracle11g的数据库,脚
- 静默安装oracle rac,把握Oracle RAC静默安装过程(一)
weixin_39984098
静默安装oraclerac
1.完成RAC安装前的准备工作1.1同正常安装OracleRAC的安装前配置。主要包括以下几个部分:(1)软硬件环境检查(2)网络配置(3)相关用户和目录的创建(4)用户环境及系统环境设置(5)配置远程访问(6)配置存储详细步骤请参考Oracle10gR2RealApplicationClusterInstallationGuide。2.静默安装CRS2.1使用OUI录制响应文件,记录安装过程执行
- oracle静默创建rac,Oracle RAC 静默安装实践
weixin_39831242
oracle静默创建rac
安装1.完成RAC安装前的准备工作1.1同正常安装OracleRAC的安装前配置。主要包括以下几个部分:(1)软硬件环境检查(2)网络配置(3)相关用户和目录的创建(4)用户环境及系统环境设置(5)配置远程访问(6)配置存储详细步骤请参考Oracle10gR2RealApplicationClusterInstallationGuide。2.静默安装CRS2.1使用OUI录制响应文件,记录安装过程
- oracle静默创建rac,把握Oracle RAC静默安装过程
逸言为定
oracle静默创建rac
1.完成RAC安装前的准备工作1.1同正常安装OracleRAC的安装前配置。主要包括以下几个部分:(1)软硬件环境检查(2)网络配置(3)相关用户和目录的创建(4)用户环境及系统环境设置(5)配置远程访问(6)配置存储详细步骤请参考Oracle10gR2RealApplicationClusterInstallationGuide。2、静默安装CRS2.1使用OUI录制响应文件,记录安装过程执行
- redhat linux as 4.7 安装 oracle 10g(三)--静默安装
congliao9058
redhatlinuxas4.7安装oracle10g(三)--静默安装静默安装的主要的好处是,1、安装完全在命令行下进行,2、如果管理多个数据库,静默安装可以帮你执行同一的安装过程,极大地帮助你提高管理数据库的效率静默安装Oracle数据库10g软件:1.使用OUI录制响应文件,记录安装过程执行以下命令,然后在OUI中根据提示执行安装数据库软件的操作$./runInstaller-record-
- 实战:windows 2012R2安装11G RAC最佳实践(生产使用)
徐sir(徐慧阳)
数据库记录oraclewindows
最近接手项目客户需要在WINDOWS上安装ORACLERAC。客户之前的HIS系统使用WINDOWS200332位系统,ORACLE10G32位软件,ROSE双机。由于新的服务器硬件最低支持操作系统版本为WINDOWS2012R2,所以对应的ORACLE版本也要升级最低为11.2.0.4,经过与软件沟通,该HIS系统可以支持11.2.0.4版本的数据库(软件版本是有点老--!好在没说不支持,哈哈)
- 关于ORA-12154: TNS:could not resolve the connect identifier specified的问题
虎眼豆丁
数据库pythonc/c++
今天更新我的ORACLE到10g。使用PLSQL时遇到ORA-12154:TNS:couldnotresolvetheconnectidentifierspecified的问题。网上搜了好多也没有找到自己的具体解决办法。环境:WIN7旗舰版ORACLE:oracle10gwin7专版(网上下载的修改版)环境变化PATH:D:\oracle\product\10.2.0\binPLSQL:plsql
- java servlet 学生管理系统myeclipse开发oracle数据库BS模式java编程网
qq_251836457
java数据库servlet
一、源码特点javaservlet学生管理系统是一套完善的web设计系统,对理解JSPjava编程开发语言有帮助servlet+bean+dao(mvc模式开发),系统具有完整的源代码和数据库,开发环境为TOMCAT7.0,Myeclipse8.5开发,数据库为Oracle10g,使用java语言开发系统主要采用B/S模式开发。javaoracle学生管理系统二、功能介绍(1)学生管理:对学生信息
- 新特性解读 | 备份锁
爱可生开源社区
作者:姚远专注于Oracle、MySQL数据库多年,Oracle10G和12COCM,MySQL5.6,5.7,8.0OCP。现在鼎甲科技任顾问,为同事和客户提高数据库培训和技术支持服务。本文来源:原创投稿*爱可生开源社区出品,原创内容未经授权不得随意使用,转载请联系小编并注明来源。MySQL8.x中新增了一个轻量级的备份锁,它允许在online备份的时候进行DML操作,同时可防止快照不一致。这个
- Linux系统安装Oracle11g数据库
慕容天成
linux数据库phporacle
1.检查安装所需要的要求(略)关闭防火墙和selinuxsendmailchkconfigiptablesoffchkconfigip6tablesoffvi/etc/selinux/config修改为selinux=disabledreboot系统/ect/hosts解析IPip名字主机名cd/etc/sysconfigvinetworkHOSTNAME=oracle10g重启系统,为了识别主机
- oracle long与varchar,Oracle Varchar2 LONG 长度?
吴乎
oraclelong与varchar
突然在写程序的时候发现了个小问题,环境为Oracle10g,工具PL\SQLDEVELOPER7.1.5,写一个存储过程例如:有一个变量V_IINVARCHAR2(4000);下面我求出传入的字符串的长度CREATEORREPLACEPROCEDURETEST_LENGTH(V_Ivarchar2--传入参数)ISV_I_STRvarchar2(4000);--传入参数v_rnumber(8);-
- ORA-00600: internal error code, arguments: [LibraryCacheNotEmptyOnClose], [], [], [], [], [], [], []
执笔画情ora
ORACLE数据库故障处理分析
搜索了一下metalink,发现这个是ORACLE10g/11g特别版本中的一个bug来的,原因是当数据库关闭后,仍然有对象在库缓存中。这并不表示系统中有任何损坏或有问题。可以忽略或打补丁升级。这个bug在10.2.0.5,11.2.0.1中被修复了。CAUSEThismaybeduetounpublishedBug4483084-ORA-600[LIBRARYCACHENOTEMPTYONCLO
- oracle impdp 覆盖导入 table_exists_action关键字使用
dianzhuique8587
数据库
oracle10g之后impdp的table_exists_action参数table_exists_action选项:{skip是如果已存在表,则跳过并处理下一个对象;append是为表增加数据;truncate是截断表,然后为其增加新数据;replace是删除已存在表,重新建表并追加数据}例:impdpuser/passworddirectory=dpdirdumpfile=xxx.dmpta
- C# 连接ORACLE数据库,执行查询提示“算术运算导致溢出。”
星火191314
数据库c#oracle算术运算导致溢出
同事问了一个问题,访问oracle数据库,执行查询语句,提示”System.OverflowException:算术运算导致溢出。“环境:c#+ORACLE10gclient操作中他同时执行了多条sql语句,第一条语句查询的是基础信息,可以执行通过,从第二条开始都是统计运算的结果,执行报错。异常详细信息如下:System.OverflowException:算术运算导致溢出。在Oracle.Dat
- oracle补丁术语
johnyiyang
名称说明ReleaseRelease版本的前2个字段指定(小数点分隔的字段)如ORACLE10gR110gR2,11gR111gR2,12cR112cR2…Base/MajorRelease版本的前4个字段,如11.2.0.1,可以在OTN、edelivery等站点上公开下载,PatchSetRelease就是早期大家常说的PSR。这是在主版本号上发布的补丁集,版本的第4个字段指定,如11.2.0
- 利用 Oracle 10g 技能学习 DB2 9.1 for Linux, UNIX and Windows
wonder4
Oracle技术db2oracleunixlinux数据库database
利用Oracle10g技能学习DB29.1forLinux,UNIXandWindows文档选项将此页作为电子邮件发送拓展Tomcat应用下载IBM开源J2EE应用服务器WASCE新版本V1.1级别:初级SuitaGupta(
[email protected]),技术顾问,IBMMalaysiaAllanTham(
[email protected]),售前服务专家,ASEANTechline,I
- oracle存储过程俩表查询,Oracle用存储过程查询多张表的方法
吕思慧
oracle存储过程俩表查询
前用企业库读SQLServer返回数据集没任何问题,可以返回1个也可以返回多个,读Oracle的时候返回一个数据集的时候也没问题,可是最近在用Oracle返回多个数据集的时候却出了问题,几经辗转,终于找到了解决方案,记下来!一定要记下来!千万不可忘记!!!!!!!以下代码在vss2005+oracle10g下测试通过。要使用企业库,肯定先引用喽:cs文件添加三个引用:CodeusingMicros
- 调用Oracle存储过程返回(1个或多个)数据集
皮特大熊
Oracle/MySQLoracle存储oracle10gsqlserver数据库vss
以前用企业库读SQLServer返回数据集没任何问题,可以返回1个也可以返回多个,读Oracle的时候返回一个数据集的时候也没问题,可是最近在用Oracle返回多个数据集的时候却出了问题,几经辗转,终于找到了解决方案,记下来!一定要记下来!千万不可忘记!以下代码在vss2005+oracle10g下测试通过。要使用企业库,肯定先引用喽:cs文件添加三个引用:CodeusingMicrosoft.P
- C/C++Win32编程基础详解视频下载
择善Zach
编程C++Win32
课题视频:C/C++Win32编程基础详解
视频知识:win32窗口的创建
windows事件机制
主讲:择善Uncle老师
学习交流群:386620625
验证码:625
--
- Guava Cache使用笔记
bylijinnan
javaguavacache
1.Guava Cache的get/getIfPresent方法当参数为null时会抛空指针异常
我刚开始使用时还以为Guava Cache跟HashMap一样,get(null)返回null。
实际上Guava整体设计思想就是拒绝null的,很多地方都会执行com.google.common.base.Preconditions.checkNotNull的检查。
2.Guava
- 解决ora-01652无法通过128(在temp表空间中)
0624chenhong
oracle
解决ora-01652无法通过128(在temp表空间中)扩展temp段的过程
一个sql语句后,大约花了10分钟,好不容易有一个结果,但是报了一个ora-01652错误,查阅了oracle的错误代码说明:意思是指temp表空间无法自动扩展temp段。这种问题一般有两种原因:一是临时表空间空间太小,二是不能自动扩展。
分析过程:
既然是temp表空间有问题,那当
- Struct在jsp标签
不懂事的小屁孩
struct
非UI标签介绍:
控制类标签:
1:程序流程控制标签 if elseif else
<s:if test="isUsed">
<span class="label label-success">True</span>
</
- 按对象属性排序
换个号韩国红果果
JavaScript对象排序
利用JavaScript进行对象排序,根据用户的年龄排序展示
<script>
var bob={
name;bob,
age:30
}
var peter={
name;peter,
age:30
}
var amy={
name;amy,
age:24
}
var mike={
name;mike,
age:29
}
var john={
- 大数据分析让个性化的客户体验不再遥远
蓝儿唯美
数据分析
顾客通过多种渠道制造大量数据,企业则热衷于利用这些信息来实现更为个性化的体验。
分析公司Gartner表示,高级分析会成为客户服务的关键,但是大数据分析的采用目前仅局限于不到一成的企业。 挑战在于企业还在努力适应结构化数据,疲于根据自身的客户关系管理(CRM)系统部署有效的分析框架,以及集成不同的内外部信息源。
然而,面对顾客通过数字技术参与而产生的快速变化的信息,企业需要及时作出反应。要想实
- java笔记4
a-john
java
操作符
1,使用java操作符
操作符接受一个或多个参数,并生成一个新值。参数的形式与普通的方法调用不用,但是效果是相同的。加号和一元的正号(+)、减号和一元的负号(-)、乘号(*)、除号(/)以及赋值号(=)的用法与其他编程语言类似。
操作符作用于操作数,生成一个新值。另外,有些操作符可能会改变操作数自身的
- 从裸机编程到嵌入式Linux编程思想的转变------分而治之:驱动和应用程序
aijuans
嵌入式学习
笔者学习嵌入式Linux也有一段时间了,很奇怪的是很多书讲驱动编程方面的知识,也有很多书将ARM9方面的知识,但是从以前51形式的(对寄存器直接操作,初始化芯片的功能模块)编程方法,和思维模式,变换为基于Linux操作系统编程,讲这个思想转变的书几乎没有,让初学者走了很多弯路,撞了很多难墙。
笔者因此写上自己的学习心得,希望能给和我一样转变
- 在springmvc中解决FastJson循环引用的问题
asialee
循环引用fastjson
我们先来看一个例子:
package com.elong.bms;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
import co
- ArrayAdapter和SimpleAdapter技术总结
百合不是茶
androidSimpleAdapterArrayAdapter高级组件基础
ArrayAdapter比较简单,但它只能用于显示文字。而SimpleAdapter则有很强的扩展性,可以自定义出各种效果
ArrayAdapter;的数据可以是数组或者是队列
// 获得下拉框对象
AutoCompleteTextView textview = (AutoCompleteTextView) this
- 九封信
bijian1013
人生励志
有时候,莫名的心情不好,不想和任何人说话,只想一个人静静的发呆。有时候,想一个人躲起来脆弱,不愿别人看到自己的伤口。有时候,走过熟悉的街角,看到熟悉的背影,突然想起一个人的脸。有时候,发现自己一夜之间就长大了。 2014,写给人
- Linux下安装MySQL Web 管理工具phpMyAdmin
sunjing
PHPInstallphpMyAdmin
PHP http://php.net/
phpMyAdmin http://www.phpmyadmin.net
Error compiling PHP on CentOS x64
一、安装Apache
请参阅http://billben.iteye.com/admin/blogs/1985244
二、安装依赖包
sudo yum install gd
- 分布式系统理论
bit1129
分布式
FLP
One famous theory in distributed computing, known as FLP after the authors Fischer, Lynch, and Patterson, proved that in a distributed system with asynchronous communication and process crashes,
- ssh2整合(spring+struts2+hibernate)-附源码
白糖_
eclipsespringHibernatemysql项目管理
最近抽空又整理了一套ssh2框架,主要使用的技术如下:
spring做容器,管理了三层(dao,service,actioin)的对象
struts2实现与页面交互(MVC),自己做了一个异常拦截器,能拦截Action层抛出的异常
hibernate与数据库交互
BoneCp数据库连接池,据说比其它数据库连接池快20倍,仅仅是据说
MySql数据库
项目用eclipse
- treetable bug记录
braveCS
table
// 插入子节点删除再插入时不能正常显示。修改:
//不知改后有没有错,先做个备忘
Tree.prototype.removeNode = function(node) {
// Recursively remove all descendants of +node+
this.unloadBranch(node);
// Remove
- 编程之美-电话号码对应英语单词
bylijinnan
java算法编程之美
import java.util.Arrays;
public class NumberToWord {
/**
* 编程之美 电话号码对应英语单词
* 题目:
* 手机上的拨号盘,每个数字都对应一些字母,比如2对应ABC,3对应DEF.........,8对应TUV,9对应WXYZ,
* 要求对一段数字,输出其代表的所有可能的字母组合
- jquery ajax读书笔记
chengxuyuancsdn
jQuery ajax
1、jsp页面
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()
- JWFD工作流拓扑结构解析伪码描述算法
comsci
数据结构算法工作活动J#
对工作流拓扑结构解析感兴趣的朋友可以下载附件,或者下载JWFD的全部代码进行分析
/* 流程图拓扑结构解析伪码描述算法
public java.util.ArrayList DFS(String graphid, String stepid, int j)
- oracle I/O 从属进程
daizj
oracle
I/O 从属进程
I/O从属进程用于为不支持异步I/O的系统或设备模拟异步I/O.例如,磁带设备(相当慢)就不支持异步I/O.通过使用I/O 从属进程,可以让磁带机模仿通常只为磁盘驱动器提供的功能。就好像支持真正的异步I/O 一样,写设备的进程(调用者)会收集大量数据,并交由写入器写出。数据成功地写出时,写入器(此时写入器是I/O 从属进程,而不是操作系统)会通知原来的调用者,调用者则会
- 高级排序:希尔排序
dieslrae
希尔排序
public void shellSort(int[] array){
int limit = 1;
int temp;
int index;
while(limit <= array.length/3){
limit = limit * 3 + 1;
- 初二下学期难记忆单词
dcj3sjt126com
englishword
kitchen 厨房
cupboard 厨柜
salt 盐
sugar 糖
oil 油
fork 叉;餐叉
spoon 匙;调羹
chopsticks 筷子
cabbage 卷心菜;洋白菜
soup 汤
Italian 意大利的
Indian 印度的
workplace 工作场所
even 甚至;更
Italy 意大利
laugh 笑
m
- Go语言使用MySQL数据库进行增删改查
dcj3sjt126com
mysql
目前Internet上流行的网站构架方式是LAMP,其中的M即MySQL, 作为数据库,MySQL以免费、开源、使用方便为优势成为了很多Web开发的后端数据库存储引擎。MySQL驱动Go中支持MySQL的驱动目前比较多,有如下几种,有些是支持database/sql标准,而有些是采用了自己的实现接口,常用的有如下几种:
http://code.google.c...o-mysql-dri
- git命令
shuizhaosi888
git
---------------设置全局用户名:
git config --global user.name "HanShuliang" //设置用户名
git config --global user.email "
[email protected]" //设置邮箱
---------------查看环境配置
git config --li
- qemu-kvm 网络 nat模式 (四)
haoningabc
kvmqemu
qemu-ifup-NAT
#!/bin/bash
BRIDGE=virbr0
NETWORK=192.168.122.0
GATEWAY=192.168.122.1
NETMASK=255.255.255.0
DHCPRANGE=192.168.122.2,192.168.122.254
TFTPROOT=
BOOTP=
function check_bridge()
- 不要让未来的你,讨厌现在的自己
jingjing0907
生活 奋斗 工作 梦想
故事one
23岁,他大学毕业,放弃了父母安排的稳定工作,独闯京城,在家小公司混个小职位,工作还算顺手,月薪三千,混了混,混走了一年的光阴。 24岁,有了女朋友,从二环12人的集体宿舍搬到香山民居,一间平房,二人世界,爱爱爱。偶然约三朋四友,打扑克搓麻将,日子快乐似神仙; 25岁,出了几次差,调了两次岗,薪水涨了不过百,生猛狂飙的物价让现实血淋淋,无力为心爱银儿购件大牌
- 枚举类型详解
一路欢笑一路走
enum枚举详解enumsetenumMap
枚举类型详解
一.Enum详解
1.1枚举类型的介绍
JDK1.5加入了一个全新的类型的”类”—枚举类型,为此JDK1.5引入了一个新的关键字enum,我们可以这样定义一个枚举类型。
Demo:一个最简单的枚举类
public enum ColorType {
RED
- 第11章 动画效果(上)
onestopweb
动画
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
- Eclipse中jsp、js文件编辑时,卡死现象解决汇总
ljf_home
eclipsejsp卡死js卡死
使用Eclipse编辑jsp、js文件时,经常出现卡死现象,在网上百度了N次,经过N次优化调整后,卡死现象逐步好转,具体那个方法起到作用,不太好讲。将所有用过的方法罗列如下:
1、取消验证
windows–>perferences–>validation
把 除了manual 下面的全部点掉,build下只留 classpath dependency Valida
- MySQL编程中的6个重要的实用技巧
tomcat_oracle
mysql
每一行命令都是用分号(;)作为结束
对于MySQL,第一件你必须牢记的是它的每一行命令都是用分号(;)作为结束的,但当一行MySQL被插入在PHP代码中时,最好把后面的分号省略掉,例如:
mysql_query("INSERT INTO tablename(first_name,last_name)VALUES('$first_name',$last_name')");
- zoj 3820 Building Fire Stations(二分+bfs)
阿尔萨斯
Build
题目链接:zoj 3820 Building Fire Stations
题目大意:给定一棵树,选取两个建立加油站,问说所有点距离加油站距离的最大值的最小值是多少,并且任意输出一种建立加油站的方式。
解题思路:二分距离判断,判断函数的复杂度是o(n),这样的复杂度应该是o(nlogn),即使常数系数偏大,但是居然跑了4.5s,也是醉了。 判断函数里面做了3次bfs,但是每次bfs节点最多