Updated on 2024-07-19 GMT+08:00

Creating a Schema for Package

The package declaration is migrated as a schema named after the package. The migration can be performed after pkgSchemaNaming is set to false.

Input – Create schema for Package

1
2
3
4
5
6
7
8
9
CREATE OR REPLACE EDITIONABLE PACKAGE "PACK_DEMO"."PACKAGE_GET_NOVA_INFO" AS
 
      TYPE  novalistcur  is REF CURSOR;  
    PROCEDURE getNovaInfo (
        i_appEnShortName     IN       VARCHAR2,
        o_flag           OUT    VARCHAR2,
        o_errormsg   OUT    VARCHAR2,
        o_novalist      OUT    novalistcur
    );

Output

1
2
3
4
/*~~PACKAGE_GET_NOVA_INFO~~*/
CREATE
     SCHEMA PACKAGE_GET_NOVA_INFO
;