Hi,
I am attempting to upgrade my vRealize Automation environment from 6.2.0 to 6.2.1 and am having an issue running the DBUpgrade scripts. I've already updated the appliance successfully and am now at the part where I need to upgrade the DB prior to upgrading the IaaS components. I believe my issue has to do with the fact that the dbname contains a "space". Can anyone help me resolve this issue please?
Syntax:
**Note: I actually used elevated CMD prompt instead of PowerShell to run command. Only showing PowerShell for larger window size. Same end result with both methods.**
Log:
VMware Technical Support Request # 15623752703
So Powershell and Command Prompt handle strings a bit differently, but I don't remember the differences. The documentation states that you should use command prompt, but says nothing about Powershell. Try it in command prompt, exact same command. Let me know if it works or not.
mynameismevin - I simply used PowerShell for this picture to show the syntax as a single line in a larger window vs the smaller CMD prompt window. But I have tried with both an elevated CMD window as well as an elevated PowerShell prompt with the same end result.
What version of Java is installed?
mynameismevin - Java 7 Update 75 x64 as that is what is needed and supported. Just an FYI - vRealize applications should be upgraded to support newer Java 8 version as version 7 will available only through mid-April 2015.
Strange. Keep working with your TSE, and he'll interface with our engineering group should it need to go that far. Our engineering group is aware of the availability for 1.7, but thanks for the mention. I'm out of ideas for now, but if you could post the resolution when you're SR is resolved, I'll make sure it gets into a KB. Thanks!
mynameismevin - OK sounds good, I will be sure to post a resolution once found. Thanks much for your willingness to assist.
Edit:
Perhaps your DB needs to be in brackets? Might be worth a shot...
Having a space tends to make things interesting... both for DBs and table names.
"[vRA DB]"
I guess...
Message was edited by: SeanKohler
SeanKohler - I have not tried this but I assume it would still fail as it wouldn't locate and connect to the DB as it would look for a name containing the bracket. I will try it anyway though and will also try placing the brackets outside of the quotes.
Yeah... just tried it. Neither osql or sqlcmd accept brackets while forming the DB connection. Within queries (of course) it does for dbnames/tablenames that contain spaces.
Sorry no help there...
it seems we are not clear on the workaround for this problem.
maybe you can open ticket with vmware support.
gradinka - Currently there is no workaround that's what I am trying to figure out. Also, support request has already been raised. Initial post has the VMware Technical SR # information. :smileyinfo:
Try using simple quotes instead of double quotes, SQL and Transact SQL are using simple quotes if I remember well.
JihemmeT - thanks for the suggestion but I've already tried that. Single quotes nor brackets work as it then looks for those characters in the dbname. The issue is not with connecting to the DB, it successfully connects. It has to be somewhere in the script that gets executed which is treating the space as a switch. :smileyconfused: