{"blog_url":"https://htn20190109.hatenablog.com/","categories":["DB"],"published":"2020-06-07 10:25:13","title":"\u30ec\u30d7\u30ea\u30ab\u63a5\u7d9a\u78ba\u8a8d","provider_url":"https://hatena.blog","width":"100%","author_name":"HTN20190109","provider_name":"Hatena Blog","type":"rich","description":"MySQL (5.6) select @@read_only; Oracle (12cR1) select database_role from v$database; PostgreSQL (9.4) select setting from pg_settingswhere name like 'transaction_read_only'; SQL Server (2019) select is_primary_replicafrom sys.dm_hadr_database_replica_stateswhere is_local = 1;","height":"190","version":"1.0","blog_title":"HTN20190109\u306e\u65e5\u8a18","author_url":"https://blog.hatena.ne.jp/HTN20190109/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhtn20190109.hatenablog.com%2Fentry%2F2020%2F06%2F07%2F102513\" title=\"\u30ec\u30d7\u30ea\u30ab\u63a5\u7d9a\u78ba\u8a8d - HTN20190109\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"url":"https://htn20190109.hatenablog.com/entry/2020/06/07/102513"}