I was successfully able to made a connection to my Oracle database via the “DatabaseConnect” activity in Studio. The connection string that resulted was (ABCD inserted for privacy sake for each comapny variable):
This worked and I was able to run queries using this setup, however if I go into the Expression Editor for the ConnectionString with the “DatabaseConnect” activity the following error message is present: "Comma, ‘)’, or a valid expression continuation expected. Thus, I am unable to edit this connection string to put in variables into all the ABCD places like (username, password, IP address, Port #, Service Name, etc.) - the “OK” button is always grayed out because of the ERROR and I can only hit cancel - despite being able to run with this exact connection string.
I need to be able to put in the variables into that connection string as I will be moving between production and testing databases so I need those values to be flexible and reference assets in my Orchestrator.
Any suggestions as to how to tweak things or how to make my own “Connection String” that I might be able to pass into the “ConnectionString” field of the “DatabaseConnect” activity?
I was able to make to use an “Assign” connectionstring equal to the below text that worked and I could run queries successfully (the Password is hard coded, obviously I want this hard-coded password to be a variable that still works and not be hardcoded):
When I made the change to include the “password” variable (see below string) in the “connectionstring” variable assign activity instead, I am now getting an error “ORA-01017: invalid username/password;logon denied”. Do you think this could be because there is a special character (#) in the password phrase? Seems wild that it would work when the # is hard coded in the PW, but when I put the password string variable in the “connectionstring” it says it is an “invalid username/password”.