How do I query to find out if the MONITORING clause was enabled on a table?

Our customers are currently running Oracle 8.1.7 in the field. I am writing a database schema updater tool that is supposed to examine the schemas and make necessary changes to them.
Recently, the MONITORING clause was added to many of the tables in our schemas. I need to find out if the tables currently have MONITORING enabled.
But, even though the Oracle documentation is very large, again, I cannot find any information about how to determine if MONITORING on a table is on or off.
Any ideas? An SQL query? JDBC metadata?
Tom Harris
Cisco Systems, Inc.

What is the output of the following statements on your system?
Remember, table names are stored in caps in the dictionary if not enclosed within double-quotes.
SQL> create table t (x number) ;
Table created.
SQL> select monitoring from user_tables where table_name = 'T' ;
MON
NO
1 row selected.
SQL> alter table t monitoring ;
Table altered.
SQL> select monitoring from user_tables where table_name = 'T' ;
MON
YES
1 row selected.
SQL> disconnect
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production
SQL>

Similar Messages

  • When I look at my I tunes library on the computer I have a exclamation point next to a bunch of my songs and apps when I click on them it says that the original file couldnt be found. How do I go about finding out where the original file is and correct th

    when I look at my I tunes library on my computer I have an exclamation point next to some of the songs and apps. when I click on this it tells me the original file couldnt be found.  How do I go about finding the original file to correct this?

    See this article: iTunes: Finding lost media and downloads
    B-rock

  • Query to find out if the numeric string has letters in it. Please, help!

    Hi, everyone!
    Could you please help me in constructing the following query:
    I want the query to return the records, for which a specified column contains at least 1 alpha-numeric character in it. For example, if I search the Items table, I want the rows with the following Item_Number values be returned: "34265af6", "bbbbbbbb", "9808677y" etc...
    Thanks a lot.
    Regards,
    Eugene.

    Would you consider the Null value for "p_string" input parameter as being NUMBER or otherwise? That's an interesting question. The function and query as is would treat nulls as numbers, consistent with how Oracle would treat a null as a potential number, by not raising any error when asked for to_number(null). However, if you wanted to exclude nulls, you could just add an additional filter condition to the where clause. See examples below.
    -- selecting to_number(null) does not raise an error:
    SQL> SELECT TO_NUMBER (NULL) FROM DUAL
      2  /
    TO_NUMBER(NULL)                                                                
    -- is_number(null) is considered numeric:
    SQL> SELECT is_number (NULL) FROM DUAL
      2  /
    IS_NUMBER(NULL)                                                                
    Y                                                                              
    -- combination of Oracle and user-defined
    -- functions considers null as numeric:
    SQL> SELECT DECODE (LTRIM (NULL, '0123456789-+E/.,'),
      2                NULL, is_number (NULL),
      3                'N')
      4  FROM   DUAL
      5  /
    DECODE(LTRIM(NULL,'0123456789-+E/.,'),NULL,IS_NUMBER(NULL),'N')                
    Y                                                                              
    SQL> -- additional test data:
    SQL> INSERT INTO items VALUES (NULL)
      2  /
    1 row created.
    SQL> COMMIT
      2  /
    Commit complete.
    SQL> SELECT * FROM items
      2  /
    ITEM_NUMBE                                                                     
    ABC123                                                                         
    ABC                                                                            
    DEF123                                                                         
    123                                                                            
    C123                                                                           
    XYZ                                                                            
    GHI                                                                            
    8 rows selected.
    SQL>
    SQL>
    SQL> -- unmodified select statement
    SQL> -- treats nulls as numbers
    SQL> -- and doesn't include null value
    SQL> -- in result set when searching
    SQL> -- for non-numbers:
    SQL> SELECT *
      2  FROM   items
      3  WHERE  DECODE (LTRIM (item_number, '0123456789-+E/.,'),
      4                NULL, is_number (item_number),
      5                'N') = 'N'
      6  /
    ITEM_NUMBE                                                                     
    ABC123                                                                         
    ABC                                                                            
    DEF123                                                                         
    C123                                                                           
    XYZ                                                                            
    GHI                                                                            
    6 rows selected.
    SQL>
    SQL>
    SQL> -- modified select statement
    SQL> -- treats nulls as non-numbers
    SQL> -- and includes nulls in result set
    SQL> -- when searching for non-numbers:
    SQL> SELECT *
      2  FROM   items
      3  WHERE  DECODE (LTRIM (item_number, '0123456789-+E/.,'),
      4                NULL, is_number (item_number),
      5                'N') = 'N'
      6  OR     item_number IS NULL
      7  /
    ITEM_NUMBE                                                                     
    ABC123                                                                         
    ABC                                                                            
    DEF123                                                                         
    C123                                                                           
    XYZ                                                                            
    GHI                                                                            
    7 rows selected.

  • How do I find out what the internal error was?

    I got a fatal internal error when I pressed the "Show Errors" button under Windows->Show Errors menu option.
    Silly me, I didn't write it down. When I relaunched LabView, it offered to go and try to diagnose the error,
    but not I can't find any trace of what the error actually was! Obviously, I should have written it down,
    but why didn't Labview also record the error?

    Hi Doughera!
    When you say: "When I relaunched LabView, it offered to go and try to diagnose the error", do you mean that LabVIEW gave you the option of Investigate Now, Investigate Later, & Do Not Investigate? Assuming this is what you are referring to, by choosing either Investigate Now or Investigate Later, LabVIEW will generate an error log .txt file. This file is automatically placed in your My Documents\LabVIEW Data\lvfailurelog folder.
    Hope this helps!
    Travis H.
    National Instruments
    Travis H.
    LabVIEW R&D
    National Instruments

  • HT204106 I bought an iPhone 6 from a guy, only to find out that the Apple ID was locked. Is there any way to unlock it?

    I would really like to keep my iPhone 6, without spending any more money on fixing it. Anyone know how to unlock it?

    Unless you get the seller to unlock it for you then you're out of luck. The phone is a brick and useless.
    Find My iPhone Activation Lock

  • Someone stole my MacBook Pro. I need to find out what the purchase price was and the serial number for the insurance. Any suggestions?

    Someone stole my MacBook Pro and I thought maybe I could find out how to get the serial number and purchase price for the insurance carrier. I looked in the community and found finding an iPod with iTunes, but iTunes on my iPad doesn't have preferences, so now I don't know what to do. Can I call someone? Is there really any help. Next time I'm gonna buy from amazon because you can go right on to my order history and have the information right at your finger tips in a matter of minutes instead of getting the run around!

    Well, if you don't have a copy of your purchase receipt, then you can find the serial number in your support profile if you registered the machine. As for a copy of your invoice, call the Apple store and ask for a copy.
    https://daw.apple.com/cgi-bin/WebObjects/DSAuthWeb.woa/wa/classicLogin?appIdKey= 58ef9db8ff4d201409e7270a68e4408ae1678e1618204c476572a1b5e5fb3518&path&language=U S-EN

  • Is there a way to find out if the number that was given to the ipod is long distance or not.

    I just got my daughter a ipod touch and we downloaded the textnow app.  the number that was given to her is there a way to find out if it is a long distance number?  And if she calls people does it charge anything?

    Why do you want to get it from browser URL while you can get it from ABAP?
    I think you can try SY-LANGU to get the language of user.
    Best regards,
    Chinnu

  • How do you know or find out what the URL is on a calender published on .mac

    I want to publish or subscribe several different calenders....how do you know or where do you find the url when you go to subscibe?
    thanks
    ron

    Forgot Your Account Password
    For Lion, Mountain Lion, or Mavericks
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see:
           Reset a Mac OS X 10.7 Lion Password
           OS X Mountain Lion- Reset a login password,
           OS X Mavericks- Solve password problems,
           OS X Lion- Apple ID can be used to reset your user account password.
    For Snow Leopard and earlier with installer DVD
         Mac OS X 10.6- If you forget your administrator password,
         OS X- Changing or resetting an account password (Snow Leopard and earlier).
    For Snow Leopard and earlier without installer DVD
        How to reset your Mac OS X password without an installer disc | MacYourself
        Reset OS X Password Without an OS X CD — Tech News and Analysis
        How To Create A New Administrator Account - Hack Mac

  • How do I find out what the Apple ID was to set up my iphone?

    I reset my iPhone 4S and when I went to reset it up, it asks for my Apple ID that was used to set up the phone. I have 2 Apple ID's and have used both, changed passwords dozens of times and the phone still won't accept my apple ID's. It tells me with the Apple ID's are not correct or the passwords are not correct.  It shows an Apple ID in the paragraph on the Activate iPhone page but that does not correspond (the number of dots and letters given) with anything I use. Any help would be appreciated.
    Thank you,
    Dotty

    You may be able to find your Apple ID at Look up your old and forgotten Apple ID

  • How to find out where the exe file was installed?

    Hi there,
    I have the following problem: In my VI, I'm reading a .txt file through the vi "Open Config Data" in which I specify the path of the txt. file and it returns me a refnum that is used to read the file. When I made the installer to this application, I included this txt, thus, the txt is kept together in the directory where the application is installed. The problem is that the path that is specified to the vi "Open Config Data" is not valid anymore, since the instalation directory is different. I'd like to know if there's a way to know where the application was installed. Maybe through a registry? If you have a suggestion, I'd be glad to hear it.
    Kind Regards,
    Bruno Ponne

    In addition to the information that JB provided, you can also do something like what is shown in the attached VI that I use. It takes the approach of stripping the current VI's path till it gets to something that doesn't end in .exe, .llb or .vi. This will give the OS path regardless of where the VI is located. I find this useful because I sometimes build applications utilizing a library of plugins and, depending upon where the plugin library is located, the path to it may not be the same things as the path to the executable.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    Extract my OS path.vi ‏42 KB

  • How do i find out if the iphone 4 was disabled?

    i am on guam, and i bought my iphone 4 used from a private seller and it was loced to AT&T. i have been using a gevey sim to use the phone but all of a sudden the phone does not pick up a signal, i have even tried replacing the antena and tried lots of other sim cards and gevey sims. i saw the newspaper saying smart phones that were stolen will be disabled, and wanted to know is this what happened to my iphone? please help.

    Other than checking with the local police department, there is no real way to check. Its possible to check with your carrier (Verizon, AT&T, Sprint, Vodaphone) and see what they say.

  • At UNIX, where to find out when the Java stack was re-started?

    On the NT platform, we can check Java stack's restart time from SAPMMC.
    Could anybody tell on UNIX, where to check this?
    I looked into SMICM but no findings.
    Thanks!

    Hi,
    You can restart Java Stack from SMICM transaction. i.e SMICM-->Administration and you get many options
    and in the ICM trace file you get these options , I think.. For this SMICM and DisplaY all ...
    Regards,
    moorthy

  • How can i find out all the different meanings of  User ID Paramtrs (USR05)?

    Dear Gurus
    How can i find out all the different meanings of  User ID Parameters (table USR05)?
    Thanks
    Nuno Natividade

    hi,
       the values are stored in the table tpara and they are used to put the landscape of the system,and to know the log of the system.
      FORM DETERMINE_LANDSCAPE .
        SELECT SINGLE * FROM USR05
                        WHERE BNAME = SY-UNAME
                            AND PARID = 'ZLANDSCAPE'.
        IF SY-SUBRC = 0.
          IF NOT USR05-PARVA IS INITIAL.
       REPLACE
          ELSE.
            PERFORM DETERMINE_FROM_CENTRAL_SYSTEM.
          ENDIF.
        ELSE.
          PERFORM DETERMINE_FROM_CENTRAL_SYSTEM.
        ENDIF.
      ENDFORM.                    " determine_landscape
      FORM DETERMINE_LOG_PARAMETER.
        SELECT SINGLE * FROM USR05 WHERE BNAME = SY-UNAME
                            AND PARID = 'ZLOG_USER'
                            AND PARVA = 'X'.
        IF SY-SUBRC = 0.
          WITH_LOG = 'X'.
        ENDIF.
    <REMOVED BY MODERATOR>
    venkat.
    Edited by: Alvaro Tejada Galindo on Mar 4, 2008 12:47 PM

  • How to use ONE query to find out tree structure?

    ID------------upperID----------Name------------------------isFolder
    1------------ 0---------- Folder
    1------------------------------------1
    2------------ 1------------ Folder 1- Sub
    Folder--------------------1
    3------------ 2------------
    Folder1-Item1-A--------------------------0
    4------------ 1------------ Folder 1- Sub
    Item-----------------------0
    Hi all, if I have a table like above to demonstrate the
    folders and item relationship. This structure allows the user to
    create unlimited folders and items.
    Now I would like to use one query to find out the tree
    structure of this table, how could I do the query.
    Any help on this will be highly appreciated!
    Thanks,
    ez

    Also, see this thread:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=7&threadid=12 55788&enterthread=y

  • How do we find out who the query originator is on the DB2 database side?

    OBIEE 11g will typically connect to the database using a generic account. Some of the queries are using too
    many resources on our DB2 database. How do we find out who the query originator is (by userID), on the DB2 database side, and not on the OBIEE side? Our research is leading us to Query banding used in Teradata.
    We are looking for something similar, that would work in DB2. 

    If you go to www.speedtest.net it will display which ISP you're with in the bottom corner. There are a few other websites which tell you too but the URLs escape me at the minute
    Dean
    BTCare Community Mod
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

