{"id":397,"date":"2014-04-13T07:38:43","date_gmt":"2014-04-13T05:38:43","guid":{"rendered":"http:\/\/www.rocworks.at\/wordpress\/?p=397"},"modified":"2014-09-07T15:19:29","modified_gmt":"2014-09-07T13:19:29","slug":"wincc-oa-rdbmanager-config","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=397","title":{"rendered":"WinCC OA RDB-Manager Config &#038; Database Settings&#8230;"},"content":{"rendered":"<p>WinCC OpenArchitecture using Oracle RDB-Manager&#8230;<\/p>\n<p>*) Oracle db_files<br \/>\n*) Oracle logfile size<br \/>\n*) Oracle Password-Lifetime<br \/>\n*) Example WinCC OA config file<br \/>\n*) TCP\/IP timeout settings on windows<br \/>\n*) WinCC OA Archive Group Sizing<\/p>\n<p>Oracle db_files<br \/>\n===============<br \/>\nalter system set db_files=65536 scope=both;<\/p>\n<p>Oracle logfile size<br \/>\n===================<br \/>\nFor huge load (>1000 values\/second) logfile size should be increased!<\/p>\n<p>select * from v$logfile;<\/p>\n<p>alter database add logfile size 512M;<br \/>\nalter database add logfile size 512M;<br \/>\nalter database add logfile size 512M;<\/p>\n<p>remove other\/small logfiles. If the logfiles are the current one then you have to switch the logfile and initiate a checkpoint before you are able to remove the old one.<\/p>\n<p>alter system switch logfile;<br \/>\nalter system checkpoint;<\/p>\n<p>alter database drop logfile group <nr><\/p>\n<p>Oracle Password-Life-Time<br \/>\n=========================<br \/>\nTo prevent password expiration the default profile should be changed.<br \/>\nalter profile default limit password_life_time unlimited;<\/p>\n<p>WinCC OA Config<br \/>\n===============<br \/>\n<code><br \/>\n[general]<br \/>\nuseRDBArchive = 1<br \/>\nuseRDBGroups = 1<\/p>\n<p>[data]<br \/>\nsendAlertsToRAIMA=1 # for HDB\/RDB Parallel<\/p>\n<p>[ValueArchiveRDB]<br \/>\nDbUser = \"PVSSRDB\"<br \/>\nDbPass = \"xxx\"<br \/>\nDbType = \"ORACLE\"<br \/>\nDb = \"DB\"<br \/>\nwriteWithBulk = 1<\/p>\n<p>[ctrl]<br \/>\nqueryRDBdirect = 1<br \/>\nCtrlDLL = \"CtrlADO\"<br \/>\nCtrlDLL = \"CtrlRDBArchive\"<br \/>\nCtrlDLL = \"CtrlRDBCompr\"<\/p>\n<p>[ui]<br \/>\nqueryRDBdirect = 1<br \/>\nCtrlDLL = \"CtrlADO\"<br \/>\nCtrlDLL = \"CtrlRDBArchive\"<br \/>\nCtrlDLL = \"CtrlRDBCompr\"<br \/>\n<\/code><br \/>\n&nbsp;<\/p>\n<p>Example TNSNAMES.ORA for a cluster with two networks:<\/p>\n<p><code><br \/>\nDB =<br \/>\n(DESCRIPTION =<br \/>\n&nbsp;&nbsp;(ENABLE=BROKEN)<br \/>\n&nbsp;&nbsp;(ADDRESS_LIST=<br \/>\n&nbsp;&nbsp;&nbsp;(ADDRESS = (PROTOCOL = TCP)(HOST = mainhdr1-vip)(PORT = 1521))<br \/>\n&nbsp;&nbsp;&nbsp;(ADDRESS = (PROTOCOL = TCP)(HOST = mainhdr1b-vip)(PORT = 1522))<br \/>\n&nbsp;&nbsp;)<br \/>\n&nbsp;&nbsp;(ADDRESS_LIST=<br \/>\n&nbsp;&nbsp;&nbsp;(ADDRESS = (PROTOCOL = TCP)(HOST = mainhdr2-vip)(PORT = 1521))<br \/>\n&nbsp;&nbsp;&nbsp;(ADDRESS = (PROTOCOL = TCP)(HOST = mainhdr2b-vip)(PORT = 1522))<br \/>\n&nbsp;&nbsp;)<br \/>\n&nbsp;&nbsp;(CONNECT_DATA =<br \/>\n&nbsp;&nbsp;&nbsp;(SERVICE_NAME = DB)<br \/>\n&nbsp;&nbsp;&nbsp;(FAILOVER_MODE =<br \/>\n&nbsp;&nbsp;&nbsp;(TYPE = SELECT)<br \/>\n&nbsp;&nbsp;&nbsp;(METHOD = BASIC)<br \/>\n&nbsp;&nbsp;&nbsp;(RETRIES = 20)<br \/>\n&nbsp;&nbsp;&nbsp;(DELAY = 5)<br \/>\n&nbsp;&nbsp;)<br \/>\n&nbsp;)<br \/>\n)<br \/>\n<\/code><\/p>\n<p>Windows TCP\/IP Timeout<br \/>\n======================<br \/>\nAlso the tcp\/ip timeout on windows should be decreased:<\/p>\n<p>Set the following registry entry (or create if it does not exist): KeepAliveTime<\/p>\n<p>Key: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters<br \/>\nValue type: REG_DWORD \u2013 Time in milliseconds<br \/>\nRange: 1 \u2013 0xFFFFFFFF<br \/>\nDefault value: 7.200.000 (two hours)<br \/>\nFor example this value can be set to 180000 (decimal), equals 3 minutes.<\/p>\n<p>WinCC OA Archive Group Sizing<br \/>\n=============================<br \/>\nIncrease the max archive group size of existing (EVENT, ALERT) and new archives. The default size of 1GB is really damn small. Think about the max. db_files parameter (each archive file switch creates a new db file). Sizes of 20GB+ is no problem for Oracle. But keep in mind that there are file size limits (RDB Manager does not use Oracle Big-File-Tablespaces). For a block size of 8k the max file size is 32GB. <\/p>\n<p>Block Size    Maximum Datafile File Size<br \/>\n&#8212;&#8212;&#8212;&#8211;     &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n2k                4194303 * 2k     = 8 GB<br \/>\n4k                4194303 * 4k     = 16 GB<br \/>\n8k                4194303 * 8k     = 32 GB<br \/>\n16k              4194303 * 16k   = 64 GB<br \/>\n32k              4194303 * 32k   = 128 GB<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WinCC OpenArchitecture using Oracle RDB-Manager&#8230; *) Oracle db_files *) Oracle logfile size *) Oracle Password-Lifetime *) Example WinCC OA config file *) TCP\/IP timeout settings on windows *) WinCC OA Archive Group Sizing Oracle db_files =============== alter system set db_files=65536 scope=both; Oracle logfile size =================== For huge load (>1000 values\/second) logfile size should be increased! &hellip; <a href=\"https:\/\/www.rocworks.at\/wordpress\/?p=397\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WinCC OA RDB-Manager Config &#038; Database Settings&#8230;<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[],"class_list":["post-397","post","type-post","status-publish","format-standard","hentry","category-oracle","category-wincc-oa"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=397"}],"version-history":[{"count":26,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/397\/revisions"}],"predecessor-version":[{"id":565,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/397\/revisions\/565"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}