2012/05/19

Make your Chinese SRT file display correctly

Recently I just upgraded my Ubuntu Desktop from 11.04 to 12.04 LTS. And of course a lot new problems came to me.

And one of the problem is the SRT file.

Actually, this is not a new problem to me, but I was always choosing the workaround way.

This time, no more workaround. I'll present you the correct way.

Until now I still don't have a clue for the root cause of this problem yet, but in chunghe's blog I found this is really nice and easy way to solve the problem.

Problem Description

The original contain of the SRT is like this.

I still can see the numbers, which means the file is somewhat correct, but the Chinese word didn't display correctly.

image

In gEdit, I tried to open it with UTF-8 encoding

image

There are errors

image

 

Solutions

For chunghe's blogpost, he introduced an utility called enca.

Usage1 show file information  : enca <filename>

image

This will display the information of the file content. For my file here it shows

It's Big5(Is this the reason I cannot see the font correctly?) , with CRLF line terminators.

 

Usage 2 convert file to desired format : enca –x <encoding>

I wrote an scritp to do this. The content is :

enca -x UTF-8 < $1.srt > $1.utf8.srt

The content of the converted file.

image

 

Conclusion

This way is much easier and more straight and forward.

Before this, I have to copy the file to Windows environment and open notepad++ to convert it to UTF-8.

Now everything can be done under Ubuntu. 微笑

2012/03/24

Making Oracle Database XE Available to Remote Clients

I installed one Oracle Database XE for testing purpose.

And found that it won't be accessable from different client.

And finally I found the answer in Oracle Document

Here is the copied sentence...

 

Start SQL*Plus and log in as SYSTEM:

SYSTEM_DRIVE:\> sqlplus system
Enter password: SYSTEM_password

Or, if you are logging in remotely:

SYSTEM_DRIVE:\> sqlplus system@xe_server_host_name
Enter password: SYSTEM_password

At the SQL prompt, enter the following command:

SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
 
And it can be remote access now. 微笑
 
 

2012/03/18

Upgrade Oracle E-Business Suite R12.1.1 to R12.1.3 on Oracle Linux

 

Reference from Oracle Support DocId : 1080973.1

 

My EBS on my Oracle Linux is 12.1.1. I want to upgrade it to 12.1.3 to experience the new OAF Rich UI.

Here are my steps, the issues I encountered and the solutions.

 

Apply Patch 9239089

This one is easy.

Download the patch 9239089.

Unzip it.

Apply patch.

 

Apply Patch 9239090

This patch is big. It is seperated into 6 files, but still the same steps.

Download the patch 9239090.

Unzip them.

Apply the patch.

It spends a lot of time to apply this patch. And during applying the patch, there are several issues come to my server.

One is EGOSILDU.sql issue, which can be solved by DocId. 847687.1. But I don't use "Advanced Product Catalog" which I can ignore this issue by using adctrl and press 8.

And I also encountered another issue which is some form objects could not be compiled correctly.

au resource ASTACLIB.pll
au resource ASTCORE.pll
au resource ASTCUREL.pll
au resource ASTLSLIB.pll
au resource ASTCPREP.pll
au resource ASTOPLIB.pll
au resource IEXCORE.pll
au resource ASTRCALL.pll
au resource OKSSRVAV.pll
au resource ASTSLLIB.pll
au resource ASTCULIB.pll
au resource CSCUTILS.pll

And in this document

https://forums.oracle.com/forums/thread.jspa?threadID=2131259

Just recompile the db package AS_API_RECORDS_PKG and recompile the previous pll files to plx would solve this issue.

 

Apply Patch 9239095

This one is easy, too.

Download the patch 9239095

Unzip the patch

Apply the patch

 

Post-Updates Steps

Finally the patches of Oracle E-Business Suite R12.1.3 is done.I also need to apply patches 9817770 & 9966055, otherwise my responsibilities won't appear.

Update Code Level

To keep application tier and database tier the correct code level,  do the following steps:

Login as application os user, cd $ADMIN_SCRIPTS_HOME, run adautocfg.sh to generate the context file.

cd $AD_TOP/bin, run admkappsutil.pl.

This will generate latest appsutil.zip under $INST_TOP/admin/out

Then login as database os user, cd $ORACLE_HOME, ftp or copy the appsutil.zip (which is created by application os user) to current folder.

unzip -o  appsutil.zip

Run adautocfg.sh on $ORACLE_HOME.

then run adpreclone.pl dbTier using database user, and adpreclone.pl appsTier using application user.

Now everything is ready, you may startup your Oracle E-Business Suite 12.1.3 now!

 

image

image

2012/03/13

Oracle E-Business Suite R12 OAF Rich User Interface Enhancement

Reference from Oracle
There are some new enhancements since Oracle EBS R12.1.2 was introduced, especially the OAF Rich UI.
I think Oracle is getting better and better now. I'm going to upgrade my R12.1.1 on my Oracle Linux later on.
Now let's give it a glance.

I just captured the picture from the document. All the copyright of the picture belong to Oracle.

Now we have new navigator in the left
image
You can put some embedded content, see the right
image
You can have Drop-Down Navigator Menu. I love this function myself.
image
The Drop-Down Favorites. I love this one too.
image
This one is even better! The Inline, look-ahead LOV window.
image
The Inline View Attachment Window
image
Inline Popup Window
image
Embedded OBIEE Analytic Contents. Every boss asked about this!
image
Embedded Custom Rich Content
image
Function after R12.1.3
image
Exceptions as Popups.
image
AutoVue Integration.
image
View Object Creation.
image
Create your own Dynamic View Object
image
Copy & Undo funtion
image

