benbotektips
MIS
I have a unix box with Oracle 7.3 & 8i loaded under directories /u and /u01. I'm upgrading to 8i, & need to test scripts working on 7.3 on 8i. In a script, there's a line that looks exactly like this:
. offline.env
right before it calls another script to load tables.
There's a file 'offline.env', in the same directory as the calling and called script , which has the new key variables (oracle_home, sid, etc.), and is supposed to switch the environment (and tabled update via the script) to 8i. Problem is, the script runs, control totals match, it looks like everything worked - and the tables don't get populated in 8i.
I got the 8i tables populated by changing the key variables in the database name home directory .profile file, but my boss isn't happy with this. He's positive offline.env is supposed to switch environments in mid-script, and won't allow the permanent change to the home directory .profile file.
I've never heard of 'offline.env', I can't find any documentation on the web, and my boss is pissed.
Can anyone think, is there another file or variable that will allow u to invoke it in a script, to have the script operate on the specificed environment? Any documentation on this 'offline.env' command? I tried putting the 'offline.env' line in the called script, but this generated errors. In general, how do I keep 2 environments on one box, and allow scripts to switch at will to which database is operates on?
. offline.env
right before it calls another script to load tables.
There's a file 'offline.env', in the same directory as the calling and called script , which has the new key variables (oracle_home, sid, etc.), and is supposed to switch the environment (and tabled update via the script) to 8i. Problem is, the script runs, control totals match, it looks like everything worked - and the tables don't get populated in 8i.
I got the 8i tables populated by changing the key variables in the database name home directory .profile file, but my boss isn't happy with this. He's positive offline.env is supposed to switch environments in mid-script, and won't allow the permanent change to the home directory .profile file.
I've never heard of 'offline.env', I can't find any documentation on the web, and my boss is pissed.
Can anyone think, is there another file or variable that will allow u to invoke it in a script, to have the script operate on the specificed environment? Any documentation on this 'offline.env' command? I tried putting the 'offline.env' line in the called script, but this generated errors. In general, how do I keep 2 environments on one box, and allow scripts to switch at will to which database is operates on?