最近几天我一直很累,想弄清楚这个问题,我也很少次重新安装ORDS,但是我无法解决这个问题,请帮我弄明白。 我正在使用apache tomcat 7.0.77
[root@ip-xxx.xx.xx.xxx ords\]# mkdir ORDS-config
[root@ip-xxx.xx.xx.xxx ords\]# java -jar ords.war configdir ORDS-config/
May 01, 2017 9:41:11 AM oracle.dbtools.cmdline.ModifyConfigDir execute
INFO: Set config.dir to ORDS-config/ in: /u01/app/ords/ords.war
[root@ip-xxx.xx.xx.xxx ords\]# vim params/ords_params.properties
You have new mail in /var/spool/mail/root
[root@ip-xxx.xx.xx.xxx ords\]# java -jar ords.war
Enter the database password for ORDS_PUBLIC_USER:
Confirm password:
Please login with SYSDBA privileges to verify Oracle REST Data Services schema.
Enter the username with SYSDBA privileges to verify the installation \[SYS\]:
Enter the database password for SYS:
Confirm password:
Enter 1 if you want to use PL/SQL Gateway or 2 to skip this step.
If using Oracle Application Express or migrating from mod_plsql then you must enter 1 \[1\]:
Enter the database password for APEX_PUBLIC_USER:
Confirm password:
Enter 1 to specify passwords for Application Express RESTful Services database users (APEX_LISTENER, APEX_REST_PUBLIC_USER) or 2 to skip this step \[1\]:
Enter the database password for APEX_LISTENER:
Confirm password:
Enter the database password for APEX_REST_PUBLIC_USER:
Confirm password:
May 01, 2017 9:43:04 AM oracle.dbtools.common.config.file.ConfigurationFilesBase update
INFO: Updated configurations: defaults, apex, apex_pu, apex_al, apex_rt
Installing Oracle REST Data Services version 3.0.6.176.08.46
... Log file written to /u01/app/ords/logs/ords_install_core_2017-05-01_094304_00364.log
... Verified database prerequisites
... Created Oracle REST Data Services schema
... Created Oracle REST Data Services proxy user
... Granted privileges to Oracle REST Data Services
... Created Oracle REST Data Services database objects
... Log file written to /u01/app/ords/logs/ords_install_datamodel_2017-05-01_094320_00325.log
Completed installation for Oracle REST Data Services version 3.0.6.176.08.46. Elapsed time: 00:00:17.36
Enter 1 if you wish to start in standalone mode or 2 to exit \[1\]:2
You have new mail in /var/spool/mail/root
答案 0 :(得分:0)
404就是你所期望的 - 没有任何东西映射到那个URI。
您的安装成功,ORDS正在运行。
因此,如果您在HR模式中发布RESTful服务,并将HR别名为'HumanR',那么您将转到http:... 8080 / ords / HumanR / module / template /
但在您创建服务之前,ORDS没有任何内容可供您使用,因此您可以获得404.