Asmcmd command fails with error "Use of uninitialized value $syntax in substitution (s///)"
(Doc ID 2108487.1)
Last updated on APRIL 12, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 11.2.0.2 to 12.1.0.2 [Release 11.2 to 12.1]Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
Symptoms
asmcmd commands fails with below error
grid@BC-CCS-ORP02N2\:~:[+ASM2]$ asmcmd
Use of uninitialized value $syntax in substitution (s///) at /u01/app/12.1.0.2/grid/lib/asmcmdparser.pm line 1683.
Use of uninitialized value $syntax in substitution (s///) at /u01/app/12.1.0.2/grid/lib/asmcmdparser.pm line 1684.
Use of uninitialized value $syntax in substitution (s///) at /u01/app/12.1.0.2/grid/lib/asmcmdparser.pm line 1685.
Use of uninitialized value $syntax in substitution (s///) at /u01/app/12.1.0.2/grid/lib/asmcmdparser.pm line 1686.
Use of uninitialized value $syntax in substitution (s///) at /u01/app/12.1.0.2/grid/lib/asmcmdparser.pm line 1687.
Use of uninitialized value $syntax in substitution (s///) at /u01/app/12.1.0.2/grid/lib/asmcmdparser.pm line 1688.
Use of uninitialized value $syntax in pattern match (m//) at /u01/app/12.1.0.2/grid/lib/asmcmdparser.pm line 1689.
Use of uninitialized value $syntax in pattern match (m//) at /u01/app/12.1.0.2/grid/lib/asmcmdparser.pm line 1695.
Use of uninitialized value $syntax in split at /u01/app/12.1.0.2/grid/lib/asmcmdparser.pm line 1705.
from strace output:
==============
629 munmap(0x7f9ed6831000, 64249) = 0
54629 open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
54629 fcntl(3, F_GETFD) = 0x1 (flags FD_CLOEXEC)
54629 fstat(3, {st_mode=S_IFREG|0644, st_size=2362, ...}) = 0
54629 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9ed6840000
54629 read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 2362
54629 close(3) = 0
54629 munmap(0x7f9ed6840000, 4096) = 0
54629 uname({sys="Linux", node="BC-CCS-ORP02N1.grid.ie", ...}) = 0
54629 stat("/u01/app/oracle", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
54629 stat("/u01/app/oracle/log/diag/asmcmd", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
54629 lstat("/u01/app/12.1.0.2/grid/bin/oracle", {st_mode=S_IFREG|S_ISUID|S_ISGID|0751, st_size=291316016, ...}) = 0
54629 stat("/u01/app/12.1.0.2/grid/bin/oracle", {st_mode=S_IFREG|S_ISUID|S_ISGID|0751, st_size=291316016, ...}) = 0
54629 chown("/u01/app/oracle/log/diag/asmcmd", 501, 501) = 0
54629 chmod("/u01/app/oracle/log/diag/asmcmd", 0775) = 0
54629 stat("/u01/app/oracle/log/diag/asmcmd/user_grid/BC-CCS-ORP02N1.grid.ie", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
54629 brk(0x23d2000) = 0x23d2000
54629 brk(0x23d1000) = 0x23d1000
54629 stat("/u01/app/12.1.0.2/grid/lib/asmcommand.xml", 0xe3c138) = -1 ENOENT (No such file or directory)===============>asmcommand file is missing.
54629 write(2, "Use of uninitialized value $synt"..., 115) = 115
54629 write(2, "Use of uninitialized value $synt"..., 115) = 115
54629 write(2, "Use of uninitialized value $synt"..., 115) = 115
54629 write(2, "Use of uninitialized value $synt"..., 115) = 115
54629 write(2, "Use of uninitialized value $synt"..., 115) = 115
54629 write(2, "Use of uninitialized value $synt"..., 115) = 115
54629 write(2, "Use of uninitialized value $synt"..., 115) = 115
54629 write(2, "Use of uninitialized value $synt"..., 115) = 115
54629 write(2, "Use of uninitialized value $synt"..., 101) = 101
54629 stat("/u01/app/12.1.0.2/grid/bin/clsecho", {st_mode=S_IFREG|0755, st_size=9438, ...}) = 0
54629 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
54629 rt_sigaction(SIGINT, {0x494000, [], SA_RESTORER, 0x3b1020f710}, {SIG_DFL, [], 0}, 8) = 0
54629 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
54629 stat("/u01/app/12.1.0.2/grid/bin/kfod", {st_mode=S_IFREG|0755, st_size=9438, ...}) = 0
54629 stat("/u01/app/12.1.0.2/grid/bin/clsecho", {st_mode=S_IFREG|0755, st_size=9438, ...}) = 0
54629 pipe([3, 4]) = 0
The clusterware and the databases are running fine but able to access ASMCMD -
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |