How can I put this scripty to work?

Hi guys,.

First of all, I followed the instructions on this site http://www.astral-consultancy.co.uk/cgi-bin/hunbug/doco.cgi?11020

and everything works fine.

However, I do not want to write exec DPR_AUDITTABLE ('table_name'); for each table in the schema.

so, I created a scripty and I got this error ORA-04071: keyword, BEFORE, AFTER, or instead of the absence.

What should I do?

BEGIN

FOR r1 IN (SELECT OBJECT_NAME OF object WHERE type_objet = 'TABLE'

AND THE OWNER = "SCHEMA_X")

LOOP

DBMS_OUTPUT. Put_line (R1.object_name);

SCHEMA_X.DPR_AUDITTABLE('''||) R1.object_name | " ') ;

END LOOP;

EXCEPTION

WHILE OTHERS THEN

DBMS_OUTPUT. PUT_LINE (SQLERRM);

END;

Thank you

Eric

Probably just need to

SCHEMA_X.DPR_AUDITTABLE (R1.object_name);

Instead of

SCHEMA_X.DPR_AUDITTABLE('''||) R1.object_name | " ') ;

Tags: Database

Similar Questions

  • Windows 7 loaded in Bootcamp on my refuses to iMac (with mountain like o/s Lion) to recognize the Apple Bluetooth mouse. How can I put this right please?

    Windows 7 loaded in the Bootcamp partition on my refuses to iMac (with mountain like o/s Lion) to recognize the Apple Bluetooth mouse. How can I put this right please?

    Hello

    I suggest you send the request in Apple Support communities for assistance on this issue.

    Reference:

    https://discussions.Apple.com/community/windows_software/Boot_Camp?category

    Thank you.

  • I upgraded my windows and I want to restore Adobe Reader XI (I think that's what I paid). How can I put this back on my computer?

    I upgraded my windows and I want to restore Adobe Reader XI (I think that's what I paid). How can I put this back on my computer?

    The reader is free, so I hope that you don't worry about it. You can download and install from here: http://get.adobe.com/reader/

  • Firefox is remove my development extensions loading firefox, how can I stop this, I lose work

    I develop Firefox addons. Since the update to Firefox 18.0 removes my development extensions/files in the profile folder loading firefox, how can I stop this, I lose the job!

    It seems if being arrested do not know if it was a version update or disabling encryption EFS in Windows of profile records. I noticed EFS seems to cause problems in general.

  • How can I get this script to work with Firefox?

    This 'go to the top of the Page"button does not work with Firefox 5.0.What do I have to do to make it work correctly?

    Handwriter you actually use Firefox 3.6.13 based on your useragent (look at the end, not starting). Mozilla/5.0 is on all versions of Firefox. Firefox 5.0 won't come out for a while yet as 4.0 has yet to be released.

  • Using windows 7. My screen back to 90 degrees. How can I put this back to normal?

    My screen upside down orientation of 90 degrees to the left.  I want to get back to normal.  How? Control Panel allows only turning 180 degree screen and it does not work.

    Another way:

    Press Ctrl & Alt keys, and use the arrow buttons to turn it back.

    Cat of my wife does it all the time on his computer

  • How can I get this Javascript to work under IE

    Here is the code.  It works perfectly in DW, but not in IE.  What changes do I need to make to make it functional in IE?

    Thank you.

    <!DOCTYPE HTML>
    <html>
    <head>
    </head>
    <body>
    <form>
        Invoice Payment:  <input type="text" name="InvoiceAmt"  id="InvoiceAmt" size="20" maxlength="30" />
        Payment Amount:  <input type="text" name="Chargetotal" id="Chargetotal" size="20" maxlength="30" />
    </form>

    <script>
        document.getElementById("InvoiceAmt").addEventListener("keyup", invoiceAmtKeyup, false);

        function invoiceAmtKeyup(e) {
            document.getElementById("Chargetotal").value = (+(e.currentTarget.value)*1.05).toFixed(2);
        }
    </script>
    </body>
    </html>

    My thanks to Kenneth Kawamoto for the above code.

    IE8 and earlier do not support the addEventListener method. The following change should work in all browsers:

  • How can I get this application to work?

    IS THAT OK! not too much experience with instructions check box in the select. I try to have a query that returns a "CR" address if they do not have CM, CM AND are they have a.
    They cannot have the two is perhaps a better way of restricted in where clause.
    in other words if they record CM give me that address, but if they do not have CM give CR...
    Probably an easy things for some of you guys!
    Thank you
      select 
    spriden_id,         
    spbpers_name_suffix   name_suffix,
    spbpers_name_prefix   name_prefix,
    spriden_last_name     last_name,
    spriden_first_name    first_name,
    spriden_mi            mi,
    srbrecr_term_code,
    srbrecr_majr_code,
    srbrecr_program_1,
    saturn_midd.utlq.f_matl_code_type(srbrecr_pidm), 
    CASE WHEN SPRADDR_ATYP_CODE = 'CM'   and SPRADDR_ATYP_CODE != 'CR' THEN SPRADDR_STREET_LINE1 END, 
    CASE WHEN SPRADDR_ATYP_CODE = 'CM'   and  SPRADDR_ATYP_CODE != 'CR' THEN SPRADDR_CITY END ,
    CASE WHEN SPRADDR_ATYP_CODE = 'CM'   and  SPRADDR_ATYP_CODE != 'CR' THEN  SPRADDR_STAT_CODE END ,
    CASE WHEN SPRADDR_ATYP_CODE = 'CM'   and  SPRADDR_ATYP_CODE != 'CR' THEN SPRADDR_ZIP END, 
    CASE WHEN SPRADDR_ATYP_CODE = 'CM'   and  SPRADDR_ATYP_CODE != 'CR' THEN SPRADDR_CNTY_CODE END,
    CASE WHEN SPRADDR_ATYP_CODE = 'CM'   and  SPRADDR_ATYP_CODE != 'CR' THEN SPRADDR_NATN_CODE END,
    CASE WHEN SPRADDR_ATYP_CODE = 'CR'   and SPRADDR_ATYP_CODE != 'CM' THEN SPRADDR_STREET_LINE1 END, 
    CASE WHEN SPRADDR_ATYP_CODE = 'CR'   and SPRADDR_ATYP_CODE != 'CM' THEN SPRADDR_CITY END ,
    CASE WHEN SPRADDR_ATYP_CODE = 'CR' and SPRADDR_ATYP_CODE != 'CM' THEN SPRADDR_STAT_CODE END ,
    CASE WHEN SPRADDR_ATYP_CODE = 'CR' and SPRADDR_ATYP_CODE != 'CM' THEN SPRADDR_ZIP END, 
    CASE WHEN SPRADDR_ATYP_CODE = 'CR' and SPRADDR_ATYP_CODE != 'CM' THEN SPRADDR_CNTY_CODE END,
    CASE WHEN SPRADDR_ATYP_CODE = 'CR' and SPRADDR_ATYP_CODE != 'CM' THEN SPRADDR_NATN_CODE END
    END
    FROM 
    saturn.srbrecr, 
    saturn.spriden,
    saturn.spbpers,
    SATURN.SPRADDR 
    WHERE 
    spriden_pidm = srbrecr_pidm 
    AND SPRIDEN_PIDM = SPRADDR_pidm  
    --and srbrecr_term_code = decode(p_term  ,'%',SRBRECR_TERM_CODE,p_term)
    and spbpers_pidm = spriden_pidm 
    and spriden_change_ind is null
    and SRBRECR_PROGRAM_1 = 'CMQ'
    --AND SPRADDR_ATYP_CODE = 'CM'
    AND SPRADDR_STREET_LINE1 IS NOT NULL;
    Published by: user648177 on April 22, 2009 08:47

    (try lowercase letters for the code of {})

    Set apart:

    CASE WHEN SPRADDR_ATYP_CODE = 'CM' and SPRADDR_ATYP_CODE != 'CR' THEN SPRADDR_STREET_LINE1 END,
    ...
    

    which should be rewritten as (*):

    CASE WHEN SPRADDR_ATYP_CODE = 'CM' THEN SPRADDR_STREET_LINE1 END cm_street_line_column_alias,
    ...
    

    your method is going in the right direction.

    However, to get the details on a line, you must use an aggregate function, for example. :

    MAX(CASE WHEN SPRADDR_ATYP_CODE = 'CM' THEN SPRADDR_STREET_LINE1 END) cm_street_line_column_alias,
    ...
    group by spriden_id, ..., saturn_midd.utlq.f_matl_code_type(srbrecr_pidm)
    

    (*) To put it another way, you're actually saying "If 1 = 1 and 1! = 2 then... "- the second condition is totally redundant as 1 will never be equal 2

    Published by: Boneist on April 22, 2009 16:56

    Published by: Boneist on April 23, 2009 08:47

  • How can I put this on a background?

    Screen Shot 2016-01-29 at 19.46.05.png

    There must be a white fill in there. Select the object with the white background and its filling the value None.

  • my product key on my emachines does not work when I am asked to put it in to convert my windows. How can I solve this problem

    I have a problem with my product key on my emachines, how can I solve this problem.

    Hello

    If your problem is with Office, read this:

    ·                         Office TRIAL activation

    ·                         you would have a preinstalled trail version of office installed

    There are only so many days use or use of the times with a version of office to test

    I'm sorry but the Office comes for free with a windows operating system

    You must purchase separately the Office

    and the product key on your computer/laptop is for the windows operating system not the office suite of applications

    link below is to the store of microsft office versions and prices

    http://store.Microsoft.com/Microsoft/Office/category/2

    You may also be interested to read everything and downloaded the free free office suite of applications office at the link below

    http://www.OpenOffice.org/

  • I tried to tap three fingers on the trackpad to find the definition of a word in an article.  It did not work.  How can I put a definition of the word in an article published in El Capitan?

    I tried to tap three fingers on the trackpad to find the definition of a word in an article.  It did not work.  How can I put a definition of the word in an article published in El Capitan?  I googled this question and he said to three fingers on the trackpad, of the band which is what I tried without success.

    carolfromknoxville wrote:

    I tried to tap three fingers on the trackpad to find the definition of a word in an article.  It did not work.  How can I put a definition of the word in an article published in El Capitan?  I googled this question and he said to three fingers on the trackpad, of the band which is what I tried without success.

    Highlight the word, right-click on it and select "search... "with the white line that represents all that is the word.  It will pull up from the definition in the dictionary.

  • How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    dannyb76251437 wrote:

    How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    Note that you can work with two screens and drag and drop the image to display on the other window.

    I think you mean working temporarily with the window enlarged image without displaying all the tools and panels.

    See:

    Panels and bins in Photoshop Elements

    My advice: take the time to read the above help and especially to look at ways to maximize this window if you are on Mac or Win.

    Set your preferences in the Edit menu to "allow the floating windows in expert mode.

    Use the "tab" on the keyboard key to hide or show your panels and tools quickly.

    Find out how to hide the photo tray.

  • The Messenger app will be not updated. Stuck on "Waiting."... "and the logo in grey. How can I fix this or return to the previous edition that worked?

    I received a prompt on my Ipod touch 5th generation yesterday, that there is a new update of the Messenger application. So I tried to update, however, the app is now stuck on the phase "Waiting."... "and the logo has been disabled. I still get notifications of new messages from the app, but I can't open. I tried to remove and then reinstall the application but the application did not and the app store think that I always opened it. How can I fix this or return to the previous edition that worked?

    Thank you in advance!

    Hello cfossum,

    Looks like you have problems with a third party on your iPod touch app, since the Messages belongs to iOS and you would receive separate not quickly update.

    The resources below will provide some troubleshooting steps for the problem you are having with the Messenger application.

    If an application you have installed unexpectedly closes, unresponsive, or does not open

    Take care.

  • New version will not work with the yahoo toolbar. How can I solve this problem?

    I downloaded the new version of Firefox, and it will not work with my yahoo toolbar more. It worked fine until I updated to the new version. I went back to the old version 16.0 and now he repeats to me my version is obsolete. How can I solve this problem and get the new version to work with my yahoo toolbar?

    To start, make sure you have the latest Yahoo toolbar.
    http://help.Yahoo.com/kb/index?page=content & y = PROD_TOOL & local = en_CA & ID = SLN5044 & print = false

  • I removed the toolbars so I could see below thinking that I could easily get them back, but I can't. How can I get back them? I can't even put a new web address now. Or refresh a page. Or go to the front/back. How can I solve this problem?

    I removed the toolbars so I could see below thinking that I could easily get them back, but I can't. How can I get back them? I can't even put a new web address now. Or refresh a page. Or go to the front/back. How can I solve this problem?

    It depends on how you

    1. Choose the Mode "full screen" or
    2. unchecked toolbars

    The F11 key activates / turns off Mode full screen or not. Full screen, you have no toolbars, no tab and no bar Add on (bottom).

    If unchecked you your toolbars (checked = displayed; UN - check = not displayed), and then do one of the following, then click on those you want to check/uncheck:

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

Maybe you are looking for

  • How to apply to get warranty service

    The microphone of my iphone6 does not work correctly... then how to go through the warranty service

  • Yoga 2 Pro battery replaceable by the user?

    Hello I wonder if Yoga Pro 2 battery is replaceable by the user. I was at bestbuy the seller told said that he is not and soldered so I can't change it on mine and the need for protection of geek squad... Please let me know. Thank you.

  • Lenovo G555 XP drivers

    In short, I'm looking for XP drivers for Lenovo G555 model. Unfortunately, I can't find this model listed in the list of templates supporting by Lenovo. Can someone here help and direct me to a link where I can get these drivers? Thank you K

  • Can't go beyond Blue error screen!

    I have a compaq presario running vista, it froze today and when I restarted I got a blue screen. I tried to start in safe mode, go to the recovery of the system, tried to use the recovery disc tried, but I get the screen every time. I ran diagnostics

  • Multiple certificates on SAA

    I need to have different certificates for several types of connections on a SAA.  One certificate for AnyConnect SSL connections and another certificate for SSL connections without client.  I was able to install the two certificates on the SAA.  But,