Monday, August 17, 2015

Install and Configure Oracle Inbound Refinery

Install and Configure the IBR

Step 1) Connect to the Inbound Refinery at http://yourhostname:16250/ibr as the weblogic user, and the first-time use configuration screen will appear.

For this example, go with all the defaults.
Click Submit.
Restart WLS and the Managed Servers.

Step 2) Add an Inbound Refinery Provider.
Using the native webUI (http://localhost:16200/cs), select Administration / Providers, click on Add outgoing provider.
Enter the following:
- Provider Name: examplecs16250
- Provider Description: IBR provider
- Server Host Name: localhost
- HTTP Server Address: localhost:16250
- Server Port: 5555
- Instance Name: examplecs16250
- Relative Web Root: /ibr/
- select this checkbox: "Handles Inbound Refinery Conversion Jobs"
Click the Add button.
Restart WLS and the Managed Servers.

Step 3) Test to see that the new Provider is operational.
Using the native webUI (http://localhost:16200/cs), select Administration / Providers.
Click on Test provider "examplecs16250". It should state: "Good".

Step 4) Configure File Formats that will be used by the Refinery.
Using the native webUI (http://localhost:16200/cs), select Administration / Refinery Administration / File Formats Wizard
Select the all checkbox to select all file formats possible. Click the Update button.

Step 5) On the Inbound Refinery, enable PDF Export Converter.
Connect to the Inbound Refinery at http://yourhostname:16250/ibr, Administration / Admin Server, Component Manager, select the PDFExportConverter checkbox.
Click Update, then click OK.
Restart WLS and the Managed Servers.

Step 6) Set Primary Web Rendition to PDF.
Connect to the Inbound Refinery at http://yourhostname:16250/ibr, Conversion Settings / Primary Web Rendition.
Select the checkbox for "Convert to PDF using PDF Export".
Click the Update button.

