Oracle ORDS 卸载期间的 IO 错误

IO Error during Oracle ORDS uninstallation

我正在尝试从我的服务器上卸载 ORDS,但它无法正常工作。我正在尝试卸载它,以便重新尝试安装。

卸载失败,出现以下错误:

Enter the name of the database server [dbname]:dbname
Enter the database listen port [1521]:1521
Enter 1 to specify the database service name, or 2 to specify the database SID [1]:1
Enter the database service name [servicename]:servicename
Requires to login with administrator privileges to verify Oracle REST Data Services schema.

Enter the administrator username:sys as sysdba
Enter the database password for sys as sysdba:
Confirm password:
Mar 24, 2020 3:16:47 PM oracle.dbtools.rt.config.setup.SchemaSetup verifyDBAUserConnection
WARNING: Failed to connect to user sys as sysdba jdbc:oracle:thin:@//dbname:1521/servicename 
IO Error: Unknown host specified 

如何更正此错误以卸载 ORDS?

转到 ORDS/params 文件夹并查看 ords_params.properties 文件并确保 db.hostname 是正确的。应该是您的服务器的完全限定名称