How how to escape double match in immediate execution in the trigger

Hi all

Please inform me what is the error in this procedure.
I think that the problem in the way to escape double match.

SQL > create or replace procedure P2
2 is
3. start
4 run immediately 'create or replace trigger t2.
5 |' before insertion '
6: ' on tb_test'
7: ' for each row '
8: ' declare '
9: ' start '
* 10 |' immediate execution "create table t1 as select distinct (NVL (soundex (namess),"'NONE "')) test ' *;
11: ' end; »
12 end;
13
14.

CAUTION: Procedure created with compilation errors.

SQL > show error
Errors of PROCEDURE P2:

LINE/COL ERROR
-------- -----------------------------------------------------------------
10/83 PLS-00103: encountered the symbol "NONE" when expecting one of
What follows:
* & = - + ; <>/ is mod remains not return rem
return < an exponent (*) > <>or! = or ~ = > = < = <>and or
as like2 like4 likec between using | Member in bulk
submultiset

SQL >

Hello

Try the code below:

create or replace procedure P2
is
Start
run immediately "create or replace trigger t2 before insertion
on tb_test
for each line
declare
Start
run immediately "create table t1 as select distinct (NVL (soundex (account_number),"NONE")) of the test";
end;';
end;
/

Tags: Database

Similar Questions

  • Satellite L350 - how to use double-click with touchpad?

    Hi all
    I have a Satellite L350-156 and may not know how to get the work of the great plateau, without having to use the buttons, double-click
    Thanks for your help
    M

    Hello

    If you want to configure the touchpad, so you must go to control panel-> mouse-> device settings tab.

    In touchpad, double-click settings you can activate the tapping, which allows you to use the surface of the touchpad for.

    Welcome them

  • How to scan double-sided in the order of the pages, in PDF with Photosmart 7520.

    Hello everyone,

    I have a Photosmart HP 7520 use with Mac OS Mountain Lion 10.7 connected via Wi - Fi. I installed Adobe Acrobat Pro.

    I need to scan double-sided 300 pages in a document. I'm sure that the ADF will bite of it, but if I understand correctly that the 7520 does not scan two-sided (as it prints) if can anyone advise how to on this subject.

    To ensure the best possible scan, I thought to scan all pages on one side, then go back and scan in the rest. Otherwise we could force me to edit pages after scanning, which makes a long process. I guess, but don't know how do it, that I could create a PDF and then a second, then using software tools to load the second PDF integrate after each page in the first. Or is there a better way to go about this?

    I so want, just to be absolutely clear analysis in a document double face of 300 pages in the most user-friendly and fastest way possible, the end result is probably a 600-page, PDF format.  Please indicate the methods and software tools, I need.

    Thank you in advance. Can't wait to put it to work.

    Do you use the HP software to scan from the ADF?  On my Windows PC, I have a file called HP printer Assistant or, for some, it's simply scan HP. You can find in your utility Section.  After I open and select scan in one. PDF document from the ADF, I see a box to check the brand which allows me to turn on duplex scanning.  Do you see something like this when you scan on your computer?   I know you said that you use a Mac, so I hope you have this option somewhere.  I'm not very competent in Mac OS, but I'm sure that the term "scanning two-sided" can be found on the appropriate scan utility.  I know it's possible!  Let me know if you find it or not and I do on a Mac computer and research here.

  • How to print double-sided on my HP 3520

    No there's nothing wrong I. Just need to know how to print double-sided on my printer HP Deskjet 3520 All In One

    Hey, Johnann,.

    Welcome to the Forums of HP Support!

    The two-sided printing with your Deskjet 3520, you must do it manually. I've included the User Guide for your printer, and the steps for manual duplex printing are on page 45.

    Please let me know if you have any other questions.

    I hope this helps!

  • How to escape '? ' character in a mailto URL?

    Hello

    I use the library documents packaged application.

    There is a nice feature to send a link with a mailto link.

    Unfortunately the link contains
    mailto:[email protected]@sivoa.fr?subject=readme.txt&body=http://tg1:7777/pls/apex/f?p=107:2:::::P2_DOC_ID:4
    The problem is that the second question mark "?" is interpreted as a special character and so I get this in the subject of the message:

    Readme.txt & body = http://tg1:7777 / pls/apex/f

    How to escape the second question mark?

    I tried in vain with blackslahes.

    Thank you for your kind answers!

    Christian

    Hello Christian,.

    Have you tried the apex_util.url_encode function?
    http://download.Oracle.com/docs/CD/E14373_01/apirefs.32/e13369/apex_util.htm#insertedID90

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

  • M277dw MFP: How to enable double-sided painting

    Hello

    I allowed in checked "duplex" via the utility application of HP, but still can not in double side printed output.

    I use MS Word 2016, strangely enough, the printer prints two sides perfectly program Apple Pages?

    Help, please

    Thanks in advance

    Hello
    Please follow the steps below to automatically print double-sided print jobs:

    In the file being used to print click the file menu and select print.
    NOTE: The print window might be minimized. Press show details to show all available print option.

    In the print window expanded you will find next to Copies the checkbox for duplex. Select the check box.
    NOTE: If the check box does not appear in the specific application print dialog box, skip this step.

    To select the connection type click the selection box below, listed as the name of the program (e.g. TextEdit)
    Will appear as Copies & Pages within Microsoft Office applications.

    Select layout from the drop-down.

    Set the duplex option as the binding edge (Portrait) Long or short edge (landscape) bond.

    You can save the settings for later use by clicking preset > save current settings as preset. By default, a used preset will remain until another preset will be used.

    Kind regards
    Shlomi

  • How can I import Firefox bookmarks, now stored in the folder of the user on the same PC (new), in Firefox?

    How can I import Firefox bookmarks, now stored in the folder of the user on the same PC (new), in Firefox? I exported my old PC Firefox bookmarks in a folder [Windows 8] on my new PC.
    When I use the ease of importing from Firefox, it will only import a bookmark at a time - and then it inserts the bookmarks all the main pages on the site marked with a bookmark, not just the one I initially put bookmark. Also, it does not matter the information stored in the bookmark tag.

    Sure thing.

    1. Open the dialog box run by pressing the Windows key by pressing R
    2. Type of %appdata% in the immediate window and press ok
    3. Open the Mozilla folder
    4. Open the folder of Firefox
    5. Open the profiles folder
    6. Copy the folder that is located in this folder on a USB
    7. Install and run Firefox on the new computer
    8. Closing of Firefox
    9. Repeat steps 1 to 5 on the new computer
    10. Open the folder that you copied from your old computer
    11. Copy the contents of this folder into the folder inside the folder of the profile on the new computer
    12. Allow Windows to replace all records in doubles with those you are copying to the computer is prompted

    If you have problems with these instructions, or if you would like more information, feel free to comment below.

  • How do I auto detects the target using the trigger VBAI mode

    Hello world

    I had a vision system of machine ready to take choose using VBAI 2013 sp1.  Also, I use a sensor switch to trigger the camera to take pictures.

    When I type the loop running, it just won't continue to take photos no matther switch sensor triggers the camera or not.  I think it's the step that I used for the recording of the image, in the stage of registration of the image, I used picture newspaper still, but I don't want to use which is only what inspection status allows no other choice.

    So, how can I let the unit wait until he got the trigger of the alarm switch signal, and then take a picture and save the image?

    the stage of inspection to acquire the image, I used the trigger mode and everything worked fine, except the time error settting upward, I used 5000ms and if I put bigger like the 50000ms, VBAI turned really slow and showed time out error.

    If anyone can help me on this matter?

    Thank you

    You can use the diagram States-transitions to go only in a State based on the result produced by some steps.

    First, remove the registration step of the image of the State to check with you get the image

    Press Ctrl + E to turn the main view on the state diagram.

    Right click and create a new State.

    Right click on the State to inspect and create a new transition to this new State.

    Double click on the transition to edit it.

    Choose to acquire the Image - waiting time and set the condition false, to spend in this state when there is no timeout.

    Move the default transition from that State to the final State.

    Click on the new State to select it, and then add the image registration step.

    Using a state diagram, you have programmed an inspection that will record the image when there is no timeout.

    The State-transition diagram is a powerful tool to add a logic, branching and looping of your inspection.

    Open the tutorial 5 - state diagram Branching.vbai and tutorial 6 - State chart Looping.vbai for examples on how to use it.

    I hope this helps.

    Christophe

  • How can I add text on a picture in the photo gallery

    How can I add text on a picture in the photo gallery? I have photos I want to add text on a project I'm doing. I can do this through Windows Photo Gallery? I have to open the pictures on another program to do this? If so, is anyone know what program (s) would be that this is possible?

    Thank you for your help and ideas

    How can I add text on a picture in the photo gallery? I have photos I want to add text on a project I'm doing. I can do this through Windows Photo Gallery? I have to open the pictures on another program to do this? If so, is anyone know what program (s) would be that this is possible?

    Thank you for your help and ideas

    ===================================
    Photo Gallery doesn't have an option to add a
    text on the face of a photo.

    You can add text with Microsoft Paint:

    Add text to a picture with Windows Paint
    http://www.pcdon.com/deAddingTexttoaPhoto.html

    And... I agree with sohail khan... Picasa is a very
    useful application:

    The free Picasa software has several options for adding
    text of photos.

    (FWIW... it is always a good idea to create
    a system before you install restore point
    software or updates)

    Picasa
    http://Picasa.Google.com/
    (you can uncheck some of)
    the options on the final installation screen)

    After you download and install Picasa...
    Open the program and double left click
    an image to open the editing functions.

    To add text to the front of the photo...
    choose... Simple retouching / text button...

    Picasa - features "Retouching": crop, add text, editing
    http://support.Google.com/Picasa/bin/answer.py?hl=en&answer=93403

    Picasa - printing text and borders with photos
    http://support.Google.com/Picasa/answer/106191?hl=en

  • How do you apply Blur to only one of the two duplicate layers?

    Hello everyone

    I have two layers of dynamic object to a panoramic photo, which is a duplicate of the other and returned vertically.

    I would like to apply Blur to the inverted layer, so this step appears as a reflection of the other layer.

    However, when I apply the blur to the image reversed in its .psb document window, the blur effect ends on the two layers.

    Why the blur apply to two separate smart objects and how could possibly apply Blur to only one of the two double layers?

    Please advise me.

    Thanks as always,

    EAD

    Even if you see two separate layers, Photoshop is not to see them in the same way. When you using duplicated layer (Ctrl/Cmd + J) command, which tells Photoshop to create clones SO double layer sets SO. Update content on one of the 2 cloned layers will take into account changes to another. As you modify the content of a layer of cloned SO that change is automatically reflected in the other. As noted above, the solution is mentioned to apply the blur as a dynamic filter without changing the content (do not double click on layer SO): with SO layer selected in the layers panel, go to filter > blur > Gaussian blur.

    To cite only in case you need this option: you can duplicate the layer SO without cloning to help: command of new dynamic through copy object . In this case you can apply changes to the .psb file you make and modifications will not reflect to another (parent) layer of SO. In this case, disadvantage is that you can't quickly Exchange content on the two SO layers when creating clones SO you can overlay.

  • How to print a book on both sides of the page with the zoom.

    Hi I have a book of 100 small pages in book format and I want to print this book on both sides of the paper with two pages per side.

    I use windows XP and adobe acrobat reader XI version greater than 11.0 and an old printer.

    I tried to do and print two pages on one side by selecting multiple option in the layout, but there is no zoom I mean very tiny were printed and the remaining space was wasted.

    Then in order to print the even pages on the one hand and the odd pages on the other side, I tried to print the odd pages first in vain, I mean that all pages have been printed by also including the odd pages.

    For this I followed the instructions on the next page

    http://howtoprintdoublesided.com/how-to-print-double-sided-PDF/

    Please suggest how the two above can be carried out at the same time.

    Kind regards

    Rupesh.

    Hi Rupesh,

    To print the file to the scale, you can set the value in % in the impression under custom scale option dialog box.

    For double-sided printing click the properties button next to the printer you selected.

    Here you will get all the print properties that a printer supports.

    You can choose to print both side if it is available.

    Thank you

    Abhishek

  • How to join tables and get ppl not in the list of the other table

    Hi, I have 2 tables

    Table (girlscoutid, quarter, point)

    Table b (girlscoutid, fname lname)

    I want to get the names of ppl who didn't sell any point/s for Q4

    girlscoutid agenda quarter
    7771drinks4QS
    9000Tickets4QW
    7771Cookies2QS
    5085books3QF
    3010Tickets3QW
    5085Cookies1QF

    lscoutid fname lname
    7771JennRichochet
    9000LauraWilkins
    5085SallyMae
    3010DoraMcKenzie

    That's what I have, however, I get duplicates and also 7771 appears on the list even if she sold something on the 4th quarter. Any suggestions?

    SELECT fname, lname, a.girlscoutid

    Of a, b

    WHERE a.girlscoutid = b.girlscoutid

    AND the term NOT AS "4Q_";

    Hello

    So, all the information that you want to see figure in table b, but if you want to see it depends on the table has.

    This looks like a job for a semi Join.  Here's a way to do it:

    SELECT b.fname

    b.lname

    b.girlscoutid

    B

    LEFT OUTER JOIN has IT a.girlscoutid = b.girlscoutid

    AND a.quarter NOT AS "4Q_" - or a.TERM, if it is the column

    WHERE a.girscoutid IS NULL

    ;

    What you posted was an INNER join, where the rows of each table are included in the only game that if they have a corresponding row in the other table.

    An OUTER join includes all the rows in a table (table b in this case) if they have a match in the other table.  If a line of b has no corresponding row in a, then all the columns that are supposed to come from table will be NULL in the result set.  Given that the join condition includes = b.girlscoutid a.girlscoutid, this means that the only way to a.girlscoutid can be NULL in the result set is if the b line is included although it has no corresponding line one, which are exactly the lines that we want to display.  (You can try to run the query above with the WHERE clause, deleted, just to see how it works.)

    Alternatively, you can get the desired results by using a subquery NOT EXISTS, a NOT IN subquery or analytical functions.  The semi join, supra, is probably the most effective solution.

  • How can I add Lightroom to another account on the same computer mac user?

    How can I add Lightroom to another account on the same computer mac user?

    If you have installed normally he is already there. Simply go to the folder applications and double up until it clicks.

  • How to write a simple select query to get the data of the table as an XML.

    How to write a simple select query to get the data of the table as an XML. In the query, I'm just adding items below which i need be there in the XML document
    select '<test_tag>'||EMP_NAME||'</test_tag>','<date>'||sysdate||'</date>' 
    from temp_table where id_num BETWEEN 1 AND 10;
    I have need to add the root tag as well in the beginning and the end of < root > < / root > this xml file. Please advice if this is possible with the select query
    without using XMLGEN, XMLQUERY or any other packages built and function?

    I need to URL escapes with the UTF-8 code points that we have already achieved using the utl_http package. Please help how to do that without using the utl_http package.

    What is wrong with him?

    At present, the only way I can think of to avoid a call to UTL_HTTP. SET_BODY_CHARSET is to write your own little wrapper.
    In this way, you can specify the Boolean parameter or omit it if you choose to use named parameters:

    SQL> create or replace function my_url_escape (url in varchar2)
      2  return varchar2
      3  deterministic
      4  is
      5  begin
      6   return utl_url.escape(url, false, 'AL32UTF8');
      7  end;
      8  /
    
    Function created
    
    SQL> select my_url_escape('http://some.uri.com/param?lang=fr&text=contrôle') from dual;
    
    MY_URL_ESCAPE('HTTP://SOME.URI
    --------------------------------------------------------------------------------
    http://some.uri.com/param?lang=fr&text=contr%C3%B4le
     
    
  • How dynamically update the role of oracle using the trigger

    How dynamically update the role of oracle using the trigger:

    I have svmanger owner of schema in the database. There are five tables belonged to svmanager.

    Table A, B, C, D, E.

    I have a role that is played only to these tables under the scheme: SVMANAGER_READ_ONLY

    now, if I create a new table F under svmanager. the role that svmanager_read_only does not work is updated, so the user had assigned role cannot access table F.

    is there a way to create the trigger for this role dynamically update any when a table is created or deleted?

    Thank you.

    I really really really don't suggest to do this - it's a bad habit. If possible I'd just adding the grant as part of the steps to the role on the new creation of the table.
    But for fun here's how you can accomplish this:

    create or replace procedure execute_grant(v_ddl in varchar2)
    is
    begin
       execute immediate v_ddl;
    end;
    /
    
    create or replace trigger catch_create_table_trg after create on schema
    DECLARE
    
    ddl_job number;
    ddl_str varchar2(50);
    begin
       IF ora_dict_obj_type = 'TABLE' THEN
    
           ddl_str := 'GRANT SELECT ON '||ora_dict_obj_owner||'.'||ora_dict_obj_name||' TO SVMANAGER_READ_ONLY';
    
           dbms_job.submit(job => ddl_job,
           what => 'execute_grant(''' || ddl_str || ''');',
           next_date => sysdate+(5/24/60/60));
    
       END IF;
    end;
    /
    

    Test it

    create table F (id number(1));
    

    Validate

    select * from ROLE_TAB_PRIVS where ROLE = 'SVMANAGER_READ_ONLY';
    

Maybe you are looking for