Showing posts with label IBR. Show all posts
Showing posts with label IBR. Show all posts

Monday, February 15, 2016

Installing the NodeManager service


1.    Open the Command Prompt
2.    Run %WL_HOME%\wlserver_10.3\server\bin\setWLSEnv.cmd to set Weblogic Environment variables like WL_HOME, JAVA_HOME, PATH, CLASSPATH etc.
3.    Edit the installNodeMgrSvc.cmd to bind to a hostname for remote starts 
set NODEMGR_HOST=localhost
4.    Now run the %WL_HOME%\wlserver_10.3\server\bin\installNodeMgrSvc.cmd Validate the service from the services list as well using the services.msc utility.


5.    Start the NodeManager service named as above “Oracle WebLogic NodeManager…”
6.    Make sure starting the NodeManager service should create a  nodemanager.properties file under %WL_HOME%\wlserver_10.3\common\nodemanager.

Setup NodeManager to restore servers to their last known state after a reboot

1.   
Open nodemanager.properties located at %WL_HOME%\wlserver_10.3\common\nodemanager
2.    Set CrashRecoveryEnabled property value to true CrashRecoveryEnabled=true 
3.    Set StartScriptEnabled property value to true to invoke the startWeblogic script StartScriptEnabled=true
4.    Set StopScriptEnabled property value to true to invoke the stopWeblogic script and get the managed servers to shutdown cleanly StopScriptEnabled=false
5.    Set ListenAddress property value ListenAddress=localhost
6.    Set SecureListener property value (In case you selected plan for as communication type) SecureListener=false
7.    Restart of NodeManager service for each change to this nodemanager.properties file



Setup the machine

1.    Login to the AdminServer console

2.    Navigate through Domain Structure to %DOMAIN_NAME% -> Environment -> Machines

3.    Create a new machine Name : localhost, OS : Other - as my operating system is Windows Node Manager - Type: Plan

4.    Create one machine for each instance of OS for a different host.

5.    Assign the ManagedServer to machines based on which machine the ManagedServer is hosted. Take Lock & Edit and navigate through %DOMAIN_NAME% -> Environment -> Machines -> %MACHINE_NAME% -> Configuration tab -> Servers tab

6.    Do not forget to save and Activate the changes.

Enrolling the domain with NodeManager      

1.    Open command prompt

2.    Run %DOMAIN_HOME%\bin\setDomainEnv.cmd to set domain specific environment variables

3.    Start WLST using java weblogic.WLST

4.    At WLS prompt connect to AdminServer using connect ('weblogic','weblogic','t3://localhost:7001')

5.    Run nmEnroll(domainDir='C:/oracle/Middleware/user_projects/domains/base_domain',nmHome='C:/oracle/Middleware/common/nodemanager'). Make sure that you use forward slashes "/" instead of backward "\" as WLST does not recognize forward slashes. If you use backward slashes "\" you get the following error.



6.    Once the domain is successfully enrolled with NodeManager the nodemanager.domains should be updated too with below values.

#Thu Apr 28 11:54:41 MDT 2014
            base_domain=C\:\\Oracle\\Middleware\\user_projects\\domains\\base_domain 
            Also NodeManager should be reachable in AdminServer console. To validate this,

a)    Login to AdminServer console

b)   Navigate through %DOMAIN_NAME% -> Environment -> Machines -> %MACHINE_NAME% -> Monitoring -> Node Manager Status it should be Reachable (If not please check the nodemanager.log in  C:\Oracle\Middleware\wlserver_10.3\common\nodemanager)
               


Server Startup Configuration

1.    Login to the AdminServer console
2.    Navigate through Domain Structure to %DOMAIN_NAME% -> Environment -> Servers -> ManagedServer_1 -> Configuration tab -> Server Start tab
3.    Take Lock & Edit and input values as appropriate.
Java Home - C:\oracle\Middleware\jdk160_14_R27.6.5-32
Java Vendor - Sun - As I am using Sun JDK 
Weblogic Home - C:\oracle\Middleware
Root Directory -C:\oracle\Middleware\user_projects\domains\base_domain 
Classpath - Can be left blank as we have configured the nodemanager.properties to use startWeblogic script in  Setup nodeManager to restore servers to their last known state after a reboot  step 3 and you can setup necessary values in that script.
Arguments - Can be left blank as we have configured the nodemanager.properties to use startWeblogic script in  Setup NodeManager to restore servers to their last known state after a reboot  step 3 and you can setup necessary values in that script. But i am using memory arguments as input here "-Xms64m -Xmx128m" 
Security Policy - File - C:\oracle\Middleware\wlserver_10.3\server\lib\weblogic.policy
User Name – weblogic
Password – weblogic
Confirm Password – weblogic
4.    Save and activate the changes
5.    Repeat steps 1-4 for each ManagedServer in the domain.



NodeManager Domain Username and password

1.    Login to the AdminServer console

2.    Click on Domain name in the Domain Structure and navigate through %DOMAIN_NAME% (cs_domain) -> Security tab -> General tab -> Advanced link

3.    Take Lock & Edit  and input the NodeManager username/password/confirm passwords fields and these could be unique from your weblogic console password. I have chosen to input same as my console credentials username: weblogic & password: weblogic. This setup would help user who use WLST to connect to NodeManager via nmConnect()

4.    Save and Activate the changes


Complete Setup

Finally the setup is complete and now its time to start your ManagedServer in Admin console using NodeManager.
Starting the ManagedServer using the NodeManager setup
1.    Login to the AdminServer console
2.    Navigate through Domain Structure to %DOMAIN_NAME% -> Environment -> Servers -> ManagedServer_1 -> Control tab -> Start/Stop tab
3.    Under the Server Status section select the ManagedServer and click on start button
4.    When prompted to confirm the Action to be performed, click yes button.
5.    Monitor the server logs and after a while the server should be in RUNNING state


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

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