ITeye博客

2011 年文章归档

共 3 篇文章

刷OTA遇到错误,找到如下3解决办法

注意事项: 1. 第一次刷MIUI ROM时请务必在 Recovery 中选择wipe 清除数据 2. 以后通过OTA升级或刷完整包无需wipe,不会影响用户手机中的数据 3. OTA时,如果遇到Recovery提示“assert failed:apply_patch_space”错误,请wipe cache 即可成功。(wipe cache不影响用户数据)

2011-05-21 10:58 · 其他

做数据批量导出遇到的一些问题

1、在使用oracle exp的时候带有query参数,需要注意对操作系统保留的字符进行转义。但是我不知道哪些是操作系统保留的。在写导出的过程中发现,linux好像保留字要比windows多很多。 在windows导出:query=\“where appdate=to_date('2011-05-11','yyyy-mm-dd')\" 在linux中这么写:query=\"where appdate=to_date\(|'2011-05-11\',\'yyyy-mm-dd\'\)\" 基本上所有字符都转义了,这样可以执行,但是这么写windows上就报ORA-00911 无效字符的错误。去掉…

2011-05-12 17:42 · 其他

hibernate的配置

hibernate目前已经支持JPA,因此可以使用原来hibernate方式配置,也可以使用JPA的方式配置。 一、使用hibernate方式。 1、 在 src 目录下建立 hibernate.cfg.xml,简略配置: <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC"-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0…

2011-03-14 11:06 · Java