Summary

I think Oracle is really trying hard to get Oracle E-Business Suite better and better. Though it's not fast enough, but I think I still love these new functions introduced.
Keep visiting my blog, I might have a chance to share my process of upgrade from R12.1.1 to R12.1.3.
See you soon.

2012/02/05

VMWare Memory Setting

Just want to keep this for I sufferred from the physical memory not enough error for one day.

In Additional memory part the 3rd option : Allow most virtual machine memory to be swapped.

image

It was the 2nd option : Allow some virtual machine memory to be swapped. And notice that the Reserved memory is 4545 MB.

I got available memory  more than 4GB, VMWare still complaint I do not have enough memory for my 4G VM.

Though this option(3rd option) sacrificed the performance of the guest machine. At least I can have a slow but workable environment.

Valentine's Day 2012 V

Database parameter setting (Reference)



alter system set processes=300 scope=spfile;
alter system set session_cached_cursors=200 scope=spfile;
alter system set sga_target=2G scope=spfile;
alter system set shared_pool_size=600M scope=spfile;
alter system set pga_aggregate_target=1G scope=spfile;
alter system set job_queue_processes=20 scope=spfile;

2012/02/04

SOA Suite Installation on Oracle Linux 5.7

Valentine's Day 2012 V
According to Oracle official web page currently the SOA Suite can be installed only on 32-bit JVM.
In this article, we will install WebLogic, RCU, SOA Suite and JDeveloper.

OS Package Installation

compat-db-4.1.25-9
sysstat-5.0.5-1

Kernel Parameters OS Resource Limitation

/etc/security/limits.conf
*    hard    nofile    4096
*    soft     nofile    4096
image

Install WebLogic

In the Welcome windows, Next
image
Select Create a new Middleware Home, and give the Middleware Home Directory, then Next
image
opt out I wish to receive security updates via My Oracle Support, then Next
image
Choose Typical as Install type, this will install WebLogic Server & Oracle Coherence, then Next
image
Specify the directory of WebLogic Server and Oracle Coherence, then Next
image
Review the Installation Summary, if no problem, then Next
image
Installing
image
opt out the Run Quickstart then Done
image

Install RCU DB Schemas

In Welcome window, Next
image
Choose Create, then Next
image
Give the database connection information, then Next
image
After the check, then OK
image
Accept the default new Prefix DEV, opt-in the SOA and BPM Infrastructure, this will automatically opt-in Metadata Services under AS Common Schemas, then Next
image
After the check again, then OK
image
Give the password for all schemas, then Next
image
Review the Tablespaces, then Next
image
Because we do not have any tablespaces in previous review, so OK
image
Tablespaces created, then OK
image
Review the Summary, then Create
image
Repository created, then Close
image

Install SOA Suite

Give the JDK location under previous WebLogic Middleware Home
image
Accepted the default. You should have a group named oinstall already. Then OK
image
Need root privileges to run the createCentralInventory.sh
image
Logon as root and go to the directory previous dialog specified run the createCentralInventory.sh
image
Go back to the previous dialog, then OK
image
In Welcome screen, Next
image
Choose Skip Software Updates, then Next
image
Make sure the Prerequisite Checks are all passed, then Next
image
Specify the Oracle Middleware Home and accept the default name for Oracle Home Directory (this will be our DOMAIN_HOME), then Next
image
Accept the WebLogic Server as Application Server, then Next
image
Review the Installation Summary, then Install
image
Installing
image
Completed, then Next
image
Installation Complete, Finish
image

Configure SOA Suite

Under $DOMAIN_HOME/common/bin
./config.sh
image
Choose Create a new WebLogic domain, then Next
image
Check the following products, then Next
image
Give the Domain name, Domain location, and Application location, then Next
image
Give weblogic password, then Next
image
Choose Development Mode and Sun SDK, then Next
image
Check all the Component Schema, give the password (Created in RCU), and connection information, then Next
image
All the Component Schema tested, then Next
image
Check only Administration Server, then Next
image
Use default value for Administration Server, then Next
image
Review Configuration Summary then Create
image
Creating New Domain
image
Done
image

Install JDeveloper

In the Welcome window, Next
image
Choose Create a new Middleware Home, and give a new directory for JDeveloper, then Next
image
Choose Complete as Install Type, then Next
image
Confirm the directories are all right, then Next
image
Review the Installation Summary, then Next
image
JDeveloper installing...
image
uncheck the Run Quickstart, then Done
image

Install SOA Extension on JDeveloper

Choose Default Role when you first time run the JDeveloper, then OK
image
Depends on you want to report your usuage to Oracle or not, then OK
image
In menu Help > Check for Updates
image
In Welcome window, Next
image
Check Oracle Fusion Middleware Products and Official Oracle Extensions and Updates, then Next
image
Check Oracle BPM Studio 11g and Oracle SOA Composite Editor, then Next
image
The update is downloading...
image
Extension installed, Finish
image
Yes and restart the JDeveloper
image

Appendix

cd $DOMAIN_HOME/bin
./startWebLogic.sh to start the SOA Platform
We will see the SOA Platform is running and accepting requests to know the server is ready.
image
Browse yoursoaserverip:7001/console
image
Logon as weblogic and password you specified previously, then Login
image
We will see the server is ready, Yay!
image

Reference Oracle SOA Suite 11g Installations Document