![]() You create aliases to make it easier to work with ASM filenames. It is similar to a symbolic link in Unix operating systems. You add aliases (described next) or other directories to a user-created directory.Īn alias is a filename that is a reference (or pointer) to a system-generated filename, but with a more user-friendly name. ![]() If you start ASMCMD with the -p flag, ASMCMD always shows the current directory as part of its prompt.ĪSM does not place system-generated files into your user-created directories it places them only in system-generated directories. Its contents represent the contents of the disk group dgroup1.) (Note that the directory dgroup1 is a system-generated directory. The following example creates the directory mydir in the disk group dgroup1: See Oracle Database Administrator's Guide for more information on ASM directories. Your user-created directories can have subdirectories, and you can navigate the hierarchy of both system-generated directories and user-generated directories with the cd command. You do so with the ALTER DISKGROUP command or with the ASMCMD mkdir command. You can also create your own directories as subdirectories of the system-generated directories. The following example demonstrates navigating the ASM directory tree (refer to the fully qualified filename shown previously): For an ASM instance with two disk groups, dgroup1 and dgroup2, entering an ls command with the root directory as the current directory produces the following output: When you start ASMCMD, the current directory is set to root (+). The ASMCMD ls (list directory) command lists the contents of the current directory, while the pwd command prints the name of the current directory. ASMCMD enables you to move up and down this directory hierarchy with the cd (change directory) command. The directories in this hierarchy are known as system-generated directories. In each disk group, ASM creates a directory hierarchy that corresponds to the structure of the fully qualified filenames in the disk group. The fully qualified filename in fact represents a hierarchy of directories, with the plus sign (+) as the root. See Oracle Database Administrator's Guide for more detailed information on fully qualified filenames.Īs in other file systems, an ASM directory is a container for files, and it can be part of a tree structure of other directories. In the previous fully qualified filename, dgroup2 is the disk group name, sample is the database name, controlfile is the file type, and so on. +dgroup2/sample/controlfile/Current.256.541956473ĪSM generates filenames according to the following scheme: +diskGroupName/databaseName/fileType/ An example of a fully qualified filename is the following: This is analogous to a complete path name in a local file system. System-generated filename or 'fully qualified filename'Įvery file created in ASM gets a system-generated filename, otherwise known as a fully qualified filename. Also, filenames are case insensitive, but case retentive. The forward slash (/) and backward slash (\) are interchangeable in filenames.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |