get a right parenthesis missing error...

DECLARE
CURSOR rule_cur
IS
SELECT rule_id, math_operator, range_value, ERROR_CODE, key_field
OF processing_validation_rules
WHERE validation_id = (SELECT validation_id
OF processing_validation_master
WHERE source_id = 1 AND ROWNUM < 2);

strquery1 VARCHAR2 (1000);
colquery1 VARCHAR2 (1000);
strquery2 VARCHAR2 (1000);
colquery2 VARCHAR2 (1000);
strquery3 VARCHAR2 (1000);
InsertQuery VARCHAR2 (1000);
DelQuery VARCHAR2 (1000);
v_error_code NUMBER;
v_error_msg VARCHAR2 (255);
p_filename VARCHAR2 (100);
p_src_tablename all_objects.object_name%TYPE;
p_dest_tablename all_objects.object_name%TYPE;
p_src_status_col all_tab_cols.column_name%TYPE;
p_sourceid NUMBER;
p_success NUMBER;
BEGIN
p_filename: = 'abc ';
p_src_tablename: = 'TEMP_RECORDS_TAP ';
p_dest_tablename: = 'TAP_REJECT ';
p_src_status_col: = 'STATUS_CODE ';
p_sourceid: = 1;
p_success: = 1;

FOR param_rec IN rule_cur
LOOP
strquery1: =.
"update".
|| p_src_tablename
|| 'set '.
|| p_src_status_col
|| ' = '
|| p_src_status_col
|| ' * '
|| param_rec. ERROR_CODE
|| 'WHERE '.
|| param_rec.key_field
|| ' '
|| param_rec.math_operator
|| ' '
|| param_rec.range_value; -LACK OF PARENTHESIS RIGHT

EXECUTE IMMEDIATE strquery1;
END LOOP;
END;

user8731258 wrote:
Update TEMP_RECORDS_TAP set STATUS_CODE = STATUS_CODE * 13 length WHERE (trim (translate (IMSI_MIN, '+-1234567890',' ')) IS NULL)
Update TEMP_RECORDS_TAP set STATUS_CODE = STATUS_CODE * 13 length WHERE (trim (translate (IMSI_MIN, '+-1234567890',' ')) IS NULL)

These two are missing a closing parenthesis.

They probably should be:

update TEMP_RECORDS_TAP set STATUS_CODE = STATUS_CODE * 13 WHERE length(trim(translate(IMSI_MIN,'+-1234567890',' '))) IS NULL
update TEMP_RECORDS_TAP set STATUS_CODE = STATUS_CODE * 13 WHERE length(trim(translate(IMSI_MIN,'+-1234567890',' '))) IS NULL

Tags: Database

