How to export UTL_ENCODE package body in Oracle9i?

I want to export UTL_ENCODE package and import it into Oracle8.1.6. Because its package body is wrapped, I can't copy and paste the code. Is there any other way to export the package? thanks for your replying.

Wrapped source compiles just as plain text does. However, it is not backwards compatible. So if the UTL_ENCODE was wrapped with the 9.0.1 wrap binary then the 8.1.6 database won't understand the wrapped source. You can go forward though.
Even if you had plain text source - it isn't generally a good idea to move Oracle Builtins to a backward version.
Two workarounds:
1) roll your own - as it isn't a tremendously complicated package.
2) If your 8.1.6 database shares a network with a 9i database, use a database link to get at the functionality you need.
Michael O'Neill
Publisher of the PigiWiki
clever-idea.com

Similar Messages

  • How to open a package body in Oracle sql developer

    How to open a package body in Oracle sql developer..any shortcut for that

    I need another way to get to my package body. I'm on a locked down system, so the only way I can reference anything is if I already know the name of it. I accidentally overwrote my text document that I was using to work on it and I closed out of the package body in sqldeveloper. There must be a command, like an alter or some such. Anyone know the old fashioned way of looking at a package?

  • How to compile all package body using sqlplus ?

    hi all,
    How to compile all package body using sqlplus ?
    Please help.
    Amy

    dbms_utility.compile_schema will compile all the invalid objects in a schema, including the invalid package bodies. If you only want to compile the invalid package bodies, you could write your own dynamic SQL stored procedure to do that using the user_source view, but that's a lot more effort for a very minimal benefit.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to wrap a package body in the Oracle Cloud

    Does anyone know if it is possible to wrap a PL/SQL package body in the Oracle Cloud? I tried to wrap it on my local machine and then upload it but when I ran it, it said the wrapped package was corrupt. DBMS_DDL is a lot of extra work and only works for packages <= 32K. Is there any other way to do this?
    Maybe in the SQL Workshop, upload script section, there could be an option to wrap code when you run it?
    Thanks,
    Steve

    Rick,
    Thanks for the quick response. I used the SQL Workshop, script upload function (in Apex) to upload a package that I wrapped on my pc (Windows 7) using the wrap command line utility (11g). It uploaded fine but when I tried to run it, it returned a message like "Wrapped code is invalid or corrupted". This was not what I would have expected since I know you can import/export wrapped code between systems (different OS) without issue. Perhaps the command line wrap is OS specific and the import/export is doing some kind of translation?
    Anyway, I know you cannot use the command line option directly in the cloud because, as you say, you don't have access to the command line. DBMS_DDL is too tedious to use and has the 32K limit and unfortunately, there is no command like, "Alter package body xxx compile wrapped". So that leaves using the SQL Developer Cart option to move wrapped code from a local db to the cloud db. Unfortunately, I'm still having roles and permissions issues with my account which Oracle Support hasn't been able to fix over the last few weeks so I can't try this option (or even login using SQL Dev). Has anyone tried to do this? Does anyone know of another way to do this that I'm not thinking of?
    Thanks,
    Steve

  • How to make my package body hide in oracle......

    hi all,
    i have a package, and i want to hide my package body only not spec;
    i searched in websites, but not getting the correct answer,,
    help me.
    Edited by: 887268 on Sep 28, 2011 1:10 AM

    887268 wrote:
    hi all,
    i have a package, and i want to hide my package body only not spec;
    i searched in websites, but not getting the correct answer,,
    help me.
    Edited by: 887268 on Sep 28, 2011 1:10 AMMake it hide for other users?
    So use grant / revoke privileges

  • How to export mail message body data detectors information, not address bok

    Is there anyway to export Apple mail's "data detectors" information within the message body other than to the address book? I don't want to export the other non detector information contained in the body of the message. I would also like to include From, Subject and Date. Preferably the export result would be in a organized comma format.
    Any suggestions?
    Thanks in advance.

    James,
    Two routes to try come to mind, the first being Applescript. Mail is obviously "aware" of the info contained in the detectors, and of course it knows all about what is contained in the header. You can probably use Applescript to extract the desired data, placing it in a Text Edit document. It has been some time since I haves used Applescript myself, so I won't be much help in guiding you. Regardless, you would need to teach yourself how to use Applescript, even with assistance.
    The other route to take would be to drag these emails out of Mail to the Finder, creating standard text files. You could then handle them in one of the command line text editors- scripted, of course- to extract and format the needed data. Again, this is something you'd need to explore on your own.
    Since these messages all have the same formatting, it is simply a matter of identifying the data you need, then placing that data in a properly formatted text document. Generally speaking, this is part and parcel of what both Applescript be text editors do.
    Scott

  • How to export SSIS package to File system in SQL Server 2012

    I am accessing SSIS package by connecting to a database engine. I wanted to export the SSIS to file system. How to get it done in sql server 2012? I tried Util utility , i got package not present. Let me know what other options are available to export to
    file system?
    Mano

    Hi Mano,
    After exporting the project stored in a SSISDB catalog to an .ispac file, we can modify the extension .ispac to .zip, then, we can extract the zip file to get the .dtsx package files. Besides, please note that if there are project level connection managers
    or parameters, their definition cannot be exported to individual packages.
    Regards,
    Mike Yin
    TechNet Community Support

  • How to Export Package in PI 7.1?

    Hi,
    In PI 7.1, Functions Tab - how to Export the Package? there a export icon beside the Package name, when I am trying to export, a window is popping up asking me to open the file instead of saving the file.
    Please suggest in this .......
    Thanks & Regard,
    Pragathi.

    Pragathi,
    you only need to select a folder in the popup window, then click on Open. A sub folder structure will be created by PI in your selected folder and java files will be created correspondingly.
    Jayson

  • How to view package body in sqlDeveloper

    Hi everyone, I am able to use popup describe to view a PL SQL package definiton in SQL developer.
    My problem is how to view the package body easily. In TOAD, say I have a package called XX_TOAD with a procedure get_name, I can type in XX_TOAD.get_name in the editor and describe it to show the package body.
    Is there an easy way to view the package body in SQL developer without having the browse the database objects?
    Thanks

    Type the package name in the Sand select the package /procedure and press SHIFT + F4. A new window will open displaying the package script
    --rsrini                                                                                                                                                                                                                                                                                                           

  • AP_VENDOR_PUB_PKG PACKAGE BODY issue...

    Hi there
    AP_VENDOR_PUB_PKG PACKAGE BODY become invalid can any one let me how to valid this package body because due to this we are facing problem in creating supplier.
    Regards,
    Mohsin

    Hi Helios
    Thanks for reply...please find below application & object info.
    Application: R12(12.1.2)
    Database: 11.1.0.7
    STATUS OBJECT_NAME OBJECT_TYPE
    INVALID FV_FACTS_TRANSACTIONS PACKAGE BODY
    INVALID FV_FACTS_TBAL_TRANSACTIONS PACKAGE BODY
    INVALID FV_BUDGET_DISTRIBUTION_HDR_V VIEW
    INVALID FII_AP_INV_ON_HOLD_F_C PACKAGE BODY
    INVALID FII_AP_HOLD_DATA_F_C PACKAGE BODY
    INVALID FII_AP_INV_PAYMTS_F_C PACKAGE BODY
    INVALID FII_AP_INV_LINES_F_C PACKAGE BODY
    INVALID FII_AP_SCH_PAYMTS_F_C PACKAGE BODY
    INVALID FII_AR_TRX_DIST_F_C PACKAGE BODY
    INVALID FII_PA_COST_F_C PACKAGE BODY
    INVALID FII_PA_REVENUE_F_C PACKAGE BODY
    STATUS OBJECT_NAME OBJECT_TYPE
    INVALID FII_PA_UOM_CONV_F_C PACKAGE BODY
    INVALID FII_PA_BUDGET_F_C PACKAGE BODY
    INVALID EDW_HR_ASG_CHNG_M_C PACKAGE BODY
    INVALID EDW_HR_AGE_BAND_M_C PACKAGE BODY
    INVALID EDW_HR_ASSGNMNT_M_C PACKAGE BODY
    INVALID EDW_HR_GRADE_M_C PACKAGE BODY
    INVALID EDW_HR_JOBS_M_C PACKAGE BODY
    INVALID EDW_HR_SERVICE_M_C PACKAGE BODY
    INVALID EDW_HR_MVMNT_TYP_M_C PACKAGE BODY
    INVALID EDW_HR_PERSON_M_C PACKAGE BODY
    INVALID EDW_HR_POSITION_M_C PACKAGE BODY
    STATUS OBJECT_NAME OBJECT_TYPE
    INVALID EDW_HR_REC_ACT_M_C PACKAGE BODY
    INVALID EDW_ORGANIZATION_M_C PACKAGE BODY
    INVALID EDW_HR_PRSN_TYP_M_C PACKAGE BODY
    INVALID EDW_HR_RQN_VCNCY_M_C PACKAGE BODY
    INVALID EDW_HR_REASON_M_C PACKAGE BODY
    INVALID HR_EDW_WRK_CMPSTN_F_C PACKAGE BODY
    INVALID EDW_MRP_DM_CLS_M_C PACKAGE BODY
    INVALID EDW_MRP_FORECAST_M_C PACKAGE BODY
    INVALID EDW_MRP_PLAN_M_C PACKAGE BODY
    INVALID ISC_EDW_BOOK_SUM1_F_C PACKAGE BODY
    INVALID EDW_MTL_INVENTORY_LOC_M_C PACKAGE BODY
    STATUS OBJECT_NAME OBJECT_TYPE
    INVALID OPI_EDW_COGS_F_C PACKAGE BODY
    INVALID OPI_EDW_OPM_JOB_RSRC_F_C PACKAGE BODY
    INVALID OPI_EDW_OPM_JOB_DETAIL_F_C PACKAGE BODY
    INVALID OPI_EDW_OPMCOGS_F_C PACKAGE BODY
    INVALID OPI_EDW_OPMINV_DAILY_STAT_F_C PACKAGE BODY
    INVALID EDW_OPI_OPRN_M_C PACKAGE BODY
    INVALID EDW_OPI_ACTV_M_C PACKAGE BODY
    INVALID EDW_OPI_LOT_M_C PACKAGE BODY
    INVALID EDW_OPI_PRDL_M_C PACKAGE BODY
    INVALID OPI_EDW_UOM_CONV_F_C PACKAGE BODY
    INVALID EDW_POA_SPLRITEM_M_C PACKAGE BODY
    STATUS OBJECT_NAME OBJECT_TYPE
    INVALID EDW_POA_LN_TYPE_M_C PACKAGE BODY
    INVALID QP_BUILD_SOURCING_PVT_TMP PACKAGE BODY
    INVALID FV_FACTS_TBAL_TRX PACKAGE BODY
    INVALID FV_FACTS_TRX_REGISTER PACKAGE BODY
    INVALID ITG_SYNCSUPPLIERINBOUND_PVT PACKAGE BODY
    INVALID AP_VENDOR_PUB_PKG PACKAGE BODY
    INVALID FV_SLA_PROCESSING_PKG PACKAGE BODY
    INVALID PSA_AP_BC_PVT PACKAGE BODY
    INVALID XLA_00201_AAD_S_000004_BC_PKG PACKAGE BODY
    INVALID FV_SLA_UTL_PROCESSING_PKG PACKAGE BODY
    INVALID XX_GET_PR_PO_INFO FUNCTION
    STATUS OBJECT_NAME OBJECT_TYPE
    INVALID AP_VENDOR_PUB_PKG_BK PACKAGE BODY
    56 rows selected.
    yes i have validated apps schema with adadmin utility as well
    Regards,
    Mohsin
    Edited by: 920138 on Apr 26, 2012 4:13 AM

  • EXPORT/IMPORT packages

    Hi,
    I want to know how to export/import packages from one database/table to db/table.
    please help me on this.
    Thank you,

    Hello,
    I want to know how to export/import packages from one database/table to db/table.The answer is given already. You have to use the INCLUDE parameter (with DATAPUMP only).
    Just a precision, a Package belongs to a Schema so you have to use the FULL or SCHEMA mode. The TABLE mode will let you import only the Tables and their dependent objects (Index, Constraints, ...).
    Hope this help.
    Best regards,
    Jean-Valentin

  • Package body wb_rtu_transaction_handler in in-valid state

    Hi,
    On installing owb v 11.1 , i found the package body wb_rtu_transaction_handler in an in-valid state. on compilation i get the message
    Error(2,39): PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: is as compress compiled wrapped The symbol "compress" was substituted for "end-of-file" to continue.
    Can anyone tell me how to get this package body to valid status.
    Many thanks
    Ravi
    ..

    SQL> alter package WWV_FLOW_ITEM compile body;
    Warning: Package Body altered with compilation errors.
    Hi Joel,
    Here the error I got in SQL*Plus (user flows_010600) and after having made a "desc" command (like mentioned in the bug PL/SQL 2893533
    SQL> alter package WWV_FLOW_ITEM compile body;
    Warning: Package Body altered with compilation errors.
    SQL> show error
    Errors for PACKAGE BODY WWV_FLOW_ITEM:
    LINE/COL ERROR
    15381/1 PLS-00103: Encountered the symbol "2136"
    SQL>
    Any new idea ?
    Thxs
    Yves

  • How can i find start line of any functions or procedures stored in package body?

    hi
    how can i find start line of any functions or procedures stored in package body?
    is there any way to write a query from for example user_source?
    thanks

    how can i find start line of any functions or procedures stored in package body?
    Why? What will you do differently if a procedure starts on line 173 instead of line 254?
    Tell us what PROBLEM you are trying to solve so we can help you find the best way to solve it.
    If you use PL_SCOPE that info is available in the *_IDENTIFIERS views. See 'Using PL/Scope in the Advanced Dev Doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns_plscope.htm
    Try this simple sample code. The query is modified from that doc sample:
    -- tell the compiler to collect the info
    ALTER SESSION SET PLSCOPE_SETTINGS='IDENTIFIERS:ALL';
    -- recompile the package
    CREATE OR REPLACE package SCOTT.pack1 as
    PROCEDURE proc1;
    PROCEDURE proc2;
    END;
    CREATE OR REPLACE package BODY SCOTT.pack1 as
    PROCEDURE proc1 IS
    BEGIN
      NULL;
    END;
    PROCEDURE proc2 IS
    BEGIN
      proc1;
    END;
    PROCEDURE proc3 IS
    BEGIN
      proc1;
      proc2;
    END;
    END;
    -- query the info for the package spec
    WITH v AS (
      SELECT    Line,
                Col,
                INITCAP(NAME) Name,
                LOWER(TYPE)   Type,
                LOWER(USAGE)  Usage,
                USAGE_ID,
                USAGE_CONTEXT_ID
        FROM USER_IDENTIFIERS
          WHERE Object_Name = 'PACK1'
            AND Object_Type = 'PACKAGE'
    SELECT LINE, RPAD(LPAD(' ', 2*(Level-1)) ||
                     Name, 20, '.')||' '||
                     RPAD(Type, 20)||
                     RPAD(Usage, 20)
                     IDENTIFIER_USAGE_CONTEXTS
      FROM v
      START WITH USAGE_CONTEXT_ID = 0
      CONNECT BY PRIOR USAGE_ID = USAGE_CONTEXT_ID
      ORDER SIBLINGS BY Line, Col
    LINE,IDENTIFIER_USAGE_CONTEXTS
    1,Pack1............... package             declaration        
    2,  Proc1............. procedure           declaration        
    3,  Proc2............. procedure           declaration        
    -- query the info for the package body - change 'PACKAGE' to 'PACKAGE BODY' in the query above
    LINE,IDENTIFIER_USAGE_CONTEXTS
    1,Pack1............... package             definition         
    2,  Proc1............. procedure           definition         
    6,  Proc2............. procedure           definition         
    8,    Proc1........... procedure           call               
    10,  Proc3............. procedure           declaration        
    10,    Proc3........... procedure           definition         
    12,      Proc1......... procedure           call               
    13,      Proc2......... procedure           call               

  • How do I view a FUNCTION within a Package Body

    I can see the FUNCTION being executed within the Package...
    FUNCTION Stop_Refresh_AsBilled
    RETURN Number;
    And within Oracle SQL Developer and using the Connection and "Packages" part of the Schema, I see the Function Name. However, when I <Double-Click> on the FUNCTION Name within the Schema, it is taking me to where the FUNCTION is executed within the Package and NOT to the PL/SQL Code that actually makes up the FUNCTION.
    Am I missing something here??? Maybe in my Preferences??? How can I drill down further to actually find the FUNCTION Definition and PL/SQL Code that makes up the FUNCTION within the Package Body???
    I can bring up the Package Body and Search on the FUNCTION that way. I'm hoping there is an easier way however to drill down to the actual PL/SQL Code that makes up the FUNCTION.
    I hope I am being clear in my explanation here.
    Thanks for your review and I am hopeful for a reply.
    PSULionRP

    Jim, opening the body node to see all functions and procedures sometimes does not work in 3.0
    I have many packages generated by Feuerstien's CodeGen utility. The Query package appears just fine with every function and procedure appearing as expected in both header and body nodes. However, the Change Package fails miserably. Header shows all functions and procedures fine, but the body node only shows the top private declarations of variables and types. Not one function or procedure appears in the expanded node.
    The only thing I can figure is that the Change package of about 30 named items has many of the same name+ with overloaded parameters. I think SQL Dev is having problems parsing the names in the body even though it does fine with the names in the header of the package--perhaps because of many private variables and PRAGMA's declared at the top of the body.
    Both packages have about 30 functions, but the Change package body has over 2000 lines while the Query package has fewer than 500.
    Just adding to the mystery--but I think it merits a bug report (gotta figure out where to report it now).

  • Export failed with error ORA-04063: package body "SYS.DBMS_CUBE_EXP" has er

    Hi
    We are having 11.2.0.2 database on Linux 5. From last two days the export backup is getting failed with the below error.
    . exporting post-schema procedural objects and actions
    EXP-00008: ORACLE error 4063 encountered
    ORA-04063: package body "SYS.DBMS_CUBE_EXP" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_CUBE_EXP"
    ORA-06512: at line 1
    EXP-00083: The previous problem occurred when calling SYS.DBMS_CUBE_EXP.schema_i
    . exporting statistics
    Export terminated successfully with warnings.
    When I checked the status of this package DBMS_CUBE_EXP its showing invalid. I tried to compile the body of the package. But it was throwing below error.
    SQL> show errors
    Errors for PACKAGE BODY DBMS_CUBE_EXP:
    LINE/COL ERROR
    53/5 PL/SQL: SQL Statement ignored
    54/10 PL/SQL: ORA-04045: errors during recompilation/revalidation of
    SYS.DBA_XDS_INSTANCE_SETS
    ORA-01422: exact fetch returns more than requested number of rows
    I tried to query this view or describe the above view. But it was throwing the same error.
    ERROR at line 1:
    ORA-04045: errors during recompilation/revalidation of
    SYS.DBA_XDS_INSTANCE_SETS
    ORA-01422: exact fetch returns more than requested number of rows
    I couldnt get a proper solution from google regarding this view or to compile the above package.
    Now we are stcuked without the backups. It would be great if you guys look into it.
    Thanks
    SHIYAS M

    Yes I tried with take the export with SYS user. This time it thrown the error in the first and last too same as before.
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    EXP-00008: ORACLE error 4063 encountered
    ORA-04063: package body "SYS.DBMS_CUBE_EXP" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_CUBE_EXP"
    ORA-06512: at line 1
    EXP-00083: The previous problem occurred when calling SYS.DBMS_CUBE_EXP.schema_info_exp
    . exporting foreign function library names for user U_20102
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user U_20102
    About to export U_20102's objects ...
    I ran below scripts as per u provided the link
    @$ORACLE_HOME/rdbms/admin/catdpb.sql and utlrp.sql
    Still it didnt get compiled.
    One more thing I tried running expdp. It totally got failed by throwing the similar error. It didnt even export the tables too.
    ===============================================================================
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    ORA-39126: Worker unexpected fatal error in KUPW$WORKER.GET_TABLE_DATA_OBJECTS []
    ORA-31642: the following SQL statement fails:
    BEGIN "SYS"."DBMS_CUBE_EXP".SCHEMA_CALLOUT(:1,0,1,'11.02.00.00.00'); END;
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_METADATA", line 1245
    ORA-04063: package body "SYS.DBMS_CUBE_EXP" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_CUBE_EXP"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.KUPW$WORKER", line 8353
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    0x1a3257060 19208 package body SYS.KUPW$WORKER
    0x1a3257060 8385 package body SYS.KUPW$WORKER
    0x1a3257060 12748 package body SYS.KUPW$WORKER
    0x1a3257060 2546 package body SYS.KUPW$WORKER
    0x1a3257060 9054 package body SYS.KUPW$WORKER
    0x1a3257060 1688 package body SYS.KUPW$WORKER
    0x1a8bc1630 2 anonymous block
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    ORA-39126: Worker unexpected fatal error in KUPW$WORKER.GET_TABLE_DATA_OBJECTS []
    ORA-31642: the following SQL statement fails:
    BEGIN "SYS"."DBMS_CUBE_EXP".SCHEMA_CALLOUT(:1,0,1,'11.02.00.00.00'); END;
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_METADATA", line 1245
    ORA-04063: package body "SYS.DBMS_CUBE_EXP" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_CUBE_EXP"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.KUPW$WORKER", line 8353
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    0x1a3257060 19208 package body SYS.KUPW$WORKER
    0x1a3257060 8385 package body SYS.KUPW$WORKER
    0x1a3257060 12748 package body SYS.KUPW$WORKER
    0x1a3257060 2546 package body SYS.KUPW$WORKER
    0x1a3257060 9054 package body SYS.KUPW$WORKER
    0x1a3257060 1688 package body SYS.KUPW$WORKER
    0x1a8bc1630 2 anonymous block
    Job "SYS"."SYS_EXPORT_SCHEMA_01" stopped due to fatal error at 17:58:34
    =========================================================================

Maybe you are looking for