0

0

Oracle ASM配置使用FTP和HTML访问ASM

php中文网

php中文网

发布时间:2016-06-07 17:00:12

|

1218人浏览过

|

来源于php中文网

原创

XML Database (XDB)使我们能够使用FTP和HTML协议访问和管理ASM磁盘组中的文件,可以方便的浏览和移入和移出。1. 查看当前的监听

XML Database (XDB)使我们能够使用FTP和HTML协议访问和管理ASM磁盘组中的文件,



PL/SQL procedure successfully completed.

SQL> execute dbms_xdb.setftpport(2100);

PL/SQL procedure successfully completed.

SQL> commit;

Commit complete.

3. 重启数据库
$ srvctl stop database -d TEST
$ srvctl start database -d TEST

4. 查看FTP和HTTP是否被监听,如果没有,,则重启监听
$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 04-NOV-2010 10:57:31

Copyright (c) 1991, 2007, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER_DB07
Version                   TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date                29-OCT-2010 13:13:18
Uptime                    5 days 21 hr. 44 min. 13 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /home/oratest/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File         /home/oratest/product/10.2.0/db_1/network/log/listener_db07.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.32.10.247)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.32.10.72)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db07.jiade.com)(PORT=8080))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db07.jiade.com)(PORT=2100))(Presentation=FTP)(Session=RAW))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status BLOCKED, has 1 handler(s) for this service...
Service "+ASM_XPT" has 1 instance(s).
Instance "+ASM1", 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 "TEST" has 2 instance(s).
Instance "TEST1", status READY, has 2 handler(s) for this service...
Instance "TEST2", status READY, has 1 handler(s) for this service...
Service "TESTXDB" has 2 instance(s).
Instance "TEST1", status READY, has 1 handler(s) for this service...
Instance "TEST2", status READY, has 1 handler(s) for this service...
Service "TEST_XPT" has 2 instance(s).
Instance "TEST1", status READY, has 2 handler(s) for this service...
Instance "TEST2", status READY, has 1 handler(s) for this service...
The command completed successfully
已经正常监听HTTP:8080和FTP:2100端口。

5. 看看FTP
$ ftp -n
ftp> open db07 2100
Connected to db07.jiade.com.
220- db07
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 db07 FTP Server (Oracle XML DB/Oracle Database) ready.
530  Please login with USER and PASS.
530  Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
ftp> user system system_password (数据库用户和密码)
331 pass required for SYSTEM
230 SYSTEM logged in

简单命令:
ls  : 列出当前目录下的所有文件和目录
cd : 切换目录

Step-by-Step
ftp> ls
227 Entering Passive Mode (10,32,10,72,112,6)
150 ASCII Data Connection
drw-r--r--   2 SYS      oracle         0 SEP 14 03:55 home
drw-r--r--   2 SYS      oracle         0 MAR 12 00:59 public
drw-r--r--   2 SYS      oracle         0 SEP 14 03:55 sys  

-rw-r--r--   1 SYS      oracle         0 NOV 04 02:50 xdbconfig.xml

ftp> cd sys
ftp> ls
200 PORT Command successful
150 ASCII Data Connection
drw-r--r--   2 SYS      oracle         0 MAR 12 00:59 acls
drw-r--r--   2 SYS      oracle         0 MAR 12 00:59 apps
drw-r--r--   2 SYS      oracle         0 MAR 12 00:59 asm
-rw-r--r--   1 SYS      oracle         0 SEP 14 03:55 databaseSummary.xml
drw-r--r--   2 SYS      oracle         0 MAR 12 00:59 log
drw-r--r--   2 SYS      oracle         0 MAR 12 00:59 oid
drw-r--r--   2 SYS      oracle         0 SEP 14 03:55 schemas
226 ASCII Transfer Complete

ftp> cd asm
250 CWD Command successful
ftp> ls
227 Entering Passive Mode (10,32,10,72,56,54)
150 ASCII Data Connection
drw-r--r--   2 SYS      oracle         0 NOV 04 03:13 DATA                                      (2个DiskGroups)
drw-r--r--   2 SYS      oracle         0 NOV 04 03:13 FLASH_RECOVERY_AREA
226 ASCII Transfer Complete