Similar Questions

  • Using DBMS_METADATA. GET_DDL get error: ORA-00907: lack the right parenthesis

    Hello

    I try to extract the schema DDL to a base (10.2.0.4.0 - 64-bit Enterprise Edition on Solaris 10). I ran the query below and get an ORA-00907: parenthesis right absent error.

    SELECT DBMS_METADATA. GET_DDL (REPLACE(object_type,' ','_') AS object_type, object_name) FROM user_objects WHERE object_type NOT IN ('TABLE_PARTITION', "INDEX_PARTITION", "LOB");

    This is the output when executing the above in the sqlplus worksheet

    Select DBMS_METADATA. GET_DDL (REPLACE (object_type, ", '_') as object_type, object_name) FROM user_objects if object_type in ('TABLE_PARTITION',"INDEX_PARTITION","LOB")
    *
    ERROR on line 1:
    ORA-00907: lack of right parenthesis

    remove the where the clause gives the following:

    Select DBMS_METADATA. GET_DDL (REPLACE (object_type, ", '_') as object_type, object_name) FROM user_objects
    *
    ERROR on line 1:
    ORA-00907: lack of right parenthesis

    Pointers would be welcome. I know I could get the DDL using exp/imp, but I'd like to understand why I get the error of missing parenthesis.

    see you soon,

    Ewan

    SELECT DBMS_METADATA. GET_DDL (REPLACE(object_type,' ','_') AS object_type, object_name) FROM user_objects WHERE object_type NOT IN

    You don't need an alias here. Getting rid of the "as long as object_type' and it should work.

  • Missing right parenthesis when you use the CONTAINS function

    Hello

    The following sql causes the error "missing right parenthesis. Its a search engine simple execution of PHP that dynamically adds each keyword to a connection variable. This works fine if I use only 1 keyword, but as soon as others are added, I get the error.

    Here's the SQL echo:
    SELECT SCORE(1), TITLE FROM MYTABLE WHERE CONTAINS(TITLE, :1 AND :2, 1) > 0 ORDER BY SCORE(1), TITLE ASC
    My 1st thought was contains it seeks single quote so I tried the following combinations:
     CONTAINS(TITLE, ':1' AND ':2', 1) > 0
     CONTAINS(TITLE, ':1 AND :2', 1) > 0
    Both through the crossover so maybe its nothing to do with citations. I also tried to use single quotes when concatinating the sql in PHP. No joy :(

    CONTAINS the second parameter is a string, so you should concatenate your variables of two link with the chain AND:

    CONTAINS (TITLE,: 1 |) ' AND ' | (: 2, 1) > 0

  • Substitute the lack of rights of use error "cannot play, burn, or synchronize the file because that media rights are missing"

    I recorded my own music on several cd (using a computer with XP). I took these CDs and I snatched a few pieces in Win Media Player (on a more recent with Win 7 laptop) so I could do a "best of" disc type. I made 2 of them before. Now, I can't burn the same playlist titles to a 3rd cd because I get the message "can't read, burn, or synchronize the file because the media rights are missing." There is no right of media since I recorded this music and I have already burned 2 CDs of this same music on this same computer. Why they were so short?

    I downloaded the software updates. Could it be the problem?

    How can I replace this error message which is in error?

    Thank you.

    You cannot, if it is, the security protection would be worthless.  It would be like cracking after a password.  It's a shame, I know, but you will need to copy the files again without any protection applied.

  • Please help me with the missing right parenthesis

    The code below gives me error of missing right parenthesis. can someone help me understand the error code. Thank you.

    SELECT * FROM CIRC.DRAW_TYPE A
    WHERE A.CITY_CODE IN CASE WHEN :Rnzip='WithZip' THEN   ('46301', '46302') ELSE  A.CITY_CODE END

    You can try this.

    SELECT *
      FROM CIRC.DRAW_TYPE A
     WHERE (A.CITY_CODE = decode(:Rnzip,'WithZip','46301',A.CITY_CODE))
        Or (A.CITY_CODE = decode(:Rnzip,'WithZip','46302',A.CITY_CODE))
    

    Note: not tested

  • ORA-00907 MISSING RIGHT PARENTHESIS

    Hi all

    The query

    FLASHBACK TABLE schema.table_name to TIMESTAMP (January 18, 2008 18:55:58 ',' MON-DD-YYYY HH24:MI:SS');


    gives me error

    ORA-00907 MISSING RIGHT PARENTHESIS

    WHAT AM I MISSING HERE?


    kAI

    WHAT AM I MISSING HERE?

    Try

    flashback table schema.table_name to timestamp( to_timestamp('18-JAN-2008 18:55:58','DD-MON-YYYY HH24:MI:SS'));
    
  • CODE - 641 Windows update has encountered an error of unkonwn. How to get this right

    CODE - 641 Windows update has encountered an error of unkonwn.  How to get this right

    Try to run the tool:

    http://support.Microsoft.com/mats/windows_update/

  • Get a dvacore.dll is missing error

    Hello


    I am trying to change a sequence in Adobe Premiere Pro Audition.cc and I'm getting a dvlcore.dll is missing error and it asks me to reinstall the program. My question is could someone tell me what the problem is and what program (audion or creation) that I need to reinstall

    See you soon

    I think it's a dynamic link file, try reinstalling the PP and if this does not work, also reinstall to the.

  • Problem with right parenthesis.

    Hello
    I'm trying to do something simple, and it doesn't.
    During an attempt which:
    declare 
    solde number;
    journal varchar2(2);
    dossier varchar2(12);
    begin
    journal:='21';
    dossier:='1707029205';
    execute immediate 'select sum(a.debi)-sum(a.cred)
    into solde
    from auxiloc a,
      dossier d,
      client c
    where d.clie =c.code
    and a.doss in (select o.code from dossier o where o.clie=c.code )
    and a.cmpt   =4111
    and a.xdate <=
      (select dar2 from qt:1 where doss=d.code
      )
    and d.jqt =:2
    and d.code=:3' using journal,journal,dossier;
    end;
    I get a "missing right parenthesis" on line 8, which is the line with immediate execution.
    Obviously, there is no missing brackets, I am must be missing something, but what?

    The query such as:
    select sum(a.debi)-sum(a.cred)
    --into solde
    from auxiloc a,
      dossier d,
      client c
    where d.clie =c.code
    and a.doss in (select o.code from dossier o where o.clie=c.code )
    and a.cmpt   =4111
    and a.xdate <=
      (select dar2 from qt21 where doss=d.code
      )
    and d.jqt =21
    and d.code=1707029205;
    works without a hitch...

    clues?

    Don't look for the error of "in" first time.
    You must move the "in" out of the sql string.

    execute immediate 'select ...' into solde using ....
    
  • ORA-00907 - "lack the right parenthesis.

    Hello

    I am trying to create a procedure to add table scores each month. This is my code:

    create or replace procedure add_partitions

    as

    v_partition all_tab_partitions.partition_name%type;

    v_limit varchar2 (50);

    LONG v_sql;

    Start

    Select to_char (trunc (add_months(sysdate,1), 'MM'), 'Mon_YYYY')

    in v_partition

    Double; -napr. 072014

    Select to_char (trunc (add_months(sysdate,2), 'MM'), 'DD-MM-YYYY')

    in v_limit

    Double; -napr. 08/01/2014

    v_sql: = ' ALTER TABLE CENTRUMADMIN. AUD$ _BACKUP ADD PARTITION '. v_partition | «VALUES LESS THAN (' |)» v_limit | ') tablespace BACKUP_AUDIT';

    immediately run v_sql;

    end;

    /

    The procedure is compiled without errors, but when I run it I get this error:

    ORA-00907 - "lack the right parenthesis.

    After some tests, I am sure that this problem is here: VALUES LESS THAN (' | v_limit |) (')... but I'cant understand whats wrong

    Any ideas? Thanks in advance

    Honza

    Hi Mika,

    Try

    VALUES LESS THAN ("' | v_limit |) (') - three times - 2 gives you a ' in your statement - the 3rd chain delimited

    concerning
    Kay

  • One more time: lack of right parenthesis

    Hi guys,.

    I searched the forum for another thread that might give me the answer I'm looking for, but I found no one.

    I'm new to APEX and I have to build a crosstab. To do this, I founded my development on really force crosstab / Pivot report example.

    My package is completely identical it is on that page and I have adapted to the query of the report (= classic, non-interactive) based on PL/SQL, so it fits my needs, the result is:

    DECLARE

    l_return_value VARCHAR2 (32767).

    BEGIN

    l_return_value: = PK_PIVOT. PivotSQL ("SELECT * FROM"Ploegrapport - view "', 'SOD_OMSCHR_LANG, OOD_OMSCHR_LANG, ACT_OMSCHR_LANG, TAAK_OMSCHR_LANG, ORG_NIV4, ORG_NIV5', 'NK_WERKNEMER', 'MIN', 'J_N', nvl (:P2_PAGENUMBER,1));)

    RETURN l_return_value;

    END;

    When I try to run it, I get the error ORA-00907: lack the closing parenthesis.

    When I click on "debug", it changes to:

    debug logging error ORA-06502: PL/SQL: digital or value error: character string of the buffer too small ORA-00907: lack the right parenthesis

    Failed to parse the SQL query:

    ORA-00907: lack of right parenthesis

    When I then click on "debug mode" I get the following:

    ... Run the statement: declare function x return varchar2 is begin DECLARE l_return_value VARCHAR2 (32767). BEGIN l_return_value: = PK_PIVOT. PivotSQL ("SELECT * FROM"Ploegrapport - view "', 'SOD_OMSCHR_LANG, OOD_OMSCHR_LANG, ACT_OMSCHR_LANG, TAAK_OMSCHR_LANG, ORG_NIV4, ORG_NIV5', 'NK_WERKNEMER', 'MIN', 'J_N', nvl (:P2_PAGENUMBER,1));) RETURN l_return_value; END; Returns a null value. end; begin wwv_flow.g_computation_result_vc: = x; end;

    ...... Result = SELECT SOD_OMSCHR_LANG, OOD_OMSCHR_LANG, ACT_OMSCHR_LANG, TAAK_OMSCHR_LANG, ORG_NIV4, ORG_NIV5, MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE(NK_WERKNEMER,XXXXX',J_N,null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER Null 'XXXXX' ((, J_N,)) as "XXXXX" MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) 'XXXXX', MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER, J_N ' XXXXX', null)) as 'XXXXX '. MIN (DECODE(NK_WERKNE~), MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as 'XXXXX'

    (Don't worry the XXXXX, I put it there manually because this is sensitive information, the field is actually correct and represents the names of people.) The query works when I cut the last piece, which is broken, and when I add a group, so the query he built seems to be OK

    As you can see the query in debug is actually broken after 999 characters, this is simply due to the fact that debugging will show no more than 999 characters, or is this really my problem, that the query is broken before the full statement is complete.

    If this is the first option: then where would my problem? If it's the latter: I checked the report query code and the package code and I can't find a reason why this request would be accepted to exist out of 999 characters.

    I am currently working with the test environment Oracle supplied us, because we test if we can use APEX in our company.

    The version is Application Express 4.2.2.00.11 and it is running on Oracle 11 g.

    If you need more information, just ask and I'll post it as soon as possible.

    During the validation of the responses, please keep in mind that I am a beginner at this and have trouble understanding complex responses .

    Thanks for your help!

    NDG

    Hello

    I discovered what the problem was.

    In my data, there is an employee with a '-character in his name and that's what makes the query returns an error. I tried again, this time without taking account of all the names with a '-character and that the query ran successfully, now a column made dynamically for each employee, just as I wanted.

    Thank you Tom for your efforts!

  • My scroll bar on the right is missing

    After the last update, the scroll bar on the right is missing. If I try CTRL-H as suggested, it is not.

    It could be that the file localstore.rdf in the profile was damaged. Try to move out of the profile and then restart Firefox. If this solves the problem, you then have to redo any customizations that have been caused to the toolbars or windows sizes. If this does not help, try to get the full installer and install Firefox all over again.

  • I keep getting failed to install with error codes 643 and 646 on my Vista, when I install updates for Windows... What should I do?

    I keep getting failed to install with error codes 643 and 646 on my Vista, when I install updates for Windows... What should I do?

    Hello

    Try this 1st to see if it helps, and it should:

    Description of the Patch registration cleanup tool
    http://support.Microsoft.com/kb/976220/

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

    If necessary :

    Try this - Panel - Windows Updates - on every update that will not be installed - click on the important updates
    or the update itself - double click a view more information (or click top then discovers on the right)

    Those who will take you to a page where you can download the update.

    Or go here and the KBxxxxxx number to download it.

    Download Center - mount the KBxxxxxx.

    Microsoft Download Center
    http://www.Microsoft.com/downloads/en/default.aspx

    Download - SAVE - go to where you put them - click on - RUN AS ADMIN

    Then you can right click on the update in the updates Windows and HIDE.

    If you get an error Installer install this version:

    Windows install 4.5 Redistributable
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

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

    Then run this:

    How to reset the Windows Update components? -a Mr Fixit
    http://support.Microsoft.com/kb/971058

    Description of the system for Windows Vista, Windows Server 2008, update tool and
    for Windows 7
    http://support.Microsoft.com/kb/947821

    ------------------------------------------------------------
    Because these are all Office updates you might get more information if necessary in the Agency of those groups that
    may have experienced the same problem.

    Office newsgroups
    http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspx

    Microsoft.public.office.misc discussions
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Office.misc&cat=en_us_01cb749f-c998-4762-8099-df71793c11c7&lang=en&CR=us

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

    If necessary you can incident free get reports however the above should take care of it for you.

    Windows updates - free Incident report

    Go here and click on-> Windows Update fails while searching, downloading or installation of updates
    http://support.Microsoft.com/GP/wusupport#tab3

    The security updates, you can get free support Incident report
    http://www.Microsoft.com/protect/resources/support.aspx

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • I can't connect to the network wirelessly with my Emachines eM350 portable because I get the automatic Wireless Configuration error, see Article 871122.

    original title: WiFi

    I can't connect to the network wirelessly with my Emachines eM350 portable because I get the automatic Wireless Configuration error, see Article 871122.

    I use a Huawei E585. I simply want to clamp it alll in the tray.

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    (1) make sure that u run "NET START WZCSVC" on the command-line as soon as u Ouvrezunesession WINDOWS XP (START, RUN, NET START WZCSVC (command line)).

    (2) START, CONNECT, WIRELESS INTERNET CONNECTION

    --> under the 'GÉNÉRAL' tab: (1) right click on the wireless Internet connection; (2) click on properties; (3) make sure that all THE ELEMENTS under the title "THIS CONNECTION USES THE FOLLOWING ITEMS" are COMPLETELY FUNCTIONAL, i.e. UNCHECK THE ONES THAT DO ARE NOT ACTIVE ~!  (I recently turned off AVG and that this item has been inadvertently clicked on ~!) ;

    --> on the 'ADVANCED' tab: run the NETWORK CONFIGURATION WIZARD to reset your network

    3) http://support.microsoft.com/kb/871122 --> RUN 'DIFFICULTY CE PROBLEM' (ms - fix 50469)

  • Windows updates fail, and I get a code of 80070005 error message.

    original title: Windows updates are faulty and I get a code of 80070005 error message.  I can't identify what it is.  Any help appreciated.

    This occurs with frequency more.

    Hello

    Error code 80070005 means generally that you're not quite allowed to install updates. Access may be denied if you have logged on to the computer as a standard user and this account does not have permission to install updates.

    To resolve the problem follow the steps that are listed in the methods below in the order listed, starting with method 1.

    Method 1:

    Log the computer as an administrator or as a user with administrative rights.

    Method 2:

    One of the most common causes of this error code (access denied) is the Anti Virus and Anti Spyware software running on the computer. You can try to disable them, and then try the updates again.

    Note: run the computer without antivirus software or firewall is a potential threat to the computer; Be sure to activate security software after completing the troubleshooting steps and after identifying the problem.

    Method 3:

    Try to reset your default security settings.

    Reference:

    How to restore the security settings the default settings? : http://support.microsoft.com/kb/313222

    Method 4:

    Reset Windows Update components.

    See:

    How to reset the Windows Update components? : http://support.microsoft.com/kb/971058

Maybe you are looking for

  • iOS 10.0.1 lyrics music Apple does not show / no option to view

    In the Apple's music. Song lyrics synchronized on 6 64 GB iPhone running iOS 10.0.1 with iTunes not showing 12.5.1.21 not / no option to view. I don't know if this a bug. or something that I need to activate.

  • IPod touch can be set to turn on/off automactic with car when pluged to the document cig lighter.

    IPod touch can be set to turn on/off automactic with car when pluged to the document cig lighter. I'm going to buy a new ipod in a few days and my old man would come when started the car but I had to turn off every time I'm out. Eather model adjustab

  • anyone receive calls from computer warnings Windows Rep.about?

    said he went to Microsoft Windows on my computer made me do a start and assumed he was of Winow. Said I had a lot of problems and had to go through and the next thing there is a page, and it was all the mistakes, said there could be charges and came

  • Find objects using NI Vision

    Hello I want to locate clusters of the object in a .tiff image group. I would ilke to find the center of mass and the average value of pixels in each cluster (so that I can calculate the center of mass of the aggregate). In addition, I would like to

  • Acquisition of data into a laptop card?

    I found that this PCMCIA card does not fit into my laptop (lenovo ls400) which has only express card slot, I was trying to find any DAQ card that is made in express card, but I couldn't find one, I was wondering if I need to find some cards or someth