STARTING DATABASE
- Start Listerner up
# lsnrctl start 1. Connect to sqlplus as sysdba SQL> connect sys as sysdba 2. run command 'startup' SQL> startup 3. Exit from sqlplus SQL> exit ### STARTING Enterprise Manager 1. Login as oracle user 2. run following command <div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash"> <span style="color:#75715e"># emctl start dbconsole</span> <span style="color:#75715e">#### example</span> <div class<span style="color:#f92672">=</span><span style="color:#e6db74">"highlight"</span>><pre style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"</span>><code class<span style="color:#f92672">=</span><span style="color:#e6db74">"language-bash"</span> data-lang<span style="color:#f92672">=</span><span style="color:#e6db74">"bash"</span>>-bash-3.00$ emctl start dbconsole Oracle Enterprise Manager 10g Database Control Release 10.2.0.2.0 Copyright <span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f92672"</span>><span style="color:#f92672">(</span></span>c<span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f92672"</span>><span style="color:#f92672">)</span></span> 1996, <span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#ae81ff"</span>>2005</span> Oracle Corporation. All rights reserved. http://dbman.toon-net.local:5500/em/console/aboutApplication Starting Oracle Enterprise Manager 10g Database Control .............. started. ------------------------------------------------------------------ Logs are generated in directory /db/oracle/102/dbman.toon-net.local_cava/sysman/log</code></pre></div> <span style="color:#75715e">### Starting iSQL*Plus (http://dbman.toon-net.local:5560/isqlplus/)</span> 1. Login as oracle 2. run following command <div class<span style="color:#f92672">=</span><span style="color:#e6db74">"highlight"</span>><pre style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"</span>><code class<span style="color:#f92672">=</span><span style="color:#e6db74">"language-bash"</span> data-lang<span style="color:#f92672">=</span><span style="color:#e6db74">"bash"</span>> <span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#75715e"</span>># isqlplusctl start</span> </code></pre></div> <span style="color:#75715e">#### example</span> <div class<span style="color:#f92672">=</span><span style="color:#e6db74">"highlight"</span>><pre style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"</span>><code class<span style="color:#f92672">=</span><span style="color:#e6db74">"language-bash"</span> data-lang<span style="color:#f92672">=</span><span style="color:#e6db74">"bash"</span>>-bash-3.00$ isqlplusctl start iSQL*Plus 10.2.0.2.0 Copyright <span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f92672"</span>><span style="color:#f92672">(</span></span>c<span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f92672"</span>><span style="color:#f92672">)</span></span> 2003, 2005, Oracle. All Rights Reserved. Starting iSQL*Plus ... iSQL*Plus started.</code></pre></div> <span style="color:#75715e">### SHUTTING DOWN DATABASE</span> 1. Connect to sqlplus as sysdba <div class<span style="color:#f92672">=</span><span style="color:#e6db74">"highlight"</span>><pre style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"</span>><code class<span style="color:#f92672">=</span><span style="color:#e6db74">"language-sql"</span> data-lang<span style="color:#f92672">=</span><span style="color:#e6db74">"sql"</span>> <span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#66d9ef"</span>>connect</span> sys <span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#66d9ef"</span>>as</span> sysdba </code></pre></div> 2. run command <span style="color:#e6db74">'shutdown immediate'</span> <div class<span style="color:#f92672">=</span><span style="color:#e6db74">"highlight"</span>><pre style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"</span>><code class<span style="color:#f92672">=</span><span style="color:#e6db74">"language-sql"</span> data-lang<span style="color:#f92672">=</span><span style="color:#e6db74">"sql"</span>> <span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#66d9ef"</span>>SQL</span><span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f92672"</span>>&gt;</span> shutdown <span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#66d9ef"</span>>immediate</span> </code></pre></div> 3. Exit from sqlplus <div class<span style="color:#f92672">=</span><span style="color:#e6db74">"highlight"</span>><pre style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"</span>><code class<span style="color:#f92672">=</span><span style="color:#e6db74">"language-sql"</span> data-lang<span style="color:#f92672">=</span><span style="color:#e6db74">"sql"</span>> <span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#66d9ef"</span>>SQL</span><span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f92672"</span>>&gt;</span> exit </code></pre></div> <span style="color:#75715e">#### example</span> <div class<span style="color:#f92672">=</span><span style="color:#e6db74">"highlight"</span>><pre style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"</span>><code class<span style="color:#f92672">=</span><span style="color:#e6db74">"language-bash"</span> data-lang<span style="color:#f92672">=</span><span style="color:#e6db74">"bash"</span>>bash-3.00# su - oracle Sun Microsystems Inc. SunOS 5.10 Generic January <span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#ae81ff"</span>>2005</span> -bash-3.00$ echo $ORACLE_SID orcl -bash-3.00$ sqlplus /nolog SQL*Plus: Release 10.2.0.2.0 - Production on Thu May <span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#ae81ff"</span>>29</span> 16:05:14 <span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#ae81ff"</span>>2008</span> Copyright <span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f92672"</span>><span style="color:#f92672">(</span></span>c<span style<span style="color:#f92672">=</span><span style="color:#e6db74">"color:#f92672"</span>><span style="color:#f92672">)</span></span> 1982, 2005, Oracle. All Rights Reserved. SQL&gt; connect sys as sysdba Enter password: Connected. SQL&gt; shutdown immediate Database closed. Database dismounted. ORACLE instance shut down. SQL&gt; SQL&gt; exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production With the Partitioning, OLAP and Data Mining options</code></pre></div></code></pre></div>