Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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