INSTALLING THE IDC PDF CONVERTER PRINTER
Download Ghostscript (http://sourceforge.net/projects/ghostscript/) for resolve “The required printer 'IDC PDF Converter' is not installed. Queue monitoring will be turned off” error.
Installed the ghostscript.
1. Log in to the PDF Converter computer. Be mindful of the user account that you use.
The same user must be used to install Inbound Refinery and PDF Converter, install all
required third-party applications, and run Inbound Refinery and PDF Converter.

2. Close all other Windows programs.\

3. Create a c:\temp\ directory.

4. Launch the Windows Add Printer Wizard.

5. Click Next to continue.

6. Select the Local printer attached to this computer radio button, clear the
Automatically detect and install my Plug and Play printer check box, and click
Next to continue.
7. Select the Create a new port radio button, select Local Port from the drop-down
menu, and click Next to continue.

8. Enter c:\temp\idcoutput.ps as the port name, and click OK. The idcoutput.ps file does not need to exist in the temp directory; it will be created by PDF Converter.
9. Click Have Disk.

10. Click Browse.

11. Navigate to the PostScript printer driver that you want to use. If you are using AFPL
Ghostscript as your PostScript distiller engine, it is recommended that you use the
AFPL Ghostscript printer driver that is installed with AFPL Ghostscript. Navigate to
the ghostpdf.inf file located in the <ghostscript_install_dir>\lib\ directory.
Select the printer driver, and click Open.

12. Click OK to copy the printer files.

13. Click Next to continue. If you receive a message stating that driver is not digitally
signed, this is not an issue; you can still continue.
Important: Make sure that the Print Spooler service is installed and running on the
Inbound Refinery computer before attempting to install a printer. If this service is not
installed and running, Microsoft Windows will not allow any printers to be installed.
PDF Converter Installation and Administration Guide 4-11
Installing PDF Converter

14. Enter IDC PDF Converter for the printer name. The IDC PDF Converter printer can
be set as your default printer, but it does not have to be. Click Next to continue.

15. Select the Do not share this printer radio button and click Next to continue.

16. Select the No radio button to not print a test page and click Next to continue.

17. Click Finish to install the printer. If you receive a message stating the printer has not passed Windows testing, click Yes/Continue Anyway to continue.

18. When the printer is installed, right-click on the IDC PDF Converter printer icon and
select Properties to display the printer properties window.

19. On the General tab, make sure the printer is named IDC PDF Converter.

20. On the Sharing tab, make sure the Not shared/Do not share this printer radio button is selected.

21. On the Ports tab, make sure that the selected port is c:\temp\idcoutput.ps, and that it is specified as a Local Port. If the port has not been added, complete the following steps to add the port (the port only needs to be added once; if it was added correctly during the installation of the printer, it does not need to be added again):
a. Click Add Port.
b. In the list of available printer ports, select Local Port, and click New Port.
c. Specify c:\temp\idcoutput.ps as the port name, and click OK. The c:\temp\
directory must exist, but the idcoutput.ps file will be created by PDF Converter.
d. Click Close to close the Printer Ports dialog.

22. On the Advanced tab, make sure the Print directly to the printer radio button is
selected.

23. Click Apply to save any changes.

24. Click OK to close the printer properties window.


Identify if there are some Linux libraries missing and required for IBR

1.       Navigate to <mw_home>/Oracle_ECM1/oit/linux/lib/contentaccess and run the following commands :
      ldd oitconverter > oitoutput.txt
ldd exsimple > exoutput.txt
ldd textexport > textoutput.txt

Create the link / copy all the missing 32-Bit libs in the following folder.
/home/applowct/Oracle/Middleware/Oracle_ECM1/oit/linux/lib/contentaccess
I.E

yum install zlib-1.2.3-27.el6.i686
cp libz.so.1 <path>/oracle/middleware/Oracle_ECM1/oit/linux/lib/contentaccess/
cp libz.so.1.2.3 <path>/oracle/middleware/Oracle_ECM1/oit/linux/lib/contentaccess/

compat-libstdc++-33-3.2.3-69.el6.i686.rpm
libX11-1.3-2.el6.i686.rpm
libXau-1.0.1-3.1.i386.rpm
libxcb-1.7-1.el6.i686.rpm
zlib-1.2.3-27.el6.i686.rpm


Enabled Components
1.ContentFolios
2.ContentTracker
3.ContentTrackerReports
4.DynamicConverter
5.DesktopIntegrationSuite
6.DesktopTag
7.EmailMetaData
8.FrameWorkFolders
9.AppAdapterCore
10.AppAdapterEBS
11.IPMRepository
12.AutoSuggestConfig
13.DynamicConverter
14.FrameWorkFolders

Error While Creating Domain



Preparing...
Extracting Domain Contents...
Creating Domain Security Information...
Domain Creation Failed!

Domain Location: C:\Oracle\Middleware\user_projects\domains\<<DOMAIN>>

Reason: null

Exception:

Traceback (innermost last):
  File "<iostream>", line 155, in ?
  File "<iostream>", line 53, in writeUcmAutoInstallFile
  File "C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/javaos$py.class", line 334, in system
  File "C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/popen2.py", line 235, in system
  File "C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/popen2.py", line 72, in __init__
  File "C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/javashell.py", line 64, in execute
OSError: (0, 'Failed to execute command ([\'sh\', \'-c\', \'chmod 755 C:\\\\Oracle\\\\Middleware\\\\user_projects\\\\domains\\\\<<DOMAIN>>/ucm/cs/bin/autoinstall.cfg\']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')



Solution ::

To solve this we need to patch the jython-modules.jar. For default JDeveloper installation path we need to go to C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules and extract the jython-modules.jar using an utility like 7-zip. Then we need to open the javashell.py python script inside lib folder and add at line 139 a String for Windows 8 OS:

_osTypeMap = (
        ( "nt", ( 'nt', 'Windows NT', 'Windows NT 4.0', 'WindowsNT',
                  'Windows 2000', 'Windows 2003', 'Windows XP', 'Windows CE',
                  'Windows Vista', 'Windows Server 2008', 'Windows 7', 'Windows 8' )),
        ( "dos", ( 'dos', 'Windows 95', 'Windows 98', 'Windows ME' )),
        ( "mac", ( 'mac', 'MacOS', 'Darwin' )),
        ( "None", ( 'None', )),
        )

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


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...