{"id":12871,"date":"2019-10-09T20:07:52","date_gmt":"2019-10-09T18:07:52","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/"},"modified":"2019-10-09T20:07:52","modified_gmt":"2019-10-09T18:07:52","slug":"creating-archived-redolog-files-in-group-dba-instead-of-oinstall","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/","title":{"rendered":"Creating archived redolog-files in group dba instead of oinstall"},"content":{"rendered":"<h3>Since Oracle 11g files created by the database belong by default to the Linux group oinstall. Changing the default group after creating the central inventory is difficult. In this Blog I want to show how locally created archived redo can be in group dba instead of oinstall.<\/h3>\n<p>One of my customers had the requirement to provide read-access on archived redo to an application for logmining. To ensure the application can access the archived redo, we created an additinal local archive log destination:<\/p>\n<p><code><br \/>\nLOG_ARCHIVE_DEST_9 = 'LOCATION=\/logmining\/ARCHDEST\/NCEE19C valid_for=(online_logfile,primary_role)'<br \/>\n<\/code><\/p>\n<p>and provided NFS-access to that directory for the application. To ensure that the application can access the archived redo, the remote user was part of a remote dba-group, which had the same group-id (GID) as the dba-group on the DB-server. Everything worked fine until we migrated to a new server and changed the setup to use oinstall as the default group for Oracle. The application could no longer read the files, because they were created with group oinstall:<\/p>\n<p><code><br \/>\noracle@19c:\/logmining\/ARCHDEST\/NCEE19C\/ [NCEE19C] ls -ltr<br \/>\n-rw-r-----. 1 oracle oinstall 24403456 Oct  9 21:21 1_32_1017039068.dbf<br \/>\n-rw-r-----. 1 oracle oinstall    64000 Oct  9 21:25 1_33_1017039068.dbf<br \/>\n-rw-r-----. 1 oracle oinstall 29625856 Oct  9 21:27 1_34_1017039068.dbf<br \/>\noracle@19c:\/logmining\/ARCHDEST\/NCEE19C\/ [NCEE19C]<br \/>\n<\/code><\/p>\n<p>One possibility to workaround this would have been to use the id-mapper on Linux, but there&#8217;s something better:<\/p>\n<p>With the group-sticky-bit on Linux we can achieve, that all files in a directory are part of the group of the directory.<\/p>\n<p>I.e.<\/p>\n<p><code><br \/>\noracle@19c:\/logmining\/ARCHDEST\/ [NCEE19C] ls -l<br \/>\ntotal 0<br \/>\ndrwxr-xr-x. 1 oracle dba 114 Oct  9 21:27 NCEE19C<br \/>\noracle@19c:\/logmining\/ARCHDEST\/ [NCEE19C] chmod g+s NCEE19C<br \/>\noracle@19c:\/logmining\/ARCHDEST\/ [NCEE19C] ls -l<br \/>\ndrwxr-sr-x. 1 oracle dba 114 Oct  9 21:27 NCEE19C<br \/>\n<\/code><\/p>\n<p>Whenever an archived redo is created in that directory it will be in the dba-group:<\/p>\n<p><code><br \/>\nSQL&gt; alter system switch logfile;<br \/>\n&nbsp;<br \/>\nSystem altered.<br \/>\n&nbsp;<br \/>\nSQL&gt; exit<br \/>\n&nbsp;<br \/>\noracle@19c:\/logmining\/ARCHDEST\/ [NCEE19C] cd NCEE19C\/<br \/>\noracle@19c:\/logmining\/ARCHDEST\/NCEE19C\/ [NCEE19C] ls -ltr<br \/>\n-rw-r-----. 1 oracle oinstall 24403456 Oct  9 21:21 1_32_1017039068.dbf<br \/>\n-rw-r-----. 1 oracle oinstall    64000 Oct  9 21:25 1_33_1017039068.dbf<br \/>\n-rw-r-----. 1 oracle oinstall 29625856 Oct  9 21:27 1_34_1017039068.dbf<br \/>\n-rw-r-----. 1 oracle dba        193024 Oct  9 21:50 1_35_1017039068.dbf<br \/>\noracle@19c:\/logmining\/ARCHDEST\/NCEE19C\/ [NCEE19C]<br \/>\n<\/code><\/p>\n<p>To make all files part of the dba-group use chgrp and use the newest archivelog as a reference:<\/p>\n<p><code><br \/>\noracle@19c:\/logmining\/ARCHDEST\/NCEE19C\/ [NCEE19C] chgrp --reference 1_35_1017039068.dbf 1_3[2-4]*.dbf<br \/>\noracle@19c:\/logmining\/ARCHDEST\/NCEE19C\/ [NCEE19C] ls -ltr<br \/>\n-rw-r-----. 1 oracle dba 24403456 Oct  9 21:21 1_32_1017039068.dbf<br \/>\n-rw-r-----. 1 oracle dba    64000 Oct  9 21:25 1_33_1017039068.dbf<br \/>\n-rw-r-----. 1 oracle dba 29625856 Oct  9 21:27 1_34_1017039068.dbf<br \/>\n-rw-r-----. 1 oracle dba   193024 Oct  9 21:50 1_35_1017039068.dbf<br \/>\noracle@19c:\/logmining\/ARCHDEST\/NCEE19C\/ [NCEE19C]<br \/>\n<\/code><\/p>\n<p>Hope this helps somebody.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since Oracle 11g files created by the database belong by default to the Linux group oinstall. Changing the default group after creating the central inventory is difficult. In this Blog I want to show how locally created archived redo can be in group dba instead of oinstall. One of my customers had the requirement to [&hellip;]<\/p>\n","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[198,59],"tags":[1711,23,1712,96],"type_dbi":[],"class_list":["post-12871","post","type-post","status-publish","format-standard","hentry","category-database-management","category-oracle","tag-archived-redo","tag-dba","tag-oinstall","tag-oracle"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Creating archived redolog-files in group dba instead of oinstall - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating archived redolog-files in group dba instead of oinstall\" \/>\n<meta property=\"og:description\" content=\"Since Oracle 11g files created by the database belong by default to the Linux group oinstall. Changing the default group after creating the central inventory is difficult. In this Blog I want to show how locally created archived redo can be in group dba instead of oinstall. One of my customers had the requirement to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-09T18:07:52+00:00\" \/>\n<meta name=\"author\" content=\"Clemens Bleile\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ifgtxD2SrQ8r!YuXj\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Clemens Bleile\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\\\/\"},\"author\":{\"name\":\"Clemens Bleile\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ac04011f60f2e93c115358d0789c2da\"},\"headline\":\"Creating archived redolog-files in group dba instead of oinstall\",\"datePublished\":\"2019-10-09T18:07:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\\\/\"},\"wordCount\":249,\"commentCount\":0,\"keywords\":[\"archived redo\",\"DBA\",\"oinstall\",\"Oracle\"],\"articleSection\":[\"Database management\",\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\\\/\",\"name\":\"Creating archived redolog-files in group dba instead of oinstall - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"datePublished\":\"2019-10-09T18:07:52+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ac04011f60f2e93c115358d0789c2da\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating archived redolog-files in group dba instead of oinstall\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ac04011f60f2e93c115358d0789c2da\",\"name\":\"Clemens Bleile\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1f596609fc67cb28ed714e7bccc81ed4cd73b8582a8148a490c77daeb2fde21a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1f596609fc67cb28ed714e7bccc81ed4cd73b8582a8148a490c77daeb2fde21a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1f596609fc67cb28ed714e7bccc81ed4cd73b8582a8148a490c77daeb2fde21a?s=96&d=mm&r=g\",\"caption\":\"Clemens Bleile\"},\"description\":\"Clemens Bleile has more than 30 years of IT experience, thirteen in Oracle Support and fifteen in Oracle Consulting. He is specialized in Oracle Database Performance Tuning (SQL Tuning, DB Tuning) and developing an Oracle DB IT architecture (highly available, low-maintenance, cost efficient storage of data). He is an expert in problem analysis and resolution. Prior to joining dbi services, Clemens Bleile was Manager of the EMEA Database Performance team at the Oracle Global Customer Support Services. Clemens Bleile is Oracle Certified Professional 11g, 12c and Oracle Certified Expert for Performance Management and Tuning and holds a Master Degree, Business Information Systems from the Fachhochschule Furtwangen, Germany.\",\"sameAs\":[\"https:\\\/\\\/www.dbi-services.com\",\"https:\\\/\\\/x.com\\\/ifgtxD2SrQ8r!YuXj\"],\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/clemens-bleile\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Creating archived redolog-files in group dba instead of oinstall - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/","og_locale":"en_US","og_type":"article","og_title":"Creating archived redolog-files in group dba instead of oinstall","og_description":"Since Oracle 11g files created by the database belong by default to the Linux group oinstall. Changing the default group after creating the central inventory is difficult. In this Blog I want to show how locally created archived redo can be in group dba instead of oinstall. One of my customers had the requirement to [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/","og_site_name":"dbi Blog","article_published_time":"2019-10-09T18:07:52+00:00","author":"Clemens Bleile","twitter_card":"summary_large_image","twitter_creator":"@ifgtxD2SrQ8r!YuXj","twitter_misc":{"Written by":"Clemens Bleile","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/"},"author":{"name":"Clemens Bleile","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0ac04011f60f2e93c115358d0789c2da"},"headline":"Creating archived redolog-files in group dba instead of oinstall","datePublished":"2019-10-09T18:07:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/"},"wordCount":249,"commentCount":0,"keywords":["archived redo","DBA","oinstall","Oracle"],"articleSection":["Database management","Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/","url":"https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/","name":"Creating archived redolog-files in group dba instead of oinstall - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2019-10-09T18:07:52+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0ac04011f60f2e93c115358d0789c2da"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/creating-archived-redolog-files-in-group-dba-instead-of-oinstall\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Creating archived redolog-files in group dba instead of oinstall"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0ac04011f60f2e93c115358d0789c2da","name":"Clemens Bleile","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1f596609fc67cb28ed714e7bccc81ed4cd73b8582a8148a490c77daeb2fde21a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1f596609fc67cb28ed714e7bccc81ed4cd73b8582a8148a490c77daeb2fde21a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1f596609fc67cb28ed714e7bccc81ed4cd73b8582a8148a490c77daeb2fde21a?s=96&d=mm&r=g","caption":"Clemens Bleile"},"description":"Clemens Bleile has more than 30 years of IT experience, thirteen in Oracle Support and fifteen in Oracle Consulting. He is specialized in Oracle Database Performance Tuning (SQL Tuning, DB Tuning) and developing an Oracle DB IT architecture (highly available, low-maintenance, cost efficient storage of data). He is an expert in problem analysis and resolution. Prior to joining dbi services, Clemens Bleile was Manager of the EMEA Database Performance team at the Oracle Global Customer Support Services. Clemens Bleile is Oracle Certified Professional 11g, 12c and Oracle Certified Expert for Performance Management and Tuning and holds a Master Degree, Business Information Systems from the Fachhochschule Furtwangen, Germany.","sameAs":["https:\/\/www.dbi-services.com","https:\/\/x.com\/ifgtxD2SrQ8r!YuXj"],"url":"https:\/\/www.dbi-services.com\/blog\/author\/clemens-bleile\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/12871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=12871"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/12871\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=12871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=12871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=12871"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=12871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}