Concat (string (ora:getInstanceId ()), xp20:current-dateTime()) - error)

Hello

one.
In my xsl transformation mapping, I have the following code:

..
+ < / db:ATTRIBUTE12 > +.
+ < db:ATTRIBUTE13 > +.
+ < xsl: value - of select = "concat (string (ora:getInstanceId ()), xp20:current - dateTime ())'/ > +.
+ < / db:ATTRIBUTE13 > +.
+ < db:ATTRIBUTE14 > +.
...

"xp20:current-dateTime()" = works very well (I tested separately
'string (ora:getInstanceId())' = seems to be failing

Please let know us if the above expression is incorrect.

b.
Because ora: getInstanceId() seems to be broken inside the xsl mapping transformation, I thought that maybe I can attribute value ":getInstanceId() ora" for a simple variable (string). And then in my xsl, I will do the following:

< xsl: value - of select ='concat("hel","lo",bpws:getVariableData(instanceId),xp20:current-dateTime()) "/ >)
(or)
< xsl: value - of select ='concat("hel","lo",bpws:getVariableData("instanceId"),xp20:current-dateTime()) "/ >)

but, I get the error indicating that an xpath expression error.


Grateful if someone could tell where I'm wrong.

Thank you
Shakur

Sorry I'm not your post too carefully. Looks like you do this in a transformation. The ora: getInstance() and scheduling:getVariableData() are not supported in a transformation. You can do it in a legal successor however by the following code.

Concat ('hel', 'lo', scheduling:getVariableData('instanceId'),xp20:current-dateTime())

The instanceId must be enclosed in single quotes, and is a variable defined previously with the value ora:getInstance ().

see you soon
James

Tags: Fusion Middleware

Similar Questions

  • Reg: xp20:current-dateTime() gives error

    Hello

    When I use the xp20:current-dateTime() function in XSLT 1.0 within the OSB (alternative activity), it works fine when used alone, but following error when used with dn:lookupvalue ction (custom xpath function)

    BEA-382513: OSB Action replace failure 'body ': variable update
    java.lang.NoSuchMethodException: for the extension function, could not find method
    oracle.tip.pc.services.functions.Xpath20.current - dateTime ([ExpressionContext]),.
    Checked static and instance methods.

    xmlns:XP20 = "http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20".

    Please let me know any other datetime function that shows current time date in the following format

    2012 05-23 T 06: + 00:00 00:11

    or please let me knoiw the solution to the above error


    <>














    ?>

    xmlns:bpws = "http://schemas.xmlsoap.org/ws/2003/03/business-process/".
    xmlns:XP20 = "http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20".
    xmlns:MHDR = "http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction".
    xmlns:BPEL = "http://docs.oasis-open.org/wsbpel/2.0/process/executable".
    xmlns:oraext = "http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc".
    xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
    xmlns:DVM = "http://www.sLabs.com/soa-utilities/osb/soa.utilities.dvm.LookupTable".
    xmlns:HWF = "http://xmlns.oracle.com/bpel/workflow/xpath".
    xmlns: xsl = "http://www.w3.org/1999/XSL/Transform".
    xmlns: med = "http://schemas.oracle.com/mediator/xpath."
    xmlns:IDs = "http://xmlns.oracle.com/bpel/services/IdentityService/xpath".
    xmlns:BPM = "http://xmlns.oracle.com/bpmn20/extensions".
    xmlns:XDK = "http://schemas.oracle.com/bpel/extension/xpath/function/xdk".
    xmlns:xref = "http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions".
    container = "http://www.w3.org/2001/XMLSchema".
    xmlns:BPMN = "http://schemas.oracle.com/bpm/xpath".
    xmlns:ORA = "http://schemas.oracle.com/xpath/extension".
    xmlns:Socket = "http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator".
    xmlns:SOC = "http://vodafone.com.mt/Siebel_Order_Creation".
    xmlns:LDAP = "http://schemas.oracle.com/xpath/extension/ldap".
    xmlns:con = "http://www.bea.com/wli/sb/stages/transform/config".
    xmlns:fn = "www.w3.org/2004/07/xpath-functions/".
    exclude-result-prefixes = "xsi xsl xsd soc APO xp20 mhdr bpel oraext dvm hwf ID med bpm xdk Xref bpmn ora socket ldap con fn" >






















  • error ORA-4068:-l' current state of the package is invalidated

    Hai friends,

    Please see this link

    Problem we faced, it is ' error ora-4068:-l' current state of the package is disabled "in the application.initiallly of customer, we migrated to oracle 9i and 10g 10.2.0.4.0

    We have discussed and obtained the solution as the timestamp of the objects may be different. (we expect the access rights of the table sys.obj$) pls see the link

    Re: oracle error-4068

    But now we are informed senior as below

    (1) error ora-4068 will come only when recompile us the view. is this true?

    (2) 6136074 bug is fixed in 10.2.0.4.0. is it?

    Gurus of give your valuable suggestions

    S

    Packages tend to fail because of their 'package '. A package has a 'State' when it contains the package variable and constant level etc. and the package is called. On the first calling package, the 'State' is created in memory to hold the values of these variables, etc. If an object including the package depends on for example a table is changed somehow example deleted and recreated due to data dependencies, the package then takes a State not VALID. When you do then appealed to the package, Oracle examines the status and see that it is not valid, then determines that the package has a "State". Because something changed the package depended on, the State is taken as being obsolete and is ignored, which causes the error "State package has been abandoned" message.

    If a package has no variables of level package etc. i.e. the 'State' and then, taking the same example above, the whole takes an INVALID state, but when you make then a call to the package, Oracle considers as invalid, but knows that there is no 'State' attached to it and is therefore able to recompile the package automatically and then continue execution without causing error messages. The only exception here is if the thing that the package was dependent on a change of such kind that the package may not compile, in which case you will get an invalid error package type.

    And if you want to know how we prevent Jetty package States...

    Move all variables and constants in a stand-alone package specification and to refer to those of your original package. So when the status of your original packing is invlidated for some reason, it has no State package and can be recompiled automatically, however the packaging containing the vars/const is not cancelled because it has no dependencies, so the State that is in memory for this package will remain and may continue to be used.

    As for package-level sliders, you will need to make these premises to the procedures/functions using them as you won't be able of sliders reference in all of packages like that (not sure on the use of the REF CURSOR but... exists for me to study!)

    This first example shows the State being disabled by adding a new column on the table and causing to give a 'Package State scrapped' error...

    SQL> set serveroutput on
    SQL>
    SQL> create table dependonme (x number)
      2  / 
    
    Table created.
    
    SQL>
    SQL> insert into dependonme values (5)
      2  / 
    
    1 row created.
    
    SQL>
    SQL> create or replace package mypkg is
      2    procedure myproc;
      3  end mypkg;
      4  / 
    
    Package created.
    
    SQL>
    SQL> create or replace package body mypkg is
      2    v_statevar number := 5; -- this means my package has a state
      3
      4    procedure myproc is
      5      myval number;
      6    begin
      7      select x
      8      into myval
      9      from dependonme;
     10
     11      myval := myval * v_statevar;
     12      DBMS_OUTPUT.PUT_LINE('My Result is: '||myval);
     13    end;
     14  end mypkg;
     15  / 
    
    Package body created.
    
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  / 
    
    OBJECT_NAME
    --------------------------------------------------------------------------------------------------
    OBJECT_TYPE         STATUS
    ------------------- -------
    MYPKG
    PACKAGE             VALID
    
    MYPKG
    PACKAGE BODY        VALID
    
    SQL>
    SQL>
    SQL> alter table dependonme add (y number)
      2  / 
    
    Table altered.
    
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  / 
    
    OBJECT_NAME
    --------------------------------------------------------------------------------------------------
    OBJECT_TYPE         STATUS
    ------------------- -------
    MYPKG
    PACKAGE             VALID
    
    MYPKG
    PACKAGE BODY        INVALID
    
    SQL>
    SQL> exec mypkg.myproc
    BEGIN mypkg.myproc; END;
    
    *
    ERROR at line 1:
    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package body "SCOTT.MYPKG" has been invalidated
    ORA-06508: PL/SQL: could not find program unit being called: "SCOTT.MYPKG"
    ORA-06512: at line 1
    
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  / 
    
    OBJECT_NAME
    --------------------------------------------------------------------------------------------------
    OBJECT_TYPE         STATUS
    ------------------- -------
    MYPKG
    PACKAGE             VALID
    
    MYPKG
    PACKAGE BODY        INVALID
    
    SQL>
    SQL> exec mypkg.myproc
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  / 
    
    OBJECT_NAME
    --------------------------------------------------------------------------------------------------
    OBJECT_TYPE         STATUS
    ------------------- -------
    MYPKG
    PACKAGE             VALID
    
    MYPKG
    PACKAGE BODY        VALID
    

    And the following example shows how to get the package in their own specifications of package variables, allows the package to automatically recompile when it is called even if it has become invalid by the action to add a column to the table.

    SQL> drop table dependonme
      2  / 
    
    Table dropped.
    
    SQL>
    SQL> drop package mypkg
      2  / 
    
    Package dropped.
    
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL> create table dependonme (x number)
      2  / 
    
    Table created.
    
    SQL>
    SQL> insert into dependonme values (5)
      2  / 
    
    1 row created.
    
    SQL>
    SQL> create or replace package mypkg is
      2    procedure myproc;
      3  end mypkg;
      4  / 
    
    Package created.
    
    SQL>
    SQL> create or replace package mypkg_state is
      2    v_statevar number := 5; -- package state in seperate package spec
      3  end mypkg_state;
      4  / 
    
    Package created.
    
    SQL>
    SQL> create or replace package body mypkg is
      2    -- this package has no state area
      3
      4    procedure myproc is
      5      myval number;
      6    begin
      7      select x
      8      into myval
      9      from dependonme;
     10
     11      myval := myval * mypkg_state.v_statevar;  -- note: references the mypkg_state package
     12      DBMS_OUTPUT.PUT_LINE('My Result is: '||myval);
     13    end;
     14  end mypkg;
     15  / 
    
    Package body created.
    
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  / 
    
    OBJECT_NAME
    --------------------------------------------------------------------------------------------------
    OBJECT_TYPE         STATUS
    ------------------- -------
    MYPKG
    PACKAGE             VALID
    
    MYPKG
    PACKAGE BODY        VALID
    
    SQL>
    SQL> alter table dependonme add (y number)
      2  / 
    
    Table altered.
    
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  / 
    
    OBJECT_NAME
    --------------------------------------------------------------------------------------------------
    OBJECT_TYPE         STATUS
    ------------------- -------
    MYPKG
    PACKAGE             VALID
    
    MYPKG
    PACKAGE BODY        INVALID
    
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    
    PL/SQL procedure successfully completed.
    
  • OSB - current-DateTime

    Currently, I am trying to establish a current-DateTime and have found that XSLT 2.0 is not supported.

    I have had recourse to the use of Java, but it has a problem. Here's my XSLT:


    < xsl: value - of select = "format: java (java: java.text.SimpleDateFormat.new ('yyyy-MM - ddTHH:mm:ss')", java:java.util.Date.new()) "/ >)"

    "It breaks, because the ' t ' pointing both starting breaks the SimpleDateFormat. Trying to put apostrophes or & apos; the XSLT transformation T break round.

    Someone else finds a way to be current-DateTime in the OSB?

    Trying to put apostrophes or "all about the T break the XSLT

    You can put ' in the clause select xslt by fleeing it properly
    For 't', try this
    Concat (& e quot; & quot;,
    ' T ',
    (& quot;' & quot;)

    remove the space between & and quot

    Published by: atheek1 on December 15, 2010 07:36

  • Lexical parameter error: ORA-06502: PL/SQL: digital error or value

    Hello

    I am facing a problem with my lexical parameter. I have a requirement where I have to pass a string to the db column. I think that I am facing problem with quotes. Please find the sample code below:

    : lp_trans_type: = "" AND (RSV.transaction_type <>"F" OR RSV.transaction_type is NULL);"

    The report compiles suceccfully but when run from window SRS that generates an error

    REP-1401: "afterpform": PL/SQL unrecoverable error occurred.
    ORA-06502: PL/SQL: digital error or value

    Please help me how to set up the string within a string. Or please suggest a possible solution.

    Thanks in advace.

    Kind regards
    Prakash

    Check the data type and length of lp_trans_type.

    This is not the error, but will not work your query:

    RSV.transaction_type "F"

    You forgot the =.

    Published by: InoL on July 20, 2010 12:57

  • ORA-12560: TNS:protocol adapter error (tried all the possible solutions)

    Hello

    H1. My details below:-

    Platform: windows 2003 Server
    The BD name: ORCL, B1prod, emrep

    My variable env as below:

    ORACLE_SID = orcl
    ORACLE_HOME = C:\OracleHomes\db10g
    SQLPATH C:\OracleHomes\db10g\dbs =
    NLS_LANG = AMERICAN_AMERICA. WE8MSWIN1252
    TNS & Listner file located: C:\OracleHomes\db10g\NETWORK\ADMIN

    The TNS file details
    # tnsnames.ora Network Configuration File: C:\OracleHomes\db10g\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    
    
    EMREP =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = server01.itsolution1.local)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = emrep.itsolution1.local)
        )
      )
    
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = server01.itsolution1.local)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.world)
        )
      )
    
    B1PROD =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = server01.itsolution1.local)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = b1prod.world)
        )
      )
    
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
        )
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
        )
      )
    The listner file details:

    # listener.ora Network Configuration File: C:\OracleHomes\db10g\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\OracleHomes\db10g)
          (PROGRAM = extproc)
        )
      )
    
    LOGGING_LISTENER = OFF
    
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
          )
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = server01.itsolution1.local)(PORT = 1521))
          )
        )
      )
    
    TRACE_LEVEL_LISTENER = OFF
    On CMD tried-
     set Oracle_sid=orcl 
    H1. Problem: -.

    Im getting the error when connecting to sql plus below:
     ORA-12560: TNS:protocol adapter error
    I checked my listener service that is currently running.
    But when I'm typing: lsnrctl cmd invites through the error as below:
    C:\Documents and Settings\Administrator>lsnrctl
    'lsnrctl' is not recognized as an internal or external command,
    operable program or batch file. 
    I checked oracle_home/bin-lsnrctl exist. I can run lsnrctl.exe from there, but not cmd.

    FYI: I installed the Oracle Grid Control database

    Can anyone advice why I can't connect to sql plus?

    Please let me know if you need more clarification.

    Control Panel of your win Server > adm tools > services >OracleOraDb10g_home1TNSListener

    Is set to manual/automatic >
    He started or not >

    If this is not the case, start it.

  • ORA-06502: PL/SQL: digital error or value: hex to raw conversion error

    Hello gurus,

    I'm trying to encrypt the dbms_obfuscation_toolkit method

    CREATE or REPLACE function Cryption2 (long input_string) gross yield
    IS
    -input_string VARCHAR2 (16): = "tigertigertigert";
    raw message (32767).
    raw_input RAW (128);
    long key_string (20000): = "scottsco";
    raw_key RAW (128);
    encrypted_raw RAW (2048);
    long encrypted_string (20000);
    decrypted_raw RAW (2048);
    long decrypted_string (20000);
    error_in_input_buffer_length EXCEPTION;
    PRAGMA EXCEPTION_INIT(error_in_input_buffer_length,-28232);
    INPUT_BUFFER_LENGTH_ERR_MSG VARCHAR2 (100): =.
    ' * NOT A MULTIPLE OF 8 BYTES IN THE INPUT BUFFER AND *';
    BEGIN
    message: = UTL_RAW. CAST_TO_RAW (Convert (input_string, 'AL32UTF8', 'US7ASCII'));
    message: = UTL_RAW. CAST_TO_RAW (Convert (key_string, 'AL32UTF8', 'US7ASCII'));
    dbms_output.put_line (' > = BEGIN TEST =');
    dbms_output.put_line (' > enter string: ' |)
    input_string);
    START < ignore this, typo in the Oracle documentation
    dbms_obfuscation_toolkit. Decrypt)
    input_string = > input_string,.
    key_string = > key_string,
    encrypted_string = > encrypted_string);
    dbms_output.put_line (' > Encrypted string: ' |)
    encrypted_string);
    -Add as shown DESDecrypt, gross change in chaine_cle
    -END IF;
    Return encrypted_string;
    EXCEPTION
    WHEN error_in_input_buffer_length THEN
    dbms_output.put_line (' > ' |) INPUT_BUFFER_LENGTH_ERR_MSG);
    END;
    /

    But I get the following error

    When I try:-select cryption2 ('abcdefgh') of double;

    ORA-06502: PL/SQL: digital error or value: hex to raw conversion error
    ORA-06512: at the "', line 31" "

    Thanks and greetings
    Pratik Lacoste
    DBA Oracle Jr

    Published by: Pratik.L on December 13, 2009 21:58

    Hey Pratik,

    You seem to be under pressure. The code that you pasted last a lot of stupid mistakes.
    In both the features that you use to encrypt or decrypt that you must follow the data type, the procedure is overloaded.

    Source: http://download.oracle.com/docs/cd/B13789_01/appdev.101/b10802/d_obtool.htm

    The previous post for this was varchar2 usinf encrpt and decrypt.

    The code below, which is your code, I'm taking the value as varchar2 and return varchar2 but internally
    that you posted, I'm going in raw data to her encrypt and decrypt procedures.

    SQL> CREATE OR REPLACE Function try_Cryptit (input long) return clob
      2   IS
      3
      4  key_string RAW(2000);
      5  crypt_dycp_raw RAW(2000);
      6  crypt_encp_raw RAW(2000);
      7  crypt_str clob;
      8  key_raw RAW(2000) := UTL_RAW.CAST_TO_RAW('frankzap');
      9  input_raw RAW(2000):=UTL_RAW.CAST_TO_RAW(input);
     10   message varchar2(2000);
     11
     12  BEGIN
     13   dbms_obfuscation_toolkit.DESEncrypt(
     14   input => input_raw,
     15   KEY => key_raw,
     16   encrypted_data => crypt_encp_raw);
     17
     18   -- Decrypt the string --
     19
     20   dbms_obfuscation_toolkit.DESDecrypt(
     21   input => crypt_encp_raw,
     22   KEY => key_raw,
     23   decrypted_data => crypt_dycp_raw);
     24
     25   crypt_str := utl_raw.cast_to_varchar2(input_raw);
     26   return crypt_str;
     27   END;
     28
     29  /
    
    Function created.
    
    SQL> select try_Cryptit ('abcdefgh') from dual;
    
    TRY_CRYPTIT('ABCDEFGH')
    --------------------------------------------------------------------------
    abcdefgh
    

    Follow be varchar2 or raw for this purpose.

    Twinkle

  • ORA-00947: not enough values error collect in bulk

    Hi guys,.

    I'm trying to COLLECT in a PL/SQL table, but I get ORA-00947: not enough values error message, even if the table has 4 values and select 4 values. Am I missing something?

    I have to add something to this?

    I've included the types of database objects that I created on the database.

    I have commented on the Original code and used the table DOUBLE just to make simple workout.

    /*

    CREATE or REPLACE TYPE Usage_Groups_for_coda_rec as

    object

    (Usage_Group_ID NUMBER (10),)

    Coda_comment VARCHAR2 (45).

    Amount NUMBER,

    Deduction_amount NUMBER);

    CREATE OR REPLACE

    TYPE USAGE_GROUPS_FOR_CODA_TAB AS

    TABLE OF Usage_Groups_for_coda_rec;

    */

    declare

    -CURSOR c_adj_roy_trans

    -EAST

    -SELECT DISTINCT rotr.on_behalf_of_soc_nbr, rotr.right_type

    -OF royalty_transaction rumble

    -WHERE rotr.ps_adjust_royalty_flg = cm_default.get_yes;

    CURSOR c_adj_roy_trans

    IS

    SELECT '052', 'P '.

    DOUBLE;

    t_uge_Grp_for_coda_tab USAGE_GROUPS_FOR_CODA_TAB; -the type of table was created on the database

    Start

    FOR r_adj_roy_trans IN c_adj_roy_trans LOOP

    -SELECT rotr.usage_group_id as Usage_Group_ID,

    -cm_coda_account_default.get_canc_adj_coda_comment | '- CAE' as Coda_comment,

    -SUM (NVL (rotr.gross_amt, 0) + NVL (rotr.reciprocal_deduction_amt, 0)) as an amount

    -SUM (rotr.reciprocal_deduction_amt) as Deduction_amount

    -COLLECT LOOSE t_uge_Grp_for_coda_tab

    -OF royalty_transaction rumble

    -WHERE rotr.ps_adjust_royalty_flg = cm_default.get_yes

    - AND rotr.on_behalf_of_soc_nbr = r_adj_roy_trans.on_behalf_of_soc_nbr

    - AND rotr.right_type = r_adj_roy_trans.right_type

    -Rotr.usage_group_id group;

    SELECT 6874534 as Usage_Group_ID,

    "This is a test - CAE" as Coda_comment.

    100 as an amount

    50 as Deduction_amount

    LOOSE COLLECTION t_uge_Grp_for_coda_tab

    DOUBLE;

    /*

    IF l_uge_Grp_for_coda_tab. COUNT > 0 THEN

    cm002p.std_coda_post_cashing_out_bulk (p_on_behalf_of_society_number = > r_adj_roy_trans.on_behalf_of_soc_nbr,)

    p_right_type = > r_adj_roy_trans.right_type,

    p_Usage_Groups_for_coda_tab = > t_uge_Grp_for_coda_tab,

    p_reverse_posting_direction = > FALSE,

    p_posting_override_direction = > NULL,

    p_cohi_id = > NULL

    );

    END IF;

    */

    END LOOP;

    end;



    Here's what you need to do:


    SELECT Usage_Groups_for_coda_rec(6874534, "It is a test - CAE", 100, 50)

    LOOSE COLLECTION t_uge_Grp_for_coda_tab

    DOUBLE;

    You try bulk collect into a collection of Usage_Groups_for_coda_recs, then you will need to make type compatible using the implicit of the type constructor.

  • While the BLOB conversion of type CLOB error - ORA-06502: PL/SQL: digital error or value

    Passing data from attachment of DB (Blob data Type) after the CLOB data type conversion, giving the error "ORA-06502: PL/SQL: digital error or value" in the PL/SQL package. If the BLOB size 32K > it will give another error works great my procedure.

    For example, I enclose my code here.

    function get_base64 (p_blob_in in blob) return clob is

    CLOB v_clob;

    CLOB v_result;

    whole v_offset;

    v_chunk_size PLS_INTEGER: = 12288;

    v_buffer_varchar varchar2 (32767).

    v_buffer_raw raw (32767).

    Start

    fnd_file.put_line (fnd_file.log, 'here');

    If p_blob_in is null then

    Returns a null value.

    end if;

    DBMS_LOB.CREATETEMPORARY (v_clob, true);

    fnd_file.put_line (fnd_file.log, 'here1');

    v_offset: = 1;

    fnd_file.put_line (fnd_file.log, 'Loop value'-| ceil (DBMS_LOB.) GetLength (p_blob_in) / v_chunk_size));

    because me in 1... ceil (DBMS_LOB. GetLength (p_blob_in) / v_chunk_size) loop

    DBMS_LOB. Read (p_blob_in, v_chunk_size, v_offset, v_buffer_raw);

    v_buffer_raw: = utl_encode.base64_encode (v_buffer_raw);

    v_buffer_varchar: = utl_raw.cast_to_varchar2 (v_buffer_raw);

    DBMS_LOB. WriteAppend (v_clob, length (v_buffer_varchar), v_buffer_varchar);

    v_offset: = v_offset + v_chunk_size;

    end loop;

    fnd_file.put_line (fnd_file.log, 'Out of the loop');

    v_result: = v_clob;

    fnd_file.put_line (fnd_file.log, 'V_result length' - |) DBMS_LOB. GetLength (v_result));

    fnd_file.put_line (fnd_file.log, 'V_result' - | v_result);

    DBMS_LOB.freeTemporary (v_clob);

    Return v_result;

    exception

    while others then

    fnd_file.put_line (fnd_file.log, 'Error based on the encode_base64' - |) SQLERRM);

    Returns a null value.

    end;

    In my main program I call this function as below:

    Main proceedings...

    l_return_clob CLOB.

    Begin

    ....

    l_return_clob: = get_base64 (p_blob_in);

    -In returning it gives error - ORA-06502: PL/SQL: digital error or value

    end;

    Then, please mark the thread ANSWERED.

  • ORA-06502: PL/SQL: digital error or the value in the conversion for a long TIME on the CLOB type

    Hello

    I have an EA of RDBMS Oracle 11.2.0.4.

    I ger the following error when I try to convert a data type LONG to type CLOB data thanks to a PL/SQL procedure:

    declare
    v_prefix varchar2 (20): = null;
    v_text_view_clob clob: = null;
    long v_text_view_long: = null;

    cursor c_v
    is
    Select
    a.view_name as view_name
    Of
    USER_VIEWS one;

    Start
    for r_v in c_v
    loop
    Start
    v_text_view_clob: = null;
    v_text_view_long: = null;

    -Do the SQL code of the view
    Select
    a.Text text
    in
    v_text_view_long
    Of
    USER_VIEWS one
    where
    a.view_name = r_v.view_name;

    v_text_view_clob: = v_text_view_long;

    update of ohibo_views one
    set
    a.view_text = v_text_view_clob
    where
    a.view_name = r_v.view_name;
    exception
    while others then
    dbms_output.put_line ('View =' | r_v.view_name |) "kan niet worden geconverteerd!");
    dbms_output.put_line (substr (sqlerrm, 1, 60));
    end;
    end loop;
    -commit;
    exception
    while others then
    lift;
    end;
    /

    I get the error a specific record:

    View = VER_POLISMUTATIES_VW kan niet worden geconverteerd!

    ORA-06502: PL/SQL: digital error or value

    At looked the origina; Value of type LONG and it is indeed a "long" piece of text.

    However, CLOB has a restriction about 4G * db_block_size and LONG 2 G - 1 according to the documentation.

    I should be able with the method above to convert a LONG in CLOB.

    Anyone had a similar situation?

    Thanks in advance for advice how to solve.

    Kind regards

    PS: my apologies, I didn't know which group to post this discussion: database or PL/SQL.

    Good indeed, a link with the right explanation.

    I didn't know that there was such a function.

    Thank you!

    Kind regards

  • ORA-12560 TNS Protocol adapting Error

    Hello everyone,

    When I connect forms oracle 11g R2 of the oracle 10g xe database this error (ORA-12560 TNS Protocol Adapter Error) occur why?

    Untitled.jpg

    As you use the database to 10G XE. go to \oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN


    Open the file tnsnames.ora and copy the configuration of XE and paste under the last # of your published file.

    then save, and try to connect.

    Hope this helps

    Hamid

    If someone useful or appropriate please mark accordingly.

  • ORA-01722: invalid number calculation error during the treatment.

    My version of the APEX is Application Express 4.2.6.00.03

    I imported apex application 4.0.2 and his object of decision-making support in my apex.

    Its installed successfully.

    But when I try to run this application it show me this error:

    ORA-01722: invalid number calculation error during the treatment.

    Thank you guys for your help.

    I found the solution.

    There was a problem in the authentication scheme.

    I called function as return function_name in 4.0.2

    but in the Apex 4.2.6 to call a function word return is not necessary.

    He was throwing the error caused that Word back.

  • Process apex Pl/SQL error: ORA-06502: PL/SQL: digital error or value: specified incorrect LOB Locator

    Apex 4.2

    I searched through the forums of the research about this error, but I do not understand what to do from here. I am writing a process that sends an e-mail when a value of the claim is made (or on a button click). Procedure is as follows:

    DECLARE
       l_body        clob;
       l_body_html   clob;
       l_subject    varchar2(100);
    
    BEGIN
      
    l_body := empty_clob();
    l_body_html := empty_clob();
    
    
    IF V('REQUEST') in ('SAVE_ME') AND :P32_PARENT_UPDATED_FL IS NOT NULL THEN
       l_subject :=  'Survey Job Request Updated'||utl_tcp.crlf||utl_tcp.crlf;
       l_body := 'Update'||utl_tcp.crlf;
    
       l_body_html := '<html>
          <head>
             <style type = "text/css">
                 /* Can add style attributes later */
             </style>
          </head>
          <body>'||utl_tcp.crlf;
       l_body_html := l_body_html ||'Survey Job Request has been updated.<br /><br />'||utl_tcp.crlf;
       l_body_html := l_body_html ||'Title: '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_TITLE||utl_tcp.crlf;
       l_body_html := l_body_html ||'<br />Request Category : '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_REQUEST_CATEGORY||utl_tcp.crlf;
       l_body_html := l_body_html ||'<br />Update Date: '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_UPDATE_DATE||utl_tcp.crlf;
       l_body_html := l_body_html ||'<br />Updated By: '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_LAST_EDITED_BY_USERID||utl_tcp.crlf;
       l_body_html := l_body_html ||'</body></html>';
    
    
    
    
    
    END IF;
    
    :P32_CANCELLATION_REASON := l_body_html;
    
    apex_mail.send(
       p_to             =>  '[email protected]',
       p_from           =>  '[email protected]',
       p_body           =>  l_body_html,
       p_body_html      =>  l_body_html,
       p_subj           =>  l_subject);
    
    END;
    
    
    
    
    
    
    
    
    
    

    I added two lines to the code (lines 08 and 09) and when I run my program, I now get the error:

    • ORA-21560: 3 argument is null, invalid or out of range

    Without these two lines, I received the error:

    ORA-06502: PL/SQL: digital error or value: specified incorrect LOB Locator

    I'm not quite sure what is wrong or what I can change. There seems to be right, and in fact, it worked before. I have no idea why this error keeps popping up. Any help on that would be great. Thanks in advance.

    Hello

    NewApexCoder wrote:

    Hmmm... good point. I think that apex_mail.send must be called inside the IF block. But in the future, I added several conditional statements, won't I need to include the apex_mail.send function in each IF block? But at the same time, there is the case that if no conditional instructions are met? Tests, when none of the conditions are true (when I had a second IF block in the code), an email would not be defined, which is correct. Could that be causing a problem however. If the IF block is not filled could he always try to send an email about anything or the l_body_html and l_subject fields have in them the garbage that causing ORA error?

    If the call to the procedure of sending (it is a procedure, and not a function) many times is necessary or useful depends on exactly what you're trying to do.

    For example, you can write to Santa for

    • Submit a wish list
    • Change of address
    • Contradiction with your boss, who can you tell Santa you were mean

    or any combination of these grounds.  If you want to send a simple email whenever any of the conditions are met (and not send a when none are met), then you could do something like this:

    DECLARE

    need_to_send BOOLEAN: = FALSE;

    ...

    BEGIN

    ...

    IF wish_list IS NOT NULL

    THEN

    l_body: = l_body | ...

    need_to_send: = TRUE;

    END IF;

    IF old_addresss <> new_address

    THEN

    l_body: = l_body | ...

    need_to_send: = TRUE;

    END IF;

    IF boss_is_a_big_fat_liar

    THEN

    l_body: = l_body | ...

    need_to_send: = TRUE;

    END IF;

    IF need_to_send

    SO - It's the only call to send

    apex_mail. Send...

    In any case, the error message ' ORA-21560: argument 3 sucks...» "is pretty clear: If you have not given a value to everything you're passing as p_body, then you'd better call the procedure.

  • ORA-12560: TNS:protocol adapter error. Virtual MACHINE works on old MBP and Win7 but not on new MBP [mid 2015 retina], speed or network problem?

    We strive to use our VM on the new retina MBP (mid-2015) with MacOS X 10.11 (El Capitan) but we had a problem starting from Oracle. If we first converted our ESX VM but once on the Mac laptop Oracle (v12.1.0.1.0 on WIN2012R2) does not open the database, error;

    ORA-12560: TNS:protocol adapter error

    Does not change us any setting on the virtual machine itself so services work fine. Network has set the IP with host only. Tried with Fusion 7.1 & Fusion 8.0.2 new Mac with nothing doesn't. Also with the different versions of the VM tools. Tried to remove the NIC in Fusion and recreate, don't sucses.

    Funny enough the same virtual machine starts fine on PC (workstation 10.3.0 & Win7), MBP beginning 2011 (Fusion 7 & Mac 10.10) or ESX itself for Oracle opens the database!

    That's why we think in the direction of the new MBP specific? speed or network issue? Ring the bells?


    Help appreciated!

    Bottom line, this is a problem of Oracle who dislikes the MBP on a virtual machine.

    for reference;

    Virtual MACHINE works very well on all platforms, but not on the latest MacBook Pro (retina, 15 inch, mid-2015). So, when you try to use sqlplus you might get the error that there is no such thing as SID. Earphone works very well, but the DB process does not record with earphone or work correctly also. But the process is running and a SID tnsping returns an OK. This isn't a problem of configuration Oracle as the VM and DB works well from the moment where you run the virtual machine on a PC or an old MBP. Either way, Virtualbox has the same problem so not a problem of Fusion.

    I will record a deal with Oracle but I doubt that it is corrected.

  • database from 32 bit to 64 bit on Linux data / ORA-06553: PLS-801: internal error [56319]

    Hello

    I've migrated EBS from 32 bit to 64 bit Linux database. I followed this Metalink note.

    Note - 341880.1 how to convert a database from 32-bit to 64-bit on Linux database?

    After the move, I did the below steps and get the error below... How to solve this problem?

    ===================================================================================

    SQL > startup nomount

    ORACLE instance started.

    Total System Global Area 595591168 bytes

    Bytes of size 2098016 fixed

    415239328 variable size bytes

    163577856 of database buffers bytes

    Redo buffers 14675968 bytes

    SQL > @create_control - file.sql

    Created control file.

    SQL > alter database open resetlogs;

    Database altered.

    SQL > ALTER TABLESPACE TEMP add TEMPFILE ' / d01/prd1/prd1data/tmp1.dbf' SIZE 2000 M REUSE AUTOEXTEND OFF;

    Tablespace altered.

    SQL > @$ORACLE_HOME/olap/admin/olap.sql SYSAUX TEMP

    BEGIN

    *

    ERROR on line 1:

    ORA-06553: PLS-801: internal error [56319]

    DECLARE

    *

    ERROR on line 1:

    ORA-06553: PLS-801: internal error [56319]

    BEGIN

    *

    ERROR on line 1:

    ORA-06553: PLS-801: internal error [56319]

    ===================================================================================

    Thank you.

    Please see the solution in (ORA-06553: PLS-801: internal error [56319], ORA-06544: PL/SQL: internal error, arguments: [56319] [] [], [], [], [], [], [], ORA-00604 when using different bit datafiles that executable Oracle (Doc ID 1436552.1)).

    Thank you

    Hussein

