Monday, August 17, 2015

Find Latest MLR for Oracle WebCenter Content

Follow bellow steps to find the latest MLR on Oracle Support.

1. In the Search tab select the Product or Family (Advanced) link

2. In the Product drop down menu select Oracle Webcenter Content

3. In the Release drop down menu select FMW 11.1.1.8.0

4. Click the Search button

Look for the WCC 11.1.1.8.0 BUNDLE with the highest MLR number

Oracle WebCenter Content Installation




Follow bellow steps to install oracle webcenter content on windows server.


1. Install JDK 1.7.0_26+

2. Install Oracle Date and dont forgot to change the character set
*. RCU Fails With Non-AL32UTF8 Character Set (Doc ID 1063712.1)

3. Install WebLogic 10.3.6. for WebCenter 11.1.8
java -D64 -jar wls1036_generic.jar
setup.exe -jreLoc

4. Setup Node manager
java weblogic.WLST
connect ('weblogic','<<password>>','t3://localhost:7001')
nmEnroll(domainDir='C:/Oracle/Middleware/user_projects/domains/webcenter',nmHome='C:/Oracle/Middleware/wlserver_10.3/common/nodemanager')

5. Create domain ( Middleware\oracle_common\common\bin\config.cmd  -log=webcente.log)

6. Install Visual C++ 2005 SP1 Redistributable Package (both x86 and x64) ( Doc ID 1322380.1)

7. Configure IBR add provider on RIDC port.

How to Remove Domain From weblogic



As of now there is no out of the box feature with Weblogic Configuration wizard to remove or delete a domain. These are basically manual steps.

For example if I want to delete a domain named geo_domain below are the steps you need to remove the domain.

Open domain-registry.xml under $Middleware_HOME .Remove the corresponding entry referring to geo_domain.

CodeSnippet :: domain-registry.xml
<?xml version="1.0" encoding="UTF-8"?>
<domain-registry xmlns="http://xmlns.oracle.com/weblogic/domain-registry">
<domain location="C:\Oracle\Middleware\user_projects\domains\soa_domain"/>
<domain location="C:\Oracle\Middleware\user_projects\domains\geo_domain"/>
</domain-registry>

Open nodemanager.domains file under $Middleware_HOME \wlserver_10.3\common\nodemanager\ folder.
Remove the corresponding entry referring to geo_domain.
CodeSnippet :: nodemanager.domains
#Domains and directories created by Configuration Wizard
geo_domain=C\:\\Oracle\\Middleware\\user_projects\\domains\\geo_domain

Delete the domain folder under domains folder manually.
$Middleware_HOME\user_projects\domains\geo_domain


How to upgrade a PS2 11.1.1.3.0 UCM or PS3 11.1.1.4.0 UCM to PS4 11.1.1.5.0 UCM



Note: Prior to upgrading the UCM, the Weblogic Server must also be upgraded


A. Download the Weblogic patch to upgrade it to 10.3.5.0

1. Go to My Oracle Support, https://support.oracle.com

2. Click the Sign In button and enter your My Oracle Support username and password.

3. Select the Patches and Updates tab.

4. In the Patch Search pane, click Product or Family (Advanced Search) link.

5. From the Product Is drop-down list, select Oracle WebLogic Server.

6. From the Release Is: drop-down list, click the arrow next to the Oracle WebLogic Server folder select WLS 10.3.5.0 from the list.

7. Click the Close button

8. Click the Search button.

9. Select 12395574 Oracle WebLogic Server: Patch PLACEHOLDER FOR WEBLOGIC SERVER11GR1 (10.3.5) UPGRADE INSTALLER

    a. This will be the Generic Platform version


10. Click the Download button

11. Select the p12395574_1035_Generic.zip link

12. Save the zip file

13. After the download completes, extract the wls1035_upgrade_generic.jar file




B. Stop the Weblogic processes

1. Stop the UCM and IBR (if implemeneted) Managed Servers

2. Stop the Weblogic Server

3. If used and running, stop the NodeManager



C. Install the Weblogic patch to upgrade it to 10.3.5.0

1. Change the directory to where the wls1035_upgrade_generic.jar is extracted to

2. Make sure that the file has the same OS owner and group that owns the Weblogic and UCM files

3. Execute: java -jar wls1035_upgrade_generic.jar

    a. If this is a 64 bit server run:  java -d64 -jar wls1035_upgrade_generic.jar


NOTE: Make sure that the java used is the same used by the Weblogic server and UCM


4. Run through the screens to complete the upgrade


NOTE: You might see documentation suggesting to run the <Middleware path>/wlserver_10.3/common/bin/upgrade.sh. This is not required when upgrading Weblogic from 10.3 or 10.3.4 to 10.3.5




D. Update the UCM

1. To download the 11.1.1.5.0 media go to OTN, download.oracle.com

2. In the Middleware group select Universal Content Management

3. Listed under Oracle Enterprise Content Management 11gR1 Downloads, select and download the Generic (All Certified Platforms) - Part 1 of 2 and Part 2 of 2 files

    a. The files will be labeled ofm_ecm_generic_11.1.1.5.0_disk_1of2.zip and ofm_ecm_generic_11.1.1.5.0_disk_2of2.zip


Note: run the following procedures as the same user that owns the Weblogic and UCM


4. Extract the zip files

5. Change the directory to Disk1

6. If the UCM is installed on Unix or Linux

    Execute ./runInstaller

If the UCM is installed on Windows

    Execute setup.exe

7. At the Please specify JRE/JDK location ... prompt enter the same path to java as used by the UCM

8. In the Welcome screen click the Next button

9. In the Install Software Updates screen select the Skip Software Update radio button

10. Click the Next button

11. In the Prerequisite Checks screen click the Next button

    Assuming of course that the prerequisites passed

