<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>die Seilerwerks</title>
    <description>IT | Linux | Databases | Infrastructure</description>
    <link>https://seiler.us</link>
    <atom:link href="https://seiler.us/feed.xml" rel="self" type="application/rss+xml" />
    
      <item>
        <title>Encoding Lazy-Loaded Values in Chef for HTTP Authentication</title>
        <description>
          
          I spent the better part of 3 days banging my head against my desk trying to sort out HTTP authentication for Chef’s remote_file resource. The method itself is straight-forward: you have to Base64 encode the username and password and specify that in a hash for the headers parameter for remote_file....
        </description>
        <pubDate>Tue, 15 Mar 2022 00:00:00 -0500</pubDate>
        <link>https://seiler.us/2022-03-15-chef-encode-lazy-vars/</link>
        <guid isPermaLink="true">https://seiler.us/2022-03-15-chef-encode-lazy-vars/</guid>
      </item>
    
      <item>
        <title>Speeding Up PostgreSQL Recovery with pgBackRest</title>
        <description>
          
          I recently had a replica that was restarted but was having trouble getting caught up enough to enable streaming replication. The WAL archive restore &amp;amp; recovery was taking just a little too long. The pgBackRest team offered these very helpful tips and I wanted to share them with all of...
        </description>
        <pubDate>Sun, 23 May 2021 00:00:00 -0500</pubDate>
        <link>https://seiler.us/2021-05-23-speeding-up-pgbackrest-recovery/</link>
        <guid isPermaLink="true">https://seiler.us/2021-05-23-speeding-up-pgbackrest-recovery/</guid>
      </item>
    
      <item>
        <title>Unattended Upgrades, Ubuntu 18.04, and PostgreSQL 10: The Perfect Storm</title>
        <description>
          
          We recently enabled unattended-upgrades on our Ubuntu 18.04 LTS (Bionic) servers, including our PostgreSQL hosts. By default, unattended-upgrades will ignore PGDG packages (where all of our PostgreSQL packages come from), so I had assumed we wouldn’t have any interruptions due to apt installing updates and triggering a database restart. One...
        </description>
        <pubDate>Wed, 18 Nov 2020 00:00:00 -0600</pubDate>
        <link>https://seiler.us/2020-11-18-unattended-upgrades/</link>
        <guid isPermaLink="true">https://seiler.us/2020-11-18-unattended-upgrades/</guid>
      </item>
    
      <item>
        <title>Sequence Caching: Oracle vs. PostgreSQL</title>
        <description>
          
          Many RDBMSes use sequence caching to pre-generate sequence values in advance and store them in memory, allowing them to return new values quickly. If you are doing a lot of inserts that each call the sequence to get the next value, sequence caching is a good thing. Having to wait...
        </description>
        <pubDate>Tue, 02 Oct 2018 00:00:00 -0500</pubDate>
        <link>https://seiler.us/2018-10-02-sequence-caching-oracle-vs-postgresql/</link>
        <guid isPermaLink="true">https://seiler.us/2018-10-02-sequence-caching-oracle-vs-postgresql/</guid>
      </item>
    
      <item>
        <title>NULL Means NULL</title>
        <description>
          A Story of the Laziest User Recreation Script Ever - 
          Encountering the NULL Recently I wanted to write a script to drop and recreate app users, keeping their existing passwords. For this post we’ll say I have 3 users: bigsam, marco, and rhino. My first attempt something like this: postgres=# select &apos;CREATE USER &apos;||usename||&apos; ENCRYPTED PASSWORD &apos;&apos;&apos;||passwd||&apos;&apos;&apos;;&apos; postgres-# from pg_shadow...
        </description>
        <pubDate>Sun, 01 Jul 2018 00:00:00 -0500</pubDate>
        <link>https://seiler.us/2018-07-01-null-passwords/</link>
        <guid isPermaLink="true">https://seiler.us/2018-07-01-null-passwords/</guid>
      </item>
    
      <item>
        <title>Altering Default Privileges For Fun and Profit</title>
        <description>
          What NOT to expect when you&apos;re expecting. - 
          One of the big changes I came upon as I transitioned from Oracle to PostgreSQL was how privileges are handled. In Oracle, an object’s schema also determines its owner, as the schema is generally that user’s objects. PostgreSQL disassociates schemas from users. Schemas do have owners, but a given user...
        </description>
        <pubDate>Tue, 05 Jun 2018 00:00:00 -0500</pubDate>
        <link>https://seiler.us/2018-06-05-alter-default-privs/</link>
        <guid isPermaLink="true">https://seiler.us/2018-06-05-alter-default-privs/</guid>
      </item>
    
      <item>
        <title>USAGE Privilege Prevents Dropping Users</title>
        <description>
          ACLs FTW - 
          The Incident While cleaning up some obsolete user accounts, one of my DROP USER commands failed with: ERROR: 2BP01: role &quot;joe&quot; cannot be dropped because some objects depend on it Querying the usual catalog views, I couldn’t find any objects owned by this user. That’s when I noticed the line...
        </description>
        <pubDate>Fri, 11 May 2018 00:00:00 -0500</pubDate>
        <link>https://seiler.us/2018-05-11-usage-prevents-drop-user/</link>
        <guid isPermaLink="true">https://seiler.us/2018-05-11-usage-prevents-drop-user/</guid>
      </item>
    
      <item>
        <title>Moved to GitHub Pages</title>
        <description>
          Yet Another Beautiful Jekyll Site! - 
          If you’re reading this, then the migration has worked. My blog is now hosted via GitHub Pages. Many thanks to Kris Rice for his Blogger migration blog post and source code to get me set. I might move some other stuff under this site as well, namely my notes currently...
        </description>
        <pubDate>Fri, 11 May 2018 00:00:00 -0500</pubDate>
        <link>https://seiler.us/2018-05-11-moved-to-github-pages/</link>
        <guid isPermaLink="true">https://seiler.us/2018-05-11-moved-to-github-pages/</guid>
      </item>
    
      <item>
        <title>Beware (Sort-Of) Ambiguous Column Names In Sub-Selects</title>
        <description>
          
          This morning I received an UPDATE statement from a developer that I was testing. It ran without errors but then I saw that it updated 5 rows when it should have only updated 3. The reason gave me a little shock so I whipped up a simple test-case to reproduce...
        </description>
        <pubDate>Mon, 30 Apr 2018 12:55:00 -0500</pubDate>
        <link>https://seiler.us/2018-04-30-beware-sort-of-ambiguous-column-names/</link>
        <guid isPermaLink="true">https://seiler.us/2018-04-30-beware-sort-of-ambiguous-column-names/</guid>
      </item>
    
      <item>
        <title>How (Not) to Change Passwords in PostgreSQL</title>
        <description>
          
          A few months ago I was doing some testing on a development PostgreSQL database and watching the postgresql server log (akin to Oracle&apos;s alert log). I was skimming for lines relevant to my testing when I noticed something chilling:LOG:&amp;nbsp; statement: alter user john password &apos;IloveDBAs&apos;;The username and password have obviously...
        </description>
        <pubDate>Sat, 14 Apr 2018 11:53:00 -0500</pubDate>
        <link>https://seiler.us/2018-04-14-how-not-to-change-passwords-in/</link>
        <guid isPermaLink="true">https://seiler.us/2018-04-14-how-not-to-change-passwords-in/</guid>
      </item>
    
      <item>
        <title>The Transition (or: How I Learned to Stop Worrying and Love PostgreSQL)</title>
        <description>
          
          Note: Yes I re-(ab)used the title.As some of you may know (if you follow me on twitter), after 16 years as an Oracle DBA, I made a career shift last summer. I hung up the Oracle spurs (and that sweet Oracle Ace vest) and threw on a pair of PostgreSQL...
        </description>
        <pubDate>Fri, 09 Feb 2018 14:31:00 -0600</pubDate>
        <link>https://seiler.us/2018-02-09-the-transition-or-how-i-learned-to-stop/</link>
        <guid isPermaLink="true">https://seiler.us/2018-02-09-the-transition-or-how-i-learned-to-stop/</guid>
      </item>
    
      <item>
        <title>Sending notifications from Oracle Enterprise Manager to VictorOps</title>
        <description>
          
          We use VictorOps for our paging/notification system, and we&apos;re pretty happy with it so far. On the DBA team, we&apos;ve just been using a simple email gateway to send notifications from Oracle Enterprise Manager (EM) to VictorOps. Even then, we can only send the initial notification and not really send...
        </description>
        <pubDate>Thu, 28 Jan 2016 11:55:00 -0600</pubDate>
        <link>https://seiler.us/2016-01-28-sending-notifications-from-oracle/</link>
        <guid isPermaLink="true">https://seiler.us/2016-01-28-sending-notifications-from-oracle/</guid>
      </item>
    
      <item>
        <title>Just XFS Things</title>
        <description>
          
          $ uptime

 16:36:42 up 4 days, 12:28, 6 users, load average: 1029.20, 995.42, 865.77


