1、linux系统关闭防火墙
iptables -F
2、修改监听文件
/u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
如没有新增
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(SID_NAME = orcl)
)
)
3、修改hosts文件
#127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
127.0.0.1 localhost
192.168.3.100 localhost.localdomain
#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
4、数据库注册命令
SQL> alter system register;
System altered.
5.数据库监听关闭和启动
su - oracle
lsnrctl stop
lsnrctl start
6.数据库关闭和启动
sqlplus / as sysdba
shutdown immediate
startup