{"id":395,"date":"2013-03-05T11:31:31","date_gmt":"2013-03-05T20:31:31","guid":{"rendered":"\/blog\/?p=395"},"modified":"2023-09-21T09:38:53","modified_gmt":"2023-09-21T00:38:53","slug":"solarisoracle%ec%97%90%ec%84%9c-oracle-%ec%84%a4%ec%b9%98-%ed%9b%84-%ea%b5%ac%eb%8f%99%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=395","title":{"rendered":"Solaris+Oracle\uc5d0\uc11c Oracle \uc124\uce58 \ud6c4 \uad6c\ub3d9\ud558\uae30"},"content":{"rendered":"\n<p><b><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">1. \/etc\/init.d\/oracle.sh \ub97c \uc544\ub798\uc640 \uac19\uc774 \ub9cc\ub4e4\uc5b4 \uc900\ub2e4.<\/span> (\ud37c\ubbf8\uc158\uc740 755)<\/b><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">#!\/usr\/bin\/bash<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">ORA_HOME=\/export\/home\/oracle\/app\/oracle\/product\/11.2.0\/dbhome_2<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">ORA_OWNER=oracle<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">if [ ! -f ${ORA_HOME}\/bin\/dbstart ]<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">then<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">echo \"Oracle startup: cannot start\"<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">exit<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">fi<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">echo ${ORA_HOME}<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">case \"$1\" in<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">'start')<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">echo su - ${ORA_OWNER} -c \"${ORA_HOME}\/bin\/dbstart\"<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">su - ${ORA_OWNER} -c \"${ORA_HOME}\/bin\/dbstart ${ORA_HOME}\"<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">#su - ${ORA_OWNER} -c \"${ORA_HOME}\/bin\/emctl start dbconsole\"<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">#su - ${ORA_OWNER} -c \"${ORA_HOME}\/bin\/isqlplusctl start\"<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">;;<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">'stop')<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">#su - ${ORA_OWNER} -c \"${ORA_HOME}\/bin\/isqlplusctl stop\"<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">#su - ${ORA_OWNER} -c \"${ORA_HOME}\/bin\/emctl stop dbconsole\"<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">#su - ${ORA_OWNER} -c \"${ORA_HOME}\/bin\/lsnrctl stop\"<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">su - ${ORA_OWNER} -c \"${ORA_HOME}\/bin\/dbshut ${ORA_HOME}\"<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">;;<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">esac<\/span><br \/><br \/><b><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">2. ~\/.bash_profile \uc5d0 Oracle \uad00\ub828 \ud658\uacbd\ubcc0\uc218\ub97c \uc124\uc815\ud558\uace0 oracle \uacc4\uc815\ub3c4 \ub611\uac19\uc774 \ubcf5\uc0ac\ud55c\ub2e4.<\/span><\/b><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\"># .bash_profile<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">export PS1='[\\u@\\h \\W]\\$ '<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">export PS2='&gt; '<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">export PS4='+ '<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">umask 022<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">ORACLE_BASE=\/export\/home\/oracle\/app\/oracle<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">ORACLE_HOME=${ORACLE_BASE}\/product\/11.2.0\/dbhome_2<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME\/lib<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">NLS_DATE_FORMAT=\"YYYY-MON-DD HH24:MI:SS\"<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">ORA_NLS11=$ORACLE_HOME\/nls\/data<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">ORACLE_SID=racdb1<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">ORACLE_TERM=xterm<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">TNS_ADMIN=$ORACLE_HOME\/network\/admin<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">export ORACLE_HOME<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">export LD_LIBRARY_PATH<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">export NLS_DATE_FORMAT<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">export ORA_NLS11<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">export ORACLE_BASE<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">export ORACLE_SID<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">export ORACLE_TERM<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">export TNS_ADMIN<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">PATH=${ORACLE_HOME}\/bin:${PATH}<\/span><br \/><br \/><b><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">3. \/etc\/init.d\/oracle.sh start<\/span><\/b><br \/><br \/><b><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">4. ${ORACLE_HOME}\/dbs\/init.ora\ub97c init${ORACLE_SID}.ora\ub85c \uc774\ub984\uc744 \ubcc0\uacbd\ud55c\ub2e4.<\/span><\/b><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">mv ${ORACLE_HOME}\/dbs\/init.ora ${ORACLE_HOME}\/dbs\/init${ORACLE_SID}.ora<\/span><br \/><br \/><b><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">5. init${ORACLE_SID}.ora\ub97c \ud3b8\uc9d1\ud55c\ub2e4.<\/span><\/b><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">- &lt;ORACLE_BASE&gt;\ub85c \ub418\uc5b4 \uc788\ub294 \ubd80\ubd84\uc744 \uc2e4\uc81c \uacbd\ub85c\ub85c \ubaa8\ub450 \ubc14\uafd4\uc900\ub2e4.<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">- control_files = (ora_control1, ora_control2) \ub85c \ub418\uc5b4 \uc788\ub294 \ubd80\ubd84\uc5d0\uc11c ora_control?\uc744 \uc2e4\uc81c \uacbd\ub85c\ub85c \ubc14\uafd4\uc900\ub2e4.<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">\uc608) control_files = (\"\/export\/home\/oracle\/app\/oracle\/oradata\/orcl\/control01.ctl\", \"\/export\/home\/oracle\/app\/oracle\/flash_recovery_area\/orcl\/control02.ctl\")<\/span><br \/><br \/><b><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">6. sudo - oracle \ud55c \ub2e4\uc74c \uc544\ub798\uc640 \uac19\uc774 sqlplus\ub85c Database\ub97c \ub9c8\uc6b4\ud2b8(\uad6c\ub3d9) \ud55c\ub2e4.<\/span><\/b><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">(orcl\uc740 \uc778\uc2a4\ud1a8 \uc2dc \uc124\uc815\ud55c \uad00\ub9ac\uacc4\uc815\uc774\ub2e4.)<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">$ sqlplus \"orcl\/&lt;orcl \uacc4\uc815 \ube44\ubc00\ubc88\ud638&gt; as sysdba\"<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 5 12:53:24 2013<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">Copyright (c) 1982, 2009, Oracle.&nbsp; All rights reserved.<\/span><br \/><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">Connected to:<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">With the Partitioning, OLAP, Data Mining and Real Application Testing options<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">SQL&gt; <b>startup<\/b><\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">ORACLE instance started.<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">Total System Global Area 1069252608 bytes<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">Fixed Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2154936 bytes<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">Variable Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 616570440 bytes<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">Database Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 444596224 bytes<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">Redo Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5931008 bytes<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">Database mounted.<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">Database opened.<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; background-color: rgb(255, 255, 255); color: rgb(9, 0, 255);\">\u203b \uc5b8\ub9c8\uc6b4\ud2b8\ub294 shut \uba85\ub839\uc744 \uc0ac\uc6a9\ud55c\ub2e4.<\/span><br \/><br \/><b><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">7. ${ORACLE_HOME}\/bin\/dbstart\uc640 ${ORACLE_HOME}\/bin\/dbshut \ud30c\uc77c\uc744 \ud3b8\uc9d1\ud558\uc5ec<\/span><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\"> \uad6c\ub3d9 \uc258\uc744 \/usr\/bin\/bash \ub85c \ubcc0\uacbd\ud574 \uc900\ub2e4.<\/span><\/b><br \/><br \/><b><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">8. OS \ubd80\ud305 \uc2dc \uc790\ub3d9\uc73c\ub85c \uad6c\ub3d9\ud558\uac8c \ub9cc\ub4e0\ub2e4.<\/span><\/b><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">ln -s \/etc\/init.d\/oracle.sh \/etc\/rc0.d\/K10oracle.sh<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif;\">ln -s \/etc\/init.d\/oracle.sh \/etc\/rc2.d\/S99oracle.sh<\/span><\/p><p><br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \/etc\/init.d\/oracle.sh \ub97c \uc544\ub798\uc640 \uac19\uc774 \ub9cc\ub4e4\uc5b4 \uc900\ub2e4. (\ud37c\ubbf8\uc158\uc740 755) #!\/usr\/bin\/bash ORA_HOME=\/export\/home\/oracle\/app\/oracle\/product\/11.2.0\/dbhome_2ORA_OWNER=oracle if [ ! -f ${ORA_HOME}\/bin\/dbstart ]thenecho &#8220;Oracle startup: cannot start&#8221;exitfi echo ${ORA_HOME} case &#8220;$1&#8221; in&#8217;start&#8217;)echo su &#8211; ${ORA_OWNER} -c &#8220;${ORA_HOME}\/bin\/dbstart&#8221;su &#8211; ${ORA_OWNER} -c &#8220;${ORA_HOME}\/bin\/dbstart ${ORA_HOME}&#8221;#su &#8211; ${ORA_OWNER} -c &#8220;${ORA_HOME}\/bin\/emctl start dbconsole&#8221;#su &#8211; ${ORA_OWNER} -c &#8220;${ORA_HOME}\/bin\/isqlplusctl start&#8221;;;&#8217;stop&#8217;)#su &#8211; ${ORA_OWNER} -c &#8220;${ORA_HOME}\/bin\/isqlplusctl stop&#8221;#su &#8211; ${ORA_OWNER} -c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[39],"tags":[],"class_list":["post-395","post","type-post","status-publish","format-standard","hentry","category-os_linux_unix_macos"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=395"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/395\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}