Beruflich Dokumente
Kultur Dokumente
1
For Iiles, such as online logs and temp Iiles, the utility will migrate them by
dropping the Iiles, using PL/SQL procedures, and then recreate them in ASM.
Automatic Storage Management New Features Overview Page 8
List of commands:
help [command] Help listing
pwd Show current dir
cd <dir> Change directory
find [-t <type>] <dir> <alias> File search
ls [-lsdrtLaH] [alias] Directory listing
mkdir <dir1 dir2 . . .> Directory creation
rm <alias1 alias2 . . .> File and directory
deletion
mkalias <system_alias> <user_alias> User alias creation
du [-H] [dir] Disk usage
lsdg [-H] [group] Diskgroup info
lsct [-H] [group] Client info
rmalias [-r] <user_alias1 user_alias2 . . .>
User alias deletion
Non-interactive Mode command Iine:
% asmcmd ls -lH +DATAFILE/ORCL/CONTROLFILE
CONTROLFILE MIRROR FINE MAR 29 15:35 Y
+DATAFILE/ORCL/CONTROLFILE/Current.279.1
CONTROLFILE MIRROR FINE MAR 30 14:24 Y
+DATAFILE/ORCL/CONTROLFILE/Current.280.2
ASM FiIe System View Through XMLDB VirtuaI FoIders
ASM Ieature in Oracle Database 10g Release 2 leverages the virtual Iolder Ieature in
XML DB that provides a mechanism to access and manipulate ASM Iiles and
Iolders via XML DB protocols such as FTP and HTTP/DAV and programmatic
APIs. The ASM virtual Iolder is mounted as /sys/asm within the XML DB
hierarchy. The Iolder is virtual in the sense that the ASM Iolders and Iiles are not
actually stored within XML DB. However, any operation on the ASM virtual Iolder
is transparently handled by the underlying ASM component.
The ASM virtual Iolder is created by deIault during the installation oI XML DB. II
the database is not conIigured to use ASM, then this Iolder will be empty and no
operations will be permitted on it. II ASM is conIigured, the ASM virtual Iolder is
mounted as /sys/asm within the XML DB hierarchy. Any operation on the ASM
virtual Iolder is transparently handled by the underlying ASM component. The ASM
Iolder contains one sub-Iolder Ior every mounted disk group. Each diskgroup Iolder
will contain one sub-Iolder corresponding to every database name. In addition it
may contain additional Iiles and Iolders corresponding to the aliases that have been
created by the administrators.
Automatic Storage Management New Features Overview Page 9
Note: This is a graphical representation oI the ASM GUI Iolder hierarchy and not
the GUI look and Ieel
ASM VirtuaI FoIder access via FTP
An FTP tool is also available Ior copying database Iiles in and out oI the ASM
diskgroup oIIering additional Ilexibility Ior managing your Iiles. Below is an
example oI the FTP commands:
ftp> open dlsun247 7777
ftp> user sys
ftp> passwd change_on_install
ftp> cd /sys/asm
ftp> ls
ftp> binary
ftp> get t_db1.f
ftp> put my_db1.f
ftp> del my_db1.f
ftp> del myfiles
ftp> quote rm_rf myfiles
ftp> rename myfiles/my_db1.f myfiles/my_db99.f
Querying the ASM VirtuaI FoIder
The resources in XML DB repository can be queried using the resource and path
views. The system-deIined views allow users to traverse the XML DB hierarchy as
well as search Ior resources based on XPATH predicates on metadata and content.
The resource and path views can be used to traverse the ASM Iolder and restrict
matches based on system and custom metadata predicates.
Example 1: Find ASM Iiles under Iolder /sys/asm/dgroupA/myIolder
select * from resource_view
where under_path(res, '/sys/asm/dgroupA/myfolder') = 1;
Example 2 : Find ASM Iiles with Iilename like 'Ioo'
select * from resource_view
where under_path(res, '/sys/asm') = 1 and
any_path like '%/foo%';
2
Power level this is diIIerent than Powerlimit. Power level is speciIied at the alter
diskgroup command level, whereas powerlimit is deIined as instance-wide init.ora
parameter setting.
Automatic Storage Management New Features Overview Page 12
one or more disk Iailures. The amount oI space displayed in this column takes
mirroring into account.
OFFLINE_DISKS
A new column called OFFLINEDISKS has been added to V$ASMDISKGROUP
to display a count oI currently oIIline disks.
REDUNDANCY_LOWERED
A new column called REDUNDANCYLOWERED has been added to
V$ASMFILE to indicate whether a Iile`s redundancy is reduced or lower than what
is deIined. The valid values Ior this column are 'Y' and 'N', which indicate Yes and
No, respectively. Redundancy Ior a Iile becomes reduced when one or more data
extents in that Iile are not mirrored at the level speciIied by the administrator. In
case oI unprotected Iiles, one or more data extents could be missing altogether. The
scenarios that lead to lowering oI redundancy are listed below, along with suggested
actions that administrators could take to restore redundancy back to the original
level (in other words, to restore the value oI REDUNDANCYLOWERED Ior the
Iile to 'N', Iollowing a rebalance).
Causes of reduced
redundancy
Possible solutions to restore redundancy to the original level
Disk Iailure Add another disk oI the same or larger size. II one or more
extents are missing altogether (because this Iile was
unprotected), it needs to be restored Irom backup. Also, iI disk
is being added, wait until rebalance completes. Ensure that the
newly added disk is in the appropriate Iailure group.
Disk running out oI
space
Add more space (disks) or delete old Iiles and rebalance.
InsuIIicient number
oI Iailure groups
Increase the number oI Iailure groups. At least two Iailure
groups are required Ior normal redundancy, and at least three
Iailure groups are required Ior high redundancy.
CONCLUSION
ASM Ieature in Oracle Database 10g Release 2 extends the automation and
simplicity in database storage management required Ior realizing the Grid
Computing vision. The new ASM Ieatures Iurther help lower your cost oI ownership
while improving the overall database quality oI service. ASM eliminates the need
Ior 3
rd
Iile system and volume management soItware Ior the database Iiles
minimizing cost, improving storage utilization and consolidation that empowers
Automatic Storage Management New Features Overview Page 13
reliable low cost computing across Oracle Database 10g single instance and RAC
environments.
OracIe Database 10g ReIease 2
Automatic Storage Management New Features Overview
ApriI 2005
Authors: Ara Shakian, Nitin VengurIekar
Contributing Authors: PauI Manning
OracIe Corporation
WorId Headquarters
500 OracIe Parkway
Redwood Shores, CA 94065
U.S.A.
WorIdwide Inquiries:
Phone: +1.650.506.7000
Fax: +1.650.506.7200
oracIe.com
Copyright 2005, OracIe. AII rights reserved.
This document is provided for information purposes onIy and the
contents hereof are subject to change without notice.
This document is not warranted to be error-free, nor subject to any
other warranties or conditions, whether expressed oraIIy or impIied
in Iaw, incIuding impIied warranties and conditions of merchantabiIity
or fitness for a particuIar purpose. We specificaIIy discIaim any
IiabiIity with respect to this document and no contractuaI obIigations
are formed either directIy or indirectIy by this document. This document
may not be reproduced or transmitted in any form or by any means,
eIectronic or mechanicaI, for any purpose, without our prior written permission.
OracIe, JD Edwards, and PeopIeSoft are registered trademarks of
OracIe Corporation and/or its affiIiates. Other names may be trademarks
of their respective owners.