Oracle Rest 数据服务安装错误

Oracle Rest Data Service Installation error

我正在尝试在 Apex 上安装 Oracle Rest Data 服务,但它安装时显示以下错误并且存在。

Installing Oracle REST Data Services version 3.0.0.343.08.03
... Log file written to C:\ords\logs\ordsinstall_2015-01-16_111716_00946.log
... Verified database prerequisites
Jan 16, 2015 11:17:19 AM oracle.dbtools.installer.Runner executeSQLScript
WARNING: Error executing script: ords_create_schema.sql Error: ORA-65096: invali
d common user or role name
ORA-06512: at line 5

 Refer to log file C:\ords\logs\ordsinstall_2015-01-16_111716_00946.log for deta
ils

最后还显示以下内容

        at oracle.dbtools.rt.config.setup.VerifySchema.execute(VerifySchema.java
:80)
        at oracle.dbtools.cmdline.DefaultCommand.execute(DefaultCommand.java:83)

        at oracle.dbtools.cmdline.Commands.execute(Commands.java:162)
        at oracle.dbtools.cmdline.Commands.main(Commands.java:133)
        at oracle.dbtools.cmdline.Commands.main(Commands.java:291)
        ... 5 more

您可以在设置示例架构之前设置 TWO_TASK 环境变量。

export TWO_TASK=ORCL
sqlplus sys/passwd@ORCL as sysdba  <-- Normal use
sqlplus sys/passwd as sysdba <-- automaticly uses @ORCL

设置 TWO_TASK 后,默认情况下客户端连接将使用 TNS 和别名 tnsnames.ora 而不是本地连接和 ORACLE_SID.

AskTom's What is TWO_TASK