Showing posts with label OHS. Show all posts
Showing posts with label OHS. Show all posts

Delete/Create OHS instance from WLS domain.


Deleting or creating OHS instance in weblogic domain is very easy. Follow below steps to delete/create OHS instance from/on OHS domain.

OHS Version: 12.2.3.0
Weblogic server version: 12.2.3.0

Delete OHS instance

1. Open EM console and click on your OHS domain. Then select OHS Instance sub menu from domain dropdown.

2. Get lock and edit session from EM console.
3.Select OHS instance and click on delete button .

 Create OHS instance.

Prerequisites: Assuming OHS is installed on your domain.

1. From OHS instance page, click on create button.
2. Provide valid OHS instance name and select machine name.


 3. Click on Ok button.



Start and stop OHS server instance using scripts.


OS: Windows 10
OHS version: 12.2.3.0

Start OHS instance

1. Open command prompt and go to 'bin' folder under domain home
         cd  <Domain Home>\bin
          For eg: cd <MW_Home>\user_projects\domains\WC_domain\bin

2.   Execute below comman.
          startComponent  <OHS instance name>
          For eg: startComponent WC_OHS_1

3. Provide 'nodemanager' password.


Stop OHS instance

1. Open command prompt and go to 'bin' folder under domain home
         cd  <Domain Home>\bin
          For eg: cd <MW_Home>\user_projects\domains\WC_domain\bin

2.   Execute below comman.
          stopComponent  <OHS instance name>
          For eg: startComponent WC_OHS_1

3. Provide 'nodemanager' password.

Starting OHS (Oracle HTTP Server) backend applications without port number



After installing OHS on Weblogic server, by default OHS will listen on 7777 or 7778 port. Default configuration can be changed to port 80 and this configuration will eliminate port number from application URL.

For eg: I have OHS in front of  content server and Content Server url would be ' http://127.0.0.1:7777/cs/ '. After below steps, Content Server application can be accessed by ' http://127.0.0.1/cs/ '

Follow below steps to change default listen port to 80.

1. Open EM console and navigate to HTTP Server  --> <System Component>

 


2. Click on 'Ports Configuration' menu item.




3. Get lock & edit session.


4. Select HTTP protocol row and click on 'edit' button.


5.Change port value from 7777 to 80 and click 'Ok' button.


6. Click on lock and edit menu and activate changes.
7. Restart system component instances from top restart button.