啓動數據庫與監聽的腳本

腳本如下: 

  1. [oracle@RHEL ~]$ cat startup   
  2. lsnrctl start  
  3. sqlplus / as sysdba <<EOF  
  4. startup;  
  5. alter system register;  
  6. EOF  
  7. lsnrctl status  
  8. ps -ef | grep ora_  
  9. [oracle@RHEL ~]$ 

運行:

  1. [oracle@RHEL ~]$ chmod 777 startup   
  2. [oracle@RHEL ~]$ ./startup   
  3.  
  4. LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 10-JAN-2013 09:37:15  
  5.  
  6. Copyright (c) 1991, 2005, Oracle.  All rights reserved.  
  7.  
  8. Starting /single/ora10g/product/10.2.0/db_1/bin/tnslsnr: please wait...  
  9.  
  10. TNSLSNR for Linux: Version 10.2.0.1.0 - Production  
  11. Log messages written to /single/ora10g/product/10.2.0/db_1/network/log/listener.log  
  12. Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=RHEL)(PORT=1521)))  
  13.  
  14. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))  
  15. STATUS of the LISTENER  
  16. ------------------------  
  17. Alias                     LISTENER  
  18. Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production  
  19. Start Date                10-JAN-2013 09:37:15  
  20. Uptime                    0 days 0 hr. 0 min. 0 sec  
  21. Trace Level               off 
  22. Security                  ONLocal OS Authentication  
  23. SNMP                      OFF 
  24. Listener Log File         /single/ora10g/product/10.2.0/db_1/network/log/listener.log  
  25. Listening Endpoints Summary...  
  26.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=RHEL)(PORT=1521)))  
  27. The listener supports no services  
  28. The command completed successfully  
  29.  
  30. SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jan 10 09:37:15 2013  
  31.  
  32. Copyright (c) 1982, 2005, Oracle.  All rights reserved.  
  33.  
  34. Connected to an idle instance.  
  35.  
  36. SQL> ORACLE instance started.  
  37.  
  38. Total System Global Area  281018368 bytes  
  39. Fixed Size           2020192 bytes  
  40. Variable Size          88083616 bytes  
  41. Database Buffers      188743680 bytes  
  42. Redo Buffers            2170880 bytes  
  43. Database mounted.  
  44. Database opened.  
  45. SQL>   
  46. System altered.  
  47.  
  48. SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production  
  49. With the Partitioning, OLAP and Data Mining options  
  50.  
  51. LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 10-JAN-2013 09:37:22  
  52.  
  53. Copyright (c) 1991, 2005, Oracle.  All rights reserved.  
  54.  
  55. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))  
  56. STATUS of the LISTENER  
  57. ------------------------  
  58. Alias                     LISTENER  
  59. Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production  
  60. Start Date                10-JAN-2013 09:37:15  
  61. Uptime                    0 days 0 hr. 0 min. 7 sec  
  62. Trace Level               off 
  63. Security                  ONLocal OS Authentication  
  64. SNMP                      OFF 
  65. Listener Log File         /single/ora10g/product/10.2.0/db_1/network/log/listener.log  
  66. Listening Endpoints Summary...  
  67.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=RHEL)(PORT=1521)))  
  68. Services Summary...  
  69. Service "elis10" has 1 instance(s).  
  70.   Instance "elis10", status READY, has 1 handler(s) for this service...  
  71. Service "elis10XDB" has 1 instance(s).  
  72.   Instance "elis10", status READY, has 1 handler(s) for this service...  
  73. Service "elis10_XPT" has 1 instance(s).  
  74.   Instance "elis10", status READY, has 1 handler(s) for this service...  
  75. The command completed successfully  
  76. oracle    4059     1  0 09:37 ?        00:00:00 ora_pmon_elis10  
  77. oracle    4061     1  0 09:37 ?        00:00:00 ora_psp0_elis10  
  78. oracle    4063     1  1 09:37 ?        00:00:00 ora_mman_elis10  
  79. oracle    4065     1  0 09:37 ?        00:00:00 ora_dbw0_elis10  
  80. oracle    4067     1  1 09:37 ?        00:00:00 ora_lgwr_elis10  
  81. oracle    4069     1  0 09:37 ?        00:00:00 ora_ckpt_elis10  
  82. oracle    4071     1  4 09:37 ?        00:00:00 ora_smon_elis10  
  83. oracle    4073     1  0 09:37 ?        00:00:00 ora_reco_elis10  
  84. oracle    4075     1  1 09:37 ?        00:00:00 ora_cjq0_elis10  
  85. oracle    4077     1  3 09:37 ?        00:00:00 ora_mmon_elis10  
  86. oracle    4079     1  0 09:37 ?        00:00:00 ora_mmnl_elis10  
  87. oracle    4081     1  0 09:37 ?        00:00:00 ora_d000_elis10  
  88. oracle    4083     1  0 09:37 ?        00:00:00 ora_s000_elis10  
  89. oracle    4087     1  3 09:37 ?        00:00:00 ora_qmnc_elis10  
  90. oracle    4089     1  0 09:37 ?        00:00:00 ora_j000_elis10  
  91. oracle    4091     1  0 09:37 ?        00:00:00 ora_j001_elis10  
  92. oracle    4094  4050  0 09:37 pts/1    00:00:00 grep ora_  
  93. [oracle@RHEL ~]$  

——

To be Continue.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章