{"id":78,"date":"2021-10-21T19:11:36","date_gmt":"2021-10-21T17:11:36","guid":{"rendered":"https:\/\/home.dtimmermann.de\/wordpress\/?p=78"},"modified":"2024-04-10T21:02:03","modified_gmt":"2024-04-10T19:02:03","slug":"sap-ase","status":"publish","type":"post","link":"https:\/\/www.dtimmermann.de\/index.php\/2021\/10\/21\/sap-ase\/","title":{"rendered":"SAP ASE"},"content":{"rendered":"\n<p>SAP Adaptive Server ist demn\u00e4chst die einzige Datenbank die im SAP Umfeld au\u00dfer SAP Hana noch unterst\u00fctzt wird. Die Sybase Online Dokumentation findet man unter <a href=\"http:\/\/infocenter.sybase.com\/help\/index.jsp\">SyBooks Online<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Monitoring<\/h2>\n\n\n\n<p>Um das Monitoring mit Nagios aufzusetzen muss man zuerst das entsprechende Perl Modul installieren:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>zypper install -t pattern devel_base\nzypper install perl-DBI\ncat \/etc\/ld.so.conf.d\/sybase.conf\n\/sybase\/&lt;SID&gt;\/OCS-16_0\/lib\nexport SYBASE=\/sybase\/&lt;SID&gt;\/OCS-16_0\ncpan\ninstall DBD::Sybase<\/code><\/pre>\n\n\n\n<p>Danach erstellt man in der Datenbank einen entsprechenden User und setzt den Parameter, dass verschl\u00fcsselte Verbindung nicht Pflicht ist. Das Perl Modul funktioniert damit nicht richtig:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>isql -U sapsso -S &lt;SID&gt; -w 1024 -X\n1&gt; use master\n2&gt; go\n1&gt; CREATE LOGIN nagios with password \"&lt;password&gt;\"\n2&gt; go\n1&gt; sp_adduser nagios\n2&gt; go\n1&gt; GRANT ROLE mon_role to nagios\n2&gt; go\n1&gt; sp_modifylogin \"nagios\" , @option=\"passwd expiration\", @value=\"0\"\n2&gt; go\n1&gt; sp_configure \"net password encryption reqd\", 0\n2&gt; go<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Transaction Logs<\/h2>\n\n\n\n<p>Manchmal laufen die Transaction Logs auch voll, obwohl die Datenbank mit der Option &#8218;trunc log on chkpt&#8216; l\u00e4uft. Das passsiert wenn eine Transaktion nicht mehr zum Ende kommt und keinen Commit mehr abgeben kann. Zuerst gilt es diese Transaktion zu finden und zu killen. Danach kann man die Transaction Logs l\u00f6schen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1&gt; select dbid, spid from syslogshold where dbid = db_id (\"sybmgmtdb\")<br>2&gt; go<br>dbid spid<br>31515 228<br>(1 row affected)<br>1&gt; select lct_admin(\"abort\", 228)<br>2&gt; go<br>lct_admin(abort): Process 228 waiting on log-suspend state on database 'sybmgmtdb is<br>being aborted.<br>(1 row affected)<br>1&gt; dump transaction sybmgmtdb with no_log<br>2&gt; go<br>1&gt; quit<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SAP Adaptive Server ist demn\u00e4chst die einzige Datenbank die im SAP Umfeld au\u00dfer SAP Hana noch unterst\u00fctzt wird. Die Sybase Online Dokumentation findet man unter SyBooks Online. Monitoring Um das Monitoring mit Nagios aufzusetzen muss man zuerst das entsprechende Perl Modul installieren: Danach erstellt man in der Datenbank einen entsprechenden User und setzt den Parameter, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-datenbanken"],"_links":{"self":[{"href":"https:\/\/www.dtimmermann.de\/index.php\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dtimmermann.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dtimmermann.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dtimmermann.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dtimmermann.de\/index.php\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":4,"href":"https:\/\/www.dtimmermann.de\/index.php\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":84,"href":"https:\/\/www.dtimmermann.de\/index.php\/wp-json\/wp\/v2\/posts\/78\/revisions\/84"}],"wp:attachment":[{"href":"https:\/\/www.dtimmermann.de\/index.php\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dtimmermann.de\/index.php\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dtimmermann.de\/index.php\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}