Use the same commands from the .bash_profile except "export ORACLE_SID=test".
Then try to create the second database.