File check fails everytime

Hi there,
I have had this problem for about a week. Every time I boot, it says that it has failed to file check /dev/sda5 (my root partition) and asks for my root password to fix it and then reboot (or press Ctrl-D). So I log in as root (root@(none)) and type "e2fsck -p /dev/sda5" which forces a check, it goes off and checks the partition and then comes back all fine, I run the command twice to check it works and it says its now clean. I then reboot, and there are no problems ever the second time.
What is going on? and is there a way to stop it from giving me an error each time I boot for the first time?
Thanks

I think we have the same problem:
http://bbs.archlinux.org/viewtopic.php?pid=631586

Similar Messages

  • While uploading Jar file, getting an error Jar file check failed VeryUrgent

    Hi SRM Experts,
    System  SRM 5.5 with ECS and ECC 6.0
    I am using Eclipse 3.5.1 to Download and Upload User Exits into SAP, While I was downloading user exits it was working fine. While I was Uploading User Exits, getting an error. Jar file check failed.
    As per User exits manual steps I have executed. But I was unable to upload a jar file successfully.
    Someone focuses light on this issue. Greatly appreciate.
    Awaiting for quick responses.
    Please focuses a light on this issue.  Common friends no one worked on this issue.
    Thanks in Advance.
    Regards,
    John

    pl check the info at below link
    may help you
    http://www.cs.utexas.edu/~scottm/cs307/handouts/usingJar.html
    BR
    Dinesh

  • KDL60W630b - software update check and region check - failing everytime and tv going into initial setup mode

    KDL60W630b - software update check and region check - failing everytime and tv going into initial setup mode I got this today today and when i tried to complete initial set-up. it never completed. TV is going in cycles with initial set-up everytime it connects to my internet and says connected successfully. after it tries to update software and tv restartssame initial set-up screen again i tried keypad button on remote and it took me to tv. i was able to see tv that way but whenever i start tv, it goes back into initial set-up again. any solution for this?

    Hi GC_Sugarland, 
    Thank you for considering Sony Community! 
    I'm sorry to hear that this happens to your TV after the update. Pleas reset your the TV to the original setting. click on this link to guide you on how to reset it.
    I hope this helps. Please keep me posted. 
    Regards,
    Jen
    If my post answers your question, please mark it as "Accept as Solution"

  • ORA-01122: database file 8 failed verification check

    trc file: "dev_w0", trc level: 1, release: "700"
    *  ACTIVE TRACE LEVEL           1
    *  ACTIVE TRACE COMPONENTS      all, MJ

    B Tue Apr 29 17:57:51 2014
    B  create_con (con_name=R/3)
    B  Loading DB library 'D:\usr\sap\DEV\DVEBMGS00\exe\dboraslib.dll' ...
    B  Library 'D:\usr\sap\DEV\DVEBMGS00\exe\dboraslib.dll' loaded
    B  Version of 'D:\usr\sap\DEV\DVEBMGS00\exe\dboraslib.dll' is "700.08", patchlevel (0.73)
    B  New connection 0 created
    M sysno      00
    M sid        DEV
    M systemid   560 (PC with Windows NT)
    M relno      7000
    M patchlevel 0
    M patchno    75
    M intno      20050900
    M make:      multithreaded, Unicode, optimized
    M pid        2816
    M
    M  kernel runs with dp version 217000(ext=109000) (@(#) DPLIB-INT-VERSION-217000-UC)
    M  length of sys_adm_ext is 572 bytes
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 2816) [dpxxdisp.c   1299]
    I  MtxInit: 30000 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: VMC (JAVA VM in WP) is active
    M  DpShMCreate: sizeof(wp_adm) 18304 (1408)
    M  DpShMCreate: sizeof(tm_adm) 3994272 (19872)
    M  DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
    M  DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
    M  DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
    M  DpShMCreate: sizeof(comm_adm) 528064 (1048)
    M  DpFileTableSize: max/headSize/ftSize/tableSize=2600/8/208056/208064
    M  DpShMCreate: sizeof(file_adm) 208064 (72)
    M  DpShMCreate: sizeof(vmc_adm) 18720 (1440)
    M  DpShMCreate: sizeof(wall_adm) (38456/34360/64/184)
    M  DpShMCreate: sizeof(gw_adm) 48
    M  DpShMCreate: SHM_DP_ADM_KEY (addr: 08750040, size: 4880152)
    M  DpShMCreate: allocated sys_adm at 08750040
    M  DpShMCreate: allocated wp_adm at 08751E40
    M  DpShMCreate: allocated tm_adm_list at 087565C0
    M  DpShMCreate: allocated tm_adm at 087565F0
    M  DpShMCreate: allocated wp_ca_adm at 08B25890
    M  DpShMCreate: allocated appc_ca_adm at 08B2B650
    M  DpShMCreate: allocated comm_adm at 08B2D590
    M  DpShMCreate: allocated file_adm at 08BAE450
    M  DpShMCreate: allocated vmc_adm_list at 08BE1110
    M  DpShMCreate: allocated gw_adm at 08BE1150
    M  DpShMCreate: allocated vmc_adm at 08BE1180
    M  DpShMCreate: allocated ca_info at 08BE5AA0
    M  DpShMCreate: allocated wall_adm at 08BE5AA8
    M  DpSesCreateTable: attached session table at 06440040 (len=138424)
    X  EmInit: MmSetImplementation( 2 ).
    X  MM global diagnostic options set: 0

    X Tue Apr 29 17:57:52 2014
    X  <ES> client 0 initializing ....
    X  Using implementation flat
    M  <EsNT> Memory Reset disabled as NT default
    X  ES initialized.
    M  DpVmcInit2: o.k.

    M Tue Apr 29 17:57:53 2014
    M  ThInit: running on host sapecc6

    M Tue Apr 29 17:57:54 2014
    M  calling db_connect ...
    C  Prepending D:\usr\sap\DEV\DVEBMGS00\exe to Path.
    C  Oracle Client Version: '10.2.0.1.0'
    C  Client NLS settings: AMERICAN_AMERICA.UTF8
    C  Logon as OPS$-user to get SAPSR3's password
    C  Connecting as /@DEV on connection 0 (nls_hdl 0) ... (dbsl 700 110706)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   06C34308   06C398A4   06C3912C
    C  Attaching to DB Server DEV (con_hdl=0,svchp=06C39078,svrhp=06C4A944)
    C  Starting user session (con_hdl=0,svchp=06C39078,srvhp=06C4A944,usrhp=06C979A8)

    C Tue Apr 29 17:57:55 2014
    C  Now '/@DEV' is connected (con_hdl 0, nls_hdl 0).
    C  Got SAPSR3's password from OPS$-user
    C  Disconnecting from connection 0 ...
    C  Closing user session (con_hdl=0,svchp=06C39078,usrhp=06C979A8)
    C  Now I'm disconnected from ORACLE
    C  Connecting as SAPSR3/<pwd>@DEV on connection 0 (nls_hdl 0) ... (dbsl 700 110706)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   06C34308   06C398A4   06C3912C
    C  Starting user session (con_hdl=0,svchp=06C39078,srvhp=06C4A944,usrhp=06C979A8)
    C  Now 'SAPSR3/<pwd>@DEV' is connected (con_hdl 0, nls_hdl 0).
    C  Database NLS settings: AMERICAN_AMERICA.UTF8
    C  Database instance DEV is running on SAPECC6 with ORACLE version 10.2.0.2.0 since 20140429
    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 20140429 175754 SAPECC6        
    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
    M  ThVmcSetParam: switch vmcj/vm_auto_restart 0 -> 0 sec

    J Tue Apr 29 17:57:57 2014
    J  extMemCheck is set to disp+work.ThVmcMemCheck(thxxvmemu.c:2756)
    J  extGcMemReserve is set to disp+work.ThVmcGcMemReserve(thxxvmemu.c:2587)
    J  extGcMemCommit is set to disp+work.ThVmcGcMemCommit(thxxvmemu.c:2624)
    J  extGcMemFree is set to disp+work.ThVmcGcMemFree(thxxvmemu.c:2643)
    J  extCreateSharedCodeCache is set to disp+work.ThVmcSharedCodeCacheCreate(thxxvmemu.c:1941)
    J  extSetSharedCodeCachePerm is set to disp+work.ThVmcSharedCodeCacheSetPerm(thxxvmemu.c:2019)
    J  extMalloc is set to disp+work.ThVmcMallocDispatcher(thxxvmemu.c:2070)
    J  extCalloc is set to disp+work.ThVmcCallocDispatcher(thxxvmemu.c:2097)
    J  extRealloc is set to disp+work.ThVmcReallocDispatcher(thxxvmemu.c:2124)
    J  extFree is set to disp+work.ThVmcFreeDispatcher(thxxvmemu.c:2149)
    J  extAddResourceToHeap is set to disp+work.ThVmcAddResourceToHeap(thxxvmemu.c:2662)
    J  extRemoveResourceFromHeap is set to disp+work.ThVmcRemoveResourceFromHeap(thxxvmemu.c:2688)
    J  extGetLocalMemory is set to disp+work.ThJGetLocalMemory(thxxvmemu.c:2833)
    J  extGetLocalMemoryPeak is set to disp+work.ThJGetLocalMemoryPeak(thxxvmemu.c:2845)
    J  extGetLocalAllocatedMemory is set to disp+work.ThJGetLocalAllocatedMemory(thxxvmemu.c:2857)
    J  extGetGlobalMemory is set to disp+work.ThJGetGlobalMemory(thxxvmemu.c:2902)
    J  extGetGlobalMemoryPeak is set to disp+work.ThJGetGlobalMemoryPeak(thxxvmemu.c:2914)
    J  extGetGlobalAllocatedMemory is set to disp+work.ThJGetGlobalAllocatedMemory(thxxvmemu.c:2926)
    J  extGetUsedBytes is set to disp+work.ThVmcGetUsedBytes(thxxvmemu.c:2710)
    J  extGetGuardInfo is set to disp+work.ThVmcGetGuardInfo(thxxvmemu.c:1410)
    J  extWriteMemoryDump is set to disp+work.ThJWriteMemoryDump(thxxvmemu.c:1437)
    J  extGetPid is set to disp+work.ThJGetPid(thxxjava.c:7663)
    J  extRegPtr is set to disp+work.ThJRegPtr(thxxvmemu.c:1178)
    J  extGetPtr is set to disp+work.ThJGetPtr(thxxvmemu.c:1190)
    J  extDeregPtr is set to disp+work.ThJDeregPtr(thxxvmemu.c:1202)
    J  extAbort is set to disp+work.ThVmcJAbortHandler(thxxjava.c:6095)
    J  extExit is set to disp+work.ThVmcJExitHandler(thxxjava.c:5994)
    J  extSaveExit is set to disp+work.ThVmcJExitHandler(thxxjava.c:5994)
    J  extSaveErrTxt is set to disp+work.ThVmcJSetVmErrTxt(thxxjava.c:6065)
    J  extSemLock is set to disp+work.ThJSemLock(thxxvmemu.c:545)
    J  extSemUnlock is set to disp+work.ThJSemUnlock(thxxvmemu.c:551)
    J  extMtxOpen is set to disp+work.ThJMtxOpen(thxxvmemu.c:641)
    J  extMtxClose is set to disp+work.ThJMtxClose(thxxvmemu.c:665)
    J  extMtxLock is set to disp+work.ThJMtxLock(thxxvmemu.c:685)
    J  extMtxTrylock is set to disp+work.ThJMtxTrylock(thxxvmemu.c:780)
    J  extMtxUnlock is set to disp+work.ThJMtxUnlock(thxxvmemu.c:853)
    J  extMtxForceUnlock is set to disp+work.ThJMtxForceUnlock(thxxvmemu.c:928)
    J  extMtxLockCount is set to disp+work.ThJMtxLockCount(thxxvmemu.c:975)
    J  extMtxLocked is set to disp+work.ThJMtxLocked(thxxvmemu.c:981)
    J  extMtxLocking is set to disp+work.ThJMtxLocking(thxxvmemu.c:1013)
    J  extMtxWaitingVms is set to disp+work.ThJMtxWaitingVms(thxxvmemu.c:1046)
    J  extMtxIAmOwner is set to disp+work.ThJMtxIAmOwner(thxxvmemu.c:1101)
    J  extOpen is set to disp+work.ThIoJavaOpen(thxxfile.c:381)
    J  extReopen is set to disp+work.ThIoJavaReopen(thxxfile.c:535)
    J  extClose is set to disp+work.ThIoJavaClose(thxxfile.c:665)
    J  extSeek is set to disp+work.ThIoJavaSeek(thxxfile.c:750)
    J  extSetLength is set to disp+work.ThIoJavaSetLength(thxxfile.c:882)
    J  extSync is set to disp+work.ThIoJavaSync(thxxfile.c:910)
    J  extIoAvailable is set to disp+work.ThIoJavaAvailable(thxxfile.c:937)
    J  extFileSizeFd is set to disp+work.ThIoJavaFileSizeFD(thxxfile.c:965)
    J  extPread is set to disp+work.ThIoJavaPRead(thxxfile.c:1074)
    J  extPwrite is set to disp+work.ThIoJavaPWrite(thxxfile.c:1111)
    J  extReadv is set to disp+work.ThIoJavaReadV(thxxfile.c:994)
    J  extWritev is set to disp+work.ThIoJavaWriteV(thxxfile.c:1038)
    J  extFDataSync is set to disp+work.ThIoJavaDataSync(thxxfile.c:1145)
    J  extFixVmToProcess is set to disp+work.ThIoFixVmToWp(thxxfile.c:1230)
    J  extReleaseVmFromProcess is set to disp+work.ThIoRelVmFromWp(thxxfile.c:1239)
    J  extGetOSDescriptor is set to disp+work.ThIoJavaGetOsFd(thxxfile.c:1249)
    J  extDetachIo is set to disp+work.ThIoJavaDetach(thxxfile.c:1273)
    J  extSocket is set to disp+work.ThSoSocketVmc(thxxsock.c:798)
    J  extRecvMsg is set to disp+work.ThSoRecvmsg(thxxsock.c:1147)
    J  extSendMsg is set to disp+work.ThSoSendmsg(thxxsock.c:1569)
    J  extCloseSocket is set to disp+work.ThSoCloseSocket(thxxsock.c:985)
    J  extConnect is set to disp+work.ThSoConnect(thxxsock.c:809)
    J  extBind is set to disp+work.ThSoBind(thxxsock.c:1804)
    J  extAccept is set to disp+work.ThSoAccept(thxxsock.c:1985)
    J  extListen is set to disp+work.ThSoListen(thxxsock.c:2230)
    J  extPoll is set to disp+work.ThSoPoll(thxxsock.c:2381)
    J  extShutdown is set to disp+work.ThSoShutdown(thxxsock.c:2633)
    J  extGetSockOpt is set to disp+work.ThSoGetsockopt(thxxsock.c:2787)
    J  extSetSockOpt is set to disp+work.ThSoSetsockopt(thxxsock.c:2963)
    J  extGetSockName is set to disp+work.ThSoGetsockname(thxxsock.c:3122)
    J  extGetRecvLength is set to disp+work.ThSoGetrecvlength(thxxsock.c:3305)
    J  extSetNonBlocking is set to disp+work.ThSoSetnonblocking(thxxsock.c:3464)
    J  extCreateControlArea is set to disp+work.ThJCreateControlArea(thxxvmemu.c:3099)
    J  extGetControlArea is set to disp+work.ThJGetControlArea(thxxvmemu.c:3113)
    J  extNotifyAboutControlFlagChange is set to disp+work.ThJControlFlagChange(thxxjava.c:6147)
    J  extVmRunningInWp is set to disp+work.ThJVmRunningInWp(thxxjava.c:7500)
    J  extVmRunningOnJavaStack is set to disp+work.ThJVmRunningOnJavaStack(thxxjava.c:7508)
    J  extGetJavaMainStack is set to disp+work.ThJGetJavaMainStack(thxxjava.c:7513)
    J  extAlarm is set to disp+work.ThJAlarm(thxxjava.c:6215)
    J  setGlobalsHook is set to disp+work.ThJSetGlobals(thxxjava.c:6386)
    J  getGlobalsHook is set to disp+work.ThJGetGlobals(thxxjava.c:6374)
    J  getWpIdHook is set to disp+work.ThGetWpId(thxxtool.c:2002)
    J  getWpNoHook is set to disp+work.DpWpAdmEntry(dpxxtool.c:3215)
    J  getVmCount is set to disp+work.ThJGetVmcCount(thxxjava.c:3154)
    J  getEvtConnHdl is set to disp+work.ThJGetEvtConnHdl(thxxjava.c:1099)
    J  selNextHdl is set to disp+work.ThVmcSelNextHdl(thxxvmio.c:335)
    J  rollOut is set to disp+work.ThJRollOut(thxxjava.c:5737)
    J  sleepFunc is set to disp+work.ThJSleep(thxxjava.c:6901)
    J  selTimeout is set to disp+work.ThJSelTimeout(thxxjava.c:7292)
    J  proxyWakeup is set to disp+work.ThJHandleProxyWakeup(thxxjava.c:7610)
    J  extGetProxyActivatedHook is set to disp+work.ThJGetSapProxyActivated(thxxjava.c:7423)
    J  getVmcFlavour is set to disp+work.ThJGetVmcFlavour(thxxjava.c:7675)
    J  getVmType is set to disp+work.ThJGetVmType(thxxjava.c:7687)
    J  getVmMaxNo is set to disp+work.ThJGetVmMaxNo(thxxvmemu.c:3049)
    J  getVmId is set to disp+work.ThJGetActVmc(thxxjava.c:9681)
    J  isValidVmId is set to disp+work.ThJisValidVmId(thxxvmemu.c:3075)
    J  getVmUuid is set to disp+work.ThJGetVmUuid(thxxvmemu.c:3059)
    J  createUniqueId is set to disp+work.ThJCreateUniqueId(thxxvmemu.c:3084)
    J  statisticActive is set to disp+work.ThJStatisticsActive(thxxjava.c:7830)
    J  openStatInterval is set to disp+work.ThJOpenStatInterval(thxxjava.c:7852)
    J  closeStatInterval is set to disp+work.ThJCloseStatInterval(thxxjava.c:7868)
    J  intervalStatActive is set to disp+work.ThJIntervalStatActive(thxxjava.c:7885)
    J  extTrace is set to disp+work.ThJTrace(thxxvmemu.c:3129)
    J  extGetBuiltinLibs is set to disp+work.ThJGetBuiltinLibs(thxxjava.c:6250)
    J  extFindNative is set to disp+work.ThJFindNative(thxxvmemu.c:3150)
    J  extPreloadNativeOpen is set to disp+work.ThJPreloadNativeOpen(thxxjava.c:6264)
    J  extPreloadNativeSym is set to disp+work.ThJPreloadNativeSym(thxxjava.c:6276)
    J  extGetDebugFlags is set to disp+work.ThVmcGetBitmasks(thxxvmc.c:2500)
    J  extStartExternalTimer is set to disp+work.ThJStartExternalTimer(thxxjava.c:6288)
    J  extStopExternalTimer is set to disp+work.ThJStopExternalTimer(thxxjava.c:6309)
    J  extCheckForCleanup is set to <null>
    J  extJvmxInit2 is set to <null>
    J  extJvmxCleanup is set to <null>
    M  ThVmcInitWaitForVm: th_maxWaitForVmTime=30

    I Tue Apr 29 17:58:05 2014
    I  MtxInit: 0 0 0
    M  SHM_PRES_BUF (addr: 0BD30040, size: 4400000)
    M  SHM_ROLL_AREA (addr: 59250040, size: 61440000)
    M  SHM_PAGING_AREA (addr: 0C7D0040, size: 32768000)
    M  SHM_ROLL_ADM (addr: 0C170040, size: 615040)
    M  SHM_PAGING_ADM (addr: 0C210040, size: 525344)
    M  ThCreateNoBuffer allocated 544152 bytes for 1000 entries at 0C2A0040
    M  ThCreateNoBuffer index size: 3000 elems
    M  ThCreateVBAdm allocated 12160 bytes (50 server) at 0C330040
    X  EmInit: MmSetImplementation( 2 ).
    X  MM global diagnostic options set: 0
    X  <ES> client 0 initializing ....
    X  Using implementation flat
    X  ES initialized.

    C Tue Apr 29 17:58:06 2014
    C  *** ERROR => ORA-376 occurred when executing SQL statement (parse error offset=0)
    [dbsloci.c    12548]
    C  sc_p=06198094,no=1,idc_p=06B97F38,con=0,act=1,slen=66,smax=256,#vars=0,stmt=06C5E6B8,table=DDNTT                        
    C  SELECT COUNT(*) FROM DDNTT WHERE TABFORM <> 'J' AND TABFORM <> 'V';
    C  sc_p=06198094,no=1,idc_p=06B97F38,con=0,act=1,slen=66,smax=256,#vars=0,stmt=06C5E6B8,table=DDNTT                        
    C  prep=0,lit=0,nsql=0,lobret=0,#exec=1,dbcnt=0,upsh_p=00000000,ocistmth_p=06C51FC0
    C  IN : cols=0,rmax=0,xcnt=0,rpc=0,rowi=0,rtot=0,upto=-1,rsize=0,vmax=0,bound=0,iobuf_p=00000000,vda_p=00000000
    C       lobs=0,lmax=0,lpcnt=0,larr=00000000,lcurr_p=00000000,rret=0
    C  OUT: cols=1,rmax=1,xcnt=1,rpc=0,rowi=0,rtot=0,upto=-1,rsize=4,vmax=32,bound=1,iobuf_p=05637578,vda_p=06C5DB68
    C       lobs=0,lmax=0,lpcnt=0,larr=00000000,lcurr_p=00000000,rret=0
    C  SELECT COUNT(*) FROM DDNTT WHERE TABFORM <> 'J' AND TABFORM <> 'V';
    B  ***LOG BYL=> DBQ action required because of database error            [dbsh#2 @ 1100] [dbsh    1100 ]
    B  SQL code: 376, SQL text: ORA-00376: file 8 cannot be read at this time
    B  ORA-01110: data file 8: 'D:\ORACLE\DEV\SAPDATA1\SR3_5\SR3.DATA5'
    B  ***LOG BY4=> sql error 376    performing SEL on table DDNTT      [dbstat#4 @ 693] [dbstat  0693 ]
    B  ***LOG BY0=> ORA-00376: file 8 cannot be read at this time
    ORA-01110: data file 8: 'D:\ORACLE\DEV\SAPDATA1\SR3_5\SR3.DATA5' [dbstat#4 @ 693] [dbstat  0693 ]
    B  init: Got no entries from DDNTT !
    B  init failed
    B  db_stinit failed
    M  *** ERROR => ThCallHooks: event handler db_init for event CREATE_SHM failed [thxxtool3.c  260]
    M  *** ERROR => ThIPCInit: hook failed [thxxhead.c   2047]
    M  ***LOG R19=> ThInit, ThIPCInit ( TSKH-IPC-000001) [thxxhead.c   1494]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: ThIPCInit (step 1, th_errno 17, action 3, level 1) [thxxhead.c   10156]

    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    semaphore = 0
    M    act_cs_count = 0
    M    control_flag = 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    vm = V-1

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server sapecc6_DEV_00 on host sapecc6 (wp 0)
    M  *  ERROR       ThInit: ThIPCInit
    M  *
    M  *  TIME        Tue Apr 29 17:58:06 2014
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          17
    M  *  MODULE      thxxhead.c
    M  *  LINE        10354
    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   720]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  260]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 2816) [dpnttool.c   327]
    sql>select status from v$datafile;
    status
    One of my datafile status is 'RECOVER'
    SQL>recover datafile 8;
    ora_00283 recover session cancelled due to errors
    ora_01110:datafile 8:'d:\oracle\sid\sapdata1\sr3_5\sr3.data5'
    ora_01122:database file 8 failed cerification check
    ora_01110:datafile 8:d:\oracle\sid\sapdata1\sr3_5\sr3.data5'
    ora_01251:unknown file header version read for file number 8
      Please give me the suggestion..
    Best regards
    nani

    Hi K Nani,
    From your error message
    ora_01122:database file 8 failed cerification check
    ora_01110:datafile 8:d:\oracle\sid\sapdata1\sr3_5\sr3.data5'
    ora_01251:unknown file header version read for file number 8
    Looks like Data file is corrupted.
    You may refer SAP note 696141 - Composite SAP Note: ORA-01122
    10. ORA-01251: Unknown File Header Version read for file number <file_id>
    Reason: The file header cannot be correctly read.
    Solution: If you use Oracle 9.2 on WINDOWS and if you already installed the database with Oracle 7.2 or lower, see Note 636466.
               Otherwise: Restore/recovery
    Only solution here is restore the database from backup.
    Alternate solution If it is a non-production system.
    If the file is corrupted, then take the datafile offline and open the database.
    Hope this helps
    Regards,
    Deepak Kori

  • Post install checks failed for DBC file - Oracle App11.5.10.2 Linux  5.3

    Hi everybody,
    I tried Installing Oracle E-Business Suite 11.5.10.2 on Red Hat Enterprise Linux Server release 5.3
    The Post install checks failed for DBC file, HTTP, JSP and PHP. Apparently the DBC hadn’t been created. I had verified the log file, while executing adgendbc.sh, it throwing below error.
    Generating /jith/d01/oracle/appl/visappl/fnd/11.5.0/secure/prithvi.bangalore.bedford.local_vis.dbc
    DBC generation failed with exit code 127
    Generating /jith/d01/oracle/appl/visappl/fnd/11.5.0/secure/prithvi_vis.dbc
    DBC generation failed with exit code 127
    Updating Server Security Authentication
    Updating Server Security Authentication failed with exit code 127
    adgendbc.sh exiting with status 127
    ERRORCODE = 127 ERRORCODE_END
    .end std out.
    touch: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
    sqlplus: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
    mkdir: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    sed: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /jith/d01/oracle/appl/viscomn/util/java/1.4/j2sdk1.4.2_04/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /jith/d01/oracle/appl/viscomn/util/java/1.4/j2sdk1.4.2_04/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /jith/d01/oracle/appl/viscomn/util/java/1.4/j2sdk1.4.2_04/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /jith/d01/oracle/appl/viscomn/util/java/1.4/j2sdk1.4.2_04/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    /jith/d01/oracle/appl/viscomn/util/java/1.4/j2sdk1.4.2_04/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    .end err out.
    Thanks in advance.
    sreejith

    Welcome to the forums !
    Pl post EBS related question in the EBS forums at http://forums.oracle.com/forums/category.jspa?categoryID=3
    HTH
    Srini

  • ORA-01122: database file 58 failed verification check

    Hi All,
    I have lost one of my datafile while moving them from 1 drive to another. I am getting the following error while trying to start the database:
    ORA-01122: database file 58 failed verification check
    ORA-01110: data file 58: 'G:\ORACLE\R3E\SAPDATA7\R3E700_25\R3E700.DATA25'
    ORA-01251: Unknown File Header Version read for file number 58
    Please suggest what can be done to correct the error. Also I don't have a backup.
    Suman

    - open http://service.sap.com/notes
    - enter "ORA-01251"
    - you will find Note 696141 - Composite SAP Note: ORA-01122
    and that section:
          10. ORA-01251: Unknown File Header Version read for file number <file_id>
    Reason: The file header cannot be correctly read.
    Solution: If you use Oracle 9.2 on WINDOWS and if you already installed the database with Oracle 7.2 or lower, see Note 636466.
               Otherwise: Restore/recovery
    Markus

  • ORA-01122: database file 30 failed verification check

    SQL*Plus: Release 10.1.0.4.2 - Production on Wed Feb 13 20:33:13 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    when starting the DB for 10gAS get following error, db is started but cannot sign in
    SQL> SQL> Connected.
    SQL> ALTER DATABASE open
    ERROR at line 1:
    ORA-01122: database file 30 failed verification check
    ORA-01110: data file 30: 'D:\ORACLE\ORADATA\PRT\APPS003_A.DBF'
    ORA-01203: wrong incarnation of this file - wrong creation SCN
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.2 - Production
    With the Partitioning, OLAP and Data Mining options

    You have a mismatch in the control file and data file scn numbers. What was done before the database was getting started? I once saw this error when some one moved one file from another munt point to another and there was no rename give to the control file and the control file got no idea which is this new file and where it had come from?
    Try finding the control file which is of the same backup as of this datafile.
    Aman....

  • Database file 1 failed verification check on standby

    Hi ,
    i m getting a trouble on my physical standby database(Oracle 10g Enterprise edition).
    I have taken standby controlfile backup from production . And Restored it on Standby database then i m getting following errors :
    ORA-01122: database file 1 failed verification check
    ORA-01110: data file 1: 'E:\ORACLE\PRODUCT\ORADATA\TESTDR\SYSTEM01.DBF'
    ORA-01206: file is not part of this database - wrong database id
    My production aND standby database ID are same :
    Edited by: user12045405 on Nov 6, 2012 11:16 AM

    Check this
    http://oracleinstance.blogspot.in/2010/08/ora-01122-ora-01110-ora-01206-after.html

  • Database file 4 failed verification check

    Hello,
    When I start database, message displayed as
    follows:
    ORA-01122: database file 4 failed verification check
    ORA-01110: data file 4: '/usr/nas/databases/D1/DADM/oracle/datafiles/DADM_rollback1.dbf'
    ORA-01251: Unknown File Header Version read for file number 4
    Database is not started up.
    I need help how to fix it.
    Thanks in advance
    null

    Dear,
    This error says that urs current datafile is corrupted their are two to three solution on which we can work out.......
    1.if urs database is in Archive log then do the following
    a) shutdown the database
    b) start mount
    c) make sure that u have all the archive log file in the directory where they should be
    d) recover database, then it will ask all archive log file just press enter or write Auto their,
    2) If urs database is not in Archive log then u have restore from urs lsat backuup.
    3) If this datafile if not very much in use u can make it offline and start urs database.
    null

  • File Systen Check Fail

    I keep getting a file system check fail after a new install:
    The error message states that "/dev/hda3 could not be read or does not describe a correct ext2 filesystem"
    /dev/hda3 was setup as ext4 and  as /, so I can't really believe this error message.

    Thanks rockin turtle, I did a standard reinstall instead of legacy like you suggested:
    Even though my system didn't have sata, the correct approach was to do a standard install instead of "Legacy IDE".
    This appears to be a bug in the installer right? I couldn't find it in the bug tracker.

  • Getting p2pp burn boot check failed.Windows 7 not getting started Recovery restpration completion

                                          PLEASE HELP
    Hi,I am trying to do factory recovery of my HP DV6 laptop using original HP recovery disc.My laptop has Windows 7 (64Bit) OS. I am doing below steps
    By pressing F10,entering BIOS mode, changed the BOOT ORDER to take from CD ROM and saved the setting with F10 option and then forced shutdown the laptop and inserted the 1st recovery disc
    Restarted the laptop and it started to boot and it asked for all 3 recovery disc + Supplement driver disc. All were successfully copied and installed. Laptop was restared multple times as it was being displayed on screen. I could see there were Softwares being installed, Service setting,registry setting being applied to computer and after around 1 to 1.5 hours laptop gets shut down, so i beleive all installations have been [performed.
    Now when i start my  laptop, it says
    Windows was not shut down properly choose an option and when i seelct either of the 4 options like Satrt normally or Start with command prompt or Start with Networking...everytime it takes me to screen giving belwow message:
    SAVE LOGS        DETAILS      RETRY
    In Details logs, i see below as the message
    P2PP BURNBOOT Check failed
    Possible causes:
    1. Yellow-Bang occured at device manager
    2. Some silent-install failure of applications
    3. Found failed at PININST_BBV
    4. Found failed at PININST_BBV2
    5. Found memory Dump file
    Suggestion:
    1. Checking REGDEV_BB.log for drivers
    2. Checking BBApps.log for applications
    3. Checking MEMDUMP_BBV.log for memory dump file
    1. After reading forums queries, I tried to set BIOS default by pressing F9 andf then pressing F10 ,saving and exit and then tried to reinstall everything but i get the same error.
    2.I tried changing the system date from March 18th 2015  to March 18th 2012 and then do recovery , but still getting same error
    3. I pressed F2 and did all Memory and Hard disk test and it all passed.
    So Can anyone please help me whats the issue. Thanks

    Hi there @VKD1 
    Welcome to the HP Support Forums! It is a great place to find the help you need, both from other users, HP experts and other support personnel.
    I understand that your notebook is not starting after a system recovery, with a "Windows was not shutdown properly" error message.
     See if you can run the startup repair:
    How to Run a Startup Repair in Windows 7 - sevenforums.com
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • Can anyone help me restore an ipod itouch ,tried restore on itunes but it fails everytime  the error code says it's a conection problem i have 2 computers and tried all usb ports but keephaving the same problem ,even bought a new connection cable

    Went to update the ipod touch and it wiped out everything , Itunes keeps trying to restore it but fails everytime giving me an error that it cannot see my ipod yet it sees it and tries to restore it everytime i connect the ipod to the pc , the help file suggested i reinstall the latest version of I tunes so i did i tried using different ports on 2 computers and also bought a new connection cable but still won't restore can anyone help?

    Try a manual install, as outlined in the link below.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • How can I stop a task sequence if a custom HTA preflight check fails?

    In our currently deployment method, we launch an HTA program before initiating the OSD process. This is only when run from the RAP menu, not via PXE.  When a user initiates OSD through that menu, they get a message prompting them to close Outlook, and
    a countdown of 5 mins, then OSD starts.  They also have the ability to click on an 'OK' button to proceed on their own.
    I've created a new script which checks WMI if Outlook and/or OCS are open, and if the machine is running on battery, spit out a "Failed" response and stop the HTA.  I've also added a "recheck" button to re-do the check, and an 'OK
    button if people jsut want to continue.  
    I'm curious if there is a way to prevent the task sequence from continuing if any of those conditions arent met.  Currently it just pops up and says "Failed, Cannot conitue", but if they close the window, the task sequence thinks the program
    has run, and the OSD migration starts.  I'd like to be able and get the script to cancel the OSD process if a check fails.
    Has anyone had success with this, using WINXP? I'd use the MS pre-flight check but it's only for WIN7.

    Interesting. Thanks for the response.  Is there anybody out there that can assist with VBS part of the solution?
    Here's the code I'm working with.  Currently the battery piece isnt working as it should but I can figure that our, eventually.  I'd like to get Jason's proposed solution in the code.  If this isn't the right place, I'll take this somewhere
    else.
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>OSD Preflight checks</title>
    <HTA:APPLICATION
    APPLICATIONNAME="OSD Preflight checks"
    ID="objOSDPreReqChecks"
    SCROLL="no"
    CONTEXTMENU="no"
    SINGLEINSTANCE="no"
    MAXIMIZEBUTTON="no"
    MINIMIZEBUTTON="no"
    WINDOWSTATE="normal"/>
    <!-- #region STYLEs-->
    <style type="text/css">
    H1{color:Black;text-align:center;font-family: Arial, Helvetica, sans-serif;font-size: 26px;}
    p{font-family:"Arial";font-size:10px;}
    fail{color:Red;text-align:center;}
    .Version {float:left; font-size:1.0em;font-style:italic;color:#888888;font-weight:bold;}
    .Header1 {width: 180px; text-align: right;font-weight:bold;}<!-- '1st column heading -->
    H2 {font-family: Arial, Helvetica, sans-serif; text-align: center;}
    H3 {font-style: italic;}
    .style2 {width: 180px; text-align: left;}
    .Header2 {width: 150px; text-align: right;font-weight:bold;}<!-- '2nd column heading -->
    .style4 {width: 410px; text-align: left;}
    .StatusBar
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    .hidden {display: none; visibility: hidden;}
    </style><!-- #endregion -->
    </head>
    <script language="VBScript" type="text/vbscript">
    '======================================================================================
    ' Script
    ' Version
    ' Purpose To check a machine is suitable for taking an OS deployment
    '======================================================================================
    'Features
    ' Modular design
    ' Verbose "Debug Mode"
    ' In-built data validation
    ' Custom error handling
    ' Custom error codes - 90x0
    ' Generic WMI handler
    'BUGfix: Change CLng to CDbl to avoid overflow (in GetRAM)
    'fixed - moved head section to top to become head > script > body
    'fixed - fCheckModel display with leading ,
    'fixed - fgetmodels dictionary list
    Option Explicit
    ' #region GLOBAL DECLARATIONS: Persistent fold region
    '======================================================================================
    'GLOBAL Vars
    'Things to just display (in GUI)
    Dim strRAM
    Dim strCPUInfo
    Dim strCPUName
    Dim strCPUDesc
    Dim iCPUCount
    Dim iCPUCoreCount
    Dim iRAM
    Dim strBIOSver, strBIOSDate, strBIOSInfo
    'Time related
    Dim TimerInterval 'timer to refresh HTA at start
    Dim iTimer 'abort timer
    Const iAbortTimeout=300000 'delay before window closes (in milliseconds)
    Dim pbTimerID
    Dim pbHTML
    Dim pbWaitTime
    Dim pbHeight
    Dim pbWidth
    Dim pbBorder
    Dim pbUnloadedColor
    Dim pbLoadedColor
    Dim pbStartTime
    'Dictionary
    Dim objModelsDict,colKeys,strKey 'models
    Dim objApprovedMakesDict
    'Misc GLOBAL vars
    Dim blnDebug 'set TRUE to trigger debug mode
    Dim bAbortBuild 'Boolean flag to abort or not abort
    Dim strTemp 'throwaway/scratch
    Dim strNamespace 'wmi default namespace for ANY machine
    Dim strComputer 'wmi reference to current machine, just .
    Dim strService 'WMI service
    Dim strQuery 'custom WQL
    Dim ErrMsg 'custom error messages
    Dim iErrMode 'State machine for error mode
    Dim lFlags 'WMI flag
    Dim strDisks
    'Pre-requisites - things that will cause build to abort if values do not meet spec
    Dim strHTAVendor 'Make of hardware
    Dim strHTAVendorState
    Dim strHTAModel 'Model of hardware
    Dim strHTAModelState 'Model state
    Dim strHTARAM 'RAM
    Dim strHTARAMState 'RAM state
    Dim strHTACPUSpeed 'Processor speed
    Dim strHTACPUCores 'Number of cores
    Dim strHTACPUFullInfo 'CPU + cores
    Dim strHTAHDD 'Disk info
    Dim strHTAHDDState 'Disk state
    Dim strHTACheckRAW 'NTFS check
    Dim strHTAArchitecture 'Processor support
    Dim strHTAProduct 'Product ID
    Dim strHTAOutlook 'Outlook running
    Dim strHTAOutlookState 'Outlook state
    Dim strHTABattery 'Battery check
    Dim strHTABatteryState 'Battery state
    'for WQL filters
    Dim strWQLPCInfo 'Pre-req - (1) for various inc. domain role (servers)
    Dim strWQLRAM 'Pre-req - (2) RAM
    Dim strWQLCPU 'Pre-req - CPU speed string (not int)
    Dim strWQLBootOrder 'Pre-req - Boot order string
    Dim strWQLSATAMode 'Pre-req - HDD mode
    Dim strWQLGenericBIOS
    Dim strWQLCPUCount 'Pre-req - how many CPUs
    Dim strWQLCPUInfo
    Dim strWQLFSType 'Pre-req - Check HDD not RAW (i.e. is NTFS)
    Dim strWQLDisks 'Disks
    Dim strWQLChassis 'Machine type
    Dim strWQLID 'Unique code from OEM
    Dim strWQLProc 'is Outlook running = False
    Dim strWQLBattery 'is on Battery = False
    'State
    Const cProblem = " Problem!"
    Const cRunAgain =" RunCheck: Run System Check Again"
    Const cSuccess = " Success!"
    Const cPassed=" Pass"
    Const cFail=" Fail"
    'Pre-requisite to check: SET VALUES HERE vvvvvvvvvvvvvvvv
    Const cApprovedOEM="Hewlett-Packard"
    Const LegacyOEM1="Dell Inc."
    Const LegacyOEM2="IBM"
    Const cMinimumMemoryMB = 1000 'RAM in MB
    'Const cMinimumMemoryMB = 1000000 'force fail test data RAM in MB
    Const cMinFS="NTFS"
    ' Const cMinFS="HPFS" 'force fail test data
    Const iMinCores=1
    'Const iMinCores=10099 'force fail cores test data
    Const iMinCPUSpeed=2 '20 'in GHz
    'Const iMinCPUSpeed=90000 'in GHz
    Const iMinCPUArch=32
    'Const iMinCPUArch=64
    ' #endregion
    ' To hide anything use ID.className = "hidden", to show set to "", e.g. NotFoundArea.className = "hidden"
    Sub Window_Onload
    Err.Clear
    VersionSpan.InnerText = objOSDPreReqChecks.Version 'Get version
    self.focus
    self.moveTo 100,100 'Move window top left
    StatusBar.InnerText="Validating machine..."
    document.body.style.cursor = "wait" 'hourglass cursor
    'Call PreflightChecks 'use for testing as a VBS only, otherwise HTA timer will call below
    TimerInterval = window.setInterval("PreflightChecks",10)
    End Sub
    Function PreflightChecks
    ' #region HEADER NOTES: Persistent fold region
    'Version history
    'ver 5 OCTOBER 2011 - added error handler
    'ver 3rd Nov - removed HPonly queries
    '// Solution: Custom Script for use with MDT - Adapted from hardwareinfo.vbs Mikael Nystrom – http://deploymentbunny.com
    'Typical BIOS content
    'Processor Speed = 2133/1066 MHz
    'Boot Order = Network Controller,ATAPI CD-ROM Drive,USB device,Hard Drive,Diskette Drive,PnP Device #2,PnP Device #3,PnP Device #4,PnP Device #5,PnP Device #6,PnP Device #7,PnPe #8,PnP Device #9,PnP Device #10,PnP Device #11
    'SATA (disk) mode: *IDE,--,RAID,-- or IDE,*AHCI,RAID
    'On Error Resume Next
    ' #endregion
    ' #region CONSTANTS: Persistent fold region
    '======================================================================================
    'Fields available in HP BIOS
    Const sAsset = "Notebook Asset Tag"
    Const sOwner = "Notebook Ownership Tag"
    Const sMan = "Manufacturer"
    Const sNoteModel = "Notebook Model"
    Const sCPU = "Processor Type"
    Const sCPUSpeed = "Processor Speed"
    Const sRAM = "Memory Size"
    Const sModel = "Product Name"
    Const sBIOSName ="System BIOS"
    Const sBIOSVer = "BIOS Version"
    Const sBIOSDate = "BIOS Date"
    'Other BIOS stuff you could use too
    'Const sOwnerTag = "Enter Ownership Tag"
    'Const sBIOS = "PCID"
    'Const sBIOS = "Define Custom URL"
    'Const sBIOS = "Set Alarm Time"
    'Const sBIOS = "PCID Version"
    Const TextMode="1" 'text case sensitive for dict obj
    'WMI core constants
    Const wbemFlagReturnImmediately = 16 'wmi - Causes the call to return immediately.
    Const wbemFlagForwardOnly = 32 'wmi - Causes a forward-only enumerator to be returned.
    'Forward-only enumerators are generally much faster and
    'use less memory than conventional enumerators, but don't allow calls to SWbemObject.Clone_
    'Advisory config values - as in "you want to the change these"
    Dim strHTABootOrder
    Dim strHTASATAMode
    'Dim strHTACPU
    ' #endregion
    '======================================================================================
    ' #region WQL: Persistent fold region
    lFlags = wbemFlagReturnImmediately + wbemFlagForwardOnly
    'Queries of things to check (HP)
    strWQLBootOrder = "select Name, value from HP_BIOSSetting where Name='Boot order'"
    strWQLSATAMode = "select Name, value from HP_BIOSSetting where (Name='SATA emulation' or name='SATA device mode')"
    strWQLDisks ="SELECT * FROM Win32_DiskDrive where mediatype like 'Fixed%hard disk%'" 'win32_disk only avail after W7
    strWQLFSType ="SELECT * from Win32_LogicalDisk where DriveType='3'" 'only bother with HDDs
    'Generic WMI query strings
    strWQLGenericBIOS="SELECT Manufacturer,SMBIOSBIOSVersion,ReleaseDate FROM Win32_BIOS WHERE PrimaryBIOS = True"
    strWQLCPUCount= "SELECT NumberOfProcessors,NumberOfLogicalProcessors from Win32_ComputerSystem"
    strWQLCPUInfo="SELECT Name,DataWidth,description,MaxClockSpeed,NumberofCores,NumberOfLogicalProcessors from Win32_Processor"
    strWQLPCInfo="SELECT Domain,DomainRole,SystemType,Manufacturer,Model,TotalPhysicalMemory FROM Win32_ComputerSystem"
    ' strWQLPCInfo="SELECT Domain,DomainRole,SystemType,Manufacturer FROM Win32_ComputerSystem"
    strWQLChassis="SELECT ChassisTypes from Win32_SystemEnclosure"
    strWQLID="SELECT IdentifyingNumber,UUID from Win32_ComputerSystemProduct"
    strWQLRAM="SELECT * FROM Win32_PhysicalMemory"
    strWQLProc="SELECT * FROM Win32_Process"
    strWQLBattery="SELECT * FROM BatteryStatus Where Voltage > 0"
    ' #endregion
    ' #region MAIN algorithm
    '=====================================================================================================
    ' MAIN
    'Algorithm
    '1) Check make (vendor)
    '2) Check model (in list)
    '3) Check RAM >x
    '4) Check HDD TYPE (HDD is not RAW)
    '5) Check CPU architecture
    '6) Check outlook
    '7) Check battery
    '=====================================================================================================
    'Initialise
    window.clearInterval(TimerInterval) 'Reset timer to 0
    ' blnDebug=True
    blnDebug=False
    bAbortBuild=False 'default to DON'T abort
    ' bAbortBuild=True
    'Build list of approved vendors
    Set objApprovedMakesDict = CreateObject("Scripting.Dictionary")
    objApprovedMakesDict.comparemode=VBTextCompare
    objApprovedMakesDict.add cApprovedOEM,"OK"
    objApprovedMakesDict.add LegacyOEM1,"OK"
    objApprovedMakesDict.add LegacyOEM2,"OK"
    objApprovedMakesDict.add "Lenovo","Testdata"
    If blnDebug Then Stop
    '1) all machines check make
    strHTAVendor=fCheckVendor(strWQLGenericBIOS) 'check vendor in BIOS - if vendor not approved ABORT without proceeding
    If bAbortBuild=True Then
    StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "FATAL ERROR - goodbye cruel world"
    iTimer = window.setTimeout("Abort", iAbortTimeout, "VBScript")
    Else
    StatusBar.InnerText="Vendor: " & strHTAVendor & vbTab & " " & strHTAVendorState
    '2) Discover current Model
    strHTAModel=fGetModelName(strWQLPCInfo) 'get model name from WMI
    strHTAModel=fUniversalCheckData(strHTAModel,"'Discover Model - fGetModelName'") 'validate
    Call fGetModels 'get list of all valid models (from text file)
    strHTAModel=fCheckModel(strHTAModel)
    '2a) Model number (optional)
    strHTAProduct=fGetComputerSystemProdIDNumber(strWQLID) 'manufacturer's product ID
    strHTAProduct=fUniversalCheckData(strHTAProduct,"'Discover ID - fGetComputerSystemProdIDNumber'")
    ' StatusBar.InnerText=StatusBar.InnerText & VbCrLf & vbTab & "Product Code: " & vbTab & strHTAProduct
    '3) Check installed Memory
    strHTARAM=fGetRAM(strWQLRAM) 'find RAM size
    strHTARAM=fUniversalCheckData(strHTARAM,"'Detect RAM - fCheckRAM'")
    strHTARAM=fCheckRAM(strHTARAM) 'check RAM meets req
    If strHTARAMState=cFail Then Exit Function
    '4) Disk format IS NTFS
    strDisks=fGetDrives(strWQLFSType) 'Get formatting info for all drives
    strHTACheckRAW=fUniversalCheckData(strDisks,"'Detect filesystem - fCheckNTFS'") 'Validate data
    strHTACheckRAW=fCheckNTFS(strDisks) 'Check FS format is acceptable (not RAW)
    If strHTACheckRAW=cFail Then Exit Function
    'Generic CPU calls
    strHTACPUFullInfo="CPUs:" & fGetCPUInfo(strWQLCPUInfo) & " with CPU cores:" & iCPUCoreCount
    strBIOSInfo="BIOS version: " & strBIOSver & ", dated " & strBIOSDate
    '5a) CPU Speed check (info from http://www.robvanderwoude.com/wmiexamples.php)
    strCPUInfo=WMI(strWQLCPUInfo,strNamespace) 'Get CPU details
    strTemp=split(strCPUInfo,"@"): strHTACPUSpeed=strTemp(1)
    strHTACPUSpeed=fUniversalCheckData(strHTACPUSpeed,"'Check processor - fCheckCPUSpeed'") 'Validate data
    strHTACPUSpeed=fCheckCPUSpeed(strHTACPUSpeed) 'Check CPU clock speed
    '5b) cores check
    strHTACPUCores=fUniversalCheckData(iCPUCoreCount,"Check core count - fCheckCores") 'Validate data
    iCPUCoreCount=fCheckCores(iCPUCoreCount) 'pass or fail?
    '5c) CPU address width
    strHTAArchitecture=fUniversalCheckData(strHTAArchitecture,"Check core count - fCheckCores") 'Validate data
    strHTAArchitecture=fCheckCPUArch(strHTAArchitecture)
    '6) Check outlook
    strHTAOutlook=fCheckProcess(strWQLProc)
    '7) Check Battery
    strHTABattery=fCheckBattery(strWQLBattery)
    'end checkss
    document.body.style.cursor = "default"
    'Display hardware values in GUI (in table)
    Vendor.innerhtml = strHTAVendor 'Use str...var..STATE if you want Pass/fail text instead
    Model.innerhtml = strHTAModel
    Product.innerhtml = strHTAProduct
    RAM.innerhtml = strHTARAM
    CPUspeed.innerhtml = strHTACPUSpeed
    CPUInfo.innerhtml = strHTACPUFullInfo
    HDDFS.innerhtml = strHTACheckRAW
    CapableArchitecture.innerhtml=strHTAArchitecture
    BIOSversion.innerhtml = strBIOSver
    BIOSDate.innerhtml = strBIOSDate' CPUName.innerhtml = strCPUDesc 'GetCPUName
    End If
    '======================================================================================
    ' #endregion
    End Function
    'generic WMI queries, by field and namespace
    Function WMI(strQuery,strNameSpace)
    'Aim: generic WMI calls
    'return value of BIOS
    On Error Resume Next
    Dim colItems,objItem
    Dim objWMI
    Const strService = "winmgmts:{impersonationlevel=impersonate}//" 'binding to WMI
    Const strComputer = "." 'this machine
    Set objWMI = GetObject(strService & strComputer & strNamespace) 'GLOBAL wmi
    Set colItems = objWMI.ExecQuery(strQuery,,lFlags)
    For Each objItem In colItems
    If Err Then
    StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "WMI query: " & strQuery & " in " & strNamespace & objItem.Name
    Call ErrHandler("WMI error " & strQuery,1)
    Else
    WMI=objItem.Name 'Return value
    End If
    Next
    End Function
    Function fGetModelName(strWQLPCInfo)
    'Aim: Get model name from BIOS - WMI field sometimes varies if laptop, so try two
    'Return STRING: Model string from BIOS or "UNKNOWN" if null
    On Error Resume Next
    Dim colPCInfo,objPCItem
    Dim strModel
    Set colPCInfo = GetObject("winmgmts:").ExecQuery(strWQLPCInfo,"WQL",lFlags)
    If Err Then
    Call ErrHandler("fGetModelName: Error querying WMI " & strWQLPCInfo,2)
    Else
    For Each objPCItem In colPCInfo
    If Not IsNull(objPCItem.Model) Then
    strModel=objPCItem.Model
    ' iRAM=objPCItem.TotalPhysicalMemory
    Else
    If (strHTAVendor=cApprovedOEM And IsLaptop = True) Then ' resort to HP specific query for older laptops
    'Notebook
    strModel=QueryHPBIOS(sNoteModel)
    if strModel="" then strModel=QueryHPBIOS(sModel) 'try alt value
    Else
    strModel=QueryHPBIOS(sModel)
    End If
    End If
    Next
    End If
    If strModel = "" Then
    fGetModelName = "UNKNOWN"
    Model.style.visibility="hidden"
    Else
    fGetModelName=strModel
    End If
    End Function
    '====================================================
    '====================================================
    Function fGetRAM(strQuery)
    'Aim: get RAM installed. NB Win32_ComputerSystem::TotalPhysicalMemory may not be accurate
    'Return integer
    On Error Resume Next 'equiv to Err.Clear
    Dim colItems, item
    Dim iTotalMemory
    Set colItems = GetObject("winmgmts:").ExecQuery(strQuery,"WQL",lFlags)
    If Err Then
    Call ErrHandler("fGetRAM: Error querying " & strQuery,2)
    Else
    iTotalMemory = 0
    For Each item In colItems
    iTotalMemory = iTotalMemory + CDBL(item.Capacity)/(1024^2)
    Next
    End If
    If iTotalMemory = "" Then
    fGetRAM = "RAM UNKNOWN"
    RAM.style.visibility="hidden"
    Else
    fGetRAM=iTotalMemory
    End If
    End Function
    '====================================================
    '====================================================
    Function fGetCPUInfo(strQuery)
    'Aim: query WMI for CPU info - number and number of cores
    'Return: function=CPU count, var for the cores: iCPUCoreCount, strHTAArchitecture, strCPUDesc
    On Error Resume Next
    Dim colItems, objItem
    Dim NumberOfProcessors
    Set colItems = GetObject("winmgmts:").ExecQuery(strQuery,"WQL",lFlags)
    If Err Then
    Call ErrHandler("GetCPUInfo: Error querying " & strQuery,2)
    Else
    For Each objItem In colItems
    If Err Then
    Else
    If Not IsNull(objItem.NumberOfCores) Then
    NumberOfProcessors = Trim(objItem.NumberOfCores) 'NumberOfProcessors
    End If
    If Not IsNull(objItem.NumberOfLogicalProcessors) Then
    iCPUCoreCount = Int(Trim(objItem.NumberOfLogicalProcessors))
    End If
    If Not IsNull(objItem.DataWidth) Then
    strHTAArchitecture=Trim(objItem.DataWidth) & "-bit"
    End If
    If Not IsNull(objItem.description) Then
    strCPUDesc = Trim(objItem.description) 'cpu name
    End If
    End If
    Next
    If NumberOfProcessors = "" Then
    NumberOfProcessors = "UNKNOWN"
    End If
    fGetCPUInfo = Int(NumberOfProcessors)
    ' iCPUCoreCount = Int(NumberOfLogicalProcessors)
    End If
    End Function
    '====================================================
    '====================================================
    Function fGetComputerSystemProdIDNumber(strWQLID)
    'Aim: Get UUID from Win32_ComputerSystemProduct
    'Return: great big integer
    Dim colSys,objSys
    Dim strUUID
    On Error resume next
    Set colSys = GetObject("winmgmts:").ExecQuery(strWQLID,"WQL",lFlags)
    If Err then
    Call ErrHandler("fGetComputerSystemProdIDNumber: Error querying " & strWQLID,2)
    Else
    For Each objSys In colSys
    If Not IsNull(objSys.IdentifyingNumber) Then
    strUUID = Trim(objSys.IdentifyingNumber)
    End If
    Next
    If strUUID = "" Then
    fGetComputerSystemProdIDNumber = "UNKNOWN"
    Else
    fGetComputerSystemProdIDNumber = strUUID
    End If
    End If
    End Function
    '=================================================================================
    '=================================================================================
    Function fGetDrives(strQuery)
    Dim colDisks,objHDD
    Dim strDriveType, strDiskSize, strDisk
    Dim strDiskFSType
    Dim iGBUnits
    On Error Resume Next
    iGBUnits=1073741824
    Dim iRAW
    iRAW=0
    Set colDisks = GetObject("winmgmts:").ExecQuery(strQuery)
    For Each objHDD In colDisks
    Select Case objHDD.DriveType
    Case 1 strDriveType = "Drive could not be determined."
    Case 2 strDriveType = "Removable Drive"
    Case 3 strDriveType = "Local hard disk."
    Case 4 strDriveType = "Network disk."
    Case 5 strDriveType = "Compact disk (CD)"
    Case 6 strDriveType = "RAM disk."
    Case Else strDriveType = "Drive type Problem."
    End Select
    strDiskFSType = objHDD.FileSystem
    'Find C
    If objHDD.Name="C:" Then
    If isNull(objHDD.FreeSpace) Then
    If blnDebug=True then Call ErrHandler("ALERT!! Volume " & objHDD.Name & "is RAW",1) 'Abort/clean
    fCheckDrives="ALERT!! Volume " & objHDD.Name & "is RAW"
    End If
    End If
    strDiskSize = Int(objHDD.Size /iGBUnits) & "GB" 'calc size of disk
    strDisk = strDisk & VbCrLf & "Vol " & objHDD.Name & " (" & strDriveType & ") size: " & strDiskSize & " (free: " & Int(objHDD.FreeSpace /iGBUnits) & "GB), " & strDiskFSType
    fGetDrives=strDisk
    Next
    If (Err.Number <>0) Then
    Call ErrHandler("WMI Property Query Error: [" & Err.Number & "]",2)
    fGetDrives = -1
    Exit Function
    End If
    End Function
    '=================================================================================
    '=================================================================================
    Function fUniversalCheckData(varData,strStage) 'template
    'Aim: Check value passed...
    'is not blank
    'is in range x..y
    'spelt OK
    'is in a list
    'format is text, numeric
    'return: string: the original value
    On Error Resume Next
    Dim Err
    if blnDebug Then StatusBar.InnerText = StatusBar.InnerText & VbCrLf & "Validating " & strStage & " data..."
    If Err Then
    Call ErrHandler("WARNING: Error discovering value in " & strStage,2) '1=Quit,2=Warn
    strHTAModel="Unknown"
    Else
    Select Case varData
    Case IsEmpty(varData) Or IsNull(varData)
    Call ErrHandler("WARNING: Error in "& strStage,2) '1=Quit,2=Warn
    fUniversalCheckData="Unknown"
    Case IsNumeric(varData)
    If varData<0 Then
    Call ErrHandler("WARNING: Value negative"& strStage,2) '1=Quit,2=Warn
    fUniversalCheckData="Unknown"
    End if
    ' & varData &
    Case IsDate(varData)
    Case Else
    fUniversalCheckData=varData 'Data OK - return value unchanged
    End Select
    End If
    End Function
    '=================================================================================
    'Checks - follow if true DO, if false warn/abort
    '=================================================================================
    Function fCheckBattery(strQuery)
    'Aim: Find if battery is running
    'Return pass/fail
    On Error Resume Next 'equiv to Err.Clear
    Const wbemFlagReturnImmediately = &h10
    Const wbemFlagForwardOnly = &h20
    Dim colItems, item
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\WMI")
    Set colItems = objWMIService.ExecQuery("SELECT * FROM BatteryStatus Where Voltage > 0", "WQL", _
    wbemFlagReturnImmediately + wbemFlagForwardOnly)
    For Each item In colItems
    if objItem.PowerOnline = True Then
    strHTABattery=objItem.PowerOnline
    strHTABatteryState = cFail
    Err.Raise 9010,"fCheckBattery",strHTABattery & " Laptop running on battery. OSD Cannot continue."
    Call ErrHandler(ucase(strHTABatteryState) & ": " & Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1)
    StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "FATAL ERROR - Laptop on Battery. Please plug into an outlet before proceeding."
    iTimer = window.setTimeout("Abort", iAbortTimeout, "VBScript")
    Else
    strHTABatteryState = cPassed
    End if
    Next
    fCheckBattery=strHTABattery
    End Function
    '====================================================
    Function fCheckProcess(strQuery)
    'Aim: Find if outlook is running
    'Return pass/fail
    On Error Resume Next 'equiv to Err.Clear
    Dim colItems, item
    Set colItems = GetObject("winmgmts:").ExecQuery(strQuery,"WQL",lFlags)
    For Each item In colItems
    if item.Name = "OUTLOOK.EXE" Then
    strHTAOutlook=item.Name
    strHTAOutlookState = cFail
    Err.Raise 9010,"fCheckOutlook",strHTAOutlook & " running. OSD Cannot continue."
    Call ErrHandler(ucase(strHTAOutlookState) & ": " & Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1)
    StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "FATAL ERROR - Outlook Running, please close outlook before proceeding."
    iTimer = window.setTimeout("Abort", iAbortTimeout, "VBScript")
    Elseif item.Name = "communicator.exe" Then
    strHTAOutlook=item.Name
    strHTAOutlookState = cFail
    Err.Raise 9010,"fCheckOutlook",strHTAOutlook & " running. OSD Cannot continue."
    Call ErrHandler(ucase(strHTAOutlookState) & ": " & Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1)
    StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "FATAL ERROR - Communicator Running, please close OCS before proceeding."
    iTimer = window.setTimeout("Abort", iAbortTimeout, "VBScript")
    Else
    strHTAOutlookState = cPassed
    End if
    Next
    fCheckProcess=strHTAOutlook
    End Function
    '====================================================
    '1 - Make
    Function fCheckVendor(strVendor)
    'Aim: Check make is one the OS/build is designed For
    'Return: STRINGS for "Make", BIOS version and BIOS date (generic): strHTAVendorState pass or fail
    On Error Resume Next
    Dim colItems,objItem
    Set colItems = GetObject("winmgmts:").ExecQuery(strVendor, "WQL", lFlags)
    For Each objItem In colItems
    strHTAVendor=objItem.Manufacturer
    if objApprovedMakesDict.exists(strHTAVendor) then
    strBIOSver=objItem.SMBIOSBIOSVersion
    strBIOSDate=Mid( objItem.ReleaseDate, 5, 2 ) & "/" & Mid( objItem.ReleaseDate, 7, 2 ) & "/" & Left( objItem.ReleaseDate, 4 )
    strHTAVendorState=cPassed
    Else
    strHTAVendorState=cFail
    Err.Raise 9010,"fCheckVendor",strHTAVendor & " found. The build will not work on this make of hardware"
    Call ErrHandler(ucase(strHTAVendorState) & ": " & Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1)
    bAbortBuild=True
    end if
    Next
    fCheckVendor=strHTAVendor
    End Function
    '=================================================================================
    '=================================================================================
    '2 - Models check
    Function fCheckModel(strThisModel)
    'Aim Check target machine is in list of models
    'Return string
    On Error Resume Next
    StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "Checking model..." & VbCrLf
    If objModelsDict.exists(trim(strThisModel)) then ' if current model in objDict then huzzah
    strHTAModelState=cPassed
    StatusBar.InnerText=StatusBar.InnerText & vbTab & "Model detected: " & vbTab & strHTAModelState
    Else
    strHTAModelState=cFail
    Err.Raise 9010,"fCheckModel",strThisModel & " found. The build will not work on this model of hardware"
    Call ErrHandler(ucase(strHTAModelState) & ": " & Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1)
    end if
    fCheckModel=strHTAModel
    End Function
    '=================================================================================
    '=================================================================================
    '3 - RAM
    Function fCheckRAM(strRAM)
    'Aim: Check installed RAM > x
    'Return string digits with units, e.g. 4GB
    'use strHTARAM for value
    '==================================================================
    ' Memory Preflight Check (from MDT2012)
    '==================================================================
    On Error Resume Next
    StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "Checking RAM..."
    If Err.Number <> 0 Then
    Call ErrHandler("Error occurred while calculating computer's memory.",2)
    End If
    fCheckRAM = Int(strRAM/1024) & "GB" 'format in GB
    If Int(strRAM) > cMinimumMemoryMB Then
    strHTARAMState=cPassed 'Sufficient memory - show whole number in GB"
    StatusBar.InnerText=StatusBar.InnerText & vbTab & "RAM installed: " & vbTab & strHTARAMState
    Else
    strHTARAMState=cFail
    Err.Raise 9030 ,"fCheckRAM","Not enough memory in this machine!" & " Required physical memory is: " & cMinimumMemoryMB & " MB."
    Call ErrHandler(ucase(strHTARAMState) & ": " & Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1) 'abort build
    End If
    End Function
    '=================================================================================
    '=================================================================================
    '4 - NTFS disk
    Function fCheckNTFS(strDiskFS)
    'Aim: Check HDD is NTFS
    'Return string
    On Error Resume Next
    StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "Checking file system is not RAW..."
    If Instr(1,strDiskFS,cMinFS,VBTextCompare)<>0 Then
    fCheckNTFS=cMinFS 'disk format is OK (NTFS)
    StatusBar.InnerText=StatusBar.InnerText & vbTab & " File system: " & cPassed
    Else
    fCheckNTFS=cFail
    Err.Raise 9040 ,"fCheckNTFS","WARNING: Disk not correct file-system. Type required is: " & cMinFS & "." & VbCrLf & _
    "The deployment will fail unless you reformat the target disk immediately."
    Call ErrHandler(Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",2) 'halt build
    End If
    End Function
    '====================================================
    '=================================================================================
    '5 - CPU checks
    '=================================================================================
    Function fCheckCPUSpeed(strCPU) 'any HW
    'Aim: Check CPU speed
    'Return string = number + appropriate units, e.g. 5HGz (strCPU)
    On Error Resume Next
    StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "Checking CPU spec..."
    Select Case Right(strCPU,3) 'check units
    Case "MHz"
    strCPU=Left(strCPU,4)/1000 'reformat to GHz
    Case "GHz"
    strCPU=strCPU 'unit already OK
    Case Else
    Call ErrHandler("CPU units are unknown",2)
    End Select
    'Check clock speed
    If Int(Left(trim(strCPU),1))>=iMinCPUSpeed Then
    fCheckCPUSpeed=strHTACPUSpeed 'CPU is fine i.e don't change value
    StatusBar.InnerText=StatusBar.InnerText & vbTab & "CPU Speed: " & cPassed
    Else
    fCheckCPUSpeed=cFail 'already in GHz
    Err.Raise 9050,"fCheckCPUSpeed","CPU speed pre-requisite failed. Minimum processor clock speed is: " & iMinCPUSpeed
    Call ErrHandler(Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1) 'halt build
    End If
    End Function
    '=================================================================================
    '=================================================================================
    Function fCheckCPUArch(strCPUArch) 'any HW
    'Aim: Check CPU width
    'Return string
    On Error Resume Next
    StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "Checking CPU bus width..."
    'Check clock speed
    If Int(Left(trim(strCPUArch),2))>=iMinCPUArch Then
    fCheckCPUArch=strHTAArchitecture 'CPU is fine i.e don't change value
    StatusBar.InnerText=StatusBar.InnerText & vbTab & "CPU width: " & cPassed
    Else
    fCheckCPUArch=cFail 'already in GHz
    Err.Raise 9052,"fCheckCPUArch","CPU width pre-requisite failed. Minimum processor width required is: " & iMinCPUArch
    Call ErrHandler(Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1) 'abort build
    End If
    End Function
    '=================================================================================
    Function fCheckCores(iCores)
    'Aim: Check hardware (CPU) has a minimum number of cores
    'Return Integer
    On Error Resume Next
    StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "Checking CPU cores..."
    If iCores>=iMinCores Then
    fCheckCores=iCores
    StatusBar.InnerText=StatusBar.InnerText & vbTab & "Core count: " & vbTab & cPassed
    'StatusBar.InnerText=StatusBar.InnerText & vbTab & "CPU cores: " & cPassed
    Else
    fCheckCores=cFail
    Err.Raise 9051,"fCheckCores","WARNING: Not enough cores on the CPU to support the build. Minimum CPU cores is: " & iMinCores
    Call ErrHandler(Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",2) 'halt build
    End If
    End Function
    '=================================================================================
    '=================================================================================
    Function fCheckHPCPUSpeed 'HP ONLY
    'Aim: Check CPU speed
    'return: string
    'Check CPU speed
    On Error Resume Next
    strWQLCPU = "processor speed"
    strTemp=QueryHPBIOS(strWQLCPU,"")
    Select Case Right(strTemp,3)
    Case "MHz"
    strTemp=Left(strTemp,4)/1000 'reformat to GHz
    Case "GHz"
    strTemp 'is OK
    Case Else
    Call ErrHandler("CPU is unknown",2)
    End Select
    'Check clock speed
    If strTemp>=iMinCPUSpeed Then
    fCheckCPUSpeed= strTemp & "GHz"
    Else
    Err.Raise 9050,,"CPU speed pre-requisite failed"
    Call ErrHandler("CPU is too slow",1)
    fCheckCPUSpeed=cFail 'already in GHz
    End If
    End Function
    '=================================================================================
    '=================================================================================
    Function fGetModels
    'Aim: Read external text file
    'return: dictionary object - models as key, integer as value e.g. Dell Optiplex,12
    'On Error Resume Next
    Dim objFSO
    Dim objFile
    Dim strFile
    Dim strEntry
    Dim n
    Dim strfilepath
    Dim iLineCount 'count lines to avoid listing first item with ,.
    Set objModelsDict = CreateObject("Scripting.Dictionary")
    set objFSO=CreateObject("Scripting.FileSystemObject")
    Const ForReading=1
    strfilepath = Left(window.location.pathname,InStrRev(window.location.pathname,"\"))
    strFile=strfilepath & "Models.txt"
    set objFile=objFSO.OpenTextFile(strFile,ForReading)
    iLineCount=0
    'read in each line of data until you reach the end of the file
    do While objFile.AtEndOfStream<>True
    strEntry=objFile.ReadLine
    'you can now do what ever you want with the line as referenced with the strEntry variable such as
    'echoing it back (e.g. wscript.Echo strEntry) or passing it as a variable to a function of subroutine (e.g. MyFunction strEntry)
    objModelsDict.comparemode=VBTextCompare
    objModelsDict.Add strEntry,iLineCount
    iLineCount=iLineCount+1
    If blnDebug then
    If iLineCount=1 Then
    StatusBar.InnerText=trim(strEntry)
    Else
    StatusBar.InnerText=StatusBar.InnerText & ", " & trim(strEntry) 'list models
    End If
    End If
    Loop
    objFile.Close
    End Function
    '=================================================================================
    '=================================================================================
    '====================================================
    Function ErrHandler(strErrorMsg,iErrMode)
    'Aim: to handle error states
    ' 1 = Abort
    ' 2 = Warn
    'Return 'Appropriate text message explaining the error
    '====================================================
    Const msgTitle="SCCM Deployment Preflight Checklist"
    'On Error Resume Next '< don't use that as we want to KEEP the error properties
    'Abort=1
    If iErrMode=1 Then
    StatusBar.InnerText=strErrorMsg 'overwrite status with Error message
    ' StatusBar.InnerText=StatusBar.InnerText & VbCrLf & " " & strHTAOutlook & " " & strHTAVendor & " " & strHTAVendorState & _
    ' VbCrLf & " " & strHTAModel & strHTAModelState & _
    ' VbCrLf & " " & strHTARAM & strHTARAMState & _
    ' VbCrLf & " " & strHTAHDD & strHTAHDDState
    iTimer = window.setTimeout("Abort", iAbortTimeout, "VBScript") 'Abort (close) after n seconds
    'MsgBox strErrorMsg,vbExclamation,msgTitle
    'ErrBar.class=""
    ElseIf iErrMode=2 Then
    'Warning
    StatusBar.InnerText=StatusBar.InnerText & VbCrLf & strErrorMsg & " " '& "(" & Err.Description & " :" & Err.Number & ")"',vbExclamation,msgTitle
    Err.Clear
    End If
    End Function
    '====================================================
    Sub Abort
    'Aim: Quit gracefully
    window.close()
    End Sub
    </script>
    <!-- #region BODY -->
    <body>
    <br />
    <div>
    <span style="version"> <span id="VersionSpan"></span></div>
    <div style="text-align: center;">
    <H1 style="font-family: Arial, Helvetica, sans-serif; font-size: large; text-align: center; color: #000000; text-transform: capitalize">System information</H1>
    <span>
    <table border="1" cellspacing="0" cellpadding="0" style="width: 912px"
    id="SysInfoTable">
    <tr class="h1">
    <td align="right" class="Header1" style="width: 76px; height: 18px">
    </td>
    <td align="right" class="Header1" style="height: 18px"><em id="VendorCaption">Vendor</em></td>
    <td align="left" class="style2" style="height: 18px"><span id="Vendor"></span></td>
    <td align="right" class="Header2" style="height: 18px"><em id="ModelCaption">Model</em></td>
    <td align="center" class="style4" style="width: 400px; height: 18px"><span id="Model"></span></td>
    </tr>
    <tr>
    <td align="right" class="Header1" style="width: 76px">
    </td>
    <td align="right" class="Header1"><em id="ProductCaption">Product ID</em></td>
    <td align="left" class="style2"><span id="Product"></span></td>
    <td align="right" class="Header2"><em id="RAMCaption">Memory(in MB)</em></td>
    <td align="left" class="style4" style="width: 400px"><span id="RAM"></span></td>
    </tr>`
    <tr>
    <td align="right" class="Header1" style="width: 76px">
    </td>
    <td align="right" class="Header1"><em id="CPUCaption">CPU speed (in GHz)</em></td>
    <td align="left" class="style2"><span id="CPUspeed"></span></td>
    <td align="right" class="Header2"><em id="CPUInfoCaption">No: CPU\Cores</em></td>
    <td align="left" class="style4" style="width: 400px"><span id="CPUInfo"></span></td>
    </tr>
    <tr>
    <td align="right" class="Header1" style="width: 76px">
    </td>
    <td align="right" class="Header1"><em id="DiskFSCaption">Filesystem info</em></td>
    <td align="left" class="style2"><span id="HDDFS"></span></td>
    <td align="right" class="Header2"><em id="CapableArchCaption">Architecture</em></td>
    <td align="left" class="style4" style="width: 400px"><span id="CapableArchitecture"></span></td>
    </tr>
    <tr>
    <td align="right" class="Header1" style="width: 76px">
    </td>
    <td align="right" class="Header1"><em id="BIOSVerCaption">BIOS version</em></td>
    <td align="left" class="style2" ><span id="BIOSVERSION"></span></td>
    <td align="right" class="Header2"><em id="BIOSDateCaption">BIOS Date</em></td>
    <td align="left" class="style4" style="width: 400px"><span id="BIOSDate"></span></td>
    </tr>
    </table>
    </span>
    </div>
    <div class="StatusBar">
    <br />
    <Span id="StatusBar">Loading...please wait.</Span>
    </div> <br><br>
    <div align="center">
    <input type="button" name="btnStop" id="btnStop" value="Continue" onclick="Abort">
    <input type="Button" value="Re-Scan Machine" name="button1" onClick="Window_Onload" class="button">
    </div>
    </body><!-- #endregion -->
    </html>

  • Java ME 8 Permission check failed when opening a serial port

    I have a larger Jave ME8.1 application that was going well until I tried to add one last piece, reading and writing data from a serial port. This was left to last because it is trivial, at least in most programming languages. The is IDE NetBeans 8.0.2 running on a Windows 7 PC. The platform is a Raspberry Pi B or B+ (I have tried both) with the most current Raspbian (12/24/2014 I believe). To simplify the process I created a new app with just the open and close code and this generates the same error I am experiencing in the larger application. The program is as follows:
    package javamecomapp;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.microedition.io.CommConnection;
    import javax.microedition.io.Connector;
    import javax.microedition.midlet.MIDlet;
    * @author ****
    public class JavaMEcomApp extends MIDlet {
        static int BAUD_RATE = 38400;
        static String SERIAL_DEVICE = "ttyAMA0";
        static CommConnection commConnection = null;
        static OutputStream os = null;
        static InputStream is = null;
        static String connectorString;
        private int rtnValue = -1;
        @Override
        public void startApp() {
            java.lang.System.out.println("Opening comm port.");
            try {
                rtnValue = JavaMEcomApp.openComm();
            } catch (IOException ex) {
                Logger.getLogger(JavaMEcomApp.class.getName()).log(Level.SEVERE, null, ex);
        @Override
        public void destroyApp(boolean unconditional) {
            java.lang.System.out.println("Closing comm port.");
            try {
                rtnValue = JavaMEcomApp.closeComm();
            } catch (IOException ex) {
                Logger.getLogger(JavaMEcomApp.class.getName()).log(Level.SEVERE, null, ex);
            private static int openComm()throws IOException {
                java.lang.System.out.println("Opening comm port.");
                connectorString = "comm:" + SERIAL_DEVICE + ";baudrate=" + BAUD_RATE;
                commConnection = (CommConnection)Connector.open(connectorString);
                is  = commConnection.openInputStream();
                os = commConnection.openOutputStream();
            return 0;
        private static int closeComm()throws IOException {
            java.lang.System.out.println("Closing comm port.");
                is.close();
                os.close();
                commConnection.close();
            return 0;
    If I comment out the JavaMEcomApp.openComm and closeComm lines it runs fine. When they are included, the following error is dumped to the Raspberry Pi terminal:
    Opening comm port.
    Opening comm port.
    [CRITICAL] [SECURITY] iso=2:Permission check failed: javax.microedition.io.CommProtocolPermission "comm:ttyAMA0;baudrate=38400" ""
    TRACE: <at java.security.AccessControlException: >, startApp threw an Exception
    java.security.AccessControlException:
    - com/oracle/meep/security/AccessControllerInternal.checkPermission(), bci=118
    - java/security/AccessController.checkPermission(), bci=1
    - com/sun/midp/io/j2me/comm/Protocol.checkForPermission(), bci=16
    - com/sun/midp/io/j2me/comm/Protocol.openPrim(), bci=31
    - javax/microedition/io/Connector.open(), bci=77
    - javax/microedition/io/Connector.open(), bci=6
    - javax/microedition/io/Connector.open(), bci=3
    - javamecomapp/JavaMEcomApp.openComm(), bci=46
    - javamecomapp/JavaMEcomApp.startApp(), bci=9
    - javax/microedition/midlet/MIDletTunnelImpl.callStartApp(), bci=1
    - com/sun/midp/midlet/MIDletPeer.startApp(), bci=5
    - com/sun/midp/midlet/MIDletStateHandler.startSuite(), bci=246
    - com/sun/midp/main/AbstractMIDletSuiteLoader.startSuite(), bci=38
    - com/sun/midp/main/CldcMIDletSuiteLoader.startSuite(), bci=5
    - com/sun/midp/main/AbstractMIDletSuiteLoader.runMIDletSuite(), bci=130
    - com/sun/midp/main/AppIsolateMIDletSuiteLoader.main(), bci=26
    java.security.AccessControlException:
    - com/oracle/meep/security/AccessControllerInternal.checkPermission(), bci=118
    - java/security/AccessController.checkPermission(), bci=1
    - com/sun/midp/io/j2me/comm/Protocol.checkForPermission(), bci=16
    - com/sun/midp/io/j2me/comm/Protocol.openPrim(), bci=31
    - javax/microedition/io/Connector.open(), bci=77
    - javax/microedition/io/Connector.open(), bci=6
    - javax/microedition/io/Connector.open(), bci=3
    - javamecomapp/JavaMEcomApp.openComm(), bci=46
    - javamecomapp/JavaMEcomApp.startApp(), bci=9
    - javax/microedition/midlet/MIDletTunnelImpl.callStartApp(), bci=1
    - com/sun/midp/midlet/MIDletPeer.startApp(), bci=5
    - com/sun/midp/midlet/MIDletStateHandler.startSuite(), bci=246
    - com/sun/midp/main/AbstractMIDletSuiteLoader.startSuite(), bci=38
    - com/sun/midp/main/CldcMIDletSuiteLoader.startSuite(), bci=5
    - com/sun/midp/main/AbstractMIDletSuiteLoader.runMIDletSuite(), bci=130
    - com/sun/midp/main/AppIsolateMIDletSuiteLoader.main(), bci=26
    Closing comm port.
    Closing comm port.
    TRACE: <at java.lang.NullPointerException>, destroyApp threw an Exception
    java.lang.NullPointerException
    - javamecomapp/JavaMEcomApp.closeComm(), bci=11
    - javamecomapp/JavaMEcomApp.destroyApp(), bci=9
    - javax/microedition/midlet/MIDletTunnelImpl.callDestroyApp(), bci=2
    - com/sun/midp/midlet/MIDletPeer.destroyApp(), bci=6
    - com/sun/midp/midlet/MIDletStateHandler.startSuite(), bci=376
    - com/sun/midp/main/AbstractMIDletSuiteLoader.startSuite(), bci=38
    - com/sun/midp/main/CldcMIDletSuiteLoader.startSuite(), bci=5
    - com/sun/midp/main/AbstractMIDletSuiteLoader.runMIDletSuite(), bci=130
    - com/sun/midp/main/AppIsolateMIDletSuiteLoader.main(), bci=26
    java.lang.NullPointerException
    - javamecomapp/JavaMEcomApp.closeComm(), bci=11
    - javamecomapp/JavaMEcomApp.destroyApp(), bci=9
    - javax/microedition/midlet/MIDletTunnelImpl.callDestroyApp(), bci=2
    - com/sun/midp/midlet/MIDletPeer.destroyApp(), bci=6
    - com/sun/midp/midlet/MIDletStateHandler.startSuite(), bci=376
    - com/sun/midp/main/AbstractMIDletSuiteLoader.startSuite(), bci=38
    - com/sun/midp/main/CldcMIDletSuiteLoader.startSuite(), bci=5
    - com/sun/midp/main/AbstractMIDletSuiteLoader.runMIDletSuite(), bci=130
    com/sun/midp/main/AppIsolateMIDletSuiteLoader.main(), bci=26
    I have tried this with three different serial ports, /dev/ttyAMA0 (yes I did disable the OS from using it), an arduino board /dev/ttyACM0, and a USB to RS485 adaptor /dev/ttyUSB0. All of these ports could be connected and use normally with both a C program and terminal program in the Pi. The API Permissions were set in the project properties / Application Descriptor / API Permissions to jdk.dio.DeviceMgmtPermission "/dev/ttyAMA0". This of course was changed as I tested different devices.
    I found a reference suggesting adding the line "authentication.provider = com.oracle.meep.security.NullAuthenticationProvider" to the end of the jwc_properties.ini file. This had no effect. I found references that during development in eclipse and NetBeans, the app is already elevated to the top level so this should not be an issue until deployment. This does not appear to be the case.
    I am out of time and need a solution quickly. Any suggestions are welcome.

    Terrence,
       Thank you for responding and confirming the issues I'm having with static addressing.  As far as the example above, I do have the standard LEDs working correctly, however, the example I'm referring to above is from the JavaME samples using the GPIO Port for the LEDS, according to the Device I/O Preconfigured List you referenced:
    GPIO Ports
    The following GPIO ports are preconfigured.
    Devicel ID
    Device Name
    Mapped
    Configuration
    8
    LEDS
    PTB22
    PTE26
    PTB21
    direction = 1 (Output only)
    initValue = 0
    GPIOPins:
    controllerNumber = 1
    pinNumber = 22
    mode = 4 (Push-pull mode)
    controllerNumber = 4
    pinNumber = 26
    mode = 4 (Push-pull mode)
    controllerNumber = 1
    pinNumber = 21
    mode = 4 (Push-pull mode)
    So is the assumption that using GPIOPort for accessing the GPIO port for Device ID 8 as listed in the Device I/O Preconfigured list not supported?

  • Error encountered in Rapid clone (control file creation failed)

    hi all,
    i have 2- node ERP server running EBS 11.5.10 with database 9.2.0.5 and OS HP UX 11.11
    while running perl adcfgclone.pl dbTier
    i encountered the following error
    Verifying correctness of adcrdbclone.sql
    RC-00115: Not able to read temp001.dbf
    Raised by oracle.apps.ad.clone.ApplyDatabase
    RC-00115: Not able to read temp002.dbf
    Raised by oracle.apps.ad.clone.ApplyDatabase
    RC-00115: Not able to read temp003.dbf
    Raised by oracle.apps.ad.clone.ApplyDatabase
    RC-00115: Not able to read temp004.dbf
    Raised by oracle.apps.ad.clone.ApplyDatabase
    RC-00115: Not able to read temp005.dbf
    Raised by oracle.apps.ad.clone.ApplyDatabase
    RC-00115: Not able to read temp006.dbf
    Raised by oracle.apps.ad.clone.ApplyDatabase
    RC-00115: Not able to read temp001.dbf
    Raised by oracle.apps.ad.clone.ApplyDatabase
    RC-00115: Not able to read temp002.dbf
    Raised by oracle.apps.ad.clone.ApplyDatabase
    RC-00115: Not able to read temp003.dbf
    Raised by oracle.apps.ad.clone.ApplyDatabase
    RC-00115: Not able to read temp004.dbf
    Raised by oracle.apps.ad.clone.ApplyDatabase
    RC-00115: Not able to read temp005.dbf
    Raised by oracle.apps.ad.clone.ApplyDatabase
    RC-00115: Not able to read temp006.dbf
    Raised by oracle.apps.ad.clone.ApplyDatabase
    RC-00116: Error while reading dbf files. Control file creation will fail.
    an later part of log file
    Creating the control file for DVP_test database ...
    SQL*Plus: Release 9.2.0.5.0 - Production on Sun Jan 11 18:29:27 2009
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 598700552 bytes
    Fixed Size          737800 bytes
    Variable Size          419430400 bytes
    Database Buffers     167772160 bytes
    Redo Buffers          10760192 bytes
    Control file created.
    Database altered.
    alter tablespace TEMP1 add tempfile '/oradvp/ora/proddata/temp001.dbf' REUSE
    ERROR at line 1:
    ORA-00959: tablespace 'TEMP1' does not exist
    alter tablespace TEMP1 add tempfile '/oradvp/ora/proddata/temp002.dbf' REUSE
    ERROR at line 1:
    ORA-00959: tablespace 'TEMP1' does not exist
    alter tablespace TEMP1 add tempfile '/oradvp/ora/proddata/temp003.dbf' REUSE
    ERROR at line 1:
    ORA-00959: tablespace 'TEMP1' does not exist
    alter tablespace TEMP1 add tempfile '/oradvp/ora/proddata/temp004.dbf' REUSE
    ERROR at line 1:
    ORA-00959: tablespace 'TEMP1' does not exist
    alter tablespace TEMP1 add tempfile '/oradvp/ora/proddata/temp005.dbf' REUSE
    ERROR at line 1:
    ORA-00959: tablespace 'TEMP1' does not exist
    alter tablespace TEMP1 add tempfile '/oradvp/ora/proddata/temp006.dbf' REUSE
    ERROR at line 1:
    ORA-00959: tablespace 'TEMP1' does not exist
    but when i query v$tablespace it shows temporary tablespace is TEMP not temp1
    even on my production system the TEMPORARy Tablespace is TEMP
    when i see the alert file
    it says
    Tablespace 'TEMP' #2 found in data dictionary,
    but not in the controlfile. Adding to controlfile.
    File #143 found in data dictionary but not in controlfile.
    Creating OFFLINE file 'MISSING00143' in the controlfile.
    This file can no longer be recovered so it must be dropped.
    File #144 found in data dictionary but not in controlfile.
    Creating OFFLINE file 'MISSING00144' in the controlfile.
    This file can no longer be recovered so it must be dropped.
    File #145 found in data dictionary but not in controlfile.
    Creating OFFLINE file 'MISSING00145' in the controlfile.
    This file can no longer be recovered so it must be dropped.
    File #146 found in data dictionary but not in controlfile.
    Creating OFFLINE file 'MISSING00146' in the controlfile.
    This file can no longer be recovered so it must be dropped.
    File #147 found in data dictionary but not in controlfile.
    Creating OFFLINE file 'MISSING00147' in the controlfile.
    This file can no longer be recovered so it must be dropped.
    File #148 found in data dictionary but not in controlfile.
    Creating OFFLINE file 'MISSING00148' in the controlfile.
    This file can no longer be recovered so it must be dropped.
    File #149 found in data dictionary but not in controlfile.
    Creating OFFLINE file 'MISSING00149' in the controlfile.
    This file can no longer be recovered so it must be dropped.
    File #150 found in data dictionary but not in controlfile.
    Creating OFFLINE file 'MISSING00150' in the controlfile.
    This file can no longer be recovered so it must be dropped.
    File #151 found in data dictionary but not in controlfile.
    Creating OFFLINE file 'MISSING00151' in the controlfile.
    This file can no longer be recovered so it must be dropped.
    File #152 found in data dictionary but not in controlfile.
    Creating OFFLINE file 'MISSING00152' in the controlfile.
    This file can no longer be recovered so it must be dropped.
    File #153 found in data dictionary but not in controlfile.
    Creating OFFLINE file 'MISSING00153' in the controlfile.
    This file can no longer be recovered so it must be dropped.
    how can i come out though this confusion??

    i have opened the database but what about the next porcess now
    Beginning database tier Apply - Sun Jan 11 17:31:13 2009
    Log file located at /oradvp/ora/proddb/9.2.0/appsutil/log/DVP_test/ApplyDBTier_01110531.log
    RC-50004: Fatal: Error occurred in ApplyDatabase:
    Control file creation failed
    ERROR while running Apply...
    ERROR: Failed to execute adclone.pl
    Please check logfile.
    logfile says
    Checking for errors ...
    ORA-00959: tablespace 'TEMP1' does not exist
    ORA-00959: tablespace 'TEMP1' does not exist
    ORA-00959: tablespace 'TEMP1' does not exist
    ORA-00959: tablespace 'TEMP1' does not exist
    ORA-00959: tablespace 'TEMP1' does not exist
    ORA-00959: tablespace 'TEMP1' does not exist
    ORA-00376: file 148 cannot be read at this time
    ORA-01111: name for data file 148 is unknown - rename to correct file
    ORA-01110: data file 148: '/oradvp/ora/proddb/9.2.0/dbs/MISSING00148'
    ORA-00600: internal error code, arguments: [1236], [], [], [], [], [], [], []
    ORA-24313: user already authenticated
    ORA-01031: insufficient privileges
    ORA-01031: insufficient privileges
    ORA-24313: user already authenticated
    ORA-01031: insufficient privileges
    The database has not been successfully created. Shutting down the instance ...
    SQL*Plus: Release 9.2.0.5.0 - Production on Sun Jan 11 18:30:01 2009
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Disconnected
    .end std out.
    .end err out.
    ADX Database Utility
    getConnectionUsingAppsJDBCConnector() -->
    APPS_JDBC_URL='null'
    Trying to get connection using SID based connect descriptor
    getConnection() -->
    sDbHost : test
    sDbDomain : khannapaper.com
    sDbPort : 1528
    sDbSid : DVP
    sDbUser : APPS
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@test.khannapaper.com:1528:DVP
    Exception occurred: java.sql.SQLException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    HP-UX Error: 2: No such file or directory
    Trying to connect using SID as ServiceName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=test.khannapaper.com)(PORT=1528))(CONNECT_DATA=(SERVICE_NAME=DVP)))
    Exception occurred: java.sql.SQLException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    HP-UX Error: 2: No such file or directory
    Trying to connect using SID as ServiceName.DomainName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=test.khannapaper.com)(PORT=1528))(CONNECT_DATA=(SERVICE_NAME=DVP.khannapaper.com)))
    Exception occurred: java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093376)(ERR=12514)(ERROR_STACK=(ERROR=(CODE=12514)(EMFI=4))))
    Connection could not be obtained; returning null
    -------------------ADX Database Utility Finished---------------
    RC-00118: Error occurred during creation of database
    Raised by oracle.apps.ad.clone.ApplyDatabase
    StackTrace:
    java.lang.Exception: Control file creation failed
         at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:469)
         at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:314)
         at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:290)
         at oracle.apps.ad.clone.ApplyDBTier.<init>(ApplyDBTier.java:131)
         at java.lang.reflect.Constructor.newInstance(Native Method)
         at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:68)
         at java.lang.Thread.run(Unknown Source)
    and why does it shows temporary tablespace TEMP1
    but in real it is TEMP
    i dropped around 50 days back from production and added TEMP to it

Maybe you are looking for