Error: PL / SQL: ORA-00922: missing or invalid option

I'm sorry, I'm new to Oracle and am in a crazy time. I'm having all kinds of problems with the conversion of SQL to Oracle... and get the PL/SQL: ORA-00922: missing or not valid error option with the following function. Any help appreciated.

FUNCTION IEXGADQReceived)
v_BDateTime IN DATE
v_EDateTime IN DATE
v_Queuename IN VARCHAR2
v_Username IN VARCHAR2
)
RETURN int IS
INT v_retval;
BEGIN
SET v_retval: = (select count (distinct iid)
Of agentinteractionsview
WHERE the ibegintime between v_BDateTime and v_EDateTime
and fromqueue = v_Queuename
and fromroutereasonid = 11
and username = v_Username);

RETURN v_retval;
END IEXGADQReceived;

No problem, we've all been there before: D)

FUNCTION IEXGADQReceived (v_BDateTime IN DATE,v_EDateTime IN DATE,v_Queuename IN VARCHAR2,v_Username IN VARCHAR2)RETURN int ISv_retval INT;BEGINselect count(distinct iid) INTO v_retval FROM agentinteractionsviewWHERE ibegintime between v_BDateTime and v_EDateTimeand fromqueue = v_Queuenameand fromroutereasonid = 11and username = v_Username;

RETURN v_retval;END IEXGADQReceived;

Tags: Database

