<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Erdogan Uysal on Medium]]></title>
        <description><![CDATA[Stories by Erdogan Uysal on Medium]]></description>
        <link>https://medium.com/@doganuysl?source=rss-75a4e8ed2ba3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*A4ueWGfyU3iPZ0PaSuLseQ.jpeg</url>
            <title>Stories by Erdogan Uysal on Medium</title>
            <link>https://medium.com/@doganuysl?source=rss-75a4e8ed2ba3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:19:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@doganuysl/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Missing Piece in Your Patching Cycle: Oracle Data Pump Bundle Patch]]></title>
            <link>https://medium.com/@doganuysl/the-missing-piece-in-your-patching-cycle-oracle-data-pump-bundle-patch-19e0a6386a15?source=rss-75a4e8ed2ba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/19e0a6386a15</guid>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[database-administration]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[database-patching]]></category>
            <dc:creator><![CDATA[Erdogan Uysal]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 18:46:01 GMT</pubDate>
            <atom:updated>2026-09-22T20:29:59.327Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P0XAVER4IJW5b3pri_b_zw.jpeg" /></figure><p>Every Oracle Database Administrator knows the quarterly routine: planning <strong>Release Updates (RUs)</strong>, patching the Database Home, updating <strong>OJVM</strong>, and cycling services.</p><p>However, one high-utility component is frequently overlooked: <strong>Oracle Data Pump</strong>.</p><p>Because Data Pump handles critical daily operations like logical backups, schema migrations, and Transportable Tablespaces (TTS), leaving it unpatched exposes your environment to unexpected performance bottlenecks and execution bugs.</p><h3>Why Oracle Recommends Data Pump Patches</h3><p>Oracle releases <strong>Data Pump Bundle Patches (DPBP)</strong> as interim patches sitting on top of specific RUs (starting from 19.10+, documented in <strong>MOS Note: 2819284.1</strong>). Relying solely on the base RU means missing out on vital fixes.</p><ul><li><strong>Eliminating Cryptic ORA- Errors:</strong> Resolves unexpected internal bugs and failure codes during export/import routines.</li><li><strong>Fixing Performance Degradation:</strong> Addresses severe slowdowns during metadata processing caused by inefficient data dictionary queries.</li><li><strong>Securing Data Handling:</strong> Introduces stability fixes for dumpfiles and network-link operations.</li><li><strong>Handling Long-Running TTS Issues:</strong> Remediates hangs and synchronization issues during large-scale pluggable data movements.</li></ul><h3>⚠️ Critical Upgrade Order</h3><p>If upgrading an Oracle Home that already has an older DPBP installed, follow this strict sequence:</p><ol><li><strong>Roll back</strong> the older version of the DPBP.</li><li><strong>Apply</strong> the new target Release Update (RU).</li><li><strong>Apply</strong> the new DPBP that matches the newly applied RU release.</li></ol><h3>Step-by-Step Patch Application</h3><p>The Data Pump Bundle Patch is a <strong>non-binary, online-installable patch</strong>. You can safely apply it to a running Oracle Home without stopping the database instance — <strong>provided that no Data Pump jobs are actively running</strong>.</p><p>Here is the exact technical workflow used to apply <strong>Patch 38170982</strong> on an Oracle 19.28.0.0 environment.</p><h3>1. Verify the Current Server Patch Level</h3><p>Check your exact database release update version using opatch lspatches:</p><pre>[oracle@hostname ~]$ opatch lspatches</pre><pre>37847857;OJVM RELEASE UPDATE: 19.28.0.0.250715 (37847857)<br>37960098;Database Release Update : 19.28.0.0.250715 (37960098)<br>37962946;OCW RELEASE UPDATE 19.28.0.0.0 (37962946)</pre><p>The environment is running <strong>19.28.0.0</strong>. We downloaded the generic, non-Windows patch version (p38170982_1928000DBRU_Generic.zip) matching this release.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1zRijYcmfl9TTWYd6UnPQg.png" /></figure><h3>2. Prepare the Software and Check Active Jobs</h3><p>Extract the downloaded patch package on the database server:</p><pre>[oracle@hostname ]$ mkdir -p /u01/software<br>[oracle@hostname ]$ unzip -q p38170982_1928000DBRU_Generic.zip -d /u01/software/<br>[oracle@hostname ]$ cd /u01/software/38170982/</pre><p>Confirm that the database instances are running normally by listing the Process Monitor (pmon) background processes:</p><pre>[oracle@hostname 38170982]$ ps -ef | grep pmon<br>oracle   4016530       1  0 Jul21 ?        00:00:49 asm_pmon_+ASM<br>oracle   4018309       1  0 Jul21 ?        00:02:04 ora_pmon_SID</pre><p>Since this is an online patch, ensure <strong>no Data Pump tasks are currently processing</strong>. Log into the database and query the data dictionary:</p><p><em>Ensure this query returns zero rows before moving forward.</em></p><h3>3. Run the Conflict Prerequisite Check</h3><p>Validate that the new patch does not introduce software conflicts with interim patches already present inside your Oracle Home:</p><pre>[oracle@hostname 38170982]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/software/38170982</pre><h3>4. Apply the Interim Patch Binary Changes</h3><p>Execute the OPatch utility from the database home directory in silent mode:</p><pre>[oracle@hostname 38170982]$ $ORACLE_HOME/OPatch/opatch apply -silent<br><br>Oracle Interim Patch Installer version 12.2.0.1.47<br>Copyright (c) 2026, Oracle Corporation.  All rights reserved.</pre><pre>Oracle Home       : /u01/app/oracle/product/19.0.0.0/dbhome_1<br>Central Inventory : /u01/app/oraInventory<br>   from           : /u01/app/oracle/product/19.0.0.0/dbhome_1/oraInst.loc<br>OPatch version    : 12.2.0.1.47<br>OUI version       : 12.2.0.7.0<br>Log file location : /u01/app/oracle/product/19.0.0.0/dbhome_1/cfgtoollogs/opatch/opatch2026-08-03_10-17-42AM_1.log</pre><pre>Verifying environment and performing prerequisite checks...<br>OPatch continues with these patches:   38170982  </pre><pre>Do you want to proceed? [y|n]<br>y<br>User Responded with: Y<br>All checks passed.<br>Backing up files...<br>Applying interim patch &#39;38170982&#39; to OH &#39;/u01/app/oracle/product/19.0.0.0/dbhome_1&#39;</pre><pre>Patching component oracle.rdbms.dbscripts, 19.0.0.0.0...<br>Patching component oracle.rdbms, 19.0.0.0.0...<br>Patch 38170982 successfully applied.<br>Log file location: /u01/app/oracle/product/19.0.0.0/dbhome_1/cfgtoollogs/opatch/opatch2026-08-03_10-17-42AM_1.log</pre><pre>OPatch succeeded.</pre><h3>5. Load the Patch SQL Changes into the Database</h3><p>Run datapatch to automate loading the SQL inventory updates into the database dictionary:</p><pre>[oracle@hostname 38170982]$ $ORACLE_HOME/OPatch/datapatch<br><br>Current state of release update SQL patches:<br>  Binary registry:<br>    19.28.0.0.0 Release_Update 250705030417: Installed<br>  SQL registry:<br>    Applied 19.28.0.0.0 Release_Update 250705030417 successfully on 28-NOV-25 04.43.44.850829 PM</pre><pre>Adding patches to installation queue and performing prereq checks...done<br>Installation queue:<br>  No interim patches need to be rolled back<br>  No release update patches need to be installed<br>  The following interim patches will be applied:<br>    38170982 (DATAPUMP BUNDLE PATCH 19.28.0.0.0)</pre><pre>Installing patches…<br>Validating logfiles...done<br>Patch 38170982 apply: SUCCESS</pre><h3>Post-Patch Verification &amp; Conclusion</h3><p>Verify that the installation completed perfectly and the inventory reflects the current patch framework by running opatch lspatches:</p><pre>[oracle@hostname 38170982]$ opatch lspatches<br>38170982;DATAPUMP BUNDLE PATCH 19.28.0.0.0<br>37847857;OJVM RELEASE UPDATE: 19.28.0.0.250715 (37847857)<br>37960098;Database Release Update : 19.28.0.0.250715 (37960098)<br>37962946;OCW RELEASE UPDATE 19.28.0.0.0 (37962946)</pre><p>The output confirms that <strong>Patch 38170982 (DATAPUMP BUNDLE PATCH 19.28.0.0.0)</strong> is fully active alongside your core database release update components.</p><h3>Wrap-Up</h3><p>Applying the Data Pump Bundle Patch is a low-risk task with high operational rewards. Since it supports hot installation without interrupting production database connections, it should always be part of your quarterly patching deployment plans to prevent performance degradation and maintain clean data movements.</p><h4>Recommended Reading:</h4><ul><li><a href="https://dohdatabase.com/2025/07/16/how-to-install-data-pump-bundle-patch-on-running-database-without-downtime/">How To Install Data Pump Bundle Patch On Running Database Without Downtime</a></li><li><a href="https://oracleapex.com/ords/f?p=202202%3A2%3A%3A%3A%3A%3AP2_SUCHWORT%3AOCW24">View content</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19e0a6386a15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Perform a Switchover in Oracle Data Guard Broker]]></title>
            <link>https://medium.com/@doganuysl/how-to-perform-a-switchover-in-oracle-data-guard-broker-a0adeb490674?source=rss-75a4e8ed2ba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0adeb490674</guid>
            <category><![CDATA[disaster-recovery]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[high-availability]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[dataguard]]></category>
            <dc:creator><![CDATA[Erdogan Uysal]]></dc:creator>
            <pubDate>Fri, 10 Oct 2025 17:54:59 GMT</pubDate>
            <atom:updated>2025-10-10T17:54:59.139Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GuD4EgMV2d3F2jZlDgvMCQ.png" /></figure><blockquote><em>Learn how to safely perform a switchover in Oracle Data Guard using DGMGRL. Includes service name validation, configuration checks, inconsistency analysis, and handling ORA-01017 StaticConnectIdentifier issues.</em></blockquote><h3>1️⃣ Check service_names Before Switchover</h3><p>Before initiating a switchover, confirm that the <strong>standby database</strong> includes the sameservice_namesas the production (primary) database.</p><pre>SQL&gt; show parameter service_names;</pre><pre>NAME                                 TYPE        VALUE<br>------------------------------------ ----------- -------------------<br>service_names                        string      orcl,orcldg</pre><p>If the standby is missing the same service name, applications may fail to connect after the switchover.<br> To fix it:</p><pre>SQL&gt; ALTER SYSTEM SET service_names=&#39;orcl, orcldg&#39; SCOPE=BOTH;</pre><p>After adding a new service name, reload the listener:</p><pre>$ lsnrctl reload</pre><h3>2️⃣ Connect to Data Guard Broker (dgmgrl)</h3><p>Connect to the primary database using <strong>DGMGRL</strong>. Always use a password-based connection.</p><pre>dgmgrl sys@orcl as sysdba</pre><h3>3️⃣ Check Configuration Status</h3><pre>DGMGRL&gt; show configuration;</pre><pre>Configuration - dg_config</pre><pre>  Protection Mode: MaxPerformance<br>  Members:<br>  orcl   - Primary database<br>    orcldg - Physical standby database</pre><pre>Fast-Start Failover: DISABLED</pre><pre>Configuration Status:<br>SUCCESS   (status updated 2 seconds ago)</pre><p>This confirms that the Data Guard configuration is healthy and synchronized.</p><p>For a <strong>more detailed view</strong>, use:</p><pre>DGMGRL&gt; show database verbose &lt;db_name&gt;;</pre><p>This command displays transport mode, apply lag, flashback status, and role-related attributes — ideal before performing any switchover.</p><h3>4️⃣ Validate Both Databases</h3><p>Ensure both the primary and standby databases are ready.</p><p><strong>Primary:</strong></p><pre>DGMGRL&gt; validate database orcl</pre><p><strong>Standby:</strong></p><pre>DGMGRL&gt; validate database orcldg</pre><p>Expected results:</p><pre>Ready for Switchover:  Yes<br>Ready for Failover:    Yes</pre><h3>5️⃣ Check for Inconsistent Properties</h3><p>Before switching roles, make sure configuration properties match on both sides.</p><pre>DGMGRL&gt; show database &lt;db_name&gt; InconsistentProperties;</pre><p>Example output:</p><pre>INCONSISTENT PROPERTIES<br>   INSTANCE_NAME   PROPERTY_NAME    MEMORY_VALUE   SPFILE_VALUE   BROKER_VALUE</pre><p>If differences appear, fix them before proceeding.</p><h3>⚠️ 6️⃣ Handle ORA-01017 or StaticConnectIdentifier Warnings</h3><p>When running validate database or validate network configuration, you may encounter:</p><pre>ORA-01017: invalid username/password; logon denied<br>Warning: Ensure primary database&#39;s StaticConnectIdentifier property<br>is configured properly so that the primary database can be restarted<br>by DGMGRL after switchover</pre><p>This issue is described in <a href="https://support.oracle.com/epmos/faces/DocumentDisplay?id=2886931.1"><strong>MOS Doc ID 2886931.1</strong></a>.</p><h3>📄 Symptoms</h3><pre>DGMGRL&gt; validate network configuration for all;<br>ORA-01017: invalid username/password; logon denied</pre><h3>🛠️ Solution (Summary from MOS 2886931.1)</h3><p>Connect the broker using a valid SYS password <strong>before validation</strong>:</p><pre>$ dgmgrl sys/&lt;password&gt;</pre><p>or</p><pre>$ dgmgrl sys/&lt;password&gt;@&lt;tns string&gt;</pre><p>Then re-run validation:</p><pre>DGMGRL&gt; validate database &lt;db_name&gt;;</pre><p>This ensures proper authentication for the StaticConnectIdentifier property.</p><h3>7️⃣ Perform the Switchover</h3><p>Run the command:</p><pre>DGMGRL&gt; switchover to &#39;orcldg&#39;;</pre><p>Expected output:</p><pre>Performing switchover NOW, please wait...<br>New primary database &quot;orcldg&quot; is opening...<br>Switchover succeeded, new primary is &quot;orcldg&quot;</pre><p>Before executing, confirm redo apply is up-to-date:</p><pre>SELECT <br>    NAME, <br>    VALUE, <br>    UNIT <br>FROM <br>    v$dataguard_stats<br>WHERE <br>    NAME IN (&#39;apply lag&#39;, &#39;transport lag&#39;);</pre><h3>8️⃣ Verify New Configuration</h3><p>After completion, recheck:</p><pre>DGMGRL&gt; show configuration;</pre><pre>Configuration - dg_config</pre><pre>  Protection Mode: MaxPerformance<br>  Members:<br>  orcldg - Primary database<br>    orcl   - Physical standby database</pre><pre>Configuration Status:<br>SUCCESS   (status updated 54 seconds ago)</pre><p>orcldg is now the new <strong>primary</strong>, and orcl becomes the <strong>standby</strong>.</p><h3>9️⃣ Verify Listener and Database Role</h3><p>Run:</p><pre>lsnrctl status</pre><p>Expected summary:</p><pre>Service &quot;orcl&quot; has 1 instance(s).<br>  Instance &quot;orcldg&quot;, status READY, has 1 handler(s) for this service...<br><br>Service &quot;orcldg&quot; has 2 instance(s).<br>  Instance &quot;orcldg&quot;, status UNKNOWN, has 1 handler(s) for this service...<br>  Instance &quot;orcldg&quot;, status READY, has 1 handler(s) for this service...</pre><h3>🔟 Final Step: Test Connectivity</h3><p>Always confirm that clients can connect successfully post-switchover.</p><pre>sqlplus app_user@tns_alias_name</pre><h3>Recommended Reading:</h3><ul><li><a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/dgbkr/index.html">Oracle Data Guard Broker Concepts and Administration Guide</a></li><li><a href="https://support.oracle.com/epmos/faces/DocumentDisplay?id=2886931.1">MOS Doc ID 2886931.1: ORA-01017 During Validation</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0adeb490674" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrade Oracle Database from Standard Edition to Enterprise Edition]]></title>
            <link>https://medium.com/@doganuysl/upgrade-oracle-database-from-standard-edition-to-enterprise-edition-5ae32f5bfd70?source=rss-75a4e8ed2ba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ae32f5bfd70</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[upgrade]]></category>
            <dc:creator><![CDATA[Erdogan Uysal]]></dc:creator>
            <pubDate>Wed, 30 Jul 2025 21:47:53 GMT</pubDate>
            <atom:updated>2025-08-04T07:46:59.002Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gqs4eJ7ncDT0APWcUaqZ4Q.png" /></figure><p>This guide walks you through converting an existing Oracle Standard Edition (SE) database into an Enterprise Edition (EE) deployment by installing a new EE software home.</p><blockquote><em>Always keep backups and test in a non‑production environment first.</em></blockquote><h3>1. Pre‑upgrade Diagnostics</h3><p>Before making any changes, capture your current database configuration and object status. In SQL*Plus as SYSDBA:</p><pre>-- Log product version, datafiles, tablespaces, and invalid objects<br>sqlplus / as sysdba<br><br>SPOOL /u01/preupgrade_info.log<br>SELECT * FROM v$version;<br>SELECT FILE#, NAME bytes/1024/1024 AS SIZE_MB FROM v$datafile;<br>SELECT * FROM v$tablespace;<br>SELECT owner, object_name, object_type FROM dba_objects WHERE status = &#39;INVALID&#39;;<br><br>-- Export controlfile to trace for backup purposes<br>ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS &#39;/u01/controlfile.bck&#39;;<br>SPOOL OFF</pre><p>Save preupgrade_info.log for reference in case you need to roll back or diagnose issues.</p><h3>2. Create a New EE Software-Only Home</h3><p>On your server, create a fresh directory for EE binaries (avoid overwriting the existing SE home):</p><pre>mkdir -p /u01/app/oracle/product/12.2.0.1/db_1</pre><p>Run the installer from your database media to install <strong>Enterprise Edition</strong> in <em>Software Only</em> mode:</p><ul><li>You can obtain the Oracle Database software from the <a href="https://edelivery.oracle.com/">Oracle Software Delivery Cloud</a>.</li></ul><pre>cd /u01/software/database<br>./runInstaller</pre><p>Choose <strong>Install database software only</strong>, and select <strong>Enterprise Edition</strong>.</p><h3>3. Migrate Configuration Files</h3><p>Point your environment to both homes for clarity:</p><pre>export SE_ORACLE_HOME=/u01/app/oracle/product/12.2.0/dbhome_1<br>export EE_ORACLE_HOME=/u01/app/oracle/product/12.2.0.1/db_1</pre><p>Copy network and server parameter files from the SE home to the EE home:</p><pre>cp $SE_ORACLE_HOME/network/admin/*.ora $EE_ORACLE_HOME/network/admin/<br>cp $SE_ORACLE_HOME/dbs/spfile&lt;SID&gt;.ora $EE_ORACLE_HOME/dbs/<br>cp $SE_ORACLE_HOME/dbs/orapw&lt;SID&gt;      $EE_ORACLE_HOME/dbs/</pre><blockquote><strong><em>Tip:</em></strong><em> Verify file permissions and ownership after copying.</em></blockquote><h3>4. Shutdown and Preparation</h3><p>Stop the listener and the database in the SE home:</p><pre>lsnrctl stop<br>sqlplus / as sysdba<br>SQL&gt; SHUTDOWN IMMEDIATE;<br>EXIT;</pre><p>Switch your environment variables to the EE home:</p><pre>export ORACLE_HOME=$EE_ORACLE_HOME<br>export PATH=$ORACLE_HOME/bin:$PATH<br>export TNS_ADMIN=$ORACLE_HOME/network/admin</pre><h3>5. Upgrade the Database (Optionally)</h3><p>Open the database in <strong>UPGRADE</strong> mode and run the dictionary scripts:</p><blockquote>NOTE : For the same version (12.2SE -&gt; 12.2EE) there is no need to Upgrade mode or run catalog.sql and catproc.sql scripts to convert Standard Edition to Enterprise Edition.</blockquote><pre>sqlplus / as sysdba<br>SQL&gt; STARTUP UPGRADE;<br>SQL&gt; @$ORACLE_HOME/rdbms/admin/catalog.sql<br>SQL&gt; @$ORACLE_HOME/rdbms/admin/catproc.sql<br>SQL&gt; SHUTDOWN IMMEDIATE;<br>SQL&gt; STARTUP;<br>SQL&gt; @$ORACLE_HOME/rdbms/admin/utlrp.sql<br>EXIT;</pre><p>This sequence upgrades the data dictionary and recompiles invalid objects.</p><h3>6. Validate and Restart Services</h3><p>Check for any remaining invalid objects:</p><pre>sqlplus / as sysdba<br>SELECT owner, object_name FROM dba_objects WHERE status = &#39;INVALID&#39;;<br>EXIT;</pre><p>Finally, start the listener from the EE home:</p><pre>lsnrctl start</pre><p>Confirm your database is running in Enterprise Edition by querying version:</p><pre>sqlplus / as sysdba &lt;&lt;EOF<br>SELECT banner FROM v$version WHERE banner LIKE &#39;Oracle%&#39;;<br>EXIT;<br>EOF</pre><p>You should see <strong>Enterprise Edition</strong> in the banner.</p><p><strong>Conclusion:</strong> You have successfully upgraded your Oracle database from SE to EE by installing a new EE home, migrating configuration, and performing an in‑place upgrade. Always keep backups and test in a non‑production environment first.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ae32f5bfd70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Safely Wipe an LVM Disk on Linux: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@doganuysl/how-to-safely-wipe-an-lvm-disk-on-linux-a-step-by-step-guide-8983fab40010?source=rss-75a4e8ed2ba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/8983fab40010</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[format]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[sysadmin]]></category>
            <category><![CDATA[disk]]></category>
            <dc:creator><![CDATA[Erdogan Uysal]]></dc:creator>
            <pubDate>Mon, 07 Apr 2025 22:51:12 GMT</pubDate>
            <atom:updated>2025-04-07T22:56:09.558Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Y0_cxGnyH8t-DfOqhtZ0w.png" /></figure><blockquote><em>⚠️ </em><strong><em>WARNING</em></strong><em><br> The steps in this guide will </em><strong><em>permanently erase all data</em></strong><em> on the selected disk. Double-check your disk name and </em><strong><em>back up anything important</em></strong><em> before proceeding.</em></blockquote><p><em>The operations were performed on Oracle Linux Server release 7.7.</em></p><h3>1. Identify the Disk You Want to Wipe</h3><p>First, let’s list all available disks using the lsblk command:</p><pre>lsblk</pre><h3>Example Output:</h3><pre>NAME                    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT<br>sdb                       8:16   0   10G  0 disk<br>└─sdb1                    8:17   0   10G  0 part<br>  └─vg_backup-lv_backup 252:0    0   10G  0 lvm  /backup<br>sr0                      11:0    1 1024M  0 rom<br>sda                       8:0    0   20G  0 disk<br>├─sda2                    8:2    0    1G  0 part [SWAP]<br>└─sda1                    8:1    0   19G  0 part /</pre><p>In this example, the disk we want to wipe is /dev/sdb. It&#39;s currently being used as an LVM volume mounted at /backup.</p><h3>2. Make Sure the Mount Point is Not in Use</h3><p>Before unmounting the disk, ensure that nothing is using the mount point:</p><pre>lsof | grep /backup</pre><h3>Example Output (disk in use):</h3><pre>cp        1778    root    4w    REG  252,0  393216  /backup/grub2-mkrescue</pre><p>If there’s any output, a process is using the disk. You’ll need to stop that process before proceeding:</p><pre>kill 1778  # Replace 1778 with the actual PID from your output</pre><p>If there’s <strong>no output</strong>, you’re safe to continue.</p><h3>3. Unmount the Disk</h3><p>Once you’re sure the disk isn’t in use, unmount it:</p><pre>umount /backup</pre><p>Alternatively, use the LVM device path:</p><pre>umount /dev/mapper/vg_backup-lv_backup</pre><p>After unmounting, run lsblk again to confirm:</p><pre>lsblk</pre><h3>Updated Output:</h3><pre>NAME                    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT<br>sdb                       8:16   0   10G  0 disk<br>└─sdb1                    8:17   0   10G  0 part<br>  └─vg_backup-lv_backup 252:0    0   10G  0 lvm</pre><p>Notice /backup is no longer listed under the mount point.</p><h3>4. Delete the Partition with parted</h3><p>Use GNU Parted to delete the partition:</p><pre>parted /dev/sdb</pre><p>Inside the interactive shell:</p><pre>print       # View current partitions<br>rm 1        # Delete partition number 1 or more</pre><h3>Sample Output:</h3><pre>(parted) print<br>Model: ATA VBOX HARDDISK (scsi)<br>Disk /dev/sdb: 10.7GB<br>Sector size (logical/physical): 512B/512B<br>Partition Table: gpt</pre><pre>Number  Start   End     Size    File system  Name     Flags<br> 1      1049kB  10.7GB  10.7GB               primary  lvm</pre><pre>(parted) rm 1<br>Error: Partition(s) 1 on /dev/sdb have been written, but we have been unable to inform the kernel of the change...<br>You should reboot now before making further changes.<br>Ignore/Cancel? ignore</pre><p>Although you can type ignore, the safest option is to reboot:</p><pre>reboot now</pre><p>After rebooting, check the status again:</p><pre>lsblk</pre><h3>Expected Output:</h3><pre>NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT<br>sdb      8:16   0   10G  0 disk</pre><p>Partition has been successfully deleted.</p><h3>5. (Optional) Zero Out the Entire Disk with dd</h3><p>This step is <strong>not required</strong> in most cases, but if you want to <strong>completely destroy</strong> all data (making recovery impossible), you can write zeros to the disk:</p><p>If you decide to use dd to completely zero out the disk, here’s what each parameter means:</p><ul><li><strong><em>if=/dev/zero</em></strong><em>:</em> The input file — in this case, a stream of zero bytes.</li><li><strong><em>of=/dev/sde</em></strong><em>:</em> The output file — the target disk you want to wipe.</li><li><strong><em>bs=1M</em></strong><em>: </em>Sets the block size to 1 megabyte, improving write performance.</li><li><strong><em>status=progress</em></strong><em>:</em> Displays real-time progress while the command runs.</li></ul><blockquote><em>⚠️ </em><strong><em>Note:</em></strong><em> This process may take a while depending on the size of the disk.</em></blockquote><pre>dd if=/dev/zero of=/dev/sdb bs=1M status=progress</pre><h3>Sample Output:</h3><pre>10507780096 bytes (11 GB) copied, 77.7 s, 135 MB/s<br>dd: error writing ‘/dev/sdb’: No space left on device<br>10241+0 records in<br>10240+0 records out<br>10737418240 bytes (11 GB) copied, 80.4 s, 133 MB/s</pre><p>This command writes zero bytes to the entire disk, effectively erasing all data and partition information.</p><h3>6. Clean Filesystem Signatures with wipefs</h3><p>To check for remaining filesystem or partition signatures:</p><pre>wipefs /dev/sdb</pre><h3>Output Before Wipe:</h3><pre>offset               type<br>-----------------------------------------<br>0x200                gpt   [partition table]</pre><p>To remove all filesystem and partition table signatures:</p><pre>wipefs --all /dev/sdb<br># If you want to delete a single signature, use --offset=0x200 instead of --all.</pre><p>Then verify again:</p><pre>wipefs /dev/sdb</pre><p>This time, no output means the disk is now completely clean.</p><h3>✅ Final Result</h3><p>Your disk /dev/sdb is now fully wiped and ready for:</p><ul><li>Creating new partitions</li><li>Creating new LVM (disk) groups</li><li>Assigning to another system, etc.</li></ul><h3>💡 Bonus: When Should You Use dd?</h3><pre>+---------------------------------------------+-------------------------+<br>|                Use Case                     |   Should You Use dd?    |<br>+---------------------------------------------+-------------------------+<br>| Repartitioning &amp; formatting the disk        | ❌ Not needed           |<br>| Removing old LVM structure                  | ❌ Use wipefs instead   |<br>| Securely wiping data (irrecoverable)        | ✅ Yes                  |<br>| Giving the disk to someone else             | ✅ Definitely           |<br>+---------------------------------------------+-------------------------+</pre><h3>🎯 Conclusion</h3><p>You’ve now learned how to safely and cleanly remove an LVM setup and wipe a disk in Linux. Whether you’re reusing the disk or passing it on to someone else, these steps ensure a secure reset.</p><p>Have questions or want to add a twist to the workflow? Drop a comment or share your tips! 💬</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8983fab40010" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developing a YOLO Object Detection Model on Ultralytics Hub: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@doganuysl/developing-a-yolo-object-detection-model-on-ultralytics-hub-a-step-by-step-guide-49efc3ee1351?source=rss-75a4e8ed2ba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/49efc3ee1351</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[yolo]]></category>
            <category><![CDATA[object-detection]]></category>
            <dc:creator><![CDATA[Erdogan Uysal]]></dc:creator>
            <pubDate>Wed, 01 May 2024 22:52:09 GMT</pubDate>
            <atom:updated>2024-05-01T22:55:04.720Z</atom:updated>
            <content:encoded><![CDATA[<p>YOLO (You Only Look Once) is a deep learning model for real-time object detection and localization. The main goal of YOLO is to combine separate stages to detect and classify objects within a single network. YOLO divides an image into multiple regions and evaluates each region separately. In this way, it can detect objects with a single pass and work faster than other methods.</p><p>Ultralytics Hub is a platform for artificial intelligence and deep learning projects. This platform is designed specifically for researchers, developers and data scientists working on AI projects such as object detection, image classification and other deep learning applications. Ultralytics Hub offers various services to its users, and these services are often evaluated by those working in the field of machine learning and deep learning.</p><p>Let’s move on to how you can train an object detection model with YOLO.</p><p>Go to site <a href="https://hub.ultralytics.com/signup">Ultralytics Hub</a> and create an account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*uGfMa6QNjMT32crSLqe_Cg.png" /><figcaption>Figure 1: Ultralytics Hub registration screen</figcaption></figure><p>After creating an account for yourself, let’s upload our data set by following the steps determined by the boxes in the screenshots below.</p><h4>Uploading Dataset</h4><p>1)Select the dataset tab from the left column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C4NN8J3dpVcGCFJBozqdCQ.jpeg" /><figcaption>Figure 2: Home Screen</figcaption></figure><p>2) From this window, you can either use already uploaded datasets or you can continue by uploading your own dataset. (If you don’t have a dataset, you can search <a href="https://universe.roboflow.com/">Roboflow</a> for a few datasets suitable for your purpose.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lBVXIcLSeYPh-xpEqRYyWg.jpeg" /><figcaption>Figure 3: Datasets screen</figcaption></figure><p>3) After selecting detect in the window that opens, you can type the data set name and description. You can then upload your dataset in .zip format (.rar or other formats are not suitable).</p><p>Finally, let’s finish uploading the dataset by clicking create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wstDiA-oBSSHxJKfMEzPMA.jpeg" /><figcaption>Figure 4: Upload Dataset</figcaption></figure><p>You can also find an example of how your dataset should be organized by clicking on “See Example Dataset” in the lower left corner.</p><p><em>(You can directly use the datasets you select and download from Roboflow under the YOLO heading in accordance with this format).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rtYXo1d9QbAOGYSYJkTy0g.jpeg" /><figcaption>Figure 5: See Example Dataset</figcaption></figure><h4>Creating Project</h4><p>To create a project, you can create your project by clicking on the folder icon in the left column and “Create Project” in the upper right corner by filling in the information such as name and cover as you wish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q3W23HxYJ5imLjQFBaUXrw.jpeg" /><figcaption>Figure 6: Create Project</figcaption></figure><h4>Training Model</h4><p>1)After clicking on the project file you created, you can proceed to the next step by clicking on the “Train Model” button in the window that opens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CJ5e0bvrP18BQRgjC7BNew.jpeg" /><figcaption>Figure 7: Projects</figcaption></figure><p>2) In the window that appears, select the dataset you uploaded and click continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4kaWRUc8V81kZ6pekc0eEw.jpeg" /><figcaption>Figure 8: Train a model</figcaption></figure><p>3) In this step you can choose the model architecture you want. To learn more about model architectures, visit the Ultralytics <a href="https://github.com/ultralytics/ultralytics">Github</a> account.</p><p><em>You can see some parameters of the training by clicking on Advanced Model Configuration.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M3QmbFoaSEXu1E6MHZ2YNw.jpeg" /><figcaption>Figure 9: Model Architecture</figcaption></figure><p><em>If you don’t have much idea, I suggest you leave the parameters as they are and continue.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g7Xq00b1HXB9N2rXwMl1Zg.jpeg" /><figcaption>Figure 10: Advanced Model Configuration</figcaption></figure><p>4) To start training, you can select Google Colab or Own Agent and use the API defined for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tj9WYMc57_YG7SxmVeuVIQ.png" /><figcaption>Figure 11: Selecting Agent</figcaption></figure><p>5) Assuming that you have selected Google Colab, your model training will start when you run the first cell in the window that opens, paste the API information defined for you in the second cell and run it.</p><p><em>Note: For the free version of Google Colab, your usage is limited. It may expire before the end of your model training.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Itd7LzYu1U7eXLB__EvTg.jpeg" /><figcaption>Figure 12: Google Colab</figcaption></figure><p>6) Finally, while your model training continues, you can follow the metrics on the Ultralytics site. After the model training is completed, you can use the API from the Deploy tab, or you can export the model and download it to your computer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kS3o_AbhiUXs4q8xbIhODg.png" /><figcaption>Figure 13: Deployment</figcaption></figure><p>Lastly, <em>I realized that I was struggling to find content for education in my own research, so I wrote this article to create more resources on this topic. Platforms like Ultralytics Hub provide an important tool to support and enhance the learning process in the field of AI and deep learning. These platforms allow users to share, evaluate and improve their deep learning models, while enriching the learning experience with extensive documentation and community engagement. To overcome challenges in the learning process, using such platforms can offer a more efficient and effective training and development process. I hope this article has been useful for other researchers and developers who, like me, struggle to find content.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49efc3ee1351" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>