摘要: 最近一新项目要用到国内行政区划数据,bing了一下,已有网友提供sql版本数据下载,但在本地查看数据不够新,至少我老家所在市2010年改名儿了这数据也看不到。所以说呢还是自己动手丰衣足食。然后就有了这篇文章## 一、从国家统计局网站找到最新行政区划代码see [中华人民共和国国家统计局>>行政区划代... 阅读全文
posted @ 2014-10-28 08:54 码尔代夫iimax 阅读(3063) 评论(1) 推荐(1) 编辑
摘要: ###Background项目里要求将一个HTML页面`(支付结果)`生成pdf文档。页面有图片,有表格,貌似开源的iTextSharp应付不了.在一番搜索之后,找到了[wkhtmltopdf](http://wkhtmltopdf.org/),一个命令行的开源转换工具,支持指定url或本地html... 阅读全文
posted @ 2014-09-18 13:21 码尔代夫iimax 阅读(3676) 评论(4) 推荐(1) 编辑
摘要: expdp导出工具可以实现在导出任务执行过程中修改并行度、终止、监控任务功能。做实验验证一下:[oracle@test dpdump]$ expdp system/password directory=DATA_PUMP_DIR dumpfile=alphaFull full=y job_name=alphaFullExport: Release 11.2.0.3.0 - Production on Fri Dec 20 17:03:30 2013Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserv. 阅读全文
posted @ 2013-12-20 17:29 码尔代夫iimax 阅读(3223) 评论(0) 推荐(0) 编辑
摘要: 之前在自己笔记本win7系统上安装了oracle 11g,当时为了节省资源,没启用EM。此时查看EM状态:C:\Windows\system32>emctl status dbconsoleEnvironment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.上述错误信息提示未设置ORACLE_UNQNAME变量,但实际上需要设置两个环境变量:ORACLE_HOSTNAME ORACLE_UNQNAME同时查询Windows服务以及 ORACLE_HOME/oc 阅读全文
posted @ 2013-12-17 11:23 码尔代夫iimax 阅读(21105) 评论(0) 推荐(0) 编辑
摘要: Step 1: Check for SSH keysFirst, we need to check for existing ssh keys on your computer. Open upGit Bashand run:cd ~/.sshls# Lists the files in your .ssh directoryCheck the directory listing to see if you have a file named eitherid_rsa.puborid_dsa.pub. If you don't have either of those files go 阅读全文
posted @ 2013-11-01 16:06 码尔代夫iimax 阅读(2336) 评论(0) 推荐(0) 编辑
摘要: 最近正在看老白的《DBA的思想天空》,了解数据块结构,想通过dump data block验证oracle对于行尾的NULL,是不占用存储空间的。我们先来看一下怎样dump数据块:1.在数据库级别dump数据库,oracle提供了命令支持ALTER SYSETM DUMP DATAFILE absolute_file_numberBLOCK block_number;ALTER SYSETM DUMP DATAFILE absolute_file_numberBLOCK MIN minimum_block_numberBLOCK MAX maximum_block_number;ALTER S 阅读全文
posted @ 2013-10-21 16:48 码尔代夫iimax 阅读(3787) 评论(0) 推荐(0) 编辑
摘要: 建表:create table sm_histable( sm_id number(10), sm_subid number(3), service_type varchar2(6), orgton number(3), orgnpi number(3), destton number(3), destnpi number(3), destaddr varchar2(21), pri number(3), pid number(3), srr number(3), dcs number(3), schedule va... 阅读全文
posted @ 2013-10-17 17:26 码尔代夫iimax 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 首先,参考官方文档:http://docs.oracle.com/cd/B28359_01/install.111/b32002/install_overview.htmIf you are not a ULN customer, and you are running Red Hat Enterprise Linux or Oracle Linux, then you can obtain the Oracle Validated RPM at the following URLs:Oracle Linux 4:http://oss.oracle.com/el4/oracle-validat 阅读全文
posted @ 2013-05-29 22:42 码尔代夫iimax 阅读(4324) 评论(0) 推荐(0) 编辑
摘要: 公车上看concept,有关oracle锁机制,跟MSSQL有些不同,抽空坐下实验验证一下oracle通过锁机制在事务间提供数据并发、一致性和完整性,这些操作自动执行,无需用户干预。情景模拟:多个用户并发修改数据表的某一行。这里实验一个B/S应用,多用户环境使用下列语句修改 HR.EMPLOYEES表UPDATE employeesSET email = ?, phone_number = ?WHERE employee_id = ?AND email = ?AND phone_number = ?这个语句确保在应用程序查询并显示给终端用户之后,正在修改的employee_... 阅读全文
posted @ 2013-05-27 16:36 码尔代夫iimax 阅读(1367) 评论(0) 推荐(0) 编辑
摘要: 从11g开始,oracle支持跨平台传输表空间。查看支持平台列表,如果源库和目标库的endian format不一致,需要convertSQL> col platform_name for a32;SQL> select * from v$transportable_platform;PLATFORM_ID PLATFORM_NAME ENDIAN_FORMAT----------- -------------------------------- ---------------------------- 1 Solaris[tm] OE... 阅读全文
posted @ 2013-05-24 15:19 码尔代夫iimax 阅读(2248) 评论(0) 推荐(0) 编辑