{"id":863,"date":"2009-05-11T21:11:23","date_gmt":"2009-05-12T02:11:23","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=863"},"modified":"2011-10-12T11:50:52","modified_gmt":"2011-10-12T16:50:52","slug":"oracle-10g-install","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=863","title":{"rendered":"Oracle 10G Install"},"content":{"rendered":"<span id=\"Optimal_Flexible_Architecture\"><h2>Optimal Flexible Architecture<\/h2><\/span>\n<span id=\"Directory_structure\"><h3>Directory structure<\/h3><\/span>\n<span id=\"Three_sets_of_directories\"><h4>Three sets of directories<\/h4><\/span>\n<p>* One for Oracle binary files<br \/>\n* One for control files, redo log files, other admin files<br \/>\n* One for data files<\/p>\n<span id=\"Naming_scheme\"><h3>Naming scheme<\/h3><\/span>\n<span id=\"Mount_points:_pm\"><h4>Mount points: \/pm<\/h4><\/span>\n<p>* p: literal; m: variable<\/p>\n<span id=\"Examples\"><h5>Examples<\/h5><\/span>\n<p>* \/u01 \/u02 \/u03<br \/>\n* \/ora01 \/ora02 \/ora03<\/p>\n<span id=\"Oracle_install_directory:_pmhuproductv\"><h4>Oracle install directory: \/pm\/h\/u\/product\/v<\/h4><\/span>\n<p>* h: purpose; u: user; v: version<\/p>\n<span id=\"Examples_1\"><h5>Examples<\/h5><\/span>\n<p>* \/u02\/db\/oracle\/product\/10.1.0<br \/>\n* \/u01\/app\/oracle\/product\/9.0.4<\/p>\n<span id=\"Admin_directory:_pmhadminda\"><h4>Admin directory: \/pm\/h\/admin\/d\/a<\/h4><\/span>\n<p>* d: sid; a: subdirectory (adhoc, arch, adump, bdump, cdump, create, exp, logbook, pfile, udump<\/p>\n<span id=\"Examples_2\"><h5>Examples<\/h5><\/span>\n<p>* \/u02\/db\/admin\/orcl\/create<\/p>\n<span id=\"File_naming_convention\"><h4>File naming convention<\/h4><\/span>\n<span id=\"Root_directory:_pmqd\"><h5>Root directory: \/pm\/q\/d<\/h5><\/span>\n<p>* q: literal, d: db name or sid<\/p>\n<span id=\"Examples_3\"><h5>Examples<\/h5><\/span>\n<p>* \/u03\/oradata\/ocp10g<\/p>\n<span id=\"Files\"><h5>Files<\/h5><\/span>\n<p>* Control files: controlnn.ctl (control01.ctl)<br \/>\n* Redo log files: redonn.log (redo01.log)<br \/>\n* Data files: tablespacenn.dbf (system01.dbf, undo01.dbf)<\/p>\n<span id=\"Install\"><h2>Install<\/h2><\/span>\n<span id=\"Create_User_and_Group\"><h3>Create User and Group<\/h3><\/span>\n<span id=\"UnixLinux\"><h4>Unix\/Linux<\/h4><\/span>\n<p>* User: oracle<br \/>\n* Groups: oinstall, dba<\/p>\n<pre>groupadd -g 500 oinstall\r\ngroupadd -g 501 dba\r\nuseradd -u 500 -g oinstall -G dba -d \/home\/oracle oracle -s \/bin\/bash<\/pre>\n<span id=\"Windows\"><h4>Windows<\/h4><\/span>\n<p>* User: any user belong to Admin group<br \/>\n* Group: ORA_DBA<\/p>\n<span id=\"Set_Environment_Variables\"><h3>Set Environment Variables<\/h3><\/span>\n<p>* ORACLE_BASE (\/opt\/oracle)<br \/>\n* ORACLE_HOME ($ORACLE_BASE\/product\/10.1.0)<br \/>\n* ORACLE_SID (ORCL)<br \/>\n* NLS_LANG (American_America.US7ASCII)<br \/>\n* DISPLAY (db1.my.com:1.0)<\/p>\n<span id=\"Oracle_Universal_Installer\"><h3>Oracle Universal Installer<\/h3><\/span>\n<span id=\"Command\"><h4>Command<\/h4><\/span>\n<p>* Unix:<br \/>\n&#8211; runInstaller<br \/>\n&#8211; runInstaller -parameterFile \/home\/oracle\/oraparam.ini<br \/>\n* Windows: setup.exe<\/p>\n<span id=\"Features\"><h4>Features<\/h4><\/span>\n<p>* Dependency checking (to disable: runInstaller -ignoreSysPrereqs)<br \/>\n* Multiple Oracle home support<br \/>\n* National language\/globalization support<br \/>\n* Web based installation (??)<br \/>\n* Unattended installation <\/p>\n<pre>runInstaller -responsefile respfile [-silent] [-nowelcome]<\/pre>\n<p>* Uninstall<br \/>\n* Support for user defined packages<\/p>\n<span id=\"Install_1\"><h4>Install<\/h4><\/span>\n<p>* Specify database file storage option:<br \/>\n&#8211; Local file system<br \/>\n&#8211; Automatic storage management (ASM)<br \/>\n&#8211; Raw devices<\/p>\n<span id=\"Post_install\"><h3>Post install<\/h3><\/span>\n<pre>\r\n# Oracle Settings\r\nTMP=\/tmp; export TMP\r\nTMPDIR=$TMP; export TMPDIR\r\nORACLE_BASE=\/opt\/oracle; export ORACLE_BASE\r\nORACLE_HOME=$ORACLE_BASE\/product\/10.1.0\/orcl; export ORACLE_HOME\r\nORACLE_SID=ORCL; export ORACLE_SID\r\nPATH=$ORACLE_HOME\/bin:\/usr\/sbin:$PATH; export PATH\r\nLD_LIBRARY_PATH=$ORACLE_HOME\/lib:\/lib:\/usr\/lib; export LD_LIBRARY_PATH\r\nCLASSPATH=$ORACLE_HOME\/JRE:$ORACLE_HOME\/jlib:$ORACLE_HOME\/rdbms\/jlib; export CLASSPATH\r\nLD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL\r\nulimit -u 16384 -n 65536<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Optimal Flexible Architecture Directory structure Three sets of directories * One for Oracle binary files * One for control files, redo log files, other admin files * One for data files Naming scheme Mount points: \/pm * p: literal; m: &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=863\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[93,35],"tags":[],"class_list":["post-863","post","type-post","status-publish","format-standard","hentry","category-10g","category-oracle"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-dV","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=863"}],"version-history":[{"count":9,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/863\/revisions"}],"predecessor-version":[{"id":3624,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/863\/revisions\/3624"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}