Thursday, 28 October 2010

weblogic admin password for OVM templates

We’ve been doing a lot of work with the OVM templates and JDE and BPEL and BSSV and weblogic and about to start webcentre.  Wow, there is a lot of new toys to start playing with here.  We could not gain access to the weblogic console to check on some BSSV settings on the weblogic server for an 11G install.

Tried all of the defaults and the found:  http://dirknachbar.blogspot.com/2009/08/security-hole-in-fusion-middleware-11g.html

which shows

ps -ef |grep -i weblogic | grep -i password

and revealed that the password is "ovsadminE1"

Phew, that was nice to get.  Now we are in the VERY cool weblogic console.

image

IFSIO and JDE BSFN compilation problems

So you want to use native IFS file IO functions in B34A1010, but of course you are on XE or ERP8…  Well, you’ve looked at the metalink3 and worked out that it’s probably not looking too flash.

Well, I’m about to make your stop perspiring and potentially start air punching, cause I’ve done all of the hard work for you.

build an update package on the enterprise server (AS/400) with the one BSFN as normal.

My update package was called DVIFSIO (to confuse you)

My parent package is DVFSERVER

Replace your module file with the following command, this is compiled with the SYSIFCOPT(*IFSIO) command – ready for native IFS IO

CRTCMOD MODULE(DVIFSIO/B34A1010) SRCFILE(DVIFSIO/CMFG) OPTION(*EXPMAC *NOSHOWINC) OPTIMIZE(40) DEFINE(JDENV_AS400MUTEX PRODUCTION_VERSION JDBD2400 AS400V5R4) SYSIFCOPT(*IFSIO) STGMDL(*SNGLVL)

Then bang it into the CMFG SRVPGM with the following gem:

UPDSRVPGM SRVPGM(DVIFSIO/CMFG) MODULE(DVIFSIO/B34A1010) EXPORT(*ALL) RPLLIB(*ONLY) BNDSRVPGM(B7334SYS/JDELIB B7334SYS/JDEKRNL B7334SYS/OWVER) OPTION(*DUPPROC *DUPVAR *UNRSLVREF)

That’s it you say… Yep…  Well nearly.  This is going to update the SRVPGM in the update package dir.  You will need to copy that into the runtime dir (DV7333) for it to get picked up and used.

I’m certainly not advocating you use this without careful testing in non prod environments.  This is only one function.

This is only a work around, you can appreciate that you’d have to do this again after each full build.  The nice thing is that you can just do the UPDSRVPGM command (and you could do it to the live copy DV7333) after the build and deploy.

Thursday, 14 October 2010

Usage tracking in jde

saw used to tell you the maximum connected user count for JDE and I think (correct me if I’m wrong) that you could also graph this for web servers.  This is web saw I’m talking about.

Is SM a step backwards in this area.  I cannot find stats on maximum connected users from SM, so I need to set up alerts to track the connected users information… 

The HISTORY=1 setting in the [SECURITY] section of the JDE.INI on the security server might be able to help.  It’ll show the login (01) and logout (02) records for users and record them in F9312.  This can be accessed from a form exit from P98OWSEC.

One of the guys here has written some scripts that download the information from SAW and graphs it – that is pretty cool!

Monday, 4 October 2010

running oracle install on linux (OEL)

I love it when things turn out to be much easier than I anticipate.

Graphical interface with linux is not really my thing, I like some old skool putty action myself.

But, when faced with a command line installation of 500 options or GUI “oracle installer”, I’m going to go GUI (gooey) every time.

when installing oracle products, I su to oracle in putty session.

vncserver at the command line

 

You will require a password to access your desktops.

Password:
Verify:
xauth:  creating new authority file /home/oracle/.Xauthority

New 'E1WEB:1 (oracle)' desktop is E1WEB:1

Creating default startup script /home/oracle/.vnc/xstartup
Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/E1WEB:1.log

You’ll get the following on the screen.  Just choose a password and then use the VNC client on your desktop (I use realVNC) to access the server.

Remember that you are given a unique identifier at the end (E1WEB:1) The :1 is very important when connecting.

image

BTW, windows 7 “snipping tool” IS totally awesome.  Great for multiple desktops and virtuals etc.

Wednesday, 29 September 2010

When writing external programs that hook into JDE DLLs remember…

In Microsoft visual studio 2005 you need to go into the project options to change the “Struct Member Alignment” to be 1 byte when using the fat client.  They use a more liberal 4 bytes when compiling the server code.  This puts a /Zp1 or /Zp4 in the linking command line.

image

If you don’t do this, when you look at your variables in the viewer, they’ll be missing some chars at the front.

Configure Windows Server to Be an Application Server

Windows memory manager divides up system memory into three different pools described in Table 7-1.

Table 7-1 Windows Server Memory Shares

Pool

Percent of Total Memory

Kernel and other system services

9%

File Cache

41%

Paged Memory

50%

Windows Server memory manager tries to balance each application's usage of memory by dynamically paging memory between physical RAM and a virtual memory paging file. If an application is particularly memory-intensive (like Oracle Database) or if a large number of applications are running concurrently, then combined memory requirements of the applications may exceed physical memory capacity.

The large proportion of memory reserved for file caching (41%) can be quite beneficial to file and print servers. But it may not be advantageous to application servers that often run memory-intensive network applications. A Windows Server file cache is particularly unnecessary for Oracle Database, which performs its own caching through System Global Area.

You can reset the Windows Server memory model from the default file and print server, with its large file cache, to a network applications model, with a reduced file cache and more physical memory available for Oracle Database.

See Also:

Your operating system documentation for instructions

This is harder in a cluster, as you cannot access these programs from the control panel.

So, if you have 14GB of memory, and the system is reserving 41% for file cache, this means that there is 5.74 reserved.  Your application can only use 8.26, 8.26 is reduced by 2 for the OS – and this might tell you why you are constantly paging!

Tuesday, 7 September 2010

call stack jdenet kernels

If you are getting kernels failing (turning to Zombie), there are two places that you need to look:

1.  Look in the kernel logs themselves for any relevant messages

2.  Look in the jdenet logs, this will contain the "call stack" for the failure of the logic kernel.  This occurs on ALL platforms.

CTRAN.dll/N4900080/RouteShipment

CTRAN.dll/N4900200/LoadRoutingOptions

CTRAN.dll/B4900400/F4950SelectRoutingEntries

CTRAN.dll/N4900420/VerifyRoute

CTRAN.dll/N4901350/CalculateDates

CTRAN.dll/B4900890/CalculateWorkday

CMFGBASE.dll/UNKNOWN/GetWorkDayCalendar

CCORE.dll/UNKNOWN/GetDataDictionaryDefinition

A call stack is read top down, so the faulting program in the above call stack is "CCORE.dll/UNKNOWN/GetDataDictionaryDefinition". 

From the logs, all kernels were failing with the same call stack, so it would seem from the name of the function that there is a problem with the PD812\dddict or ddtext files - or maybe glbltbl.

The above tells us that NER N4900080 function RouteShipment was calling NER N4900200 function LoadRoutingOptions and so on!  This is a deep callstack.

Note that the JDE logs had similar messages about DD spec problems.