Blog Move…

This blog is moving to  Eoneduniya.blogspot.com !!

You can find the same posts over there and then some more.. keep visiting!

Let’s Mount …..

When i was introduced t0 JDE the first and foremost thing that motivated me to go for becoming a CNC expert was that it gave me opportunity to work on UNIX.  Its beyond doubt one of the most formidable platforms for any business and i was a lover since my early college days 🙂

One of the biggest differentiating factors in Unix is its file system handling. People coming from the Windows world find it difficult to understand that the file storage has nothing to do with the  drives they see in the explorer but is actually a mounted space allocated from the memory available.  Its this “mounting” that makes any file system available for storage.

Syntax for Mount command is as follows:

$ mount /dev/hda3  /home

This command will “load” the resource or filesystem in disk drive hda3 into the local /home and then /home will have the memory on hda3 for use.

The best part of Mount is that you can not only mount hard drives connected to your server but use ones that are connected to the network as well.  This is what is meant when some one says “the db client is a NAS mount”!!

Remember that there is no registry to be maintained in Unix and we don’t necessarily have to install an application on a particular machine to use it. It’s all about the Environment Variable and the file locations.  So if you have an executable and the right parameters set for it in the environment variable, the executable knows how to take care of itself. It knows exactly where to look for the files it needs to execute.

Now when anyone says that the “db client is a NAS mount”, you can figure out that the DB client is installed on a different machine in the network and that particular drive is mounted in your Enterprise server and the Environment variables on your JDE Enterprise Server are set such that your  server knows where to look for the DB client files when its trying to connect to the DB. As far as both the servers concerned are in the same domain and can reach each other in quick time, this works seamlessly.

The biggest advantage that this brings is maintenance of the supporting Applications. If the company has several hundreds of databases this architecture helps the DB support group to maintain all the db’s on their own servers and all the app teams can just mount the locations. Patching and maintenance is spared of the fragmentation and the upgrades can be handled much more efficiently.

If you want to check all the mount points that are currently there on your server execute the following command:  more /etc/auto_direct

Have fun!!

Let me know if the post gives you a little bit of an insight on Mount as a UNIX feature. You can always check the man pages for details about any UNIX command. My intention over here was to drive away the initial fear of “what’s this!!” from anyone who is new to the world of Unix & CNC admin.

Topics you will like to read about!

JDE CNC Interview Questions

If you landed up on this page searching for “JDE CNC interview questions”, you are at the right place. Read along to find what they ask, what they intend to ask, what they thought they were asking, what they cannot ask and how you should answer, what you should say in case you can’t answer or should you at all be interviewing for a CNC job and yes, you can thank me later.

The first thing that you should do is to stop searching for the interview questions and believe in the fact that there is no shortcut available to portray yourself as an excellent CNC. It’s not a set of instructions that you should know or a bunch of APIs you should know how to call and refer back to. It’s not the “do one time and forget it was ever coded” type of a job. You just cannot read a few pages and get into a CNC’s pinching shoes. No you can’t!!

CNC is a fire fight. It’s a trek through thorny bushes with a low quality slipper on in half pants on a dark night, may I add, without a torch. No, I am not over exaggerating a wee bit. Tell me if you can wake up in the wee hours of the night after you have had a three quarters of a large pizza and a couple of beer bottles to trouble shoot a failed package build or a hung UBE. Or get interrupted on a date for a question regarding why a UBE runs slow from citrix but fast from office. I don’t see any one nodding in affirmation. Yes, this is just a glimpse of a CNC’s work.

A CNC’s job requires a different attitude and a keen eye. It needs a person who loves technology to the extreme and is not bothered to hear complaints about it day in and day out. In fact, any complaints regarding a system to him, is an opportunity to sell an upgrade, a need to get more people involved. A CNC has to be a social butterfly and should be able to convince anybody and everybody that he is in control even in face of a catastrophe. He should know the system inside out rather than outside inwards.

So if you are asked to tell about package build, don’t act like it’s just a job that the dumb guy does at a developer’s command every now and then in your project. Rather be prepared with what’s an err file and how and when does the sts gets created. Know your F91300 when talking about schedulers and remember to talk about platform independence when trying to explain what’s so special about JDEdwards. If you are among the ones who cannot tell what’s the security type of a JDEdwards setup when the security server is not running, CNC is not for you. You just cannot handle the curve balls a CNC job throws at you if you have a unidirectional knowledge. Rather than looking for specific questions and answers invest your time in learning the system more. Learn to appreciate the technology within. Once you have enough respect for the system, you can go for any interview that a CNC job asks for. You will be ready for it.

Please remember that the views expressed are solely my own and I do not guarantee any success. But yes at least if you read this before posting for the quintessential “JDE CNC interview questions” in any JDEdwards forum, it will surely save you from some blushes.

If any CNC gurus land up here, please feel free to leave me a comment. And help me describe the job we all love (no I am not being sarcastic) with better examples than mine.

To all the buddying CNC’s , good luck !!

Julian Date and its sql conversion..

