- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
9#
发表于 2012-1-30 22:41:06
找出ASM 下 spfile server parameter 文件位置的脚本如下:- --- listspfiles.sql
- --- Purpose: Sample script to list spfiles kept in ASM instance
- --- Usage: This should be run against an ASM instance,
- --- not a database instance.
- ---
- --- cut here --%<----%<----%<----%<----%<----%<--
- --list all spfiles
- set lines 120
- col full_path for a110
- SELECT full_path, dir, sys
- FROM
- (SELECT
- CONCAT('+'||gname,SYS_CONNECT_BY_PATH(aname,'/')) full_path,
- dir, sys FROM
- (SELECT g.name gname,
- a.parent_index pindex, a.name aname,
- a.reference_index rindex, a.ALIAS_DIRECTORY dir,
- a.SYSTEM_CREATED sys
- FROM v$asm_alias a, v$asm_diskgroup g
- WHERE a.group_number = g.group_number)
- START WITH (MOD(pindex, POWER(2, 24))) = 0
- CONNECT BY PRIOR rindex = pindex
- ORDER BY dir desc, full_path asc)
- WHERE UPPER(full_path) LIKE '%SPFILE%'
- /
- ---
- --- cut here --%<----%<----%<----%<----%<----%<--
复制代码 |
|