cancel
Showing results for 
Search instead for 
Did you mean: 

SQL ERROR 942

Former Member
0 Kudos

hi

Getting SQL error 942 while upgrading from 4.6 TO ECC 6.0

please help me on this.

Thanks

Subramanya

Accepted Solutions (1)

Accepted Solutions (1)

clas_hortien
Employee
Employee
0 Kudos

SQL Server Error 942 is

Database '%.*ls' cannot be opened because it is offline.

If you are using SQL Server set the database online again with

alter database <SID> set online

Regards

Clas

Answers (2)

Answers (2)

Former Member
0 Kudos

there is a problem with one of the BASIS tables of the ABAP was,

The upgrade ****-up one of them,

in order to find the problematic table,

create a ORACLE trace or increase value of the profile parameter "rdisp/TRACE" to 2 or 3.

(after you would find the name table,

try query from the table)

former_member204746
Active Contributor
0 Kudos

please provide logs... information you procided is not enough

also provide OS and DB Version ( I suspect to be Oracle, but which version?)

ORA-00942 means: table or view does not exist

Former Member
0 Kudos

hi

Please find the logs.

Subramanya

-


trc file: "dev_w0", trc level: 1, release: "700"

-


*

  • ACTIVE TRACE LEVEL 1

  • ACTIVE TRACE COMPONENTS all, MJ

*

B

B Tue Mar 13 03:14:57 2007

B create_con (con_name=R/3)

B Loading DB library 'D:\usr\sap\PUT\exe\dboraslib.dll' ...

B Library 'D:\usr\sap\PUT\exe\dboraslib.dll' loaded

B Version of 'D:\usr\sap\PUT\exe\dboraslib.dll' is "700.08", patchlevel (0.92)

B New connection 0 created

M sysno 01

M sid IUP

M systemid 560 (PC with Windows NT)

M relno 7000

M patchlevel 0

M patchno 83

M intno 20050900

M make: multithreaded, ASCII, optimized

M pid 3984

M