Maybe you are looking for

  • Question about reinstalling software multimedia DVD on a Satellite A100-049

    When I ran the system restore on my laptop Toshiba it put these two but I see no way to reinstall without restoring the entire drive to when I bought it all first. I always have installed WinDVD but took Ulead (I forgot the exact name of the DVD Medi

  • How to turn off the cooling on Satellite U fan?

    Hello Many people who use other laptops, they have all said that they have a BIOS setting so that they can stop or slow down the FAN of the AIR where the WIND comes out of the laptop, because it's so boring bit he Dungeon sounds all the time and it b

  • sticker under my laptop does not support disks or .iso files I have!

    the product key on my laptop is for 'windows vista professional. buuuut I don't have that an installation disc dethrone xp... aaand xp can't do much... at all... currently on my laptop, I have linux... bleh! in any case how can I get my vista! (the l

  • activation/deactivation of cookies

    I'm trying to apply for a job online. everythime I click the button apply, he tells me that cookies are disabled, and I need to enable them and check brower for more details.  I went and enabled all cookies, deleted browing history and cookies. I don

  • Cisco SR520 - no outgoing access

    This is the current configuration of the router. Can someone tell me why my (192.168.x.x) clients cannot access the internet through that router? See the raceBuilding configuration... Current configuration: 10699 bytes!version 12.4no service buttonho