Installing Oracle 12c Release 2 on Ubuntu Linux: A Comprehensive Step-by-Step Guide

Installing Oracle 12c Release 2 on Ubuntu Linux: A Comprehensive Step-by-Step Guide

Installing Oracle 12c Release 2 on Ubuntu Linux involves several steps to ensure a smooth and efficient process. This guide will walk you through the entire installation process, from prerequisites and system requirements to post-installation settings. By following these instructions, you can successfully deploy Oracle 12c on your Ubuntu system.

Prerequisites and System Requirements

Before beginning the installation, make sure your system meets the minimum requirements for Oracle 12c. This includes the appropriate hardware and software prerequisites. Additionally, create an Oracle account if you don't already have one, as you will need to access the Oracle Technology Network to download the necessary installation files.

Install Required Packages

Open a terminal and run the following commands to install the necessary packages:

sudo apt update sudo apt install alien libaio1 unixodbc

Download Oracle 12c

Download the Oracle Database 12c Release 2 12.2 installation files from the Oracle Technology Network. You can usually find these in a zip file. Make sure you log in with your Oracle account to access the downloads.

Step-by-Step Installation

Create Oracle User and Groups

Follow these steps to create the necessary user and groups:

sudo groupadd dba sudo groupadd oinstall sudo useradd -g oinstall -G dba oracle sudo passwd oracle

Create Directories

Create the required directories and set appropriate permissions:

sudo mkdir -p /u01/app/oracle sudo chown -R oracle:oinstall /u01 sudo chmod -R 775 /u01

Set Kernel Parameters

Edit the file and add the following lines:

