DBMS_REDEFINITION package leads to a PLS00201 compilation error

I try to put a logic of redefining online within a packet but direct issues, in particular the package doesn't seem to know DBMS_REDEFINITION. I can run DBMS_REDEFINITION, only not go in a package or a program named.

Here is a minimal example that fails:

-- Executed by the same user
-- This works just fine:
BEGIN
  DBMS_OUTPUT.PUT_LINE(SYS.DBMS_REDEFINITION.CONS_USE_ROWID);
END;


-- This generates PLS-00201 error on SYS.DBMS_REDEFINITION:
CREATE OR REPLACE PACKAGE testpkg
  AUTHID CURRENT_USER
AS
  gc_int PLS_INTEGER := SYS.DBMS_REDEFINITION.CONS_USE_ROWID;
END testpkg;


-- This does not work because testpkg is invalid:
BEGIN
  DBMS_OUTPUT.PUT_LINE(testpkg.gc_int);
END;

The problem is that I can run these instructions to the same user within the same session and I still get the error PLS. I even ran on my own system of sandbox (12 c VM) where I have system privileges, but it does not work. I fiddled with the AUTHID clause but that did not help.

Related discussions:

Any suggestions?

How grant you permission to this user to use dbms_redefinition? It must be a direct subsidy without a role:

Connected to:
Oracle Database 11g Release 11.2.0.4.0 - 64bit Production                      

SQL> CREATE OR REPLACE PACKAGE testpkg
  2    AUTHID CURRENT_USER
  3  AS
  4    gc_int PLS_INTEGER := SYS.DBMS_REDEFINITION.CONS_USE_ROWID;
  5  END testpkg;
  6  /                                                                         

Warning: Package created with compilation errors.                              

SQL> drop package testpkg;                                                     

Package dropped.                                                               

SQL> conn / as sysdba
Connected.                                                                     

SQL> grant all on dbms_redefinition to hr;                                     

Grant succeeded.                                                               

SQL> conn hr/hr
Connected.
SQL> CREATE OR REPLACE PACKAGE testpkg
  2    AUTHID CURRENT_USER
  3  AS
  4    gc_int PLS_INTEGER := SYS.DBMS_REDEFINITION.CONS_USE_ROWID;
  5  END testpkg;
  6  /                                                                         

Package created.

Tags: Database

