assign host to a instance database created by script

Enovella23
Tera Contributor

Hi all

 

i have to create db instance thrue scripts, i have allready achive it, but now my requestor is asking me to assing  the server were this instnace are running, this field is a reference from server table but this host depend of which class is the database. i can assign it directly on my code, some one can help me?

 

this is my code:
db.cmdb_ci_db_ora_instance.host.setValue(serverid)

* the serverid is the server sys_id but isnt working

0 REPLIES 0