[oracle@racdb1 ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Dec 5 11:15:06 2010
Copyright (c) 1982, 2005, Oracle.All rights reserved.
SQL> conn / as sysdba;
Connected.
SQL> select instance_name from v$instance;
INSTANCE_NAME
----------------
orcl1
SQL> select dbms_xdb.getFTPPort from dual;
GETFTPPORT
----------
0
SQL> select dbms_xdb.getHTTPPort from dual;
GETHTTPPORT
-----------
0
SQL>
二.查看监听
先查看一下监听,等会修改之后好做个对比:
[oracle@racdb2 ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 05-DEC-2010 11:17:13
Copyright (c) 1991, 2005, Oracle.All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
AliasLISTENER_RACDB2
VersionTNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date05-DEC-2010 10:42:45
Uptime0 days 0 hr. 34 min. 27 sec
Trace Leveloff
SecurityON: Local OS Authentication
SNMPOFF
Listener Parameter File/u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File/u01/app/oracle/product/10.2.0/db_1/network/log/listener_racdb2.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.6.228)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.6.226)(PORT=1521)))
--这里只有2个
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM2", status BLOCKED, has 1 handler(s) for this service...
Service "+ASM_XPT" has 1 instance(s).
Instance "+ASM2", status BLOCKED, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "oltp" has 2 instance(s).
Instance "orcl1", status READY, has 1 handler(s) for this service...
Instance "orcl2", status READY, has 2 handler(s) for this service...
Service "orcl" has 2 instance(s).
Instance "orcl1", status READY, has 1 handler(s) for this service...
Instance "orcl2", status READY, has 2 handler(s) for this service...
Service "orclXDB" has 2 instance(s).
Instance "orcl1", status READY, has 1 handler(s) for this service...
Instance "orcl2", status READY, has 1 handler(s) for this service...
Service "orcl_XPT" has 2 instance(s).
Instance "orcl1", status READY, has 1 handler(s) for this service...
Instance "orcl2", status READY, has 2 handler(s) for this service...
The command completed successfully
查看端口信息:
SQL>select dbms_xdb.getFTPPort from dual;
GETFTPPORT
----------
2222
SQL>select dbms_xdb.getHTTPPort from dual;
GETHTTPPORT
-----------
8888
四.再次查看监听:
[oracle@racdb2 ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 05-DEC-2010 12:08:23
Copyright (c) 1991, 2005, Oracle.All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
AliasLISTENER
VersionTNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date05-DEC-2010 11:31:30
Uptime0 days 0 hr. 36 min. 53 sec
Trace Leveloff
SecurityON: Local OS Authentication
SNMPOFF
Listener Parameter File/u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File/u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=racdb2)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=racdb2)(PORT=8888))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=racdb2)(PORT=2222))(Presentation=FTP)(Session=RAW))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM2", status BLOCKED, has 1 handler(s) for this service...
Service "+ASM_XPT" has 1 instance(s).
Instance "+ASM2", status BLOCKED, has 1 handler(s) for this service...
Service "orcl" has 2 instance(s).
Instance "orcl1", status READY, has 1 handler(s) for this service...
Instance "orcl2", status READY, has 2 handler(s) for this service...
Service "orclXDB" has 2 instance(s).
Instance "orcl1", status READY, has 1 handler(s) for this service...
Instance "orcl2", status READY, has 1 handler(s) for this service...
Service "orcl_XPT" has 2 instance(s).
Instance "orcl1", status READY, has 1 handler(s) for this service...
Instance "orcl2", status READY, has 2 handler(s) for this service...
The command completed successfully
5.1FTP访问
[iyunv@racdb2 bin]# ftp racdb1 2222
Connected to racdb1.
220- racdb1
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 racdb1 FTP Server (Oracle XML DB/Oracle Database) ready.
530Please login with USER and PASS.
530Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (racdb1:root): system--数据库用户名
331 pass required for SYSTEM
Password:
230 SYSTEM logged in
Remote system type is Unix.