I would like to know of a shell script to create the following
A script which will take in two parameters i.e. name of file and SID and create directories named /opt/oracle/admin/$SID/{bdump,cdump,udump}. Then edit the init file and change the three lines that look like this.
So you would want to give two arguments first a file name and second a SID which is used to create the 3 directories like (/opt/oracle/admin/ $SID/bdump, /opt/oracle/admin/$SID/cdump, /opt/oracle/admin/$SID/udump)
But where is that file name being used?
You have metioned to edit the init file for three variables and does this part "/opt/oracle/oradata/shared/odvetr2x/" is static. Or should we update the init file like