ORA-06550 assign the value to the parameter

Hi trying to assign the date quarter to a variable and get this error message, how can I assign a value to this parameter to PL/SQL:

declare

Neighborhood varchar (2);

Start

Select to_char (sysdate, 'YYYY-Q') in double shifts;

dbms_output.put_line (Quarter);

end;

[Error] Execution (05:42): ORA-06550: line 2, column 42:

PLS-00201: identifier 'vQUARTER' must be declared.

ORA-06550: line 2, column 50:

PL/SQL: ORA-00904: invalid identifier

ORA-06550: line 2, column 3:

PL/SQL: SQL statement ignored

ORA-06550: line 3, column 26:

PLS-00201: identifier 'vQUARTER' must be declared.

ORA-06550: line 3, column 5:

PL/SQL: Statement ignored

your error message refers to vQUARTER, which is not listed in your code example.

In addition, quarter is 2 characters such as defined in your code, but you ask to 6 characters in there, for example, 2016-1

Tags: Database

Similar Questions

  • conditionally to assign a value to a parameter

    I use this code to conditionally to assign a value to a parameter p_data_type:

    <? If: H_ACCOUNT_HIER_DESC = 'IS '? > < param name = 'p_data_type' select = '' number' ' xdofo:ctx = 'start' / > <? end if? >
    <? If: H_ACCOUNT_HIER_DESC = "BY"? > < param name = 'p_data_type' select = '' text' ' xdofo:ctx = 'start' / > <? end if? >

    However, I get the following error.

    Caused by: oracle.xdo.parser.v2.XMLParseException: duplicate definition of variable 'p_data_type '.

    Once I get this job, I want to use it as follows:

    <? sorting: current-group () / ACCOUNT_SEQ; ' ascending '; type_donnees = "{$p_data_type}"? >

    Does anyone have any suggestions on how I could do this?

    Thank you
    TAM

    You can't do that, follow below

    
      
    
    

    And you can view it as $p_data_type

  • ORA-02097 when the value parameter REMOTE_LISTENER

    We have a node 3 11.2 on Redhat Linux 2.5 CARS. We have set the grid infrastructure and includes 3 identical in grid_home with listener.ora headphones as
    LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))            # line added by Agent
    LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))                # line added by Agent
    
    LISTENER_CCHPRD =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = cchORdb1-vip)(PORT = 1521))
            (ADDRESS = (PROTOCOL = TCP)(HOST = cchORdb2-vip)(PORT = 1521))
            (ADDRESS = (PROTOCOL = TCP)(HOST = cchORdb3-vip)(PORT = 1521))
            (ADDRESS = (PROTOCOL = TCP)(HOST = cchORdb1)(PORT = 1521))
            (ADDRESS = (PROTOCOL = TCP)(HOST = cchORdb2)(PORT = 1521))
            (ADDRESS = (PROTOCOL = TCP)(HOST = cchORdb3)(PORT = 1521))
            (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
          )
        )
      )
    
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=OFF                # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON          # line added by Agent
    3 listeners on 3 nodes all have similar status:
    Listener Parameter File   /u01/app/grid/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/cchORdb3/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.2.0.52)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.2.0.152)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
      Instance "+ASM2", status READY, has 1 handler(s) for this service...
    Service "cchprd" has 3 instance(s).
      Instance "cchprd1", status READY, has 2 handler(s) for this service...
      Instance "cchprd2", status READY, has 3 handler(s) for this service...
      Instance "cchprd3", status READY, has 2 handler(s) for this service...
    Service "cchprdXDB" has 3 instance(s).
      Instance "cchprd1", status READY, has 1 handler(s) for this service...
      Instance "cchprd2", status READY, has 1 handler(s) for this service...
      Instance "cchprd3", status READY, has 1 handler(s) for this service...
    The command completed successfully
    According to the doc Furom and Oracle in http://www.oracle.com/technology/products/database/clustering/pdf/scan.pdf using, we need to define the parameter REMOTE_LISTENER = SCAN: PORT. To find the name SCAN
    [oracle@cchORdb1 ~]$ srvctl config scan
    SCAN name: cchORdb-rac, Network: 1/10.2.0.0/255.255.255.0/eth0
    SCAN VIP name: scan1, IP: /cchORdb/10.2.0.250
    [oracle@cchORdb1 ~]$ srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
    Now set the instance parameter 2
    SQL> select instance_name from  v$instance;
    
    INSTANCE_NAME
    ----------------
    cchprd2
    
    SQL> alter system set remote_listener ='cchORdb-rac' scope=both;
    alter system set remote_listener ='cchORdb-rac' scope=both
    *
    ERROR at line 1:
    ORA-32008: error while processing parameter update at instance cchprd3
    ORA-02097: parameter cannot be modified because specified value is invalid
    ORA-00119: invalid specification for system parameter REMOTE_LISTENER
    ORA-00132: syntax error or unresolved network name 'cchORdb-rac'
    ORA-32008: error while processing parameter update at instance cchprd1
    ORA-02097: parameter cannot be modified because specified value is invalid
    ORA-00119: invalid specification for system parameter REMOTE_LISTENER
    ORA-00132: syntax error or unresolved network name 'cchORdb-rac'
    Sorry for the long post, but here are the questions:
    (1) why 'alter system set remote_listener = "cchORdb-cars' scope = both' does not work?
    (2) I suspect that the listener.ora can isn't very good. I have found no documentation on how to configure listener.ora in Oracle RAC 11.2. He said that he is not yet documented. Can someone share with me your listener.ora files and the status of the listener, lsnrctl status output.

    Thank you.

    try to define the port number

    example of

    ALTER system set remote_listener ='cchORdb - rac: 1521' scope = both;

  • ORA-06550: PLS-00394: wrong number of values in the list INTO a mesh FETCH

    Dear friends,
    I ask you a suggestion:

    The following code inserts a table errors (errori_work), the IDS of the records repeat (in the work of the table), but gives me this error:
    ORA-06550: PLS-00394: wrong number of values in the list of a FETCH statement INTO.

    The work of the table has the 78 columns: the problem of the fields used in the slider flew against the 78% ROWTYPE fields?
    I could use a record declared as the cursor (rec_tabwork cu_tabwork % ROWTYPE;), but in the MANUAL I need a field (ID_WORK) is not present in the cursor.

    declare
    CURSOR cu_tabwork IS
    SELECT CD_STRUTTURA, CD_SUB_STRUTTURA, NR_PRATICA, likelihood
    Work
    CD_STRUTTURA, CD_SUB_STRUTTURA, NR_PRATICA, applications GROUP
    HAVING COUNT (rowid) > 1
    UNION ALL
    SELECT CD_STRUTTURA, CD_SUB_STRUTTURA, NR_PRATICA, likelihood
    Work
    CD_STRUTTURA, CD_SUB_STRUTTURA, NR_PRATICA, applications GROUP
    After HAVING COUNT (rowid) > 2.
    rec_tabwork work % ROWTYPE;
    BEGIN
    Open cu_tabwork;
    loop
    extract the cu_tabwork in rec_tabwork;
    If FOUND then % cu_tabwork
    dbms_output.put_line (rec_tabwork. (ASL); -test
    INSERT INTO errori_work
    (cd_errore, note, ID_WORK)
    )
    VALUES ("ACC", "Record ripetuto nella table work", rec_tabwork.ID_WORK)
    );
    end if;
    EXIT WHEN cu_tabwork % NOTFOUND;
    end loop;
    close cu_tabwork;
    end;

    Can you help me?
    Thank you
    Leo

    Hello

    I loaded your data and ran the query. It's coz the NR_RICETTA contains a null value, so your State A.NR_RICETTA = B.NR_RICETTA will fail when it checks for NULL = NULL. Here is your output from the query

    PRAZY@orcl> select count(ID_AMBS) FROM WORK A
      2  WHERE A.ROWID > ANY (SELECT B.ROWID FROM WORK B
      3  WHERE A.CD_PRESIDIO        =B.CD_PRESIDIO
      4  AND A.GGMM_CONTATTO        =B.GGMM_CONTATTO
      5  AND A.NR_RICETTA   =B.NR_RICETTA
      6  AND A.CD_CONT_PRESCR       =B.CD_CONT_PRESCR
      7  AND A.NR_PROG_INT  =B.NR_PROG_INT
      8  AND A.DESTINAZIONE =B.DESTINAZIONE)
      9  /
    
    COUNT(ID_AMBS)
    --------------
                48
    
    Elapsed: 00:00:00.00
    

    Therefore, I have included NVL to A.NR_RICETTA, which will produce true when it finds null checking 0 = 0 and you will get your result. and this is what you are looking for

    PRAZY@orcl> select count(ID_AMBS) FROM WORK A
      2  WHERE A.ROWID > ANY (SELECT B.ROWID FROM WORK B
      3  WHERE A.CD_PRESIDIO        =B.CD_PRESIDIO
      4  AND A.GGMM_CONTATTO        =B.GGMM_CONTATTO
      5  AND NVL(A.NR_RICETTA,0)    =NVL(B.NR_RICETTA,0)
      6  AND A.CD_CONT_PRESCR       =B.CD_CONT_PRESCR
      7  AND A.NR_PROG_INT  =B.NR_PROG_INT
      8  AND A.DESTINAZIONE =B.DESTINAZIONE)
      9  /
    
    COUNT(ID_AMBS)
    --------------
                61
    
    Elapsed: 00:00:00.01
    

    If you want to insert the duplicate ID in a Table of errors, do an insert with the following select statement.

    INSERT INTO errori_work(cd_errore, note, ID_AMBS)
    SELECT 'CAC', 'Record ripetuto nella tabella Work',ID_AMBS FROM WORK A
    WHERE A.ROWID > ANY (SELECT B.ROWID FROM WORK B
    WHERE A.CD_PRESIDIO     =B.CD_PRESIDIO
    AND A.GGMM_CONTATTO     =B.GGMM_CONTATTO
    AND NVL(A.NR_RICETTA,0)     =NVL(B.NR_RICETTA,0)
    AND A.CD_CONT_PRESCR     =B.CD_CONT_PRESCR
    AND A.NR_PROG_INT     =B.NR_PROG_INT
    AND A.DESTINAZIONE     =B.DESTINAZIONE);
    

    Hope that solves your problem.

    See you soon!

  • Data mining - error on the insertion of the TREE_TERM_MINPCT_MODE value in the parameter array

    Hello

    In Data mining when I tried to insert some values into the parameter array. I get the error by trying to introduce TREE_TERM_MINPCT_MODE in the table.

    The model who was on trial for create was decision tree.

    BEGIN

    INSERT INTO DT_CA_SETTINGS_TEST (SETTING_NAME, SETTING_VALUE) VALUES

    (dbms_data_mining. TREE_TERM_MINPCT_MODE, to_char (1));

    END;

    Error report:

    ORA-06550: line 3, column 22:

    PLS-00302: component 'TREE_TERM_MINPCT_MODE' must be declared.

    ORA-06550: line 3, column 22:

    PL/SQL: ORA-00984: column not allowed here

    ORA-06550: line 2, column 4:

    PL/SQL: SQL statement ignored

    06550 00000 - "line %s, column % s:\n%s".

    * Cause: Usually a PL/SQL compilation error.

    * Action:

    Thank you
    Srikanth.

    Hello

    BEGIN

    INSERT INTO DT_CA_SETTINGS_TEST (SETTING_NAME, SETTING_VALUE) VALUES

    (dbms_data_mining. TREE_TERM_MINPCT_NŒUD,to_char (1));

    END;

    This isn't 'Mode' his 'NŒUD '.

    Run now.

    See you soon...

  • Value of the parameter after throwing a custom exception

    I have a procedure that has a type as a parameter to record input/output. I just get a recording member, read a description depending on whether the value of an array and assign this description to another Member of the record. I use this description where I call the procedure.

    The problem is; When I up a custom in this procedure, the value attribute that exception is lost so I can't use it. How can I solve this problem?

    Example:

    CREATE OR REPLACE PACKAGE IN THE PCKG_TEST
    REC (RECORD TYPE IS
    A TANK,
    B VARCHAR2 (24).
    C NUMBER);

    WITH SOME EXCEPTIONS;

    (MANIPULATION) PROCEDURE
    r IN OUT REC
    );

    END PCKG_TEST;

    CREATE OR REPLACE PACKAGE BODY PCKG_TEST AS
    (MANIPULATION) PROCEDURE
    r IN OUT REC
    ) AS
    BEGIN

    r.A : = « Y » ; -< assignment is lost when the exception is thrown.

    IF RA = 'Y' THEN
    RAISE THE EXC;
    END IF;

    END;

    END PCKG_TEST;

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

    DECLARE
    R PCKG_TEST. REC;
    BEGIN

    BEGIN
    R.A : = « A » ;
    PCKG_TEST. MANIP (R);
    EXCEPTION
    WHEN PCKG_TEST. EXC THEN
    DBMS_OUTPUT. PUT_LINE (' 2 A :'||) R.A); -< Here is 'A' no 'Y '.
    LIFT;
    WHEN OTHERS GO BACK THEN;
    END;

    EXCEPTION
    WHEN PCKG_TEST. EXC THEN
    DBMS_OUTPUT. PUT_LINE (' 3 A :'||) R.A);
    LIFT;
    WHILE OTHERS THEN
    RETURN;
    END;

    user11701280 wrote:
    The problem is; When I up a custom in this procedure, the value attribute that exception is lost so I can't use it. How can I solve this problem?

    The problem is because, by default, oracle goes in most of the values by copying them, so when an exception occurs the last part of the procedural process that copy of back again once does not.

    To specify in the case otherwise you can use the NOCOPY statement within your parameters, which will lead to any change in the procedure to have a direct effect on the parameter passed in with the parent...

    SQL> ed
    Wrote file afiedt.buf
    
      1  CREATE OR REPLACE PACKAGE PCKG_TEST AS
      2    TYPE REC IS RECORD (
      3      A CHAR,
      4      B VARCHAR2(24),
      5      C NUMBER);
      6    EXC EXCEPTION;
      7    PROCEDURE MANIP(r IN OUT NOCOPY REC);
      8* END PCKG_TEST;
    SQL> /
    
    Package created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  CREATE OR REPLACE PACKAGE BODY PCKG_TEST AS
      2    PROCEDURE MANIP(r IN OUT NOCOPY REC) AS
      3    BEGIN
      4      r.A := 'Y'; -- /
    
    Package body created.
    
    SQL> DECLARE
      2    R PCKG_TEST.REC;
      3  BEGIN
      4    BEGIN
      5      R.A := 'A';
      6      PCKG_TEST.MANIP(R);
      7    EXCEPTION
      8      WHEN PCKG_TEST.EXC THEN
      9        DBMS_OUTPUT.PUT_LINE('2A:'||R.A); --< Here A is 'A' not 'Y'
     10        RAISE;
     11      WHEN OTHERS THEN RETURN;
     12    END;
     13  EXCEPTION
     14    WHEN PCKG_TEST.EXC THEN
     15      DBMS_OUTPUT.PUT_LINE('3A:'||R.A);
     16      RAISE;
     17    WHEN OTHERS THEN
     18      RETURN;
     19  END;
     20  /
    2A:Y
    3A:Y
    DECLARE
    *
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at line 16
    SQL>
    
  • How to assign the value to the application-level element

    Hello

    I'm learning to APEX.  I use version 4.2.6.

    My question is, I set a text field called 'FINANCIAL_YEAR' in the login page.  I wanted to know how to assign this value to a text element of Application level (on page sent), so that I can get this value through at my request.

    Thank you

    -Anand

    anand_gp wrote:

    Yes, I created a 'text area' under 'HTML' in the 'Home' page  Who accepts the exercise of a table through LOV.  I intend to assign this value to a global variable so that this variable can be read in any of the application to filter the result set from different tables (not yet built the rest of the application).  To do this, I was intending to use "Shared components"-> "Elements of Application".  I'm still not quite sure how it works.

    Start by reading the documentation on elements of application.

    Go to the shared components > Application parts and create your G_FINANCIAL_YEAR item. Value Session State Protection Restricted - can not be set the browser so that the value is not editable by the user, falsification of URLS or scripts.

    On the home page, if there is not already a button to submit the value of the fiscal year, add one in the HTML area, with the Action as a submit Pageclick. Otherwise, you can do without the button and using submit Page in Page Action when the changed value select the parameter in the list so he can undergo.

    Then, in the section of the Page processing, create a calculation:

    Point Type: Application-level element

    Calculate Item: Application: G_FINANCIAL_YEAR

    Point calculation: After submit

    Type of calculation: Value of the element

    Calculation:

    Run the application, select a value in the list of the fiscal year and submit the page. Review of current session state in the viewer of session state by clicking on the link of Session in the toolbar developer. Select the Elements of Application in the view list, and then click set. The element of your application and its current value must be visible. You can now reference value throughout your application by using the appropriate syntax.

    You should also consider if a default value (for example the current year) using a calculation Application from the point of calculation on the new Instance and coordinate the application point and part of the homepage using point application as the Source of value or an expression with Source page element, the value always, replacement of value that exists in the session state.

  • ORA-06550 pls-00103 encountered the end symbol of file

    HII

    the procedure below compiles well.

    CREATE OR REPLACE PROCEDURE BG. FIND_DUP (EMP_CODE NUMBER, MAIN_EMP_CODE NUMBER) IS

    CURSOR C1 IS

    SELECT THE TABLE TABLE_NAME FROM USER_TAB_COLUMNS

    WHERE COLUMN_NAME = 'EMP_CODE. '

    AND UPPER (TABLE_NAME) <>UPPER ('PA_EMP_MERGE');

    V_T_NAME VARCHAR2 (2000);

    RESULT VARCHAR2 (1000);

    BEGIN

    OPEN C1;

    LOOP

    FETCH C1 IN V_T_NAME;

    WHEN EXIT C1% NOTFOUND;

    RESULT: = 'UPDATE'. V_T_NAME | ' SET EMP_CODE =' | EMP_CODE | "WHERE EMP_CODE =' | MAIN_EMP_CODE | « ; » ;

    RUN THE IMMEDIATE RESULT.

    END LOOP;

    CLOSE C1;

    END;

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

    but when I try to run it gives me

    ORA-06550: line 1, column 26:

    PLS-00103: encountered the symbol "end-of-file" during the expected in the following way:

    ; < an ID > < a between double quote delimited identifiers of >

    The symbol ";" was replaced by "end-of-file" continue.

    -Im using oracle 10g

    Hello

    Do not put a semicolon at the end of the dynamic SQL statements.

    Instead of:

    RESULT: =... | MAIN_EMP_CODE | ';';

    Try:

    RESULT: =... | MAIN_EMP_CODE;

    You need a semicolon (outside the single quotes) to put an end to the assignment statement, but you don't need a semicolon (inside the single quotes) to put an end to the dynamic UPDATE statement.

    Whenever you make dynamic SQL code, ask someone (often yourself) "Is this really necessary?"

    Dynamic SQL is usually an accessory to the wrong table design.  Do you really need to have several tables that each must be updated in the same way, at the same time?  Are you create new tables so frequently that cannot keep track of their static code?

  • The assignment of value to the block multi-record in Oracle's 10 g

    Hi all

    I'm new to form of Oracle 10 g.

    I have a block of several recording that does not rely on the database. I need to assign the value to this block multi-record dynamically the ref cursor.

    I'm trying to set the value as below, but its does not work. Please help me on this.

    loop
         fetch cur Into screenval_rec ;
          exit when cur%notfound ;
          first_record;
       
      :BLOCK1.COL1:= screenval_rec.value1;
        :BLOCK1.COL2 := screenval_rec.value2;
        :BLOCK1.COL3:= screenval_rec.valu3;
      
         next_record;
    End loop;
    
    

    Kind regards

    REDA

    Hi Craig,.

    Thank you for your information.

    But I found the exact cause of this "Invalid cursor error' (ORA-01001) in Oracle forms. It is because of the unique enclosed in quotes the select statement of the REF cursor. I found in the paragraphs below Oracle.

    Note 170881.1 - ORA-1001 calling a stored procedure that contains a REF Cursor Oracle Forms

    Once I deleted the quotes, it's working properly now.

    Thanks again for your help.

    Kind regards

    REDA

  • ORA-06550 for a process in the Page that discusses

    Hello
    I'm trying to create a process to update some data, but I know very well the syntax of the APEX for the procedures.
    I write the code in a process of 'Treatment of the Page' section.
    The code is:

    DECLARE w_TPS NUMBER (9.7);
    DECLARE w_TVQ NUMBER (9.7);
    DECLARE w_val_tot_lignes NUMBER (15.2);
    Start
    -Lire % GST
    SELECT NUM_PARAMETRE FROM w_TPS
    OF TBL_PARAMETRES
    WHERE COD_PARAMETRE = 'GST ';
    -Lire % QST
    SELECT NUM_PARAMETRE FROM w_TVQ
    OF TBL_PARAMETRES
    WHERE COD_PARAMETRE = 'QST;
    -Calculate total invoice
    SELECT SUM(NUM_HEURES * VAL_TAUX) FROM w_val_tot_lignes
    OF TBL_FACTURES_DETAIL
    WHERE ID_FACTURE_MASTER =: p225_id_facture_master;

    UPDATE tbl_factures_master
    SET VAL_FACTURE_NET = w_val_tot_lignes,
    POU_TPS = w_TPS,
    VAL_TPS = w_val_tot_lignes * w_TPS;
    POU_TVQ = w_TVQ,
    VAL_TVQ = w_val_tot_lignes * w_TPS;
    VAL_FACTURE_TOTAL = (w_val_tot_lignes * w_TPS) + (w_val_tot_lignes * w_TVQ) + w_val_tot_lignes
    WHERE id_facture_master =: p225_id_facture_master;

    end;

    The error:
    ORA-06550: line 3, column 1: PLS-00103: encountered the symbol "DECLARE" when expecting one of the following values: start type of the subtype of the function pragma < an ID > < a double quote delimited identifier > removal of current cursor exists before the symbol 'start' is substituted for 'SAID' continue. ORA-06550: line 4, column 1: PLS-00103: encountered the symbol "DECLARE" when expecting one of the following values: function < an ID > pragma procedure subtype type < to start a double-quotes

    I ran across this myself but I forgot the real reason.

    idea 1: hidden character
    solution: retype everything by hand.
    Make sure you do a 'ctrl-a' to 'select all' before clicking on 'delete' so that it picks up this hidden character.

    idea 2: bad SQL
    If I remember correctly, there was a typing error in my table name or column

    idea 2 b: bad SQL
    I don't see the name of schema for tables in one of your SELECT or UPDATE instructions.
    Try to add them.

    Run each of the SELECT/UPDATE with SQL Developer instructions to see if you notice a bug in the SQL code.

  • How to assign a value of the element from page to main page in the column element when Cre

    I have a form build on table T1. The T1 has a primary key defined (T1PK) and four other columns (C1 - C4). I have a form in this table. This form accepts the values of C1 to C4 and displayis an extra point, is not based on columns of T1 - P1_DUMMY. The form for T1PK element has the value "hidden and protected.
    When creating the form, I wanted that the value of the primary key (T1PK) will be obtained through existing trigger. I want to use the value stored in the page called "P1_DUMMY" for P1_T1PK.

    No matter what I do, I always get this error when I hit the button 'CREATE' on the page of the form:

    ORA-01400: cannot insert NULL into ('DEV'. "" T1 ". ("' T1PK")

    The Create button is a condition not to show if the the P1_T1PK page element is NULL. I created page rendering process, the process of transformation of page like this bock of PL/SQL:

    : P1_T1PK: =: P1_DUMMY

    But I still get ORA-01400. The form has the P1_DUMMY as display only, not not to store the State, so I can see that the P1_DUMMY element has the value I want (2).

    How to assign the value stored in P1_DUMMY in P1_T1PK when I click on the button CREATE on this form?

    Thank you for your time.

    Daniel

    Hello
    The belief question is the way in which the calculation is being defined. You are not using the &. rating (dot ampersand) in PL/SQL and SQL.

    Try this.

    1 define the calculation on P1_T1PK of Type calculation of value of the element
    2. on the next page to load textarea, enter P1_DUMMY. No. colon or &
    3. give appropriate conditions

    Kind regards

  • As I corrected the error?  ORA-06550-PLS-00357

    * {color: #0000ff} good morning *.

    * I'm trying to generate a file extension. txt,
    extracting information from a table named test, and I generated the
    Suite error ORA-06550: - and - PLS-00357: {color} *.


    CREATE TABLE ENSAYO
    (
    NUMBER OF CODE,
    DATE DATE default sysdate,
    NUMBER VARCHAR2 (40)
    )
    ;



    Insert of ensayo values(1,'12-12-2009','rey');
    Insert of ensayo values(2,'10-02-2009','luna');
    Insert of ensayo values(3,'16-03-2009','paola');
    Insert of ensayo values(4,'16-03-2009','Natalia');



    Set serverout
    DECLARE
    utl_file.file_type v1.
    v2 varchar2 (100);
    Start
    v1: = utl_file.fopen ('PUBLIC_ACCESS', 'prueb': to_char (sysdate, 'yyyymmdd') |'. txt', 'w');

    loop

    UTL_FILE.put_line (v1, Ensayo.Codigo);

    end loop;
    UTL_FILE.fclose (v1);
    exception
    while others then
    dbms_output.put_line (SQLERRM);
    end;
    /
    * {color: #ff0000} *.
    UTL_FILE.put_line (v1, Ensayo.Codigo);
    ***
    * {color} {color: #ff0000} ERROR en l & Yacute; NEA 7: *.
    ORA-06550: l & Yacute; NEA 7, column 32: *.
    PLS-00357: the referencia has the tabla, vista o sequence "ENSAYO. CÓDIGO ' no EST & szlig;. *
    permitida en este contexto
    ORA-06550: l & Yacute; NEA 7, column 4:
    * PL/SQL: statement ignored {color} *.





    * {color: #0000ff} that I correct the error? *

    * Thank you for your cooperation... *.
    * good day... *.
    * {color} *.


    * {color: #0000ff} *.
    * {color} *.


    * {color: #0000ff} Reynel Martinez Salazar. {color} *.

    You must use FOR cursor LOOP:

    DECLARE
    v1 utl_file.file_type;
    v2 varchar2 (100);
    begin
    v1:= utl_file.fopen('PUBLIC_ACCESS','prueb'||to_char(sysdate,'yyyymmdd')||'.txt','w');
    for rec in (select codigo from ensayo) loop
    utl_file.put_line(v1,rec.codigo);
    end loop;
    utl_file.fclose(v1);
    exception
    when others then
    dbms_output.put_line(sqlerrm);
    end;
    /
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

  • How to get the parameter values of a step type custom when I create file and adding a type of step seq

    I use lv 8.5 and teststand 4.0.

    I did a step type custom and recorded at the MyTypes.ini in pallets of type.

    I specified a default module by opening the properties of the custom step of *.ini type window, then I put some values of the parameters.

    T1) when I open teststand and I add the custom step type manaully in seq file, the labview module parameter values are represented.

    But, if to use file (create and add support prototype stage), the labview module parameter values has the default value.

    Using joint file, how to get the setting custom step type values I put in *.ini?

    Q2) each type of step are automatically by name through the use of LoadTypePaletteFilesEx. When I open teststand and I add the custom step type manaully in seq file, the module is loaded automatically. Inside the attachment, I use a prototype of charge and a fixed path where the module labview is to load the labview module.

    Can I load module automatically without using a prototype of charge or how can I get a dynamic path of type step?

    I solved Q1 for myself by using the mapping tab of the parameter within the configuration to the default module window.

    Everyone knows Q2?

    Thank you.

  • How to assign the value "ID or content dDocName" (property of the University Complutense of MADRID) Webcenter capture.

    Hello

    Could you please help me for the script for extracting Webcenter UCMS property in Webcenter Capture. I also have a requirement where I need to assign a value to the UCM property ' dDocName or content ID "of the capture of webcenter.

    Someone please help me with above scenarios.

    Hello

    Thanks for the reply. My requirement is, when check-in file to the AAU, it generates values to the property "docId" for the file that is unique. I need the value of the docId during validation webcenter capture processor. I solved this problem.

    I created a filter in the AAU for archiving profile. This filter is triggered whenever the Service factor of the AAU invoke. In this filter, I can get the value of "docID".

    Thank you.

  • PLS-00306: wrong number or types of arguments in the call to 'XXC_AMOUNT' ORA-06550

    Hi all

    CREATE OR replace PROCEDURE Xxc_amount (v_item_id IN NUMBER,

                                             v_amount  OUT NUMBER,

                                             v_size    OUT NUMBER)

    IS

      v_size   NUMBER := NULL;

    v_amount NOMBRE;

    START

        BEGIN

    CHOOSE conversion_rate

            INTO   v_size

    FROM mtl_uom_class_conversions

            WHERE  inventory_item_id = v_item_id -- 2289;

            v_amount := Nvl (Trunc (v_size), 0);

    -RETURN (cp_cartons);

        EXCEPTION

            WHEN OTHERS THEN

              v_size := 0;

              dbms_output . Put_line ()' Error getting Item Id:'| V_ITEM_ID );

        END ;

    dbms_output. Put_line ('Qty-->' || v_amount );

    dbms_output. Put_line ('Qty1-->'|| v_size );

    END ;

    DECLARE

        amount NUMBER;

        v_size NUMBER;

    START

        Xxc_amount (2289, amount, v_size);

    dbms_output. Put_line (amount || '--' || v_size );

    END ;

    ORA-06550: line 5, column 5:

    PLS-00306: wrong number or types of arguments in the call to 'XXC_AMOUNT '.

    ORA-06550: line 5, column 5:

    PL/SQL: Statement ignored

    Thank you

    Post edited by: 994122 changed the name of the procedure to Xxc_amount Xxc_amount1

    Simply remove the declarations of the v_size and v_amount and it should work.

    The following text compiles and works for me when I call:

    CREATE OR replace PROCEDURE Xxc_amount (v_item_id IN NUMBER,
                                            v_amount  OUT NUMBER,
                                            v_size    OUT NUMBER)
    IS
    BEGIN
        BEGIN
            SELECT conversion_rate
            INTO  v_size
            FROM  mtl_uom_class_conversions
            WHERE  inventory_item_id = v_item_id; -- 2289;
            v_amount := Nvl (Trunc (v_size), 0);
        --RETURN (cp_cartons);
        EXCEPTION
            WHEN OTHERS THEN
              v_size := 0;
              dbms_output.Put_line ('Error in Getting for Item Id :'|| v_item_id);
        END;
        dbms_output.Put_line ('Qty-->' || v_amount);
        dbms_output.Put_line ('Qty1-->'|| v_size);
    END;
    
    DECLARE
        amount NUMBER;
        v_size NUMBER;
    BEGIN
        Xxc_amount (2289, amount, v_size);
        dbms_output.Put_line (amount || '--' || v_size);
    END;
    

Maybe you are looking for