Similar Questions

  • ORA-00922: missing or not valid option?

    Can someone tell me what is the problem with this statement:
    SQL > CREATE TABLE CUSTOMER2
    2 2 (employe_id NUMBER (10),)
    3 3 FIRST NAME VARCHAR2 (40),
    4 4 LASTNAME VARCHAR2 (40),
    5 5 VARCHAR2 (40) OF COMPANYNAME,.
    6 6 PHONE VARCHAR2 (40),
    7 7 E-MAIL VARCHAR2 (40),
    8 8 CITY VARCHAR2 (40),
    9 9 VARCHAR2 (40) STATE.
    10 10 ZIP VARCHAR2 (40)
    11 (11);
    2 (employe_id NUMBER (10),)
    *
    ERROR on line 2:
    ORA-00922: missing or not valid option

    Instead of your code with below

    CREATE TABLE CUSTOMER2
     ( employee_id NUMBER(10),
      FIRSTNAME VARCHAR2(40),
     LASTNAME VARCHAR2(40),
     COMPANYNAME VARCHAR2(40),
     PHONE VARCHAR2(40),
      EMAIL VARCHAR2(40),
      CITY VARCHAR2(40),
      STATE VARCHAR2(40),
      ZIP VARCHAR2(40)
      );
    
  • have come to reinstall CS2, reached the error message "username, organization, number missing or invalid. where should I go from here?

    have come to reinstall CS2, reached the error message "username, organization, number missing or invalid. where should I go from here?

    CS2 (or earlier version) software activation server replacement... NOTE that CS2 will not install on a Mac "modern."

    l http://helpx.adobe.com/x-productkb/Policy-Pricing/Creative-Suite-2-activation-end-Life.htm

    When you install the special version of the PPro2 on a Win7 or Win8 or Win10 computer, you may need to right click on the program icon and select compatibility Windows XP in the popup of option

  • ORA-01937 missing or invalid role name

    Hi there, I had a little problem with a small piece of code am familiar with Oracle database, scripts I have been done by another person for the version 6/7 is currently using version 8i for reasons of compatibley with the server software, I am currently setting up.

    use the script generates the following error message

    Enter the value of old 1: 1: CREATE ROLE & 1._role

    new 1:

    CREATE ROLE GRANT CONNECT to & 1._role; _role CREATE ROLE GRANT CONNECT to & 1._role; _role

    *

    ERROR on line 1:

    ORA-01937: missing or not a valid role name

    Enter the value of old 1: 1: GRANT RESOURCE TO & 1._role

    new 1: GRANT RESOURCE to GRANT permission TO & 1._role; _role

    RESOURCE of GRANT OF GRANT permission to & 1._role; _role

    *

    ERROR on line 1:

    ORA-00911: invalid character

    Enter the value of old 1: 1: GRANT IMP_FULL_DATABASE TO & 1._role

    new 1: GIVE the IMP_FULL_DATABASE TO GRANT CREATE ANY SYNONYM OF & 1._role;  _role

    GRANT IMP_FULL_DATABASE to GRANT CREATE ANY SYNONYM OF & 1._role;  _role

    *

    ERROR on line 1:

    ORA-00911: invalid character

    Enter the value of old 1: 1: GRANT DROP ANY SYNONYM to & 1._role

    new 1: GRANT DROP ALL SYNONYM of _role

    GRANT DELETE ANY SYNONYM OF _role

    *

    ERROR on line 1:

    ORA-00911: invalid character

    Enter the value 1: enter the value of 2: 1 old: CREATE USER, IDENTIFIED BY 1 & 2

    new 1: CREATE a USER IDENTIFIED BY GRANT & 1._role to & 1.

    CREATE the USER IDENTIFIED BY GRANT & 1._role to & 1.

    *

    ERROR on line 1:

    ORA-01935: lack of user name or role

    Here is the code used

    USE of REM: @ous < username > < PASSWORD >

    REM create a < username > identified by < PASSWORD >

    CREATE a ROLE & 1._role;

    GRANT CONNECT to & 1._role;

    GRANT RESOURCE to & 1._role;

    GRANT permission to & 1._role;

    GRANT IMP_FULL_DATABASE to & 1._role;

    GRANT CREATE ANY SYNONYM OF & 1._role;

    GRANT DROP ANY SYNONYM OF & 1._role;

    CREATE a USER & 1 IDENTIFIED BY & 2

    QUOTA UNLIMITED ON gam_lgtab

    QUOTA UNLIMITED ON gam_bintab

    QUOTA UNLIMITED ON gam_tab

    QUOTA UNLIMITED ON gam_ind

    TEMPORARY TABLESPACE temp;

    GRANT & 1._role to & 1.

    can someone help me to solve this thanks, that a working example would be due to my lack of knowledge with this database system.

    Thank you very much

    Hello

    How do you call this script?

    According to the commentary at the beginning of the script, this is:

    USE of REM: @ous

    you're supposed to give 2 arguments after the name of the script (which, apparently, is UO).  The first argument is a user name; so it should follow the rules for user names (for example it must start with a letter and only contain letters, numbers, or a couple of other characters, such as the features of underscore allowed).  The second argument is the password.  So if you want to create a user called FOO and give him the password to BAR987, then we could say

    @ous FOO BAR987

    SQL * more ' SQL > "command prompt, or to the equivalent point in another front-end tools.»

    This assumes that the ous.sql script is the default location.  If you don't know what it is, you can always give the name of full path, like this:

    @d:\my_directory\sql_stuff\creation_scripts\ous FOO BAR987

    The script creates a different role for each user, it creates.  This isn't a very common practice.  Out of context, I can't say for sure if it's a very bad idea, but we can't if abstain I was wondering if based on such an unusual with these old tools is best for your needs.

  • Error on blue screen and missing or invalid or component file causing Windows crash.

    Original title: missing or invalid files or components.

    Missing or not valid file or item causing windows/internet to freeze and crash. A BSOD (blue screen) shows a second and the computer restarts back on the desktop with no other problems. This happens only when I open/close a video too fast or I use some (L100 - 30 Hercules) aircraft in FS9. All other devices work fine. I sent an error report to Microsoft tonight when this happened. It conrcerned 2 files in C:\ Docs & Setting\All Users\Application data\Microsoft\Search\Data\Applications\Projects\System Index\System... (couldn't do the rest, but we had to do with the XML extension..) I am using Windows XP Pro with Service pack 3 and all updates.

    Is there a simple solution for this? I don't want to reinstall XP if I don't have, as my drive my being corrupt. I'm not sure. I also used some older programs that I have used for years that run fine on XP but will not work in Windows 7 even with Virtual XP Mode installed.

    Hello Joel S

    I had already tried this and it was not a hardware failure. I ran chkdsk and the player revealed a good with no bad sectors. I also use Belarc COMPUTER management systems that manages the health of smart HDs (HDs most have this 'Intelligent' ability). The problem was some legacy software that I thought that I had taken when I did a removal of the program. He left 5 pieces of something that is called «online...» "I found it using Malwarebytes, and he was buried deep in the registry. The program was "Cliffs of Dover" a stream online to run the program. Once you have downloaded the game was the only way to use it online, which took 20-30 minutes to load and once loaded would break your system if you have tried to play. Shame, it's a beautiful CFS, but way to buggy.

    In any case, removed from the basket with Malwarebytes and every thing works fine. No more accidents.

    Derek

  • Runtime Error 339 PROGRESSBAR4. OCX missing or invalid file

    Running Windows Vista Home Premium.When, trying to open a program that ran previously OK, I get the following message:

    Runtime Error 339:

    Component "PROGRESSBAR4. OCX' or one of its dependencies is not correctly registered: a file is missing or invalid.

    Hi Tony,.

    Welcome to the Microsoft Community and thanks for posting the question.

    According to the description, you receive a runtime error.

    What program you are trying to open?

    This problem may occur if the requested file is not registered.

    a: Click on Start > programs > Accessories.
    b: Right-click on command prompt and choose run as administrator.
    c: Enter the following command in the command prompt window and press ENTER.

    regsvr32 c:\windows\system32\PROGRESSBAR4. OCX

    Answer to us if you are having problems with opening or any other issue of Windows programs, and we would be happy to help you.

    Good day!

    Hope this information helps.

  • Error: PL/SQL ORA - 00932 data type incompatible when using the value of LONG type

    Hello:

    I use a PL/SQL job script where I use a value of type LONG in a cursor. When I run it, I get:

    Incompatible data type of PL/SQL ORA-00932: expected NUMBER got LONG
    set serveroutput ON SIZE 1000000
    set heading off                
    set feedback off                
    set trimspool off               
    set echo off 
    set term off                   
    set pagesize 0         
    
    SPOOL &so_outfile;
    
    
    
    
    DECLARE
      v_data_file          varchar2(30);
     --   v_sch_code            varchar2(10);
     --   v_instance_name       varchar2(10);
        ws_path            payroll.pybutfl.pybutfl_utl_file_path%TYPE; 
        v_data_line           VARCHAR2 (2000)                              := NULL;
        fhandle_o             UTL_FILE.file_type;
        v_line_count          NUMBER                                       := 0;
        v_selected_count      NUMBER                                       := 0;
        v_error_count         NUMBER                                       := 0;
        v_written_count       NUMBER                                       := 0;
        v_error_text          VARCHAR2 (50)       := ' AMACONF_ERR: Unable to write the line. ';
        v_errm                VARCHAR2 (255);
        v_sqlerrm             VARCHAR2 (255);
        v_payment_type        VARCHAR2(10);
    
    
    CURSOR C1 IS
    select RTRIM
          ( 
            AMRCONF_PIDM_ERR            ||'|'||
            AMRCONF_IDEN_CODE_ERR       ||'|'||
            AMRCONF_ENTRY_DATE_ERR      ||'|'||
            AMRCONF_CONFID_IND_ERR      ||'|'||
           *AMRCONF_COMMENT_ERR        ||'|'||*
            AMRSUBJ_SUBJ_CODE_ERR       ||'|'||
            ERROR_CODE                  ||'|'||
            ERROR_CODE_TEXT                 ) data_line
            from WSUALUMNI.AMRCONF_ERR;
    
    
    
    BEGIN
    
    
    DBMS_OUTPUT.put_line ('Program Generating AMACOMT Mass Update Error File ');
    IF UTL_FILE.is_open (fhandle_o)
        THEN   
       UTL_FILE.fclose (fhandle_o);
    END IF;
    
    /* Name The File Here */
    v_data_file := ('Amaconf_error.txt');
    
    
    
    SELECT RTRIM (pybutfl_utl_file_path)
          INTO ws_path
          FROM payroll.pybutfl;
          
          fhandle_o := UTL_FILE.fopen (ws_path, v_data_file, 'w');
          DBMS_OUTPUT.put_line ('UTLFILE file for this run is: ' || ws_path||'/'||v_data_file);
          v_written_count := 0;   
    
    FOR c1_rec IN C1 LOOP
          BEGIN
            v_selected_count := v_selected_count + 1;
            v_data_line := rtrim(c1_rec.data_line);
            UTL_FILE.put_line (fhandle_o, v_data_line);
            v_written_count := v_written_count + 1;
        EXCEPTION
         WHEN OTHERS
          THEN
           DBMS_OUTPUT.put_line (v_error_text);
           v_error_count := v_error_count + 1;
        END;
    END LOOP;
    
         DBMS_OUTPUT.put_line ('Number of Records Selected: ' || v_selected_count);
         DBMS_OUTPUT.put_line ('Number of Records Written: ' || v_written_count);
    
          IF UTL_FILE.is_open (fhandle_o)
          THEN
             UTL_FILE.fclose (fhandle_o);
          END IF;
    
    END;
    /
    
    SPOOL OFF;
    If I comment on the ' AMRCONF_COMMENT_ERR |'| ' | ' line, then the script works fine. The table has been created as:
    Create Table WSUALUMNI.AMRCONF_ERR
    (
        AMRCONF_PIDM_ERR             NUMBER (8)    NOT NULL,
        AMRCONF_IDEN_CODE_ERR        VARCHAR2(5)   NOT NULL,
        AMRCONF_ENTRY_DATE_ERR       DATE          NOT NULL,
        AMRCONF_CONFID_IND_ERR       VARCHAR2(1),
        AMRCONF_COMMENT_ERR          LONG,          
        AMRSUBJ_SUBJ_CODE_ERR        VARCHAR2(5)   NOT NULL,
        ERROR_CODE                   VARCHAR2(12)  NOT NULL,
        ERROR_CODE_TEXT              VARCHAR2(50)  NOT NULL
    ); 
    I don't understand what the problem here is in the script.

    Hello
    Feew suggestions
    (1) LONG is an obsolete type so if possible start working on this column change
    (2) CLOB will be your favorite type of data on long.
    (3) you cannot use RTRIM on long.

    Here's a very quick example

    drop table h
    create table h (x long,y varchar2(100))
    select rtrim(x) from h
    select rtrim(y) from h
    

    Solution:
    [http://www.oracle.com/technology/oramag/code/tips2003/052503.html]

    need to better implement the clob data type and

    drop table h
    create table h (x clob,y varchar2(100))
    select  dbms_lob.substr( x, 4000, 1 ) from h
    select rtrim(y) from h
    

    See you soon!
    Bobin

  • error missing or invalid option

    What is the problem with this query?

    create table member ('primary key in number (10) of the member_id);

    Nothing is wrong

    query is just

    until your problem?

  • ORA-02421: missing or not valid schema authorization identifier

    Hello Evryone,

    I'm having a problem with the session of the user schema. I'm not able to change the schema that it even exists.
    SQL>ALTER session SET CURRENT_SCHEMA='QA'
    Error report:
    SQL Error: ORA-02421: missing or invalid schema authorization identifier
    02421. 00000 -  "missing or invalid schema authorization identifier"
    *Cause:    the schema name is missing or is incorrect in an authorization
               clause of a create schema statement.
    *Action:   If the name is present, it must be the same as the current
               schema.
    
    
    SQL>select username, account_status from DBA_USERS where username='QA';
    
    USERNAME                       ACCOUNT_STATUS                   
    ------------------------------ -------------------------------- 
    QA                                        OPEN                             
    
    SQL>SHOW user
    
    USER is SYSTEM
    
    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for HPUX: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    Try it without the single quotes.

    Best regards

    mseberg

    Test on mine:

    Release 11.2.0.1.0 - 64 bit production

    I get the same error with quotes

    ERROR on line 1:
    ORA-02421: missing or not valid schema authorization identifier

    Published by: mseberg on August 15, 2011 14:50

    So, this and then check

    ALTER SESSION SET CURRENT_SCHEMA=QA
    

    You can check it using this:

    select sys_context('USERENV','SESSION_SCHEMA') from dual;
    

    Published by: mseberg on August 15, 2011 15:08

  • ORA-00922

    I am trying to execute the following two statements and get the error Ora-00922 with missing or invalid option. I seem to not be able to understand why it does not work.
    I'm under 10.2.0.1.0 Oracle
    The star of the error is under the sysadm.

    create or replace sysadm.systables in select * from sys.systables;
    create or replace sysadm.syscolumns in select * from sys.syscolumns;

    Published by: user11181268 on October 20, 2009 12:56

    If these are the tables that you want to create, then

    create table .... as select
    

    If you then view (s)

    create or replace view ... as select
    

    Published by: dombrooks on October 20, 2009 21:59

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

    Sorry, it's probably easy and I forgot something simple, but it's driving me crazy :-)
    VARIABLE g_fk_deduction      VARCHAR2(30)
    VARIABLE g_fk_empno          NUMBER
    VARIABLE g_before_or_after_flag     CHAR(1)
    VARIABLE g_deduction_amount     NUMBER
    
    BEGIN
      :g_fk_deduction           := '401K';
      :g_fk_empno               := 7369;
      :g_before_or_after_flag     := 'B';
      :g_deduction_amount          := 150.00;
    END;
    /
    BEGIN
      INSERT INTO emp_deductions      (fk_deduction, fk_empno, before_or_after_flag, deduction_amount)
       VALUES               (g_fk_deduction, g_fk_empno, g_before_or_after_flag, g_deduction_amount);
      COMMIT;
    END;
    /
    Error: PL/SQL: ORA-00984: column not allowed here on g_deduction_amount
    in the value clause.
    Any help would be appreciated.

    Table is below:
    CREATE TABLE emp_deductions     (
          fk_deduction            VARCHAR2(30),
          fk_empno                  NUMBER(4),
          before_or_after_flag         CHAR(1),
          deduction_amount            NUMBER(6,2));
    Published by: LostNoob on August 23, 2012 19:06

    rp0428 wrote:
    >
    : g_fk_deduction: = "401k".
    : g_fk_empno: = 7369;
    : g_before_or_after_flag: = 'B ';.
    : g_deduction_amount: = 150.00;
    >
    Why did you put a colon here? Get rid of them.

    They are necessary, since they are declared SQL * more variable.

    The problem for the OP, is that in the clause values in the insert the colon are missing.

    Published by: Mark Williams on August 23, 2012 22:31

    Here is your example requested:

    SQL> create table test (c number);
    
    Table created.
    
    SQL> variable v_c number
    SQL> begin
      2    :v_c := 46;
      3  end;
      4  /
    
    PL/SQL procedure successfully completed.
    
    SQL> begin
      2    insert into test values (:v_c);
      3  end;
      4  /
    
    PL/SQL procedure successfully completed.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from test;
    
             C
    ----------
            46
    
    1 row selected.
    
    SQL>
    
  • ORA-00904: "I." "" PROCESS_FLAG ": invalid identifier - I is a var slider

    create or replace PROCEDURE validate_data_proc
    IS

    CURSOR c1
    IS
    SELECT itemname, ICT, msib mtl_system_items_b item_conv_tab_sv itemname1 msib.segment1 icts.item_name
    where icts.item_name! = msib.segment1;
    CURSOR c2
    IS
    SELECT TIC. Nom_element itemname, icts.ORGANIZATION_ID org, msib.segment1 itemname1, msib.organization_id the item_conv_tab_sv ICT, msib mtl_system_items_b org1
    where icts.organization_id = msib.organization_id and icts.item_name! = msib.segment1;

    BEGIN

    I'm IN c1
    LOOP
    -Select i.item_name from i in
    If (c1% notfound) then
    FOR r IN c2
    LOOP
    If (c2% notfound) then

    update of HCCI process_flag = 3 set item_conv_tab_sv where item_conv_tab_sv.item_name = r.item_name;
    on the other

    update of item_conv_tab_sv HCCI set process_flag = 1 where item_conv_tab_sv.item_name = r.item_name;
    end if;
    end loop;
    on the other
    update of HCCI process_flag = 3 set item_conv_tab_sv where item_conv_tab_sv.item_name = i.item_name;
    end if;
    COMMIT;
    end loop;




    END validate_data_proc;


    I use a cursor nested which I create that err
    I get the foll error message,

    Error (23.30): PL/SQL: statement ignored
    Error (23,116): PL/SQL: ORA-00904: 'R '. "" Nom_element ": invalid identifier
    Error (23,118): PLS-00302: component 'Nom_élément' must be declared
    Error (26,32): PL/SQL: statement ignored
    Error (26,109): PL/SQL: ORA-00904: 'R '. "" PROCESS_FLAG ": invalid identifier
    Error (26,111): PLS-00302: component 'PROCESS_FLAG' must be declared
    Error (30,31): PL/SQL: statement ignored
    Error (30,108): PL/SQL: ORA-00904: "I." "" PROCESS_FLAG ": invalid identifier
    Error (30,110): PLS-00302: component 'PROCESS_FLAG' must be declared
    Error (26,118): PL/SQL: ORA-00904: 'R '. "" Nom_element ": invalid identifier
    Error (26,120): PLS-00302: component 'Nom_élément' must be declared
    Error (30,117): PL/SQL: ORA-00904: "I." "" Nom_element ": invalid identifier
    Error (30,119): PLS-00302: component 'Nom_élément' must be declared


    someone... Help, please...

    Find a difference:

    CURSOR c1
    IS
    SELECT icts.item_name itemname , msib.segment1 itemname1 of the item_conv_tab_sv ICT, mtl_system_items_b msib
    where icts.item_name! = msib.segment1;
    CURSOR c2
    IS
    SELECT TIC. Nom_element itemname, icts.ORGANIZATION_ID org, msib.segment1 itemname1, msib.organization_id item_conv_tab_sv cts, mtl_system_items_b msib org1
    where icts.organization_id = msib.organization_id and icts.item_name! = msib.segment1;

    And:

    update of HCCI process_flag = 3 set item_conv_tab_sv where item_conv_tab_sv.item_name = rnom_element;
    Update item_conv_tab_sv set process_flag icss = 3 where item_conv_tab_sv.item_name = i.nom_element;

    But even in this case, your code is wrong for CURSOR loop retrieves a line and stops automatically when there is no lines. Therefore, there is no sense to check notfound % c1 inside the loop for the SLIDER - this will be always FALSE. If your interior for CURSOR LOOP (C2) will never run.

    SY.

  • PL/SQL: ORA-00934: Group feature is not allowed here

    Hello

    I write a PL/SQL procedure. The structure is like:

    SET SERVEROUTPUT ON;
    CREATE or REPLACE procedure abc

    IS
    v_total_ip_rec number (14);
    v_total_op_rec number (14);
    v_total_rec number (14);


    BEGIN
    SELECT SUM (CASE
    WHEN < condition 1 >
    THEN 1
    0 OTHERWISE
    END
    ) in v_total_ip_rec.
    SUM (CASE
    WHEN < condition 2 >
    THEN 1
    0 OTHERWISE
    END
    ) in v_total_op_rec.
    SUM (1) in v_total_rec
    OF A, B
    WHERE A.Col1 = B.Col1;

    EXCEPTION
    WHILE OTHERS THEN
    raise_application_error (-20001,' an error has occurred - ' |) SQLCODE |' - ERROR - ' | SQLERRM);
    END;


    When I run this procedure it gives me following error:
    "PL/SQL: ORA-00934: Group feature is not allowed here."

    Someone has an idea?

    Any help would be appreciated.

    Thank you.

    Should I have any special role?

    Have you checked if synonyms exist for tables?
    Please check in this order:

    #1-synonymes appropriate
    #2-appropriate privileges
    #3-appropriate roles

  • Number of error SQL ORA-00904: invalid column name has occurred.

    Hello
    on P8.18 on a Win 2003 server when we launch SWPAUDIT, it failed with:
    Number of error SQL ORA-00904: invalid column name has occurred. Query process failed.
    I searched this error on metalink3. Nothing in connection with.

    Any idea?

    Thank you.

    Please give a clear picture of what you are doing... .and what paintings... There is the possibility of the audit refers to certain tables... with deleted. names of columns just look in the structure of what you audit?

    Please, find the name of column...

    ORA-00904: string: invalid identifier
    Cause: The column name entered is invalid or missing.
    Action: Enter a valid column name. A valid column name must start with a letter, must be less than or equal to 30 characters and include only alphanumeric characters and the special characters $, _, and #. If it contains other characters, then it must be enclosed in quotation marks. It cannot be a reserved word.

  • PL/SQL: ORA-00904: invalid identifier

    Hello

    Run the script after and encountered the error.

    SQL > create or replace FUNCTION p_CQTicketUsu

    () 2

    3 v_TicketUserID IN NUMBER by DEFAULT NULL,-it's the [CQTicketUsers]. TicketUserID generated on update

    4 v_TicketID IN NUMBER by DEFAULT NULL,-it's the [CQTicketUsers]. TicketID update

    5 v_AdminUserID IN NUMBER by DEFAULT NULL,-it's the [CQTicketUsers]. AdminUserID update

    6 v_TicketUserTypeID IN NUMBER by DEFAULT NULL - this is the [CQTicketUsers]. TicketUserTypeID update

    7)

    8 RETURN NUMBER

    9, ACCORDING TO

    10 v_sys_error NUMBER: = 0;

    11 v_ERRSQL NUMBER (10,0);

    12 v_UpdCount NUMBER (10,0);

    13

    BEGIN 14

    15

    16 UPDATE CQTicketUsers

    17 SET v_TicketUserID = TicketUserID,

    18 v_TicketID = TicketID,

    19 v_AdminUserID = AdminUserID,

    20 v_TicketUserTypeID = TicketUserTypeID

    21 WHERE TicketUserID = v_TicketUserID;

    22 v_ErrSQl: = v_sys_error;

    23 v_UpdCount: = SQL % ROWCOUNT;

    24 IF v_ErrSQL <>0 THEN

    25 RETURN-1;

    26 END IF;

    27 IF v_Updcount < 1 THEN

    28 RETURN - 2;

    29 END IF;

    30 RETURN 0;

    ENDS 31;

    32.

    WARNING: Function created with compilation errors.

    SQL > show error

    Errors for the P_CQTICKETUSU FUNCTION:

    16/4 PL/SQL: statement ignored

    20/11 PL/SQL: ORA-00904: "V_TICKETUSERTYPEID": invalid identifier

    Please note, I said v_TicketUserTypeID to the #6 line. Advice kindly.

    Kind regards

    Ballanger

    It's going to be kind of embarrassing, but you have the update parameters reversed. It should be

    TicketUserTypeID = v_TicketUserTypeID

    and is not

    v_TicketUserTypeID = TicketUserTypeID

    You get this error for database columns not only for pl/sql variables.

