[SOLVED] Determine the existence of REGEXP_LIKE in current Oracle version

Hi,
My customers can potentially use any version of Oracle, from 9i and up. I'd like to find out if REGEXP_LIKE exists in the version that I'm on, dynamically. It was introduced in 10g.
This will enable me to tailor my SQL query, which will or will not use REGEXP_LIKE.
Does anyone know of a query that'll tell me if REGEXP_LIKE is implemented?
Thanks,
Chris.

Or in worst case (if above doesn't work for some reason), just run it:
declare
   e   exception;
   pragma exception_init (e, -904);
begin
   execute immediate 'select regexp_substr(1,1,1) from dual';
   do_some_stuff ();
exception
   when e
   then
      do_some_stuff_when regexp_does_not_exist ();
end;

Similar Messages

  • Can't uptate the Ipod ? ( I am currently at version 1.1.3 )

    Greetings !
    I've gotten this problem my ipod won't uptate - I am currently at version 1.1.3, and I guess that isn't the latest one ? ( If so .. I'm sorry then. )
    Manual uptate with Itunes dosen't work, neither does the automatic one ..
    The automatic one dosent work because it says:
    Will search for a newer version 10.11.2020 and I can't wait that long. How can I reset the automatic search for new versions ?

    I can't help you with your problem but I can tell you that the version 1.1.3 is the newest one. Maybe you should uninstall itunes and delete all the files. then you should do the 5R's. don't know if it helps but if you got any problems with your ipod that's what everyone recommends you to do.

  • How to determine the number of messages in a queue, that ...

    Hi,
    what's the proper way to count the number of the messages in an Advanced Queue that are currently visible to consumers?
    Currently we use:
    select count(*) from aq$queue_tab_name q where q.QUEUE = 'Q_NAME';
    The problem with that approach:
    If one consumer dequeues a lot of messages in one transaction, that change in the number of messages visible to other consumers is only made visible after the consumer issues a commit. Before the commit is issued, the above "select count(*) ..." statement (issued from a different DB-session) does not reflect the fact that one consumer consumed a lot of messages, messages that are not available to other consumers anymore (only exception: the original consumer issues a rollback sooner or later).
    So before the commit is issued:
    -the consumed messages are NOT visible to other consumers anymore (which is intended behaviour)
    -but the "select count(*) ..." statement (issued from a different DB session) does NOT reflect that fact
    So the case could arise that the queue becomes empty, while "select count(*) ..." says that e.g. 1000 messages are still in the queue.
    Is there a solution to this problem?
    PS: For our use-case we need these dequeue option :
    dbms_aq.remove;
    dbms_aq.first_message;
    dbms_aq.on_commit;
    Again, the queue itself works correctly, I just need to find a way to determine the number messages that are currently dequeable / visible to the consumers at specific point in time.
    I couldn't find a func/proc in dbms_aq for that purpose.
    Best wishes
    Peter

    The following might be of interest in better understanding the issue you are facing in a broader context:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5771117722373

  • Checking for the existence of a Frame

    Hello,
    I am currently designing an application which consists of 8 JFrames (all in different classes), During the application, one JFrame provides information to a user and when they select the appropriate fields another JFrame opens an the active one closes. However the problem i am having is that i need to be able to write an if statement saying
    if (this particular frame exists already){
    destroy it;
    }else{
    whatever........};
    But i dont know how to check for the existence of a frame currently running, or how to destroy it..
    im currently using dispose(); to destroy frames but the dispose method only works when your in the class thats creating the frame, it wont let me write something like class1.dispose() (where class1 is the frame object created in the constructor of class1.java); in class2.
    I have searched throught the forum and havent found anything that can help me, i would really appreciate anyones input.
    Thanks in advance,
    Dev

    Hey its ok i've decided to restructure the program, but if anyone does know how to do this please still reply to the message, as i would still like to know

  • How to determine the size (in pixels) of the current mode

    Hello.
    I am looking for a was to determine the size (horizontal and vertical pixels) of the current mode (SAPGUI window). I have already looked through the methods provided by class CL_GUI_CFW...
    CL_GUI_CFW=>GET_METRIC_FACTORS provides the size of you display (i.e. 1600 x 1200 pixels) and some other information I am not able to interprete.
    Futhermore I have had a look at the Methods CL_GUI_CFW=>COMPUTEPIXEL, but I don´t know how to use them.
    Has anybody of you any experiences in this topic? I would be grateful ...
    MIKE

    Sorry Manoj,
    but i didn´t find out, why these programs should be able to solve my issue. They just display a picture using the CL_GUI_PICTURE control.
    I am looking fo a way to resize a given control to the very maximum, so that it fills the whole SAPGUI window!
    Thanks anyway...
    MIKE

  • Determining the current viewId

    Hi, I need to determine the current view id, therefore I am using the following code:
    /* adf-settings.xml */
    <adf-settings xmlns="http://xmlns.oracle.com/adf/settings">
      <adfc-controller-config xmlns="http://xmlns.oracle.com/adf/controller/config">
        <lifecycle>
          <phase-listener>
            <listener-id>myPagePhaseListener</listener-id>
            <class>obasi.common.domain.myPagePhaseListener</class>
          </phase-listener>
        </lifecycle>
      </adfc-controller-config>
    </adf-settings>
    /* myPagePhaseListener */
        public void beforePhase(PagePhaseEvent pagePhaseEvent) {           
            try {           
                if (pagePhaseEvent.getPhaseId() == Lifecycle.PREPARE_MODEL_ID) {
                    for (Object child:FacesContext.getCurrentInstance().getViewRoot().getChildren())
                        if (child instanceof RichDocument)
                            System.out.println(FacesContext.getCurrentInstance().getViewRoot().getViewId());
            } catch (Exception ex)
                // ignore
        }But this doesn't seem to work accurately. Some viewId's are only "detected" after leaving a page...
    I noticed that this happens when the URL inside my browser also remains pointing to the previous page.
    Is there a way to solve this?
    Thanks in advance,
    Charles.

    Hi,
    Thanks for helping me out, Simon.
    I am not sure about what changes should be made to my web.xml in order to not have the resources as view id's.
    So here goes my web.xml - in the hope that you would be so kind to point me out where the problem lies.
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
        <description>Empty web.xml file for Web Application</description>
        <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>client</param-value>
        </context-param>
        <context-param>
            <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
            <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
            <param-value>false</param-value>
        </context-param>
        <context-param>
            <param-name>RedirectToLogin</param-name>
            <param-value>login</param-value>
        </context-param>
        <context-param>
            <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
            <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
            <param-value>false</param-value>
        </context-param>
        <filter>
            <filter-name>JpsFilter</filter-name>
            <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
        </filter>
        <filter>
            <filter-name>trinidad</filter-name>
            <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
        </filter>
        <filter>
            <filter-name>adfBindings</filter-name>
    <!--
            <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    -->
            <filter-class>obasi.instel.customlogin.DynamicJDBCBindingFilter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>JpsFilter</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
            <dispatcher>INCLUDE</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>trinidad</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet>
            <servlet-name>resources</servlet-name>
            <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>resources</servlet-name>
            <url-pattern>/adf/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>resources</servlet-name>
            <url-pattern>/afr/*</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>35</session-timeout>
        </session-config>
        <mime-mapping>
            <extension>html</extension>
            <mime-type>text/html</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>txt</extension>
            <mime-type>text/plain</mime-type>
        </mime-mapping>
    </web-app>Please note that I am using Steve Muench's DynamicJDBCCredentials (http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html #129)

  • To determine the amount of space currently used in each tablespace

    I am preparing for OCA and came through a question.
    QUESTION 389
    You need to determine the amount of space currently used in each tablespace.
    You can retrieve this information in a single SQL statement using only one DBA view in
    the FROM clause providing you use either the _______ or _______ DBA view.
    A. DBA_EXTENTS.
    B. DBA_SEGMENTS.
    C. DBA_DATA_FILES.
    D. DBA_TABLESPACES.
    Answer mentioned: A, C.
    My doubt is that DBA_EXTENTS, DBA_SEGMENT,DBA_DATA_FILES all three contained column "BYTES" which shows size in bytes. Then why B is not an option.
    Plz help.
    Thanx
    Ashutosh

    Of these 4 answers, I'd say A and B will give the info asked for in the question.
    DBA_DATA_FILES only tells you the file size. That's not of much value because it doesn't tell you how much space is consumed by objects (there may be none).
    DBA_TABLESPACES has no storage info.
    DBA_EXTENTS and SEGMENTS show the amount of space consumed by objects.
    Even then, I'd say none of the above and use: DBA_TABLESPACE_USAGE_METRICS

  • How to Determine the first day of the current Fiscal Year

    I am a SQL Server developer who is trying to to learn Oracle SQL. I am trying to write a query that will 1) determine the month number and if the number is 10, 11, or 12, will return '01-Oct-' of the current Calendar year. If the month number is between 1 and 9, it returns '01- Oct-' of the last Calendar year (YYYY = current Calendar year minus 1 year).
    I was playing with the EXTRACT function to get the year and month, but was unable to formulate the '1-Oct-YYYY' where YYYY is the current or previous calendar year, depending on whether the SYSDATE falls before or after 1-October.
    Could anyone point me to an example of how to do this in Oracle?

    We can use "add_months" B-)
    select column_value,
    extract(year from add_months(column_value,-9)) as y,
    add_months(trunc(add_months(column_value,-9),'yyyy'),9) as oct
    from table(sys.odciDateList(
    date '2009-01-01',date '2009-09-01',
    date '2009-10-01',date '2009-12-01'));
    COLUMN_V     Y  OCT
    09-01-01  2008  08-10-01
    09-09-01  2008  08-10-01
    09-10-01  2009  09-10-01
    09-12-01  2009  09-10-01

  • How to determine the current update level of the system

    How can we determine the current update level of the system. uname -a shows the release but how to obtain the update level through a program?
    I have this sample program to display the version
    #include <iostream>
    #include <sys/utsname.h>
    #include <dirent.h>
    using namespace std;
    int main()
      struct utsname osinfo;
      // Call uname to get system info, then extract strings.
      uname(&osinfo);
      if (osinfo.machine)  {
        cout<<" Machine : "<<  osinfo.machine;
      if (osinfo.sysname)  {
        cout << "\nOS Name : " << osinfo.sysname;
    if (osinfo.release[0] != '\0')  {
        cout<<"\nRelease : " << osinfo.release;
    }My aim is to check if the Solaris box is 5.10 update 4 or not.
    Edited by: nidhish9 on Nov 27, 2007 5:11 AM

    nidhish9 wrote:
    How can we determine the current update level of the system. uname -a shows the release but how to obtain the update level through a program?
    I have this sample program to display the version
    #include <iostream>
    #include <sys/utsname.h>
    #include <dirent.h>
    using namespace std;
    int main()
    struct utsname osinfo;
    // Call uname to get system info, then extract strings.
    uname(&osinfo);
    if (osinfo.machine)  {
    cout<<" Machine : "<<  osinfo.machine;
    if (osinfo.sysname)  {
    cout << "\nOS Name : " << osinfo.sysname;
    if (osinfo.release[0] != '\0')  {
    cout<<"\nRelease : " << osinfo.release;
    }My aim is to check if the Solaris box is 5.10 update 4 or not.
    Edited by: nidhish9 on Nov 27, 2007 5:11 AMIt's in /etc/release...
    essapd020-u004$ cat /etc/release
                           Solaris 10 8/07 s10s_u4wos_12b SPARC
               Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                            Use is subject to license terms.
                                Assembled 16 August 2007
    essapd020-u004$ It can be processed with some simple commands:
    essapd020-u004$ cat /etc/release | head -1
                           Solaris 10 8/07 s10s_u4wos_12b SPARC
    essapd020-u004$ cat /etc/release | head -1 | cut -f2 -d_ | cut -c1,2
    u4
    essapd020-u004$ Best,

  • How to determine the Current Domain name from inside an Mbean / Java Prog

    We have registered an Application Defined MBean. The mbean has several APIs. Now we want to determine the currrent domain using some java api inside this Mbean. Similarly we have deployed a Webapp/Service in the Weblogic domain. And inside this app we need to know the current Domain. Is there any java api that will give this runtime information.
    Note: We are the MBean providers not clients who can connect to the WLS (using user/passwd) and get the domain MBean and determine the domain.
    Fusion Applcore

    Not sure if this will address exactly what you are looking to do, but I use this technique all the time to access runtime JMX information from within a Weblogic deployed application without having to pass authentication credentials. You are limited, however, to what you can access via the RuntimeServiceMBean. The example class below shows how to retrieve the domain name and managed server name from within a Weblogic deployed application (System.out calls only included for simplicity in this example):
    package com.yourcompany.jmx;
    import javax.management.MBeanServer;
    import javax.management.ObjectName;
    import javax.naming.InitialContext;
    public class JMXWrapper {
        private static JMXWrapper instance = new JMXWrapper();
        private String domainName;
        private String managedServerName;
        private JMXWrapper() {
        public static JMXWrapper getInstance() {
            return instance;
        public String getDomainName() {
            if (domainName == null) {
                try {
                    MBeanServer server = getMBeanServer();
                    ObjectName domainMBean = (ObjectName) server.getAttribute(getRuntimeService(), "DomainConfiguration");
                    domainName = (String) server.getAttribute(domainMBean, "Name");
                } catch (Exception ex) {
                    System.out.println("Caught Exception: " + ex);
                    ex.printStackTrace();
            return domainName;
        public String getManagedServerName() {
            if (managedServerName == null) {
                try {
                    managedServerName = (String) getMBeanServer().getAttribute(getRuntimeService(), "ServerName");
                } catch (Exception ex) {
                    System.out.println("Caught Exception: " + ex);
                    ex.printStackTrace();
            return managedServerName;
        private MBeanServer getMBeanServer() {
            MBeanServer retval = null;
            InitialContext ctx = null;
            try {
                //fetch the RuntimeServerMBean using the
                //MBeanServer interface
                ctx = new InitialContext();
                retval = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime");
            } catch (Exception ex) {
                System.out.println("Caught Exception: " + ex);
                ex.printStackTrace();
            } finally {
                if (ctx != null) {
                    try {
                        ctx.close();
                    } catch (Exception dontCare) {
            return retval;
        private ObjectName getRuntimeService() {
            ObjectName retval = null;
            try {
                retval = new ObjectName("com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
            } catch (Exception ex) {
                System.out.println("Caught Exception: " + ex);
                ex.printStackTrace();
            return retval;
    }I then created a simply test JSP to call the JMXWrapper singleton and display retrieved values:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page import="com.yourcompany.jmx.JMXWrapper"%>
    <%
       JMXWrapper jmx = JMXWrapper.getInstance();
       String domainName = jmx.getDomainName();
       String managedServerName = jmx.getManagedServerName();
    %>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JMX Wrapper Test</title>
        </head>
        <body>
            <h2>Domain Name: <%= domainName %></h2>
            <h2>Managed Server Name: <%= managedServerName %></h2>
        </body>
    </html>

  • IWork Numbers -- how to determine the current selected column/row?

    I am trying to write a script that grabs some text from a Numbers spreadsheet based on the selected field. I just can't figure how to actually get the column and row in a way I can use. Here's my start:
    tell application "Numbers"
    tell document 1
    -- DETERMINE THE CURRENT SHEET
    set currentsheetindex to 0
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of (tables whose selection range is not missing value)
    end tell
    if x is not 0 then
    set the currentsheetindex to i
    exit repeat
    end if
    end repeat
    if the currentsheetindex is 0 then error "No sheet has a selected table."
    -- GET THE VALUES OF THE SELECTED CELLS
    tell sheet currentsheetindex
    set the current_table to the first table whose selection range is not missing value
    tell the current_table
    set the range_values to the value of every cell of the selection range
    set therange to every cell of the selection range
    set thecol to column of first item of therange
    set therow to row of first item of therange
    end tell
    end tell
    end tell
    end tell
    It gives me a result like
    row "30" of table "table" of sheet "sheet 1" of document "Scheduler.numbers" of application "Numbers"
    but what I need is just "30" so I can use it for my scripts. I can't figure how to convert this to a string or some other useful format.
    Can anyone help? I like Numbers but I always run into little problems like this, something I can't figure how to do, compared with other scriptable programs.

    Search forGetSelParams or better for get_SelParams in the existing threads.
    I posted this handler more than 30 times !
    Yvan KOENIG (VALLAURIS, France) vendredi 18 mars 2011 17:03:05

  • Determine the current max shared memory size

    Hello,
    How do I determine the max shared memory value in effect on the box I have. I dont wish to trust /etc/system as that value may not be the effective value unless the system has been rebooted after that setting.
    Any pointers would be appreciated.
    Thanks
    Mahesh

    You can get the current values using adb:
    # adb -k
    physmem 3e113
    shminfo$<shminfo
    shminfo:
    shminfo: shmmax shmmin shmmni
    10000000 c8 c8
    shminfo+0x14: shmseg
    c8
    The shminfo structure holds the values being used and the shminfo
    macro will print out the values in hex.
    Alan
    Sun Developer Technical Support
    http://www.sun.com/developers/support

  • Where do I determine the current Firmware version that's installed?

    Where do I determine the current Firmware version that's installed?
    Thanks,
    Kristin.

    Firmware updates necessary (for OS X operation) for older Macs are available at Mac OS X: Available firmware updates
    http://docs.info.apple.com/article.html?artnum=86117
     Cheers, Tom

  • [SOLVED] ERROR: Unable to determine the file system type of /dev/root:

    :: Running Hook [udev]
    :: Triggering uevents...done
    Root device '804' doesn't exist.
    Creating root device /dev/root with major 8 and minor 4.
    error: /dev/root: No such device or address
    ERROR: Unable to determine the file system type of /dev/root:
    Either it contains no filesystem, an unknown filesystem,
    or more than one valid file system signature was found.
    Try adding
    rootfstype=your_filesystem_type
    to the kernelcommand line.
    You are now being dropped into an emergency shell.
    /bin/sh: can't access tty; job control turned off
    [ramfs /]# [ 1.376738] Refined TSC clocksource calibration: 3013.000 MHz.
    [ 1.376775] Switching to clocksource tsc
    That's what I get when I boot my Arch system. It worked fine for quite a while, but suddenly it ran into an error where the SCSI driver module was corrupt. I fixed it by reinstalling util-linux-ng and kernel26, however, I run into this issue now. http://www.pastie.org/2163181 < Link to /var/log/pacman.log for the month of July, just in case. Yes, I bought a new ATI/AMD Radeon HD 5450 this Saturday, but it seemed to work fine till this broke and it works fine on Ubuntu too, so I suppose we can rule it out.
    Last edited by SgrA (2011-07-05 20:45:36)

    Autodetection failed on your first image, in both your previous kernel installs:
    [2011-07-04 16:14] find: `/sys/devices': No such file or directory
    Which means that sysfs was not mounted. You should be able to boot from the fallback image, which does not use autodetect. Figure out why /sys isn't mounted, as well, and fix that.
    This is also a somewhat crappy bug in mkinitcpio that lets you create an autodetect image that's useless. It'll be fixed in the next version of mkinitcpio that makes it to core.
    Last edited by falconindy (2011-07-04 17:41:19)

  • How to determine the owner of the current package ?

    From a package (that is defined with invoker's rights: AUTHID CURRENT_USER) I want to determine the owner of that package. (We plan to deploy the same code into multiple schemas.)
    One approach would be to parse the results of DBMS_UTILITY.format_call_stack . . . any other ideas?
    Thanks,
    Mike

    mtefft wrote:
    We are using Total Recall aka Flashback Data Archive.
    If you have a Flashback Data Archive on a table, you can not drop it without removing the archive, and to do that you need ADMINISTER FLASHBACK ARCHIVE privilege. We want to give users the ability to remove the flashback archive (this is an ALTER TABLE) from their own tables without granting that privilege.
    So, we have a utilty schema which has this privilege. We created a definer-rights package to issue the alter, but it does not have ALTER ANY TABLE privilege. So, we added an invoker-rights package that the table-owner can call. This first issues GRANT ALTER ON [input-table-name] TO itself, then calls the definer-rights package, which now has both the system privilege and the object privilege needed. Why not just create a procedure owned by an "admin" user that does the alter table and grant execute on the proc to the utility schema ?
    As an example with scott and sys (using sys in a real-world system would be a Bad Idea© but I'm on a playground database on my laptop) :
    As Scott :Scott@my11g SQL>!cat createTable.sql
    create table mytable (
    id integer,
    val varchar2(30),
    constraint mytable_pk primary key(id)
    Scott@my11g SQL>@createTable
    Table created.As admin user :Sys@my11g SQL>!cat startFlashback.sql
    alter table scott.mytable flashback archive fl_archive;
    Sys@my11g SQL>alter table scott.mytable flashback archive fl_archive;
    Table altered.
    Sys@my11g SQL>select * from dba_flashback_archive_tables;
    TABLE_NAME                     OWNER_NAME                     FLASHBACK_ARCHIVE_NAME
    ARCHIVE_TABLE_NAME                                    STATUS
    MYTABLE                        SCOTT                          FL_ARCHIVE
    SYS_FBA_HIST_79498                                    ENABLEDAs admin user, I create the procedure and grant execute to scott :Sys@my11g SQL>!cat createProc.sql
    create or replace procedure remove_flarch(
    p_tabname varchar2
    is
    l_strcmd varchar2(200);
    begin
    for cur in (
    select owner, table_name from dba_tables where owner=user and table_name=upper(p_tabname)
    ) loop
    l_strcmd := 'alter table '||cur.owner||'.'||cur.table_name||' no flashback archive' ;
    execute immediate l_strcmd ;
    end loop;
    end;
    sho err
    grant execute on remove_flarch to scott;
    Sys@my11g SQL>@createProc.sql
    Procedure created.
    No errors.
    Grant succeeded.As Scott I cannot disable the flashback archive explicitly :Scott@my11g SQL>alter table mytable no flashback archive ;
    alter table mytable no flashback archive
    ERROR at line 1:
    ORA-55620: No privilege to use Flashback ArchiveBut I can do it using the procedure :Scott@my11g SQL>begin
      2  sys.remove_flarch('MYTABLE');
      3  end;
      4  /
    PL/SQL procedure successfully completed.Checking from admin point of view :Sys@my11g SQL>select * from dba_flashback_archive_tables;
    no rows selected
    mtefft wrote:All is well, except for the fact that we want to deploy this under multiple schemas. So we need to know 'to whom should the ALTER TABLE grant be given?'Just grant execute on the procedure to your different users.

Maybe you are looking for

  • Move group of pages from one InDesign file to another InDesign File using VB.Script

    Dear team, I am trying to move group of InDesign pages from one indesign file to another indesign file using vb.script. I have written the code like Dim Pages=IndDoc.Pages Dim Mytype=TypeName(Pages) Pages.Move(InDesign.idLocationOptions.idBefore,IndD

  • How do I increase the field of view in Measurement and Automation Explorer (MAX) Version 3.1.1.3003

    I am using Measurement and Automation Explorer Version 3.1.1.3003 to view pictures on a pc that are being sent from a video camera looking through a microscope.  The image I see in the viewfinder of the microscope is MUCH smaller than the image that

  • Encoding="UTF-8" is messing in delivered message

    Hi All, We are sending xml message to JMS queue using JMS Adapter. The schema is start with following line <?xml version = '1.0' encoding = 'UTF-8'?> <xs:schema targetNamespace="urn:com:metasolv:oms:xmlapi:1" xmlns="urn:com:metasolv:oms:xmlapi:1" ele

  • Problem when creating a Function

    It was my first time to create a function.First I want to export a internal table into the function ,but I was stopped when I define the parameter in 'TABLE' tab of Function Development Interface.The error message is 'Table Parameters are obsolete'.

  • Qm check with HU and without HU for same material.

    Hi, I have a doubt, I am implementing in a chemical industry  and I have the material that is 1st getting GR from production to Tank (Insp type 04) and then at a later stage i am creating a packing order with GR of the HU (insp type 04). problem is t