{"id":2956,"date":"2024-05-15T20:25:34","date_gmt":"2024-05-15T17:25:34","guid":{"rendered":"https:\/\/www.fatihacar.com\/blog\/?p=2956"},"modified":"2024-05-15T21:13:42","modified_gmt":"2024-05-15T18:13:42","slug":"oracle-database-23ai-free-installation-steps-on-oracle-linux-9","status":"publish","type":"post","link":"https:\/\/www.fatihacar.com\/blog\/oracle-database-23ai-free-installation-steps-on-oracle-linux-9\/","title":{"rendered":"Oracle Database 23ai Free Installation Steps on Oracle Linux 9"},"content":{"rendered":"<p style=\"font-weight: 400;\">Oracle Database 23ai is the next long-term support release of Oracle Database. It includes over 300 new features with a focus on artificial intelligence (AI) and developer productivity. Features such as AI Vector Search enable you to leverage a new generation of AI models to generate and store vectors of documents, images, sound, and so on;\u00a0 index them and quickly look for similarity while leveraging the existing analytical capabilities of Oracle Database. This combined with the already extensive set of Machine Learning algorithms enables you to quickly create sophisticated AI-enabled applications.\u00a0Oracle Database 23ai also uses AI to optimize many of the key database functions to make more accurate estimates on timings and resource costings.<\/p>\n<p style=\"font-weight: 400;\">New developer-focused features now make it simpler to build next-generation applications that use JSON or relational development approaches or both interchangeably. New microservice and messaging functionality improves upon Oracle Database&#8217;s extensive support for this key design methodology. If you need to distribute or shard your database because of regulatory or performance requirements, Oracle Database 23ai adds new RAFT protocol support to make it easier than ever before.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2959\" src=\"https:\/\/www.fatihacar.com\/blog\/resimler\/oracle23ai.jpg\" alt=\"\" width=\"1200\" height=\"335\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/oracle23ai.jpg 1200w, https:\/\/www.fatihacar.com\/blog\/resimler\/oracle23ai-300x84.jpg 300w, https:\/\/www.fatihacar.com\/blog\/resimler\/oracle23ai-1024x286.jpg 1024w, https:\/\/www.fatihacar.com\/blog\/resimler\/oracle23ai-768x214.jpg 768w, https:\/\/www.fatihacar.com\/blog\/resimler\/oracle23ai-850x237.jpg 850w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p style=\"font-weight: 400;\">Oracle Database 23ai also includes significant improvements to SQL and PL\/SQL, introducing new data types and language enhancements to create new or improve existing OLTP or analytical applications. While Oracle Database is widely regarded as the most secure database in the industry, many new capabilities such as SQL Firewall enable you to control exactly what SQL is executed against your database.<\/p>\n<p style=\"font-weight: 400;\">To help DBAs, Oracle Database 23ai further refines many of the key management tasks, reducing their complexity and improving their performance as well as introducing new functionality to simplify tasks, such as reclaiming free space in tablespaces. Oracle Database also adds new performance improvements both at an infrastructural level (with technologies like True Cache) and at the SQL level, ensuring some statements will execute many times faster.<\/p>\n<p>I am using VMware virtualization to infrastructure. Operating system is Oracle Linux 9.<\/p>\n<p>You can download Oracle Database 23ai from <a href=\"https:\/\/www.oracle.com\/database\/free\/get-started\">https:\/\/www.oracle.com\/database\/free\/get-started<\/a>\/<\/p>\n<h3>First Step : Configure Operation System For Oracle Database 23ai<\/h3>\n<p><strong>1. Upgrade All Packages<\/strong><\/p>\n<blockquote><p>dnf -y upgrade<\/p><\/blockquote>\n<p><strong>2. Selinux Disable or Permissive<\/strong><\/p>\n<blockquote><p>You can do disabled or permissive<\/p>\n<p>vi \/etc\/selinux\/config<\/p>\n<p>SELINUX=permissive<\/p>\n<p>setenforce Permissive<\/p>\n<p><!--more--><\/p><\/blockquote>\n<p><!--more--><\/p>\n<p><strong>3. Firewall Stop and Disable<\/strong><\/p>\n<blockquote><p>You can open firewall after installation, but you have to give permission to necessary ports and services.<\/p>\n<p>systemctl stop firewalld.service<\/p>\n<p>systemctl disable firewalld.service<\/p><\/blockquote>\n<p><strong>4. Chrony NTP Configuration<\/strong><\/p>\n<blockquote><p>You can write your ntp server information in \/etc\/chrony.conf file to time sync.<\/p>\n<p>vi \/etc\/chrony.conf<\/p>\n<p>server yourntpaddress iburst<\/p>\n<p>systemctl restart chronyd.service<\/p>\n<p>systemctl enable chronyd.service<\/p><\/blockquote>\n<p><strong>5. Package Installation<\/strong><\/p>\n<blockquote><p>dnf -y install oracle-database-preinstall-23ai<\/p>\n<p>reboot<\/p><\/blockquote>\n<p><strong>6. Change oracle User Password<\/strong><\/p>\n<blockquote><p>When you run &#8220;dnf -y install oracle-database-preinstall-23ai&#8221;, oracle user created. You can give a password for using ssh connection.<\/p>\n<p align=\"justify\">passwd oracle<\/p>\n<\/blockquote>\n<p><strong>7. Create Directory For Data<\/strong><\/p>\n<blockquote><p>mkdir \/data<\/p>\n<p>chown -R oracle.oinstall \/data<\/p>\n<p>chmod -R 775 \/data<\/p><\/blockquote>\n<p align=\"justify\"><strong>8. Configure Bash Profile of oracle user.<\/strong><\/p>\n<p align=\"justify\">Add below parameters to bash_profiles.<\/p>\n<blockquote>\n<p align=\"justify\"><strong>Oracle user bash_profile<\/strong><\/p>\n<p>su &#8211; oracle<\/p>\n<p>vi .bash_profile<\/p>\n<p># Oracle Settings<\/p>\n<p>export TMP=\/tmp<\/p>\n<p>export TMPDIR=$TMP<\/p>\n<p>export ORACLE_HOSTNAME=oracle23ai.fatihacar.com<\/p>\n<p>export ORACLE_UNQNAME=FREE<\/p>\n<p>export ORACLE_SID=FREE<\/p>\n<p>export ORACLE_HOME=\/opt\/oracle\/product\/23ai\/dbhomeFree<\/p>\n<p>export PATH=$ORACLE_HOME\/bin:$PATH<\/p>\n<p>export CV_ASSUME_DISTID=OL9<\/p>\n<p>alias sql=&#8217;sqlplus \/ as sysdba&#8217;<br \/>\nalias home=&#8217;cd \/opt\/oracle\/product\/23ai\/dbhomeFree\/&#8217;<\/p><\/blockquote>\n<h3>Second Step : Install Oracle Database 23ai<\/h3>\n<p><strong>1. Configure Oracle Database Parameters<\/strong><\/p>\n<blockquote><p>vi \/etc\/sysconfig\/oracle-free-23ai.conf<\/p>\n<p>#This is a configuration file to setup the Oracle Database.<br \/>\n#It is used when running &#8216;\/etc\/init.d\/oracle-free-23ai configure&#8217;.<\/p>\n<p># LISTENER PORT used Database listener, Leave empty for automatic port assignment<br \/>\nLISTENER_PORT=1521<\/p>\n<p># Character set of the database<br \/>\nCHARSET=WE8ISO8859P9<\/p>\n<p># Database file directory<br \/>\n# If not specified, database files are stored under Oracle base\/oradata<br \/>\nDBFILE_DEST=\/data<\/p>\n<p># DB Domain name<br \/>\nDB_DOMAIN=oracle23ai.fatihacar.com<\/p>\n<p># Configure TDE<br \/>\nCONFIGURE_TDE=false<\/p>\n<p># Encrypt Tablespaces list, Leave empty for user tablespace alone or provide ALL for encrypting all tablespaces<br \/>\n# For specific tablespaces use SYSTEM:true,SYSAUX:false<br \/>\nENCRYPT_TABLESPACES=<\/p>\n<p># SKIP Validations, memory, space<br \/>\nSKIP_VALIDATIONS=false<\/p><\/blockquote>\n<p><strong>2. Install Database<\/strong><\/p>\n<blockquote><p>[root@oracle23ai tmp]# dnf -y localinstall oracle-database-free-23ai-1.0-1.el9.x86_64.rpm<br \/>\nLast metadata expiration check: 0:11:25 ago on Tue 14 May 2024 10:22:48 PM +03.<br \/>\nDependencies resolved.<br \/>\n===========================================================================================================================================================================================================================<br \/>\nPackage Architecture Version Repository Size<br \/>\n===========================================================================================================================================================================================================================<br \/>\nInstalling:<br \/>\noracle-database-free-23ai x86_64 1.0-1 @commandline 1.3 G<\/p>\n<p>Transaction Summary<br \/>\n===========================================================================================================================================================================================================================<br \/>\nInstall 1 Package<\/p>\n<p>Total size: 1.3 G<br \/>\nInstalled size: 3.6 G<br \/>\nDownloading Packages:<br \/>\nRunning transaction check<br \/>\nTransaction check succeeded.<br \/>\nRunning transaction test<br \/>\nTransaction test succeeded.<br \/>\nRunning transaction<br \/>\nPreparing : 1\/1<br \/>\nRunning scriptlet: oracle-database-free-23ai-1.0-1.x86_64 1\/1<br \/>\nInstalling : oracle-database-free-23ai-1.0-1.x86_64 1\/1<br \/>\nRunning scriptlet: oracle-database-free-23ai-1.0-1.x86_64 1\/1<br \/>\n[INFO] Executing post installation scripts&#8230;<br \/>\n[INFO] Oracle home installed successfully and ready to be configured.<br \/>\nTo configure Oracle Database Free, optionally modify the parameters in &#8216;\/etc\/sysconfig\/oracle-free-23ai.conf&#8217; and then run &#8216;\/etc\/init.d\/oracle-free-23ai configure&#8217; as root.<\/p>\n<p>Verifying : oracle-database-free-23ai-1.0-1.x86_64 1\/1<\/p>\n<p>Installed:<br \/>\noracle-database-free-23ai-1.0-1.x86_64<\/p>\n<p>Complete!<\/p><\/blockquote>\n<h3>Third Step : Check Connection of Oracle Database 23ai<\/h3>\n<p><strong>1. Listener<\/strong><\/p>\n<blockquote><p>[oracle@oracle23ai ~]$ lsnrctl status<\/p>\n<p>LSNRCTL for Linux: Version 23.0.0.0.0 &#8211; Production on 15-MAY-2024 20:27:12<\/p>\n<p>Copyright (c) 1991, 2024, Oracle. All rights reserved.<\/p>\n<p>Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle23ai)(PORT=1521)))<br \/>\nSTATUS of the LISTENER<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nAlias LISTENER<br \/>\nVersion TNSLSNR for Linux: Version 23.0.0.0.0 &#8211; Production<br \/>\nStart Date 14-MAY-2024 22:47:54<br \/>\nUptime 0 days 21 hr. 39 min. 18 sec<br \/>\nTrace Level off<br \/>\nSecurity ON: Local OS Authentication<br \/>\nSNMP OFF<br \/>\nDefault Service FREE<br \/>\nListener Parameter File \/opt\/oracle\/product\/23ai\/dbhomeFree\/network\/admin\/listener.ora<br \/>\nListener Log File \/opt\/oracle\/diag\/tnslsnr\/oracle23ai\/listener\/alert\/log.xml<br \/>\nListening Endpoints Summary&#8230;<br \/>\n(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle23ai)(PORT=1521)))<br \/>\n(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))<br \/>\nServices Summary&#8230;<br \/>\nService &#8220;1870584eb173d4b8e0630801a8c008b2.oracle23ai.fatihacar.com&#8221; has 1 instance(s).<br \/>\nInstance &#8220;FREE&#8221;, status READY, has 1 handler(s) for this service&#8230;<br \/>\nService &#8220;FREE.oracle23ai.fatihacar.com&#8221; has 1 instance(s).<br \/>\nInstance &#8220;FREE&#8221;, status READY, has 1 handler(s) for this service&#8230;<br \/>\nService &#8220;FREEXDB.oracle23ai.fatihacar.com&#8221; has 1 instance(s).<br \/>\nInstance &#8220;FREE&#8221;, status READY, has 1 handler(s) for this service&#8230;<br \/>\nService &#8220;freepdb1.oracle23ai.fatihacar.com&#8221; has 1 instance(s).<br \/>\nInstance &#8220;FREE&#8221;, status READY, has 1 handler(s) for this service&#8230;<br \/>\nThe command completed successfully<\/p><\/blockquote>\n<p><strong>2. Database<\/strong><\/p>\n<blockquote><p>[oracle@oracle23ai ~]$ sqlplus \/ as sysdba<\/p>\n<p>SQL*Plus: Release 23.0.0.0.0 &#8211; Production on Wed May 15 20:23:34 2024<br \/>\nVersion 23.4.0.24.05<\/p>\n<p>Copyright (c) 1982, 2024, Oracle. All rights reserved.<\/p>\n<p>Connected to:<br \/>\nOracle Database 23ai Free Release 23.0.0.0.0 &#8211; Develop, Learn, and Run for Free<br \/>\nVersion 23.4.0.24.05<\/p>\n<p>SQL&gt; SELECT name, open_mode FROM v$pdbs;<\/p>\n<p>NAME OPEN_MODE<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nPDB$SEED READ ONLY<br \/>\nFREEPDB1 READ WRITE<\/p><\/blockquote>\n<p><strong>3. Management<\/strong><\/p>\n<blockquote>\n<pre><strong>CDB<\/strong>\r\nSTARTUP [NOMOUNT | MOUNT | RESTRICT | UPGRADE | FORCE | READ ONLY]\r\nSHUTDOWN [IMMEDIATE | ABORT]\r\n\r\n<strong>PDB <\/strong>(when connect to pdb)\r\nSTARTUP FORCE;\r\nSTARTUP OPEN READ WRITE [RESTRICT];\r\nSTARTUP OPEN READ ONLY [RESTRICT];\r\nSTARTUP UPGRADE;\r\nSHUTDOWN [IMMEDIATE];\r\n\r\n<strong>Alter PDB <\/strong>(when connect to pdb)\r\nALTER PLUGGABLE DATABASE OPEN READ WRITE [RESTRICTED] [FORCE];\r\nALTER PLUGGABLE DATABASE OPEN READ ONLY [RESTRICTED] [FORCE];\r\nALTER PLUGGABLE DATABASE OPEN UPGRADE [RESTRICTED];\r\nALTER PLUGGABLE DATABASE CLOSE [IMMEDIATE];<\/pre>\n<pre><strong>Alter PDB<\/strong> (when connect to cdb)\r\nALTER PLUGGABLE DATABASE &lt;pdb-name-clause&gt; OPEN READ WRITE [RESTRICTED] [FORCE];\r\nALTER PLUGGABLE DATABASE &lt;pdb-name-clause&gt; OPEN READ ONLY [RESTRICTED] [FORCE];\r\nALTER PLUGGABLE DATABASE &lt;pdb-name-clause&gt; OPEN UPGRADE [RESTRICTED];\r\nALTER PLUGGABLE DATABASE &lt;pdb-name-clause&gt; CLOSE [IMMEDIATE];<\/pre>\n<pre>ALTER PLUGGABLE DATABASE pdb1, pdb2 OPEN READ ONLY FORCE;\r\nALTER PLUGGABLE DATABASE pdb1, pdb2 CLOSE IMMEDIATE;\r\n\r\nALTER PLUGGABLE DATABASE ALL OPEN;\r\nALTER PLUGGABLE DATABASE ALL CLOSE IMMEDIATE;\r\n\r\nALTER PLUGGABLE DATABASE ALL EXCEPT pdb1 OPEN;\r\nALTER PLUGGABLE DATABASE ALL EXCEPT pdb1 CLOSE IMMEDIATE;\r\n<\/pre>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p>Source : Oracle , Oracle Base<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oracle Database 23ai is the next long-term support release of Oracle Database. It includes over 300 new features with a focus on artificial intelligence (AI) and developer productivity. Features such as AI Vector Search enable you to leverage a new generation of AI models to generate and store vectors of documents, images, sound, and so&#8230;<\/p>\n","protected":false},"author":37,"featured_media":2959,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[128],"class_list":["post-2956","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases","tag-oracle-23ai"],"jetpack_featured_media_url":"https:\/\/www.fatihacar.com\/blog\/resimler\/oracle23ai.jpg","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-LG","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=2956"}],"version-history":[{"count":7,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2956\/revisions"}],"predecessor-version":[{"id":2965,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2956\/revisions\/2965"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media\/2959"}],"wp:attachment":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=2956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=2956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=2956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}