0

我正在尝试使用命令行实用程序 APEXExport 导出我的应用程序。(顶点 19.2)

Exception in thread "main" java.sql.SQLException: ORA-06550: line 2, column 12:

PLS-00306: wrong number or types of arguments in call to 'GET_APPLICATION'

ORA-06550: line 2, column 5:

PL/SQL: Statement ignored





    at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:494)

    at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:446)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1054)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:623)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:252)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:612)

    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:223)

    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:56)

    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:907)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1119)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3780)

    at oracle.jdbc.driver.T4CCallableStatement.executeInternal(T4CCallableStatement.java:1300)

    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3887)

    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4230)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1079)

    at oracle.apex.APEXExport.exec_and_write_files(APEXExport.java:222)

    at oracle.apex.APEXExport.ExportFile(APEXExport.java:523)

    at oracle.apex.APEXExport.ExportFiles(APEXExport.java:332)

    at oracle.apex.APEXExport.main(APEXExport.java:890)

Caused by: Error : 6550, Position : 17, Sql = begin

:1  := apex_export.get_application (

         p_application_id          => :2 ,

         p_split                   => :3 ='Y',

         p_with_date               => :4 ='Y',

         p_with_ir_public_reports  => :5 ='Y',

         p_with_ir_private_reports => :6 ='Y',

         p_with_ir_notifications   => :7 ='Y',

         p_with_translations       => :8 ='Y',

         p_with_pkg_app_mapping    => :9 ='Y',

         p_with_original_ids       => :10 ='Y',

         p_with_no_subscriptions   => :11 ='Y',

         p_with_comments           => :12 ='Y',

         p_with_supporting_objects => :13 ,

         p_with_acl_assignments    => :14 ='Y',

         p_components              => apex_string.split(:15 ,'#') );

end;, OriginalSql = begin

? := apex_export.get_application (

         p_application_id          => ?,

         p_split                   => ?='Y',

         p_with_date               => ?='Y',

         p_with_ir_public_reports  => ?='Y',

         p_with_ir_private_reports => ?='Y',

         p_with_ir_notifications   => ?='Y',

         p_with_translations       => ?='Y',

         p_with_pkg_app_mapping    => ?='Y',

         p_with_original_ids       => ?='Y',

         p_with_no_subscriptions   => ?='Y',

         p_with_comments           => ?='Y',

         p_with_supporting_objects => ?,

         p_with_acl_assignments    => ?='Y',

         p_components              => apex_string.split(?,'#') );

end;, Error Msg = ORA-06550: line 2, column 12:

PLS-00306: wrong number or types of arguments in call to 'GET_APPLICATION'

ORA-06550: line 2, column 5:

PL/SQL: Statement ignored





    at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:498)

    ... 18 more

我从 cmd 运行了一个相当直接的命令

cd <Navigated to utilites folder in apex installation>

%JAVA_HOME%\java oracle.apex.APEXExport -db "myhost:myport:servicename" -user my_user -password my_password -applicationid 120

但是,当我使用 APEX 18.2 安装时,应用程序导出没有问题。

让我知道我是否做错了?还是 APEX 19.2 中的错误(未在已知问题中列出)

提前致谢

4

1 回答 1

1

现在我建议使用 SQLcl 而不是“旧”的 APEXExport 实用程序... SQLcl 内置了 APEX 导出工具,这些工具运行良好,并且具有旧实用程序的所有功能以及更多功能。只需将 SQLcl 连接到您的数据库解析模式,然后键入“apex export”即可查看命令帮助页面。

https://www.oracle.com/database/technologies/appdev/sqlcl.html

顶点导出命令

于 2020-02-21T20:47:42.693 回答