Profiling alters GC behaviour

Hi
I have been doing some profiling (well, more like memory debugging really) of a J2EE application and I've noticed something strange.
When I start the application server up 'standalone' with the -verbose:gc option I get a lot of output showing (mainly) minor collections with the occasional major one thrown in. Every time I execute a use case (or part thereof) I get at least one minor collection. This keeps things running nicely and the end user sees no performance degradation. When I hook the profiler (JProbe) up to the server I see none of the minor collections (either in the heap browser or on standard out) and memory usage increases until the heap is full and a major GC initiated. Naturally everything stops for GC. I guess none of this is a problem really if the app server works 'correctly' when there is no profiler in the way however the profiling output caused me some concern as the heap appeared to be being used up before a collection occurred.....
Can anybody shed any light on why profiling (or more accurately I suppose interacting with the instrumented JVM via a profiling tool) affects Garbage Collection in this way ?
Many Thanks
Duncan

Turning on certain JVMPI events disables the generational collector. In particular, this includes OBJECT_ALLOC (this seems to be the motivating example) and OBJECT_FREE, but other events like JNI_GLOBALREF_ALLOC are also in the list.
I'm not sure if the hotspot team had trouble efficiently implementing these call-backs in the generational collector or if they just didn't get around to it.
I'm not really familiar with JProbe, but as long as they're not trying to tell you how long your program is spending during GC vs not, it seems like memory debugging or whatever would still have an accurate view of the heap.
(As far as -verbose:gc goes, the GC_START & GC_END events don't disable the generational collector, so it is possible (if mostly undesirable) to write something that times collections properly - as long as you don't want to do much else.)

