2018年5月24日

What to do when Enterprise Manager is not able to connect to the database instance (ORA-28001)

摘要: 摘自:http://dbtricks.com/?p=34 If you are trying to connect to the Oracle enterprise Manger and you get the following errors: Enterprise Manager is not 阅读全文

posted @ 2018-05-24 22:07 deodara 阅读(143) 评论(0) 推荐(0) 编辑

2018年5月16日

oracle集群部署相关文章

摘要: 1. Oracle数据库HA架构方案介绍:http://blog.sina.com.cn/s/blog_7273b6cc0100p0sr.html 2. Oracle 集群概念和原理 阅读全文

posted @ 2018-05-16 23:21 deodara 阅读(83) 评论(0) 推荐(0) 编辑

转载: keepalived工作原理和配置说明

摘要: 转自:http://outofmemory.cn/wiki/keepalived-configuration keepalived是什么 keepalived是集群管理中保证集群高可用的一个服务软件,其功能类似于heartbeat,用来防止单点故障。 keepalived工作原理 keepalive 阅读全文

posted @ 2018-05-16 10:45 deodara 阅读(197) 评论(0) 推荐(0) 编辑

2018年4月19日

RedHatEnterpriseLinuxServerRelease7.3上配置vsftpd服务器

摘要: 0.vsftpd与ftp安装 1.vsftpd 服务启停相关命令 2.配置文件/etc/vsftpd/vsftpd.conf相关配置选项 a.如果allow_writeable_chroot为NO,ftp登录时出现以下错误。 3. sestatus -b|grep ftp查看SELinux相关boo 阅读全文

posted @ 2018-04-19 15:00 deodara 阅读(360) 评论(0) 推荐(0) 编辑

2018年4月12日

使用模板方法模式+私有内部类+匿名类解决各个方法间代码结构类似的问题。

摘要: package org.hibernate.dao; import org.hibernate.*; import org.hibernate.entity.*; //使用模板方法模式+私有内部类+匿名类解决各个方法间代码结构类似的问题。 public class UserDAOImpl implements UserDAO { private abstract class UserDAOT... 阅读全文

posted @ 2018-04-12 20:44 deodara 阅读(139) 评论(0) 推荐(0) 编辑

单例模式的实现——延迟初始化占位类替代双重检验加锁以达到延迟初始化和线程安全的目的。

摘要: package org.test; public class Singleton { public static void main(String[] args) { // TODO Auto-generated method stub Singleton singleton=Singleton.getInstance(); System.out.println(singleto... 阅读全文

posted @ 2018-04-12 20:41 deodara 阅读(269) 评论(0) 推荐(0) 编辑

2018年1月19日

Linux c readdir是非线程安全,需用readdir_r,要注意用静态变量当做返回值的函数的非线程安全性

摘要: readdir函数: struct dirent *readdir(DIR *dirp); The data returned by readdir() may be overwritten by subsequent calls to readdir() for the same director 阅读全文

posted @ 2018-01-19 09:35 deodara 阅读(667) 评论(0) 推荐(0) 编辑

2018年1月5日

编码规范

摘要: 1. 确保使用的函数和数据结构在特定情境下的安全,不一定要确保在所有情境下的安全,但一定要保证所在使用的情景下的安全。比如snprintf与sprintf, strncpy与strcpy等。 阅读全文

posted @ 2018-01-05 10:39 deodara 阅读(138) 评论(0) 推荐(0) 编辑

2017年12月21日

C语言关闭日志文件时忘了将日志文件全局变量指针置为NULL

摘要: C语言写了一个write_log函数以写日志,写了一个close_log_file函数以关闭日志,声明了一个日志文件全局变量文件指针plogFile。 write_log中首先判断plogFile是否为NULL,如果不为NULL,则直接引用plogFile写日志信息; 如果为NULL,则打开以当天日 阅读全文

posted @ 2017-12-21 11:25 deodara 阅读(410) 评论(0) 推荐(0) 编辑

2017年12月11日

一个删除大表的存储过程

摘要: create or replace procedure prc_delete_table is -- 指定表名和条件 CURSOR cur IS SELECT ROWID FROM data_cache_report_stat s WHERE s.month<'10' ORDER BY ROWID; TYPE rowid_table_type IS TABLE OF ROWID IND... 阅读全文

posted @ 2017-12-11 09:52 deodara 阅读(180) 评论(0) 推荐(0) 编辑

导航