_map_count 4294967295 2097152 4096 _user_watches 250 32000 100 128 vm.min_free_kbytes 262144 _max 262144 _max 262144 </plaintext> <p>Apply the changes:</p> sudo sysctl -p <h3>Set User Limits</h3> <p>Edit the file and add the following lines for the oracle user:</p> <plaintext> oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 </plaintext> <h3>Install the Oracle Database</h3> <p>In the terminal, unzip the downloaded Oracle installation files:</p> u unzip -d /tmp <p>Change to the Oracle installation directory:</p> cd /tmp/database <p>Convert the RPM packages to DEB using alien and install them as the oracle user:</p> sudo alien -k .rpm sudo dpkg -i .deb <h3>Run the Installer</h3> <p>Switch to the oracle user and run the installer:</p> su - oracle <p>Start the Oracle Universal Installer:</p> ./runInstaller <p>Follow the graphical interface to complete the installation. You may need to run the following command in another terminal:</p> sudo dpkg -i /u01/app/oracle/product/12.2.0/dbhome_1/install/*.deb <h2>Post-Installation</h2> <p>After completing the installation, set the necessary environment variables by adding the following lines to the ~ file:</p> export ORACLE_HOME/u01/app/oracle/product/12.2.0/dbhome_1 export ORACLE_SIDyourSID export PATH$ORACLE_HOME/bin:$PATH <p>Source the ~ file:</p> sudo source ~ <p>To start the database, use SQLPlus to connect as the SYS user and start the database:</p> sqlplus / as sysdba startup <h2>Conclusion</h2> <p>With the Oracle 12c Release 2 installed on your Ubuntu system, you can now create and manage databases using SQLPlus or Oracle SQL Developer. For specific configurations or updates related to your environment, refer to the Oracle documentation.</p> <p><strong>Keywords:</strong> Oracle 12c, Ubuntu Linux, Database Installation</p> </div> </div> <div class="pagination pagination-previous-next"> <ul> <li><a href="https://www.galport.com/Exploring-Free-Software-for-Creating-Odd-Sounds-and-Music" title="Exploring Free Software for Creating Odd Sounds and Music">Previous:Exploring Free Software for Creating Odd Sounds and Music </a> </li> <li><a href="https://www.galport.com/Understanding-DVI-to-VGA-Adapters--Does-Quality-Suffer-" title="Understanding DVI to VGA Adapters: Does Quality Suffer?">Next:Understanding DVI to VGA Adapters: Does Quality Suffer? </a> </li> </ul> </div> <!--.post-single-content--></div> <!--.single_post--> <div class="related-posts"> <h4>Related Posts</h4> <div class="clear"> <article class="latestPost excerpt "> <a href="https://www.galport.com/The-Apple-iPad-Mini--Versatile-Reliability-and-Portability" title="The Apple iPad Mini: Versatile Reliability and Portability" id="featured-thumbnail"> <div class="featured-thumbnail"></div> </a> <header> <h2 class="title front-view-title"> <a href="https://www.galport.com/The-Apple-iPad-Mini--Versatile-Reliability-and-Portability" title="The Apple iPad Mini: Versatile Reliability and Portability">The Apple iPad Mini: Versatile Reliability and Portability</a></h2> </header> </article> <article class="latestPost excerpt "> <a href="https://www.galport.com/Choosing-the-Right-Amp-for-Your-PA-Subwoofer--Enhancing-Sound-Quality" title="Choosing the Right Amp for Your PA Subwoofer: Enhancing Sound Quality" id="featured-thumbnail"> <div class="featured-thumbnail"></div> </a> <header> <h2 class="title front-view-title"> <a href="https://www.galport.com/Choosing-the-Right-Amp-for-Your-PA-Subwoofer--Enhancing-Sound-Quality" title="Choosing the Right Amp for Your PA Subwoofer: Enhancing Sound Quality">Choosing the Right Amp for Your PA Subwoofer: Enhancing Sound Quality</a></h2> </header> </article> <article class="latestPost excerpt last"> <a href="https://www.galport.com/Why-Install-a-GPS-Tracker-in-Your-Personal-Vehicle--Without-Law-Enforcement-" title="Why Install a GPS Tracker in Your Personal Vehicle (Without Law Enforcement)" id="featured-thumbnail"> <div class="featured-thumbnail"></div> </a> <header> <h2 class="title front-view-title"> <a href="https://www.galport.com/Why-Install-a-GPS-Tracker-in-Your-Personal-Vehicle--Without-Law-Enforcement-" title="Why Install a GPS Tracker in Your Personal Vehicle (Without Law Enforcement)">Why Install a GPS Tracker in Your Personal Vehicle (Without Law Enforcement)</a></h2> </header> </article> <article class="latestPost excerpt "> <a href="https://www.galport.com/Accessing-Xbox-One-Games-on-a-PC--A-Comprehensive-Guide" title="Accessing Xbox One Games on a PC: A Comprehensive Guide" id="featured-thumbnail"> <div class="featured-thumbnail"></div> </a> <header> <h2 class="title front-view-title"> <a href="https://www.galport.com/Accessing-Xbox-One-Games-on-a-PC--A-Comprehensive-Guide" title="Accessing Xbox One Games on a PC: A Comprehensive Guide">Accessing Xbox One Games on a PC: A Comprehensive Guide</a></h2> </header> </article> <article class="latestPost excerpt "> <a href="https://www.galport.com/Choosing-the-Right-College--UPES--Chitkara-University--or-GCC-Landran" title="Choosing the Right College: UPES, Chitkara University, or GCC Landran" id="featured-thumbnail"> <div class="featured-thumbnail"></div> </a> <header> <h2 class="title front-view-title"> <a href="https://www.galport.com/Choosing-the-Right-College--UPES--Chitkara-University--or-GCC-Landran" title="Choosing the Right College: UPES, Chitkara University, or GCC Landran">Choosing the Right College: UPES, Chitkara University, or GCC Landran</a></h2> </header> </article> <article class="latestPost excerpt last"> <a href="https://www.galport.com/Can-You-Install-Android-on-a-Lumia-950-XL--Considerations-and-Steps" title="Can You Install Android on a Lumia 950 XL? Considerations and Steps" id="featured-thumbnail"> <div class="featured-thumbnail"></div> </a> <header> <h2 class="title front-view-title"> <a href="https://www.galport.com/Can-You-Install-Android-on-a-Lumia-950-XL--Considerations-and-Steps" title="Can You Install Android on a Lumia 950 XL? Considerations and Steps">Can You Install Android on a Lumia 950 XL? Considerations and Steps</a></h2> </header> </article> </div> </div> </div> </div> </article> <aside id="sidebar" class="sidebar c-4-12 mts-sidebar-sidebar" role="complementary" itemscope itemtype="http://schema.org/WPSideBar"> <div id="search-2" class="widget widget_search"> <form method="get" id="searchform" class="search-form" action="https://www.galport.com/e/search/" _lpchecked="1"> <fieldset> <input type="text" name="keyboard" id="s" value="" placeholder="Search the site" /> <button id="search-image" class="sbutton" type="submit" value="Search">Search</button></fieldset> </form> </div> <div id="recent-posts-2" class="widget widget_recent_entries"> <h3 class="widget-title">Recent Posts</h3> <ul> <li> <a href="https://www.galport.com/How-to-Restore-Contacts-After-Reset-on-Android">How to Restore Contacts After Reset on Android</a></li> <li> <a href="https://www.galport.com/How-to-Detect-Laptop-Hacking-Without-Physical-Damage">How to Detect Laptop Hacking Without Physical Damage</a></li> <li> <a href="https://www.galport.com/What-Comes-First--Lightning-or-Thunder-">What Comes First: Lightning or Thunder?</a></li> <li> <a href="https://www.galport.com/How-to-Block-App-Internet-Access-on-Android--A-Comprehensive-Guide">How to Block App Internet Access on Android: A Comprehensive Guide</a></li> <li> <a href="https://www.galport.com/Over-the-Ear-Headphones-vs--Earbuds--Which-Are-Better-for-Long-Term-Hearing-Health-">Over-the-Ear Headphones vs. Earbuds: Which Are Better for Long-Term Hearing Health?</a></li> <li> <a href="https://www.galport.com/The-Best-iPad-Apps-for-Kids-Under-5--Educational-and-Entertaining-Adventures">The Best iPad Apps for Kids Under 5: Educational and Entertaining Adventures</a></li> <li> <a href="https://www.galport.com/Will-Housing-Affordability-in-the-Bay-Area-Improve-in-2020-">Will Housing Affordability in the Bay Area Improve in 2020?</a></li> <li> <a href="https://www.galport.com/Top-CNC-Grinding-and-Tool-Cutting-Machines-for-Precision-Manufacturing">Top CNC Grinding and Tool Cutting Machines for Precision Manufacturing</a></li> <li> <a href="https://www.galport.com/Breaking-the-Silence--Dealing-with-Depression-and-Seeking-Help">Breaking the Silence: Dealing with Depression and Seeking Help</a></li> <li> <a href="https://www.galport.com/Experiencing-Laptop-Theft--A-Comprehensive-Guide">Experiencing Laptop Theft: A Comprehensive Guide</a></li> </ul> </div> <div id="categories-2" class="widget widget_categories"> <h3 class="widget-title">Tags</h3> <ul> <li class="cat-item"> <a href="https://www.galport.com/tags/LibreOfficeWriter">LibreOfficeWriter</a></li> <li class="cat-item"> <a href="https://www.galport.com/tags/Oracle12c">Oracle12c</a></li> <li class="cat-item"> <a href="https://www.galport.com/tags/DocumentViewer">DocumentViewer</a></li> <li class="cat-item"> <a href="https://www.galport.com/tags/UbuntuLinux">UbuntuLinux</a></li> <li class="cat-item"> <a href="https://www.galport.com/tags/PDFAnnotation">PDFAnnotation</a></li> <li class="cat-item"> <a href="https://www.galport.com/tags/Ubuntu14-04">Ubuntu14.04</a></li> </ul> </div> </aside> <!--#sidebar--></div> <!--#page--> <footer id="site-footer" role="contentinfo" itemscope itemtype="http://schema.org/WPFooter"> <div class="copyrights"> <div class="container"> <!--start copyrights--> <div class="row" id="copyright-note"> <span> <a href=" https://www.galport.com/" title="DigitalDive">DigitalDive</a> Copyright &copy; 2025.</span> <div class="to-top">Theme by <a href="https://www.galport.com/">DigitalDive</a>&nbsp;</div></div> <!--end copyrights--></div> </div> </footer> <!--#site-footer--></div> <!--.main-container--> <style type="text/css">body { width: 10px; min-width: 100%; *width: 100%; }</style> <script type="text/javascript" id="customscript-js-extra">/* <![CDATA[ */ var mts_customscript = { "responsive": "1", "nav_menu": "both", "lazy_load": "", "lazy_load_comments": "1", "desktop_sticky": "0", "mobile_sticky": "0" }; /* ]]> */ </script> <script type="text/javascript" async="async" src="/theme/js/customscript.js" id="customscript-js"></script> </body> </html>