脚本如下:
- [oracle@RHEL ~]$ cat startup
- lsnrctl start
- sqlplus / as sysdba <<EOF
- startup;
- alter system register;
- EOF
- lsnrctl status
- ps -ef | grep ora_
- [oracle@RHEL ~]$
运行:
- [oracle@RHEL ~]$ chmod 777 startup
- [oracle@RHEL ~]$ ./startup
- LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 10-JAN-2013 09:37:15
- Copyright (c) 1991, 2005, Oracle. All rights reserved.
- Starting /single/ora10g/product/10.2.0/db_1/bin/tnslsnr: please wait...
- TNSLSNR for Linux: Version 10.2.0.1.0 - Production
- Log messages written to /single/ora10g/product/10.2.0/db_1/network/log/listener.log
- Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=RHEL)(PORT=1521)))
- Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
- STATUS of the LISTENER
- ------------------------
- Alias LISTENER
- Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
- Start Date 10-JAN-2013 09:37:15
- Uptime 0 days 0 hr. 0 min. 0 sec
- Trace Level off
- Security ON: Local OS Authentication
- SNMP OFF
- Listener Log File /single/ora10g/product/10.2.0/db_1/network/log/listener.log
- Listening Endpoints Summary...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=RHEL)(PORT=1521)))
- The listener supports no services
- The command completed successfully
- SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jan 10 09:37:15 2013
- Copyright (c) 1982, 2005, Oracle. All rights reserved.
- Connected to an idle instance.
- SQL> ORACLE instance started.
- Total System Global Area 281018368 bytes
- Fixed Size 2020192 bytes
- Variable Size 88083616 bytes
- Database Buffers 188743680 bytes
- Redo Buffers 2170880 bytes
- Database mounted.
- Database opened.
- SQL>
- System altered.
- SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP and Data Mining options
- LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 10-JAN-2013 09:37:22
- Copyright (c) 1991, 2005, Oracle. All rights reserved.
- Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
- STATUS of the LISTENER
- ------------------------
- Alias LISTENER
- Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
- Start Date 10-JAN-2013 09:37:15
- Uptime 0 days 0 hr. 0 min. 7 sec
- Trace Level off
- Security ON: Local OS Authentication
- SNMP OFF
- Listener Log File /single/ora10g/product/10.2.0/db_1/network/log/listener.log
- Listening Endpoints Summary...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=RHEL)(PORT=1521)))
- Services Summary...
- Service "elis10" has 1 instance(s).
- Instance "elis10", status READY, has 1 handler(s) for this service...
- Service "elis10XDB" has 1 instance(s).
- Instance "elis10", status READY, has 1 handler(s) for this service...
- Service "elis10_XPT" has 1 instance(s).
- Instance "elis10", status READY, has 1 handler(s) for this service...
- The command completed successfully
- oracle 4059 1 0 09:37 ? 00:00:00 ora_pmon_elis10
- oracle 4061 1 0 09:37 ? 00:00:00 ora_psp0_elis10
- oracle 4063 1 1 09:37 ? 00:00:00 ora_mman_elis10
- oracle 4065 1 0 09:37 ? 00:00:00 ora_dbw0_elis10
- oracle 4067 1 1 09:37 ? 00:00:00 ora_lgwr_elis10
- oracle 4069 1 0 09:37 ? 00:00:00 ora_ckpt_elis10
- oracle 4071 1 4 09:37 ? 00:00:00 ora_smon_elis10
- oracle 4073 1 0 09:37 ? 00:00:00 ora_reco_elis10
- oracle 4075 1 1 09:37 ? 00:00:00 ora_cjq0_elis10
- oracle 4077 1 3 09:37 ? 00:00:00 ora_mmon_elis10
- oracle 4079 1 0 09:37 ? 00:00:00 ora_mmnl_elis10
- oracle 4081 1 0 09:37 ? 00:00:00 ora_d000_elis10
- oracle 4083 1 0 09:37 ? 00:00:00 ora_s000_elis10
- oracle 4087 1 3 09:37 ? 00:00:00 ora_qmnc_elis10
- oracle 4089 1 0 09:37 ? 00:00:00 ora_j000_elis10
- oracle 4091 1 0 09:37 ? 00:00:00 ora_j001_elis10
- oracle 4094 4050 0 09:37 pts/1 00:00:00 grep ora_
- [oracle@RHEL ~]$
——
To be Continue.