Time and again we pull up UPMJs from the tables via backend and need to convert the date that gets pulled into Gregorian. Following query when appended to any date column in a jde table will give the Gregorian date for the corresponding Julian:

TO_CHAR(TO_DATE(XXXXXX+1900000,’YYYYDDD’),’MM-DD-YYYY’)

Notes:
– where XXXXXX is the column name to convert.
– this only works on 19th century onwards.

If you are more comfortable with XLS following are the two conversion formulae that will help:

=DATE(IF(0+(LEFT(A1,2))<30,2000,1900)+MID(A1,2,2),1,RIGHT(A1,3)) where A1 is your date in Julian

="1"&RIGHT(YEAR(A1),2)&TEXT(A1-DATE(YEAR(A1),1,0),"000") where A1 is your date in gregorian.

Sp24 Special Dep Server Config..

In line with my last post on SP upgrade on Unix machines, here’s a bit on the special configuration that comes with SP24. Its only needed if you have Vista or Win7 client machines. A few changes have been made to the files being placed under the C: and C:\Windows directories. Since both vista and win 7 restrict programs from accessing these DIR hence JDE has developed symbolic links. Now these Symbolic links are created by the new E1InstallService which needs to be configured on the Dep Server. After building the full package post-SP-upgrade, just before you are about to install a Vista 0r a Win 7 client follow the following steps to enable this service:

1. In the Install.inf on the Dep Server add the following line: OracleE1InstallService={DEP_SERVER_PATH}\E1ServiceInstallation,Setup.exe,/s

2. Create a OracleE1InstallService_silent_setup.inf under E1InstallService folder with the following lines
[SILENT SETUP]
WorkstationDirPath = [your path under c:\Programfiles]
InstallPath=c:\
LaunchPath= {DEP_SERVER_PATH}\OWCinstall\setup.exe
AutoStart = 1

3. Add your user groups under the [E1GlobalGroup] section of the install.inf. Not doing so will result in a dialog box being thrown to alleviate user privs when the user tries to log in a win7 fat client.

4. Now you are all set to install a fat client on a vista or a win 7 client with sp 24.

Firefox Sync… a real make-life-easy feature..

Ohh yess.. this feature of Firefox deserves a real good shout out and is in every way remarkable for people who keep changing PC.. read.. keep getting forced to change PC’s. Its the next level to exporting-importing bookmarks … its Syncing your entire Internet ecosystem with your hand held device such that you can sync it with any other device you need to use Firefox on.

If you use Firefox 3.6.* you need to get the “Firefox Sync” Add-on installed to begin using this feature or if you use Firefox 4 beta its there by default. Sync not only moves the book marks between systems but also the stored passwords as well as the cookies. When you install the add-on it asks you to register and then enter a pass phrase for encrypting your data. Once done, all your bookmarks along with the passwords and the cookies are transferred to the Firefox server in an encrypted format. The beauty of the system is that even if you forget the pass phrase used, it stores the encrypted key on your system and it can be used anytime you are trying to sync another device.

The next step is to install the iPhone app Firefox Home and sign in with the user id created for Sync. Once through, all the data is then available on your phone and ready to be synced with any other PC you need to use Firefox on.

There is currently no app for the Android platform because Mozilla is working on Fennec, the complete firefox explorer for android. So there is Hope 🙂

JDE Service Pack upgrade for Unix Systems

One of the most common type of projects in JDE is SP upgrade of an instance. Deployment Servers being windows machines are the easiest ones to Upgrade. And if you are on XE or Erp8.0 You just need to get the latest ESUs from the Change assistant and get started. For SO upgrade backup the OneWorldClientInstall, System and SystemComp folders , execute the Setup.exe of the SP , check the ptf.log and voila your SP upgrade of the Dep Server is done. The real test of skill lies in the upgrade of a unix ent server and this is what i will enlist step by step in this post.Lets start from the download.

1. Download the correct SP file from Update Center. I recommend using the latest Change Assistant to get these. Select Type-> EnterpriseOne Tools Release, Release -> either 8.9x or Xe as the case may be with you , Platform -> SUN (based upon the Ent server OS you have) and if you know the version same of the SP you are searching for , you can shorten the result by typing a wild card in the Name filed.

2. In the list of SP’s shown select the latest version that it shows. As a rule of thumb I typically wait for *.1.1 and higher versions to appear. For instance if i am about to do an SP24 upgrade I will today be downloading SP24.1.3. If you are adventurous please feel free to download *.0.0 (specially recommended for POC’s , believe me they give a stupendous learning experience).

3. After you have saved your downloaded Par file for the upgrade. Open it with Winzip oor Winrar or any other unzipper and extract the files.

4. The file contains a system.Z file for the ENT server. Now the next step is to send it over to the ENT server. There are multiple ways to achieve this. If you site allows WinSCP install. Just install it connect to your ENT server, create a temp file on the server and drag and drop this system.z from the local machine onto the dir you just created on the ENT server. To avoid unseen data loss try and configure winscp to transmit in binary mode. Now if winscp isnt possible and you dont have hummingbird as well just remember that everysite allows an FTP connection between the deployment server to the ent server. Make sure that ftp services are enabled on the DEP server IIS and sent it to the ENT server using ftp.