ftp> pwd
257 "/sys/asm/data/test/datafile" is current directory.
ftp> ls
200 PORT Command successful
150 ASCII Data Connection
-rw-r--r--   1 SYS      oracle  681582592 NOV 04 03:18 SYSAUX.256.734110923
-rw-r--r--   1 SYS      oracle  524296192 NOV 04 03:18 SYSTEM.257.734111145
-rw-r--r--   1 SYS      oracle  104865792 NOV 04 03:18 EXAMPLE.258.734111271
-rw-r--r--   1 SYS      oracle  89137152 NOV 04 03:18 UNDOTBS1.259.734111315
-rw-r--r--   1 SYS      oracle  34611200 NOV 04 03:18 UNDOTBS2.260.734111351
-rw-r--r--   1 SYS      oracle   5251072 NOV 04 03:18 USERS.262.734111393
226 ASCII Transfer Complete

FLASH_RECOVERY_AREA 磁盘组
ftp> pwd
257 "/sys/asm/flash_recovery_area/test/archivelog/2010_11_04" is current directory.
ftp> ls
200 PORT Command successful
150 ASCII Data Connection
-rw-r--r--   1 SYS      oracle  45303808 NOV 04 03:20 thread_1_seq_123.472.734176827
226 ASCII Transfer Complete

ftp> lcd   (自己在Server的位置)
Local directory now /

下载文件:
ftp> ls
227 Entering Passive Mode (10,32,10,72,126,198)
150 ASCII Data Connection
-rw-r--r--   1 SYS      oracle  45303808 NOV 04 03:22 thread_1_seq_123.472.734176827
226 ASCII Transfer Complete
ftp> bin
200  Type set to I.
ftp> get thread_1_seq_123.472.734176827
local: thread_1_seq_123.472.734176827 remote: thread_1_seq_123.472.734176827
227 Entering Passive Mode (10,32,10,72,84,203)
150 BIN Data Connection
226 BIN Transfer Complete
45303808 bytes received in 1 seconds (4.4e+04 Kbytes/s)

6. HTTP
:8080
出来窗口输入数据库用户密码

linux

相关文章

HTML速学教程(入门课程)
HTML速学教程(入门课程)

HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!

下载

本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

相关专题

更多
vlookup函数使用大全
vlookup函数使用大全

本专题整合了vlookup函数相关 教程,阅读专题下面的文章了解更多详细内容。

26

2025.12.30

金山文档相关教程
金山文档相关教程

本专题整合了金山文档相关教程,阅读专题下面的文章了解更多详细操作。

28

2025.12.30

PS反选快捷键
PS反选快捷键

本专题整合了ps反选快捷键介绍,阅读下面的文章找到答案。

25

2025.12.30

表格中一行两行的方法
表格中一行两行的方法

本专题整合了表格中一行两行的相关教程,阅读专题下面的文章了解更多详细内容。

3

2025.12.30

cpu温度过高解决方法大全
cpu温度过高解决方法大全

本专题整合了cpu温度过高相关教程,阅读专题下面的文章了解更多详细内容。

5

2025.12.30

ASCII码介绍
ASCII码介绍

本专题整合了ASCII码相关内容,阅读专题下面的文章了解更多详细内容。

31

2025.12.30

GPS是什么
GPS是什么

本专题整合了GPS相关内容,阅读专题下面的文章了解更多详细内容。

3

2025.12.30

wifi拒绝接入
wifi拒绝接入

本专题整合了wifi拒绝接入相关教程,阅读下面的文章了解更多详细方法。

9

2025.12.30

丰网速运介绍
丰网速运介绍

本专题整合了丰网速运查询入口以及相关内容,阅读专题下面的文章了解更多内容。

3

2025.12.30

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
最新Python教程 从入门到精通
最新Python教程 从入门到精通

共4课时 | 0.6万人学习

Node.js 教程
Node.js 教程

共57课时 | 7.7万人学习

CSS3 教程
CSS3 教程

共18课时 | 4.1万人学习

关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号