A wired problem

I got a wired problem to get number of records in a db.
the following code works no problem, and get total record number of a db,
but when I run it under debug mode. the record number get 0;
(windows, ms studio.net2005)
any idea?
thanks
int main()
Db db_(NULL,0);
db_.open(NULL, ".\\test.db", NULL, DB_RECNO, DB_CREATE, 0);
DB_BTREE_STAT *sp;
db_.stat(NULL, &sp, DB_FAST_STAT); // DB_READ_COMMITTED);
unsigned long recnum = (unsigned long) sp->bt_nkeys;
cout<<"number of records= "<< recnum<<endl;
return 0;
}

Hi,
Check to see if the database with the records is in the debug directory. When you switch to the Release version the current directory changes to Release.
Ron

Similar Messages

  • Not able to connect to DB in Redhat Linux - intermittent wired problem

    Hi,
    I need some help from you if possible please help me. There is a wired problem in the Linux based Oracle server.
    OS: Redhat Linux 8
    Database: Oracle Enterprise server 9.2
    There is an intermittent wired problem.
    After some time (it happen twice last Saturday and Yesterday), either from application or from SQL Plus we are not able to connect it from outside. But we are able to connect to the oracle server on Linux server.
    We checked the Listener status on the server and it was UP and running.
    We can ping the server from outside.
    We are not able to do an FTP from inside the server or from Outside to the Linux server.
    During this time the http protocol is working we can upload any file to the other sites.
    We tried to shutdown the oracle server and even we tried to restart the OS itself and not able to resole this issue.
    If we create a new Listener and starts the server and all blocking thing were released and now working.
    Currently we are monitoring the server at ALIF’s premises if it going to happen for the third time or not.
    Thanks a lot
    Regards
    Kumar

    What is the error that you get when you try to get connection ?
    to check the log file is a good option: <ORACLE_HOME>/network/log/listener.log
    Joel Pérez

  • Openbox-svn6175 wired problem [solved]

    I have a wired problem with the new openbox-svn revision.
    I use pypanel and e.g i open urxvt and firefox, and will switch from firefox to urxvt I can't get urxvt in the foreground, only when I start first firefox , then urxvt, switch to firefox and then to urxvt.
    I hope you understand what I mean..
    Last edited by fk (2007-05-11 18:32:31)

    Mikko777 wrote:So are you saying they still develop Openbox? /end sarcasm Love OB3 tho <3
    Yeah, quite recently the original developer came back and started doing _a lot_ of work on ob. Quite some bugs got fixed and if you look closely, we got some nice new features... Also be prepared for a lot of fancy new stuff to come.
    Edit: I kinda mean that OB seems ready and always stable so what are they doing to break things? Is obconf2 just so much different than obconf1 that it always breaks?
    It is not obconf2 that breaks, it is ob that makes obconf2 break. Openbox has some libraries (for rendering themes, parsing config files, etc.) and obconf2 makes use of that and every time some api changes happen (quite often recently) obconf2 breaks.

  • Wired problem with LEAD Analytical function

    I am having wired problem with LEAD Analytical function. It works fine as a standalone query
    but when used in sub-query it is not behaving as expected (explained below). I unable to troubleshoot
    the issue. Please help me.
    Detail explanation and the data follows:
    ========================= Table & Test Data =======================================
    CREATE TABLE "TESTSCHED"
    (     "SEQ" NUMBER NOT NULL ENABLE,
         "EMPL_ID" NUMBER NOT NULL ENABLE,
         "SCHED_DT" DATE NOT NULL ENABLE,
         "START_DT_TM" DATE NOT NULL ENABLE,
         "END_DT_TM" DATE NOT NULL ENABLE,
         "REC_STAT" CHAR(1) NOT NULL ENABLE,
         CONSTRAINT "TESTSCHED_PK" PRIMARY KEY ("SEQ")     
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (1, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (2, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 11:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (3, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (4, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:15:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (5, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:15:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (6, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (7, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (8, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (9, 118327, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (10, 120033, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('04-03-2008', 'dd-mm-yyyy'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (11, 120033, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('04-03-2008', 'dd-mm-yyyy'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (12, 120033, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (13, 120033, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (14, 126690, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 18:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 21:15:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (15, 126690, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 12:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 16:45:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (16, 126690, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 12:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 21:15:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (17, 126690, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 16:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 18:45:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (18, 126690, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 16:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 18:45:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (19, 169241, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 05:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 14:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (20, 169241, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 05:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 14:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (21, 169241, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (22, 169241, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (23, 200716, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (24, 200716, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (25, 200716, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (26, 252836, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (27, 252836, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (28, 252836, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (29, 252836, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (30, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 10:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (31, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 10:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 14:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (32, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 05:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (33, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:15:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 10:35:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (34, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:15:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 10:35:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (35, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 05:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 14:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (36, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 10:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (37, 289039, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 16:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:15:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (38, 289039, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 13:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:15:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (39, 289039, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 13:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 16:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
    insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
    values (40, 289039, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 13:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 16:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
    ========================= Problem Statement =======================================
    Problem Statement:
    Select all employees whose active schedule (rec_stat = 'A') start date & time falls
    between "16:30" and "17:45".
    An employee may be having multiple schedules on a day. It may be continuous or may be
    having breaks in between the schedules.
    If an employee schedule is continuous then the minimum schedule start date & time is
    considered as the start date & time of the work.
    If an employee is having breaks in the schedule, then each schedule start date & time is
    considered as start date & time.
    e.g:-1
    1     39609     2008/03/03     2008/03/03 07:00:00     2008/03/03 11:00:00     A
    2     39609     2008/03/03     2008/03/03 11:00:00     2008/03/03 11:30:00     A
    In above case, the employee schedule is continuous. The start date & time is 2008/03/03 07:00:00
    e.g:-2
    19     169241     2008/03/03     2008/03/03 05:30:00     2008/03/03 14:00:00     A
    21     169241     2008/03/03     2008/03/03 17:30:00     2008/03/03 22:00:00     A
    In above case, the employee is having a break in between. Then both records
    start date & time (i.e. 2008/03/03 05:30:00, 2008/03/03 05:30:00 ) is considered
    as start date & time.
    e.g:-3
    30     260774     2008/03/03     2008/03/03 07:00:00     2008/03/03 10:30:00     A
    31     260774     2008/03/03     2008/03/03 10:30:00     2008/03/03 14:00:00     A
    32     260774     2008/03/03     2008/03/03 05:30:00     2008/03/03 07:00:00     A
    In above case, the employee schedule is continuous. The start date & time is 2008/03/03 05:30:00
    ========================= Query to test Individual Employees =======================================
    Query-1: Test query to see the CASE and LEAD function works fine. If "CAL = 0" means that all
    schedules are continuous and the employee needs to ignored.
    SELECT fw.*,
    CASE WHEN LEAD(FW.END_DT_TM, 1)
    OVER(ORDER BY FW.START_DT_TM DESC ) IS NULL AND
    fw.start_dt_tm BETWEEN
    TO_DATE('03/03/2008 16:30:00','mm/dd/yyyy hh24:mi:ss') AND
    TO_DATE('03/03/2008 17:45:00','mm/dd/yyyy hh24:mi:ss')
    THEN Fw.seq
    WHEN LEAD(FW.END_DT_TM, 1)
    OVER(ORDER BY FW.START_DT_TM DESC) != FW.START_DT_TM AND
    fw.start_dt_tm BETWEEN
    TO_DATE('03/03/2008 16:30:00','mm/dd/yyyy hh24:mi:ss') AND
    TO_DATE('03/03/2008 17:45:00','mm/dd/yyyy hh24:mi:ss')
    THEN Fw.seq
    ELSE 0
    END AS "CAL"
    FROM TESTSCHED fw
    WHERE fw.empl_id = 289039
    and fw.rec_stat = 'A'
    Query Results
    SEQ     EMPL_ID     SCHED_DT     START_DT_TM          END_DT_TM          REC_STAT     CAL
    37     289039     2008/03/03     2008/03/03 16:30:00     2008/03/03 22:15:00     A          0
    39     289039     2008/03/03     2008/03/03 13:45:00     2008/03/03 16:30:00     A          0
    Since all "CAL" column is zero, the employee should be ignored.
    ========================= Query to be used in the application =======================================
    Query-2: Actual Query executed in the application which is not working. Query-1 is used as subquery
    here.
    SELECT
    F1.SEQ,
    F1.EMPL_ID,
    F1.SCHED_DT,
    F1.START_DT_TM,
    F1.END_DT_TM,
    F1.REC_STAT
    FROM TESTSCHED F1
    WHERE F1.SEQ IN
    (SELECT CASE
    WHEN LEAD(FW.END_DT_TM, 1)
    OVER(ORDER BY FW.START_DT_TM DESC) IS NULL AND
    FW.START_DT_TM BETWEEN
    TO_DATE('03/03/2008 16:30:00', 'mm/dd/yyyy hh24:mi:ss') AND
    TO_DATE('03/03/2008 17:45:00', 'mm/dd/yyyy hh24:mi:ss') THEN FW.SEQ
    WHEN LEAD(FW.END_DT_TM, 1)
    OVER(ORDER BY FW.START_DT_TM DESC) != FW.START_DT_TM AND
    FW.START_DT_TM BETWEEN
    TO_DATE('03/03/2008 16:30:00', 'mm/dd/yyyy hh24:mi:ss') AND
    TO_DATE('03/03/2008 17:45:00', 'mm/dd/yyyy hh24:mi:ss') THEN FW.SEQ
    ELSE 0
    END
    FROM TESTSCHED FW
    WHERE FW.EMPL_ID = F1.EMPL_ID
    AND FW.REC_STAT = 'A')
    Query-2 Results
    SEQ     EMPL_ID     SCHED_DT     START_DT_TM          END_DT_TM          REC_STAT
    9     118327     2008/03/03     2008/03/03 17:30:00     2008/03/03 22:00:00     A
    12     120033     2008/03/03     2008/03/03 17:30:00     2008/03/03 19:30:00     A
    17     126690     2008/03/03     2008/03/03 16:45:00     2008/03/03 18:45:00     A
    21     169241     2008/03/03     2008/03/03 17:30:00     2008/03/03 22:00:00     A
    24     200716     2008/03/03     2008/03/03 17:30:00     2008/03/03 22:00:00     A
    28     252836     2008/03/03     2008/03/03 17:30:00     2008/03/03 19:30:00     A
    37     289039     2008/03/03     2008/03/03 16:30:00     2008/03/03 22:15:00     A
    Problem with Query-2 Results:
    Employee IDs 126690 & 289039 should not appear in the List.
    Reason: Employee 126690: schedule start date & time is 2008/03/03 12:45:00 and falls outside
    "16:30" and "17:45"
    14     126690     2008/03/03     2008/03/03 18:45:00     2008/03/03 21:15:00     A
    17     126690     2008/03/03     2008/03/03 16:45:00     2008/03/03 18:45:00     A
    15     126690     2008/03/03     2008/03/03 12:45:00     2008/03/03 16:45:00     A
    Reason: Employee 289039: schedule start date & time is 2008/03/03 13:45:00 and falls outside
    37     289039     2008/03/03     2008/03/03 16:30:00     2008/03/03 22:15:00     A
    39     289039     2008/03/03     2008/03/03 13:45:00     2008/03/03 16:30:00     A

    Your LEAD function is order by fw.start_dt_tm, in your first sql, the where clause limited the records return to REC_STAT = A and EMPL_ID = 289039.
    In your 2nd query, there is no where clause, so to the LEAD function, the next record after seq 37 is seq 38 which has an end date of 2003-03-03 10:15 pm, not equal to the start time of record seq 37.
    Message was edited by:
    user477455

  • A very wired problem of Pages

    I am using Chinese System, and I need to write a lot in English, but I encounter a very very wired problem. For example, after typing January or February, or Monday or Tuesday, I hit space or return key on the keyboard, it will automatically change it into Chinese, who can explain this and tell me how to deal with it? It drives me crazy!
    Thanks

    Vampire,
    Welcome to Apple discussions.
    It sounds like you either have a conflict with a keystroke expander or with Pages built-in auto-correction feature. To test this, try shutting off the auto-correction by clicking on Pages > Preferences > Auto-Correction > then UNcheck Symbol & Text Substitution. Let us know if that works.
    -Dennis

  • Wired problems... please help urgent!!!

    Hi all, recently I´m having wired problems in my computer... This describes the problem:
    Laste weak:
    -Computer ´not starting: it was allways hanging up in the Platinum screen at startup;
    -next when it started after reboots, one of my dvdrw drives didnt work (the tray didnt open and windows was unable to show the drive in My Computer... this happened a few times before after installing nvidia ide drivers, but after i unninstalled them, it happened a few times 1 or 2 times again);
    -2 or 3 times the computer didnt start again couse it didnt boot and this message appeared (disk not found please insert system disk or something like that)
    -After changing IDE cable in the hard drive the problem was gone for one day or two.
    Yesterday:
    -computer started giving those blue screens of death after being a while in windows (happened several times);
    -the disk when working like hell (making disk defragmentation and other things) reached critical tempereatures (42 ºc showed in HDD Heath) making wired noises turning on and off
    -after restart it wouldnt start windows (started NVIDIA mac adress client or something like that) the boot in bios has the HD in the 1st priority.
    Can someone help me? Im going crazy with my computer...  im suspectin about my hard drime but... dont know...
    this is my rig:
    Amd Athlon 64 2800+ not overclocked
    MSI k8n Neo platinum nForce3 250Gb whith 5.11 nvidia drivers
    1 Gb memory 2x512Mhz 400 kingston
    ATI Radeon 9600xt with Omega drivers Catalyst 5.12
    120 Gb Samsung HD sp1203n
    450w Power supply 

    Hola,
    I'm affraid I have no good news for you as it looks like your computer's Hard Drives is going down.
    URGENT ATTENTION : Backup all your data inmediatly as it's on high risk of being lost.
    Once you have done this, try (if you can) to test that hard drive in another computer. If you get the same
    results in other computer (clicking and spinning up and down) then the hard drive is damaged for sure.
    NOTE:
    Be sure to test it well, because if may seem to work fine for several minutes or even hours. But if the drive
    is indeed damaged, the problems will be back sooner or later.
    For best results, download (from your hard drive manufacturer's support page) the appropiate diagnostic tool,
    and once you have it, run it from DOS. Your hard drive manufacturer, should have instructions on how to use
    the tool, please read them carefully and follow them correctly in order to get the most accurate results once
    you run the tool.
    In the case the hard drive is faulty, then replace it as soon as you can.
    If not, then remove the cable you're using to connect your hard drive to your mainboard and use a new one,
    and see if the problem persists or not.
    Let us know how it goes ok ?
    Be well and good luck 

  • 802.1x wired problems

    Hello.
    I'm trying to install arch, but I've been stuck on configuring network for a day already.
    The point is: I need to connect to the local university network (wired) to be able to connect to the Internet via PPPoE. The university network has PEAP MSCHAPv2 security and I can't connect to it.
    I haven't found anything on the forums I hadn't tried so far, so, maybe you can help me find my mistakes.
    Here's what I'm doing:
    /etc/wpa_supplicant.conf:
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
    ap_scan=0
    network={
    key_mgmt=IEEE8021X
    eap=PEAP
    phase2="auth=MSCHAPV2"
    identity="username"
    password="password"
    eapol_flags=0
    ip link set enp4s0 up
    wpa_supplicant -i enp4s0 -B -Dwired -c /etc/wpa_supplicant.conf
    dhcpcd enp4s0
    pppoe-setup
    pppoe-start
    Update: I managed to advance a bit further, pppoe-start finally says
    . Connected!
    But now I can't seem to get DNS to work, since my provider's server won't send one to me. Apart from that, everything seems to work, so I'll just leave this here so other newbies with the same problem would have less trouble lookng for solution.
    Last edited by tstheworm (2013-03-21 17:03:49)

    Hi Hartmut,
    Suggest using CSSC with CTA.
    CTA 802.1x supplicant have limitation.
    CSSC is free for basic features, advanced features (support wireless) need license.
    You may need to un-install CTA with 802.1x supplicant first, follow by install CSSC + CTA (without 802.1x) because CSSC have built-in 802.1x features.
    Please take note of the installation sequence. Because if you make mistake about the installation sequence, you may get a error and the thing didn't work.
    Hope this help
    Thanks

  • AEBS in bridge mode: wired problems

    Hello, I can't manage to setup AEBS to fit my needs.
    Here's the situation:
    There's a router/switch that provides net access (wired) to the flats in my building. It distributes IPs through DHCP (in the range 10.68.3.x).
    Plug1 (office room): Mac Pro, wired connection
    Plug2 (living room): AEBS (through LAN port)
    AEBS LAN port: XBox 360
    AEBS wireless: Powerbook
    the AEBS is configured to be a client to DHCP and in bridge mode.
    the Mac Pro, AEBS and Powerbook get correctly their config (in the 10.68.3.x range) but the XBox does not (169.254.240.x).
    If I wire the powerbook to the AEBS and switch off airport, same thing, it loses its config and get a 169. address.
    So basically, it seems it bridges between LAN and wireless but not between LAN/LAN.
    I know i can get something working if i accept to have the MacPro on another subnet than the network after the AEBS (if i use DHCP/NAT with AEBS). But then I loose the possibility to share files between the two computers.
    Another possibility would be to use a switch before the AEBS for the wired part of the network i guess, but i'd prefer not to add one more piece of hardware.
    Does anyone went through this type of problems or setup? Or is it definitely not possible? Any clue will help.
    PS: The final network would be more complicated if i get past this stage (WDS with Airport Express to cover the whole flat)

    Arkhleyi, Welcome to the discussion area!
    Plug2 (living room): AEBS (through LAN port)
    Have you tried changing this to the WAN port?

  • Ypbind, systemd and net-auto-wired problems

    I have the following problem after boot:
    YPBINDPROC_DOMAIN: Domain not bound
    And can't login with any user!
    I have to restart the ypbind so I can login.
    I am using systemd and net-auto-wired.service to start my connection.
    I think the problem is that the ypbind.service is being started before the network.
    # journalctl | grep ypbind
    Feb 10 14:36:00 qomplex000 ypbind[369]: Host name lookup failure
    I can't find the problem, tried all kinds of configurations on
    /usr/lib/systemd/system/ypbind.service
    And no change.
    I think there is a relation with this:
    https://bugzilla.redhat.com/show_bug.cgi?id=632620

    oangelo wrote:One can use the words "before" and "after", on *.sevice files, to make sure that the service will start on the right order.
    But this does check only start but not completion of the started service. In our case dns is started and systemd moves on, not waiting for a valid dns configuration (but it takes a few seconds for dhcpd to put the nameserver in /etc/resolv.conf). The ypbind service gets started and tries to resolve a dns for ypserver from /var/yp.conf. Since the nameserver is not configured properly at this moment it gets no valid answer. Unfortunately ypbind seems not to be smart enough to retry ypserver and hangs. Thats the cause for 'YPBINDPROC_DOMAIN: Domain not bound'.
    From the ypbind manpage:
    This ypbind version listens for DBUS messages from NetworkManager. If no NetworkManager is running at startup, ypbind will behave as usual and assumes there is a working network connection. If NetworkManager is running on the system, ypbind will only search and provide NIS informations, if NetworkManager tells that a network connection is available. If NetworkManager establishes a connection, ypbind will reread all configuration files, registers at the local portmapper and try to search NIS servers. If NetworkManager drops a connection, ypbind will unregister from portmapper.
    I don't use NetworkManager on these systems (because of keeping it simple, as a real archer).
    Harvey

  • N95 8GB buttons or wiring problem? Pls Help!!!

    Got me the weirdest problem. If anyone could help please!
    For some odd reasons, the buttons 7,5,9,0 as well as my red and green button do other functions. For example pushing the 7 button would bring out 7283# 5 would bring out 5164, my red button would start playing music. Anyone encounter this problem?
    Bought the phone in San Francisco and said I had a year factory warranty. However, when I called Nokia for the support, they had said my phone was a Malaysian model so they wouldn't fix it in the US.
    Any help or suggestions is welcome. Thank you so much!!!

    I have formatting using the *3+call and did not solve the problem. I even updated to the newest firmware. So far those buttons still do other functions. i would try the *#7370# but the 7 and 0 puts out other numbers... bummer -_- someone said it's due to the internal wiring of slider phones? I appreciate everyone's input!

  • Internal wiring Problems ??

    I have been checking out a friends Broadband Problem for him. He has just moved into  a brand new house with new broadband and new internal wiring to 9 outlets around the house.
    At master socket with all internal wiring Disconnected - he can achieve 5.5Mb/s at all times of the day - this is better than he had hoped based on his location and distance from exchange. BT engineer quite rightly says problem with internal wiring. Once frontplate is reconnected on NTE5 then speed drops to 2.35Mb/s ie less than half.
    I have noticed that the electrician has fitted modular master sockets rather than secondary sockets at each of the internal locations. ie MK K5820 instead of K5821.
    My question is  - is this a possible cause of loss of speed when internal wiring is connected ??

    seniorshot wrote:
    Thankyou John for your prompt reply.
    I am  aware of the "ring" wire and had already removed that at the master socket front plate. (I am a retired BT engineer).
    What I was hoping to find was  someone out there who had experienced a problem after incorrectly fitting master sockets at extension locations rather than secondary sockets.
    Would this cause a line speed degredation similar to my friends..???? The result of fitting master sockets at the nine extension locations would have the effect of having 9 surge protectors and 9 capacitor/470Kohm resistors across the line. Could this affect the ADSL signal.?
    I would like to be able to say with confidence to the original electrician who wired these sockets up, that his mistake is causing this substantial loss in broadband speed.
    More likely poor quality cable degrading the signal, and that is a lot of extensions and wiring.
    There should really be a filtered ADSL faceplate on the master socket to isolate the extensions.
    And the home hub should be plugged into the front of the filtered faceplate.
    At least then, you stand a chance of better performance.
    Filtered faceplate
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • BT phone wiring problem

    Hi I am struggling with a rather old BT wiring system. We have a teelgraph pole and the wire comes into the loft it then joins a brown junction box type contraption with 8 terminals in two rows of 4.
    Two wires come from the outside and then join a modern white cable with the standard white/blue/green/orange wires.
    This then leads down to a master box which has the telephone plugged in.
    The problem is our builder is doing a loft conversion and has pulled out the wires...!! have searched internet for help but cannot seem to find any links with this old brown box and how the modern wires link... there also seem to be two orange/brown wires which are broken off.
    Any help would be great!!

    If you let me know the colours of the wires coming from the pole (poss Orange+white and Green+brown) if it is the line should come in on the orange+white.
    It "should" go away to your main socket on the white cable you describe on a Blue/ white+blue wires
    (If I have helped you in any way to say "Thank You" please click on the star next to the message. Thank You)
    If I have solved your Issue please click the "Mark as accepted solution" button.

  • MAX Wiring problems

    Hello,
    I am having problems wiring up my servo motor to the Measurement and Automation Explorer. I am using a UMI7764 and a PCI 6221 with labview 6.2. The third party driver I am using can be found at this adress - http://www.electrocraft.de/produkte/aufdruck/1/21.​pdf. At the minute I have the power supply wired to the driver from a 24DC supply and I also have the the UMI 7764 5V supply coming from the driver. I also have the motor and tacho wired up to the driver. I have the encoder also wired up to the UMI. I have tried wiring up the the AOUT1 and AOGND to the + and - setpoints (18&19 in manual) on the driver but the motor still won't operate. ANY HELP would be greatly appreciated.
    Regards and thanks in advance.
    Josh

    Hi Josh
    Yes this card should work fine for you. Depending on the number of axis that you want to control and the other features that you may or may not need Ni supply a rage of cards that would suit your purpose but the 7344 seems a safe bet. It is 4 axis and should be compatable with both your breakout box and your steppar motor.
    best regards
    Graham Green
    Technical Marketing Engineer
    National instruments UK & Ireland

  • Wired problem in IP Security and UNC

    In active directory I create two organization units, one of them has IPSec enabled to all computers and other not. in IPSec settings for first OU, create rule permit access the computers in second OU. 
    I can ping computers in first OU using Computer in second OU.
    I can see Shared files in computers belong to Second OU using computers in First OU.
    problem is I can't access any UNC path from first OU (IPSec enabled) in second OU. computers in second OU can reach themselves UNC paths.
    M.Alizadeh

    Hi,
    >>problem is I can't access any UNC path from first OU (IPSec enabled) in second OU. computers in second OU can reach themselves UNC paths.
    Before going further, what IPsec policy settings have we configured? What's the message when we can't use UNC path to access the shares on the computers in the second OU? Besides, you can also check event logs in Event Viewer to see if some related event
    messages were logged.
    Best regards,
    Frank Shen
    Hi,
    the error code is 0x80070035 and error message is "The Netowrk Pah was not found.".
    in my scenario users without joining the company domain couldn't access the Domain Network except computers is in my Second OU. but computers that join to Domain and get IPSec Policy just can ping the computers in Second OU and couldn't access to there share
    folders. 
    M.Alizadeh

  • XControl Data wiring problem - Data type is Waveform Graph (Strict)

    Hi,
    I created an Xcontrol for a waveform graph. The datatype (under Data 1.ctl) is a WaveformGraph reference type.
    When I wire a Waveform graph reference to the Xcontrol (as an indicator), there is a wire conflict.
    I checked the strict definition and the reference types are theoretically congruent but I cannot seem to wire it together. Any solutions?
    Please see the attached code.
    Thanks!
    Attachments:
    GraphDisplay XControl.7z ‏1717 KB
    Tester.vi ‏15 KB

    It looks like the XControl data is a waveform reference (strict). I can't open the XControl though, because I don't have a 7z compiler, but the problem is probably that the refnum will only take in a reference to an exact waveform graph because it's strict.
    You can create a non-strict reference and use that for your data by:
    Open your data control FP
    Press Ctrl-Space
    Type "Control Refnum"
    Press Enter and place that on front panel
    Right click it and brows to the correct data type:
    James
    LabVIEW Professional 2014

Maybe you are looking for