SQL2012 System Databases Restore on a different environment

So While I was playing around I wondered if it was possible for me to setup a similar version of SQL 2012 on a different environment and restore it quickly.  
Master Env
SQL 2012  - 3 databases , 2 SSIS packages , 2 Sql Agent jobs and 1 report.
The idea would be to copy this on another Server altogether.
Slave Env
So the first thing I thought was the system database should go across before all else.  Now it states that both versions have to be the same which I confirmed using;
Use Master
Go
SELECT
SERVERPROPERTY
('ProductVersion
')ASProductVersion,
SERVERPROPERTY
('ProductLevel')ASProductLevel,
SERVERPROPERTY
('ResourceVersion')ASResourceVersion,
SERVERPROPERTY
('ResourceLastUpdateDateTime')ASResourceLastUpdateDateTime,
SERVERPROPERTY
('Collation')ASCollation;
Both showing the same.    Having backed up both system databases on both sides the restoring of the model and msdb databases where straight forward.
The master was a different ball game and is one I still cant get past
1. Stopped the SQL SERVER on the Slave Env
2. Open Command shell
3. Net Start MSSQLServer /m”SQLCMD”
4. sqlcmd -S. -E
5. RESTORE DATABASE master FROM DISK = 'D:\SQL\Backups\master.bak' WITH REPLACE
Go
what this will do is restore the master database from the live to the slave and this is where the problems begin because once you do that restart the SQL server and get out of single user mode you cant logon .
Question
Assuming the Master has different windows logons to the Slave is there any way once this restore has been done to negate this or do you  create a user straight after the restore?
Also with ReportingServices and Integrated Services are they straight forward Db restores ?
Any Help one this would be great!!
As I really want to know how quickly I can jump from one environment to another.

So While I was playing around I wondered if it was possible for me to setup a similar version of SQL 2012 on a different environment and restore it quickly.  
Master Env
SQL 2012  - 3 databases , 2 SSIS packages , 2 Sql Agent jobs and 1 report.
The idea would be to copy this on another Server altogether.
Not very simple. Requires DBA skills.
The standby (secondary) server usually refreshed through database mirroring or log shipping.
BOL: " About Log Shipping (SQL Server)
SQL Server Log shipping allows you to automatically send transaction log backups from a primary database on a primary server instance to one or more secondary databases on separate secondary server instances. The transaction log backups are
applied to each of the secondary databases individually. An optional third server instance, known as the monitor server, records the history and status of backup and restore operations and, optionally, raises alerts if these operations fail to occur as scheduled.
Benefits
•Provides a disaster-recovery solution for a single primary database and one or more secondary databases, each on a separate instance of SQL Server.
•Supports limited read-only access to secondary databases (during the interval between restore jobs).
•Allows a user-specified delay between when the primary server backs up the log of the primary database and when the secondary servers must restore (apply) the log backup. A longer delay can be useful, for example, if data is accidentally changed on the
primary database. If the accidental change is noticed quickly, a delay can let you retrieve still unchanged data from a secondary database before the change is reflected there. "
LINK: http://msdn.microsoft.com/en-us/library/ms187103.aspx
Kalman Toth Database & OLAP Architect
SQL Server 2014 Database Design
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Similar Messages

  • Database restore on a different server

    I have a database ORADB1 running on unix server and I took a hot backup using a script and restored it on the same server as ORADB2 and opened the database to verify it comes up and then shut it down.
    Now I have to restore ORADB2 into a different server and bring it up as ORADB1 and I can't take another backup due to performance issue on the server, can someone tell me the steps involved in this?
    Thanks

    Yes - this would be no different than the way you created ORADB2 from ORADB1 to begin with.
    Use the same process by modifying the initialization file. If you use a different directory structure you will need to modify the control file since it specifies the location of the datafiles. You can execute
    alter database backup controlfile to traceto put a 'text' copy of the binary control file in a trace file. Then extract the text to a a new file and modify the directory paths for the datafiles.
    Just remember that your new ORADB1 will not contain the same data as your original ORADB1 since users have been making changes this entire time.

  • SQL Server wants to open properties of wrong database and cannot restore logs of different databases at the same time

    We have implemented our own way of logshipping by backing up the transaction logs of all our non-system databases every hour. Then we transfer the backups (before SQL Server 2008 R2 with additional zip and unzip steps) to the second environment where we
    restore them only during the night on databases in standby-state (Like this, our developers can access the databases without disturbing the productive system and we can restore the t-logs during night, so not shutting out the developers during the day).
    Now since we replaced our hardware in the productive environment, we replaced the hardware in the second environment with the servers from previous productive environment. Same SQL Server 2008 R2, same Service Pack (SP2), same installation procedure. But
    since then the SQL Server in the second environment behaves different:
    - When the logs of some database "A" are restored, I cannot access the properties of any database, i.e. database "B", I only get the error message "Cannot show requested dialog. (SqlMgmt) Database 'A' cannot be opened. It is in the
    middle of a restore. (Microsoft SQL Server, Error: 927)"
    - Our logshipping runs multiple instance at the same time, so restoring multiple databases' logs. But since the change, two of the instances fail restoring of datatbases, i.e. "B" and "C" with the error message "Database 'A' cannot
    be opened. It is in the middle of a restore.". The jobs guarantee to restore only logs of the database they need to restore, they have strictly separated sets of target databases and only try to restore the databases of their sets.
    Before the new installations, we did not have these strange behaviours. But as said, it is the same SQL Server version, the same service pack, and we followed the same installation document but maybe with the small changes in settings. The user the jobs
    are running under is a domain admin, the login they use has dbcreator, processadmin, db_owner and db_backupoperator roles. My login on the SQL Server has sysadmin rights and as described similar problems.
    Is this problem known or does somebody have an idea where to go looking for?
    Thanks, Chris

    Hi Christar,
    According to your description, after you configuring Log shipping between two database, you remove the hardware from production environment to dev environment, in this hardware, there are saved the transaction logs of your database.
     When restoring  your database, there will occurs error 927, right?
    SQL Server Log shipping allows you to automatically send transaction log backups from a
    primary database on a primary server instance to one or more
    secondary databases on separate secondary server instances. It consists of three operations:
    1.Back up the transaction log at the primary server instance.
    2.Copy the transaction log file to the secondary server instance.
    3.Restore the log backup on the secondary server instance.
    Since you want to move your hardware avoiding copy job, we need to verify if .mdf and .ldf file are not saved in your hardware, or else,
     if you move your hardware, you could not open your database in your Primary Server. I recommend you can refer to the following steps.
    Full back up your primary database and restore it into the secondary database. It would have been set up as WITH STANDBY ,the databases would read StandBy/ Read Only.
    Perform transaction log backups via a SQL Server Agent job running on the primary server instance, save them in your hardware.
    In night, you move hardware to your dev environment, you can manually restore these transaction log backups or set up a SQL Server Agent job to restoring them from your hardware.
    There is detail about how to configure log shipping in SQL Server 2008R2 step by step, you can review it.
    http://mostafaelmasry.wordpress.com/2013/01/02/log-shipping-in-sql-server-2008r2-step-by-step/
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to restore system databases?

    If SQL server system databases crash, what will happen?
    If sql server system databases crash, how to fix the issue? Any difference to fix for master, msdb,model temp and distribute?
    Thanks

    There would be various situation after "crash".
    If Master database has corruption after unexpected failure then SQL Service won't start. Only option would have is to rebuild system databases and follow the article given by others to restore system databases.
    If SQL Service is able to start and reports corruption in model database then there are two ways to fix it.
    Get MDF and LDF file of model from other SQL Instance which has EXACTLY same build and replace the files.
    If you have important data in model database, then you would need to restore. Follow the links given by other
    TempDB database is not eligible for backup and restore.
    MSDB database can be restored if SQL is running.
    Distribution database can be restored when SQL is running. Provided no one accessing it.
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • SAP failed to start after database restore

    SAP Version: SAP R/3 Enterprise
    Database: MSSQL Server 2000
    OS: Windows
    We had performed a database restore from the backup which was taken before the system rebuilt. The SAP failed to bring up as the dispatcher stopped due to the work processes died. After the database restore, we had run the SAP Tools for MSSQL Server but still did not manage to bring up the system. Please find below the logs for the developer trace and the dev_w0.
    <b>dev_disp</b>
    trc file: "dev_disp", trc level: 1, release: "640"
    Wed Dec 05 11:03:58 2007
    kernel runs with dp version 136000(ext=102000) (@(#) DPLIB-INT-VERSION-136000-UC)
    length of sys_adm_ext is 524 bytes
    sysno      00
    sid        Q02
    systemid   560 (PC with Windows NT)
    relno      6400
    patchlevel 0
    patchno    196
    intno      20020600
    make:      multithreaded, Unicode
    pid        2896
    ***LOG Q00=> DpSapEnvInit, DPStart (00 2896) [dpxxdisp.c   1102]
         shared lib "dw_xml.dll" version 196 successfully loaded
         shared lib "dw_xtc.dll" version 196 successfully loaded
         shared lib "dw_stl.dll" version 196 successfully loaded
         shared lib "dw_gui.dll" version 196 successfully loaded
         shared lib "dw_mdm.dll" version 196 successfully loaded
    Wed Dec 05 11:04:02 2007
    WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 4 seconds
    ***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c  3881]
    MtxInit: -2 0 0
    DpSysAdmExtInit: ABAP is active
    DpIPCInit2: start server >ibwoksapq02_Q02_00                      <
    DpShMCreate: sizeof(wp_adm)          15840     (1320)
    DpShMCreate: sizeof(tm_adm)          2969176     (14772)
    DpShMCreate: sizeof(wp_ca_adm)          24000     (80)
    DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    DpShMCreate: sizeof(comm_adm)          290000     (580)
    DpShMCreate: sizeof(vmc_adm)          0     (424)
    DpShMCreate: sizeof(wall_adm)          (38456/34360/64/184)
    DpShMCreate: SHM_DP_ADM_KEY          (addr: 07910040, size: 3386992)
    DpShMCreate: allocated sys_adm at 07910040
    DpShMCreate: allocated wp_adm at 07911B88
    DpShMCreate: allocated tm_adm_list at 07915968
    DpShMCreate: allocated tm_adm at 07915990
    DpShMCreate: allocated wp_ca_adm at 07BEA7E8
    DpShMCreate: allocated appc_ca_adm at 07BF05A8
    DpShMCreate: allocated comm_adm_list at 07BF24E8
    DpShMCreate: allocated comm_adm at 07BF2500
    DpShMCreate: allocated vmc_adm_list at 07C391D0
    DpShMCreate: system runs without vmc_adm
    DpShMCreate: allocated ca_info at 07C391F8
    DpShMCreate: allocated wall_adm at 07C39200
    MBUF state OFF
    EmInit: MmSetImplementation( 2 ).
    <ES> client 0 initializing ....
    Wed Dec 05 11:04:03 2007
    <ES> InitFreeList
    <ES> block size is 1024 kByte.
    Using implementation flat
    <EsNT> Memory Reset disabled as NT default
    <ES> 1131 blocks reserved for free list.
    ES initialized.
    rdisp/http_min_wait_dia_wp : 1 -> 1
    ***LOG CPS=> DpLoopInit, ICU ( 2.6.1 2.6 4.0) [dpxxdisp.c   1476]
    ***LOG Q0K=> DpMsAttach, mscon ( ibwoksapq02) [dpxxdisp.c   10113]
    DpStartStopMsg: send start message (myname is >ibwoksapq02_Q02_00                      <)
    DpStartStopMsg: start msg sent
    CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    CCMS: start to initalize 3.X shared alert area (first segment).
    DpMsgAdmin: Set release to 6400, patchlevel 0
    MBUF state PREPARED
    MBUF component UP
    DpMBufHwIdSet: set Hardware-ID
    ***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c   1025]
    DpMsgAdmin: Set patchno for this platform to 196
    Release check o.K.
    Wed Dec 05 11:04:43 2007
    ERROR => W0 (pid 1368) died [dpxxdisp.c   12682]
    ERROR => W1 (pid 2032) died [dpxxdisp.c   12682]
    ERROR => W2 (pid 772) died [dpxxdisp.c   12682]
    ERROR => W3 (pid 3272) died [dpxxdisp.c   12682]
    ERROR => W4 (pid 2980) died [dpxxdisp.c   12682]
    my types changed after wp death/restart 0xbf --> 0xbe
    ERROR => W5 (pid 3344) died [dpxxdisp.c   12682]
    my types changed after wp death/restart 0xbe --> 0xbc
    ERROR => W6 (pid 2848) died [dpxxdisp.c   12682]
    my types changed after wp death/restart 0xbc --> 0xb8
    ERROR => W7 (pid 3056) died [dpxxdisp.c   12682]
    ERROR => W8 (pid 3308) died [dpxxdisp.c   12682]
    ERROR => W9 (pid 596) died [dpxxdisp.c   12682]
    my types changed after wp death/restart 0xb8 --> 0xb0
    ERROR => W10 (pid 1988) died [dpxxdisp.c   12682]
    my types changed after wp death/restart 0xb0 --> 0xa0
    ERROR => W11 (pid 2136) died [dpxxdisp.c   12682]
    my types changed after wp death/restart 0xa0 --> 0x80
    DP_FATAL_ERROR => DpWPCheck: no more work processes
    DISPATCHER EMERGENCY SHUTDOWN ***
    increase tracelevel of WPs
    killing W0-1368 (SIGUSR2)
    ERROR => DpWpKill(1368, SIGUSR2) failed [dpxxtool.c   2508]
    killing W1-2032 (SIGUSR2)
    ERROR => DpWpKill(2032, SIGUSR2) failed [dpxxtool.c   2508]
    killing W2-772 (SIGUSR2)
    ERROR => DpWpKill(772, SIGUSR2) failed [dpxxtool.c   2508]
    killing W3-3272 (SIGUSR2)
    ERROR => DpWpKill(3272, SIGUSR2) failed [dpxxtool.c   2508]
    killing W4-2980 (SIGUSR2)
    ERROR => DpWpKill(2980, SIGUSR2) failed [dpxxtool.c   2508]
    killing W5-3344 (SIGUSR2)
    ERROR => DpWpKill(3344, SIGUSR2) failed [dpxxtool.c   2508]
    killing W6-2848 (SIGUSR2)
    ERROR => DpWpKill(2848, SIGUSR2) failed [dpxxtool.c   2508]
    killing W7-3056 (SIGUSR2)
    ERROR => DpWpKill(3056, SIGUSR2) failed [dpxxtool.c   2508]
    killing W8-3308 (SIGUSR2)
    ERROR => DpWpKill(3308, SIGUSR2) failed [dpxxtool.c   2508]
    killing W9-596 (SIGUSR2)
    ERROR => DpWpKill(596, SIGUSR2) failed [dpxxtool.c   2508]
    killing W10-1988 (SIGUSR2)
    ERROR => DpWpKill(1988, SIGUSR2) failed [dpxxtool.c   2508]
    killing W11-2136 (SIGUSR2)
    ERROR => DpWpKill(2136, SIGUSR2) failed [dpxxtool.c   2508]
    NiWait: sleep (10000 msecs) ...
    NiISelect: timeout 10000 ms
    NiISelect: maximum fd=1569
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Dec 05 11:04:53 2007
    NiISelect: TIMEOUT occured (10000 ms)
    dump system status
    Workprocess Table (long)               Wed Dec 05 11:04:53 2007
    ========================
    No Ty. Pid      Status  Cause Start Err Sem CPU    Time  Program  Cl  User         Action                    Table
    0 DIA     1368 Ended         no      1   0             0                                                             
    1 DIA     2032 Ended         no      1   0             0                                                             
    2 DIA      772 Ended         no      1   0             0                                                             
    3 DIA     3272 Ended         no      1   0             0                                                             
    4 DIA     2980 Ended         no      1   0             0                                                             
    5 UPD     3344 Ended         no      1   0             0                                                             
    6 ENQ     2848 Ended         no      1   0             0                                                             
    7 BTC     3056 Ended         no      1   0             0                                                             
    8 BTC     3308 Ended         no      1   0             0                                                             
    9 BTC      596 Ended         no      1   0             0                                                             
    10 SPO     1988 Ended         no      1   0             0                                                             
    11 UP2     2136 Ended         no      1   0             0                                                             
    Dispatcher Queue Statistics               Wed Dec 05 11:04:53 2007
    ===========================
    --------++++--
    +
    Typ
    now
    high
    max
    writes
    reads
    --------++++--
    +
    NOWP
    0
    5
    2000
    11
    11
    --------++++--
    +
    DIA
    3
    3
    2000
    5
    2
    --------++++--
    +
    UPD
    0
    0
    2000
    0
    0
    --------++++--
    +
    ENQ
    0
    0
    2000
    0
    0
    --------++++--
    +
    BTC
    0
    0
    2000
    0
    0
    --------++++--
    +
    SPO
    0
    0
    2000
    0
    0
    --------++++--
    +
    UP2
    0
    0
    2000
    0
    0
    --------++++--
    +
    max_rq_id          17
    wake_evt_udp_now     0
    wake events           total    13,  udp     6 ( 46%),  shm     7 ( 53%)
    since last update     total    13,  udp     6 ( 46%),  shm     7 ( 53%)
    Dump of tm_adm structure:               Wed Dec 05 11:04:53 2007
    =========================
    Term    uid  man user    term   lastop  mod wp  ta   a/i (modes)
    EX-T12, U13,                 , 158.155.25.171, 11:04:07, M0, W-1,     , 1/0
    Workprocess Comm. Area Blocks               Wed Dec 05 11:04:53 2007
    =============================
    Slots: 300, Used: 1, Max: 0
    --------++--
    +
    id
    owner
    pid
    eyecatcher
    --------++--
    +
    0
    DISPATCHER
    -1
    WPCAAD000
    NiWait: sleep (5000 msecs) ...
    NiISelect: timeout 5000 ms
    NiISelect: maximum fd=1569
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Dec 05 11:04:58 2007
    NiISelect: TIMEOUT occured (5000 ms)
    DpHalt: shutdown server >ibwoksapq02_Q02_00                      < (normal)
    DpJ2eeDisableRestart
    DpModState: buffer in state MBUF_PREPARED
    NiBufSend starting
    NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
    MsINiWrite: sent 110 bytes
    MsIModState: change state to SHUTDOWN
    DpModState: change server state from STARTING to SHUTDOWN
    Switch off Shared memory profiling
    ShmProtect( 57, 3 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RW
    ShmProtect( 57, 1 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RD
    DpWakeUpWps: wake up all wp's
    Stop work processes...
    Stop gateway
    killing process (3968) (SOFT_KILL)
    Stop icman
    killing process (196) (SOFT_KILL)
    Terminate gui connections
    [DpProcDied] Process lives  (PID:3968  HANDLE:1540)
    waiting for termination of gateway
    NiWait: sleep (1000 msecs) ...
    NiISelect: timeout 1000 ms
    NiISelect: maximum fd=1569
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Dec 05 11:04:59 2007
    NiISelect: TIMEOUT occured (1000 ms)
    [DpProcDied] Process died  (PID:3968  HANDLE:1540)
    [DpProcDied] Process lives  (PID:196  HANDLE:1548)
    waiting for termination of icman
    NiWait: sleep (1000 msecs) ...
    NiISelect: timeout 1000 ms
    NiISelect: maximum fd=1569
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Dec 05 11:05:00 2007
    NiISelect: TIMEOUT occured (1000 ms)
    [DpProcDied] Process lives  (PID:196  HANDLE:1548)
    waiting for termination of icman
    NiWait: sleep (1000 msecs) ...
    NiISelect: timeout 1000 ms
    NiISelect: maximum fd=1569
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Dec 05 11:05:01 2007
    NiISelect: TIMEOUT occured (1000 ms)
    [DpProcDied] Process lives  (PID:196  HANDLE:1548)
    waiting for termination of icman
    NiWait: sleep (1000 msecs) ...
    NiISelect: timeout 1000 ms
    NiISelect: maximum fd=1569
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Dec 05 11:05:02 2007
    NiISelect: TIMEOUT occured (1000 ms)
    [DpProcDied] Process lives  (PID:196  HANDLE:1548)
    waiting for termination of icman
    NiWait: sleep (1000 msecs) ...
    NiISelect: timeout 1000 ms
    NiISelect: maximum fd=1569
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Dec 05 11:05:03 2007
    NiISelect: TIMEOUT occured (1000 ms)
    [DpProcDied] Process lives  (PID:196  HANDLE:1548)
    waiting for termination of icman
    NiWait: sleep (1000 msecs) ...
    NiISelect: timeout 1000 ms
    NiISelect: maximum fd=1569
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Dec 05 11:05:04 2007
    NiISelect: TIMEOUT occured (1000 ms)
    [DpProcDied] Process lives  (PID:196  HANDLE:1548)
    waiting for termination of icman
    NiWait: sleep (1000 msecs) ...
    NiISelect: timeout 1000 ms
    NiISelect: maximum fd=1569
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Dec 05 11:05:05 2007
    NiISelect: TIMEOUT occured (1000 ms)
    [DpProcDied] Process lives  (PID:196  HANDLE:1548)
    waiting for termination of icman
    NiWait: sleep (1000 msecs) ...
    NiISelect: timeout 1000 ms
    NiISelect: maximum fd=1569
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Dec 05 11:05:06 2007
    NiISelect: TIMEOUT occured (1000 ms)
    [DpProcDied] Process lives  (PID:196  HANDLE:1548)
    waiting for termination of icman
    NiWait: sleep (1000 msecs) ...
    NiISelect: timeout 1000 ms
    NiISelect: maximum fd=1569
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Dec 05 11:05:07 2007
    NiISelect: TIMEOUT occured (1000 ms)
    [DpProcDied] Process lives  (PID:196  HANDLE:1548)
    waiting for termination of icman
    NiWait: sleep (1000 msecs) ...
    NiISelect: timeout 1000 ms
    NiISelect: maximum fd=1569
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Dec 05 11:05:08 2007
    NiISelect: TIMEOUT occured (1000 ms)
    [DpProcDied] Process lives  (PID:196  HANDLE:1548)
    waiting for termination of icman
    NiWait: sleep (1000 msecs) ...
    NiISelect: timeout 1000 ms
    NiISelect: maximum fd=1569
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Dec 05 11:05:09 2007
    NiISelect: TIMEOUT occured (1000 ms)
    [DpProcDied] Process died  (PID:196  HANDLE:1548)
    DpHalt: cancel all lcom connections
    MPI CancelAll 2 -> 0
    MPI DeleteAll 2 -> 0
    DpStartStopMsg: send stop message (myname is >ibwoksapq02_Q02_00                      <)
    NiIMyHostName: hostname = 'ibwoksapq02'
    AdGetSelfIdentRecord: >                                                                           <
    AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
    DpConvertRequest: net size = 163 bytes
    NiBufSend starting
    NiIWrite: write 562, 1 packs, MESG_IO, hdl 3, data complete
    MsINiWrite: sent 562 bytes
    send msg (len 110+452) to name          -, type 4, key -
    DpStartStopMsg: stop msg sent
    NiIRead: read 229, 1 packs, MESG_IO, hdl 3, data complete
    NiBufIn: NIBUF len=229
    NiBufIn: Packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 229 bytes
    MSG received, len 110+119, flag 1, from MSG_SERVER, typ 0, key -
    DpHalt: received 119 bytes from message server
    NiIRead: read 229, 1 packs, MESG_IO, hdl 3, data complete
    NiBufIn: NIBUF len=229
    NiBufIn: Packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 229 bytes
    MSG received, len 110+119, flag 1, from MSG_SERVER, typ 0, key -
    DpHalt: received 119 bytes from message server
    NiIRead: read 229, 1 packs, MESG_IO, hdl 3, data complete
    NiBufIn: NIBUF len=229
    NiBufIn: Packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 229 bytes
    MSG received, len 110+119, flag 1, from MSG_SERVER, typ 0, key -
    DpHalt: received 119 bytes from message server
    NiIRead: read 229, 1 packs, MESG_IO, hdl 3, data complete
    NiBufIn: NIBUF len=229
    NiBufIn: Packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 229 bytes
    MSG received, len 110+119, flag 1, from MSG_SERVER, typ 0, key -
    DpHalt: received 119 bytes from message server
    NiIRead: read 229, 1 packs, MESG_IO, hdl 3, data complete
    NiBufIn: NIBUF len=229
    NiBufIn: Packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 229 bytes
    MSG received, len 110+119, flag 1, from MSG_SERVER, typ 0, key -
    DpHalt: received 119 bytes from message server
    NiIRead: read 229, 1 packs, MESG_IO, hdl 3, data complete
    NiBufIn: NIBUF len=229
    NiBufIn: Packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 229 bytes
    MSG received, len 110+119, flag 1, from MSG_SERVER, typ 0, key -
    DpHalt: received 119 bytes from message server
    NiIRead: read 229, 1 packs, MESG_IO, hdl 3, data complete
    NiBufIn: NIBUF len=229
    NiBufIn: Packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 229 bytes
    MSG received, len 110+119, flag 1, from MSG_SERVER, typ 0, key -
    DpHalt: received 119 bytes from message server
    NiPRead: WSAEWOULDBLOCK 1.time 4
    NiIPeek: peek for hdl 3 / socket 1476 timed out (r; 0)
    DpHalt: no more messages from the message server
    DpHalt: send keepalive to synchronize with the message server
    NiBufSend starting
    NiIWrite: write 114, 1 packs, MESG_IO, hdl 3, data complete
    MsINiWrite: sent 114 bytes
    send msg (len 110+4) to name MSG_SERVER, type 0, key -
    MsSndName: MS_NOOP ok
    Send 4 bytes to MSG_SERVER
    NiIRead: read 114, 1 packs, MESG_IO, hdl 3, data complete
    NiBufIn: NIBUF len=114
    NiBufIn: Packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 114 bytes
    MSG received, len 110+4, flag 3, from MSG_SERVER, typ 0, key -
    Received 4 bytes from MSG_SERVER                             
    Received opcode MS_NOOP from msg_server, reply MSOP_OK
    MsOpReceive: ok
    MsSendKeepalive : keepalive sent to message server
    NiPRead: WSAEWOULDBLOCK 1.time 4
    Wed Dec 05 11:05:10 2007
    NiIPeek: peek for hdl 3 / socket 1476 timed out (r; 1000)
    DpHalt: no more messages from the message server
    DpHalt: sync with message server o.k.
    detach from message server
    ***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c   10403]
    NiBufSend starting
    NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
    MsINiWrite: sent 110 bytes
    MsIDetach: send logout to msg_server
    MsIDetach: call exit function
    DpMsShutdownHook called
    NiSelClear: removed hdl 3 from selectset
    MBUF state OFF
    AdGetSelfIdentRecord: >                                                                           <
    AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
    blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/12
    LOCK WP ca_blk 1
    make DISP owner of wp_ca_blk 1
    DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 23)
    MBUF component DOWN
    NiBufClose: clear extensions for hdl 3
    NiBufSetStat: bufstat of hdl 3 changed from OK to OFF
    NiICloseHandle: shutdown and close hdl 3 / socket 1476
    MsIDetach: detach MS-system
    EsCleanup ....
    ***LOG Q05=> DpHalt, DPStop ( 2896) [dpxxdisp.c   8776]
    Good Bye .....
    <b></b>
    <b>dev_w0</b>
    trc file: "dev_w0", trc level: 1, release: "640"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, M

    B Wed Dec 05 11:04:03 2007
    B  create_con (con_name=R/3)
    B  Loading DB library 'C:\usr\sap\Q02\SYS\exe\run\dbmssslib.dll' ...
    B  Library 'C:\usr\sap\Q02\SYS\exe\run\dbmssslib.dll' loaded
    B  Version of 'C:\usr\sap\Q02\SYS\exe\run\dbmssslib.dll' is "640.00", patchlevel (0.195)
    B  New connection 0 created
    M sysno      00
    M sid        Q02
    M systemid   560 (PC with Windows NT)
    M relno      6400
    M patchlevel 0
    M patchno    196
    M intno      20020600
    M make:      multithreaded, Unicode
    M pid        1368
    M
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 1368) [dpxxdisp.c   1162]
    I  MtxInit: -2 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpShMCreate: sizeof(wp_adm)          15840     (1320)
    M  DpShMCreate: sizeof(tm_adm)          2969176     (14772)
    M  DpShMCreate: sizeof(wp_ca_adm)          24000     (80)
    M  DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    M  DpShMCreate: sizeof(comm_adm)          290000     (580)
    M  DpShMCreate: sizeof(vmc_adm)          0     (424)
    M  DpShMCreate: sizeof(wall_adm)          (38456/34360/64/184)
    M  DpShMCreate: SHM_DP_ADM_KEY          (addr: 08110040, size: 3386992)
    M  DpShMCreate: allocated sys_adm at 08110040
    M  DpShMCreate: allocated wp_adm at 08111B88
    M  DpShMCreate: allocated tm_adm_list at 08115968
    M  DpShMCreate: allocated tm_adm at 08115990
    M  DpShMCreate: allocated wp_ca_adm at 083EA7E8
    M  DpShMCreate: allocated appc_ca_adm at 083F05A8
    M  DpShMCreate: allocated comm_adm_list at 083F24E8
    M  DpShMCreate: allocated comm_adm at 083F2500
    M  DpShMCreate: allocated vmc_adm_list at 084391D0
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 084391F8
    M  DpShMCreate: allocated wall_adm at 08439200
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 0 initializing ....

    X Wed Dec 05 11:04:04 2007
    X  Using implementation flat
    M  <EsNT> Memory Reset disabled as NT default
    X  ES initialized.
    M  calling db_connect ...
    C  Thread ID:2236
    C  Thank You for using the SLOLEDB-interface
    C  Using dynamic link library 'C:\usr\sap\Q02\SYS\exe\run\dbmssslib.dll'
    C  dbmssslib.dll patch info
    C    patchlevel   0
    C    patchno      195
    C    patchcomment DBCON: database names must not start with digits (1078650)
    C  np:(local) connection used on IBWOKSAPQ02
    C  CopyLocalParameters: dbuser is 'q02'
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  OpenOledbConnection: MARS property was not set.

    C Wed Dec 05 11:04:05 2007
    C  Provider Release:08.10.3959
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  Cache sizes: header 68 bytes, 20000 names (31680000 bytes), 1000 dynamic statements (5696000 bytes), total 37376068 bytes
    C  Using shared procedure name cache IBWOKSAPQ02_Q02Q02_Q02_MEM initialized by another process.
    C  Connected to db server : [IBWOKSAPQ02] server_used : [np:(local)], dbname: Q02, dbuser: q02
    C  pn_id:IBWOKSAPQ02_Q02Q02_Q02
    C  Not using MARS (on sql 8.0)
    B  Connection 0 opened (DBSL handle 0)
    B  Wp  Hdl ConName          ConId     ConState     TX  PRM RCT TIM MAX OPT Date     Time   DBHost         
    B  000 000 R/3              000000000 ACTIVE       NO  YES NO  000 255 255 20071205 110404 IBWOKSAPQ02    
    C  The IRow interface is supported by this OLEDB provider
    M  db_connect o.k.
    M  ICT: exclude compression: .zip,.cs,.rar,.arj,.z,.gz,.tar,.lzh,.cab,.hqx,.ace,.jar,.ear,.war,.css,.pdf,.js,.gzip,.uue,.bz2,.iso,.sda,.sar,.gif

    I Wed Dec 05 11:04:10 2007
    I  *** ERROR => OpenProcess PID 3272 failed for checking semaphore 4
                  ERROR_INVALID_PARAMETER: The parameter is incorrect.  [semnt.c      1939]
    I  MtxInit: 0 0 0
    M  SHM_PRES_BUF               (addr: 0C8B0040, size: 4400128)
    M  SHM_ROLL_AREA          (addr: 2FA50040, size: 161480704)
    M  SHM_PAGING_AREA          (addr: 10500040, size: 73400320)
    M  SHM_ROLL_ADM               (addr: 0CCF0040, size: 1612020)
    M  SHM_PAGING_ADM          (addr: 0CE80040, size: 525344)
    M  ThCreateNoBuffer          allocated 544152 bytes for 1000 entries at 0CF10040
    M  ThCreateNoBuffer          index size: 3000 elems
    M  ThCreateVBAdm          allocated 12160 bytes (50 server) at 0CFA0040
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 0 initializing ....
    X  Using implementation flat
    X  ES initialized.
    C  The IRow interface is supported by this OLEDB provider
    B  db_con_shm_ini:  WP_ID = 0, WP_CNT = 12, CON_ID = -1
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    B  dbtbxbuf: Buffer TABL  (addr: 161000C8, size: 30000128, end: 17D9C4C8)
    B  dbtbxbuf: Profile: max_objects = 5000, displace = 1, reorg = 1
    B  dbtbxbuf: request_unit = 2000, sync_reload = 5, inval_reload = 5
    B  dbtbxbuf: protect_shm = 0, force_checks = 0
    B  dbtbxbuf: tsize_retry = 14291712
    B  ***LOG BB0=> buffer TABL       started with length 30000128   bytes [dbtbxbuf#8 @ 16037] [dbtbxbuf1603 7]
    B  dbtbxbuf: Buffer TABLP (addr: 17DA00C8, size: 10240000, end: 187640C8)
    B  dbtbxbuf: Profile: max_objects = 500, displace = 1, reorg = 1
    B  dbtbxbuf: request_unit = 2000, sync_reload = 5, inval_reload = 5
    B  dbtbxbuf: protect_shm = 0, force_checks = 0
    B  dbtbxbuf: tsize_retry = 5044992
    B  ***LOG BB0=> buffer TABLP      started with length 10240000   bytes [dbtbxbuf#8 @ 16037] [dbtbxbuf1603 7]
    B  dbtbxbuf: Reading TBX statistics:
    B  dbtbxbuf: 0 object entries precreated
    B  Layout of EIBUF buffer shared memory:
    B  0: 1 * 4 = 4
    B  1: 1 * 344 = 344
    B  2: 12 * 20 = 240
    B  3: 4001 * 48 = 192048
    B  4: 2000 * 232 = 464000
    B  5: 4001 * 4 = 16004
    B  6: 1 * 200 = 200
    B  7: 65 * 4 = 260
    B  8: 13754 * 256 = 3521024
    B  Tracing = 0, Shm Protection = 0, Force checks = 0, Recovery delay = 500000
    B  dbexpbuf: Buffer EIBUF (addr: 187700D0, size: 4194304, end: 18B700D0)
    B  ***LOG BB0=> buffer EIBUF      started with length 4096k      bytes [dbexpbuf#6 @ 2342] [dbexpbuf2342 ]
    B  Layout of ESM   buffer shared memory:
    B  0: 1 * 4 = 4
    B  1: 1 * 344 = 344
    B  2: 12 * 20 = 240
    B  3: 4001 * 48 = 192048
    B  4: 2000 * 232 = 464000
    B  5: 4001 * 4 = 16004
    B  6: 1 * 200 = 200
    B  7: 65 * 4 = 260
    B  8: 13754 * 256 = 3521024
    B  Tracing = 0, Shm Protection = 0, Force checks = 0, Recovery delay = 500000
    B  dbexpbuf: Buffer ESM   (addr: 18B800D0, size: 4194304, end: 18F800D0)
    B  ***LOG BB0=> buffer ESM        started with length 4096k      bytes [dbexpbuf#6 @ 2342] [dbexpbuf2342 ]
    B  Layout of CUA   buffer shared memory:
    B  0: 1 * 4 = 4
    B  1: 1 * 344 = 344
    B  2: 12 * 20 = 240
    B  3: 3001 * 48 = 144048
    B  4: 1500 * 232 = 348000
    B  5: 3001 * 4 = 12004
    B  6: 1 * 200 = 200
    B  7: 193 * 4 = 772
    B  8: 5012 * 512 = 2566144
    B  Tracing = 0, Shm Protection = 0, Force checks = 0, Recovery delay = 500000
    B  dbexpbuf: Buffer CUA   (addr: 18F900D0, size: 3072000, end: 1927E0D0)
    B  ***LOG BB0=> buffer CUA        started with length 3000k      bytes [dbexpbuf#6 @ 2342] [dbexpbuf2342 ]
    B  Layout of OTR   buffer shared memory:
    B  0: 1 * 4 = 4
    B  1: 1 * 344 = 344
    B  2: 12 * 20 = 240
    B  3: 4001 * 48 = 192048
    B  4: 2000 * 232 = 464000
    B  5: 4001 * 4 = 16004
    B  6: 1 * 200 = 200
    B  7: 81 * 4 = 324
    B  8: 13754 * 256 = 3521024
    B  Tracing = 0, Shm Protection = 0, Force checks = 0, Recovery delay = 500000
    B  dbexpbuf: Buffer OTR   (addr: 192800D0, size: 4194304, end: 196800D0)
    B  ***LOG BB0=> buffer OTR        started with length 4096k      bytes [dbexpbuf#6 @ 2342] [dbexpbuf2342 ]
    B  ***LOG BB0=> buffer CALE       started with length 500000     bytes [dbcalbuf#5 @ 2274] [dbcalbuf2274 ]
    M  call semaphore clean-up function ...
    M  SemCleanup: Reset blocking on semaphore (Key:4/Slot:3)
    M  ***LOG Q0E=> DpSigGenHandler, Exception (c0000005) [dpnttool.c   462]
    M  -
    C-STACK -
    SAP (R) - R/3(TM) Callstack, Version 1.0
    Copyright (C) SAP AG. All rights reserved.
    Application exception occurred:
    Exception : c0000005 (Access Violation)
    App       : disp+work.EXE (pid=1368)
    When      : 12/5/2007 11:4:11.366
    Threads   : 2
    Computer Name       : IBWOKSAPQ02
    User Name           : SAPServiceQ02
    Number of Processors: 4
    Processor Type: x86 Family 15 Model 2 Stepping 5
    Windows Version     : 5.2 Current Build: 3790
    Stack Dump for Thread Id 8bc
    eax=00262802 ebx=00000002 ecx=0596b003 edx=00003d43 esi=00004200 edi=00004200
    eip=00bbaf10 esp=0526fa88 ebp=0526fa94 iopl=0         nv up ei pl nz na pe nc
    cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010202
    function : get_nec_length
            00bbaef8 7403             jz      get_nec_length+0x17b (00bbaefd)
            00bbaefa c60100           mov     byte ptr [ecx],0x0           ds:0596b003=??
            00bbaefd 83c120           add     ecx,0x20
            00bbaf00 4a               dec     edx
            00bbaf01 75f2             jnz     get_dbtab_columns+0x87 (00bbaff5)
            00bbaf03 eb19             jmp     get_nec_length+0x19c (00bbaf1e)
            00bbaf05 6685ff           test    di,di
            00bbaf08 7e14             jle     get_nec_length+0x19c (00bbaf1e)
            00bbaf0a 83c103           add     ecx,0x3
            00bbaf0d 0fb7d7           movzx   edx,di
    FAULT-> 00bbaf10 803900           cmp     byte ptr [ecx],0x0           ds:0596b003=??
            00bbaf13 7403             jz      get_nec_length+0x196 (00bbaf18)
            00bbaf15 ff45fc           inc     dword ptr [ebp+0xfc]   ss:0a4dd51a=????????
            00bbaf18 83c120           add     ecx,0x20
            00bbaf1b 4a               dec     edx
            00bbaf1c 75f2             jnz     get_dbtab_columns+0xa2 (00bbb010)
            00bbaf1e 5f               pop     edi
            00bbaf1f 8b0dccfcc901  mov ecx,[FDESCR2_SIZE (01c9fccc)] ds:01c9fccc=0000017c
            00bbaf25 0fbf55fc         movsx   edx,word ptr [ebp+0xfc]    ss:0a4dd51b=????
            00bbaf29 83c102           add     ecx,0x2
            00bbaf2c 0fafca           imul    ecx,edx
            00bbaf2f 8d440102         lea     eax,[ecxeax0x2]      ds:054d0289=????????
    --> Stack Back Trace <--
    FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
    0526fa94 00bbefb1 00000287 0526fb24 00000000 0d064200 disp+work!get_nec_length [dbntab.c (12438)]
    0526faf4 00bc2ec5 0526fb80 0526fb24 0526fb20 00000000 disp+work!ftab_select [dbntab.c (10343)]
    0526fb44 00bc390e 00000000 0526fb80 00000000 01c9fcbc disp+work!fetch_entry [dbntab.c (7186)]
    0526fb5c 00bc4274 00000000 0526fb80 01d577ec 01d57760 disp+work!procure_2 [dbntab.c (6855)]
    0526fbb8 00c921a9 00000002 0526fc30 0526fc44 00000000 disp+work!db_ntab [dbntab.c (3104)]
    0526fc4c 00c950a2 0fe300c8 0fe30040 00000000 00310030 disp+work!read_ntab [dbcalbuf.c (3177)]
    0526fd40 00c95805 00000000 00000000 0fe30040 00660075 disp+work!db_cbufload [dbcalbuf.c (4507)]
    0526fd68 00c97937 01d58d0c 00000008 0fe30040 0526fd90 disp+work!reset_handling [dbcalbuf.c (2676)]
    0526fdac 00c97ab8 00000000 7c355852 00000000 00000005 disp+work!init_shm_and_load_cals [dbcalbuf.c (2278)]
    0526fdd8 00c5904d 0526fdf4 05b30dcc 00000000 0000000a disp+work!db_cbufinst [dbcalbuf.c (1599)]
    0526fe08 00ca8ed0 057c7200 057c7178 00000090 057c717c disp+work!db_calinit [dbbmng0.c (2786)]
    0526fe1c 0045790a 00000011 00000004 00000000 00000000 disp+work!db_init [dblink.c (2213)]
    0526fe3c 00488e83 00000011 00000000 024987e0 00000000 disp+work!ThCallHooks [thxxtool3.c (246)]
    0526fe58 004980ff 00000000 00000002 0526ff04 00000000 disp+work!ThIPCInit [thxxhead.c (1914)]
    0526fee8 0049c594 00000001 05425fd0 00000000 00000000 disp+work!tskh_init [thxxhead.c (1356)]
    0526ff04 004233fb 00000000 7ffd8000 0526ff60 00401085 disp+work!tskhstart [thxxhead.c (1017)]
    0526ff14 00401085 00000003 05425fd0 00000001 00000000 disp+work!DpMain [dpxxdisp.c (1011)]
    0526ff60 0111cebb 00000003 05425fd0 05426888 017d9000 disp+work!nlsui_main [thxxanf.c (85)]
    0526ffc0 77e6f23b 00000000 00000000 7ffd8000 00000000 disp+work!wmainCRTStartup [crtexe.c (395)]
    0526fff0 00000000 0111cd78 00000000 00905a4d 00000003 kernel32!ProcessIdToSessionId
    Stack Dump for Thread Id 838
    eax=00000001 ebx=00000103 ecx=7c829f59 edx=00410000 esi=00000000 edi=00000000
    eip=7c8285ec esp=078ffeb0 ebp=078ffef4 iopl=0         nv up ei pl zr na po nc
    cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246
    function : KiFastSystemCallRet
            7c8285ec c3               ret
            7c8285ed 8da42400000000   lea     esp,[esp]              ss:078ffeb0=7c8270fb
            7c8285f4 8d642400         lea     esp,[esp]              ss:0cb6d937=00000000
    --> Stack Back Trace <--
    FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
    078ffef4 01076a50 000006a0 00000000 00000000 0542b0d0 ntdll!KiFastSystemCallRet
    078fff84 7c349565 00000000 00000000 00000000 0542b038 disp+work!SigIMsgFunc [signt.c (632)]
    078fffb8 77e64829 0542b038 00000000 00000000 0542b038 MSVCR71!endthreadex
    078fffec 00000000 7c3494f6 0542b038 00000000 00000000 kernel32!GetModuleHandleA
    M  -

    M Wed Dec 05 11:04:11 2007
    M  call clean-up function ...
    M  in_ThErrHandle: 1
    M  ThSigHandler: signal (step 1, th_errno 11, action 4)

    M  Info for wp 0

    M    stat = 4
    M    reqtype = 1
    M    act_reqtype = -1
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server ibwoksapq02_Q02_00 on host ibwoksapq02 (wp 0)
    M  *  ERROR       ThSigHandler: signal
    M  *
    M  *  TIME        Wed Dec 05 11:04:11 2007
    M  *  RELEASE     640
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          11
    M  *  MODULE      thxxhead.c
    M  *  LINE        9806
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   730]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  254]
    M  Entering ThSetStatError
    M  ThIErrHandle: call ThrCoreInfo
    A  RABAX in run level 0
    A  RABAX in unkown environment: task_type=0, run level=0, rabax state=80000000 ztta_task_type=0
    SAP (R) - R/3(TM) Callstack, Version 1.0
    Copyright (C) SAP AG. All rights reserved.
    Application exception occurred:
    Exception : c0000005 (Access Violation)
    App       : disp+work.EXE (pid=1368)
    When      : 12/5/2007 11:4:11.476
    Threads   : 2
    Computer Name       : IBWOKSAPQ02
    User Name           : SAPServiceQ02
    Number of Processors: 4
    Processor Type: x86 Family 15 Model 2 Stepping 5
    Windows Version     : 5.2 Current Build: 3790
    Stack Dump for Thread Id 8bc
    eax=00262802 ebx=00000002 ecx=0596b003 edx=00003d43 esi=00004200 edi=00004200
    eip=00bbaf10 esp=0526fa88 ebp=0526fa94 iopl=0         nv up ei pl nz na pe nc
    cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010202
    function : get_nec_length
            00bbaef8 7403             jz      get_nec_length+0x17b (00bbaefd)
            00bbaefa c60100           mov     byte ptr [ecx],0x0           ds:0596b003=??
            00bbaefd 83c120           add     ecx,0x20
            00bbaf00 4a               dec     edx
            00bbaf01 75f2             jnz     get_dbtab_columns+0x87 (00bbaff5)
            00bbaf03 eb19             jmp     get_nec_length+0x19c (00bbaf1e)
            00bbaf05 6685ff           test    di,di
            00bbaf08 7e14             jle     get_nec_length+0x19c (00bbaf1e)
            00bbaf0a 83c103           add     ecx,0x3
            00bbaf0d 0fb7d7           movzx   edx,di
    FAULT-> 00bbaf10 803900           cmp     byte ptr [ecx],0x0           ds:0596b003=??
            00bbaf13 7403             jz      get_nec_length+0x196 (00bbaf18)
            00bbaf15 ff45fc           inc     dword ptr [ebp+0xfc]   ss:0a4da78e=????????
            00bbaf18 83c120           add     ecx,0x20
            00bbaf1b 4a               dec     edx
            00bbaf1c 75f2             jnz     get_dbtab_columns+0xa2 (00bbb010)
            00bbaf1e 5f               pop     edi
            00bbaf1f 8b0dccfcc901  mov ecx,[FDESCR2_SIZE (01c9fccc)] ds:01c9fccc=0000017c
            00bbaf25 0fbf55fc         movsx   edx,word ptr [ebp+0xfc]    ss:0a4da78f=????
            00bbaf29 83c102           add     ecx,0x2
            00bbaf2c 0fafca           imul    ecx,edx
            00bbaf2f 8d440102         lea     eax,[ecxeax0x2]      ds:054cd4fd=????????
    --> Stack Back Trace <--
    FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
    0526fa94 00bbefb1 00000287 0526fb24 00000000 0d064200 disp+work!get_nec_length [dbntab.c (12438)]
    0526faf4 00bc2ec5 0526fb80 0526fb24 0526fb20 00000000 disp+work!ftab_select [dbntab.c (10343)]
    0526fb44 00bc390e 00000000 0526fb80 00000000 01c9fcbc disp+work!fetch_entry [dbntab.c (7186)]
    0526fb5c 00bc4274 00000000 0526fb80 01d577ec 01d57760 disp+work!procure_2 [dbntab.c (6855)]
    0526fbb8 00c921a9 00000002 0526fc30 0526fc44 00000000 disp+work!db_ntab [dbntab.c (3104)]
    0526fc4c 00c950a2 0fe300c8 0fe30040 00000000 00310030 disp+work!read_ntab [dbcalbuf.c (3177)]
    0526fd40 00c95805 00000000 00000000 0fe30040 00660075 disp+work!db_cbufload [dbcalbuf.c (4507)]
    0526fd68 00c97937 01d58d0c 00000008 0fe30040 0526fd90 disp+work!reset_handling [dbcalbuf.c (2676)]
    0526fdac 00c97ab8 00000000 7c355852 00000000 00000005 disp+work!init_shm_and_load_cals [dbcalbuf.c (2278)]
    0526fdd8 00c5904d 0526fdf4 05b30dcc 00000000 0000000a disp+work!db_cbufinst [dbcalbuf.c (1599)]
    0526fe08 00ca8ed0 057c7200 057c7178 00000090 057c717c disp+work!db_calinit [dbbmng0.c (2786)]
    0526fe1c 0045790a 00000011 00000004 00000000 00000000 disp+work!db_init [dblink.c (2213)]
    0526fe3c 00488e83 00000011 00000000 024987e0 00000000 disp+work!ThCallHooks [thxxtool3.c (246)]
    0526fe58 004980ff 00000000 00000002 0526ff04 00000000 disp+work!ThIPCInit [thxxhead.c (1914)]
    0526fee8 0049c594 00000001 05425fd0 00000000 00000000 disp+work!tskh_init [thxxhead.c (1356)]
    0526ff04 004233fb 00000000 7ffd8000 0526ff60 00401085 disp+work!tskhstart [thxxhead.c (1017)]
    0526ff14 00401085 00000003 05425fd0 00000001 00000000 disp+work!DpMain [dpxxdisp.c (1011)]
    0526ff60 0111cebb 00000003 05425fd0 05426888 017d9000 disp+work!nlsui_main [thxxanf.c (85)]
    0526ffc0 77e6f23b 00000000 00000000 7ffd8000 00000000 disp+work!wmainCRTStartup [crtexe.c (395)]
    0526fff0 00000000 0111cd78 00000000 00905a4d 00000003 kernel32!ProcessIdToSessionId
    Stack Dump for Thread Id 838
    eax=00000001 ebx=00000103 ecx=7c829f59 edx=00410000 esi=00000000 edi=00000000
    eip=7c8285ec esp=078ffeb0 ebp=078ffef4 iopl=0         nv up ei pl zr na po nc
    cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246
    function : KiFastSystemCallRet
            7c8285ec c3               ret
            7c8285ed 8da42400000000   lea     esp,[esp]              ss:078ffeb0=7c8270fb
            7c8285f4 8d642400         lea     esp,[esp]              ss:0cb6abab=00000000
    --> Stack Back Trace <--
    FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
    078ffef4 01076a50 000006a0 00000000 00000000 0542b0d0 ntdll!KiFastSystemCallRet
    078fff84 7c349565 00000000 00000000 00000000 0542b038 disp+work!SigIMsgFunc [signt.c (632)]
    078fffb8 77e64829 0542b038 00000000 00000000 0542b038 MSVCR71!endthreadex
    078fffec 00000000 7c3494f6 0542b038 00000000 00000000 kernel32!GetModuleHandleA
    A  TH VERBOSE LEVEL FULL
    A  ** RABAX: level LEV_RX_PXA_RELEASE_MTX entered.
    A  ** RABAX:  level LEV_RX_PXA_RELEASE_MTX failed.
    A  *** suicide ON
    A  ** RABAX: level LEV_RX_VMIT_CLEANUP entered.
    A  ** RABAX: level LEV_RX_VMIT_CLEANUP completed.
    A  ** RABAX: level LEV_RX_ROLLBACK entered.
    A  ** RABAX: level LEV_RX_ROLLBACK completed.
    A  ** RABAX: level LEV_RX_DB_ALIVE entered.
    A  ** RABAX: level LEV_RX_DB_ALIVE completed.
    A  ** RABAX: level LEV_RX_HOOKS entered.
    A  ** RABAX: level LEV_RX_HOOKS completed.
    A  ** RABAX: level LEV_RX_STANDARD entered.
    A  ** RABAX:  level LEV_RX_STANDARD failed.
    A  ** RABAX: level LEV_RX_C_STACK entered.
    A  ** RABAX: level LEV_RX_C_STACK completed.
    A  ** RABAX: level LEV_RX_MEMO_CHECK entered.
    A  ** RABAX: level LEV_RX_MEMO_CHECK completed.
    A  ** RABAX: level LEV_RX_INTERFACES entered.
    A  ** RABAX: level LEV_RX_INTERFACES completed.
    A  ** RABAX: level LEV_RX_GET_MESS entered.
    A  ** RABAX: level LEV_RX_GET_MESS completed.
    A  ** RABAX: level LEV_RX_INIT_SNAP entered.
    A  ** RABAX: level LEV_RX_INIT_SNAP completed.
    A  ** RABAX: level LEV_RX_WRITE_SYSLOG entered.
    A  ** RABAX: level LEV_RX_WRITE_SYSLOG completed.
    A  ** RABAX: level LEV_RX_WRITE_SNAP entered.
    X  *** ERROR => invalid MM administration (adm) 00000000  (admCheck)00000000 [mmxx.c       2127]
    A  ** RABAX:  level LEV_RX_WRITE_SNAP failed.
    A  ** RABAX: level LEV_RX_SET_ALERT entered.
    A  ** RABAX: level LEV_RX_SET_ALERT completed.
    A  ** RABAX: level LEV_RX_COMMIT entered.
    A  ** RABAX: level LEV_RX_COMMIT completed.
    A  ** RABAX: level LEV_RX_SNAP_SYSLOG entered.
    A  ** RABAX: level LEV_RX_SNAP_SYSLOG completed.
    A  ** RABAX: level LEV_RX_RESET_PROGS entered.
    A  ** RABAX: level LEV_RX_RESET_PROGS completed.
    A  ** RABAX: level LEV_RX_STDERR entered.
    A  ** RABAX: level LEV_RX_STDERR completed.
    A  ** RABAX: level LEV_RX_RFC_ERROR entered.
    A  ** RABAX: level LEV_RX_RFC_ERROR completed.
    A  ** RABAX: level LEV_RX_RFC_CLOSE entered.
    A  ** RABAX: level LEV_RX_RFC_CLOSE completed.
    A  ** RABAX: level LEV_RX_IMC_ERROR entered.
    A  ** RABAX: level LEV_RX_IMC_ERROR completed.
    A  ** RABAX: level LEV_RX_DATASET_CLOSE entered.
    A  ** RABAX: level LEV_RX_DATASET_CLOSE completed.
    A  ** RABAX: level LEV_RX_RESET_SHMLOCKS entered.
    A  ** RABAX:  level LEV_RX_RESET_SHMLOCKS failed.
    A  ** RABAX: level LEV_RX_ERROR_SAVE entered.
    A  ** RABAX: level LEV_RX_ERROR_SAVE completed.
    A  ** RABAX: level LEV_RX_ERROR_TPDA entered.
    A  ** RABAX: level LEV_RX_ERROR_TPDA completed.
    A  ** RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
    A  ** RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
    A  ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
    M  RmCleanUpResources3: hdr/tbl/ext_tbl/free/keep = 048810F0/00000000/0/0/1
    M  RmCleanUpResources3: no resources registered
    A  ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
    A  ** RABAX: level LEV_RX_END entered.
    A  ** RABAX: level LEV_RX_END completed.
    A  ** RABAX: end RX_SUICIDE
    A  *
    A  * Non recoverable error. Aborting process...
    A  *
    M  ***LOG R63=> ThWpHalt, halt wp () [thxxhead.c   15138]
    M  in_ThErrHandle: 2
    M  *** ERROR => ThWpHalt: halt wp (step 1, th_errno 5, action 2, level 2) [thxxhead.c   9621]
    M  ***LOG R0H=> ThIErrHandle, Loop in ThErrHandle, restart wp () [thxxhead.c   9642]
    M  -
    C-STACK -
    SAP (R) - R/3(TM) Callstack, Version 1.0
    Copyright (C) SAP AG. All rights reserved.
    Application exception occurred:
    Exception : c0000005 (Access Violation)
    App       : disp+work.EXE (pid=1368)
    When      : 12/5/2007 11:4:11.507
    Threads   : 2
    Computer Name       : IBWOKSAPQ02
    User Name           : SAPServiceQ02
    Number of Processors: 4
    Processor Type: x86 Family 15 Model 2 Stepping 5
    Windows Version     : 5.2 Current Build: 3790
    Stack Dump for Thread Id 8bc
    eax=00262802 ebx=00000002 ecx=0596b003 edx=00003d43 esi=00004200 edi=00004200
    eip=00bbaf10 esp=0526fa88 ebp=0526fa94 iopl=0         nv up ei pl nz na pe nc
    cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010202
    function : get_nec_length
            00bbaef8 7403             jz      get_nec_length+0x17b (00bbaefd)
            00bbaefa c60100           mov     byte ptr [ecx],0x0           ds:0596b003=30
            00bbaefd 83c120           add     ecx,0x20
            00bbaf00 4a               dec     edx
            00bbaf01 75f2             jnz     get_dbtab_columns+0x87 (00bbaff5)
            00bbaf03 eb19             jmp     get_nec_length+0x19c (00bbaf1e)
            00bbaf05 6685ff           test    di,di
            00bbaf08 7e14             jle     get_nec_length+0x19c (00bbaf1e)
            00bbaf0a 83c103           add     ecx,0x3
            00bbaf0d 0fb7d7           movzx   edx,di
    FAULT-> 00bbaf10 803900           cmp     byte ptr [ecx],0x0           ds:0596b003=30
            00bbaf13 7403             jz      get_nec_length+0x196 (00bbaf18)
            00bbaf15 ff45fc           inc     dword ptr [ebp+0xfc]   ss:0a4d9f06=????????
            00bbaf18 83c120           add     ecx,0x20
            00bbaf1b 4a               dec     edx
            00bbaf1c 75f2             jnz     get_dbtab_columns+0xa2 (00bbb010)
            00bbaf1e 5f               pop     edi
            00bbaf1f 8b0dccfcc901  mov ecx,[FDESCR2_SIZE (01c9fccc)] ds:01c9fccc=0000017c
            00bbaf25 0fbf55fc         movsx   edx,word ptr [ebp+0xfc]    ss:0a4d9f07=????
            00bbaf29 83c102           add     ecx,0x2
            00bbaf2c 0fafca           imul    ecx,edx
            00bbaf2f 8d440102         lea     eax,[ecxeax0x2]      ds:054ccc75=????????
    --> Stack Back Trace <--
    FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
    0526fa94 00bbefb1 00000287 0526fb24 00000000 0d064200 disp+work!get_nec_length [dbntab.c (12438)]
    0526faf4 00bc2ec5 0526fb80 0526fb24 0526fb20 00000000 disp+work!ftab_select [dbntab.c (10343)]
    0526fb44 00bc390e 00000000 0526fb80 00000000 01c9fcbc disp+work!fetch_entry [dbntab.c (7186)]
    0526fb5c 00bc4274 00000000 0526fb80 01d577ec 01d57760 disp+work!procure_2 [dbntab.c (6855)]
    0526fbb8 00c921a9 00000002 0526fc30 0526fc44 00000000 disp+work!db_ntab [dbntab.c (3104)]
    0526fc4c 00c950a2 0fe300c8 0fe30040 00000000 00310030 disp+work!read_ntab [dbcalbuf.c (3177)]
    0526fd40 00c95805 00000000 00000000 0fe30040 00660075 disp+wor

    Hi Guenther,
    I've managed to bring up the SAP now after changing some parameters
    in the instance profile that are pointing to D:\. It's now up and
    running, but the dispatcher is in yellow colour. The status
    is "Running, Message Server connection ok, Dialog Queue time: 0.00 sec,
    J2EE status info unavailable". I did not select Java during the
    installation. Only ABAP was selected.
    I am able to login to the R/3 system now. I notice that there are some
    parameters in the instance profile are related to the Java like
    rdisp/j2ee_start, login/accept_sso2_ticket and etc. Is it possible that
    database backup that I used to restore was from a ABAP + JAVA system?
    Please see below for the dev_disp
    trc file: "dev_disp", trc level: 1, release: "640"
    Fri Dec 07 03:53:19 2007
    kernel runs with dp version 136(ext=102) (@(#) DPLIB-INT-VERSION-136)
    length of sys_adm_ext is 312 bytes
    sysno      00
    sid        Q02
    systemid   560 (PC with Windows NT)
    relno      6400
    patchlevel 0
    patchno    211
    intno      20020600
    make:      multithreaded, ASCII
    pid        3836
    ***LOG Q00=> DpSapEnvInit, DPStart (00 3836) [dpxxdisp.c   1102]
         shared lib "dw_xml.dll" version 211 successfully loaded
         shared lib "dw_xtc.dll" version 211 successfully loaded
         shared lib "dw_stl.dll" version 211 successfully loaded
         shared lib "dw_gui.dll" version 211 successfully loaded
         shared lib "dw_mdm.dll" version 211 successfully loaded
    Fri Dec 07 03:53:23 2007
    MtxInit: -2 0 0
    DpSysAdmExtInit: ABAP is active
    DpIPCInit2: start server >ibwoksapq02_Q02_00                      <
    DpShMCreate: sizeof(wp_adm)          11648     (832)
    DpShMCreate: sizeof(tm_adm)          2379840     (11840)
    DpShMCreate: sizeof(wp_ca_adm)          18000     (60)
    DpShMCreate: sizeof(appc_ca_adm)     6000     (60)
    DpShMCreate: sizeof(comm_adm)          192000     (384)
    DpShMCreate: sizeof(vmc_adm)          0     (364)
    DpShMCreate: sizeof(wall_adm)          (22440/34344/56/100)
    DpShMCreate: SHM_DP_ADM_KEY          (addr: 06340040, size: 2670480)
    DpShMCreate: allocated sys_adm at 06340040
    DpShMCreate: allocated wp_adm at 063417D8
    DpShMCreate: allocated tm_adm_list at 06344558
    DpShMCreate: allocated tm_adm at 06344580
    DpShMCreate: allocated wp_ca_adm at 065895C0
    DpShMCreate: allocated appc_ca_adm at 0658DC10
    DpShMCreate: allocated comm_adm_list at 0658F380
    DpShMCreate: allocated comm_adm at 0658F398
    DpShMCreate: allocated vmc_adm_list at 065BE198
    DpShMCreate: system runs without vmc_adm
    DpShMCreate: allocated ca_info at 065BE1C0
    DpShMCreate: allocated wall_adm at 065BE1C8
    MBUF state OFF
    Fri Dec 07 03:53:24 2007
    ThTaskStatus: rdisp/reset_online_during_debug 0
    EmInit: MmSetImplementation( 2 ).
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 1024 kByte.
    Using implementation flat
    <EsNT> Memory Reset disabled as NT default
    <ES> 1299 blocks reserved for free list.
    ES initialized.
    ERROR => DpForkExec: CreateProcess (3: No such process) [dpntdisp.c   1486]
    ***LOG Q0I=> DpForkExec, CreateProcess ( CreateProcess 3) [dpntdisp.c   1488]
    Memory diagnostic                                 *
    Systeminformation
    Processor-Typ             : Intel unknown
    Processor-Count           : 4
    Operating System          : NT 5.2, Build 3790
    Service Pack              : Service Pack 2
    NT Pagefile Informations
    Config. minimum size      : 4190208 K
    Config. maximum size      : 4190208 K
    Avail.  maximum size      : 4190208 K
    Num
    Pagefile
    Min.Size
    Max.Size
    Avail.Max
    Curr.Size
    1
    c:\pagefile.sys
    4190208 K
    4190208 K
    4190208 K
    4190208 K
    NT Task Manager Informations
    Total Handles             :    12859
    Total Threads             :      703
    Total Processes           :       54
    Commit Charge Total       :  1974636 K
    Commit Charge Limit       :  6137308 K
    Commit Charge Peak        :  1975500 K
    Phys.Memory Total         :  2096524 K
    Phys.Memory Available     :  1449380 K
    File Cache                :   116072 K
    Kernel Memory Total       :   104040 K
    Kernel Memory Paged       :    91112 K
    Kernel Memory Nonpaged    :    12928 K
    Memory usage of current process
    Total virt.address space  :  2097024 K
    Avail.virt.address space  :   895036 K
    Private Pages             :        0 K
    Total heap size           :    12826 K
    Virtual memory regions    :        0 K
    Uncommitted heap memory   :     7632 K
    Allocated heap memory     :     5028 K
    Moveable heap memory      :        0 K
    DDE shared heap memory    :        0 K
    Memory usage of all processes
    PID
    Image
    Instance
    Work.Set
    WS Peak
    Priv.Pages
    PP Peak
    Pg Fault
    4
    212 K
    2068 K
    0 K
    0 K
    128
    280
    smss.exe
    452 K
    468 K
    164 K
    164 K
    0
    352
    winlogon.exe
    9848 K
    9920 K
    6608 K
    6616 K
    2
    400
    services.exe
    3844 K
    3852 K
    1712 K
    1736 K
    1
    412
    lsass.exe
    9664 K
    9724 K
    9040 K
    9156 K
    2
    636
    svchost.exe
    2692 K
    2692 K
    900 K
    900 K
    0
    816
    svchost.exe
    22124 K
    22364 K
    16068 K
    20016 K
    13
    968
    spoolsv.exe
    4708 K
    4800 K
    3608 K
    3796 K
    1
    1112
    svchost.exe
    2116 K
    2116 K
    568 K
    568 K
    0
    1196
    inetinfo.exe
    8520 K
    10552 K
    3396 K
    5408 K
    3
    1220
    Srvany.exe
    1412 K
    1424 K
    300 K
    316 K
    0
    1244
    lmwu.exe
    2464 K
    2472 K
    724 K
    748 K
    0
    1252
    sqlservr.exe
    119352 K
    119352 K
    93168 K
    93204 K
    29
    1312
    ntrtscan.exe
    4012 K
    55404 K
    2536 K
    53960 K
    16
    1688
    sapstartsrv.exe
    21016 K
    21016 K
    22168 K
    22168 K
    5
    1752
    tmlisten.exe
    7368 K
    8080 K
    4028 K
    5052 K
    4
    1844
    OfcPfwSvc.exe
    5000 K
    5508 K
    3828 K
    4344 K
    2
    1888
    svchost.exe
    7568 K
    9404 K
    5036 K
    6952 K
    3
    2272
    svchost.exe
    4464 K
    4516 K
    2472 K
    22888 K
    1
    2296
    svchost.exe
    3880 K
    3880 K
    2932 K
    2932 K
    1
    2308
    UQ8188.EXE
    2684 K
    2748 K
    1152 K
    1256 K
    1
    2860
    winlogon.exe
    3320 K
    9008 K
    5136 K
    7604 K
    10
    3148
    userinit.exe
    2984 K
    2984 K
    1980 K
    1980 K
    0
    3156
    rdpclip.exe
    2916 K
    2916 K
    924 K
    972 K
    0
    3224
    userinit.exe
    2116 K
    2184 K
    608 K
    628 K
    0
    3244
    ctfmon.exe
    2752 K
    3016 K
    504 K
    844 K
    0
    3256
    Explorer.EXE
    11508 K
    11540 K
    7104 K
    7136 K
    4
    3328
    pccntmon.exe
    4572 K
    4572 K
    2436 K
    2444 K
    1
    3336
    jusched.exe
    2428 K
    2428 K
    564 K
    564 K
    0
    3380
    jucheck.exe
    5492 K
    5492 K
    2648 K
    2648 K
    1
    3396
    sqlmangr.exe
    4968 K
    6720 K
    1384 K
    2752 K
    2
    3464
    mmc.exe
    18596 K
    18720 K
    18648 K
    19016 K
    5
    3528
    wuauclt.exe
    3548 K
    3548 K
    1972 K
    1972 K
    0
    3756
    sqlagent.exe
    968 K
    6372 K
    2336 K
    2472 K
    2
    3812
    msg_server.exe
    [MS] Q02_00
    7584 K
    7584 K
    8408 K
    8408 K
    1
    3836
    disp+work.exe
    30856 K
    30920 K
    49372 K
    49476 K
    7
    3844
    igswd.exe
    [**] Q02_00
    2508 K
    2792 K
    1424 K
    1752 K
    0
    3864
    igsmux.exe
    13324 K
    13324 K
    12844 K
    12844 K
    3
    3948
    igspw.exe
    12260 K
    12260 K
    11744 K
    11744 K
    3
    3956
    igspw.exe
    12260 K
    12260 K
    11744 K
    11744 K
    3
    192
    gwrd.EXE
    [GW] Q02_00
    47908 K
    47908 K
    8392 K
    10832 K
    11
    216
    icman.EXE
    69316 K
    69316 K
    72008 K
    72008 K
    17
    Sum
    505584 K
    402588 K
    DpJ2eeStart: j2ee state = INIT
    ERROR => DpProcCreate: DpJ2eeStart failed [dpxxdisp.c   10768]
    Fri Dec 07 03:53:25 2007
    rdisp/http_min_wait_dia_wp : 1 -> 1
    ***LOG Q0K=> DpMsAttach, mscon ( ibwoksapq02) [dpxxdisp.c   10113]
    DpStartStopMsg: send start message (myname is >ibwoksapq02_Q02_00                      <)
    DpStartStopMsg: start msg sent
    CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    CCMS: start to initalize 3.X shared alert area (first segment).
    DpMsgAdmin: Set release to 6400, patchlevel 0
    MBUF state PREPARED
    MBUF component UP
    DpMBufHwIdSet: set Hardware-ID
    ***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c   1025]
    DpMsgAdmin: Set patchno for this platform to 211
    Release check o.K.
    Fri Dec 07 03:53:32 2007
    MBUF state ACTIVE
    Fri Dec 07 03:53:33 2007
    DpModState: change server state from STARTING to ACTIVE
    Fri Dec 07 03:54:05 2007
    ERROR => DpForkExec: CreateProcess (3: No such process) [dpntdisp.c   1486]
    ***LOG Q0I=> DpForkExec, CreateProcess ( CreateProcess 3) [dpntdisp.c   1488]
    Memory diagnostic                                 *
    Systeminformation
    Processor-Typ             : Intel unknown
    Processor-Count           : 4
    Operating System          : NT 5.2, Build 3790
    Service Pack              : Service Pack 2
    NT Pagefile Informations
    Config. minimum size      : 4190208 K
    Config. maximum size      : 4190208 K
    Avail.  maximum size      : 4190208 K
    Num
    Pagefile
    Min.Size
    Max.Size
    Avail.Max
    Curr.Size
    1
    c:\pagefile.sys
    4190208 K
    4190208 K
    4190208 K
    4190208 K
    NT Task Manager Informations
    Total Handles             :    16946
    Total Threads             :      786
    Total Processes           :       67
    Commit Charge Total       :  3976044 K
    Commit Charge Limit       :  6137308 K
    Commit Charge Peak        :  3982420 K
    Phys.Memory Total         :  2096524 K
    Phys.Memory Available     :   527080 K
    File Cache                :   116948 K
    Kernel Memory Total       :   106168 K
    Kernel Memory Paged       :    92308 K
    Kernel Memory Nonpaged    :    13860 K
    Memory usage of current process
    Total virt.address space  :  2097024 K
    Avail.virt.address space  :   844964 K
    Private Pages             :        0 K
    Total heap size           :    15499 K
    Virtual memory regions    :        0 K
    Uncommitted heap memory   :     9444 K
    Allocated heap memory     :     5896 K
    Moveable heap memory      :        0 K
    DDE shared heap memory    :        0 K
    Memory usage of all processes
    PID
    Image
    Instance
    Work.Set
    WS Peak
    Priv.Pages
    PP Peak
    Pg Fault
    4
    212 K
    2068 K
    0 K
    0 K
    142
    280
    smss.exe
    452 K
    468 K
    164 K
    164 K
    0
    352
    winlogon.exe
    9732 K
    9920 K
    6496 K
    6616 K
    2
    400
    services.exe
    3804 K
    3852 K
    1616 K
    1736 K
    1
    412
    lsass.exe
    9680 K
    9724 K
    9060 K
    9156 K
    2
    636
    svchost.exe
    2692 K
    2692 K
    900 K
    900 K
    0
    816
    svchost.exe
    22104 K
    22364 K
    16044 K
    20016 K
    13
    968
    spoolsv.exe
    4708 K
    4800 K
    3608 K
    3796 K
    1
    1112
    svchost.exe
    2116 K
    2116 K
    568 K
    568 K
    0
    1196
    inetinfo.exe
    8552 K
    10552 K
    3348 K
    5408 K
    3
    1220
    Srvany.exe
    1412 K
    1424 K
    300 K
    316 K
    0
    1244
    lmwu.exe
    2464 K
    2472 K
    724 K
    748 K
    0
    1252
    sqlservr.exe
    600644 K
    600660 K
    573916 K
    573980 K
    147
    1312
    ntrtscan.exe
    4016 K
    55404 K
    2540 K
    53960 K
    16
    1688
    sapstartsrv.exe
    21032 K
    21104 K
    22152 K
    22168 K
    7
    1752
    tmlisten.exe
    7360 K
    8080 K
    4016 K
    5052 K
    4
    1844
    OfcPfwSvc.exe
    5000 K
    5508 K
    3828 K
    4344 K
    2
    1888
    svchost.exe
    7568 K
    9404 K
    5036 K
    6952 K
    3
    2272
    svchost.exe
    4472 K
    4516 K
    2496 K
    22888 K
    1
    2296
    svchost.exe
    3896 K
    3896 K
    2960 K
    2960 K
    1
    2308
    UQ8188.EXE
    2684 K
    2748 K
    1152 K
    1256 K
    1
    2860
    winlogon.exe
    3344 K
    9008 K
    5104 K
    7604 K
    11
    3156
    rdpclip.exe
    2916 K
    2916 K
    924 K
    972 K
    0
    3244
    ctfmon.exe
    2752 K
    3016 K
    504 K
    844 K
    0
    3256
    Explorer.EXE
    11604 K
    11656 K
    6876 K
    7136 K
    4
    3328
    pccntmon.exe
    4572 K
    4572 K
    2436 K
    2444 K
    1
    3336
    jusched.exe
    2428 K
    2428 K
    564 K
    564 K
    0
    3380
    jucheck.exe
    5492 K
    5492 K
    2648 K
    2648 K
    1
    3396
    sqlmangr.exe
    4968 K
    6720 K
    1384 K
    2752 K
    2
    3464
    mmc.exe
    18724 K
    18732 K
    18196 K
    19016 K
    5
    3528
    wuauclt.exe
    3548 K
    3548 K
    1972 K
    1972 K
    0
    3756
    sqlagent.exe
    2536 K
    6372 K
    2572 K
    2572 K
    2
    3812
    msg_server.exe
    [MS] Q02_00
    9548 K
    9548 K
    10348 K
    10348 K
    2
    3836
    disp+work.exe
    34836 K
    34900 K
    50296 K
    50404 K
    8
    3844
    igswd.exe
    [**] Q02_00
    2508 K
    2792 K
    1424 K
    1752 K
    0
    3864
    igsmux.exe
    13420 K
    13420 K
    12928 K
    12928 K
    3
    3948
    igspw.exe
    12344 K
    12344 K
    11824 K
    11824 K
    3
    3956
    igspw.exe
    12344 K
    12344 K
    11824 K
    11824 K
    3
    192
    gwrd.EXE
    [GW] Q02_00
    48604 K
    48604 K
    8956 K
    10832 K
    11
    216
    icman.EXE
    76016 K
    76016 K
    74136 K
    75160 K
    18
    548
    disp+work.EXE
    [WP] Q02_00
    42836 K
    43300 K
    57336 K
    57336 K
    10
    596
    disp+work.EXE
    [WP] Q02_00
    119748 K
    158692 K
    57292 K
    69392 K
    86
    672
    disp+work.EXE
    [WP] Q02_00
    53840 K
    54116 K
    54360 K
    54360 K
    13
    744
    disp+work.EXE
    [WP] Q02_00
    42776 K
    43512 K
    53408 K
    53408 K
    10
    772
    disp+work.EXE
    [WP] Q02_00
    41980 K
    42752 K
    53460 K
    53460 K
    10
    912
    disp+work.EXE
    [WP] Q02_00
    29264 K
    29264 K
    52640 K
    52704 K
    7
    936
    disp+work.EXE
    [WP] Q02_00
    72868 K
    73608 K
    53852 K
    53852 K
    18
    940
    disp+work.EXE
    [WP] Q02_00
    37040 K
    37040 K
    53340 K
    53404 K
    9
    1412
    disp+work.EXE
    [WP] Q02_00
    26172 K
    26172 K
    51888 K
    51952 K
    6
    1624
    disp+work.EXE
    [WP] Q02_00
    26312 K
    26312 K
    52116 K
    52116 K
    6
    1788
    disp+work.EXE
    [WP] Q02_00
    26756 K
    26756 K
    52424 K
    52488 K
    6
    2104
    disp+work.EXE
    [WP] Q02_00
    26876 K
    26876 K
    52480 K
    52544 K
    6
    1748
    disp+work.EXE
    [WP] Q02_00
    43368 K
    43660 K
    53868 K
    53868 K
    11
    2260
    disp+work.EXE
    [WP] Q02_00
    26736 K
    26736 K
    52424 K
    52488 K
    6
    2836
    sap_mssql_cfgck.exe
    11116 K
    11116 K
    10920 K
    10928 K
    3
    Sum
    1624792 K
    1647648 K
    DpJ2eeStart: j2ee state = INIT
    ERROR => DpEnvCheckJ2ee: DpJ2eeStart failed [dpxxdisp.c   6445]
    Fri Dec 07 03:54:25 2007
    ERROR => DpForkExec: CreateProcess (3: No such process) [dpntdisp.c   1486]
    ***LOG Q0I=> DpForkExec, CreateProcess ( CreateProcess 3) [dpntdisp.c   1488]
    Memory diagnostic                                 *
    Systeminformation
    Processor-Typ             : Intel unknown
    Processor-Count           : 4
    Operating System          : NT 5.2, Build 3790
    Service Pack              : Service Pack 2
    NT Pagefile Informations
    Config. minimum size      : 4190208 K
    Config. maximum size      : 4190208 K
    Avail.  maximum size      : 4190208 K
    Num
    Pagefile
    Min.Size
    Max.Size
    Avail.Max
    Curr.Size
    1
    c:\pagefile.sys
    4190208 K
    4190208 K
    4190208 K
    4190208 K
    NT Task Manager Informations
    Total Handles             :    16896
    Total Threads             :      785
    Total Processes           :       67
    Commit Charge Total       :  4039664 K
    Commit Charge Limit       :  6137308 K
    Commit Charge Peak        :  4039768 K
    Phys.Memory Total         :  2096524 K
    Phys.Memory Available     :   475064 K
    File Cache                :   117044 K
    Kernel Memory Total       :   106176 K
    Kernel Memory Paged       :    92316 K
    Kernel Memory Nonpaged    :    13860 K
    Memory usage of current process
    Total virt.address space  :  2097024 K
    Avail.virt.address space  :   844964 K
    Private Pages             :        0 K
    Total heap size           :    15499 K
    Virtual memory regions    :        0 K
    Uncommitted heap memory   :     9444 K
    Allocated heap memory     :     5896 K
    Moveable heap memory      :        0 K
    DDE shared heap memory    :        0 K
    Memory usage of all processes
    PID
    Image
    Instance
    Work.Set
    WS Peak
    Priv.Pages
    PP Peak
    Pg Fault
    4
    212 K
    2068 K
    0 K
    0 K
    143
    280
    smss.exe
    452 K
    468 K
    164 K
    164 K
    0
    352
    winlogon.exe
    9744 K
    9920 K
    6528 K
    6616 K
    2
    400
    services.exe
    3804 K
    3852 K
    1616 K
    1736 K
    1
    412
    lsass.exe
    9680 K
    9724 K
    9060 K
    9156 K
    2
    636
    svchost.exe
    2692 K
    2692 K
    900 K
    900 K
    0
    816
    svchost.exe
    21756 K
    22364 K
    15696 K
    20016 K
    14
    968
    spoolsv.exe
    4708 K
    4800 K
    3608 K
    3796 K
    1
    1112
    svchost.exe
    2116 K
    2116 K
    568 K
    568 K
    0
    1196
    inetinfo.exe
    8552 K
    10552 K
    3348 K
    5408 K
    3
    1220
    Srvany.exe
    1412 K
    1424 K
    300 K
    316 K
    0
    1244
    lmwu.exe
    2464 K
    2472 K
    724 K
    748 K
    0
    1252
    sqlservr.exe
    660820 K
    660820 K
    634788 K
    634788 K
    162
    1312
    ntrtscan.exe
    4016 K
    55404 K
    2540 K
    53960 K
    16
    1688
    sapstartsrv.exe
    21040 K
    21104 K
    22152 K
    22168 K
    9
    1752
    tmlisten.exe
    7360 K
    8080 K
    4016 K
    5052 K
    4
    1844
    OfcPfwSvc.exe
    5000 K
    5508 K
    3828 K
    4344 K
    2
    1888
    svchost.exe
    7564 K
    9404 K
    5012 K
    6952 K
    3
    2272
    svchost.exe
    4472 K
    4516 K
    2496 K
    22888 K
    1
    2296
    svchost.exe
    3896 K
    3896 K
    2960 K
    2960 K
    1
    2308
    UQ8188.EXE
    2684 K
    2748 K
    1152 K
    1256 K
    1
    2860
    winlogon.exe
    3360 K
    9008 K
    5136 K
    7604 K
    11
    3156
    rdpclip.exe
    2916 K
    2916 K
    924 K
    972 K
    0
    3244
    ctfmon.exe
    2752 K
    3016 K
    504 K
    844 K
    0
    3256
    Explorer.EXE
    11604 K
    11656 K
    6876 K
    7136 K
    4
    3328
    pccntmon.exe
    4572 K
    4572 K
    2436 K
    2444 K
    1
    3336
    jusched.exe
    2428 K
    2428 K
    564 K
    564 K
    0
    3380
    jucheck.exe
    5492 K
    5492 K
    2648 K
    2648 K
    1
    3396
    sqlmangr.exe
    4968 K
    6720 K
    1384 K
    2752 K
    2
    3464
    mmc.exe
    18792 K
    18848 K
    18288 K
    19016 K
    5
    3528
    wuauclt.exe
    3548 K
    3548 K
    1972 K
    1972 K
    0
    3756
    sqlagent.exe
    2536 K
    6372 K
    2572 K
    2572 K
    2
    3812
    msg_server.exe
    [MS] Q02_00
    9548 K
    9548 K
    10348 K
    10348 K
    2
    3836
    disp+work.exe
    34844 K
    34908 K
    50296 K
    50404 K
    8
    3844
    igswd.exe
    [**] Q02_00
    2508 K
    2792 K
    1424 K
    1752 K
    0
    3864
    igsmux.exe
    13420 K
    13420 K
    12928 K
    12928 K
    3
    3948
    igspw.exe
    12344 K
    12344 K
    11824 K
    11824 K
    3
    3956
    igspw.exe
    12344 K
    12344 K
    11824 K
    11824 K
    3
    192
    gwrd.EXE
    [GW] Q02_00
    48604 K
    48604 K
    8956 K
    10832 K
    11
    216
    icman.EXE
    76020 K
    76020 K
    74136 K
    75160 K
    18
    548
    disp+work.EXE
    [WP] Q02_00
    42924 K
    43300 K
    57336 K
    57336 K
    10
    596
    disp+work.EXE
    [WP] Q02_00
    122256 K
    166712 K
    60196 K
    70124 K
    118
    672
    disp+work.EXE
    [WP] Q02_00
    53840 K
    54116 K
    54360 K
    54360 K
    13
    744
    disp+work.EXE
    [WP] Q02_00
    42776 K
    43512 K
    53408 K
    53408 K
    10
    772
    disp+work.EXE
    [WP] Q02_00
    41980 K
    42752 K
    53460 K
    53460 K
    10
    912
    disp+work.EXE
    [WP] Q02_00
    29264 K
    29264 K
    52640 K
    52704 K
    7
    936
    disp+work.EXE
    [WP] Q02_00
    72868 K
    73608 K
    53852 K
    53852 K
    18
    940
    disp+work.EXE
    [WP] Q02_00
    37040 K
    37040 K
    53340 K
    53404 K
    9
    1412
    disp+work.EXE
    [WP] Q02_00
    26172 K
    26172 K
    51888 K
    51952 K
    6
    1624
    disp+work.EXE
    [WP] Q02_00
    26312 K
    26312 K
    52116 K
    52116 K
    6
    1788
    disp+work.EXE
    [WP] Q02_00
    26756 K
    26756 K
    52424 K
    52488 K
    6
    2104
    disp+work.EXE
    [WP] Q02_00
    26876 K
    26876 K
    52480 K
    52544 K
    6
    1748
    disp+work.EXE
    [WP] Q02_00
    43368 K
    43660 K
    53868 K
    53868 K
    11
    2260
    disp+work.EXE
    [WP] Q02_00
    26736 K
    26736 K
    52424 K
    52488 K
    6
    2836
    sap_mssql_cfgck.exe
    11116 K
    11116 K
    10920 K
    10928 K
    3
    Sum
    1687328 K
    1711208 K
    DpJ2eeStart: j2ee state = INIT
    ERROR => DpEnvCheckJ2ee: DpJ2eeStart failed [dpxxdisp.c   6445]
    Fri Dec 07 03:54:45 2007
    ERROR => DpForkExec: CreateProcess (3: No such process) [dpntdisp.c   1486]
    ***LOG Q0I=> DpForkExec, CreateProcess ( CreateProcess 3) [dpntdisp.c   1488]
    Memory diagnostic                                 *
    Systeminformation
    Processor-Typ             : Intel unknown
    Processor-Count           : 4
    Operating System          : NT 5.2, Build 3790
    Service Pack              : Service Pack 2
    NT Pagefile Informations
    Config. minimum size      : 4190208 K
    Config. maximum size     

  • Database restore from old rman backup

    Hi Friends,
    My database version is oracle 10.2.0 O/s : Windows
    I have a production database of an outlet. Yesterday night 11pm they have done some wrong transactions and whole stock is showing wrong.
    They have taken a export backup at 9.30 pm and latest archives are there.
    We have a rman backup on April-30,2008. when I am trying to restore from the old rman backup the controlfile I am unable to do it.
    Can any one of you help me out.
    thankyou
    satya

    Hi,
    I have tried installing in a seperate system and restore the rman backup, as I do not have the controlfile I have taken a standby controlfile and started restoring the rman backup as the old rman backup dbid is different with the current dbid and giving me following error:
    ORA-19870: error reading backup piece D:\MPOUTLET\0AJF4BM3_1_1
    ORA-19691: D:\MPOUTLET\0AJF4BM3_1_1 is from different database: id=1976833331, name=JEEVAMP
    ORA-19870: error reading backup piece D:\MPOUTLET\0BJF4BOE_1_1
    ORA-19691: D:\MPOUTLET\0BJF4BOE_1_1 is from different database: id=1976833331, name=JEEVAMP
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of catalog command at 07/13/2008 12:23:23
    RMAN-06209: List of failed objects
    RMAN-06211: ==========================
    RMAN-06212: Object Type Filename/Handle
    RMAN-06213: --------------- ---------------------------------------------------
    RMAN-06214: Backup Piece D:\MPOUTLET\0AJF4BM3_1_1
    RMAN-06214: Backup Piece D:\MPOUTLET\0BJF4BOE_1_1

  • Backups of system databases

    can anyone elaborate on the risks associated with not backing up default MSSQL system databases (i.e. master, msdb) etc. When would you need to restore data from those databases? What kind of data do they hold? How often do you back them up?

    System databases are the core of your SQL Server. Assume a disaster happens, and you lose your system. If you want your system back you need System Databases.
    A corruption to your SQL server can cause at any time, if you need your whole system then system databases are required.
    Assume you have all your user databases backup after a disaster/corruption and you manage to restore them to a different system, but still you wont be able to login to servers, all your jobs would be lost etc.
    You need to backup those as a minimum when you have changes made to the system, eg Any configuration change, Any settings change, Any job created/updated/deleted, any new login created/updated/deleted.
    Ideally as these are very small databases once you should not have much issues backing it up. On a safer side a week once would be enough, but as I said, if there is a major change which impact system databases I would back it up.
    Read this http://msdn.microsoft.com/en-gb/library/ms178028.aspx to get an understanding about different system databases.
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Using Berkeley With Two Different Environment Simultaneously

    I am trying to use Berkeley with two different environment simultaneously in one program. But I am getting an error message of Databases left open. The first environment close with no error but the 2nd environment, having an error like this,
    Exception in thread "main" java.lang.IllegalStateException: Unclosed Database: element_primary_key_index\\192.168.150.211\glassfish3\Berkeley\environment\Testing11
    Unclosed Database: class_catalog\\192.168.150.211\glassfish3\Berkeley\environment\Testing11
    Unclosed Database: element_database\\192.168.150.211\glassfish3\Berkeley\environment\Testing11
    Databases left open: 3
         at com.sleepycat.je.Environment.close(Environment.java:383)
         at com.svi.tools.gfs3v10domain.database.GFS3v10ReadWriteDatabase.closeUpload(GFS3v10ReadWriteDatabase.java:155)
         at com.svi.tools.gfs3v10domain.GFS3v10Domain.closeReadWrite(GFS3v10Domain.java:160)
         at com.svi.tools.gfs3v10.util.GFS3v10UploadUtil.closeUpload(GFS3v10UploadUtil.java:97)
         at com.svi.tools.gfs3v10.GFS3v10.closeUpload(GFS3v10.java:115)
         at com.svi.tools.gfs3v10uploader.util.Uploader.uploadFiles(Uploader.java:89)
         at com.svi.tools.gfs3v10uploader.GFS3v10Uploader.mainMethod(GFS3v10Uploader.java:109)
         at com.svi.tools.gfs3v10uploader.GFS3v10Uploader.main(GFS3v10Uploader.java:52)
    Please someone help me with my problem. Thanks in advance.

    Hi Mark,
    Here is my sample program for the problem:
    import java.io.File;
    import com.sleepycat.bind.serial.StoredClassCatalog;
    import com.sleepycat.je.Database;
    import com.sleepycat.je.DatabaseConfig;
    import com.sleepycat.je.Environment;
    import com.sleepycat.je.EnvironmentConfig;
    import com.sleepycat.je.EnvironmentLockedException;
    import com.sleepycat.je.SecondaryConfig;
    import com.svi.tools.gfs3v10domain.objects.GFS3v10DomainElementData;
    import com.svi.tools.gfs3v10domain.objects.GFS3v10DomainElementKey;
    import com.svi.tools.gfs3v10domain.views.utils.ElementByPrimaryKeyCreator;
    * Read Write Database used for every thing else.
    public class MethodsSample implements GFS3v10Database {
         * Environment where the Database resides.
         private Environment environment = null;
         private boolean isClose = false;
         String environmentString;
         * Class Catalog for Stored Classes.
         private static StoredClassCatalog classCatalog;
         * Element Database.
         private static Database elementDatabase;
         * Element Database by Primary Key.
         private static Database elementByPrimaryKeyDatabase;
         private static Database catalogDatabase;
         * Default Constructor.
         public MethodsSample() {
    * Alternate Constructor.
    * @param homeDirectory Location where the Database is Located.
    public MethodsSample(String homeDirectory) {
         environmentString = homeDirectory;
         openEnvironment(homeDirectory);
         openDatabase();
    @Override
         * Opens the Read Write Database.
         * @param homeDirectory Location where the Database is Located.
    public void openEnvironment(String homeDirectory) {
         EnvironmentConfig environmentConfig = new EnvironmentConfig();
    environmentConfig.setTransactional(true);
    environmentConfig.setAllowCreate(true);
    environmentConfig.setDurability(DURABILITY);
    while (environment == null) {
         try {
              environment = new Environment(new File(homeDirectory), environmentConfig);
         } catch(EnvironmentLockedException ele) {
              try {
                             Thread.sleep(500);
                        } catch (InterruptedException e) {
    @Override
         * Opens the Database.
    public void openDatabase() {
         DatabaseConfig databaseConfig = new DatabaseConfig();
         databaseConfig.setDeferredWrite(true);
    databaseConfig.setAllowCreate(true);
    catalogDatabase = environment.openDatabase(null, CLASS_CATALOG + environmentString, databaseConfig);
    classCatalog = new StoredClassCatalog(catalogDatabase);
    elementDatabase = environment.openDatabase(null, ELEMENT_DATABASE + environmentString, databaseConfig);
    SecondaryConfig secondaryConfig = new SecondaryConfig();
    secondaryConfig.setDeferredWrite(true);
    secondaryConfig.setAllowCreate(true);
    secondaryConfig.setSortedDuplicates(true);
    secondaryConfig.setKeyCreator(new ElementByPrimaryKeyCreator(classCatalog, GFS3v10DomainElementKey.class, GFS3v10DomainElementData.class, String.class));
    elementByPrimaryKeyDatabase = environment.openSecondaryDatabase(null, ELEMENT_PRIMARY_KEY_INDEX + environmentString, elementDatabase, secondaryConfig);
    @Override
         * Gets the Environment.
         * @return Environment.
    public Environment getEnvironment() {
         return environment;
    @Override
         * Gets the Class Catalog.
         * @return Class Catalog.
    public StoredClassCatalog getClassCatalog() {
         return classCatalog;
    @Override
         * Gets Element Database.
         * @return Element Database.
    public Database getElementDatabase() {
         return elementDatabase;
    @Override
         * Gets Element By Primary Key Database.
         * @return Element By Primary Key Database.
    public Database getElementByPrimaryKeyDatabase() {
         return elementByPrimaryKeyDatabase;
    @Override
         * Closes Database and then Environment.
    public void closeUpload() {
         System.out.println("1st Jar environment closing = " + environmentString);
         elementByPrimaryKeyDatabase.close();
         elementDatabase.close();
         classCatalog.close();
         catalogDatabase.close();
         environment.close();
         isClose = true;
    public Boolean isClose() {
         return isClose;
         @Override
         public void closeOthers() {
    for the Main:
    public class sample {
         public static void main(String[] args) {
              String environment1 = "\\\\192.168.160.184\\glassfish\\berkeley\\environment\\home\\Multiple\\Testing11";
              String environment2 = "\\\\192.168.150.211\\glassfish3\\Berkeley\\environment\\Testing11";
              openCloseEnvironment(environment1, environment2);
         public static void openCloseEnvironment(String environment1, String environment2) {
              MethodsSample forEnvironment1 = new MethodsSample(environment1); //Opens the Databases
              MethodsSample forEnvironment2 = new MethodsSample(environment2); //Opens the Databases
              forEnvironment1.closeUpload();
              forEnvironment2.closeUpload();
    // same error happens no matter what sequence for closing
    Thank you.

  • SQL database restoration

    Can i restore System DB from,
    1. one edition to another edition and voice versa
    2. from 2005 to 2008 or 2008 r2 or 2012 or 2014
    2. 32bit to 64bit editions and voice versa

    If you have an instance of SQL Server 2008 R2 Developer Edition and an instance of SQL Server 2008 R2 Standard edition.
    If you have a database running on a (SQL Server 2008 R2 Developer Edition-Enterprise Edition) that has no enterprise features and take a backup of that database,
    you can restore it to a SQL Server 2008 R2 Standard edition instance.
    If you have a database that has enterprise features (data compression,transparent data encryption,partitioning,change data capture) and try to restore it to an
    SQL Server 2008 Standard Edition instance will fail.
    https://dotnetstories.wordpress.com/2012/06/20/restoring-a-database-from-sql-server-enterprise-edition-to-any-other-edition-of-sql-server/
    Also important to remember if build is different even then restore can fail
    The structure and contents of systemdb can change with every service pack, cumulative update or hotfix. Microsoft assumes that it has control over systemdb and
    does not document the changes fixes make to them, unless it is particularly relevant to the fix. You need to make certain you restore an systemdb with exactly the same fix level as the target server.
    Example, the "SQL Server Build" is 8.00.192, while the "Backup Build" is 8.00.176. Because the two builds are different, the restore operation
    is not allowed and error message 3168 occurs.
    https://support.microsoft.com/kb/264474?wa=wsignin1.0
    2. You cannot restore a system database from one version of SQL to another again structure and contents of systemdb can change with every version.
    3. Yes, you can move SQL Server data back and forth between x64, x86, and IA64 architectures. The data and log files themselves do not store anything that indicates
    the architecture and work the same on either 32-bit or 64-bit. The same applies to the backup files. Given those facts it becomes clear that we can easily move data between architectures.
    http://blogs.msdn.com/b/cindygross/archive/2010/04/01/moving-data-between-32-bit-and-64-bit-sql-server-instances.aspx

  • System Image Restore Fails "No disk that can be used for recovering the system disk can be found"

    Greetings    
                                        - Our critical server image backup Fails on one
    server -
    Two 2008 R2 servers. Both do a nightly "Windows Server Backup" of Bare Metal Recovery, System State, C:, System Reserved partition, to another storage hard drive on the same machine as the source. Active Directory is on the C: The much larger D: data
    partition on each source hard drive is not included.
    Test recovery by disconnecting 500G System drive, booting from 2008R2 Install DVD, recovering to a new 500G SATA hard drive.
    Server A good.
    Server B fails. It finds the backed-up image, & then we can select the date we want. As soon as the image restore is beginning and the timeline appears, it bombs with "The system image restore failed. No disk that can be used for recovering the system
    disk can be found." There is a wordy Details message but none of it seems relevant (we are not using USB etc).
    At some point after this, in one (or two?) of the scenarios below, (I forget exactly where) we also got :
    "The system image restore failed. (0x80042403)"
    The destination drive is Not "Excluded".
    Used   diskpart clean   to remove volumes from destination drive. Recovery still errored.
    Tried a second restore-to drive, same make/model Seagate ST3500418AS, fails.
    Tried the earliest dated B image rather than the most recent, fail.
    The Server B backups show as "Success" each night.
    Copied image from B to the same storage drive on A where the A backup image is kept, and used the A hardware to attempt restore. Now only the latest backup date is available (as would occur normally if we had originally saved the backup to a network location).
    Restore still fails.         It looks like its to do with the image rather than with the hardware.
    Tried unticking "automatically check and update disk error info", still fail.
    Server A  SRP 100MB  C: 50.6GB on Seagate ST3500418AS 465.76GB  Microsoft driver 6.1.7600.16385   write cache off
    Server B  SRP 100MB  C: 102GB  on Seagate ST3500418AS 465.76GB  Microsoft driver 6.1.7600.16385   write cache off
    Restore-to hard drive is also Seagate ST3500418AS.
    http://social.answers.microsoft.com/Forums/en-US/w7repair/thread/e855ee43-186d-4200-a032-23d214d3d524      Some people report success after diskpart clean, but not us.
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/31595afd-396f-4084-b5fc-f80b6f40dbeb
    "If your destination disk has a lower capacity than the source disk, you need to go into the disk manager and shrink each partition on the source disk before restoring."  Doesnt apply here.
    http://benchmarkreviews.com/index.php?option=com_content&task=view&id=439&Itemid=38&limit=1&limitstart=4
    for 0x80042403 says "The solution is really quite simple: the destination drive is of a lower capacity than the image's source drive." I cant see that here.
    Thank you so much.

    Hello,
    1. While recovering the OS to the new Hard disk, please don't keep the original boot disk attached to the System. There is a Disk signature for each hard disk. The signature will collide if the original boot disk signature is assigned to the new disk.
    You may attach the older disk after recovering the OS. If you want to recover data to the older disk then they should be attached as they were during backup.
    2. Make sure that the new boot disk is attached as the First Boot disk in hardware (IDE/SATA port 0/master) and is the first disk in boot order priority.
    3. In Windows Recovery Env (WinRE) check the Boot disk using: Cmd prompt -> Diskpart.exe -> Select Disk = System. This will show the disk where OS restore will be attempted. If the disk is different than the intended 2 TB disk then swap the disks in
    correct order in the hardware.
    4. Please make sure that the OS is always recovered to the System disk. (Due to an issue: BMR might recover the OS to some other disk if System disk is small in size. Here the OS won't boot. If you belive this is the case, then you should attach the
    bigger sized disk as System disk and/or exclude other disks from recovery). Disk exclusion is provided in System Image Restore/Complete PC Restore UI/cmdline. 
    5. Make sure that Number and Size of disks during restore match the backup config. Apart from boot volumes, some other volumes are also considered critical if there are services/roles installed on them. These disks will be marked critical for recovery and
    should be present with minimum size requirement.
    6. Some other requirements are discussed in following newsgroup threads:
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/871a0216-fbaf-4a0c-83aa-1e02ae90dbe4
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/9a082b90-bd7c-46f8-9eb3-9581f9d5efdd
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/11d8c552-a841-49ac-ab2e-445e6f95e704
    Regards,
    Vikas Ranjan [MSFT]
    ------- This information is provided as-is without any warranties, implicit or explicit.-------

  • 9i Database - Restore to a new host, validating RMAN backup

    Hi all,
    I could use your help, for any of you who remember how to do this in 9i. On one of my production databases, running 9.2.0.6.0, I have a nightly RMAN script that writes the backup to a large shared drive (this is on a Windows 2003 server). This backup uses a recovery catalog.
    I have a test server, and I want to try and restore last night's backup on this test server, without touching the recovery catalog - purely as a means to go through the recovery process, and to validate our backups (this is also for SOX compliance, as this database is for the financial system).
    I have been looking through the 9i documentation, and was hoping to have some detailed steps here: http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmrecov.htm#1007514
    but I don't see a lot of information there.
    I believe that this should be a rather simple process. On the test server, I have installed the 9.2.0.6 software, and created the Oracle Service using the same name as production. The test server can also see the shared drive that houses the backup files from the production system.
    Here are the steps I am trying, please let me know what I need to change. Thanks all!!
    rman target / nocatalog
    RMAN> set DBID 3679803977
    RMAN> startup nomount
    RMAN> restore controlfile from autobackup; --- this throws errors, see below
    Starting restore at 11-NOV-08
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=12 devtype=DISK
    channel ORA_DISK_1: looking for autobackup on day: 20081111
    channel ORA_DISK_1: looking for autobackup on day: 20081110
    channel ORA_DISK_1: looking for autobackup on day: 20081109
    channel ORA_DISK_1: looking for autobackup on day: 20081108
    channel ORA_DISK_1: looking for autobackup on day: 20081107
    channel ORA_DISK_1: looking for autobackup on day: 20081106
    channel ORA_DISK_1: looking for autobackup on day: 20081105
    channel ORA_DISK_1: no autobackup in 7 days found
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/11/2008 16:43:18
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece

    Many thanks for the helpful replies so far, Hemant!! I had to shelve this issue for a few days, back at it today.
    I have made some progress, I am able to restore the control file now - what I am doing, is copying the autobackup controlfile from the network drive over onto the server locally (E:\oracle\ora92\database\BACKUPCONTROL.ORA), then I am able to restore the controlfile with this:
    restore controlfile from 'E:\oracle\ora92\database\BACKUPCONTROL.ORA';
    And I can see that it restores all 3 of my controlfiles.
    The next step would be to do the database restore. When I issue the "restore database;" command, I can see that it lists out all of the datafiles that it needs to restore from the backup set, but then after about a minute, I see these error messages pop up:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/19/2008 10:55:54
    ORA-19587: error occurred reading 0 bytes at block number 1
    ORA-27091: skgfqio: unable to queue I/O
    ORA-27067: skgfdisp: size of buffer is invalid
    OSD-04026: Invalid parameter passed.
    When I looked up those last 2 error codes on Metalink, I see document ID 213858.1 that looks like this normally happens when the backup piece that has Read-Only permissions. I have confirmed that the backup files on the network drive are not Read-Only, I have full Read/Write privileges on them. So once again, I am stumped.
    Any thoughts? I might go ahead and log an SR for this, to try and get it resolved.
    Thanks!

  • System image restore new hard drive

    Hard drive failed. Brought new one and are trying to do a system image restore. Boot using Win 7 repair disk. Start image recovery. Runs for a min or two and give me the following error.
    Windows back up failed to extend or mount the file system on the recovered volume. (0x80780124) , I don't have win 7 disk as it did not come with the computer, I did create  a repair disk and several system images as back up but am now stuck.
    Help !
    This question was solved.
    View Solution.

    I feel your pain, I went through several installs of a Samsung SSD. First SSD died within several months, the second one  did too (refurbished btw, Samsung won't give ya a new one) and had to do it again. Myself I keep debating whether to worry over the data I have and just do a complete clean install each time. This last go round I did a 'clone' of the HP provided OS with all the bloatware and junk on it and since have found that there is a way to do a windows only install using ABR(autobackupand restore)utility that'll record all your proprietery data like COA key so when you do an install you won't have to keep verifying it every 90 days...BTDT. Found that one on this forum as a good way to do an OS install and keep the original code applied to the new install. 
    All the really important (to me) stuff I keep on an external hdd or big thumb drive, speaking of which theres a 64 gb 3.0 usb on Amazon for under 30 bucks including shipping, ya can't beat that. All my games and stuff I have on seperate HDDs with none of that RAID business. 
    Found out the hard way in order to use the HP recovery discs the pc has to be put back in its original form. I had put in another drive (solid state) and a better graphics card and better RAM sticks only to find that I had to go back and put all that out of the box stuff back in to get the discs to work....they were giving me red alerts in Command Prompts or CMD.  I had never seen Red CMD it was one of those **bleep** moments,  spending half a day googling led to to someone who had been there and done that (btdt) HP won't let you put their OS on another Hard Drive which I think is stupid..the disc knows if the drive is different therefore the bright red CMD window that blinks in your face and doesn't have the courtesy to tell you to change equipment.Oh well time to quit blathering.

  • Windows Backup fails to complete and System shows 29 Restore Points all titled "System Image restore point" but none will work.

    Problems both seemed to appear about the same time and may be related.
    Had backups on an  external drive prior to the problem and appeared to be working. I have since cleaned the external drive in an attempt to start a new backup series but it continues to stop and report backup has failed.
    The System restore was working fine and one day it had changed all the existing Restore Points to "System Image restore point"
    but still showed all the different dates.  In the System Properties window it indicates that there are 0 bytes in "current usages",
    which I assume they are all empty but I can't create any new ones. I get Error code 0x80042308. 
    I have tried the Clean Boot with no results. I use MS Security Essentials for virus protection.
    I have no other symptoms or problems on the PC.
    About ready for a Recovery and start all over.
    George M1

    Hi,
    Your first step should be to run chkdsk /r /f on all the drives in that computer. Shadow copy errors are often caused by disk problems (usually minor) which chkdsk will find and correct.
    Also, this issue can be caused that VSS dlls are corrupted.
    Re-install the VSS dlls by following these steps:
    a. Using command prompt, CD to the WINDOWS\system32 directory
    b. Stop the Volume Shadow Copy service by executing the command "net stop vss"
    c. Register the following DLLs and services by executing these commands:
    regsvr32 ole32.dll
    regsvr32 vss_ps.dll
    Vssvc /Register
    regsvr32 /i swprv.dll
    regsvr32 /i eventcls.dll
    regsvr32 es.dll
    regsvr32 stdprov.dll
    regsvr32 vssui.dll
    regsvr32 msxml.dll
    regsvr32 msxml3.dll
    regsvr32 msxml4.dll
    Hope these could be helpful.
    Kate Li
    TechNet Community Support

  • Faulty Windows after 'successful' System Image restore to new hard drive.

    This question posted as ' Cut down Win 7 after System Image restore to new HDD'  in the community but no satisfactory answer.  Please may I ask here.
    Win reported a successful System Image creation of C: on my E: drive.  C was replaced with a new 2TB drive (previously 1.5Tb) and the image restored.  Win reported 'successful' restoration of C: immediately followed by the common 'You must restart
    your computer to apply these changes...' which I assumed was just Win taking note of the new drive.
    On running, everything seems fine at first but you start to notice faults.  Most importantly Win doesn't seem to recognise itself.  If you start some of the functions in control panel (eg System Manager) you get a message from User Account
    Control  'Do you want to allow the following program from an unknown publisher to make changes to this computer?'.
    Windows Live Mail won't work.  You get a message 'Windows Live Mail could not be started.  Closing Windows Live Mail.  Your calendar contains corrupt data that is forcing Windows Live Mail to close (0x8E5E0247).'  I have never used the
    calendar function so there shouldn't be any data there.
    Browsing history in IE is there on very first opening but is immediately lost and never recovered.  Favourites are intact but all login details are lost.  All your internet feeds are lost.  Message 'The feed download was interrupted.....' 
    Trying to create new feeds is unsuccessful.     When you try and download something the usual IE message 'Do you want to run or save ... ' comes up at the bottom of the screen but the buttons do not work so you cannot get any downloads.
    Installed non-Windows applications do seem to run OK though I usually switch back to the original drive pretty quick.
    2 x Dell Precision T5500 desktops, both reasonably high spec and more or less identical though one is nearly 3 years old and the other approaching 4.  Both Win7 x64.  The fault identical on both machines.  I have had these drives in and out
    so many times trying to solve this there is a real risk of damaging the disk or lead.  Can anyone suggest what might be wrong or how Win could be fixed??  I assume 2Tb is ok.  Is it normal to get a restart message after a 'Successful' image
    restore message.  I've tried cloning the drive as well but got exactly the same messages and faults.  Next I was going to try creating the image after running something like EndItAll and  then seeing if the image would restore more successfully
    to a different 1.5Tb drive though I don't see this should make any difference.  'Clutching at straws' comes to mind.
    Thanks.

    Hello,  thanks for your interest.
    Yes, principally it's the Windows features which are faulty.  It's not that they don't work at all (except for win live mail which gives that message about being forced to shutdown), rather that there are faulty features.
    All of the functions in control panel, for example, work OK. But when you select them there is this message from user account control ' Do you want to allow the following program from an unknown publisher to make changes to this computer'.   It
    then goes on to give details the oddity being that the publisher is listed as 'Unknown'.  This is the standard User Account Control dialogue but the strange thing is that it is not recognising the functions coming with windows.    If you
    click yes it goes on to open device manager or whichever one it was that you wanted and the function works quite normally.  
    Non windows applications (including Microsoft Office) run normally without the user account control dialogue.  The only oddity I noticed today was that one program seemed to have lost it's licencing information and gave a message that the
    month trial period was up with an invitation to licence.
    Today I tried to restore an image to a replacement 1.5TB disc. (i.e. the same size as the image was made from). The whole process went quite smoothly and Windows seemed to be working without the faults on the replacement drive.     So
    having shown that the image must be OK I tried swapping the 1.5 drive for the 2Tb drive and repeating the restore from the same image.   Immediately on running, Windows gave me the message 'You must restart the computer to apply these changes....
    (which it had not done for the 1.5Tb restoration) and all the old faults were back.   The message might be quite innocent and simply indicate that Windows is taking note or the different size drive but it seems to be associated with the arrival of
    the faults. (The new drive is formatted as for the 1.5Tb with C: and Recovery partitions and the extra space left unallocated).
    No, I have not tried Reinstalling Windows Live Mail yet. Today I was working on the newer machine and my mail is on the older one. It is odd that both machines show exactly the same problem. It must be something to do with the move to a different size disk.   I
    guess I would have to reinstall IE as well as that was the other application that was really faulty.
    Yes, that is the thread I tried in the community but I didn't get any solution.

  • System image restore process failed - WSE2012

    I need some help. My system drive failed and I'm forced to attempt a recovery using the server backup located on my backup volume. Using a bootable USB stick, I successfully boot in to the installation media, navigate to the repair screen, and select System
    Restore. The software attempts to find a suitable backup, which it does and recommends the backup dated 2/5/2013 (about a week ago). I click NEXT, select the EXCLUDE drives to exclude those drives that are part of my storage pool (I've also not selected anything
    to exclude. Here's my selection:
    Disk 4 - USB STICK w/Install Media
    Disk 5 - NEW REPLACEMENT DRIVE (fresh)
    Disk 6 - Storage Space
    Disk 7 - Storage Space
    It reports that Disk 3 is automatically excluded because it contains the backup. So far all this seems in order.
    I proceed to click NEXT to get to the final recovery options page. In addition to the server name and date of the backup, I'm presented with the following:
    \\?\Volume{824f6b2f-3b3a-11e2-93ed-806e6f6e6963}, C:
    Upon clicking FINISH and receiving the warning that all drives will be reformatted and partitioned, I'm presented with a dialog box in about 5 seconds that states the following:
    The system image restore failed
    An error occurred while performing the recovery operation. Details (link)
    Clicking the link presents me with another dialog box that shows various options for ensuring the drive is connected (which it is, Disk 5) and it asks that all USB drives are removed. However, if you remove the installation media, you can't continue anyway.
    Here are my questions:
    What on in the name of Microsoft is going on here -- has anyone run into this problem before? According to the instructions, this should be super easy. I've reviewed the following: http://technet.microsoft.com/en-us/library/jj593197.aspx
    Should I disconnect the Storage Space drives all together, leaving the new system drive, the backup drive and the USB stick and try again?
    Should I install a new copy of Windows Server (with storage drives unplugged) and then attempt to restore.
    If the backup was corrupt, wouldn't I get a different error message?
    What other options can I try?
    I've already made a simple volume on the NEW drive as I read elsewhere that solved someone with a Windows 7 recovery that sounded the same. This did not work for me. I've tried to remove the USB drive, and then process complains and says it can't find the
    path to the install media.
    My server is headless and DVD-less, so USB is the only way I'm going to get this to install. I've also already tried moving my USB stick into just about every USB port available.
    Finally, this is a Gigabyte  UEFI motherboard.
    Someone smarter than me please step up and show me the light! I can't believe the restore process is failing like this.

    A brief update since my last post. I've left all the drives plugged in and decided to replace the bootable USB stick method with the tried-and-true external USB DVD drive. Upon boot, I again attempted the recovery option outlined before. However, this time,
    I receive the following message:
    Windows cannot restore a system image to a computer that has a different firmware. The system image was created on a computer using BIOS and this computer is using EFI.
    I don't believe this is true, but to test the error, I proceeded to configure my BIOS for legacy BIOS support and turned OFF all UEFI support. I again booted to the system and proceeded to attempt the recovery option outlined before. This time, it appeared
    to start working, but then resulted in the same exact error message I reported previously just a short 30 seconds later. I attribute this problem to the slower speed of the USB DVD drive.
    I reconfigured my system again for UEFI and installed a fresh copy of the WSE2012. This seemed to go without any trouble. Once in the new instance of WSE2012, I attempted to recover from the original backup. At this time, I can only attempt to replace folders
    and files and not the entire drive. Needless to say, the process did not complete correctly and I have a half baked of new and my original drive, complete with Dashboard plugins that don't work. The next thing I'm going to try is to install fresh again and
    from within WSE2012 attempt to restore from the image again. However, I doubtful that the result will be positive. Stay tuned, more to come.

Maybe you are looking for