The question regarding SQL intervals

I'm writing a piece of SQL for a report that will caclulate the total number of active sessions. The name of table I in draught is called "sessionhistory. This table has a field named "sessioninstantiationtime" for the start of the session and one called "sessiondestructiontime" for when it ends. I want counts the number of active sessions and calculate the bandwidth for each interval. Currently, my SQL works, but it only beginning resembles the session (sessioninstantiationtime). I need to change so that I count the sessions began, but have not yet finished. Here's the monetary SQL, can someone point me in the right direction? Any help is greatly appreciated...

--

SELECT
To_char (sessioninstantiationtime, 'HH24') | ':' || To_char (Floor (TO_NUMBER (to_char (sessioninstantiationtime, 'MI')) / 15) * 15, "FM00") interval_value,.
Count (case when to_char(sh.sessioninstantiationtime,'D') = '1', THEN '1' ELSE null END) as Sun_Streams,
Sum (case when to_char(SH.sessioninstantiationtime,'D') = '1' Then sh.tsdownstreambw else 0 end) / 1000/1000 as Sun_Bandwidth,
Count (case when to_char(sh.sessioninstantiationtime,'D') = '2', THEN '1' ELSE null END) as Mon_Streams,
Sum (case when to_char(SH.sessioninstantiationtime,'D') = '2' Then sh.tsdownstreambw else 0 end) / 1000/1000 as Mon_Bandwidth,
Count (case when to_char(sh.sessioninstantiationtime,'D') = '3', THEN '1' ELSE null END) as Tue_Streams,
Sum (case when to_char(SH.sessioninstantiationtime,'D') = '3' Then sh.tsdownstreambw else 0 end) / 1000/1000 as Tue_Bandwidth,
Count (case when to_char(sh.sessioninstantiationtime,'D') = '4', THEN '1' ELSE null END) as Wed_Streams,
Sum (case when to_char(SH.sessioninstantiationtime,'D') = '4' Then sh.tsdownstreambw else 0 end) / 1000/1000 as Wed_Bandwidth,
Count (case when to_char(sh.sessioninstantiationtime,'D') = '5', THEN '1' ELSE null END) as Thu_Streams,
Sum (case when to_char(SH.sessioninstantiationtime,'D') = '5' Then sh.tsdownstreambw else 0 end) / 1000/1000 as Thu_Bandwidth,
Count (case when to_char(sh.sessioninstantiationtime,'D') = '6', THEN '1' ELSE null END) as Fri_Streams,
Sum (case when to_char(SH.sessioninstantiationtime,'D') = '6' Then sh.tsdownstreambw else 0 end) / 1000/1000 as Fri_Bandwidth,
Count (case when to_char(sh.sessioninstantiationtime,'D') = '7', THEN '1' ELSE null END) as Sat_Streams,
Sum (case when to_char(SH.sessioninstantiationtime,'D') = '7' Then sh.tsdownstreambw else 0 end) / 1000/1000 Sat_Bandwidth
Of
sessionHistory sh
WHERE
SH.sessioninstantiationtime BETWEEN TO_DATE('01-aug-09', 'dd-mon-yy') - 6 AND TO_DATE (1 August 09 ',' dd-mon-yy') + 1
GROUP BY
To_char (sessioninstantiationtime, 'HH24') | ':' || To_char (Floor (TO_NUMBER (to_char (sessioninstantiationtime, 'MI')) / 15) * 15, "FM00")
ORDER BY
To_char (sessioninstantiationtime, 'HH24') | ':' || To_char (Floor (TO_NUMBER (to_char (sessioninstantiationtime, 'MI')) / 15) * 15, "FM00");

Hello

If you want to specify the 7th day of the period of 7 days instead of 1 day and then subtract 6 in the two places where this setting is used.
If you want a variable number of periods / hour instead of 4, then replace the three occurrences of the 'magic number' 4 with the number of periods per hour (60 /: period_length, where: length of the period is the number of minutes, for example 5, 15, 30 or 60.)

VARIABLE  report_end_date     VARCHAR2 (20)
EXEC      :report_end_date     := '03-Jul-2009';

VARIABLE  period_length          NUMBER
EXEC     :period_length          := 5;

WITH     all_periods     AS
(
     SELECT  TO_DATE (:report_end_date, 'DD-Mon-YYYY') + ( (LEVEL - 1)
                                            / (24 * 60 / :period_length)
                                       )
                                     - 6     AS period_start
     ,     TO_DATE (:report_end_date, 'DD-Mon-YYYY') + (  LEVEL
                                            / (24 * 60 / :period_length)
                                       )
                                     - 6     AS next_period_start
     FROM    dual
     CONNECT BY     LEVEL <= 7 * 24 * 60 / :period_length
)
SELECT     TO_CHAR (ap.period_start, 'HH24:MI')     AS period_start_time
,     COUNT    (CASE WHEN TO_CHAR (ap.period_start, 'Dy') = 'Fri' THEN sh.tsdownstreambw END)     AS fri_streams
,     NVL (SUM (CASE WHEN TO_CHAR (ap.period_start, 'Dy') = 'Fri' THEN sh.tsdownstreambw END), 0)
           / (1000 * 1000)                                             AS fri_bandwidth
,     COUNT (   CASE WHEN TO_CHAR (ap.period_start, 'Dy') = 'Sat' THEN sh.tsdownstreambw END)     AS sat_streams
,     NVL (SUM (CASE WHEN TO_CHAR (ap.period_start, 'Dy') = 'Sat' THEN sh.tsdownstreambw END), 0)
           / (1000 * 1000)                                             AS sat_bandwidth
FROM           all_periods     ap
LEFT OUTER JOIN  sessionhistory     sh     ON    sh.sessioninstantiationtime <  ap.next_period_start
                                  AND   sh.sessiondestructiontime   >= ap.period_start
WHERE       TO_CHAR (ap.period_start, 'HH24:MI')     LIKE '01:__'     --     *****  FOR TESTING ONLY!  *****
GROUP BY  TO_CHAR (ap.period_start, 'HH24:MI')
ORDER BY  TO_CHAR (ap.period_start, 'HH24:MI')
;

Note that the main request is completely unchanged.

Out with the above parameters and the set of two rows of sample data:

.           FRI_      FRI_       SAT_      SAT_
PERIO    STREAMS BANDWIDTH    STREAMS BANDWIDTH
----- ---------- --------- ---------- ---------
01:00          0      .000          0      .000
01:05          0      .000          0      .000
01:10          0      .000          0      .000
01:15          0      .000          0      .000
01:20          0      .000          0      .000
01:25          0      .000          0      .000
01:30          2     7.500          0      .000
01:35          2     7.500          0      .000
01:40          1     3.750          0      .000
01:45          1     3.750          0      .000
01:50          1     3.750          0      .000
01:55          0      .000          0      .000

The query will cover a period of 7 days consecutive ending with (and including): report_end_date.
'Saturday' in this example means June 27, 6 days before Friday.

Tags: Database

Similar Questions

  • The question regarding the positioning (differences between Design view and live view)

    I don't know how to perform the same search to see if this has been asked, nor how to properly ask the question... but here goes...

    I have a div id "container" which is limited to large 968px.  Inside that I want to have 2 columns (one containing nothing else than a background image) next to each other.

    I called a left_column and other right_column.

    The background image will be in the left column and is high by wide 290px 550px.

    I used CSS to define the following:

    {#left_column}

    background-color: #FFF;

    background-image: url (.. / images/waterfall.jpg);

    background-repeat: no-repeat;

    position: relative;

    height: 550px;

    Width: 290px;

    margin-right: 10px;

    float: left;

    }

    {#right_column}

    height: 550px;

    Width: 650px;

    margin-left: 10px;

    padding-left: 12px;

    position: relative;

    left: 10px;

    }

    In "design mode" everything seems wonderful.  When I go to the live view (and/or browserlab) the text in the right-hand column shows the usable space is only 300px.

    If I change the width of the right_column to 'auto' can live view (and/or browserlab) everything seems all I want, but in the view design right_column width is closer to 900px and goes the WAY out of the container (which makes it very difficult to see the text as I type).

    No idea what I messed up?  What other details do you need?

    Thanks in advance.

    mikemendo wrote:

    I wanted the left and right columns to be the same height, so the footer doesn't look like it has been 'floating' lower from one side to the other.  The width is controlled by the banner image 968px.

    Columns of Google to 'false '. It is a technique that requires a background image set to "container".

    . The image is repeated behind the "right column
    to fill the depth and give the impression that the two columns are of equal height.

    mikemendo wrote:

    In the left column photos is a background image, so if I put the height and width, then the image is not of appropriate size.  The reason why I did a background image was to follow the advice of David Powers in his article on "your first site.

    This technique is good to use.

    At present the total width of all your elements adds to 982px that is wider than your container attached to 968px. Margin and padding ARE added to the width of a 'container' if:

    290px + 10px = 300px

    650px + 12px 10px 10px plus 682px

    TOTAL = 982px

    You can adjust the math for the total width does not exceed the width of your "container".

    Use this css and everything should work:

    #container {}

    overflow: hidden;

    margin: 0 auto;

    Width: 968px;

    background-image: url (.. / images/rightColBg.gif)

    background-repeat: repeat-y;

    }

    {#left_column}

    background-color: #FFF;

    background-image: url (.. / images/waterfall.jpg);

    background-repeat: no-repeat;

    Width: 290px;

    margin-right: 10px;

    float: left;

    }

    {#right_column}

    Width: 656px;

    padding-left: 12px;

    float: left;

    }

    #footer {}

    Clear: both;

    }

  • The question regarding viruses

    How it is safe to download this system to my computer, I'm afraid I'll get a virus?

    Thank you

    Hello

    Please, use this link and download the latest version of Flash Player for your computer:

    http://forums.Adobe.com/thread/909550

    You can also check which version of Flash Player, you currently go to http://www.adobe.com/software/flash/about/

    Thank you

  • A question on the impact of SQL * PLUS SERVEROUTPUT Optionconcernant v$ sql

    Hello everyone,
    SQL> SELECT * FROM v$version;
    
    BANNER
    ------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0  Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    SQL> 
    
    
    OS : Fedora Core 17 (X86_64) Kernel 3.6.6-1.fc17.x86_64
    I would like to ask a question about SQL * Plus SET SERVEROUTPUT option on / off and its impact on queries on views such as v$ sql and v$ session. This is the problem

    In fact I define three variables in SQL * Plus to store sidcolumns, serial # and prev_sql_id of session $ v in order to be used later, several times in various other queries, while I work always in the current session.

    So, here's how
    SET SERVEROUTPUT ON;  -- I often activate this option as the first line of almost all of my SQL-PL/SQL script files
    
    SET SQLBLANKLINES ON;
    
    VARIABLE mysid NUMBER
    VARIABLE myserial# NUMBER;
    VARIABLE saved_sql_id VARCHAR2(13);
    
    
    -- So first I store sid and serial# for the current session
    BEGIN
        SELECT sid, serial# INTO :mysid, :myserial#
        FROM v$session
        WHERE audsid = SYS_CONTEXT('UserEnv', 'SessionId');
    END;
    /
    
    
    PL/SQL procedure successfully completed.
    
    
    -- Just check to see the result
    SQL> SELECT :mysid, :myserial# FROM DUAL;
    
        :MYSID :MYSERIAL#
    ---------- ----------
           129   1067
    
    SQL> 
    Now let's say I want to run the following query as the last SQL statement is executed within my current session
    SELECT * FROM employees WHERE salary >= 2800 AND ROWNUM <= 10;
    According to the reference of database Oracle® 11 g Release 2 (11.2) description of session $ v

    http://docs.Oracle.com/CD/E11882_01/server.112/e25513/dynviews_3016.htm#REFRN30223]

    column prev_sql_id includes the sql_id of the last executed sql statement for the sid and serial data which, in the case of my example, it will be the above mentioned query SELECT on the employees table. So right after the SELECT statement on the employees table I have run the following
    BEGIN
        SELECT prev_sql_id INTO :saved_sql_id
        FROM v$session 
        WHERE sid = :mysid AND serial# = :myserial#;
    END;
    /
    
    PL/SQL procedure successfully completed.
    
    SQL> SELECT :saved_sql_id FROM DUAL;
    
    :SAVED_SQL_ID
    --------------------------------
    9babjv8yq8ru3
    
    SQL> 
    The value of sql_id, I'm supposed to find all the information on the sliders for my SELECT statement and also its value sql_text in v$ sql. Here is what I get when I query v$ sql on the stored sql_id
    SELECT child_number, sql_id, sql_text 
    FROM v$sql 
    WHERE sql_id = :saved_sql_id;
    
    
    CHILD_NUMBER   SQL_ID          SQL_TEXT
    ------------  --------------   -------------------------------
    0              9babjv8yq8ru3    BEGIN DBMS_OUTPUT.GET_LINES(:LINES, :NUMLINES); END;
    So instead of
    SELECT * FROM employees WHERE salary >= 2800 AND ROWNUM <= 10;
    get the next value for the value of sql_text
    BEGIN DBMS_OUTPUT.GET_LINES(:LINES, :NUMLINES);
    Which is of course not what I expected to find in v$ sql for the given sql_id.

    After a little googling, I found the next thread on OTN forum, where it was suggested (well, I think that may not be exactly the same problem) to disable SERVEROUTPUT.

    Problem with dbms_xplan.display_cursor

    It was exactly what I did
    SET SERVEROUTPUT OFF
    After that, I repeated the procedure as a whole and this time everything worked pretty much as expected. I checked SQL * more documentation for SERVEROUTPUT
    and also the page of v$ session, yet I don't find nothing indicating that SERVEROUTPUT should be operated off every time that views such as v$ sql, v $session
    are queired. I don't really understand the link in what concerns the impact that can have on the other or better say rather, why is there an impact

    Could someone kindly do a few details?


    Thanks in advance,

    Kind regards
    Dariyoosh

    >

    and also the page of v$ session, yet I don't find nothing indicating that SERVEROUTPUT should be operated off every time that views such as v$ sql, v $session
    are queired. I don't really understand the link in what concerns the impact that can have on the other or better say rather, why is there an impact

    Hi Dariyoosh,
    SET SERVEROUTPUT ON has the effect of dbms_output.get_lines running after each statement. Not only related to the system view.

    Below is what Tom Kyte is explained in this page:

    Now, sqlplus sees this feature and says "Hey, it wouldn't be nice for me to empty the buffer to the screen for the user? Thus, they added the command SQLPlus "set serveroutput we" which does two things

    (1) he tells SQLPLUS you would like run dbms_output.get_lines after each statement. You would like to make this network rounded up after each call. You want that this additional load will take place (think of a script of installation with hundreds / thousands of statements to run - maybe, just maybe you don't want this extra call after each call)

    (2) SQLPLUS automatically calls the API dbms_output "activate" to activate the buffering which is in the package.

    Kind regards.
    Al

  • A few questions regarding the audit

    Hi all



    Greetings. I have a few questions regarding the audit.


    1. how to enable auditing for create table and truncate table by a user?

    SQL> audit table by schema_name;
    
    Audit succeeded.
    Fact the knowledge of the above: http://psoug.org/reference/auditing.html

    This succeeded. But when I actually created a table, it does not reflect in the dba_audit_trail;


    Do I have to use the number of action by and then combine it with another table to populate the create table/truncate table?


    2. How can I check what all auditing has been activated so far?


    Please suggest me. I am unable to follow the audit to create and truncate.


    Concerning
    KK

    In the above article that I mentioned earlier it said check the dba_audit_trail table.

    COLUMN username FORMAT A10
    COLUMN owner    FORMAT A10
    COLUMN obj_name FORMAT A10
    COLUMN extended_timestamp FORMAT A35
    
    SELECT username,
           extended_timestamp,
           owner,
           obj_name,
           action_name
    FROM   dba_audit_trail
    WHERE  owner = 'AUDIT_TEST'
    ORDER BY timestamp;
    
    USERNAME   EXTENDED_TIMESTAMP                  OWNER      OBJ_NAME   ACTION_NAME
    ---------- ----------------------------------- ---------- ---------- ----------------------------
    AUDIT_TEST 16-FEB-2006 14:16:55.435000 +00:00  AUDIT_TEST TEST_TAB   CREATE TABLE
    AUDIT_TEST 16-FEB-2006 14:16:55.514000 +00:00  AUDIT_TEST TEST_TAB   INSERT
    AUDIT_TEST 16-FEB-2006 14:16:55.545000 +00:00  AUDIT_TEST TEST_TAB   UPDATE
    AUDIT_TEST 16-FEB-2006 14:16:55.592000 +00:00  AUDIT_TEST TEST_TAB   SELECT
    AUDIT_TEST 16-FEB-2006 14:16:55.670000 +00:00  AUDIT_TEST TEST_TAB   DELETE
    AUDIT_TEST 16-FEB-2006 14:17:00.045000 +00:00  AUDIT_TEST TEST_TAB   DROP TABLE
    
    6 rows selected.
    
    SQL>
    

    Have you reviewed this table?

    Alternatively, you can consult the table of dba_stmt_audit_opts.
    DBA_STMT_AUDIT_OPTS

    Published by: Kerri_Robberts on July 15, 2011 15:11

  • Yes, another question regarding the freezing of Safari - EtreCheck report included

    Yes, another question regarding the freezing of Safari.

    From a little over a month (I think), Safari started freezing regularly whenever I want to open new tabs or switch between tabs. I found myself to leave the program several times per day / hour. I can't identify any specific common cause (other than my MacBook being old) or any new software or updates that might have initiated the question. At first I thought he might have many tabs, I tried to open, but recently it happens even with only a few tabs open.

    I worked through the steps I found in this forum and others: empty the cache, start in safe mode, etc nothing works.

    Based on the previous suggestions, I have downloaded and run EntreReport which I included below. The note and maybe just a distraction, but EntreReport has crashed three times tonight, before he was able to produce the sub report. I ran the report after restarting my system with no other programs running.

    Suggestions are welcome at this stage because I want to start using Chrome or Firefox because I like the transfer procedure between my devices.

    Thank you in advance.

    Ben

    -----------

    EtreCheck version: 2.9.11 (264)

    Report generated 2016-04-28 22:48:58

    Download EtreCheck from https://etrecheck.com

    Time 05:45

    Performance: Below average

    Click the [Support] links to help with non-Apple products.

    Click [details] for more information on this line.

    Click on the link [check files] help with unknown files.

    Problem: Apps are broken

    Description:

    Safari freeze when opening new tabs / switching between the tabs.

    Hardware Information:

    MacBook Pro (15-inch, mid 2009)

    [Data sheet] - [User Guide] - [warranty & Service]

    MacBook Pro - model: MacBookPro5, 3

    1 2.66 GHz Intel Core 2 Duo CPU: 2 strands

    4 GB of RAM expandable - [Instructions]

    BANK 0/DIMM0

    OK 2 GB DDR3 1067 MHz

    BANK 1/DIMM0

    OK 2 GB DDR3 1067 MHz

    Bluetooth: Old - transfer/Airdrop2 not supported

    Wireless: en1: 802.11 a/b/g/n

    Battery: Health = battery check - Cycle count = 389

    Video information:

    NVIDIA GeForce 9400M - VRAM: 256 MB

    Color LCD 1440 x 900

    NVIDIA GeForce 9600M GT - VRAM: 256 MB

    Software:

    OS X El Capitan 10.11.4 (15E65) - since startup time: less than an hour

    Disc information:

    FUJITSU MJA2320BH FFS G1 disk0: (320,07 GB) (rotation)

    EFI (disk0s1) < not mounted >: 210 MB

    Macintosh HD (disk0s2) /: 319,21 go-go (54,93 free)

    Recovery HD (disk0s3) < not mounted > [recovery]: 650 MB

    HL-DT-ST DVD - RW GS23N)

    USB information:

    Built-in ISight from Apple Inc..

    Card reader Apple

    Apple Inc. BRCM2046 hub.

    Apple Inc. Bluetooth USB host controller.

    Apple Inc. Apple keyboard / Trackpad

    Computer, Inc. Apple IR receiver.

    Guardian:

    Mac App Store and identified developers

    Unknown files:

    ~/Library/LaunchAgents/com. GoodShop.updater.plist

    ~/Library/application support/GoodShop/updater

    A unknown file found. [Check files]

    Kernel extensions:

    / Library/Application Support/Symantec/virus

    [no charge] com.symantec.kext.SymAPComm (11.1.2f17 - 2015-05-23) [Support]

    / Library/Extensions

    [no charge] expressvpn.tap (20150118 - 2016-04-12) [Support]

    [loading] expressvpn.tun (20150118 - 2016-04-12) [Support]

    / System/Library/Extensions

    [no charge] com.DYMO.usbprinterclassdriver.kext (1.1 - SDK 10.9-2016-04-12) [Support]

    com.Silex.driver.sxuptp [no charge] (1.5.1 - 2016-04-12) [Support]

    com.symantec.kext.internetSecurity [no charge] (1.3.2 - 2016-04-12) [Support]

    com.Symantec.kext.IPS [no charge] (3.2 - 2016-04-12) [Support]

    Startup items:

    CMA: path: / Library/StartupItems/cma

    RosettaStoneLtdDaemon: Path: / Library/StartupItems/RosettaStoneLtdDaemon

    Startup items are obsolete in OS X Yosemite

    Launch system officers:

    [loaded] 8 tasks Apple

    [loading] 165 tasks Apple

    [operation] 65 tasks Apple

    Launch system demons:

    [loaded] 45 tasks Apple

    [loading] 161 tasks Apple

    [operation] 83 tasks Apple

    Launch officers:

    [no charge] com.adobe.AAM.Updater - 1.0.plist (2016-04-28) [Support]

    [failure] com.adobe.ARMDCHelper.cc24aef4a1b90ed56a... plist (2015-10-31) [Support]

    [operation] com.epson.Epson_Low_Ink_Reminder.launcher.plist (2015-01-19) [Support]

    [loading] com.epson.esua.launcher.plist (2015-06-29) [Support]

    [operation] com.epson.eventmanager.agent.plist (2014-09-21) [Support]

    [loading] com.google.keystone.agent.plist (2016-03-01) [Support]

    [operation] com.mcafee.menulet.plist (2016-03-23) [Support]

    [operation] com.mcafee.reporter.plist (2016-03-23) [Support]

    [loading] com.oracle.java.Java - Updater.plist (2013-11-14) [Support]

    [operation] com.symantec.uiagent.application.plist (2010-11-16) [Support]

    [operation] com.trusteer.rapport.rapportd.plist (2016-03-19) [Support]

    Launch demons:

    [loading] com.adobe.ARMDC.Communicator.plist (2015-10-31) [Support]

    [loading] com.adobe.ARMDC.SMJobBlessHelper.plist (2015-10-31) [Support]

    [loading] com.adobe.fpsaud.plist (2016-04-15) [Support]

    com.DYMO.pnpd.plist [no charge] (2014-10-16) [Support]

    [loading] com.expressvpn.tap.plist (2016-01-27) [Support]

    [loading] com.expressvpn.tun.plist (2016-01-27) [Support]

    [loading] com.google.keystone.daemon.plist (2016-03-01) [Support]

    [loading] com.macpaw.CleanMyMac3.Agent.plist (2016-04-18) [Support]

    [operation] com.mcafee.cspd.plist (2015-05-08) [Support]

    com.mcafee.ssm.ScanFactory.plist [no charge] (2016-03-16) [Support]

    com.mcafee.ssm.ScanManager.plist [no charge] (2016-03-16) [Support]

    [operation] com.mcafee.virusscan.fmpd.plist (2016-03-22) [Support]

    [loading] com.microsoft.office.licensing.helper.plist (2010-08-25) [Support]

    [loading] com.oracle.java.Helper - Tool.plist (2013-11-14) [Support]

    [loading] com.symantec.MissedTasks.plist (2009-11-10) [Support]

    [loading] com.symantec.Sched501 - 1.plist (2014-08-27) [Support]

    [loading] com.symantec.Sched501 - 4.plist (2015-01-08) [Support]

    [loading] com.symantec.Sched501 - 5.plist (2015-01-08) [Support]

    [loading] com.symantec.avscandaemon.plist (2009-10-10) [Support]

    [operation] com.symantec.diskMountNotify.plist (2009-09-14) [Support]

    [loading] com.symantec.navapd.plist (2009-09-14) [Support]

    [loading] com.symantec.navapdaemonsl.plist (2009-11-14) [Support]

    [operation] com.symantec.sharedsettings.plist (2009-07-22) [Support]

    [operation] com.symantec.symSchedDaemon.plist (2009-11-10) [Support]

    [operation] com.symantec.symdaemon.plist (2009-03-27) [Support]

    [operation] com.trusteer.rooks.rooksd.plist (2016-03-19) [Support]

    User launch officers:

    com [running]. GoodShop.updater.plist (2013-09-24) [Support]

    [loading] com.adobe.AAM.Updater - 1.0.plist (2015-10-25) [Support]

    [failure] com.facebook.videochat. [entrenched passage] .plist (2014-08-09) [Support]

    [loading] com.macpaw.CleanMyMac3.Scheduler.plist (2016-04-25) [Support]

    Items in user login:

    iTunesHelper Application (/ Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)

    Application of Google Reader (Google Drive.app/Applications /)

    Dropbox application (/ Applications/Dropbox.app)

    ExpressVPN application (/ Applications/ExpressVPN.app)

    CleanMyMac 3 Menu Application (/ Applications/CleanMyMac 4.app/Contents/MacOS/CleanMyMac 3 Menu.app)

    Other applications:

    [ongoing] com.DYMO.pnpd

    [ongoing] com.getdropbox.dropbox.83552

    [ongoing] com.google.GoogleDrive.81632

    [ongoing] com.macpaw.CleanMyMac3.Menu.80672

    [ongoing] com.mcafee.ssm.ScanManager

    [ongoing] com.mcafee.virusscan.ssm.ScanFactory

    [loading] 420 tasks Apple

    [operation] 193 tasks Apple

    Plug-ins Internet:

    o1dbrowserplugin: 5.41.3.0 - 10.8 SDK (2015-12-16) [Support]

    Default browser: 601 - SDK 10.11 (2016-04-18)

    Flip4Mac WMV Plugin: 2.4.4.2 (2012-12-25) [Support]

    DYMO Safari Addin: Unknown - SDK 10.9 (2014-10-26) [Support]

    AdobePDFViewerNPAPI: 15.010.20060 - SDK 10.8 (2016-03-11) [Support]

    FlashPlayer - 10.6: 21.0.0.226 - SDK 10.6 (2016-04-25) [Support]

    Silverlight: 5.1.30514.0 - SDK 10.6 (2015-09-16) [Support]

    QuickTime Plugin: 7.7.3 (2016-04-12)

    Flash Player: 21.0.0.226 - SDK 10.6 (2016-04-25) [Support]

    googletalkbrowserplugin: 5.41.3.0 - 10.8 SDK (2015-12-11) [Support]

    iPhotoPhotocast: 7.0 (2010-11-15)

    AdobePDFViewer: 15.010.20060 - SDK 10.8 (2016-03-11) [Support]

    SharePointBrowserPlugin: 14.3.0 - SDK 10.6 (2013-02-09) [Support]

    SiteAdvisor: 2.0 - 10.1 SDK (2015-03-30) [Support]

    JavaAppletPlugin: Java 8 updated 77 03 (2016-04-18) check the version of build

    Safari extensions:

    AdBlock - BetaFish, Inc. - https://getadblock.com (2016-03-30)

    Add to wishlist Amazon - Amazon.com - http://www.amazon.com/wishlist?ref=cm_wl_saf_ext (2011-07-09)

    GoodShop - GOODSEARCH LLC - http://www.GoodSearch.com (2013-09-24)

    SiteAdvisor - McAfee - http://www.siteadvisor.com (2015-09-28)

    PIN button - Pinterest, Inc. - http://www.pinterest.com/ (2015-07-03)

    3rd party preference panes:

    Flash Player (2016-04-15) [Support]

    Flip4Mac WMV (2012-05-15) [Support]

    Growl (2015-09-16) [Support]

    Java (2016-04-18) [Support]

    Norton\nQuickMenu (2010-11-16) [Support]

    Trusteer Endpoint Protection (2016-04-18) [Support]

    Time Machine:

    Time Machine not configured!

    Top of page process CPU:

    5% WindowServer

    1% kernel_task

    0% fontd

    0% SymDaemon

    Top of page process of memory:

    445 MB kernel_task

    Mdworker (18) 430 MB

    164 MB Google Reader

    Dropbox 123 MB

    VShieldScanner (4) 66 MB

    Virtual memory information:

    106 MB free RAM

    4.15 GB used RAM (770 MB cache)

    6 MB used Swap

    Diagnostic information:

    April 28, 2016, 22:42:12 ~/Library/Logs/DiagnosticReports/EtreCheck_2016-04-28-224212_[redacted].crash

    com.etresoft.EtreCheck - /Applications/EtreCheck.app/Contents/MacOS/EtreCheck

    28 April 2016, 22:21:42 self-test - spent

    April 28, 2016, 19:49:12 ~/Library/Logs/DiagnosticReports/EtreCheck_2016-04-28-194912_[redacted].crash

    April 28, 2016, 19:47:10 ~/Library/Logs/DiagnosticReports/EtreCheck_2016-04-28-194710_[redacted].crash

    April 28, 2016, 19:38:58 ~/Library/Logs/DiagnosticReports/EtreCheck_2016-04-28-193858_[redacted].crash

    April 28, 2016, 19:04:58 ~/Library/Logs/DiagnosticReports/rapportd_2016-04-28-190458_[redacted].crash

    /Library/rapport/*/rapportd.app/Contents/MacOS/rapportd

    April 28, 2016, 06:06:59 /Library/Logs/DiagnosticReports/Safari_2016-04-28-060659_[redacted].hang

    /Applications/Safari.app/Contents/MacOS/Safari

    April 28, 2016, 12:48:04 AM /Library/Logs/DiagnosticReports/SubmitDiagInfo_2016-04-28-004804_[redacted].cpu _resource.diag [details]

    / System/Library/CoreServices/SubmitDiagInfo

    April 27, 2016, 22:01:10 /Library/Logs/DiagnosticReports/Safari_2016-04-27-220110_[redacted].hang

    April 27, 2016, 21:57:37 /Library/Logs/DiagnosticReports/Safari_2016-04-27-215737_[redacted].hang

    April 27, 2016, 19:05:50 ~/Library/Logs/DiagnosticReports/EtreCheck_2016-04-27-190550_[redacted].crash

    April 27, 2016, 06:57:28 ~/Library/Logs/DiagnosticReports/Airmail 2_2016-04-27-065728_ .crash [deleted]

    / Applications/Airmail 2.app/Contents/MacOS/Airmail 2

    26 April 2016, 19:48:11 /Library/Logs/DiagnosticReports/Safari_2016-04-26-194811_[redacted].hang

    Remove all apps viruses you have

    Symantec, McAfee, Norton...

    CleanMyMac3

  • Another Question regarding the IPC in the BB platform (secure process for RuntimeStore)

    In my scenario,.

    Process one will constantly be voicemails from somewhere and put it in a table in a RuntimeStore, named _store.

    B process, there is a thread T will waitFor the ID of the table in the _store. If succeeds, then copy to another location, i.e.,.

    persisting an object and then eaten after this, the thread will remove the ID of the table in the _store.

    I wonder if it is safe for both processes simultaneously access the _store.

    Wrote in the store. B is read and write to the store.

    If someone could help?  Very well appreciated.

    I am a bear with very little brain and can never remember the right way of doing things.  I'm sure that someone will take the holes in what follows and suggest the best ways and it would be fantastic.

    I think there are two issues here:

    (a) simultaneous access

    (b) persistence

    (a) the simultaneous access to an object in the persistent store are no different from any object, they are located in PersistentStore, RuntimeStore or RAM.

    Thus, for example, let's say we have a vector in PersistentStore, we use just like a queue to a single server (then only add to the tail and remove the head), with a separate 'lock' in RuntimeStore object.  Synchronize us on the lock object before we add an element, or remove an item, our access is perfectly safe

    (b) persistence

    Yes I agree, this aspect is not clear.  I always thought I want to commit an object placed partially updated, so in this example, would make the validation in the context of add or remove the treatment.

    Of course, things become a little more complicated if you start to talk about data updated in the queue, but I do not think that these problems are related to PersistentStore as a result, I think that these are issues of a general nature and there is probably many places on the web where are discussed different mechanisms to make sure that it works well.

    A few other points:

    (1) I understand that the treatment of validation is "atomic" on the BlackBerry and the "wound", so if you make an object you will persist all changes to this object. Usually, I maintain a collection that is associated with an Application for validation, points specific in the treatment of requests to ensure that the data associated with an application conform to the battery be fired immediately after a commit.

    (2) you can see updates of persistent objects, even if they are not posted.  These changes will be lost if they are not posted. So if you have a line like the one above, and two Clients add entries in the queue without committing, the server see the two entries in the queue until the battery is removed.  When the server restarts, the two went.

    Does that answer the question?

  • Dblink Oracle to sql server, multiple database on the same server sql under a dblink

    Hi, we managed to set up an Oracle dblink to sql server and retrieve data.

    The user of sql server have been using via dblink has access to multiple databases on the same sql server

    But the question is how in oracle (if possible) prepend you the SQL access to this?

    For example:

    Sqlserver_prod has the user sqlserver_user which seems to be set up as default database sqlserver_db1

    But we have select access to sqlserver_db2

    all work well as sqlserver_user

    Select * from table_fromdb1

    Select * from dbo.table_fromdb1

    Select * from sqlserver_db1.dbo.table_fromdb1

    as does

    Select * from sqlserver_db2.dbo.table_fromdb2

    more in Oracle

    Oracle_db a dblink sqlserver_prod. World connection sqlserver_user

    everything works fine

    Select * from 'table_fromdb1"@sqlserver_prod '.

    Select * from 'dbo '. "table_fromdb1"@sqlserver_prod

    But how to (if possible) access from oracle

    sqlserver_db2.dbo.table_fromdb2

    without having to create a new sqlserver_db2_user referenced in a new dblink

    If oracle for oracle would be

    Select * from remote_oracle_schema.table@remote_oracle_db

    Hello

    You cannot select a table in a different SQL * database server from that to which the gateway instance connects.
    As stated in the documentation-

    Oracle® database gateway

    Installation and Configuration Guide

    11g Release 2 (11.2) for AIX 5 L Based Systems (64-bit), HP - UX

    Itanium, Solaris (SPARC 64-Bit), Linux x 86 operating system,

    and Linux x 86-64

    In the section.

    The example SQL Server multiple databases: Configuration of the modem router

    A separate instance of the gateway that is required for each SQL Server database. Each

    instance needs its own Gateway system ID (SID).

    ==========

    You will need to create a new instance of the gateway for the SQL * Server DB2 as well as a link separate db.

    Kind regards

    Mike

  • question about SQL and VMDK places

    Hello world. Im kinda new here so please be gentle

    I'm confused on the locations of the files for sql.

    At this moment I have 1 with 3 vmdk files sql server executes a muscular 100 GB sql database.

    My disks are as follows

    1 OPERATING SYSTEM

    2 DB

    3 newspapers

    They are all thick and they are all stored with the virtual machine in the virtual machine configuration.

    It lies in a cluster HA/DRS and we use them both.

    The question boils down to performance.

    If my VM is stored on DATASTORE_A and the VM folder on this data store has all the VMDK files in it, it would be safe to say that they are all on the same disk as much as vsphere is concerned.

    Now to get best performance, I want to separate my VMDK files to separate data (with faster operation) warehouses to avoid conflicts of drive on my current data store. What is the right way to go about this?

    How separate you your VMDK to other data warehouses, and enjoy other performance data store? WE do not use DTS at all so im sure it although we use HA/DRS in our group... and yet, I don't think that it is important in this case... just more of an FYI.

    What do you do to get your SQL servers to run in vmware?

    Seems like a basic question.

    The answer seems easy. Separate disks so that they do not fight.

    'S virtually done it with VMDK but the data store underlying is 1 speed and they all exist on this subject, so... How to separate them at that level for best performance?

    Also... once I keep them separated, how can I keep my sanity by knowing my VMDK are not with the virtual machine? This kind of made a mess . Of course the performance takes a front seat for my mental health.

    Thank you all

    1. If I sVmotion my other vmdk files via the advanced options of one in another data store, it will create the files folder structure based on my VM name and place the vmdk inside?  (I guess I could just test it and see).

    Yes, the VM configuration file (.) VMX) will be modified to point to the new location of the virtual disk. You can use the virtual machine property editor to check for this, once the Storage vMotion.

    2. with regard to the disk controller, I assume you mean a virtual controller by VMDK in the vmx / correct the settings of the virtual machine and not a phyical on the hardware controller? (IM pretty sure I know the answer here but I just want to be clear).

    Yes, the virtual controller is correct.

    If so, what type of controller? LSI Logic or it would benefit all a paravirtual adapter?

    As long as your operating system is supported, go with the PVSCSI every time - especially for newspapers and the controller file data.

  • compress the question from the table

    My question is simple:

    If I execute this SQL:
    ALTER TABLE some_table_name MOVE COMPRESS;
    and the table is already compressed, Oracle jump or spend time re - compress?

    Why I ask this is because I have a few nice PL/SQL that loops through all the tables
    in my schema, I have about 1800 tables and it compresses, but it takes a long time, hours
    and I would like to only compress Tables which are not already compressed, so compressed, jump, so
    that's why I ask... try to determine whether or not PL/SQL needs a dry:-)

    Kodiak_Seattle wrote:
    Thanks for all the help, space is always a big problem for us here, we always run out of it. On only 1/3 of all Tables is compressed, 2/3 is not.

    So just research in there, thanks!

    on the 11G R2

    To continue the question I found the following:

    (a) have compression enabled for a table does not necessarily mean that the data is compressed. If compression is enabled with the statement:

    ALTER TABLE tablename COMPRESS;
    

    the existing data in the table remain uncompressed.

    However the execution of the order

    ALTER TABLE tablename MOVE COMPRESS;
    

    Compress in the existing data in the table and it is caught in time.

    Try to compress an already compressed or partially compressed table is taken on time. Oracle will analyze the data in the table again and try to compress.
    I did a test on a table with half million records already compressed and time was almost the same as the initial compression.

    You can do a quick test on your environment to verify that.

    Sorry for the misinformation, I provided before.

    Kind regards.
    Al

  • How to flush the output of the script in sql developer

    Greetings from a newbie,
    How can I empty out the script in sql developer?

    Kind regards
    Valerie

    Flush? You can clear the output pane by pressing 'Clear' (Eraser pencil) icon: the first icon on the mini-bar to the tab tools.

    That answer your question?
    K.

  • Error message when I run delete the query in SQL Server 2008.

    Error message when I run delete the query in SQL Server 2008 SP3.

    Error message:

    MSG 0, level 11, State 0, line 0
    A serious error occurred on the current command.  The results, if any, should be discarded.

    I never got any problem since 5 years.

    Please let me know what is the cause of the problem.

    You can get a response better/faster if repost you your question in the instances of SQL Server dedicated from Microsoft here:

    http://social.technet.microsoft.com/Forums/en-us/category/sqlserver .

    Thank you.   :)

    (I'm sorry, but I can't move this thread for you because the two forums are working on separate platforms)

  • I forgot my password to my ID Windows Live ID I need to answer the questions about my "ID". I don't know the answers.

    Windows Live ID problem

    Hello world.
    I have a small problem regarding the Windows Live account. My account is: * e-mail address is removed from the privacy *, I forgot my password.

    I need to answer the questions about my "ID". I don't know the answers that I've tried over and over again and I even tried to make security issues and I could not answer.
    What can I do?

    Hello RobertKristof,

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • What happened to the question/problem, that I just posted? You meet serious accidents on your servers that removes messages?

    I can't find the post I recently set up here. Have you had an accident which deleted all recent messages?
    I wanted to write comments to a suggestion that I got here, which was the use of Acronis as a backup manager...
    Manufactured by MowGreen - thank you for your comments.
    But you might have some use of the comment, what I am to do - I actually tried on the backup program you suggested; Acronis.
    I don't know if you have ever tried to restore a backup? You said that you never 'had to' restore...
    I tried to make a backup of my fresh without Norton and all windows and then tried to restore the backup.

    For me, Acronis 2010 ATI seems pretty useless!

    He could not read that a backup of my discs Inter Raid 5 - OK, can be forgiven.
    But he could not read from a SATA vanilla which contained a backup.
    And when I tried the last option to put a backup on a DVD, the program crashed when trying to read the DVD that contains the backup.
    So you better hope that you never have any of your backups - you will never be able to read from this backup.

    On the problem using Windows Update.
    You said that Norton 360 v2 Online is totally incompatible with Windows Vista (or Windows Update?). I am running Windows XP - is the same true for XP?
    Is this true for the Norton 360 Version 3 too? All products current Norton is not compatible with Windows?

    Here is the text that has been deleted on the Forum server:

    More effective than a virus - KB930494 MS update ends with true Msg that Windows cannot now work correctly

    I started to reinstall Windows XP, after he has screwed up and I discovered that all the system snapshot
    I created backups worthless - MS removes automatically after 90 days...

    But when reinstalling Windows XP Pro MCE 2005 I managed to beat or dodge the many problems - like all the
    famous error when update .NET Framework 1.1 Service Pack 1 and many others
    Suddenly I met an error generated by Microsoft of NONRECOVERABLE type!

    While trying to install Windows, I agreed that Windows was full of bugs and security flaws and
    need a large number of fixpacks installed via Windows Update.
    Such a group of patches is called KB930494 and the full name is:

    .NET framework 1.0 Service Pack 3 SYSTEM. WEB. DLL and MSCOREE. DLL Security Update for Windows XP Media Center Edition and Windows XP Tablet PC Edition

    Windows Update gave a brief error msg that this update has failed and I have tried to run this update
    manually when it produces the following error message: (note he's telling the truth when it)
    claims that "Windows may not work correctly")

    ---
    KB930494 Setup error

    Error while updating your system.
    Windows XP has been partially updated and may not work properly.

    Ok
    ---

    So, this update of Microsoft killed my system - it sure that _ 'does not properly"more.
    Lots of things off, lots of BSOD...

    Og - of course I should have used the system restore and created a backup that I should come back...!
    I did well - but this bomb of viral type of Microsoft made sure it was not possible to create
    a valid system by restoring such a backup. Probably because half the file system matches the other.

    The worst part is - even if I try to reinstall Windows again, avoiding this Virus created by MS, how can I be sure that
    This will be the only disguised bomb nothing extraordinary provided by Windows Update as necessary security patches?

    So guys, what is the best utility backup/restore partition there?

    Rgds. E. Ben

    ---

    Have you checked on the KB930494.log that is in the WINDOW to see where the installation is a failure?

    On a clean install of MCE should no problem by installing the SYSTEM .NET Framework 1.0 Service Pack 3 WEB. DLL and MSCOREE. DLL Security Update for Windows XP Media Center Edition and Windows XP Edition Tablet PC less than security software interferes with the installation and/or corrupt .NET update package.

    In addition, it can be an order of updates for .NET 1.0 SP3 installation which will avoid the problem your system knows. You install updates in the order they are presented by automatic updates?

    See also:

    More detailed for .NET Framework 1.0 SP3 and 1.1 SP1 failures troubleshooting ideas
    Questions I've seen so far with the installation of .NET Framework 1.0 SP3 and 1.1 SP1

    As for the backup and restore utilities: http://www.google.com/#hl=en&safe=off&q=Disk+backup&aq=f&aqi=g10&oq=&fp=1&cad=b
    I use Acronis image on my MCE box, but have never had to restore it... yet.

    MowGreen MVP Data Center Management - update of safety Consumer Services

    ---
    Thank you for your response.

    I didn't know about the log file, but watching her (she is very large) it seems is it can only be useful to those writing or working with
    updates...?
    You want to send me the file here? (Probably too big). Or you want I send you the file to watch?

    Only say unique error Code I find gives the following:
    Windows XP has been partially updated and may not work properly.
    29.641: Update.exe extended error code = 0xf070

    Interesting piece of info about security SW, because I have Symantec Norton 360 v2 online riddled with bugs, but I'm not
    optimist that disable Norton 360 Windows Update would do the trick, especially since I had so much
    problems with most of the time updates .NET Framework - it seems that this Windows component is full of problems...

    On the question of the "order of Installation" I initially let Windows Update handle this the way he wanted to.
    After that giving the briefest mention that only KB930494 had failed, I then tried to revive this one update.

    Do you think the system can be restored using the REPAIR, or whatever, or I have to reinstall all windows
    from scratch?

    Kind regards

    ---
    Ben,

    There is no need to send or post the log, because the whole .NET updates installation and OS stability problems are caused by Norton 360.
    Suggest you clean boot Vista as being expected to eliminate all processes and services of Norton to interfere with the installation of the update.
    In fact, you'd be much better off dumping Norton 360 and installing a Windows-compatible antivirus software.
    Then launch their removal tool for Norton ensure all remnants no longer stay or run this tool (AppRemover) as she removes a long list of security products.
    Then download and install one of the free AVs that work well with Windows Vista, Avast or Antivir .

    You can probably repair the OS running sfc/scannow from an elevated command prompt .
    If that can't do the job, then perform an upgrade on the spot .

    MowGreen MVP Data Center Management - update of safety Consumer Services
    ---

    I can't find the post I recently put up here...

    Your history of validation can be found here: http://social.answers.microsoft.com/Forums/en-US/user/threads?user=errbebe

    Always reply to your original thread, please.
    ~ Robear Dyer (PA bear); MS MVP (that is to say, mail, security, Windows & Update Services) since 2002. DISCLAIMER: I do not represent nor don't work for Microsoft

  • I have a question regarding windows mail. I was send and receive mail with no problems until last Thursday. I can still receive mail, but I can not send.

    / * moved from answers Feedback * /.
     
    I have a question regarding windows mail. I was send and receive mail with no problems until last Thursday. I can still receive mail, but I can not send. My email is with bellsouth.net and comes in my computer through windows Messaging.  I spent an hour and a half on the phone with bellsouth, and they say that the problem is with my windows mail.  I tried to use a restore date, and that did not help either. I will post a copy of this message, as I keep getting.  Your server suddenly put an end to the connection. The possible causes for this include server problems, network problems, or a long period of inactivity. Object 't', counts: 'mail.bellsouth.net', server: 'mail.bellsouth.net', Protocol: SMTP, Port: 25, secure (SSL): no, error number: 0x800CCC0F thanks for any help.

    Sometimes, WinMail settings get screwed up and you must remove the account and then add it back back.  Make sure first that the antivirus software not interfere (see www.oehelp.com/OETips.aspx#3).   Delete your account completely, then close WinMail.  Then compact and repair the database of WinMail (see www.oehelp.com/WMUtil/).  Add your account to mail back once again, and then make sure you have the correct settings under Tools | Accounts | Mail | Properties | Servers and | Advanced to what AT & T Specifies to WinMail (or OE).  Then see if it works.

    Steve

Maybe you are looking for