23,121
社区成员
发帖
与我相关
我的任务
分享
[oracle@localhost bin]$ ./dbstart $ORACLE_HOME
Processing Database instance "orcl": log file /home/oracle/app/oracle/product/11.2.0/dbhome_1/startup.log
startup.log内容:
Sat Dec 13 19:38:16 PST 2014
SQL*Plus: Release 11.2.0.1.0 Production on Sat Dec 13 19:38:16 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> Connected to an idle instance.
SQL> ORACLE instance started.
Total System Global Area 1603411968 bytes
Fixed Size 2213776 bytes
Variable Size 939526256 bytes
Database Buffers 654311424 bytes
Redo Buffers 7360512 bytes
Database mounted.
Database opened.
SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
./dbstart: Database instance "orcl" warm started.
[oracle@localhost bin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-DEC-2014 19:40:04
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=16.156.214.130)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 13-DEC-2014 19:38:16
Uptime 0 days 0 hr. 1 min. 48 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /home/oracle/app/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=16.156.214.130)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@localhost bin]$
[oracle@localhost admin]$ cat listener.ora
# listener.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 16.156.214.130)(PORT = 1521))
)
)
ADR_BASE_LISTENER1 = /home/oracle/app
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 16.156.214.130)(PORT = 1521))
)
)
ADR_BASE_LISTENER = /home/oracle/app
[oracle@localhost admin]$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ICIS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 16.156.214.130)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ICIS)
)
)
[oracle@localhost admin]$
[oracle@localhost ~]$ tnsping ICIS
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 13-DEC-2014 19:34:43
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 16.156.214.130)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = ICIS)))
OK (0 msec)
[oracle@localhost ~]$
ICIS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 16.156.214.130)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ICIS)
)
)
C:\Users\chengk>ping 16.156.214.130
Pinging 16.156.214.130 with 32 bytes of data:
Reply from 16.156.214.130: bytes=32 time<1ms TTL=64
Reply from 16.156.214.130: bytes=32 time<1ms TTL=64
Reply from 16.156.214.130: bytes=32 time<1ms TTL=64
Reply from 16.156.214.130: bytes=32 time<1ms TTL=64
Ping statistics for 16.156.214.130:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Users\chengk>tnsping ICIS
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 14-12ŒŽ-2014 15:02:20
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\ORACLE\product\11.2.0\client_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 16.157.133.7
2)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = icis)))
TNS-12541: TNS:no listener
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_NAME = orcl)
(ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = orcl)
)
)
SID_LIST_LISTENER1 =
(SID_LIST =
(SID_DESC =
(GLOBAL_NAME = orcl)
(ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = orcl)
)
)
[root@localhost ~]# cat /etc/sysconfig/iptables
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
[root@localhost ~]# ^C
[root@localhost ~]# service iptables status
iptables: Firewall is not running.
[root@localhost ~]#