跳至主要内容

博文

Oracle ADF Mobile学习笔记 0:先给自己下套

从ADF Mobile发布第一版时就想写一个入门的课程,期间由于杂事繁多,就把这个计划搁置了。端午节假期刚好没外出,宅在家里把半年来欠下的债一个个的还,帮朋友写完一个跳票N久的程序后,想着ADF Mobile也出了第二版,加上官方都出了完善的视频向导,再写向导好象有画蛇添足之嫌。不过本着还自己心愿的态度,就算拾人牙慧,做Oracle官网的搬运工也要把简单的教程写出来。 计划写5篇的向导文章,大纲分列如下: 1. ADF Mobile开发环境的安装及配置; 2. 第一个ADF Mobile程序; 3.ADF Mobile微博客户端的实现(主要演示如何用ADF Mobile调用开放平台的接口,还没决定是用新浪微博还是腾讯微博); 4.WebCenter Content的ADF Mobile客户端实现; 5.WebCenter Portal的ADF Mobile客户端实现; 先挖个坑,给自己下套,希望能有时间把这一系列文章写完。

Installing RHEL EPEL Repo on Centos 5.x or 6.x

习惯了用yum来安装东西,试了下这篇文章提到的做法workable,再做一次搬运工。 原文出处: http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x Authored by: Rackspace Support How to install RHEL EPEL repository on Centos 5.x or 6.x The following article will describe how to configure a CentOS 5.x-based or Centos 6.x-based system to use Fedora Epel repos and third party remi package repos. These package repositories are not officially supported by CentOS, but they provide much more current versions of popular applications like PHP or MYSQL. Install the extra repositories The first step requires downloading some RPM files that contain the additional YUM repository definitions. The instructions below point to the 64-bit versions that work with our Cloud Server instances. Centos 5.x wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm sudo rpm -Uvh remi-release-5*.rpm epel...

How to Convert a VMware Pre-allocated Virtual Disk to a Growable Virtual Disk

受不了动辄几百G的虚机,记给自己看,只是在网络上搬运,来源在这里: http://www.virtuatopia.com/index.php/How_to_Convert_a_VMware_Pre-allocated_Virtual_Disk_to_a_Growable_Virtual_Disk 。 he vmware-vdiskmanager tool The VMware Disk Management Tool is a command line tool which is installed by default with VMware Server. The executable file is named   vmware-vdiskmanager   and is located in   \Program Files\VMware\VMware Server   on Windows hosts, and   /usr/bin   on Linux systems. The tool accepts a number of command-line arguments, a full listing of which can be obtained by running vmware-vdiskmanager with no options. vmware-vdiskmanager Virtual Disk Types The type to which a virtual disk is to be converted is specified using the -t flag, together with the target disk type. This is represented by a number as outlined in the following table: Type Identifier Description 0 Growable (single .vmdk file) 1 Growable (multiple 2GB files) 2 Pre-allocated (single file) 3 Pre...

使用WebCenter Content不可不知的索引碎片整理

很多用户在使用Oracle WebCenter Content一段时间后,会发现系统生成索引的速度越来越慢,影响到用户的使用体验。当使用OracleTextSearch或FullText索引方式的时候,就象我们使用电脑时不时要进行磁盘碎片整理一样,需要定时进行索引的碰片整理。  在默认情况下,当WebCenter Content每索引5000个文档会自动进行全文索引优化,但在实际使用过程中,往往需要我们在使用过程中人工进行干预。 下面是我们公司实际生产环境中的WebCenter Content,长时间没有进行索引整理,从下图可以看到有超过75%的索引碎片。 进行碎片整理优化后,索引文件大小降低,碎片降低到零。 begin  ctx_ddl.optimize_index('FT_IDCTEXT1','FULL', parallel_degree =>'1');  end;   注意:当动活动的索引不同索引名称有可能不同,具体请参考WebCenter Content在线文档。 当然,我们也可以设置数据库的调度程序作业来定时进行索引优化,打开SQL Developer,以SYS用户连接数据库,运行脚本以创建调度作业。 WebCenter Content安装实施后,只有进行持续的优化才能保证以最佳的性能运行。上海同富能为您提供包括Weblogic\WebCenter Conter\WebCenter Portal的整体优化方案。  

Linux增加swap空间

为了测试Oracle的虚拟化解决方案,随便装了一台新的Linux虚拟,安装时报swap空间不够,通过以下步骤增加swap空间: 修改/etc/fstab文件,增加如下一行: / opt / swap              swap                    swap    defaults         0   0 使系统重启后swap设置生效。

Install JDeveloper 11g on Mac OS 10.7

让W510折腾得每天老是肩膀疼,而且觉得总不能老是把Mac Air当成在StarBucks装13工具,总得把它用起来吧。周末开始在Mac上折腾开发环境,Eclipse解压后就能运行,但是装JDeveloper还是费点劲才弄好。。 1. 首先确认JDK已正确安装,在终端窗口运行" java -version ",如果没有安装可按系统向导步骤进行安装; 2.确认Java 1.6是默认的JDK,打开实用工具--->Java 偏好设置,Java SE 6 64位应该在第一位,如果否调整64位JDK至第一位。 3.创建Symbol Link cd /SystemLibrary/Frameworks/JavaVM.framework/Versions/1.6.0/Home/ sudo mkdir jre cd jre sudo mkdir lib cd lib sudo ln -s ../../../Classes/classes.jar rt.jar 3. 现在在终端窗口运行Java -version,提示信息类似如下: java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_31-b01-415, mixed mode) 4.到OTN网站http://www.oracle.com/technetwork/developer-tools/jdev/downloads/index.html 下载JDeveloper 11g 11.1. 1.6.0的通用版本jdevstudio11116install.jar。 5. 运行jdevstudio11116install.jar,安装程序正确找到本地JDK,下一步下一步即可完成安装。  更详尽的信息可以在https://blogs.oracle.com/shay/entry/installing_jdeveloper_on_mac_os 找到, thanks Shay。

Rollup WebCenter Site(Fatwire) to 7.6

有个客户很羡慕传说中WebCenter Site的功能,准备在一项目在使用这产品。为了能评估工作量加上不被各色人等忽悠,只能自己装一次评估。在eDelivery上下载了安装程序,真坑爹,一点都不象以前O记的产品,居然安装说明的文档都没有。在Weblogic上安装,以手工部署的方式很顺利就完成了应用的安装,但在升级到7.6时就卡住了,测试时出现以下错误: HelloCS has failed. Ping DB has failed. DB Permissions has failed.  在服务器启动时报Caused By: java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory  的错。折腾了老半天,鬼就出在slf4j-api-1.5.8.jar和slf4j-jdk14-1.5.8.jar两个文件上,干掉后继续安装成功。 两天的试用,觉得O记要完全实现Fatwire与Webcenter Content整合明显需要一段时间。拿这玩意来做外网应用的还是值得探讨的。 比较赞同这篇文章上的话: http://shishank.info/pcm/wordpress/2011/11/10/oracle-web-centre-fatwire-is-it-an-old-generation-cms/ Not so good Some of the basic changes within the implementation requires quite a lot of work. A good example is vanity URLs. Most of the clients now a days have this basic requirement especially around blobs but there is none out of the box URL assembler available Deployment is one of the most painful area. Even w...