M kernel runs with dp version 218(ext=109) (@(#) DPLIB-INT-VERSION-218)

M length of sys_adm_ext is 360 bytes

M ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 3984) [dpxxdisp.c 1301]

I MtxInit: 30000 0 0

M DpSysAdmExtCreate: ABAP is active

M DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active

M DpShMCreate: sizeof(wp_adm) 9680 (880)

M DpShMCreate: sizeof(tm_adm) 3397704 (16904)

M DpShMCreate: sizeof(wp_ca_adm) 18000 (60)

M DpShMCreate: sizeof(appc_ca_adm) 6000 (60)

M DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528040/528048

M DpShMCreate: sizeof(comm_adm) 528048 (1048)

M DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0

M DpShMCreate: sizeof(file_adm) 0 (72)

M DpShMCreate: sizeof(vmc_adm) 0 (1196)

M DpShMCreate: sizeof(wall_adm) (22440/34344/56/100)

M DpShMCreate: sizeof(gw_adm) 48

M DpShMCreate: SHM_DP_ADM_KEY (addr: 04A80040, size: 4023016)

M DpShMCreate: allocated sys_adm at 04A80040

M DpShMCreate: allocated wp_adm at 04A819F0

M DpShMCreate: allocated tm_adm_list at 04A83FC0

M DpShMCreate: allocated tm_adm at 04A83FF0

M DpShMCreate: allocated wp_ca_adm at 04DC1838

M DpShMCreate: allocated appc_ca_adm at 04DC5E88

M DpShMCreate: allocated comm_adm at 04DC75F8

M DpShMCreate: system runs without file table

M DpShMCreate: allocated vmc_adm_list at 04E484A8

M DpShMCreate: allocated gw_adm at 04E484E8

M DpShMCreate: system runs without vmc_adm

M DpShMCreate: allocated ca_info at 04E48518

M DpShMCreate: allocated wall_adm at 04E48520

X EmInit: MmSetImplementation( 2 ).

X MM global diagnostic options set: 0

X <ES> client 0 initializing ....

X Using implementation flat

M <EsNT> Memory Reset disabled as NT default

X ES initialized.

M

M Tue Mar 13 03:14:58 2007

M ThInit: running on host IGATESAP06

M

M Tue Mar 13 03:14:59 2007

M calling db_connect ...

C Prepending D:\oracle\IUP\102\Client to Path.

C Oracle Client Version: '10.2.0.1.0'

C Client NLS settings: AMERICAN_AMERICA.WE8DEC

C Logon as OPS$-user to get SAPIUPSHD's password

C Connecting as /@IUP on connection 0 (nls_hdl 0) ... (dbsl 700 030107)

C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch

C 0 WE8DEC 1 04876F38 09172554 09171DDC

C Attaching to DB Server IUP (con_hdl=0,svchp=09171D28,srvhp=09172F24)

C Starting user session (con_hdl=0,svchp=09171D28,srvhp=09172F24,usrhp=09194D68)

C Now '/@IUP' is connected (con_hdl 0, nls_hdl 0).

C Got SAPIUPSHD's password from OPS$-user

C Disconnecting from connection 0 ...

C Closing user session (con_hdl=0,svchp=09171D28,usrhp=09194D68)

C Now I'm disconnected from ORACLE

C Connecting as SAPIUPSHD/<pwd>@IUP on connection 0 (nls_hdl 0) ... (dbsl 700 030107)

C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch

C 0 WE8DEC 1 04876F38 09172554 09171DDC

C Starting user session (con_hdl=0,svchp=09171D28,srvhp=09172F24,usrhp=09194D68)

C Now 'SAPIUPSHD/<pwd>@IUP' is connected (con_hdl 0, nls_hdl 0).

C Database NLS settings: AMERICAN_AMERICA.WE8DEC

C DB instance IUP is running on IGATESAP06 with ORACLE version 10.2.0.2.0 since MAR 13, 2007, 03:10:10

B

B Tue Mar 13 03:15:00 2007

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 20070313 031459 IGATESAP06

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

I Tue Mar 13 03:15:04 2007

I MtxInit: 0 0 0

M SHM_PRES_BUF (addr: 092F0040, size: 4400000)

M SHM_ROLL_AREA (addr: 2CCC0040, size: 268435456)

M SHM_PAGING_AREA (addr: 10360040, size: 134217728)

M SHM_ROLL_ADM (addr: 09730040, size: 1325830)

M SHM_PAGING_ADM (addr: 051A0040, size: 525344)

M ThCreateNoBuffer allocated 324144 bytes for 1000 entries at 09880040

M ThCreateNoBuffer index size: 3000 elems

M ThCreateVBAdm allocated 7424 bytes (50 server) at 05230040

X EmInit: MmSetImplementation( 2 ).

X MM global diagnostic options set: 0

X <ES> client 0 initializing ....

X Using implementation flat

X ES initialized.

B db_con_shm_ini: WP_ID = 0, WP_CNT = 11, CON_ID = -1

B dbtbxbuf: Buffer TABL (addr: 183700C8, size: 30000000, end: 1A00C448)

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 = 14522368

B ***LOG BB0=> buffer TABL started with length 30000000 bytes [dbtbxbuf#2 @ 16178] [dbtbxbuf1617 8]

B dbtbxbuf: Buffer TABLP (addr: 0E6500C8, size: 10240000, end: 0F0140C8)

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 = 5068480

B ***LOG BB0=> buffer TABLP started with length 10240000 bytes [dbtbxbuf#2 @ 16178] [dbtbxbuf1617 8]

B dbtbxbuf: Reading TBX statistics:

B dbtbxbuf: Opening D:\usr\sap\PUT\IUP\DVEBMGS01\data\tbxnew failed (No such file or directory).

B dbtbxbuf: Renaming D:\usr\sap\PUT\IUP\DVEBMGS01\data\tbxnew to D:\usr\sap\PUT\IUP\DVEBMGS01\data\tbxstat failed (No such file or directory).

B dbtbxbuf: 0 object entries precreated

C OCI-call failed with -1=OCI_ERROR

C SQL error 942: 'ORA-00942: table or view does not exist'

B ***LOG BZY=> unexpected return code 103 calling SEL [dbsynseq#1 @ 256] [dbsynseq0256 ]

B db_syinit 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 10205]

M

M Info for wp 0

M

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 = no VM

M

M *****************************************************************************

M *

M * LOCATION SAP-Server IGATESAP06_IUP_01 on host IGATESAP06 (wp 0)

M * ERROR ThInit: ThIPCInit

M *

M * TIME Tue Mar 13 03:15:04 2007

M * RELEASE 700

M * COMPONENT Taskhandler

M * VERSION 1

M * RC 17

M * MODULE thxxhead.c

M * LINE 10404

M * COUNTER 1

M *

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 3984) [dpnttool.c 327]

andreas_herzog
Active Contributor
0 Kudos

<b>B dbtbxbuf: Opening D:\usr\sap\PUT\IUP\DVEBMGS01\data\tbxnew failed (No such file or directory).

B dbtbxbuf: Renaming D:\usr\sap\PUT\IUP\DVEBMGS01\data\tbxnew to D:\usr\sap\PUT\IUP\DVEBMGS01\data\tbxstat failed (<i>No such file or directory</i>).

B dbtbxbuf: 0 object entries precreated

C OCI-call failed with -1=OCI_ERROR

C SQL error 942: 'ORA-00942: table or view does not exist'</b>

something is missing....anything specific under \usr\sap\PUT\log???

@ Clas Hortien...well this thread should be under the oracle section, as this is oracle - not sql server - stuff...

GreetZ, AH

Former Member
0 Kudos

HI

i am expecting solution. As it is very urgent.

subramanya

former_member204746
Active Contributor
0 Kudos

<b>M *** ERROR => ThCallHooks: event handler db_init for event CREATE_SHM failed [thxxtool3.c 260]

</b>

you are running out of memory.

check if you have a pagefile set up.

check if your memory is the same as expected. Your OS might not be seeing all installed memory.

check instnace profile parameter PHYS_MEMSIZE, it should be set at 70% of total memory.