Maybe you are looking for

  • Whence the spam?

    I have a Photosmart 5520 and very occasionally, I used the option of eprint without problems.  I have security set to "Allowed" only email addresses and there are 2 addresses listed - mine and my daughter. Yesterday, I received a series of prints tha

  • access to the bios

    I have an Elite Paviilion e9260f running Windows 7 Home Edition (64-bit). I don't want to overclock i5-750 CPU, however I cannot access the BIOS to change the settings. When I enter the set-up with F10, I see BIOS revision listed 5.06, but has not hi

  • WIndows 7 - can not lower the screen resolution

    I don't know when it happened... apparently, after one of the windows updates because it worked very well, a month or two ago... anyway, here's my problem. A month ago I got the Sims 3 World Adeventures. I installed it and he played wonderfully. I ha

  • My Inspiron 1545 asking for a password I never set up

    When I start my computer laptop deal, I get a screen that says "this computer system is protected by a sending of password authentication system you cannot access the data on this computer without the password, please enter in the system or administr

  • Smartphones blackBerry how to transfer a purchased game on app world storm broke new storm without paying again

    Recently, I broke my storm... had to send me a new insurance.  I bought a game with the broken phone, and I would like to know if there is any way I can re - download without pay for it again?  For reference, I have verizon. Thank you.