首页 > 数据库 > Oracle > win远程Linux下的ASM实例
一、win远程Linux下的ASM实例
1.linux下的监听文件
[grid@myrac1 admin]$ cat listener.ora
# listener.ora Network Configuration File:
/g01/app/grid/product/11.2.0/grid/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
ADR_BASE_LISTENER = /g01/app/grid
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON
2.监听状态
[grid@myrac1 admin]$ lsnrctl
status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 23-FEB-2014 05:48:20
Copyright (c) 1991, 2009, Oracle.
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias
Version
Start
Date
Uptime
Trace
Level
Security
SNMP
Listener Parameter File
Listener Log
File
Listening Endpoints Summary...
Services Summary...
Service "+ASM" has 1 instance(s).
Service "hjj" has 1 instance(s).
Service "hjjXDB" has 1 instance(s).
The command completed successfully
3.在win客户端tns文件中添加如下内容
LIN_ASM =
4.在win下测试
C:UsersAdministrator>tnsping lin_asm
TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 23-FEB-2014 21:52:49
Copyright (c) 1997, 2010, Oracle.
Used parameter files:
C:appAdministratorproduct11.2.0dbhome_1
etworkadminsqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =
(PROTOCOL = TCP)(HOST = 192.168.1.171)(PORT = 1521))) (CONNECT_DATA
= (SERVER = DEDICATED) (SERVICE_NAME = +ASM) (INSTANCE_NAME =
+ASM)))
OK (360 msec)
C:>sqlplus sys/oracle@lin_asm as
sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Sun Feb 23 21:55:11 2014
Copyright (c) 1982, 2010, Oracle.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 -
Production
With the Automatic Storage Management option
SQL> select instance_name,host_name,version,status from
v$instance;
INSTANCE_NAME
--------------------------------
--------------------------------------------------
---------------------------------- --
+ASM
另外飞总的博客中提到UR=A,用于asm远程访问使用的参数,我的win和linux都安装的是oracle11gR2,测试中发现在动态监听加不加UR=A都可以远程访问。
参考飞总bolog http://www.xifenfei.com/2575.html
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22738963/viewspace-1114887/ ,如需转载,请注明出处,否则将追究法律责任。