- 浏览: 979113 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
孤星119:
好熟悉的数据库字段啊, 上家公司做的项目每天都跟这些字段打招呼 ...
Oracle exp compress参数引起的空间浪费 -
itspace:
quxiaoyong 写道遇到个问题,网上一搜,全他妈这篇文章 ...
数据库连接错误ORA-28547 -
quxiaoyong:
遇到个问题,网上一搜,全他妈这篇文章。你转来转去的有意思吗?
数据库连接错误ORA-28547 -
hctech:
关于version count过高的问题,不知博主是否看过ey ...
某客户数据库性能诊断报告 -
itspace:
invalid 写道写的不错,我根据这个来安装,有点理解错误了 ...
AIX 配置vncserver
Oracle 10g asm支持用ftp进行拷贝数据文件,因测试需要,简单记录配置过程。参考metalink doc 357714.1
1、在生产库执行端口开启脚本(用sysdba连接)
检查端口是否开启
2、配置dispatch参数
3、重启监听
4、检查监听状态,注意端口号,协议
2、脚本开启之后,即可用用客户端进行ftp传输
注意ftp需要用bin模式,如采用默认传输模式ascii,则会报如下错误:
1、在生产库执行端口开启脚本(用sysdba连接)
引用
SQL>execute dbms_xdb.sethttpport(8080);
SQL>execute dbms_xdb.setftpport(2100);
SQL>commit;
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
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.
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
[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
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)
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)
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)
发表评论
-
buffer cache 的内部结构
2020-03-18 14:21 579BUFFER CACHE作为数据块的 ... -
Oracle OMC介绍
2020-03-18 13:19 487Oracle管理云服务(OMC)的大数据平台,自动收集的企业 ... -
参加Oracle勒索病毒防范专题培训会议
2019-09-27 17:15 5152019年7月22日,受邀参加Oracle勒索病毒防范专题培训 ... -
记一次内存换IO的Oracle优化
2019-09-27 16:50 828某客户数据库从P595物理 ... -
如何定位Oracle SQL执行计划变化的原因
2019-07-03 14:49 1460性能优化最难的是能够 ... -
如何定位Oracle SQL执行计划变化的原因
2018-10-30 09:24 1185性能优化最难的是能够 ... -
数据库性能优化目标
2018-10-08 10:59 520从数据库性能优化的场 ... -
数据库无法打开的原因及解决办法
2018-10-05 20:45 2122数据库的启动是一个相当复杂的过程。比如,Oracle在启动之前 ... -
怎么样彻底删除数据库?
2018-09-18 11:10 600Oracle提供了drop database命令用来删除数据库 ... -
Oracle减少日志量的方法
2018-09-10 10:17 867LGWR进程将LOG BUFFER中的 ... -
如何快速关闭数据库
2018-09-09 13:14 1234“一朝被蛇咬,十年怕井绳”。在没被“蛇”咬之前,很多DBA喜欢 ... -
关于《如何落地智能化运维》PPT
2018-05-17 10:19 1130在DTCC 2018发表《如何落地智能化运维》演讲,主要内容如 ... -
记录在redhat5.8平台安装oracle11.2容易忽视的几个问题
2018-05-11 19:58 579问题一:ping不通问题 在虚拟机上安装好linux系统后, ... -
《Oracle DBA实战攻略》第一章
2018-05-11 10:42 947即日起,不定期更新《OracleDBA实战攻略》一书电子版,请 ... -
Oracle 12c新特性
2018-05-11 10:33 900查询所有pdb [oracle@gj4 ~]$ sqlplu ... -
关于修改memory_target的值后数据库无法启动的问题
2017-02-28 12:24 3983操作系统:RHEL6.5 数据库版本:11.2.0.4 ... -
10g rac安装error while loading shared libraries libpthread.so.0 问题
2017-02-28 12:22 69611g rac安装在二节点跑脚本一般会报此错误: 解决这个问 ... -
记一次Oracle会话共享模式故障处理过程
2017-02-27 19:16 801故障简述 XXX第八人民医院HIS数据库7月13日11点左右从 ... -
RESMGR:cpu quantum等待事件处理过程
2017-02-27 18:23 2619由于数据库上线过程中出现大量的RESMGR:cpu quant ... -
谈谈log file sync
2014-03-19 14:18 1763数据库中的log file sync等待事件指的是,当user ...
相关推荐
通过在系统上面执行这个脚本,脚本里面有说明,以sys用户登录到数据库中执行 @ftp-asm.sql即可通过外部ftp访问
- **将单个非ASM数据文件迁移到ASM**:提供了步骤指南,帮助用户将非ASM数据文件迁移到ASM环境中。 - **在ASM中创建额外的控制文件**:介绍了如何在ASM环境中创建额外的控制文件,以提高数据保护级别。 - **ASM SQL...
此软件包位于路径`E:\Software\OL54`下的独立安装包目录`ASMLib32`中,并通过FTP传输到了虚拟机中的`/tmp`目录下。 接下来,使用`rpm -ivh`命令安装这些包。需要注意的是,在安装过程中可能会出现警告,例如关于...
- **目的**:通过FTP服务,可以在Windows主机与Linux虚拟机之间传输文件,便于安装文件的传输。 #### 知识点四:主机名修改 - **修改主机名**:通过`hostname <newname>`命令临时更改主机名。 - **持久化修改**: ...
- **安装Oracle数据库**:将Oracle 10g的安装介质通过FTP传输到虚拟机上,然后按照官方文档的指引,执行一系列的安装脚本和配置步骤。这包括设置数据库实例名、监听器端口、管理用户密码等关键参数。 - **数据库...
- 配置ASM,创建ASM磁盘组,准备存储Oracle实例和数据文件。 4. **安装Clusterware** - 安装Grid Infrastructure,这是Oracle RAC的基础组件。 - 通过vsftp配置文件传输服务,便于上传安装文件。 - 进行安装...
ftp传输工具响应: fzSftp started 命令: open "root@192.168.2.3" 22 命令: Pass: ****** 状态: Connected to 192.168.2.3 状态: 读取目录列表... 命令: pwd 响应: Current directory is: "/root" 命令: ls 状态: ...
本文档主要介绍如何使用OpenFiler来模拟Oracle Real Application Clusters (RAC)环境中自动存储管理(ASM)共享磁盘的配置以及多路径(multipath)的测试。OpenFiler是一款基于rPath Linux开发的开源存储管理系统,提供...
3. **自动存储管理(Automatic Storage Management, ASM)**:Oracle 9i引入了ASM,这是一种集成的存储管理解决方案,自动处理数据的物理存储,简化了数据库管理员的工作。 4. **实时应用集群(Real Application ...
### Red Hat 6.5与Oracle 11g R2 Grid 搭建RAC环境 #### 一、概述 本文档旨在详细介绍如何在Red Hat 6.5操作系统上搭建Oracle 11g R2 Grid Real Application Clusters (RAC)环境。RAC是一种集群数据库技术,它允许...
6. **Xmanager企业版**:用于FTP传输Oracle软件到虚拟机中以及远程图形显示功能。 #### 四、安装步骤概述 1. **安装虚拟机软件**:按照官方指南安装VMware Workstation 8,并输入注册码激活。 2. **创建虚拟机**...
- 安装vsftpd FTP服务,以便于在集群内部传输文件。 #### 配置 DNS - 配置DNS以确保每个节点能够正确解析其他节点的名称。 #### 编辑 hosts 文件 - 更新 `/etc/hosts` 文件,确保所有节点都能够在没有DNS的情况下...
请注意,这只是一个简化的概述,实际安装过程中需要更详细地了解和执行每个步骤,包括但不限于创建Oracle ASM磁盘组、配置OCR(Oracle Cluster Registry)和 Voting Disks、安装数据库软件、配置CRS(Cluster Resource ...