|
Blogs
A short while back I downloaded and installed the SAP NetWeaver 2004S TestDrive SAP system (running on my Atom! machine at home). This provided me with my own (90-day licensed) basic SAP R/3 system which, according to the documentation, includes both ABAP and Java stacks running on SAP’s own database Max DB. One of the issues that this system is prone to is that the Max DB log gets full (there is no default log cycling). It is quite a well known issue and is even described on the SAP on Linux: Test Drives – Tips and Tricks FAQ . In my case, I encountered this issue after running an SGEN job to generate all the basis components on the system. I could log into the SAP system, but the GUI froze before anything useful came up. Trying to run stopsap, it hung forever at the checking database step (where it runs R3trans -d). Looking in knldiag, I knew I had a full log problem because of this message: 2009-07-17 10:38:54 21 WNG 20001 KernelDB 99 percent of log area occupied, 126717 pages used What one should do in this case is use one of the database management tools (either dbmgui or dbmcli) to clear the log area. However, no matter which “database owner” username and password I tried, I could not gain access to administer the database, and others have experienced the same problem too . In other words, I was trying something like this: dbmcli -u some_username,some_password -d N4S util_execute set log auto overwrite on but was receiving this error message: Error! Connection failed to node (local) for database N4S: ERR_USRFAIL: User authorization failed Luckily that same SDN page described another means by which I could authenticate in order to perform database management. Philip Kisloff mentioned that it is possible to connect using dbmcli -U c instead of dbmcli -u some_username,some_password (For the record, his method works for me when logged on as the n4sadm user, which did have a .XUSER.62 file in ~/ The log was cleared by issuing the following as n4sadm (originally obtained from this forum thread ): dbmcli -U c -d N4S db_admin These steps should be performed on a stopped SAP system. If you can’t stop the SAP system since stopsap will stall with a full log – then the first step of the above will take the database offline and will allow you to run stopsap to completion. BE AWARE that you’re deleting all log information – in my case I wasn’t too worried as I could just reinstall the testdrive system, but you must be warned that this could be risky. To prevent future overflow of the log the following can be used: dbmcli -U c -d N4S util_execute set log auto overwrite on This is also not without risk. As SAP put it on this page
Jonathan Groll has been involved in SAP development since 1999, and has worked at many of South Africa's largest companies that have implemented SAP. Lately, web development usually using ruby (rails) and other open source languages has been his main focus. His interests include reading fantasy novels and he holds a PhD in plant biotechnology. He blogs at http://www.bloggroll.com
| |||||||||||||||||||||||