Maybe you are looking for

  • After upgrade to  9.1.0.79 iTunes freezes after importing CD

    I've just upgraded this morning to iTunes 9.1.0.79 on my Windows 7 laptop. After the upgrade, everything looked OK, except when loading a CD it seemed to be loaded by Windows Media player rather than iTunes (and didn't show up in the iTunes DEVICES)

  • Error while saving the same model in the

    Hi, I have created a model in one package and deleted the model due to some problem.Now i have created the same model but in the different package.Now,in the default webdynpro generated code i am getting errors. Can any one provide solution. Thanks i

  • How to get shadow version of DTP in BI 7.0

    How to get shadow version of DTP in BI 7.0.. while activating DTP i got error as : "Shadow DTP_7KU3789XP6HX9XP3NS6PZ7XAP object can not be resolved - Chain inconsistent" Please can you suggest me

  • Configuring maximum protection mode in dataguard with oracle 10g

    Dear All, I am facing a big problem in my configuration for oracle dataguard in maximum protection mode. as per oracle documentation i have done the following. on the primary database i configured the floowing parameter. LOG_ARCHIVE_DEST_2='SERVICE=C

  • HFM Calculated USD amount won't clear

    Hello, I'm struggling on how to clear out a calculated USD amount in an Entity (which has a default foreign currency). There was originally a functional amount that translated an appropriate USD amount, but after I zeroed out the functional amount (E