12. In the Specify Installation Location screen make sure the Oracle Middleware Home and Oracle Home Directory are correct for the UCM

13. Click the Next button,

14. At this point a pop up Warning window will appear stating:
An existing Application Server 11g ECM Home has been detected

Do you want to upgrade this existing Application Server 11g ECM?

    a. Click the Yes button

9. In the Installation Summary screen click the Install button

10. When the Progress is 100% click the Next button

11. Click the Finish button

12. Restart the Weblogic Server and UCM and IBR Managed Servers

Verify WebCenter Content Installation


Follow these points to verify the installation and configuration of oracle webcenter content

1. Enable the Arabic component with Arabic Labels (If there is).

2. DIS installation on the clients

3. Disable unwanted fields.

4. Configure Framework Folders.

5. ADF UI and is it all functional properly? Users are tested and they are the same users and permissions in the Old UI.

6. Test the permissions component and notification component if documents are coming from Capture, or EBS (File system, Capture), etc...

7. User Access List and Group Access List, Is it installed?
You need to create a Security Group that uses the UAL and GAL which is: "Shared" and to create 4 different roles for this group: SharedViewer (R), SharedContributor (RW), SharedSubAdmin (RWD) and SharedAdmin (RWDA). and this security group has to be configured in the config.cfg to be a shared group.

8. You need to perform full testing of all installed components.

9. Checkin a document, checkout and update a document meta information.

10. Verify bellow components and install if there is missing.

ContentFolios
ContentTracker
ContentTrackerReports
DynamicConverter
FormEditor
ThreadedDiscussions
CIS_Helper
DBSearchContainsOpSupport
DesktopIntegrationSuite
FrameworkFolders
AppAdapterCore
AppAdapterEBS
IpmRepository
AutoSuggestConfig
DynamicConverter
FrameworkFolders


Weblogic ServletContext getRealPath - NullPointerException




Follow these steps to handle NullPointerException in web application while executing

ServletContext.getRealPath();

1. Login to weblogic console
2. Select Domain
3. Web Application Tab
4. Enable Archived Real Path

You can also apply fix in application level by adding the following entry to weblogic.xml file:

<container-descriptor>
    <show-archived-real-path-enabled>true</show-archived-real-path-enabled>
</container-descriptor>

Saturday, March 3, 2012


APT-PROXY Configuration
Apt-proxy is caching proxy can be easily install on ubuntu/debain. It will build up a partial debian mirror, and caches the packages in your hard drive it will behaves full http proxy server. In the case of missing packages the apt-proxy will fetch the missing package from internet and that will save your installation time and bandwidth, it's also clean the unused files based on user defined attributes in configuration file. apt-proxy is also accessible through ftp:// protocol.


Install proxy on your proxy server from any of debain/ubuntu mirror.

Install Apt-proxy 
        $> apt-get install apt-proxy


Open the apt-proxy configuration file which contains the default apt-proxy settings, Add mirrors in apt-proxy-v2.conf define the IP, PORT and cache-dir where you want to store download packages.


  $>  vi /etc/apt-proxy/apt-proxy-v2.conf    



      address 192.168.1.12
        port = 9999;
        cache-dir= “/var/cache/apt-proxy”
        timeout = 30
        passive_ftp = on


        [ubuntu]
        ; Ubuntu archive
        backends =
        http://archive.ubuntu.com/ubuntu
        http://de.archive.ubuntu.com/ubuntu
        [ubuntu-security]
        ; Ubuntu security updates
        backends = http://security.ubuntu.com/ubuntu
        [debian]        ; Backend servers, in order of preference
        backends =
        http://ftp.us.debian.org/debian
        http://ftp.de.debian.org/debian
        http://ftp2.de.debian.org/debian
        ftp://ftp.uk.debian.org/debian
        [debian-non-US]
        ; Debian debian-non-US archive
        backends =
        http://ftp.us.debian.org/debian-non-US
        http://ftp.th.debian.org/debian-non-US
        ftp://ftp.us.debian.org/debian
        [security]
        ; Debian security archive
        backends =
        http://security.debian.org/debian-security
        http://ftp2.de.debian.org/debian-security
        [openoffice]
        ; OpenOffice.org packages
        backends =
        http://ftp.freenet.de/pub/debian-openoffice
        http://ftp.sh.cvut.cz/MIRRORS/OpenOffice.deb
        http://borft.student.utwente.nl/debian
        [apt-proxy]
        ; Apt-proxy new versions
        backends = http://apt-proxy.sourceforge.net/apt-proxy


Initializing apt-proxy
You’re apt-proxy is ready to use, to start/restart you’re apt-proxy server run


$> /etc/init.d/apt-proxy [start|restart]


Export HTTP_PROXY
If you are using http proxy to connect though internet you need to define the proxy setting in your server. To define the proxy settings you  run


$> export http_proxy=http://username:password@myproxyserver:port/
$> export ftp_proxy=http://username:password@myproxyserver:port/


You need to export http proxy setting each time your server restarted to fix the add above lines in /etc/bash.bashrc file.


Client Setting
Edit source.list (/etc/apt/source.list) to use your proxy server instead of using internet.
Replace the existing mirrors


deb http://archive.ubuntu.com/ubuntu dapper main restricted
deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe
archive.ubuntu.com will be replace with your server address and port it would become 
deb http://myProxyServerIp:port/ubuntu dapper main restricted
deb http://myProxyServerIp:port /ubuntu-security dapper-security main restricted universe


$>apt-get update

Enjoy your local proxy server.

AWS EC2 - SSH locked with UFW

Need to update the instance's user data: 1. Stop the instance 2. Right click (windows) or ctrl + click (Mac) on the instance to open a c...