Similar Messages

  • Altering SBO behaviour in posting of oDrafts

    Hi experts,
    Is it possible to alter the behaviour of a Draft Form from Posting to Saving As Draft?
    For example, if in any case the user pressed the ADD button instead of right-click then Save as Draft. Because posting of Draft documents will not be permitted to be done manually but through the AddOn. Users can only edit a specific draft document and save it as draft again.
    Im still looking for sample codes here in the forums but if any of you guys have already done this before or have seen the sample code for this scenario please reply to this message with the link or sample code. Thanks thanks thanks in advance!!!
    Regards,
    Roger

    Why not just catch the event of them clicking on "Add" (pVal.ItemUID = "1" & pVal.Form.Mode = addmode & pVal.BeforeAction = true), set bubblevent = false and then do SBO_Application.ActivateMenuItem("5907") (save as draft)
    The tricky part is checking if they are working on a draft, but this can be determined by checking the oForm.Title property to see if it contains the word "Draft"

  • Converting colors to SAME PROFILE alters color coordinates???

    Hello,
    For the color geeks, quite by accident, I noticed a seemingly bizarre behavior:
    Open a new In Design document and assign the standard sRGB color profile, add a single color square with a filled color (I chose #66FF00 or 102,255,0) and select the square with the fill color's numbers visible in the color palette.
    Then, select Edit|Convert to Profile... In the dialog box: RGB Profile: choose sRGB (the same as the source RGB profile), for the intent, choose Absolute Colorimetric. (This means don't alter colors that are within gamut and clip those that are out of gamut, black-point compensation makes no difference either way in this scenario). Select and unselect preview and you'll see the color numbers (and the appearance) change!!! If you do this several times, your green square will keep drifting further and further away from the original coordinate and appearance!
    I thought absolute colorimetric conversions were supposed to preserve in-gamut colors as-is!
    I tried this with a few basic colors and found that the reds, blacks, whites, and grays are left unchanged. The blues and greens are shifted.
    Can anyone explain why colors that are converted to the same color profile using an absolute colorimetric conversion are shifted at all?
    thanks!
    PS. Incidentally, upon further testing, I see no color shifting when converting from Adobe RGB -> Adobe RGB and none when converting from ProPhotoRGB -> ProPhotoRGB (our default profile). So as far as I can tell, shifting only occurs when converting from sRGB -> sRGB. I know it's the smallest standard color profile, so perhaps that's a factor?

    Hi Rob. Thanks for spending time replicating it. I double checked again today and found the same thing (pictured below--the images differ by the 'preview' box being checked). I'm running InDesign CS6 (8.0.1) on a Windows 7 x64 machine.
    Of course, there is no reason to convert from a color profile to the same profile, but it makes me suspicious of the conversion algorithm employed by InDesign. For example, if you have a bunch of links of varying color profiles and you choose to convert to a color managed profile upon exporting to a PDF, does InDesign shift colors/numbers for link containing the same profile that you're exporting to?
    For example, if you're producing a catalog or program, and a client sends an advertisement image containing their logo (with specific colors) in the sRGB color profile and you link it in to an InDesign file and then create a PDF in the sRGB color space, will those logo colors shift?
    I know my experiment doesn't show much color shift, and I wouldn't worry about it, but it really shouldn't shift at all. I'm more curious than concerned.

  • Altering default behaviour of CPC_OVF_NOTIFY_EMT

    Greetings,
    I am part of a group at Simon Fraser University who are developing a program to generate reuse-distance profiles across a variety of benchmark applications. We are testing our work on a Sun Fire T2000 server (64-bit SPARC v9 processor @1200MHz).
    My job has been to create a program that controls the application that we want to sample. I have used the open-source code for cputrack as a guide, and have been using the cpc and pctx libraries quite extensively.
    My program captures a process that is already running by making a call to pctx_capture():
         pctx = pctx_capture(opts->pid, NULL, 1, NULL);
    Thus I have a controlling process and a controlled process. Eventually we will be using SPEC CPU2000 benchmarks as the controlled processes. But for now, I am just using a very long loop that does some arbitrary calculations.
    So far everything is working as it is expected to work, but not as I want it to work. I program the hardware counter to count the number of completed instructions (Instr_cnt) and to send a SIGEMT signal on a counter overflow:
         ind1 = cpc_set_add_request(cpc, set, event1, QUICK_OVF, CPC_COUNT_USER | CPC_COUNT_SYSTEM | CPC_OVF_NOTIFY_EMT, 0, NULL);
    When the controlled process (my long loop) receives the SIGEMT it exits and creates a core file as per the default system behavior on receiving a SIGEMT signal. However, the behavior we want to achieve is for the SIGEMT signal to be sent to the controlling process which can properly handle it and allow the controlled process to run to it's 'natural' completion.
    My question is how can I alter the default behavior of CPC_OVF_NOTIFY_EMT so that a SIGEMT signal is sent to the controlling process and not the controlled process?
    Any help or suggestions would be greatly appreciated.
    Regards,
    James Lang
    SFU

    Thank you for the response.
    I have a decent understanding of the cpc and pctx libraries. My program uses them to take control of the process that we wish to monitor. Thus, like cputrack, I have a controlling process and a controlled/monitored process. This part of my program seems to work perfectly.
    I think my first post probably was not very clear. Let my try to re-state the problem: the cpc library allows me to send a SIGEMT signal on a hardware counter overflow to the process that is being controlled/monitored. I need to divert that signal to the controlling process.
    I've been pointed to a solution using /proc/<pid>/ctl, where <pid> is the pid of the controlled/monitored process. According to /proc man pages, I can write a "control message" to /proc/<pid>/ctl that will allow me to alter the behavior of this process. Using the PCSTRACE control message I should be able to STOP the monitored process when it receives the SIGEMT signal. Then, somehow I need to re-direct the SIGEMT signal to the controlling process.
    I've been searching the web and forums for examples on how to write to /proc/<pid>/ctl using the PCSTRACE control message. I have not found any clear explanation or examples.
    My code fails when I try to write to the ctl file:
           /* Open for writing the /proc/<pid>/ctl file of controlled process. */
         (void) sprintf(filename, "/proc/%d/ctl", p);
         if ((fd = open(filename, O_WRONLY)) < 0) {
              sprintf(msg, "Cannot open %s\n", filename);
              log_message(LOG_FILE, msg);
              exit(1);
            /* Build the Control Message */
            sigset_t *sigset;
            long ctl_msg[2];
            ctl_msg[0] = PCSTRACE;
         premptyset(&sigset);
         praddset(&sigset, SIGEMT);
         ctl_msg[1] = (long)sigset;
         /* write the control message to the ctl file */
         if (write(fd, ctl_msg, 2*sizeof(long)) == -1){
              sprintf(msg, "Cannot write to /proc/<pid>/ctl");
              log_message(LOG_FILE, msg);
              exit(1);
         }Any articles that could help explain writing control messages to /proc would be greatly appreciated. I've gone through the /proc man pages, but I need more detail or examples.
    Message was edited by:
    jaymies

  • Altering scrollbar behaviour

    Hello,
    I m developing a chat application ,when i receive data i append it in JTextArea which is
    enclosed in JScrollPane ,after appending data in JTextArea i have to pull down scroll bar
    to view what i have received ,The functionality i need is that scroll bar will move down after
    appending text rather then upward.How can i do this?

    Hi All,
    Any suggestions please on this.
    Regards,
    Shah

  • LoadVars' sendAndLoad is altering buttons behaviour

    hi, i'm having a weird problem with a rather simple movie:
    1. it loads images from the server using the loadMovie method
    from
    different folders
    2. the folder can be choosen from a combo box component
    3. LoadVars sendAndLoad method send the folder name to a PHP
    script wich
    returns images names in that folder as a string
    the problem is that when you change the folder, i.e., a
    second
    sendAndLoad method is issued, buttons to navigate to
    previous/next image
    begin to behave odd: you need to move the cursor over them
    before
    clicking or the actions aren't executed!?
    you can take a look here. note that initially the buttons
    work fine, the
    problem appears when you change the folder
    http://www.master.esdi.es/interactius06/msocarras/2006/exercises/pint/load_img_web_2.htm
    here is the code (1 frame movie);
    var imagesArr:Array = new Array();
    var lv:LoadVars = new LoadVars();
    lv.dir = cbDir.selectedItem.label;
    lv.sendAndLoad("read_folder_2.php", lv, "POST");
    lv.onLoad = function(success) {
    if (success) {
    stringToArray(this.str);
    } else {
    counter.text = "Error:"+this.str;
    var cbListener
    bject = new Object();
    cbListener.change = function(eventObject
    bject) {
    lv.dir = _root.cbDir.selectedItem.label;
    lv.sendAndLoad("read_folder_2.php", lv, "POST");
    cbDir.addEventListener("change", cbListener)
    function stringToArray(str) {
    imagesArr = str.split("|");
    initialize();
    function initialize() {
    total = imagesArr.length;
    i = 0;
    loadImg(0);
    previous.onRelease = function() {
    if (i > 0) {
    loadImg(-1);
    next.onRelease = function() {
    if (i < total-1) {
    loadImg(1);
    function loadImg(incr) {
    i = i + incr;
    container.loadMovie(lv.dir+"/"+imagesArr
    counter.text = i+1+"/"+total;

    thanks kglad. Flash components works fine alone but are a
    huge source of
    nasty side effects )-:
    kglad wrote:
    > that's a component issue. i don't know if there is a
    work-around, other than removing the problem component(s).

  • How to alter behaviour of pressing enter key to tab key?

    Hi! I want to alter the behaviour when pressing the enter key so it acts like pressing the tab key in a JTextField. That is pressing the enter key will transfer the cursor to the next field instead of the cursor just staying in the current field.
    Thanks in advance.
    rralilin

    Hi,
    there are more than one way to do this:
    1. use an ActionListener and transfer the focus in its actionPerformed(...) method - good for one or a few JTextFields - if there are more, try ...
    2. prelisten the key events via the new KeyboardFocusManager und replace the corresponding key event by a Tab-key-event and redispatch it - this approach enables you, to handle this new behavior for all JTextFields in one central position - possible since JDK 1.4
    Hope, this helps
    greetings Marsian

  • User profile doesn't stop execution due to it's restriction

    Oracle Version:
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    NLSRTL Version 10.2.0.4.0 - ProductionSome initial data:
    SQL> show parameter resource_l
    NAME                                 TYPE        VALUE
    resource_limit                       boolean     TRUEDDL for user:
    CREATE USER TEST_READER
      IDENTIFIED BY VALUES 'AFBD6BEB29FF93AA'
      DEFAULT TABLESPACE USERS
      TEMPORARY TABLESPACE TEMP
      PROFILE ARGUS_READER_PROFILE
      ACCOUNT UNLOCK;
      -- 1 Role for TEST_READER
      GRANT ARGUS_READONLY_USER TO TEST_READER;
      ALTER USER TEST_READER DEFAULT ROLE ALL;
      -- 1 System Privilege for TEST_READER
      GRANT SELECT ANY DICTIONARY TO TEST_READER;
      -- 1 Object Privilege for TEST_READER
        GRANT INSERT ON ARGUS_SYS.PLAN_TABLE TO TEST_READER;Small limit for LOGICAL_READS_PER_CALL = 100000 in profile:
    SQL> ALTER PROFILE ARGUS_READER_PROFILE LIMIT
      2    SESSIONS_PER_USER 10
      3    CPU_PER_SESSION UNLIMITED
      4    CPU_PER_CALL 60000
      5    CONNECT_TIME DEFAULT
      6    IDLE_TIME DEFAULT
      7    LOGICAL_READS_PER_SESSION DEFAULT
      8    LOGICAL_READS_PER_CALL 100000
      9    COMPOSITE_LIMIT DEFAULT
    10    PRIVATE_SGA 31457280
    11    FAILED_LOGIN_ATTEMPTS 10
    12    PASSWORD_LIFE_TIME UNLIMITED
    13    PASSWORD_REUSE_TIME UNLIMITED
    14    PASSWORD_REUSE_MAX UNLIMITED
    15    PASSWORD_LOCK_TIME UNLIMITED
    16    PASSWORD_GRACE_TIME UNLIMITED
    17    PASSWORD_VERIFY_FUNCTION NULL;
    Profile altered.Some huge SQL:
    SQL> conn test_reader/test@****
    Connected.
    SQL>  set autotrace traceonly
    SQL> @C:\work\test\222.sql
    Enter value for ddmmyyyybegin: '19.02.2012'
    old 128:                                          TO_DATE (&ddmmyyyybegin, 'dd.MM.yyyy'))
    new 128:                                          TO_DATE ('19.02.2012', 'dd.MM.yyyy'))
    Enter value for ddmmyyyyend: '19.03.2013'
    old 131:                                           TO_DATE (&ddmmyyyyend, 'dd.MM.yyyy'))))
    new 131:                                           TO_DATE ('19.03.2013', 'dd.MM.yyyy'))))
    Enter value for int851: 851
    old 132:                               AND (o.order_type_id = &int851))
    new 132:                               AND (o.order_type_id = 851))
    Enter value for int900: 10000
    old 138:          WHERE ROWNUM <= &int900) a
    new 138:          WHERE ROWNUM <= 10000) a
    Enter value for int600: 1
    old 139:  WHERE rnum >= &int600
    new 139:  WHERE rnum >= 1
                  FROM argus_sys.service_special_conn rsc,
    ERROR at line 58:
    ORA-02395: exceeded call limit on IO usageProfile worked, statistic for logical reads:
    SQL> select * from v$sesstat where statistic# in (9) and sid = 2146;
           SID STATISTIC#      VALUE
          2146          9     100031New limit for LOGICAL_READS_PER_CALL=150000 in profile
    SQL> ALTER PROFILE ARGUS_READER_PROFILE LIMIT
      2    SESSIONS_PER_USER 10
      3    CPU_PER_SESSION UNLIMITED
      4    CPU_PER_CALL 60000
      5    CONNECT_TIME DEFAULT
      6    IDLE_TIME DEFAULT
      7    LOGICAL_READS_PER_SESSION DEFAULT
      8    LOGICAL_READS_PER_CALL 150000
      9    COMPOSITE_LIMIT DEFAULT
    10    PRIVATE_SGA 31457280
    11    FAILED_LOGIN_ATTEMPTS 10
    12    PASSWORD_LIFE_TIME UNLIMITED
    13    PASSWORD_REUSE_TIME UNLIMITED
    14    PASSWORD_REUSE_MAX UNLIMITED
    15    PASSWORD_LOCK_TIME UNLIMITED
    16    PASSWORD_GRACE_TIME UNLIMITED
    17    PASSWORD_VERIFY_FUNCTION NULL;
    Profile altered.The same query:
    SQL> conn test_reader/test@****
    Connected.
    SQL> set autotrace traceonly
    SQL>  @C:\work\test\222.sql
    Enter value for ddmmyyyybegin: '19.02.2012'
    old 128:                                          TO_DATE (&ddmmyyyybegin, 'dd.MM.yyyy'))
    new 128:                                          TO_DATE ('19.02.2012', 'dd.MM.yyyy'))
    Enter value for ddmmyyyyend: '19.03.2013'
    old 131:                                           TO_DATE (&ddmmyyyyend, 'dd.MM.yyyy'))))
    new 131:                                           TO_DATE ('19.03.2013', 'dd.MM.yyyy'))))
    Enter value for int851: 851
    old 132:                               AND (o.order_type_id = &int851))
    new 132:                               AND (o.order_type_id = 851))
    Enter value for int900: 10000
    old 138:          WHERE ROWNUM <= &int900) a
    new 138:          WHERE ROWNUM <= 10000) a
    Enter value for int600: 1
    old 139:  WHERE rnum >= &int600
    new 139:  WHERE rnum >= 1And.... It lasts and lasts...
    In the second session I see, that logical reads have exceeded 200k and it still going further..
    At last:
    Execution plan...
    Statistics
          98252  recursive calls
              0  db block gets
         409072  consistent gets
              0  physical reads
           1616  redo size
        1688278  bytes sent via SQL*Net to client
           7542  bytes received via SQL*Net from client
            431  SQL*Net roundtrips to/from client
          18906  sorts (memory)
              0  sorts (disk)
           6446  rows processedStatistic from v$sesstat:
    SQL> select * from v$sesstat where statistic# in (9) and sid = 2146;
           SID STATISTIC#      VALUE
          2146          9     409726
    Question is:
    Do I correctly compare statistic value of sesstat 'session logical reads' with 'LOGICAL_READS_PER_CALL' from profile?
    If yes - Why had profile limit been ommited in the second case, while in the first there was a stop?

    Have compared execution plans - they are the same.
    Have made traces.
    For 10K limit:
    ---HERE SQL ----
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.67       0.70          0     100001          0           0
    total        3      0.67       0.70          0     100001          0           0
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 3427 
    Rows     Row Source Operation
          0  SORT AGGREGATE (cr=0 pr=0 pw=0 time=0 us)
          0   NESTED LOOPS  (cr=0 pr=0 pw=0 time=0 us)
          0    TABLE ACCESS BY INDEX ROWID SERVICE_SPECIAL_CONN (cr=0 pr=0 pw=0 time=0 us)
          0     INDEX RANGE SCAN IND_SVC_SPEC_CONN_SERVICE (cr=0 pr=0 pw=0 time=0 us)(object id 1023868)
          0    TABLE ACCESS BY INDEX ROWID SERVICE_SPECIAL_CONN_TYPE (cr=0 pr=0 pw=0 time=0 us)
          0     INDEX UNIQUE SCAN PK_NUMBER_SPECIAL_CONN_TYPE (cr=0 pr=0 pw=0 time=0 us)(object id 1023562)
          0  VIEW  (cr=0 pr=0 pw=0 time=89 us)
          0   COUNT STOPKEY (cr=0 pr=0 pw=0 time=85 us)
          0    VIEW  (cr=0 pr=0 pw=0 time=78 us)
          0     SORT ORDER BY STOPKEY (cr=0 pr=0 pw=0 time=76 us)
       5729      CONCATENATION  (cr=99989 pr=0 pw=0 time=708938 us)
       5729       NESTED LOOPS  (cr=99989 pr=0 pw=0 time=703205 us)
       5729        NESTED LOOPS OUTER (cr=82798 pr=0 pw=0 time=588603 us)
       5729         NESTED LOOPS  (cr=82790 pr=0 pw=0 time=565680 us)
       5730          NESTED LOOPS  (cr=65609 pr=0 pw=0 time=451164 us)
       5730           NESTED LOOPS  (cr=48414 pr=0 pw=0 time=359469 us)
       5730            NESTED LOOPS  (cr=31220 pr=0 pw=0 time=256264 us)
       5730             NESTED LOOPS  (cr=14025 pr=0 pw=0 time=135922 us)
       5730              HASH JOIN RIGHT OUTER (cr=2563 pr=0 pw=0 time=67108 us)
         41               TABLE ACCESS FULL MEASURED_DAMAGE_KIND (cr=3 pr=0 pw=0 time=164 us)
       5730               INLIST ITERATOR  (cr=2560 pr=0 pw=0 time=45976 us)
       5730                TABLE ACCESS BY INDEX ROWID ORDER_L (cr=2560 pr=0 pw=0 time=45974 us)
       5730                 INDEX RANGE SCAN IND6_ORDER_ORDER_TYPE_STATE (cr=17 pr=0 pw=0 time=11554 us)(object id 1023412)
       5730              TABLE ACCESS BY INDEX ROWID DEPARTMENT_L (cr=11462 pr=0 pw=0 time=58655 us)
       5730               INDEX UNIQUE SCAN PK_DEPARTMENT_L (cr=5732 pr=0 pw=0 time=30776 us)(object id 1023205)
       5730             TABLE ACCESS BY INDEX ROWID INSTALLATION_L (cr=17195 pr=0 pw=0 time=105341 us)
       5730              INDEX UNIQUE SCAN PK_INSTALLATION_L (cr=11462 pr=0 pw=0 time=63663 us)(object id 1023366)
       5730            TABLE ACCESS BY INDEX ROWID LIN_ORDER (cr=17194 pr=0 pw=0 time=94252 us)
       5730             INDEX UNIQUE SCAN PK_LIN_ORDER (cr=11462 pr=0 pw=0 time=60346 us)(object id 1023159)
       5730           TABLE ACCESS BY INDEX ROWID ORDER_LDN (cr=17195 pr=0 pw=0 time=75887 us)
       5730            INDEX UNIQUE SCAN IND_ORDER_LDN (cr=11462 pr=0 pw=0 time=42138 us)(object id 1023370)
       5729          TABLE ACCESS BY INDEX ROWID SERVICE_L (cr=17192 pr=0 pw=0 time=109193 us)
       5729           INDEX UNIQUE SCAN PK_SERVICE_L (cr=11460 pr=0 pw=0 time=67339 us)(object id 1023216)
          7         TABLE ACCESS BY INDEX ROWID SERVICE_LINE_TYPE (cr=8 pr=0 pw=0 time=16179 us)
          7          INDEX UNIQUE SCAN PK_LINE_TYPE (cr=1 pr=0 pw=0 time=7396 us)(object id 1023563)
       5729        TABLE ACCESS BY INDEX ROWID CLIENT (cr=17191 pr=0 pw=0 time=101030 us)
       5729         INDEX UNIQUE SCAN PK_CLIENT (cr=11460 pr=0 pw=0 time=61941 us)(object id 1023006)
          0       NESTED LOOPS  (cr=0 pr=0 pw=0 time=0 us)
          0        NESTED LOOPS  (cr=0 pr=0 pw=0 time=0 us)
          0         NESTED LOOPS  (cr=0 pr=0 pw=0 time=0 us)
          0          NESTED LOOPS  (cr=0 pr=0 pw=0 time=0 us)
          0           NESTED LOOPS OUTER (cr=0 pr=0 pw=0 time=0 us)
          0            NESTED LOOPS  (cr=0 pr=0 pw=0 time=0 us)
          0             NESTED LOOPS  (cr=0 pr=0 pw=0 time=0 us)
          0              NESTED LOOPS OUTER (cr=0 pr=0 pw=0 time=0 us)
          0               TABLE ACCESS BY INDEX ROWID ORDER_L (cr=0 pr=0 pw=0 time=0 us)
          0                INDEX RANGE SCAN IND_ORDER_FILTER_DATE (cr=0 pr=0 pw=0 time=0 us)(object id 1023432)
          0               TABLE ACCESS BY INDEX ROWID MEASURED_DAMAGE_KIND (cr=0 pr=0 pw=0 time=0 us)
          0                INDEX UNIQUE SCAN PK_MEASURED_DAMAGE_KIND (cr=0 pr=0 pw=0 time=0 us)(object id 1023179)
          0              TABLE ACCESS BY INDEX ROWID INSTALLATION_L (cr=0 pr=0 pw=0 time=0 us)
          0               INDEX UNIQUE SCAN PK_INSTALLATION_L (cr=0 pr=0 pw=0 time=0 us)(object id 1023366)
          0             TABLE ACCESS BY INDEX ROWID SERVICE_L (cr=0 pr=0 pw=0 time=0 us)
          0              INDEX UNIQUE SCAN PK_SERVICE_L (cr=0 pr=0 pw=0 time=0 us)(object id 1023216)
          0            TABLE ACCESS BY INDEX ROWID SERVICE_LINE_TYPE (cr=0 pr=0 pw=0 time=0 us)
          0             INDEX UNIQUE SCAN PK_LINE_TYPE (cr=0 pr=0 pw=0 time=0 us)(object id 1023563)
          0           TABLE ACCESS BY INDEX ROWID DEPARTMENT_L (cr=0 pr=0 pw=0 time=0 us)
          0            INDEX UNIQUE SCAN PK_DEPARTMENT_L (cr=0 pr=0 pw=0 time=0 us)(object id 1023205)
          0          TABLE ACCESS BY INDEX ROWID LIN_ORDER (cr=0 pr=0 pw=0 time=0 us)
          0           INDEX UNIQUE SCAN PK_LIN_ORDER (cr=0 pr=0 pw=0 time=0 us)(object id 1023159)
          0         TABLE ACCESS BY INDEX ROWID CLIENT (cr=0 pr=0 pw=0 time=0 us)
          0          INDEX UNIQUE SCAN PK_CLIENT (cr=0 pr=0 pw=0 time=0 us)(object id 1023006)
          0        TABLE ACCESS BY INDEX ROWID ORDER_LDN (cr=0 pr=0 pw=0 time=0 us)
          0         INDEX UNIQUE SCAN IND_ORDER_LDN (cr=0 pr=0 pw=0 time=0 us)(object id 1023370)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       1        0.00          0.00
      SQL*Net break/reset to client                   2        0.03          0.03
    ********************************************************************************For 15K limit:
    ---HERE SQL ----
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      3.02       5.51         31        792          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch      431     20.57     161.50      10751     262214          0        6446
    total      433     23.59     167.02      10782     263006          0        6446
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 3427 
    Rows     Row Source Operation
       6433  SORT AGGREGATE (cr=17212 pr=756 pw=0 time=5429792 us)
       1750   NESTED LOOPS  (cr=17212 pr=756 pw=0 time=4849653 us)
       1750    TABLE ACCESS BY INDEX ROWID SERVICE_SPECIAL_CONN (cr=15067 pr=756 pw=0 time=4791139 us)
       1750     INDEX RANGE SCAN IND_SVC_SPEC_CONN_SERVICE (cr=13316 pr=376 pw=0 time=2319918 us)(object id 1023868)
       1750    TABLE ACCESS BY INDEX ROWID SERVICE_SPECIAL_CONN_TYPE (cr=2145 pr=0 pw=0 time=37156 us)
       1750     INDEX UNIQUE SCAN PK_NUMBER_SPECIAL_CONN_TYPE (cr=395 pr=0 pw=0 time=17962 us)(object id 1023562)
       6446  VIEW  (cr=116530 pr=0 pw=0 time=2185799 us)
       6446   COUNT STOPKEY (cr=116530 pr=0 pw=0 time=2127750 us)
       6446    VIEW  (cr=116530 pr=0 pw=0 time=2114840 us)
       6446     SORT ORDER BY STOPKEY (cr=116530 pr=0 pw=0 time=2082566 us)
       6446      CONCATENATION  (cr=116530 pr=0 pw=0 time=948468 us)
       6432       NESTED LOOPS  (cr=116258 pr=0 pw=0 time=946404 us)
       6432        NESTED LOOPS OUTER (cr=96958 pr=0 pw=0 time=759862 us)
       6432         NESTED LOOPS  (cr=96950 pr=0 pw=0 time=727695 us)
       6432          NESTED LOOPS  (cr=77650 pr=0 pw=0 time=573315 us)
       6432           NESTED LOOPS  (cr=58350 pr=0 pw=0 time=463952 us)
       6432            NESTED LOOPS  (cr=39050 pr=0 pw=0 time=328850 us)
       6432             NESTED LOOPS  (cr=19750 pr=0 pw=0 time=180901 us)
       6432              HASH JOIN RIGHT OUTER (cr=6884 pr=0 pw=0 time=90821 us)
         41               TABLE ACCESS FULL MEASURED_DAMAGE_KIND (cr=3 pr=0 pw=0 time=158 us)
       6432               INLIST ITERATOR  (cr=6881 pr=0 pw=0 time=64458 us)
       6432                TABLE ACCESS BY INDEX ROWID ORDER_L (cr=6881 pr=0 pw=0 time=1006803 us)
       6432                 INDEX RANGE SCAN IND6_ORDER_ORDER_TYPE_STATE (cr=3919 pr=0 pw=0 time=961726 us)(object id 1023412)
       6432              TABLE ACCESS BY INDEX ROWID DEPARTMENT_L (cr=12866 pr=0 pw=0 time=92628 us)
       6432               INDEX UNIQUE SCAN PK_DEPARTMENT_L (cr=6434 pr=0 pw=0 time=47602 us)(object id 1023205)
       6432             TABLE ACCESS BY INDEX ROWID INSTALLATION_L (cr=19300 pr=0 pw=0 time=153272 us)
       6432              INDEX UNIQUE SCAN PK_INSTALLATION_L (cr=12866 pr=0 pw=0 time=93766 us)(object id 1023366)
       6432            TABLE ACCESS BY INDEX ROWID LIN_ORDER (cr=19300 pr=0 pw=0 time=135255 us)
       6432             INDEX UNIQUE SCAN PK_LIN_ORDER (cr=12866 pr=0 pw=0 time=85808 us)(object id 1023159)
       6432           TABLE ACCESS BY INDEX ROWID ORDER_LDN (cr=19300 pr=0 pw=0 time=108460 us)
       6432            INDEX UNIQUE SCAN IND_ORDER_LDN (cr=12866 pr=0 pw=0 time=60726 us)(object id 1023370)
       6432          TABLE ACCESS BY INDEX ROWID SERVICE_L (cr=19300 pr=0 pw=0 time=159645 us)
       6432           INDEX UNIQUE SCAN PK_SERVICE_L (cr=12866 pr=0 pw=0 time=97446 us)(object id 1023216)
          7         TABLE ACCESS BY INDEX ROWID SERVICE_LINE_TYPE (cr=8 pr=0 pw=0 time=28277 us)
          7          INDEX UNIQUE SCAN PK_LINE_TYPE (cr=1 pr=0 pw=0 time=15130 us)(object id 1023563)
       6432        TABLE ACCESS BY INDEX ROWID CLIENT (cr=19300 pr=0 pw=0 time=148792 us)
       6432         INDEX UNIQUE SCAN PK_CLIENT (cr=12866 pr=0 pw=0 time=88216 us)(object id 1023006)
         14       NESTED LOOPS  (cr=272 pr=0 pw=0 time=2903 us)
         14        NESTED LOOPS  (cr=228 pr=0 pw=0 time=2584 us)
         14         NESTED LOOPS  (cr=184 pr=0 pw=0 time=2155 us)
         14          NESTED LOOPS  (cr=140 pr=0 pw=0 time=1758 us)
         14           NESTED LOOPS OUTER (cr=110 pr=0 pw=0 time=1432 us)
         14            NESTED LOOPS  (cr=110 pr=0 pw=0 time=1367 us)
         14             NESTED LOOPS  (cr=66 pr=0 pw=0 time=967 us)
         14              NESTED LOOPS OUTER (cr=22 pr=0 pw=0 time=584 us)
         14               TABLE ACCESS BY INDEX ROWID ORDER_L (cr=6 pr=0 pw=0 time=362 us)
         14                INDEX RANGE SCAN IND_ORDER_FILTER_DATE (cr=3 pr=0 pw=0 time=136 us)(object id 1023432)
         14               TABLE ACCESS BY INDEX ROWID MEASURED_DAMAGE_KIND (cr=16 pr=0 pw=0 time=130 us)
         14                INDEX UNIQUE SCAN PK_MEASURED_DAMAGE_KIND (cr=2 pr=0 pw=0 time=66 us)(object id 1023179)
         14              TABLE ACCESS BY INDEX ROWID INSTALLATION_L (cr=44 pr=0 pw=0 time=211 us)
         14               INDEX UNIQUE SCAN PK_INSTALLATION_L (cr=30 pr=0 pw=0 time=131 us)(object id 1023366)
         14             TABLE ACCESS BY INDEX ROWID SERVICE_L (cr=44 pr=0 pw=0 time=209 us)
         14              INDEX UNIQUE SCAN PK_SERVICE_L (cr=30 pr=0 pw=0 time=137 us)(object id 1023216)
          0            TABLE ACCESS BY INDEX ROWID SERVICE_LINE_TYPE (cr=0 pr=0 pw=0 time=39 us)
          0             INDEX UNIQUE SCAN PK_LINE_TYPE (cr=0 pr=0 pw=0 time=16 us)(object id 1023563)
         14           TABLE ACCESS BY INDEX ROWID DEPARTMENT_L (cr=30 pr=0 pw=0 time=155 us)
         14            INDEX UNIQUE SCAN PK_DEPARTMENT_L (cr=16 pr=0 pw=0 time=81 us)(object id 1023205)
         14          TABLE ACCESS BY INDEX ROWID LIN_ORDER (cr=44 pr=0 pw=0 time=262 us)
         14           INDEX UNIQUE SCAN PK_LIN_ORDER (cr=30 pr=0 pw=0 time=181 us)(object id 1023159)
         14         TABLE ACCESS BY INDEX ROWID CLIENT (cr=44 pr=0 pw=0 time=185 us)
         14          INDEX UNIQUE SCAN PK_CLIENT (cr=30 pr=0 pw=0 time=121 us)(object id 1023006)
         14        TABLE ACCESS BY INDEX ROWID ORDER_LDN (cr=44 pr=0 pw=0 time=174 us)
         14         INDEX UNIQUE SCAN IND_ORDER_LDN (cr=30 pr=0 pw=0 time=101 us)(object id 1023370)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                     431        0.00          0.00
      SQL*Net more data to client                   643        0.00          0.07
      SQL*Net message from client                   431     2066.60       3307.29
      db file sequential read                       756        0.01          4.49
    ********************************************************************************After, I'de made serial test to determine the stop point and found that LOGICAL_READS_PER_CALL=116700
    Which is very close to value in the following string of second trace:
      6446   COUNT STOPKEY (cr=116530 pr=0 pw=0 time=2127750 us)Well. I'm ready to admit, my understanding was wrong.
    After some investigation, I've found, that 'CR' (consistrent reads) from trace refers to 'consistent gets' (While I queried 'session logical reads') wait from v$sesstat and in profile it is called 'LOGICAL_READS'.
    Sorry, my fault.

  • POPUP LOV Wildcard behaviour

    I have a popup lov where most users will enter wildcards at the end of the search field, however when the rows for lov are retrieved , a wild card also added appears to be added to the front
    eg user enters 12%, however when the rows come back anything matching %12% is retrieved. is there a way to alter this behaviour?

    Hi Florian,
    no that's not possible, it will always do a LIKE %xxx% search.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Slow to load movies

    Hi all,
    Well I've finally had it with Apple TV - current gen.
    Seems to be getting slower to rent a movie. 540 hours was my initial time estimate that dropped to 3 hours and then just sits for a while. Eventually 23 minutes and after 20 minutes I'm still at 23 minutes or sometimes more.
    This has resulted in me now renting The Hobbit twice!
    Here's something that I'd love to know about - the first time I rented The Hobbit was Friday night. We waited 1 hour and finally it started. But it was so late we went to bed. By the time I got home the next day - it had expired...
    So I rented it again Saturday night. This time after sitting for an hour waiting - I got fedup and went to bed. I left it sitting on so it might download.
    Sunday night I sit down at 6pm to check and it says Ready to Play. But my wife and kid are busy so I go to My Computer and watch a previously downloaded podcast. Then another - both on my iMac so I'm streaming.
    Then when we sit down to watch the movie - which I've rented twice now - it says 3 hours again and the previously filled up white download bar is gone and it's back to the 23 minute mark where I finished on Friday night before hitting bed... hmmm.
    This is terrible. I mean Youtube works fine. Trailers work fine, Vimeo works fine. My internet works fine, I did the network check on the ATV and it's fine - so why oh why does this happen?
    I've checked on a few forums and there are dozens - yep dozens of pages of complaints about this very problem. Apple please address this.
    Regards
    Rob

    I don't know if this is still a problem for you, but I first noticed it when I upgraded to 7.2 in Tiger.
    It seems that QT is loading the whole movie into RAM before it starts playing. This is really annoying with long movies, the beachball just spins until QT has loaded all 350 megs into a buffer somewhere. I've started using VLC instead. No settings that I can find will alter this behaviour, and I've tried moving various third-party plug-ins around to no avail.
    Note: the behaviour persists with QT 7.3 in Tiger (10.4.10) but seems to have been fixed in Leopard (10.5). Since I'm slowly migrating to Leopard, I guess the problem is semi-solved.

  • Some questions about using non-english characters and keyboard layouts

    I've found a lot of guides about how to enable characters in Linux, and that is easy enough, but I want to understand it better.
    The way that I understand it, if you don't enable a given set of characters in locale.gen, then in theory you should not be able to either use or display a that set of characters in any programs (however, certain programs, like web-browsers seem to have work arounds).
    Furthermore, in order to be able to type characters in X programs, you need to enable those keyboard setups in your xorg.conf (in addition to enabling those locales in locale.gen).  I don't think that this effects the displaying of characters
    Then, Last, you need a way to switch back and forth between different keyboard layouts within your X environment in order to type those characters. There are programs to assist in switching keyboard layouts provided by some DE's.  By using these keyboard layout tools, I alter the behaviour of all programs started in X.  (for example, swithing keyboard layouts in gnome's settings will alter the behaviour of kde programs, firefox and openoffice.)
    How close am I?
    A few more questions:
    If I'm a Spanish student which locales do I need to enable.  There is a long list of locales that start with ES, and I don't know if there are any drawbacks to enabling unnecessary locales. I think that the ones that I need are es_ES* (Spanish spanish?) and es_MX* (Mexican spanish?).
    What is do the *@EURO locales do?
    what does the locale setting in rc.conf do?

    I've found a lot of guides about how to enable characters in Linux, and that is easy enough, but I want to understand it better.
    The way that I understand it, if you don't enable a given set of characters in locale.gen, then in theory you should not be able to either use or display a that set of characters in any programs (however, certain programs, like web-browsers seem to have work arounds).
    Furthermore, in order to be able to type characters in X programs, you need to enable those keyboard setups in your xorg.conf (in addition to enabling those locales in locale.gen).  I don't think that this effects the displaying of characters
    Then, Last, you need a way to switch back and forth between different keyboard layouts within your X environment in order to type those characters. There are programs to assist in switching keyboard layouts provided by some DE's.  By using these keyboard layout tools, I alter the behaviour of all programs started in X.  (for example, swithing keyboard layouts in gnome's settings will alter the behaviour of kde programs, firefox and openoffice.)
    How close am I?
    A few more questions:
    If I'm a Spanish student which locales do I need to enable.  There is a long list of locales that start with ES, and I don't know if there are any drawbacks to enabling unnecessary locales. I think that the ones that I need are es_ES* (Spanish spanish?) and es_MX* (Mexican spanish?).
    What is do the *@EURO locales do?
    what does the locale setting in rc.conf do?

  • Automatic Retry run-time error step in TestStand

    Hi, I am using an instrument at many places in my sequence (let's say 5 times). I am using the Labview instrument driver. Sometimes (every 50 calls), the instrument driver call gives me a run-time error because the instrument is somehow busy. But usually by doing a retry on the step that caused the run-time error, it works. However, in few cases, the instrument is really defective. In order to make my sequence more robust, I want all that handled in TestStand (I want the operator to stay away from the big grey popup. Many of them freaks out when they see this…). I was thinking adding 2 callbacks to my sequence: 1)        Post run-time error: a.        If local “index” == 1, run cleanupb.        If “index” == 0, retry the current step (by manipulating the current step id)c.        Incrementing “index” to 12)        Post step:a.        If step.Result.Status != “Èrror”, ”index” = 0 Index is a local variable in my sequence This algo might work, but is there another way of doing this? You can loop on the failures, but not on the errors.    
    Thanks
    Alexandre

    Alexandre,
    there are many ways to accomplish your task.
    Here's a small list:
    - Disable default error handling and "do error handling in your sequence" (using gotos with precondition) 
    - Use the SequenceFilePostStepRuntimeError Callback
    - Handle the retry-functionality within your codemodule
    I'd suggest you to choose either the second or third option. As Juergen already stated, you can alter the behaviour of TS in regard to runtime errors. The default behaviour displays a dialog asking the operator on how to react. On automated systems, this setting is nonsense, therefore it is suggested to switch to "Run Cleanup". I wouldn't choose any other setting here.
    Using the Callback Sequence is nice since it can be used in a very general way and you can call certain alternativ test strategies if the instrument fails to work.
    Implementing the error handling within the codemodule nevertheless optimizes execution times and could be better in other aspects as well. But on the other side, you have to deside what should happen if the error cannot be solved by the module itself.....
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Two EO questions (dynamic attrs and validation)

    Hello all (I really hope Steve M gets to see this),
    I am re-visiting an old project (fantasy) of mine to implement spell checking of certain fields in an Entity Object, The concept is that I will implement the spell checking in an overriden validateEntity method. The way I would like this to work is for spelling errors to be reported to the user when they try to commit; if the user commits again without making any changes, I will assume they want to ignore the spelling errors and will allow the Entity to commit. In order to implement this in a really cooI and generic way, Ineed to be able to do a couple of things that have really stumped me.
    The first is in relation to entity validation. The doc states that any EO is assumed to be valid after it is read from the database. Is there any way that I can alter this behaviour so that the EO needs to be re-validated even if it has just been read from the database? Extra credit if this can be done in such a fashion as to not cause the EO's data to be re-posted to the database if the user doesn't make any changes. I have tried over-riding lots of things in the EntityImpl and EntityDefImpl, but I cannot find the right place to do this.
    The second thing I would like to do is to add dynamic attributes to an EO instance. The reason I want to do this is so that I can add the spell check code in a generic framework extension class and not have to modify each EO for this behaviour. The attribute I want to add is used to track whether spell checking has already been done on the EO row. I cannot use a java class member variable, as the same instance of the java class is not necessarily used across different web requests - in fact, I have found that the same instance is rarely-to-never re-used in my testing. I can make this work by adding a transient attribute to the EO itself, but this defeats my goal of a generic implementation. I have found some methods in EntityImpl (setDynamicAttributeValue and getDynamicAttributeValue), but they don't appear to do what I want. I've also played around a bit with the EntityDefImpl, but no luck there either.
    I do promise to post a blog entry detailing how to do this if this pans out. We have looked at some nice JavaScript-based spell checkers that work well (give suggestions in a pop-up window), but we would like multiple fields on a web page to be spell-checked, and this is difficult to do with those spell-checkers (particularly when you have an af:table with varying number rows).
    Any assistance is appreciated,
    John

    Your mechanism to manage css style classes is a good approach; I have used that many times. I do wonder why the style classes were implemented as a list, instead of a set, but there may be good use cases for using a list.
    In some cases you can also consider using CSS PsuedoClasses, which were introduced in JavaFX 8. These are a bit easier to use, especially if you have only two options. But a use case might look like:
    public class Message {
        public enum Status { NORMAL, WARNING, CRITICAL }
        private final ObjectProperty<Status> status = new SimpleObjectProperty<>(Status.NORMAL);
        private final StringProperty message = new SimpleStringProperty();
        // constructor, getters, setters, and property accessors....
    public Label createLabel(Message message) {
        PseudoClass warning = PseudoClass.getPseudoClass("warning");
        PseudoClass critical = PseudoClass.getPseudoClass("critical");
        Label label = new Label();
        label.textProperty().bind(message.messageProperty());
        message.statusProperty().addListener((obs, oldStatus, newStatus) -> {
            label.pseudoClassStateChanged(warning, newStatus == Message.Status.WARNING);
            label.pseudoClassStateChanged(critical, newStatus == Message.Status.CRITICAL);
        return label ;
    And then your css looks like
    .label:warning {
        -fx-text-fill: orange ;
    .label:critical {
        -fx-text-fill: red ;

  • Abcdef

    to_date('03-23-2010','mm-dd-yyyy')
    to_date('2008-06-08','yyyy-mm-dd')
    DBMS_OUTPUT.PUT_LINE(' 4th Where clause: ' || WHERE_CLAUSE);
    HKey_Local Machine -> Software -> Microsoft -> MSLicensing
    topas
    Removing batch of Files in linux:
    =====================================
    find . -name "*.arc" -mtime +20 -exec rm -f {} \;
    find . -name "*.dbf" -mtime +60 -exec mv {} /backup/Arch_Bkp_02May11/ \;
    ALTER DATABASE
    SET STANDBY DATABASE TO MAXIMIZE {AVAILABILITY | PERFORMANCE | PROTECTION};
    ================================================================================
    Find top N records:
    ===================
    select * from (select ename from emp order by sal)
    where rownum <=n;
    Find top Nth record: (n=0 for 1st highest)
    =========================================
    select * from emp a
    where (n =
    (select count(distinct b.sal) from emp b
    where b.sal > a.sal));
    Query for Listing last n records from the table
    =================================================
    select * from (select * from emp order by rownum desc) where rownum<4
    HOW TO tablespace wise and file wise info
    ============================
    col file_name for a45
    col tablespace_name for a15
    set linesize 132
    select a.tablespace_name,a.file_name,a.AUTOEXTENSIBLE,----a.status,
    round(a.bytes/1024/1024,2) Total_MB,
    round(sum(b.bytes)/1024/1024,2) Free_MB,
    round((a.bytes/1024/1024 - sum(b.bytes)/1024/1024),2) Used_MB
    from dba_data_files a,dba_free_space b
    where a.file_id=b.file_id
    and a.tablespace_name=b.tablespace_name
    group by a.tablespace_name,b.file_id,a.file_name,a.bytes,a.AUTOEXTENSIBLE--,a.status
    order by tablespace_name;
    col tablespace_name for a15
    SELECT tablespace_name,ts_#,num_files,sum_free_mbytes,count_blocks,max_mbytes,
    sum_alloc_mbytes,DECODE(sum_alloc_mbytes,0,0,100 * sum_free_mbytes /sum_alloc_mbytes ) AS pct_free
    FROM (SELECT v.name AS tablespace_name,ts# AS ts_#,
    NVL(SUM(bytes)/1048576,0) AS sum_alloc_mbytes,
    NVL(COUNT(file_name),0) AS num_files
    FROM dba_data_files f,v$tablespace v
    WHERE v.name = f.tablespace_name (+)
    GROUP BY v.name,ts#),
    (SELECT v.name AS fs_ts_name,ts#,NVL(MAX(bytes)/1048576,0) AS max_mbytes,
    NVL(COUNT(BLOCKS) ,0) AS count_blocks,
    NVL(SUM(bytes)/1048576,0) AS sum_free_mbytes
    FROM dba_free_space f,v$tablespace v
    WHERE v.name = f.tablespace_name(+)
    GROUP BY v.name,ts#)
    WHERE tablespace_name = fs_ts_name
    ORDER BY tablespace_name;
    ==================================
    col file_name for a45
    col tablespace_name for a15
    set linesize 132
    select a.tablespace_name,a.file_name,a.AUTOEXTENSIBLE,----a.status,
    round(a.bytes/1024/1024,2) Total_MB,
    round(sum(b.bytes)/1024/1024,2) Free_MB,
    round((a.bytes/1024/1024 - sum(b.bytes)/1024/1024),2) Used_MB
    from dba_data_files a,dba_free_space b
    where a.file_id=b.file_id
    and a.tablespace_name=b.tablespace_name
    group by a.tablespace_name,b.file_id,a.file_name,a.bytes,a.AUTOEXTENSIBLE--,a.status
    order by file_name;
    =============================================================
    HOW TO FIND CHILD TABLES
    ===========================================
    col column_name for a30
    col owner for a10
    set linesize 132
    select --a.table_name parent_table,
    b.owner,
    b.table_name child_table
    , a.constraint_name , b.constraint_name
    from dba_constraints a ,dba_constraints b
    where a.owner='LEIQA20091118'
    and a.constraint_name = b.r_constraint_name
    --and b.constraint_type = 'R'
    and a.constraint_type IN ('P','U')
    and a.table_name =upper('&tabname');
    List foreign keys and referenced table and columns:
    ======================================================
    SELECT DECODE(c.status,'ENABLED','C','c') t,
    SUBSTR(c.constraint_name,1,31) relation,
    SUBSTR(cc.column_name,1,24) columnname,
    SUBSTR(p.table_name,1,20) tablename
    FROM user_cons_columns cc, user_constraints p,
    user_constraints c
    WHERE c.table_name = upper('&table_name')
    AND c.constraint_type = 'R'
    AND p.constraint_name = c.r_constraint_name
    AND cc.constraint_name = c.constraint_name
    AND cc.table_name = c.table_name
    UNION ALL
    SELECT DECODE(c.status,'ENABLED','P','p') t,
    SUBSTR(c.constraint_name,1,31) relation,
    SUBSTR(cc.column_name,1,24) columnname,
    SUBSTR(c.table_name,1,20) tablename
    FROM user_cons_columns cc, user_constraints p,
    user_constraints c
    WHERE p.table_name = upper('PERSON')
    AND p.constraint_type in ('P','U')
    AND c.r_constraint_name = p.constraint_name
    AND c.constraint_type = 'R'
    AND cc.constraint_name = c.constraint_name
    AND cc.table_name = c.table_name
    ORDER BY 1, 4, 2, 3
    List a child table's referential constraints and their associated parent table:
    ==============================================================
    SELECT t.owner CHILD_OWNER,
    t.table_name CHILD_TABLE,
    t.constraint_name FOREIGN_KEY_NAME,
    r.owner PARENT_OWNER,
    r.table_name PARENT_TABLE,
    r.constraint_name PARENT_CONSTRAINT
    FROM user_constraints t, user_constraints r
    WHERE t.r_constraint_name = r.constraint_name
    AND t.r_owner = r.owner
    AND t.constraint_type='R'
    AND t.table_name = <child_table_name>;
    parent tables:
    ================
    select constraint_name,constraint_type,r_constraint_name
    from dba_constraints
    where table_name ='TM_PAY_BILL'
    and constraint_type in ('R');
    select CONSTRAINT_NAME,TABLE_NAME,COLUMN_NAME from user_cons_columns where table_name='FS_FR_TERMINALLOCATION';
    select a.OWNER,a.TABLE_NAME,a.CONSTRAINT_NAME,a.CONSTRAINT_TYPE
    ,b.COLUMN_NAME,b.POSITION
    from dba_constraints a,dba_cons_columns b
    where a.CONSTRAINT_NAME=b.CONSTRAINT_NAME
    and a.TABLE_NAME=b.TABLE_NAME
    and a.table_name=upper('TM_GEN_INSTRUCTION')
    and a.constraint_type in ('P','U');
    select constraint_name,constraint_type,r_constraint_name
    from dba_constraints
    where table_name ='TM_PAY_BILL'
    and constraint_type in ('R');
    ===============================================
    HOW TO FIND INDEXES
    =====================================
    col column_name for a30
    col owner for a25
    select a.owner,a.index_name, --a.table_name,a.tablespace_name,
    b.column_name,b.column_position
    from dba_indexes a,dba_ind_columns b
    where a.owner='SCE'
    and a.index_name=b.index_name
    and a.table_name = upper('&tabname')
    order by a.index_name,b.column_position;
    col column_name for a40
    col index_owner for a15
    select index_owner,index_name,column_name,
    column_position from dba_ind_columns
    where table_owner= upper('VISILOGQA19') and table_name ='TBLTRANSACTIONGROUPMAIN';
    -- check for index on FK
    ===============================
    set linesize 121
    col status format a6
    col columns format a30 word_wrapped
    col table_name format a30 word_wrapped
    SELECT DECODE(b.table_name, NULL, 'Not Indexed', 'Indexed' ) STATUS, a.table_name, a.columns, b.columns from (
    SELECT SUBSTR(a.table_name,1,30) table_name,
    SUBSTR(a.constraint_name,1,30) constraint_name, MAX(DECODE(position, 1,
    SUBSTR(column_name,1,30),NULL)) || MAX(DECODE(position, 2,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position, 3,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position, 4,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position, 5,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position, 6,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position, 7,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position, 8,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position, 9,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position,10,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position,11,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position,12,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position,13,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position,14,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position,15,', '|| SUBSTR(column_name,1,30),NULL)) || max(DECODE(position,16,', '|| SUBSTR(column_name,1,30),NULL)) columns
    from user_cons_columns a, user_constraints b
    WHERE a.constraint_name = b.constraint_name
    AND constraint_type = 'R'
    GROUP BY SUBSTR(a.table_name,1,30), SUBSTR(a.constraint_name,1,30) ) a, (
    SELECT SUBSTR(table_name,1,30) table_name,
    SUBSTR(index_name,1,30) index_name, MAX(DECODE(column_position, 1,
    SUBSTR(column_name,1,30),NULL)) || MAX(DECODE(column_position, 2,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position, 3,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position, 4,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position, 5,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position, 6,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position, 7,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position, 8,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position, 9,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position,10,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position,11,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position,12,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position,13,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position,14,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position,15,', '||SUBSTR(column_name,1,30),NULL)) || max(DECODE(column_position,16,', '||SUBSTR(column_name,1,30),NULL)) columns
    from user_ind_columns group by SUBSTR(table_name,1,30), SUBSTR(index_name,1,30) ) b
    where a.table_name = b.table_name (+) and b.columns (+) like a.columns || '%';
    ==================================================
    HOW TO FIND unique keys
    ===========================
    col column_name for a30
    col owner for a10
    set linesize 132
    select a.owner , --a.table_name,
    a.constraint_name,a.constraint_type,
    b.column_name,b.position
    from dba_constraints a, dba_cons_columns b
    where a.table_name = upper('&tabname')
    and a.constraint_name = b.constraint_name
    and a.constraint_type in ('P','U')
    and a.owner=b.owner
    order by a.owner,a.constraint_name,b.position;
    ==================================
    HOW TO FIND ROWlocks
    ======================
    col object_name for a30
    col terminal for a20
    set linesize 1000
    col spid for a10
    col osuser for a15
    select to_char(logon_time,'DD-MON-YYYY HH24:MI:SS'),OSUSER,--owner,
    s.sid, s.serial#,p.spid,
    s.terminal,l.locked_mode,o.object_name,l.ORACLE_USERNAME --,o.object_type
    from v$session s, dba_objects o,v$locked_object l, V$process p
    where o.object_id=l.object_id
    and s.sid=l.session_id
    and s.paddr=p.addr
    order by logon_time;
    SELECT OWNER||'.'||OBJECT_NAME AS Object, OS_USER_NAME, ORACLE_USERNAME,
    PROGRAM, NVL(lockwait,'ACTIVE') AS Lockwait,DECODE(LOCKED_MODE, 2,
    'ROW SHARE', 3, 'ROW EXCLUSIVE', 4, 'SHARE', 5,'SHARE ROW EXCLUSIVE',
    6, 'EXCLUSIVE', 'UNKNOWN') AS Locked_mode, OBJECT_TYPE, SESSION_ID, SERIAL#, c.SID
    FROM SYS.V_$LOCKED_OBJECT A, SYS.ALL_OBJECTS B, SYS.V_$SESSION c
    WHERE A.OBJECT_ID = B.OBJECT_ID AND C.SID = A.SESSION_ID
    ORDER BY Object ASC, lockwait DESC;
    SELECT DECODE(request,0,'Holder: ','Waiter: ')||sid sess,
    id1, id2, lmode, request, type
    FROM V$LOCK
    WHERE (id1, id2, type) IN
    (SELECT id1, id2, type FROM V$LOCK WHERE request>0)
    ORDER BY id1, request;
    find locks
    =====================
    set linesize 1000
    SELECT --osuser,
    a.username,a.serial#,a.sid,--a.terminal,
    sql_text
    from v$session a, v$sqltext b, V$process p
    where a.sql_address =b.address
    and a.paddr = p.addr
    and p.spid = '&os_pid'
    order by address, piece;
    select sql_text
    from V$sqltext_with_newlines
    where address =
    (select prev_sql_addr
    from V$session
    where username = :uname and sid = :snum) ORDER BY piece
    set pagesize 50000
    set linesize 30000
    set long 500000
    set head off
    select s.username su,s.sid,s.serial#,substr(sa.sql_text,1,540) txt
    from v$process p,v$session s,v$sqlarea sa
    where p.addr=s.paddr
    and s.username is not null
    and s.sql_address=sa.address(+)
    and s.sql_hash_value=sa.hash_value(+)
    and spid=&SPID;
    privileges
    ===========
    select * from dba_sys_privs where grantee = 'SCE';
    select * from dba_role_privs where grantee = 'SCE'
    select * from dba_sys_privs where grantee in ('CONNECT','APPL_CONNECT');
    Check high_water_mark_statistics
    ===================================
    select * from DBA_HIGH_WATER_MARK_STATISTICS;
    Multiple Blocksizes:
    =========================
    alter system set db_16k_cache_size=64m;
    create tablespace index_ts datafile '/data1/index_ts01.dbf' size 10240m blocksize 16384;
    11g default profiles:
    ========================
    alter profile default limit password_lock_time unlimited;
    alter profile default limit password_life_time unlimited;
    alter profile default limit password_grace_time unlimited;
    logfile switch over:
    select GROUP#,THREAD#,SEQUENCE#,BYTES,MEMBERS,ARCHIVED,
    STATUS,to_char(FIRST_TIME,'DD-MON-YYYY HH24:MI:SS') switch_time
    from v$log;
    Temporary tablespace usage:
    ============================
    SELECT b.tablespace,
    ROUND(((b.blocks*p.value)/1024/1024),2)||'M' "SIZE",
    a.sid||','||a.serial# SID_SERIAL,
    a.username,
    a.program
    FROM sys.v_$session a,
    sys.v_$sort_usage b,
    sys.v_$parameter p
    WHERE p.name = 'db_block_size'
    AND a.saddr = b.session_addr
    ORDER BY b.tablespace, b.blocks;
    SELECT A2.TABLESPACE, A2.SEGFILE#, A2.SEGBLK#, A2.BLOCKS,
    A1.SID, A1.SERIAL#, A1.USERNAME, A1.OSUSER, A1.STATUS
    FROM V$SESSION A1,V$SORT_USAGE A2 WHERE A1.SADDR = A2.SESSION_ADDR;
    ========================================
    ALTER SYSTEM KILL SESSION 'SID,SERIAL#';
    Inactive sessions killing:
    SELECT 'ALTER SYSTEM KILL SESSION ' || '''' || SID || ',' ||
    serial# || '''' || ' immediate;' text
    FROM v$session
    WHERE status = 'INACTIVE'
    AND last_call_et > 86400
    AND username IN (SELECT username FROM DBA_USERS WHERE user_id>56);
    Procedure:
    CREATE OR REPLACE PROCEDURE Inactive_Session_Cleanup AS
    BEGIN
    FOR rec_session IN (SELECT 'ALTER SYSTEM KILL SESSION ' || '''' || SID || ',' ||
    serial# || '''' || ' immediate' text
    FROM v$session
    WHERE status = 'INACTIVE'
    AND last_call_et > 43200
    AND username IN (SELECT username FROM DBA_USERS WHERE user_id>60)) LOOP
    EXECUTE IMMEDIATE rec_session.text;
    END LOOP;
    END Inactive_Session_Cleanup;
    sequence using plsql
    =========================
    Declare
    v_next NUMBER;
    script varchar2(5000);
    BEGIN
    SELECT (MAX(et.dcs_code) + 1) INTO v_next FROM et_document_request et;
    script:= 'CREATE SEQUENCE et_document_request_seq
    MINVALUE 1 MAXVALUE 999999999999999999999999999 START WITH '||
         v_next || ' INCREMENT BY 1 CACHE 20';
    execute immediate script;
    end;
    ===========================
    Terminal wise session
    select TERMINAL,count(*) from v$session
    group by TERMINAL;
    total sessions
    select count(*) from v$session
    where TERMINAL not like '%UNKNOWN%'
    and TERMINAL is not null;
    HOW TO FIND DUPLICATE TOKEN NUMBERS
    ===========================================
    select count(distinct a.token_number) dup
    from tm_pen_bill a,tm_pen_bill b
    where a.token_number = b.token_number
    and a.bill_number <> b.bill_number
    and a.token_number is not null;
    when Block Corruption occurs:
    select * from DBA_EXTENTS
    WHERE file_id = '13' AND block_id BETWEEN '44157' and '50649';
    select BLOCK_ID,SEGMENT_NAME,BLOCKS from dba_extents where FILE_ID='14'
    and BLOCK_ID like '%171%';
    select BLOCK_ID,SEGMENT_NAME,BLOCKS from dba_extents where FILE_ID='14'
    and SEGMENT_NAME = 'TEMP_TD_PAY_ALLOTMENT_NMC';
    DBVERIFY:
    dbv blocksize=8192 file=users01.dbf log=dbv_users01.log
    ==============================================================
    DBMS_REPAIR:(Block Corruption)
    exec dbms_repair.admin_tables(table_name=>'REPAIR_TABLE',table_type=>dbms_repair.repair_table,action=>dbms_repair.create_action,tablespace=>'USERS');
    variable v_corrupt_count number;
    exec dbms_repair.check_object('scott','emp',corrupt_count=>:v_corrupt_count);
    print v_corrupt_count;
    ==============================================================
    Password:
    select login,substr(utl_raw.cast_to_varchar2(utl_raw.cast_to_varchar2(password)),1,30) password
    from mm_gen_user where active_flag = 'Y' and user_id=64 and LOGIN='GOPAL' ;
    CHARACTERSET
    select * from NLS_DATABASE_PARAMETERS;
    SELECT value$ FROM sys.props$ WHERE name = 'NLS_CHARACTERSET' ;
    select value from nls_database_parameters where parameter='NLS_CHARACTERSET';
    ==========================================================
    EXPLAIN PLAN TABLE QUERY
    ========================
    EXPLAIN PLAN SET STATEMENT_ID='5'
    FOR
    "DML STATEMENT"
    PLAN TABLE QUERY
    ===============================
    set linesize 1000
    set arraysize 1000
    col OBJECT_TYPE for a20
    col OPTIMIZER for a20
    col object_name for a30
    col options for a25
    select COST,OPERATION,OPTIONS,OBJECT_TYPE,
    OBJECT_NAME,OPTIMIZER
    --,ID,PARENT_ID,POSITION,CARDINALITY
    from plan_table
    where statement_id='&statement_id';
    Rman settings: disk formats
    %t represents a timestamp
    %s represents the backup set number
    %p represents the piece number
    The dbms_workload_repository.create_snapshot procedure creates a manual snapshot in the AWR as seen in this example:
    EXEC dbms_workload_repository.create_snapshot;
    Calculation of a table the size of the space occupied by
    ========================================================
    select owner, table_name,
    NUM_ROWS,
    BLOCKS * AAA/1024/1024 "Size M",
    EMPTY_BLOCKS,
    LAST_ANALYZED
    from dba_tables
    where table_name = 'XXX';
    Finding statement/s which use lots of shared pool memory:
    ==========================================================
    SELECT substr(sql_text,1,40) "SQL", count(*) , sum(executions) "TotExecs"
    FROM v$sqlarea
    WHERE executions < 5
    GROUP BY substr(sql_text,1,40)
    HAVING count(*) > 30
    ORDER BY 2;
    See a table size table
    =========================================
    select sum (bytes) / (1024 * 1024) as "size (M)" from user_segments
    where segment_name = upper ('& table_name');
    See a index size table
    =========================================
    select sum (bytes) / (1024 * 1024) as "size (M)" from user_segments
    where segment_name = upper ('& index_name');
    monitoring table space I / O ratio
    ====================================
    select B.tablespace_name name, B.file_name "file", A.phyrds pyr,
    A.phyblkrd pbr, A.phywrts pyw, A.phyblkwrt pbw
    from v $ filestat A, dba_data_files B
    where A.file # = B.file_id
    order by B.tablespace_name;
    monitor the file system I / O ratio
    =====================================
    select substr (C.file #, 1,2) "#", substr (C.name, 1,30) "Name",
    C.status, C.bytes, D.phyrds, D.phywrts
    from v $ datafile C, v $ filestat D
    where C.file # = D.file #;
    the hit rate monitor SGA
    =========================
    select a.value + b.value "logical_reads", c.value "phys_reads",
    round (100 * ((a.value + b.value)-c.value) / (a.value + b.value)) "BUFFER HIT RATIO"
    from v $ sysstat a, v $ sysstat b, v $ sysstat c
    where a.statistic # = 38 and b.statistic # = 39
    and c.statistic # = 40;
    monitoring SGA in the dictionary buffer hit ratio
    ==================================================
    select parameter, gets, Getmisses, getmisses / (gets + getmisses) * 100 "miss ratio",
    (1 - (sum (getmisses) / (sum (gets) + sum (getmisses ))))* 100 "Hit ratio"
    from v $ rowcache
    where gets + getmisses <> 0
    group by parameter, gets, getmisses;
    monitoring SGA shared cache hit ratio should be less than 1%
    =============================================================
    select sum (pins) "Total Pins", sum (reloads) "Total Reloads",
    sum (reloads) / sum (pins) * 100 libcache
    from v $ librarycache;
    select sum (pinhits-reloads) / sum (pins) "hit radio", sum (reloads) / sum (pins) "reload percent"
    from v $ librarycache;
    monitoring SGA in the redo log buffer hit ratio should be less than 1%
    =========================================================================
    SELECT name, gets, misses, immediate_gets, immediate_misses,
    Decode (gets, 0,0, misses / gets * 100) ratio1,
    Decode (immediate_gets + immediate_misses, 0,0,
    immediate_misses / (immediate_gets + immediate_misses) * 100) ratio2
    FROM v $ latch WHERE name IN ('redo allocation', 'redo copy');
    control memory and hard disk sort ratio, it is best to make it smaller than .10, an increase sort_area_size
    =============================================================================================================
    SELECT name, value FROM v$sysstat WHERE name IN ('sorts (memory)', 'sorts (disk)');
    monitoring what the current database who are running SQL statements?
    ===================================================================
    SELECT osuser, username, sql_text from v $ session a, v $ sqltext b
    where a.sql_address = b.address order by address, piece;
    monitoring the dictionary buffer?
    =====================================
    SELECT (SUM (PINS - RELOADS)) / SUM (PINS) "LIB CACHE" FROM V $ LIBRARYCACHE;
    SELECT (SUM (GETS - GETMISSES - USAGE - FIXED)) / SUM (GETS) "ROW CACHE" FROM V $ ROWCACHE;
    SELECT SUM (PINS) "EXECUTIONS", SUM (RELOADS) "CACHE MISSES WHILE EXECUTING" FROM V $ LIBRARYCACHE;
    The latter divided by the former, this ratio is less than 1%, close to 0% as well.
    SELECT SUM (GETS) "DICTIONARY GETS", SUM (GETMISSES) "DICTIONARY CACHE GET MISSES"
    FROM V $ ROWCACHE
    see the table a high degree of fragmentation?
    =================================================
    SELECT owner,segment_name table_name, COUNT (*) extents
    FROM dba_segments WHERE owner NOT IN ('SYS', 'SYSTEM') GROUP BY owner,segment_name
    HAVING COUNT (*) = (SELECT MAX (COUNT (*)) FROM dba_segments GROUP BY segment_name);
    =======================================================================
    Fragmentation:
    =================
    select table_name,round((blocks*8),2)||'kb' "size"
    from user_tables
    where table_name = 'BIG1';
    Actual Data:
    =============
    select table_name,round((num_rows*avg_row_len/1024),2)||'kb' "size"
    from user_tables
    where table_name = 'BIG1';
    The establishment of an example data dictionary view to 8I
    =======================================================
    $ ORACLE_HOME / RDBMS / ADMIN / CATALOG.SQL
    The establishment of audit data dictionary view with an example to 8I
    ======================================================
    $ ORACLE_HOME / RDBMS / ADMIN / CATAUDIT.SQL
    To establish a snapshot view using the data dictionary to 8I Case
    =====================================================
    $ ORACLE_HOME / RDBMS / ADMIN / CATSNAP.SQL
    The table / index moving table space
    =======================================
    ALTER TABLE TABLE_NAME MOVE TABLESPACE_NAME;
    ALTER INDEX INDEX_NAME REBUILD TABLESPACE TABLESPACE_NAME;
    How can I know the system's current SCN number?
    =================================================
    select max (ktuxescnw * power (2, 32) + ktuxescnb) from x$ktuxe;
    Will keep a small table into the pool
    ======================================
    alter table xxx storage (buffer_pool keep);
    Check the permissions for each user
    ===================================
    SELECT * FROM DBA_SYS_PRIVS;
    =====================================================================
    Tablespace auto extend check:
    =================================
    col file_name for a50
    select FILE_NAME,TABLESPACE_NAME,AUTOEXTENSIBLE from dba_data_files
    order by TABLESPACE_NAME;
    COL SEGMENT_NAME FOR A30
    select SEGMENT_NAME,TABLESPACE_NAME,BYTES,EXTENTS,INITIAL_EXTENT,
    NEXT_EXTENT,MAX_EXTENTS,PCT_INCREASE
    from user_segments
    where segment_name in ('TD_PAY_CHEQUE_PREPARED','TM_PAY_BILL','TD_PAY_PAYORDER');
    select TABLESPACE_NAME,INITIAL_EXTENT,NEXT_EXTENT,MAX_EXTENTS,PCT_INCREASE
    from dba_tablespaces;
    alter tablespace temp default storage(next 5m maxextents 20480 pctincrease 0);
    ALTER TABLE TD_PAY_CHEQUE_PREPARED
    default STORAGE ( NEXT 10 M maxextents 20480 pctincrease 0);
    Moving table from one tablespace to another
    ===============================================
    alter table KHAJANE.TEMP_TM_PAY_ALLOTMENT_NMC move tablespace khajane_ts;
    ==============================================
    for moving datafiles location:
    ========================================
    alter database rename file a to b;
    ======================================================================
    for logfile Clearence:
    select * from global_name;
    col member for a50
    set linesize 132
    set trimspool on
    select 'alter database clear logfile ' || '''' || member || '''' || ';'
    from v$logfile where status ='STALE';
    logfile switch over:
    select GROUP#,THREAD#,SEQUENCE#,BYTES,MEMBERS,ARCHIVED,
    STATUS,to_char(FIRST_TIME,'DD-MON-YYYY HH24:MI:SS') switch_time
    from v$log;

    Answered

  • Can we change the color of the Crosshair tool and Lasso tool

    I am on an iMac 27 and can barely see the lasso tool when I need to use it or even the crosshair tool.  The color apears in light green and I constantly need to hit my <Command> key to change to my pointer to see where I am on the screen.  Any ideas or suggestions would be much appreciated.

    This colour is a complementary interaction. It changes depending upon the background colours you're using.
    I'm pretty sure there is no way to alter that behaviour, other than going to Outline Mode.

Maybe you are looking for

  • NVidia GeForce4 Ti graphics card problems on my G4 1.25 MDD

    I've had my Dual G4 1.25 MDD for 2 yrs now and since i bought it from Apple it has the nVidia GeForce4 Ti 4600 graphics card w/128MB DDR. Love the card, but now its acting up. At random while playing my favorite Online Game, WoW, the Computer will ha

  • Firefox 15.1 storing Downloads in Temp folder despite being set to save into Downloads?

    OK so I'm running Windows 7 64 Bit and Mozilla Firefox 15.1 Downloads is set to save to "Downloads" but, they are in fact saving to a firefox temp folder? checked the about:config and browser.download = C:\...\Downloads I read an answer on here that

  • DWM - tag issue

    I have two questions regarding dwm: 1) I have uninstalled urxvt and built the AUR package rxvt-unicode-patched in attempt to fix the gap around terminal windows.  The gap still remains, so is there something else that needs to be done (wiki suggested

  • Matrox DualHead2Go and Macbook Pro

    Hey all, First time Mac owner and poster. I'm looking to connect my two identical Dell 22" monitors to my Macbook Pro as an extended desktop (both monitors have DVI inputs only). I've done some research and it looks like Matrox provide the ideal solu

  • Coldfusion Query Delay Problem

    Folks we are having some intermittent problems with our application web servers. We are using coldfusion to serve data from Oracle databases. SELECT statements only, no updating of the database is done. The coldfusion application server and the oracl