`
itspace
  • 浏览: 981853 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Oracle 10g asm ftp传输数据文件

阅读更多
Oracle 10g asm支持用ftp进行拷贝数据文件,因测试需要,简单记录配置过程。参考metalink doc 357714.1
1、在生产库执行端口开启脚本(用sysdba连接)
引用
SQL>execute dbms_xdb.sethttpport(8080);
SQL>execute dbms_xdb.setftpport(2100);
SQL>commit;

检查端口是否开启
引用
SQL> select dbms_xdb.GETHTTPPORT() from dual;

DBMS_XDB.GETHTTPPORT()
----------------------
                  8080

SQL> select dbms_xdb.GETFTPPORT() from dual;

DBMS_XDB.GETFTPPORT()
---------------------
                 2100

2、配置dispatch参数
引用
SQL> alter system set dispatchers ='(PROTOCOL=TCP) (SERVICE=rac1XDB)' scope=both sid='rac1';

System altered.

SQL> alter system set dispatchers ='(PROTOCOL=TCP) (SERVICE=rac2XDB)' scope=both sid='rac2';

System altered.


3、重启监听
引用
[oracle@node1 app]$srvctl stop listener -n node1
[oracle@node1 app]$srvctl stop listener -n node2
[oracle@node1 app]$srvctl start listener -n node2
[oracle@node1 app]$srvctl start listener -n node1

4、检查监听状态,注意端口号,协议
引用
[oracle@node1 app]$ lsnrctl status LISTENER_NODE1

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 20-JAN-2011 13:41:15

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=node1-vip)(PORT=1521)(IP=FIRST)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER_NODE1
Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date                20-JAN-2011 13:40:16
Uptime                    0 days 0 hr. 0 min. 58 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File         /app/oracle/product/10.2.0/db_1/network/log/listener_node1.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.4.182)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.4.178)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=node1)(PORT=2100))(Presentation=FTP)(Session=RAW))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=node1)(PORT=8080))(Presentation=HTTP)(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 "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "rac" has 2 instance(s).
  Instance "rac1", status READY, has 1 handler(s) for this service...
  Instance "rac2", status READY, has 2 handler(s) for this service...
Service "rac1XDB" has 1 instance(s).
  Instance "rac1", status READY, has 1 handler(s) for this service...
Service "rac2XDB" has 1 instance(s).
  Instance "rac2", status READY, has 1 handler(s) for this service...
Service "racXDB" has 2 instance(s).
  Instance "rac1", status READY, has 0 handler(s) for this service...
  Instance "rac2", status READY, has 0 handler(s) for this service...
Service "racXDB1" has 1 instance(s).
  Instance "rac1", status READY, has 0 handler(s) for this service...
Service "racXDB2" has 1 instance(s).
  Instance "rac1", status READY, has 0 handler(s) for this service...
Service "rac_XPT" has 2 instance(s).
  Instance "rac1", status READY, has 1 handler(s) for this service...
  Instance "rac2", status READY, has 2 handler(s) for this service...
The command completed successfully

2、脚本开启之后,即可用用客户端进行ftp传输
引用
[ora10g@hzmc rac]$ ftp 172.16.4.178 2100
Connected to 172.16.4.178.
220- node1
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 node1 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
Name (172.16.4.178:ora10g): system
331 pass required for SYSTEM
Password:
230 SYSTEM logged in
Remote system type is Unix.
ftp> bin
200  Type set to I.
ftp> cd /sys/asm
250 CWD Command successful
ftp> cd DATA/rac/datafile/
250 CWD Command successful
ftp> ls -rtl
227 Entering Passive Mode (172,16,4,178,148,40)
150 ASCII Data Connection
-rw-r--r--   1 SYS      oracle  503324672 JAN 20 05:19 SYSTEM.256.740397671
-rw-r--r--   1 SYS      oracle  304095232 JAN 20 05:19 SYSAUX.257.740397673
-rw-r--r--   1 SYS      oracle  26222592 JAN 20 05:19 UNDOTBS1.258.740397675
-rw-r--r--   1 SYS      oracle   5251072 JAN 20 05:19 USERS.259.740397675
-rw-r--r--   1 SYS      oracle  26222592 JAN 20 05:19 UNDOTBS2.264.740397951
226 ASCII Transfer Complete
ftp> get SYSTEM.256.740397671
local: SYSTEM.256.740397671 remote: SYSTEM.256.740397671
227 Entering Passive Mode (172,16,4,178,49,55)
150 BIN Data Connection
226 BIN Transfer Complete
503324672 bytes received in 60 seconds (8.2e+03 Kbytes/s)


注意ftp需要用bin模式,如采用默认传输模式ascii,则会报如下错误:
引用
ftp> get UNDOTBS1.258.740397675
local: UNDOTBS1.258.740397675 remote: UNDOTBS1.258.740397675
227 Entering Passive Mode (172,16,4,178,80,157)
150 ASCII Data Connection
550- Error Response
ORA-31198: Mismatch in number of bytes transferred due to non-binary mode
550 End Error Response
271257 bytes received in 0.19 seconds (1.4e+03 Kbytes/s)
分享到:
评论

相关推荐

    外界通过ftp连接asm进行文件传输

    通过在系统上面执行这个脚本,脚本里面有说明,以sys用户登录到数据库中执行 @ftp-asm.sql即可通过外部ftp访问

    oracle ASM 最佳实践

    - **将单个非ASM数据文件迁移到ASM**:提供了步骤指南,帮助用户将非ASM数据文件迁移到ASM环境中。 - **在ASM中创建额外的控制文件**:介绍了如何在ASM环境中创建额外的控制文件,以提高数据保护级别。 - **ASM SQL...

    oracle ASM安装和配置

    此软件包位于路径`E:\Software\OL54`下的独立安装包目录`ASMLib32`中,并通过FTP传输到了虚拟机中的`/tmp`目录下。 接下来,使用`rpm -ivh`命令安装这些包。需要注意的是,在安装过程中可能会出现警告,例如关于...

    Virtualbox red hat Linux 5.4 oracle 11g rac 安装手册

    - **目的**:通过FTP服务,可以在Windows主机与Linux虚拟机之间传输文件,便于安装文件的传输。 #### 知识点四:主机名修改 - **修改主机名**:通过`hostname <newname>`命令临时更改主机名。 - **持久化修改**: ...

    oracle导学

    - **安装Oracle数据库**:将Oracle 10g的安装介质通过FTP传输到虚拟机上,然后按照官方文档的指引,执行一系列的安装脚本和配置步骤。这包括设置数据库实例名、监听器端口、管理用户密码等关键参数。 - **数据库...

    oracle10在CentOS(redhat)5.4下的安装方法

    ### Oracle10G在Linux CentOS 5.4 下的安装指南 #### 1. 服务器信息汇总 在开始安装之前,我们需要了解服务器的基本配置信息,包括但不限于主机型号、硬件配置、操作系统版本等。 - **主机型号**: IBM x3650 M3 -...

    虚拟机下安装oracle11gr2完整版

    - 配置ASM,创建ASM磁盘组,准备存储Oracle实例和数据文件。 4. **安装Clusterware** - 安装Grid Infrastructure,这是Oracle RAC的基础组件。 - 通过vsftp配置文件传输服务,便于上传安装文件。 - 进行安装...

    FileZilla FTP Client 3.9.0.1

    ftp传输工具响应: fzSftp started 命令: open "root@192.168.2.3" 22 命令: Pass: ****** 状态: Connected to 192.168.2.3 状态: 读取目录列表... 命令: pwd 响应: Current directory is: "/root" 命令: ls 状态: ...

    BLOG_Oracle_lhr_使用OpenFiler来模拟存储配置RAC中ASM共享盘及多路径(multipath)的测试.pdf

    本文档主要介绍如何使用OpenFiler来模拟Oracle Real Application Clusters (RAC)环境中自动存储管理(ASM)共享磁盘的配置以及多路径(multipath)的测试。OpenFiler是一款基于rPath Linux开发的开源存储管理系统,提供...

    oracle9i手册.rar

    3. **自动存储管理(Automatic Storage Management, ASM)**:Oracle 9i引入了ASM,这是一种集成的存储管理解决方案,自动处理数据的物理存储,简化了数据库管理员的工作。 4. **实时应用集群(Real Application ...

    redhat6.5-oracle11gR2-grid搭建RAC(个人整理-yjc)

    ### Red Hat 6.5与Oracle 11g R2 Grid 搭建RAC环境 #### 一、概述 本文档旨在详细介绍如何在Red Hat 6.5操作系统上搭建Oracle 11g R2 Grid Real Application Clusters (RAC)环境。RAC是一种集群数据库技术,它允许...

    Oracle RAC环境搭建手册 350页

    6. **Xmanager企业版**:用于FTP传输Oracle软件到虚拟机中以及远程图形显示功能。 #### 四、安装步骤概述 1. **安装虚拟机软件**:按照官方指南安装VMware Workstation 8,并输入注册码激活。 2. **创建虚拟机**...

    在linux上安装oracle_12c__RAC

    - 安装vsftpd FTP服务,以便于在集群内部传输文件。 #### 配置 DNS - 配置DNS以确保每个节点能够正确解析其他节点的名称。 #### 编辑 hosts 文件 - 更新 `/etc/hosts` 文件,确保所有节点都能够在没有DNS的情况下...

    AIX安装oracle 12c RAC.docx

    请注意,这只是一个简化的概述,实际安装过程中需要更详细地了解和执行每个步骤,包括但不限于创建Oracle ASM磁盘组、配置OCR(Oracle Cluster Registry)和 Voting Disks、安装数据库软件、配置CRS(Cluster Resource ...

Global site tag (gtag.js) - Google Analytics