Thursday, February 5, 2015

Oracle MDS File Does not Exist

Sometimes, after you import a project to your JDeveloper, if that project refers to files in MDS, and complains that the reference files are not available, but if you check in the MDS, the files are actually there.

So usually this is due the MDS that the project refers to does not have the required files. Therefore

1) you either need to put the files in the default MDS referenced by the project, OR
2) you need to make the project to refer to the correct MDS that has all the necessary files. 

For second option, this is what you need to do:

1) Edit adf-config.xml. Make sure yours looks like something like below

2) Restart your JDeveloper.

3) If things did not change, close the Application, then restart your JDev, then reimport that project.




Monday, February 2, 2015

淺談大數據



阅报得知,前公司欲发展“大数据” (Big Data) 工程,以迎合政府的“国家大数据框架”政策。

近几年来,“大数据”是信息工程界的主流。中国风云人物马云最近受访时也说,未来是“数据的时代”,笔者肯定马先生有此一说与大数据技术息息相关。

大数据之所以流行,是因为实时分析海量数据的技术已成熟,重点在于“实时”与“海量”。

换做是从前,要实时为所流入的数据作分析非常困难。往常的作法是,技术人员须写程序,天天按时把数据从不同的“数据库”(Database)集中于“数据 仓库”(Data Warehouse),才能做出所谓的商业分析报告,通常是每日报告,每星期报告,每月报告,每年报告等等,业界称之为商业智能(Business Intelligence),惟就是无法作出“实时报告”。


“大数据”另一特点是可分析来自不同管道的实时数据。比较从前的各种技术,数据须先进入“数据库”后方可作分析。而大数据技术由于可接上不同的“技术协 议”,不必等待数据进入数据库后才能做事。“网民”在网上的一切活动,如使用脸书、推特及其他社交程序,在大数据技术支援下,再配合传统数据搜集技术,相 关机构或公司就可实时得知网民的消费趋向、偏好、兴趣等等,再依有关数据推出量身定做的“商业资讯”如促销等等。

目前业界亦积极推动”物联网“(Internet of Things)工程,即把所有的居家电器用品都连接上网络,举例,目前的家居监管系统已可通过智能手机来检测或开关等,就只要连上网络就可以了。

当“物联网”成真后,大数据技术将如鱼得水,获得数据的来源大增,分析也越拉越精确。用户只要天天通过不同管道“上网”,几乎所有的“一举一动”都难逃大数据技术的掌控。其实在欧美已有许多人关注这类隐私问题,业界正致力解决之。

说有一天,大数据技术还能用来预测某人有无犯罪倾向,就像电影“关键报告”(Minority Report)里的情节一样。

分别是,“关键报告”电影里是用“神通”来预知犯罪事件,而现实生活里是用“大数据”而已。

目前已逢消费服务税季节,本地华裔中小型企业的挑战重重,笔者衷心希望“头家”们多多了解和善用诸如大数据技术般的新科技,以数据说话,为企业制定合适的策略,借以提升企业。

Wednesday, January 14, 2015

Oracle's SOA Applications Adapter (SOAAppsAdapter) Update Issue




Bloody Hell. This SOAAppsAdapter thingy is so bloody tedious.

So I have SOA Composites having AqAdapter as partner to listen to Business Events.

The config for this AqAdapter however is not in EM Console, instead it is in Weblogic Console - > Deployment -> OracleAppsAdapter. Yes funny thing is It is known as "OracleAppsAdapter". So confusing.

So I changed the JDBC reference inside this OracleAppsAdapter config. Next I "update" OracleAppsAdapter. However, the pending Business Events were still not picked up by the AqAdapter.

What's wrong?

Ok. We just have to restart the SOA Composite! I do not know why, perhaps the current instances were still holding the "cache" of the AqAdapter. Something like that I guess.

If you know why, appreciate your feedback in this. Thank you.



Wednesday, January 7, 2015

Eclipse Build, M2Eclipse and Maven Build



Maven exists for quite many years already, I think close to 8 years?

But I only started dealing with Maven few months back.

I have this Maven project in my STS(Spring Tool Suite). The project is using Maven Resource Filtering and also the project also needs to generate java web service proxy classes based on a wsdl.

So what happened is somehow the Eclipse Build will not copy the file under resources folder to the target classes folder. In the end I have to specifically run Maven Build (with goals: clean compile package) to make that works.

If I only ran Maven Clean, it will not help. Instead it will screw up the project by deleting many things from the target folder and no auto geneate.

If you know the way to have Eclipse default Build to understand Maven build process. Please let me know. Thank you. 




Monday, November 10, 2014

Sudo command not found

 

Yep sometimes you'll see sudo command not found error.

The solution is quite easy and straightforward.

1) Open your Unix/Linux console, type the following command:

whereis sudo

2) It will print the current path for the sudo command. Copy that path (excluding /sudo).

3) Now, go to your HOME, for e.g. /home/<username>

4) Open up a hidden file named .profile

5) There is supposed a PATH variable in .profile. And the variable might have some values, which are some other paths there already. Now paste the path that you copied from step 1 at the tail of the other paths.

6) Open a new session of console, now you should be able to run your "sudo" command already.


Friday, September 12, 2014

The importance of having a Integrated Dashboard for better IT management

 

Having an Integrated Dashboard is helpful in terms of IT Management. At least it is very very useful in terms of standalone program management according to my experience.

What kind of support we can get from the Integrated Dashboard?

1) Have a glance of how many "Interfaces" or "Services" we have. There will be a search feature to search for the Interface or Service  that we want to go to.

2) To configure Interfaces' or Services' variables at run time. For e.g. SQL, SQL Input Parameters, Database Connection, FTP Connection, Email Connection and etc.

3) To deploy latest code to the specific interface or service. Any Source Repository tool such as Mercurial, SVN, Github, and build such as Maven and Jenkin will be integrated to this Dashboard. The dashboard will provide a button to build the latest source code.

4) To provide scheduler function to schedule the launch the specific interface or service.

5) To provide server health (CPU, Memory) monitoring options using existing API such as JavaMelody or others. 

All the above are some important features that an Integrated Dashboard can have. Of course we can add more things such as monitoring , audit and etc. And of course we have to try to make sure each and every of our "interfaces" or "services" will be registered under this Dashboard. To build this Dashboard from scratch is going to take tremendous effort.