See this and that (requires RedHat subscription) for details. And defrag your XFS volumes.

        </description>
        <pubDate>Tue, 10 Nov 2015 16:03:00 -0600</pubDate>
        <link>https://seiler.us/2015-11-10-just-xfs-things/</link>
        <guid isPermaLink="true">https://seiler.us/2015-11-10-just-xfs-things/</guid>
      </item>
    
      <item>
        <title>The Leap Second is No Laughing Matter (if you have java on an older Linux kernel)</title>
        <description>
          
          Earlier this month we began getting frequent email warnings from our EM12c server that some agents were experiencing read time outs. Then we saw that the emagent java process was using A LOT of CPU, regularly around 500% but sometimes as high as 800% as seen from &quot;top&quot;. Restarting the...
        </description>
        <pubDate>Tue, 21 Jul 2015 16:50:00 -0500</pubDate>
        <link>https://seiler.us/2015-07-21-the-leap-second-is-no-laughing-matter/</link>
        <guid isPermaLink="true">https://seiler.us/2015-07-21-the-leap-second-is-no-laughing-matter/</guid>
      </item>
    
      <item>
        <title>Upgrade to Oracle 12c, Get the Huge Trace Files for Free!</title>
        <description>
          
          Last week we began testing a copy of our production database on Oracle 12c (12.1.0.2). This past weekend we were alerted that the disk holding our ADR diagnostic directory was near full. We noticed some pretty big (and recent) trace files there. Then it happened twice more. This last time...
        </description>
        <pubDate>Tue, 21 Jul 2015 12:12:00 -0500</pubDate>
        <link>https://seiler.us/2015-07-21-upgrade-to-oracle-12c-get-huge-trace/</link>
        <guid isPermaLink="true">https://seiler.us/2015-07-21-upgrade-to-oracle-12c-get-huge-trace/</guid>
      </item>
    
      <item>
        <title>Returning Error Codes from sqlplus to Shell Scripts</title>
        <description>
          
          When I have to run SQL scripts, I prefer to do it via executable ksh scripts (I use ksh because it&apos;s usually an Oracle pre-requisite so I can rely on it being installed). One thing that I&apos;ve just recently started adding into my scripts is exiting sqlplus on error and...
        </description>
        <pubDate>Tue, 06 Jan 2015 15:32:00 -0600</pubDate>
        <link>https://seiler.us/2015-01-06-returning-error-codes-from-sqlplus-to/</link>
        <guid isPermaLink="true">https://seiler.us/2015-01-06-returning-error-codes-from-sqlplus-to/</guid>
      </item>
    
      <item>
        <title>Making Copies of Copies with Oracle RMAN</title>
        <description>
          
          I recently had need to make a copy of an image copy in Oracle rman. Since it wasn&apos;t immediately obvious to me, I thought it was worth sharing once I had it sorted out. I was familiar with making a backup of a backup, but had never thought about making...
        </description>
        <pubDate>Wed, 12 Nov 2014 10:13:00 -0600</pubDate>
        <link>https://seiler.us/2014-11-12-making-copies-of-copies-with-oracle-rman/</link>
        <guid isPermaLink="true">https://seiler.us/2014-11-12-making-copies-of-copies-with-oracle-rman/</guid>
      </item>
    
      <item>
        <title>The Importance of Backups (A Cautionary Block Recovery Tale)</title>
        <description>
          
          Just wanted to share a quick story with everyone. As I was in the airport waiting to fly to Oracle OpenWorld this year, I noticed a flurry of emails indicating that part of our storage infrastructure for our standby production database had failed. Long story short, my co-workers did a...
        </description>
        <pubDate>Tue, 04 Nov 2014 22:28:00 -0600</pubDate>
        <link>https://seiler.us/2014-11-04-the-importance-of-backups-cautionary/</link>
        <guid isPermaLink="true">https://seiler.us/2014-11-04-the-importance-of-backups-cautionary/</guid>
      </item>
    
      <item>
        <title>ORA-16534 When Converting to/from Snapshot Standby with DataGuard Broker</title>
        <description>
          
          We here at Seilerwerks Industries (not really) have been using snapshot standby databases to refresh an array of unit test databases from a common primary. During the business day, these would be converted to snapshot standby databases for testing, then overnight they are converted back to physical standby and recovered...
        </description>
        <pubDate>Wed, 22 Oct 2014 23:00:00 -0500</pubDate>
        <link>https://seiler.us/2014-10-22-ora-16534-when-converting-tofrom/</link>
        <guid isPermaLink="true">https://seiler.us/2014-10-22-ora-16534-when-converting-tofrom/</guid>
      </item>
    
      <item>
        <title>Advanced Queue Quickie: Errors and Privileges</title>
        <description>
          
          File this one under the misleading-errors department. One of my developers was working with a new queue. He pinged me when he got this error trying to create a job that used the queue:ERROR at line 1:ORA-27373: unknown or illegal event source queueORA-06512: at &quot;SYS.DBMS_ISCHED&quot;, line 124ORA-06512: at &quot;SYS.DBMS_SCHEDULER&quot;, line...
        </description>
        <pubDate>Wed, 01 Oct 2014 23:07:00 -0500</pubDate>
        <link>https://seiler.us/2014-10-01-advanced-queue-quickie-errors-and/</link>
        <guid isPermaLink="true">https://seiler.us/2014-10-01-advanced-queue-quickie-errors-and/</guid>
      </item>
    
  </channel>
</rss>