5. Now once the file has been sent over to the ENT server login to th eent server using telnet or PUTTY as might be the case for you using the same user id that runs the JDE services on the ENT server. Go into the temp dir that was created in the step above and execute a “chmod 777 system.Z” command.

6. Stop the JDE services.

7. Go to your /dir/jdedwardsoneworld/ver### dir and execute ” mv system system_bak_date” command. This will create a backup of the system dir. Now you are ready to replacs this old system with the new system.

8. Go to the temp dir that has system.Z and execute the command “zcat system.Z | (cd /dir/jdedwardsoneworld/ver###;tar xvf – )”. This will unzip the system.Z and create a system dir for you in the /dir/jdedwardsoneworld/ver### .

9. Go to /dir/jdedwardsoneworld/ver###/system and rename the RunOneWorld.sh and the EndOneWorld.sh by the following command cp RunOneWorld.sh RunOneWorld.sh_original_sp and cp EndOneWorld.sh EndOneWorld.sh_original_sp. This will preserve the original scripts that came with the SP.

9. Go to /dir/jdedwardsoneworld/ver###/system and copy the RunOneWorld.sh and the EndOneWorld.sh from the system_backup_date into this system dir.

10. Execute a chmod 555 for system/lib/* system/libv32/* and Run cat ptf.log, it should show the latest SP name.

11. Now its the time to give up all hope in life, give up on your weekend plans and question your decision of becoming a CNC and after you have done all that execute ./RunOneWorld.sh

12. If you see the One World Startup Complete message do a Joy Dance and execute a portest. If porttest comes out successful, you are ready for a full package build and take it from there.

The above 12 steps will only help if you are not changing the DB. Remember that if the SP upgrade also involves a DB upgrade you will need to do a variety of changes to the JDE.ini , the .profile etc for the change to take effect.

Let me know if this helps any one of you! Also please feel free to point out any points that I might have missed. Happy SP Upgrading 🙂

DataSource Master and WSJ …

One of the most used app in JDE is WSJ or Work with Submitted Jobs or P986116. Irrespective of our roles in JDE we use this app to check for the job statuses that run on the servers. This is one of the trickiest things to configure when you have a split system and are going through a migration which involves changes in the hostnames of the parent servers. Lets have a sneek peek of what goes on behind the scene when WSJ is executed from a client pc.

1. P986116 gets executed and it lists the Data Sources from F98611 (Data Source Master).
2. When you hit on Find on P986116 the app queries the System.F98611 for all the Server type (SVR) data sources which are then returned on the grid.
3. Now once the data source is selected, the system sets the OMSRVR from the F98611 record as the hostname to be serached in SVM.F986110.
4. Status of the jobs are written in the SVM Job Control Status Master (F986110).
5. System then queries SVM.F986110 pulling up records for which the hostname matches the SVR of the DataSource picked.

If a Unix migration is being attempted care must be taken that the hostname of the machine matches the exact case of the OMSRVR field in F98611. In case of systems with muliple Enterprise servers the SYS.F98611 becomes the spine of everything working together. If there are multiple SYS’s then all of them need to be updated such that a user can query status of his job across the environments. Unless the SYS.F98611 are properly updated the DataSource changes will not show up and users will not be able to check job statuses of say, a job running in PD while he is logged in to QA.

Ps:Facing an issue in WSJ and can’t find answers? Check “Wassup..” page to see how you can ask your question.

SQL query to find Schema Sizes and space info….

SELECT T.TABLESPACE_NAME “TABLESPACE NAME”, TO_CHAR(T.TOTALMB/1048576,’99,999,999.99′) “TOTALMB”, TO_CHAR(F.FREEMB/1048575,’99,999,999.99′) “FREEMB”, TO_CHAR((T.TOTALMB-F.FREEMB)/1048576,’99,999,999.99′) “USEDMB”, TO_CHAR((F.FREEMB/T.TOTALMB)*100,’999.9′) “PCTFREE”, TO_CHAR(T.MAXMB/1048576,’99,999,999.99′) “MAXMB”, OBJECTS “TOTAL_OBJECTS” FROM (SELECT TABLESPACE_NAME,SUM(BYTES) TOTALMB,SUM(MAXBYTES) MAXMB FROM DBA_DATA_FILES GROUP BY TABLESPACE_NAME) T, (SELECT TABLESPACE_NAME,SUM(BYTES) FREEMB FROM DBA_FREE_SPACE GROUP BY TABLESPACE_NAME) F, (SELECT TABLESPACE_NAME,COUNT(*) OBJECTS FROM DBA_SEGMENTS GROUP BY TABLESPACE_NAME) S WHERE T.TABLESPACE_NAME=F.TABLESPACE_NAME(+) AND T.TABLESPACE_NAME=S.TABLESPACE_NAME(+);