Similar Questions

  • Can I use the packages with compilation errors

    Hello

    I try to use procedures in a package that includes compilation errors. I wonder whether the remaining procedures within this package is usable or not?

    Or is there a way to only compile the correct procedure within this package?

    Thank you very much

    Murat

    user13795669 wrote:
    Not even Possible, I use execute commands as below

    run immediately "@/ var/mcp/loadUtlPkg.sql';" or with another way?

    No, you can not use as you wrote.
    @ - is a special, synonymous with start , sign command SQL * more.
    You cannot use it with the PL/SQL constructor.

    The only way that you can use the body to package not valid with valid package spec - compile another package, dependent on the subject. Not running - compile.

  • get a compilation error. I don't know why.

    I get error compilation than for NRMS_INTERFACE BODY of PACKAGE Compilation errors. PKGNDW

    Error: PLS-00113: identifier 'BOOLISDATAAVAILABLE' of the END must match 'PKGND' at line 1, column 29
    Line: 3309
    Text: end boolIsDataAvailable;


    function boolIsDataAvailable (o_errorcode ON the NUMBER,
    o_errortext OUT VARCHAR2) return a Boolean value is
    DataAccess number;
    Boolean boolResult;
    Start
    Start

    Select DATA_ACCESS
    in the DataAccess
    of INTERFACEPARAMETER
    where NUMBER_VALUE = 0;

    boolResult: = true;

    exception

    WHILE OTHERS THEN
    -Encoder assumes that all exceptions here will lead to data is only not available.
    boolResult: = false;




    end;
    return boolResult;
    end;

    end boolIsNDWAvailable;

    Hello
    You have an extra end at the end of your code.
    and to put an end to the square END boolIsNDWAvailable;

    Salim cordially.

    /* Formatted on 2009/09/08 15:11 (Formatter Plus v4.8.8) */
    FUNCTION boolisdataavailable (o_errorcode OUT NUMBER, o_errortext OUT VARCHAR2)
       RETURN BOOLEAN
    IS
       dataaccess   NUMBER;
       boolresult   BOOLEAN;
    BEGIN
       BEGIN
          SELECT data_access
            INTO dataaccess
            FROM interfaceparameter
           WHERE number_value = 0;
    
          boolresult := TRUE;
       EXCEPTION
          WHEN OTHERS
          THEN
    -- coder assumes that any exceptions here will lead to data not being available.
             boolresult := FALSE;
       END;
    
       RETURN boolresult;
    END ;
    

    Published by: Salim champion 2009-09-08 12:12

    Published by: Salim champion 2009-09-08 12:14

  • Xilinx Compilation error: Formal HDLCompiler:432 < eiosignal > has no real or default value

    Hello

    I've compiled several programs for sbRIOs previously but did not run in before compile errors. I can't find any support to see what is actually wrong. Any help with this would be appreciated!

    The summary of the situation of the Compilation is:

    LabVIEW FPGA: Compilation failed due to an error of xilinx.

    Details:
    ERROR: HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" line 87: Formal has no real or default value.
    INFO: TclTasksC:1850 - enforcement process: synthesize - XST is made.
    INFO: HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000032_CustomNode.vhd", line 18. eiosignal is declared here
    ERROR: HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" line 106: Formal has no real or default value.
    INFO: HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000033_CustomNode.vhd", line 18. eiosignal is declared here
    ERROR: HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" line 125: Formal has no real or default value.
    INFO: HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000034_CustomNode.vhd", line 18. eiosignal is declared here
    ERROR: HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd", Line 144: Formal has no real or default value.
    INFO: HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000035_CustomNode.vhd", line 18. eiosignal is declared here
    ERROR: HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" line 163: Formal has no real or default value.
    INFO: HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000036_CustomNode.vhd", line 18. eiosignal is declared here
    ERROR: HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" line 182: Formal has no real or default value.
    INFO: HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000037_CustomNode.vhd", line 18. eiosignal is declared here
    ERROR: HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd", line 201: Formal has no real or default value.
    INFO: HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000038_CustomNode.vhd", line 18. eiosignal is declared here
    ERROR: HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" at line 220: Formal has no real or default value.
    INFO: HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000039_CustomNode.vhd", line 18. eiosignal is declared here
    ERROR: HDLCompiler:854 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" line 50: Unit ignored due to previous errors.
    File VHDL C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd ignored errors

    -->

    Total memory use is 189944 kilobytes

    Number of errors: 9 (0 filtered)
    Number of warnings: 4 (filtered 0)
    Number of news: 0 (0 filtered)

    "Synthesize - XST" process failed

    I had similar errors (not real or by default) then compile using the code LV would not remove, but the compiler Xilinx would be due to determine it was unused.  It is usually inaccessible code with a register read in the main loop, but write it to enroll in a deal structure that would not be executed.  Differences in the ability of the LV compiler or compiler of Xilinx to decide what is safe to delete this could lead.

    Other times we had errors when a clock has been specified in the file of constraints, but the clock was not used.

    Maybe one of these two seemingly unrelated points might help.

    Shane.

  • DMA FIFO of FPGA compilation error

    Hello

    I have a cRIO 9074 with FPGA. I tried a simple piece of code to learn how to acquire the data that is generated on the FPGA at a rate of 10 KHz and transfer it to the host VI to treat later in offline mode. However, I meet this compilation error when you compile the FPGA VI base containing a node to write FIFO (photo of the VI attached below). In compiling the report, it is said that there are 256 RAM Block used (the total number is 40), so an error has occurred. The error notification of exact compilation from Xilinx report is reproduced below:

    # From the PAM program

    # o toplevel_gen_map.ncd - intstyle xflow-calendar toplevel_gen.ngd map

    toplevel_gen. FCP

    #----------------------------------------------#

    "Target part using" 3s2000fg456-4 ".

    Design of mapping in the lut...

    Guided running of packaging...

    Running based on the delay of packaging of LUT...

    ERRORack:2310 - type compositions "RAMB16" too found to adapt to this device.

    ERROR: card: 115 - the design is too large to fit the device.  Please consult the Design summary section to see what resource requirements for your design exceeds the resources available in the device. Note that the number of slices don't notice it that their packaging could not be completed accurately.

    NOTE: A file NCD will be always generated to allow you to examine the mapped design.  This file is intended for evaluation use only and will not be processed successfully by means of BY.

    Mapping performed.

    See the report of map file "toplevel_gen_map.mrp" for more details.

    Problem encountered during the packaging phase.

    Summary of design

    --------------

    Error number: 2

    Number of warnings: 125

    ERROR: Xflow - card program returned the error 2 code. Aborting the workflow execution...

    Bitstream not created

    Time history analysis

    What does that mean? How can I fix this error?

    Thank you

    Bogdan

    Hey,.

    Have you already tried to reduce the size of the FIFO memory?

    Christian

  • PACKAGE BODY APPS. AD_ZD_ADOP contains errors

    APP TIER - Linux - SLES 11 - SP2 - x86_64

    DB LEVEL - Linux for system Z - SLES 11 - SP2 - s390

    I encounter errors in the body to Package APPS. AD_ZD_ADOP, that has brought all the patches to a status quo on our schedule instance.

    The sequence of events have been

    The following hotfixes have been applied.

    1. Patch 19462638
    2. Patch 19197270
    3. Patch 21132723
    4. 19330775
    5. 20677045
    6. 19259764

    Doc 1617461.1 was followed - B path of

    After Patch 19259764 has been applied, all steps until step 8 of Doc 1617461.1 have been completed.

    Failure of the fs_clone step (step 9). My colleague opened a SR - advice was far from expected.

    Yesterday, I took this with success and more cloned the fix for the file system to perform file system (1383621.1) - however, I'm still not able to run fs_clone with success.

    Even a basic ADADMIN session fails.

    Here are the errors while trying to compile APPS package bodies. AD_ZD_ADOP

    SQL > alter package APPS. AD_ZD_ADOP compile body;

    WARNING: The bodies of Package modified with compilation errors.

    SQL > show errors;
    Errors for BODY of PACKAGE applications. AD_ZD_ADOP:

    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    2503/3 PL/SQL: statement ignored
    2503/7 PLS-00201: identifier ' SYS. DBMS_METADATA_UTIL' must be declared
    SQL >

    Also while trying to launch ADADMIN, I get errors themselves.

    Error of Administration AD:

    ORA-04063: package body "APPS. AD_ZD_ADOP"contains errors

    Could not insert the record of the action in the table of patches

    Error of Administration AD:

    Error when you try to insert adadmin task CMP_INVALID action

    Update running adadmin of failure actions

    Error of Administration AD:

    The following ORACLE error:

    ORA-01756: city not properly finished chain

    occurred while executing the SQL statement:

    UPDATE ad_adop_session_patches set status = 'F' where status = 'R' and

    as numero_de_bogue ' ADADMIN

    Error of Administration AD:

    Table ad_adop_session_patches update errors

    You must check the file

    /U02/fs_ne/EBSapps/log/ADadmin/log/ADadmin.log

    to find errors.

    Can someone please. I have also a SR - but nice try various channels to find a solution.

    Hello

    The necessary subsidies on the SYS package may be missing. DBMS_METADATA_UTIL.

    Try this command (as sysdba) and compile the package:

    Grant execute on SYS. DBMS_METADATA_UTIL applications;

    Kind regards

    Bashar

  • ORA-04063: package body "APPS. HZ_PARTY_STAGE"contains errors

    Hello

    Received the error when compile. Checked in the Note: 427418.1 did not work. Help, please. It's 12.1.3, 11.2.0.3 Linux database.

    SQL > alter package APPS. HZ_PARTY_STAGE compile body;

    WARNING: The bodies of Package modified with compilation errors.

    SQL > show err

    Errors for BODY of PACKAGE applications. HZ_PARTY_STAGE:

    LINE/COL ERROR

    -------- -----------------------------------------------------------------

    85/5 PL/SQL: statement ignored

    85/5 PLS-00201: identifier ' AD_CTX_DDL. DROP_PREFERENCE' must be

    has said

    95/5 PL/SQL: statement ignored

    95/5 PLS-00201: identifier ' AD_CTX_DDL. CREATE_PREFERENCE' must be

    has said

    96/5 PL/SQL: statement ignored

    96/5 PLS-00201: identifier ' AD_CTX_DDL. SET_ATTRIBUTE' must be declared

    3313/28 PL/SQL: statement ignored

    LINE/COL ERROR

    -------- -----------------------------------------------------------------

    3313/28 PLS-00201: identifier ' AD_CTX_DDL. SYNC_INDEX' must be declared

    3322/27 PL/SQL: statement ignored

    3322/27-PLS-00201: identifier ' AD_CTX_DDL. SYNC_INDEX' must be declared

    3352/24 PL/SQL: statement ignored

    3352/24 PLS-00201: identifier ' AD_CTX_DDL. SYNC_INDEX' must be declared

    3362/23 PL/SQL: statement ignored

    3362/23 PLS-00201: identifier ' AD_CTX_DDL. SYNC_INDEX' must be declared

    3399/26 PL/SQL: statement ignored

    3399/26-PLS-00201: identifier ' AD_CTX_DDL. SYNC_INDEX' must be declared

    3409/26 PL/SQL: statement ignored

    3409/26-PLS-00201: identifier ' AD_CTX_DDL. SYNC_INDEX' must be declared

    LINE/COL ERROR

    -------- -----------------------------------------------------------------

    3447/27 PL/SQL: statement ignored

    3447/27-PLS-00201: identifier ' AD_CTX_DDL. SYNC_INDEX' must be declared

    SQL > grant execute on AD_CTX_DDL. DROP_PREFERENCE applications;

    Grant execute on AD_CTX_DDL. Applications DROP_PREFERENCE

    *

    ERROR on line 1:

    ORA-04042: procedure, function, package, or package body does not exist

    The solution in the doc, you mentioned in your first post. Run the dctxpkg.sql script and pass the correct settings and make sure that it runs successfully.

    Thank you

    Hussein

  • Custom function giving the compile error

    Hi all

    I created a custom function to get the current timestamp. The following java code:

    package com.oracle.determinations.examples;

    import com.oracle.determinations.engine.CustomFunction;

    import com.oracle.determinations.engine.EntityInstance;

    Import Java.util;

    java.text import. *;

    SerializableAttribute public class extends CustomFunction {CurrentTimeStamp

    public Object evaluate (EntityInstance entityInstance, Object [] items) {}

    Date dNow = new Date ();

    SimpleDateFormat ft =

    new SimpleDateFormat ("YYYY/MM/DD HH: mm:");

    / * System.out.println (ft.format (dNow)); * /

    Return ft.format (dNow);

    }

    }

    My Extension.xml is as below:

    <? XML version = "1.0" encoding = "utf-8"? >

    < extension >

    < functions >

    < name of the function = back "CurrentTimeStamp" type = "text" >

    < name arg = "input name" type = "text" / >

    < Manager platform = 'java' class="com.oracle.determinations.examples.CurrentTimeStamp"/ >

    < / feature >

    < / functions >

    < / extension >

    The extension.xml is placed under the following path:

    Development/Extension/CurrentTimeStamp/extension.xml

    The JAR file is located under the following path:

    Development/Extension/CurrentTimeStamp/lib/CurrentTimeStamp.jar (the jar file includes the com.oracle.determination.example folder structure)

    When I am using CurrentTimeStamp() in the basis of rules, is throw say compilation error:

    "Error after the CurrentTimeStamp text (' fount text: ' ')'. Expected variable value or constant OPA - E00111

    Can you please help me where I am doing wrong and therefore not identify the function?

    Thank you

    KK

    Version of the class 51 is Java 7, this suggests that you have compiled your classes in the Java JDK 7, but try to load them into an earlier version of Java (I guess Java 6 since this is the first version of Java that runs under Apache Tomcat 7).

    You can specify the JDK compiler to create classes that target Java 6, which should then work - see "javac - Java programming language compiler.

  • ORA-04063: package body 'SYS. DBMS_LOGMNR_INTERNAL"contains errors

    Dear all,

    On my production server database RAC node 2, with 11 GR 2 and Linux is the operating system.

    Last month, I created a new tablespace and set it up as a logminer tablespace by using the command:
    EXECUTE DBMS_LOGMNR_D.SET_TABLESPACE ('TBS_LOGMINER');

    Today morning I accidentally dropped the TBS_LOGMINER tablespace and don't have any backup of the tablespace.

    Now when I recreate the tablespace and run the command:

    EXECUTE DBMS_LOGMNR_D.SET_TABLESPACE ('TBS_LOGMINER');

    It returns the following error:

    ERROR on line 1:
    ORA-04063: package body 'SYS. DBMS_LOGMNR_INTERNAL"contains errors
    ORA-06508: PL/SQL: called program unit is not found:
    * "SYS. DBMS_LOGMNR_INTERNAL. "
    ORA-06512: at "SYS." DBMS_LOGMNR_D', line 135
    ORA-06512: at line 1

    Even when I tun and expdp exp
    For exp ORA-04063: package body 'SYS. DBMS_LOGREP_UTIL"contains errors
    For expdp
    ORA-04063: package body 'SYS. DBMS_INTERNAL_LOGSTDBY"contains errors
    ORA-06508: PL/SQL: called program unit is not found: 'SYS. DBMS_INTERNAL_LOGSTDBY ".
    ORA-06512: at "SYS." "KUPV$ FT", line 991
    ORA-04063: package body 'SYS. DBMS_LOGREP_UTIL"contains errors
    ORA-06508: PL/SQL: called program unit is not found: 'SYS. DBMS_LOGREP_UTIL ".

    I tried to compile objects disabled utlrp.sql running, but it did not help.

    Its my production environment and I doubt that I could have run catalog.sql and catproc.sql that can cause other problems as well.

    Please guide how to pass through this error.

    Kind regards
    Imran
    Its my production environment and I doubt i might have to run catalog.sql and catproc.sql that may cause other problems as well.
    

    Why? You manipulated SYS?
    running catalog.sql and catproc.sql in a normal situation only takes time and nothing else.

    ---------
    Sybrand Bakker
    Senior Oracle DBA

  • APP-FF-33980: internal error. Compiler error formula

    Hi all

    I created a quick formula in HRMS. At the time of the next record error is coming

    APP-FF-33980: internal error.
    A compilation error was detected while trying to generate the FFP410_01011952 package
    Please contact your system administrator.

    Can someone tell me please how to fix this.

    Thanks in advance

    Please check if you use features of the formula. Make sure that the parameters to the function formula match the parameters of the PL/SQL function.

    HTH

  • HzPartySiteV2Pub.createPartySite Compilation error

    Tyring to create a site group via the controller and the following compile error. Help, please.

    I imported all needed packages. I coiped HzPartySiteV2Pub.createPartySite (...), this summary of the standard AM itself


    Error (237,13): method createPartySite (oracle.jdbc.OracleConnection, java.lang.String, oracle.apps.ar.hz.v2api.HzPartySiteV2Pub.PartySiteRec, java.lang.Object, java.lang.String, java.lang.String [], [] Java.Math.BigDecimal [], java.lang.String []) not found in the oracle.apps.ar.hz.v2api.HzPartySiteV2Pub class

    Object localObject7;
    Object localObject6;
    Object localObject3;
    Object localObject4;
    Object localObject5;
    localObject6 = new HzPartySiteV2Pub.PartySiteRec ();
    localObject7 = new BigDecimal [1];
    String [] arrayOfString6 = new String [1];
    String [] arrayOfString7 = new String [1];
    BigDecimal [] arrayOfBigDecimal = new BigDecimal [1];
    String [] arrayOfString8 = new String [1];


    localObject3 = pageContext.getApplicationModule (webBean);
    ((HzPartySiteV2Pub.PartySiteRec) localObject6) = .party_id
    new BigDecimal("2181768");

    Dim str As String = "152133";

    ((HzPartySiteV2Pub.PartySiteRec) localObject6) = .location_id
    new BigDecimal (str);

    ((HzPartySiteV2Pub.PartySiteRec) localObject6) = .created_by_module
    "SALES."
    ((HzPartySiteV2Pub.PartySiteRec) localObject6) = .application_id
    new BigDecimal (280);

    OADBTransaction = localOADBTransaction
    ((OAApplicationModule) localObject3) .getOADBTransaction ();
    OracleConnection = localOracleConnection
    (OracleConnection) localOADBTransaction.getJdbcConnection ();

    HzPartySiteV2Pub.createPartySite (localOracleConnection, "T",
    (HzPartySiteV2Pub.PartySiteRec) localObject6,.
    localObject7, arrayOfString6,
    arrayOfString7, arrayOfBigDecimal,
    arrayOfString8);
    doCommit (pageContext);

    Hello

    Here is the defination for createPartySite API. In the call to this API, you use localObject7 instead of this table to use BigDecimal.

    createPartySite(OracleConnection paramOracleConnection, String paramString, PartySiteRec paramPartySiteRec, BigDecimal[] paramArrayOfBigDecimal1, String[] paramArrayOfString1, String[] paramArrayOfString2, BigDecimal[] paramArrayOfBigDecimal2, String[] paramArrayOfString3)
    

    I hope that helps!

    Thank you
    AJ

  • help compiling error

    package com.wiley.as3bible.printing {}
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.printing.PrintJob;

    SerializableAttribute public class extends Sprite {} print

    private var _printableContent:Sprite;
    private var _textField:TextField;
    private var _loader:URLLoader;

    public void Printing() {}

    Load the text from a text file
    _loader = new URLLoader();
    _loader.load (new URLRequest ("http://www.rightactionscript.com/samplefiles/lorem_ipsum.txt"));
    _loader.addEventListener (Event.COMPLETE, completeHandler);
    Create a multiline text field that scales.
    _textField = new TextField();
    _textField.width = 400;
    _textField.multiline = true;
    _textField.WordWrap = true;
    _textField.AutoSize = TextFieldAutoSize.LEFT;

    Create a sprite for the text field,
    and add the text field.
    _printableContent = new Sprite();
    addChild (_printableContent);
    _printableContent.addChild (_textField);
    }

    When the text loads add it to the text box and then print the text
    private void completeHandler(event:Event):void {}
    _textField.text = _loader.data;

    var printJob:PrintJob = new PrintJob();
    If (printJob.start ()) {}
    printJob.addPage (_printableContent);
    PrintJob.send();
    }
    }
    }
    }

    the compile error is:

    1046: type was not found or is not a constant of compilation: PrintJob.

    1180: call to a method maybe not defined PrintJob.

    can someone explain this to me?

    the .as file you posted above must be registered with the name of the printing industry and should be on your root inside the folder structure

    com Wiley.as3bible.printing

    CGH "c:\test\com\wiley\as3bible\printing\Printing.as."

    and here it is, your fla file:

    'c:\test\myPrinting.fla '.

    BTW... your .as file must always have exactly the same name that you type in the "public class xxxx extends Sprite.

  • Always get compile errors in scott.emp

    Hi Experts,
    I get compilation errors when I compile a package body:
    CREATE OR REPLACE PACKAGE TABLE_EXAMPLE AS
    TYPE TNAME IS RECORD(PARAMETER EMP%ROWTYPE,VALUE EMP%ROWTYPE);
    TYPE TABLET IS TABLE OF TNAME;
    TYPE EMP_TABLE IS TABLE OF EMP%ROWTYPE;
    PROCEDURE P1(ARG IN TABLE_EXAMPLE.TABLET);
    END;
    CREATE TABLE TAB_PAR
      (PARAMETER  VARCHAR2(100 ),
      PA_VALUE   VARCHAR2(100)
    );
    create or replace package body table_example as
    PROCEDURE P1(ARG IN TABLE_EXAMPLE.TABLET) as
    l_emp_tbl emp_table:=emp_table() ;
    cursor c is select * from emp;
    
    err_msg varchar2(1000);
    err_code number;
    
    
    begin
    
    
    
    
    for m in 1..arg.count loop
    
    
    insert into tab_par(parameter,pa_value) values (arg(m).parameter,arg(m).value);
    
    end loop;
    
    exception
    when others then 
    err_msg:=sqlerrm;
    err_code:=sqlcode;
    dbms_output.put_line(sqlerrm);
    end;
     
    end  table_example;
    
    Warning: Package Body created with compilation errors.
    
    LINE/COL ERROR
    -------- ---------------------------------------
    20/49    PLS-00382: expression is of wrong type
    20/66    PLS-00382: expression is of wrong type
    How to solve this?
    Thank you.

    Hello
    Why do you use

    TABLE_EXAMPLE.tablet
    

    In the world
    Just change it to TABLET and it should compile correctly.
    This is what I did and it works fine

    CREATE OR REPLACE PACKAGE TABLE_EXAMPLE2 AS
    TYPE TNAME IS RECORD(P_PARAMETER varchar2(100),P_VALUE varchar2(100));
    TYPE TABLET IS TABLE OF TNAME;
    PROCEDURE P1(ARG IN TABLET);
    END;
    
    create or replace package body table_example2 AS
    
    PROCEDURE P1(ARG IN TABLET) as
    begin
    for m in 1..arg.last loop
    
    insert into tab_par(parameter,pa_value) values (arg(m).p_parameter,arg(m).p_value);
    
    end loop;
    
    end;
    
    end  table_example2;
          
    

    See you soon!
    Bobin

  • get compilation errors during migration of weblogic7.0 to 9.2

    I get compilation errors for my request during the migration of weblogic7.0 to weblogic9.2. These errors are specific to the weblogic.servlet.FileServlet, weblogic.servlet.WebAppServletContext, and weblogic. Security-related packages.
    In the code of the application itself is called Fileservlet classes. WebAppServletContext calls the getWar() method.
    I found these classes and methods are not api weblogic9.2 and weblogic7.0 api as well.

    But it is having compiled without error in weblogic7.0 and it's errors in weblogic9.2.

    Can anyone suggest sort of like any changes of the configuration necessary for it to fix these errors of compilation.

    This information can be provided by the support the Oracle customer... Because the missing methods belongs to 'Internal API to WebLogic' and no official docs are available from outside the world of oracle because of the internal API.

    Thank you
    Jay SenSharma

  • problem when class from Java Import-compilation error

    Hi all
    I made a java class that has methods to return the height and width of the screen.
    --------------------------------------------------------------------------------------------------
    Tarek package;
    to import java.awt.Dimension;
    import java.awt.Toolkit;

    public class screen
    {
    Dimension dim.
    public Screen()
    {
    Dim = Toolkit.getDefaultToolkit () .getScreenSize ();
    }
    public double getWidth()
    {
    Double w = dim.getWidth ();
    Return w;
    }
    public double getHeight()
    {
    Double h = dim.getHeight ();
    return h;
    }
    }
    -------------------------------------------------------------
    I made the 'screen.jar' jar file and make it ready to be used in the form builder
    I opened the form builder and make import java class (program > import java class > choose the class anc click import)
    The class now imported correctly and the PL/SQL package body is:
    -------------------------------------------------------------
    PACKAGE screen / * tarek. Screen * / IS

    --
    -DO NOT EDIT THIS FILE - it is machine generated!
    --


    Constructor for signature (V)
    New FUNCTION RETURN ORA_JAVA. JOBJECT;

    -Method: getHeight () D
    FUNCTION getHeight)
    obj ORA_JAVA. JOBJECT RETURN NUMBER);

    -Method: getWidth () D
    FUNCTION getWidth)
    obj ORA_JAVA. JOBJECT RETURN NUMBER);

    END;
    ---------------------------------------------------------------------
    Now, I did a button on the form and I WRITE THIS CODE TO CALL THE CATEGORY on when_button_pressed
    ----------------------------------
    DECLARE
    vScreen_Class ORA_JAVA. JOBJECT;
    BEGIN
    vScreen_Class: = SCREEN. NEW;
    END;
    ---------------------------------------
    My problem is that I compile error
    error 306 AT LINE 5, COLUMN 25
    a wrong number or types of argument in the call to the 'NEW '.

    I don't know what the reason for this compilation error?
    Is this because the method in java return "data type double' in return 'datatype number' oracle
    Help, please

    Published by: [email protected] on December 28, 2009 10:24

    The SCREEN is a reserved word (this is a constant), then try renaming your package/pl at JScreen, then it will work.

Maybe you are looking for

  • streaks

    Hello, I have an officejet pro 8600 and the streaks of scan all colors when I try to scan a jpg. It doesn't happen when I print in pdf. Ive done the diagnosis of the print cartridge and it made no difference. Thank you

  • get the structure of the event inside the while loop to wait for event occurs before the execution

    Hello I have a small problem, when I raise an event using a value change button, which works very well.  The problem is that the VI does not wait for me raise an event and instead runs the same event again, even if I have not pressed the button to st

  • error 0xc19a0035 "ink system failure".

    Hello I have a photosmart C7280 and I get an 'ink system failure' error code error message 0xc19a0035. I tried the solution suggested by the HP support but the problem is still there.

  • XP startup problems

    When I boot XP, I get a message saying that I have no disc in drive "a". tTo get rid of the box, I insert a disk in the drive and hit continue to get rid of the box. Any suggestions? Startup opens also 2 Windows Notepad (desktop.ini). Where can I get

  • How can I disable the touchpad on my laptop Pavilion dv4155cl?

    I have a Pavilion laptop dv4155cl and HATE the touchpad, mainly because when you type on the keyboard, the keypad is just under my Palm of the right hand, and it hinders so try to type as the guard cushion see my Palm by tapping the touchpad, and mes