环境:
客户端:Windowns XP
主机:vmwares 下安装的RHEL5
ORACLE具体安装步骤网上有课程,比较详细的有小布老师的linux下安装oracle,详细地址见下:
在线观看地址:http://www.boobooke.com/v/bbk1041
下载地址:http://www.boobooke.com/v/bbk1041.ZIP
其中包括了在虚拟机上安装CentOS(正确安装对后期安装oracle起到保障作用),安装oracle前的准备工作,按照视频中在讲解主要需要参照oracle公司提供的安装知道手册,地址如下:
www.oracle.com
具体位置略微查找下。
在虚拟机上linux环境下安装好了oracle之后,首先要做的当然是开启监听和数据库:
[oracle@oracle11g u01]$ lsnrctl start --开启监听
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 20-JUL-2012 23:43:01
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Starting /u01/oracle/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.1.0.6.0 - Production
System parameter file is /u01/oracle/network/admin/listener.ora
Log messages written to /u01/diag/tnslsnr/oracle11g/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle11g)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle11g)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.1.0.6.0 - Production
Start Date 20-JUL-2012 23:43:04
Uptime 0 days 0 hr. 0 min. 2 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/oracle/network/admin/listener.ora
Listener Log File /u01/diag/tnslsnr/oracle11g/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle11g)(PORT=1521)))
Services Summary...
Service "wilson" has 1 instance(s).
Instance "wilson", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@oracle11g u01]$ sqlplus sys/oracle as sysdba --登录数据库
SQL>startup --开启数据库服务
--配置Windowns XP下客户端相关文件
# tnsnames.ora Network Configuration File: d:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
WILSON =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.188)(PORT = 1521)) --位置
)
(CONNECT_DATA =
(SERVICE_NAME = wilson) --服务器名
)
)
# listener.ora Network Configuration File: d:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = d:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:d:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(SID_DESC =
(GLOBAL_DBNAME = wilson)
(ORACLE_HOME = /u01/oracle)
(SID_NAME = wilson)
) )
ysj0116 于 2013-01-16 16:14:50发表:
受教了
无怀 于 2013-01-12 16:14:58发表:
学习了!!!
nwtoig 于 2012-07-21 07:05:21发表:
收下再看~