{"id":7840,"date":"2019-06-14T10:28:20","date_gmt":"2019-06-14T02:28:20","guid":{"rendered":"http:\/\/rmohan.com\/?p=7840"},"modified":"2019-06-14T10:28:33","modified_gmt":"2019-06-14T02:28:33","slug":"steps-to-install-oracle-19c-in-centos-7-6-rpm-mode","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7840","title":{"rendered":"Steps to install Oracle 19c in CentOS 7.6 RPM mode"},"content":{"rendered":"\n<p>Steps to install Oracle 19c in CentOS 7.6 RPM mode<\/p>\n\n\n\n<ol><li>Download the required installation package:<\/li><\/ol>\n\n\n\n<p>1.1 preinstall<\/p>\n\n\n\n<p>http:\/\/yum.Oracle.com\/repo\/OracleLinux\/OL7\/latest\/x86_64\/getPackage\/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm<br>\n1.2 Oracle rpm installation package<\/p>\n\n\n\n<p>https:\/\/www.oracle.com\/technetwork\/database\/enterprise-edition\/downloads\/index.html<br>\nIt is recommended to download at home or see the VPN proxy download speed in the company.<\/p>\n\n\n\n<ol><li>Installation.<\/li><\/ol>\n\n\n\n<p>yum localinstall -y oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm<\/p>\n\n\n\n<p>Install after installation is complete<\/p>\n\n\n\n<p>yum localinstall -y oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm<br>\nWait for the installation results.<\/p>\n\n\n\n<p>Different servers take different time:<\/p>\n\n\n\n<p>The result of my installation here is:<\/p>\n\n\n\n<p>Total size: 6.9 G<br>\nInstalled size: 6.9 G<br>\nDownloading packages:<br>\nRunning transaction check<br>\nRunning transaction test<br>\nTransaction test succeeded<br>\nRunning transaction<br>\n  Installing : oracle-database-ee-19c-1.0-1.x86_64                                                                                           1\/1 <br>\n[INFO] Executing post installation scripts\u2026<br>\n[INFO] Oracle home installed successfully and ready to be configured.<br>\nTo configure a sample Oracle Database you can execute the following service configuration script as root: \/etc\/init.d\/oracledb_ORCLCDB-19c configure<br>\n  Verifying  : oracle-database-ee-19c-1.0-1.x86_64                                                                                           1\/1 <\/p>\n\n\n\n<p>Installed:<br>\n  oracle-database-ee-19c.x86_64 0:1.0-1                                                                                                          <\/p>\n\n\n\n<p>Complete!<br>\nNote that the configuration after the installation is complete requires the root user.<\/p>\n\n\n\n<ol><li>As with previous blogs, you need to modify the character set and other configurations:<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.cnblogs.com\/jinanxiaolaohu\/p\/9826653.html\n<\/div><\/figure>\n\n\n\n<p>https:\/\/www.cnblogs.com\/jinanxiaolaohu\/p\/10015624.html<br>\nThe modified configuration file of oracle19c is:<\/p>\n\n\n\n<p>vim \/etc\/init.d\/oracledb_ORCLCDB-19c<br>\nThe revised content is mainly the part of the circle<\/p>\n\n\n\n<p>Text version:<\/p>\n\n\n\n<p>export ORACLE_VERSION=19c<br>\nexport ORACLE_SID=ORA19C<br>\nexport TEMPLATE_NAME=General_Purpose.dbc<br>\nexport CHARSET=ZHS16GBK<br>\nexport PDB_NAME=ORA19CPDB<br>\nexport CREATE_AS_CDB=true<br>\nCorresponding to copy a parameter file<\/p>\n\n\n\n<p>cd \/etc\/sysconfig\/<\/p>\n\n\n\n<p>cp oracledb_ORCLCDB-19c.conf  oracledb_ORA19C-19c.conf<\/p>\n\n\n\n<ol><li>Configure with the root user.<\/li><\/ol>\n\n\n\n<p>The root user executes the command:<br>\n \/etc\/init.d\/oracledb_ORCLCDB-19c configure<br>\nWait for the Oracle database to perform initialization operations.<\/p>\n\n\n\n<p>. Processing after the completion of the execution. <\/p>\n\n\n\n<p>Increase environment variable processing<\/p>\n\n\n\n<p>vim \/etc\/profile.d\/oracle19c.sh<\/p>\n\n\n\n<p>Add content as:<br>\nexport  ORACLE_HOME=\/opt\/oracle\/product\/19c\/dbhome_1<br>\nexport  PATH=$PATH:\/opt\/oracle\/product\/19c\/dbhome_1\/bin<br>\nexport  ORACLE_SID=ORA19C<br>\nModify the password of the Oracle user:<\/p>\n\n\n\n<p>passwd oracle<br>\nUse Oracle login for related processing<\/p>\n\n\n\n<p>sqlplus \/ as sysdba<br>\nView pdb information<\/p>\n\n\n\n<p>show pdbs<br>\n5.1 Create a trigger to automatically start pdb (Do not set the PDB boot startup Many programs can not connect to the PDB, it is recommended to use show pdbs to view the status, manual start can also. Can not create business data in the CDB, will prompt to create the user name does not meet c# ##???)<\/p>\n\n\n\n<p>CREATE TRIGGER open_all_pdbs<br>\n   AFTER STARTUP ON DATABASE<br>\nBEGIN<br>\n   EXECUTE IMMEDIATE &#8216;alter pluggable database all open&#8217;;<br>\nEND open_all_pdbs;<br>\n\/<\/p>\n","protected":false},"excerpt":{"rendered":"\n<p>Steps to install Oracle 19c in CentOS 7.6 RPM mode<\/p>\n<p> Download the required installation package: <\/p>\n<p>1.1 preinstall<\/p>\n<p>http:\/\/yum.Oracle.com\/repo\/OracleLinux\/OL7\/latest\/x86_64\/getPackage\/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm 1.2 Oracle rpm installation package<\/p>\n<p>https:\/\/www.oracle.com\/technetwork\/database\/enterprise-edition\/downloads\/index.html It is recommended to download at home or see the VPN proxy download speed in the company.<\/p>\n<p> Installation. <\/p>\n<p>yum localinstall -y oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm<\/p>\n<p>Install after installation is complete<\/p>\n<p>yum localinstall -y [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,34],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7840"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7840"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7840\/revisions"}],"predecessor-version":[{"id":7841,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7840\/revisions\/7841"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}