OGG微服务之ServiceManager不能启动也不报错
OGG MA - ServiceManager Is Not Getting Started, When Started Manually Using The Script ./ServiceManager (Doc ID 2453446.1)
SYMPTOMS
When trying to start the ServiceManager manually using ServiceManager file present under the GG_INSTALATION_DIRECTORY/bin on a SOLARIS server , it doesn't throw any error.
But it doesn't start service manager either.
1 2 3 4 5 6 7 8 9 | oracle@db1$ ./ServiceManager oracle@db1$ Oracle GoldenGate Service Manager for Oracle Version 12.3.0.1.2 OGGCORE_12.3.0.1.0_PLATFORMS_171208.0005 Copyright (C) 1995, 2017, Oracle and/or its affiliates. All rights reserved. Solaris, sparc, 64bit (optimized) on Dec 8 2017 11:24:00 Operating system character set identified as US-ASCII. |
Run ps -ef|grep Service , to check if ServiceManager was started successfully
1 2 | oracle@db1$ ps -ef|grep Service oracle 25419 23541 0 16:46 pts/3 00:00:00 grep Service |
As you can see from above steps, though ./ServiceManager didn't throw any error, still ServiceManager wasn't started .
CAUSE
After the server reboot, service manager didn't come up, but when executing ServiceManager script from the command line in the OGG HOME/bin location.
It didn't threw any error, but it didn't start the service manager because the OGG_HOME was not set to Service manager directory.
To start the service manager, it needs to access config file(deploymentRegistry.dat), residing in the service manager directory under etc/conf directory.
SOLUTION
- Set the OGG_HOME to ServiceManager home directory.
1 | export OGG_HOME=/u01/app/ogg/MICROSERVICES/ogg123_sm |
- Start the service manager now
1 2 3 4 5 6 7 8 9 | oracle@db1$ ./ServiceManager oracle@db1$ Oracle GoldenGate Service Manager for Oracle Version 12.3.0.1.2 OGGCORE_12.3.0.1.0_PLATFORMS_171208.0005 Copyright (C) 1995, 2017, Oracle and/or its affiliates. All rights reserved. Solaris, sparc, 64bit (optimized) on Dec 8 2017 11:24:00 Operating system character set identified as US-ASCII. |
3.Now verify if the ServiceManager is up and running using below command.
1 2 3 | ps -ef|grep Service oracle 25277 1 1 16:46 ? 00:00:00 /u01/app/ogg/MICROSERVICES/ogg123_ma/bin/ServiceManager oracle 25419 23541 0 16:46 pts/3 00:00:00 grep Service |
As you can see, ServiceManager started running fine, after setting the OGG_HOME to ServiceManager Home Directory.