There might be a situation where you need to update the hostname for weblogic schema database. Follow below steps to achieve this –
1. make sure you have taken the backups for your ORACLE_HOME and JAVA_HOME
cp -r $MIDDLEWARE_HOME $MIDDLEWARE_HOME.bkp.$tdate
2. goto weblogic console, under services section to JDBC

3. click on edit mode

4. slect the datasource


5. update the new name, save it

6. repeat it for all the data sources which are under scope.
7. save
8. STOP your environment.
9. Ensure environment is in stop state, goto $DOMAIN_HOME
cd $DOMAIN_HOME
vi $DOMAIN_HOME/config/fmwconfig/jps-config.xml
update this file with new hostname entry.
Please Note, I have tested it on weblogic versions 12.2.1.3.0 and 12.2.1.4.0 within my private lab, consult oracle before you want to do it under your production environments or test on sandbox environments before proceeding to actual dev or higher environment.
Disclaimer: this post is for knowledge sharing and I do not guarantee on its success, please consult vendor before you do in in your prod/lower environment, cloudshiksha365, author or Cloud Space Technologies or Kloud Space Technologies are not liable for any of problems or loss that you might face during your changes, we advise to do thorough testing and consult vendor before you touch you environments.