Presentation is loading. Please wait.

Presentation is loading. Please wait.

Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS 2011, October 17-21 at CEA Saclay, France Control System Studio.

Similar presentations


Presentation on theme: "Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS 2011, October 17-21 at CEA Saclay, France Control System Studio."— Presentation transcript:

1 Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS kasemirk@ornl.gov 2011, October 17-21 at CEA Saclay, France Control System Studio Training - Infrastructure: JMS, RDB

2 2Managed by UT-Battelle for the Department of Energy Relational Database  Required for archive, alarm system, message log  Dialects: MySQL, PostgreSQL, Oracle  Details far beyond this training, but need to –Maybe start/stop RDB –Connect as administrator to create tables –Create user for archive, alarm system, … –Connect as user “archive” or “alarm”

3 3Managed by UT-Battelle for the Department of Energy Starting, Stopping MySQL Server … is really beyond this training session, but…  Start on Linux, Mac OS X, as root /usr/local/mysql/bin/mysqld_safe –user=mysql &  Stop, as any user /usr/local/mysql/bin/mysqladmin -u root -p shutdown

4 4Managed by UT-Battelle for the Department of Energy Start MySQL Shell  Connect as administrator mysql -u root –p Will prompt for password entry. Can also include password in comand line: mysql -u root –p’$root’ Note: Space after “-u” but no space for “–p”  Connect as archive user to archive database, prompting for password mysql –u archive –p archive Include password on command line: mysql –u archive –p’$archive’ archive

5 5Managed by UT-Battelle for the Department of Energy MySQL Connection from CSS  URL jdbc:mysql://localhost/archive  User, password What we set when creating the user, e.g. “archive”, “$archive”  Schema Was added to support MySQL, Oracle and Postgres. For MySQL, has to be emptySchema Example plugin_customization.ini: org.csstudio.archive.rdb/url=jdbc:mysql://localhost/archive org.csstudio.archive.rdb/user=archive org.csstudio.archive.rdb/password=$archive org.csstudio.archive.rdb/schema=

6 6Managed by UT-Battelle for the Department of Energy Java Message Server, JMS  Specifically: Apache ActiveMQ  Start cd [activemq_install_dir] bin/activemq  URL for CSS clients failover:(tcp://localhost:61616)


Download ppt "Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS 2011, October 17-21 at CEA Saclay, France Control System Studio."

Similar presentations


Ads by Google