##########################
## Error
##########################
[oracle@host02 ~]$ . dtest
-bash:ELF: command not found
##########################
# Error Occurred
##########################
Error occured when trying to set the Oracle Database enviornmental Profile.
##########################
## Command Executed
##########################
. dtest
**************************************** Step By Step Analysis ******************************************************
#########################################
# 1) Check if /bin/ksh is included
#########################################
Earlier, below line was not included in the Script file. So added the file and then executed still got the same error.
#!/bin/ksh
=====================================================================================================================
#########################################
# 2) Reason for Failure
#########################################
Looks like the file name should be with a dot (.) hidden file.
##########################
## Solution
##########################
I've just renamed the environmental setup file from dtest to .dtest and it worked good.
[oracle@host02 ~]$ . .dtest
############################################
# List of Instances Running on this Server #
############################################
+ASM2
db1
db2
************************************************
* Type the Database Name Which you need to Use *
************************************************
=====================================================================================================================
Comments Are Always welcome
=====================================================================================================================
No comments:
Post a Comment