Start WinCC OA as a service under Linux with RDB included
Posted: Mon Jun 17, 2019 9:47 am
WinCC OA can be configured to run as a service under Linux. (see the Chapter in the Help)
You can also configure this WinCC OA to run RDB as well. To run RDB properly you have to install the oracle client on the machine and define the ORACLE_HOME and LD_LIBRARY_PATH.
For a WinCC OA Project running as a service under Linux you have to define this variables in the file:
/etc/systemd/system/winccoa@service
see example below:
[Unit]
Description=WinCC OA project '%i'
[Service]
ExecStart=/opt/WinCC_OA/3.16/bin/WCCILpmon -proj %i
ExecStop=/opt/WinCC_OA/3.16/bin/WCCILpmon -proj %i -stopWait
Environment="ORACLE_HOME=/home/ladmin/app/ladmin/product/12.1.0/client_1" "LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/home/ladmin/app/ladmin/product/12.1.0/client_1/lib32:/home/ladmin/app/ladmin/product/12.1.0/client_1/lib"
[Install]
WantedBy=multi-user.target
You can also configure this WinCC OA to run RDB as well. To run RDB properly you have to install the oracle client on the machine and define the ORACLE_HOME and LD_LIBRARY_PATH.
For a WinCC OA Project running as a service under Linux you have to define this variables in the file:
/etc/systemd/system/winccoa@service
see example below:
[Unit]
Description=WinCC OA project '%i'
[Service]
ExecStart=/opt/WinCC_OA/3.16/bin/WCCILpmon -proj %i
ExecStop=/opt/WinCC_OA/3.16/bin/WCCILpmon -proj %i -stopWait
Environment="ORACLE_HOME=/home/ladmin/app/ladmin/product/12.1.0/client_1" "LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/home/ladmin/app/ladmin/product/12.1.0/client_1/lib32:/home/ladmin/app/ladmin/product/12.1.0/client_1/lib"
[Install]
WantedBy=multi-user.target