OUD Version: 12.2.1.3.0
Issue: Unable to start OUD instance created through weblogic script startComponent.cmd oud1
Sample command for creating oud instance from wlst:
oud_createInstance(scriptName='oudsetup',instanceName='oud1',hostname='localhost',ldapPort=1389,rootUserDN='cn=oudadmin',rootUserPasswordFile='D:\password.txt',baseDN='dc=example,dc=com',sampleData=5,adminConnectorPort= 1444)
Error:
<SEVERE> <oud_domain> <Error when initializing System Component OUD server 'oud1', ignore it now: java.io.IOException: Plugin not found for system component type 'OUD', plugin type 'PROCESS'>
java.io.IOException: Plugin not found for system component type 'OUD', plugin type 'PROCESS'
at weblogic.nodemanager.server.NMPluginManager.getProcessPluginProxy(NMPluginManager.java:126)
at weblogic.nodemanager.server.ServerManagerFactory.createServerManager(ServerManagerFactory.java:34)
at weblogic.nodemanager.server.DomainManager$ServerManagers.getOrCreate(DomainManager.java:525)
at weblogic.nodemanager.server.DomainManager.initialize(DomainManager.java:171)
at weblogic.nodemanager.server.DomainManager.<init>(DomainManager.java:69)
at weblogic.nodemanager.server.NMServer.initDomains(NMServer.java:384)
at weblogic.nodemanager.server.NMServer.start(NMServer.java:360)
at weblogic.nodemanager.server.NMServer.main(NMServer.java:591)
at weblogic.NodeManager.main(NodeManager.java:31)
Cause: When per host NodeManager is configured, need to copy JAVA_OPTIONS to Oracle_home/wlserver/server/bin/startNodeMananger.sh script from Domain_Home/bin/startNodeMananger.sh ,without these JAVA_OPTIONS system components cannot work.
Solution:
1. Create a directory named "NodeManager" in the location Oracle_Home/oracle_common/common/ as by default will not have this directory.
2. Copy nodemanager.domains and nodemanager.properties files from DOMAIN_HOME/nodemanager directory to the newly created NodeManager directory from item 1.
3. Copy the Security folder from DOMAIN_HOME to ORACLE_HOME/oracle_common/common/NodeManager directory.
4. Edit nodemanager.properties file and change these parameters.
6. In the same nodemanager.domains file add the the Name and PATH of the domain which needs to be monitored
Issue: Unable to start OUD instance created through weblogic script startComponent.cmd oud1
Sample command for creating oud instance from wlst:
oud_createInstance(scriptName='oudsetup',instanceName='oud1',hostname='localhost',ldapPort=1389,rootUserDN='cn=oudadmin',rootUserPasswordFile='D:\password.txt',baseDN='dc=example,dc=com',sampleData=5,adminConnectorPort= 1444)
Error:
<SEVERE> <oud_domain> <Error when initializing System Component OUD server 'oud1', ignore it now: java.io.IOException: Plugin not found for system component type 'OUD', plugin type 'PROCESS'>
java.io.IOException: Plugin not found for system component type 'OUD', plugin type 'PROCESS'
at weblogic.nodemanager.server.NMPluginManager.getProcessPluginProxy(NMPluginManager.java:126)
at weblogic.nodemanager.server.ServerManagerFactory.createServerManager(ServerManagerFactory.java:34)
at weblogic.nodemanager.server.DomainManager$ServerManagers.getOrCreate(DomainManager.java:525)
at weblogic.nodemanager.server.DomainManager.initialize(DomainManager.java:171)
at weblogic.nodemanager.server.DomainManager.<init>(DomainManager.java:69)
at weblogic.nodemanager.server.NMServer.initDomains(NMServer.java:384)
at weblogic.nodemanager.server.NMServer.start(NMServer.java:360)
at weblogic.nodemanager.server.NMServer.main(NMServer.java:591)
at weblogic.NodeManager.main(NodeManager.java:31)
Cause: When per host NodeManager is configured, need to copy JAVA_OPTIONS to Oracle_home/wlserver/server/bin/startNodeMananger.sh script from Domain_Home/bin/startNodeMananger.sh ,without these JAVA_OPTIONS system components cannot work.
Solution:
Follow below steps to configure per host NodeManager:
https://docs.oracle.com/middleware/12211/wls/WLUPG/upgrade_dom.htm#WLUPG467
1. Create a directory named "NodeManager" in the location Oracle_Home/oracle_common/common/ as by default will not have this directory.
2. Copy nodemanager.domains and nodemanager.properties files from DOMAIN_HOME/nodemanager directory to the newly created NodeManager directory from item 1.
3. Copy the Security folder from DOMAIN_HOME to ORACLE_HOME/oracle_common/common/NodeManager directory.
4. Edit nodemanager.properties file and change these parameters.
From:
DomainsFile=<PATH to Domain_Home>/nodemanager/nodemanager.domains
NodeManagerHome=<PATH to Domain_Home>/nodemanager
LogFile=<PATH to Domain_Home>/nodemanager/nodemanager.log
NodeManagerHome=<PATH to Domain_Home>/nodemanager
LogFile=<PATH to Domain_Home>/nodemanager/nodemanager.log
To:
DomainsFile=<PATH to ORACLE_HOME>/oracle_common/common/nodemanager/nodemanager.domains
NodeManagerHome=<PATH to ORACLE_HOME>/oracle_common/common/nodemanager
LogFile=<PATH to ORACLE_HOME>/oracle_common/common/nodemanager/nodemanager.log
NodeManagerHome=<PATH to ORACLE_HOME>/oracle_common/common/nodemanager
LogFile=<PATH to ORACLE_HOME>/oracle_common/common/nodemanager/nodemanager.log
5. Edit the nodemanager.domains file and add the following lines:
DomainsFile=<PATH to ORACLE_HOME>/oracle_common/common/nodemanager/nodemanager.domains
NodeManagerHome=<PATH to ORACLE_HOME>/oracle_common/common/nodemanager
NodeManagerHome=<PATH to ORACLE_HOME>/oracle_common/common/nodemanager
6. In the same nodemanager.domains file add the the Name and PATH of the domain which needs to be monitored
base_domain=<PATH to DOMAIN_HOME>
7. Keep a backup of startNodeManager.sh/cmd script
8. Copy first JAVA_OPTIONS and POST_CLASSPATH from startNodeManager.sh/cmd script under DOMAIN_HOME/bin to startNodeManager.sh/cmd under ORACLE_HOME/wlserver/server/bin script before the WL_HOME parameter
9. Copy the remaining JAVA_OPTIONS and PATH from startNodeManager.sh/cmd script under DOMAIN_HOME/bin to startNodeManager.sh/cmd under ORACLE_HOME/wlserver/server/bin script after the WL_HOME parameter
10. After the above changes, the first few lines of startNodeManager.sh/cmd under ORACLE_HOME/wlserver/server/bin looks similar to this
SETLOCAL
set JAVA_VM=
set MEM_ARGS=
FOR /f %%i in ('cd') do set MYPWD=%%i
SET SCRIPT_PATH=%~dp0
FOR %%i IN ("%SCRIPT_PATH%") DO SET SCRIPT_PATH=%%~fsi
@rem copied from domainhome\bin
set JAVA_OPTIONS=%JAVA_OPTIONS% -Doracle.security.jps.config=D:\oracle\12c\Middleware\Oracle_Home\user_projects\domains\oud_domain\config\fmwconfig\jps-config-jse.xml -Dcommon.components.home=D:\oracle\12c\Middleware\Oracle_Home\oracle_common -Dopss.version=12.2.1.3
if NOT "%POST_CLASSPATH%"=="" (
set POST_CLASSPATH=D:\oracle\12c\Middleware\Oracle_Home\oracle_common\modules\oracle.jps\jps-manifest.jar;%POST_CLASSPATH%
) else (
set POST_CLASSPATH=D:\oracle\12c\Middleware\Oracle_Home\oracle_common\modules\oracle.jps\jps-manifest.jar
)
@ rem copied data end here
set WL_HOME=D:\Oracle\12c\Middleware\Oracle_Home\wlserver
set _startnm_params=%*
@rem copied from domainhome\bin
set DOMAIN_HOME=D:\oracle\12c\Middleware\Oracle_Home\user_projects\domains\oud_domain
for %%i in ("%DOMAIN_HOME%") do set DOMAIN_HOME=%%~fsi
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.RootDirectory=%DOMAIN_HOME%
set JAVA_OPTIONS=-Doud.product.home=D:\oracle\12c\Middleware\Oracle_Home\oud %JAVA_OPTIONS%
@ rem copied data end here
11. Save the file startNodeManager.sh/cmd .
12. Start per host Nodemanager ORACLE_HOME/wlserver/server/bin
13. Start AdminServer using startWeblogic.sh/cmd
14. Now start Oracle OUD instance using startComponent.cmd oud1