Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Rename the Oracle Instance name

Endmost
Tera Expert

Hi All,
Any suggestions if we want to change the default Oracle Instance name from sid@hostname to servicename@hostname? I have tried to modify the "Oracle DB On Unix" pattern and replaced $sid with another variable in step "sets the display label". The discovery log can show the correct name in the Creating CI section, but the actual cmdb_ci_db_ora_instance CI just won't change the name. Any idea?

Endmost

 

6 REPLIES 6

johnfw2
Tera Expert

Hi Endmost,

I will try and find the script that does the concatenation, but I'm fairly sure it is just doing a concatenation of 'instance' and the 'runs-on' server. You can influence the value of cmdb_ci_db_ora_instance.instance in a pattern extension. I suggest at least trying that, before customizing whichever script is creating the Name.

John

Hi John,

I have tried that without success. As what I captured below, even the Creating CI section shows the name we desired, but the Oracle Instance itself just shows with its default name.

find_real_file.png