Create A Windows Service / Delete A Windows Service (sc create / sc delete)
Filed under: EnterpriseOne - General, Microsoft, RegEdit, Windows Server, enterpriseone
Today, I came across a Windows Service on a server that I inherited. By the name of the service I could tell that it was built in-house and I even found enough information to determine who the developed it. However, since it was not in the Add / Remove Programs list of the Control Panel, I wasn’t sure how to remove it. So, I found the following on Geeks With Blogs – Shahed’s Blog:
Recently, I was trying to delete a windows service. Normally it should not be necessary to manually delete a service. Uninstalling an application should remove its associated service (if any).
However, I installed some beta products and a service created by one of the applications was not removed automatically. Its very easy to remove a service from registry if you know the right path. Here is how I did that:
1. Run Regedit or Regedt32
2. Find the registry entry "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services"
3. Look for the service there and delete it. You can look at the keys to know what files the service was using and delete them as well (if necessary).
alternatively, you can also use command prompt and delete a service using following command:
sc delete < SERVICE name>
or to create, simply type
sc create <SERVICE name>Update:
If you have space in the file path you need to use quotation marks ("). For example:
sc create "MySQL" binpath= "C:\Archivos de programa\MySQL\MySQL Server 5.1\bin\mysqld.exe"
I used the “sc delete” method to remove the service.
Thanks, Shahed!
Tags: enterpriseone, EnterpriseOne - General, Microsoft, RegEdit, Windows ServerBackup All SQL Server Databases
I came across this script to backup all SQL Server databases:
DECLARE @name VARCHAR(50) -- database name DECLARE @path VARCHAR(256) -- path for backup files DECLARE @fileName VARCHAR(256) -- filename for backup DECLARE @fileDate VARCHAR(20) -- used for file name SET @path = 'E:\Backups\Dynamics' SELECT @fileDate = CONVERT(VARCHAR(20),GETDATE(),112) DECLARE db_cursor CURSOR FOR SELECT name FROM master.dbo.sysdatabases WHERE name NOT IN ('master','model','msdb','tempdb') OPEN db_cursor FETCH NEXT FROM db_cursor INTO @name WHILE @@FETCH_STATUS = 0 BEGIN SET @fileName = @path + @name + '_' + @fileDate + '.BAK' BACKUP DATABASE @name TO DISK = @fileName FETCH NEXT FROM db_cursor INTO @name END CLOSE db_cursor DEALLOCATE db_cursor
SMTP Test
I ran across this while working on a different project but thought that it might be handy.
SMTP relay behavior in Windows 2000, Windows XP, and Exchange Server
The basic test:
Start a command prompt.
- Type telnet ServerName 25, where ServerName is the SMTP server name or IP address and 25 is the port number, and then press ENTER.
- Type EHLO, and then press [ENTER].
- At the Telnet session prompt, type RSET. The telnet session responds with text that is similar to the following:
250 2.0.0 Resetting -
Type MAIL FROM:UserName@DomainName.tld, where UserName is the name of the user, DomainName is the name of the domain, and tld is the top level domain such as .com or .net.
The telnet session responds with text that is similar to the following:250 2.1.0 UserName@DomainName.tld….Sender OK
-
Type RCPT TO:RecipientName@DomainName.tld, where RecipientName is the e-mail address of the recipient.
The telnet session responds with text that is similar to the following:550 5.7.1 Unable to relay for RecipientName@ DomainName.tld
Processing, Processing, Processing!
Filed under: E1Tips, EnterpriseOne - General, Internet Explorer, Javascript, Microsoft, RegEdit, XML, enterpriseone
We had a user submit an issue last week that was a little baffling.
User: “When I try to access an application in EnterpriseOne all I get is the processing image.”
Us: “Does the ‘processing’ ever go away?”
User: “No. It just sits there.”
Us: “um, ok. Let us do some checking and we’ll get back to you.”
Our PC support staff was able to remote into the PC and found that there was an “element not found” Javascript error.
The error was fixed by modifying the following registry entry:
HKEY_CLASSES_ROOT\TypeLib\{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1.1\0\win32
Replace the current value on the default setting from:
"C:WINDOWS\system32\shdocvw.dll"
to
"C:WINDOWS\system32\ieframe.dll"
We didn’t have to reboot for this setting to take effect, but you may have to.
Tags: e1, E1Tips, enterpriseone, enterpriseone, EnterpriseOne - General, Internet Explorer, Javascript, Microsoft, RegEdit, xe, XMLThe EnterpriseOne Session Timeout Two-Step…Ok, Three Step
Filed under: EnterpriseOne - Install/Upgrade, EnterpriseOne - JAS (Java Application Server), Microsoft, Oracle Server Manager, enterpriseone, oracle
We have several work areas that require a longer inactive timeout setting than the default 20 minutes (Payroll Time-entry, Fixed Asset Accounting, etc.).
Unfortunately, EnterpriseOnes architecture does not make the process of configuring a session timeout very easy. There are three separate separate settings that need to configured correctly. Depending on your architecture that could mean three separate machines using three separate platforms. Whatever your architecture looks like there are at least three.
- The Java Application Server (JAS). No matter what flavor of JAS you are running (IBM Websphere, Oracle Application Server, BEA, etc.) you will need to configure the applications user session timeout setting. The screenshots for IBM Websphere 6.0.2.13 are below:
- The EnterpriseOne HTML Server. This setting is in the JAS.INI under the [CACHE] stanza. The setting is in milliseconds (3600000 = 1 hour). If you are running the Oracle Server Manager for EnterpriseOne, you can find it in the Cache Configuration section under the Web Runtime configuration.
- The HTTP server. The instructions for both Microsoft IIS and IBM HTTP Server follows:
- Microsoft IIS:
- Display the properties of the website that is configured to host EnterpriseOne
- On the Website tab, modify the Connection Timeout setting. Please note that this value is in seconds, not milliseconds.
- IBM HTTP Server:
- Edit the Timeout setting in the HTTPD.CONF file. Please note that this value is in seconds, not milliseconds.
- Microsoft IIS:
NOTE: To avoid record locking Oracle specifies to configure the system so that the JAS server will timeout the users session. To do that both the EnterpriseOne HTML Server and the HTTP server need to be set to great times than the JAS server. For example:
- To configure a timeout value of 30 minutes:
- JAS Server: 30
- EnterpriseOne HTML Server: 3600000
- HTTP Server: 3600
EnterpriseOne 8.97 Install Host Table Hic-Up
Filed under: EnterpriseOne - Install/Upgrade, IBM i/System i/iSeries/AS400, Microsoft
While installing EnterpriseOne 8.97 on one of our instances, we ran across an issue that was pretty puzzling to both us and Oracle’s Global Support Services group.
We had successfully installed both the Server Manager Console and the Enterprise Server (System i, iSeries, AS/400) Management Agent. When everything is working correctly, the Enterprise Server Management Agent is supposed to ping the Server Manager Console and magically show up in the Server Manager Console Dashboard.
Well, as you have probably guessed, our Enterprise Server Management Agent did not "magically" appear. After sending Oracle several sets of logs and screen shots, I noticed something in the Server Manager Console logs:
Oct 27, 2008 12:33:23 PM com.jdedwards.mgmt.agent.Server$ClientConnection register FINER: Received heartbeat from the remote management agent on DOMAIN.COM listening on port -1 of type 2 in managed home /JDEdwards/JDE_HOME
You’ll notice from the log excerpt above that the ping from the Enterprise Server Agent was successful, but the name of the device from which it is running is identified as "DOMAIN.COM". Obviously, I changed the name to protect the guilty, but I thought it was really strange to not have a MachineName specified.
So, we inspected the host table of the Enterprise Server using CFGTCP and found that there really was an entry with just "DOMAIN.COM". However, there were also 2 other entries for its IP address:
255.255.255.111 MACHINENAME DOMAIN.COM MACHINENAME.DOMAIN.COM
We weren’t really sure what we might screw-up if we removed the "DOMAIN.COM" entry so we just moved the "MACHINENAME.DOMAIN.COM" entry up in the list.
255.255.255.111 MACHINENAME MACHINENAME.DOMAIN.COM DOMAIN.COM
Before we even had a chance to logout of the Server Manager Console, the Enterprise Server magically appeared on the dashboard.
What should you learn from this? Clean up your host table!
Have you tried to install Oracle Server Manager? If so, how did it go? If not, what are you waiting for?
Tricked-Out Services Console
Filed under: EnterpriseOne - General, Microsoft
Jeff Stevenson has a great little tutorial on making the Services management console a lot more tolerable.
Quick breakdown:
- right-click C:\Windows\system32\services.msc
- select ‘Author’
- make changes as desired
- close
Thanks for the great tip Jeff!
By the way, since Jeff is a CNC, I added a link to his site at the right.
Tags: cnc, enterpriseone, EnterpriseOne - General, MicrosoftEasy Tools Release Version Switch
Filed under: EnterpriseOne - General, Microsoft
While trying to do testing of the 8.97 Tools Release, we end up with having both the 8.96 Tools Release and the 8.97 Tools Release on our Deployment Server. This is required so that we can continue to support package builds of the 8.96 environments.
When switching from one to the other, I usually just rename the 3 important directories (OneWorld Client Install, SYSTEM & SYSTEMCOMP) by appending the Tools Release version to the end (i.e. SYSTEM -> SYSTEM_897). This can get a little tedious.
So, I through together a quick BAT file to take care of it for me.
@ECHO OFF IF EXIST "E:\PeopleSoft\E811\OneWorld Client Install_897\Install.inf" GOTO :Activate897 IF NOT EXIST "E:\PeopleSoft\E811\OneWorld Client Install_897\Install.inf" GOTO :Activate896 :Activate896 ECHO Activating 896 PAUSE MOVE "E:\PeopleSoft\E811\OneWorld Client Install" "E:\PeopleSoft\E811\OneWorld Client Install_897" MOVE "E:\PeopleSoft\E811\OneWorld Client Install_896" "E:\PeopleSoft\E811\OneWorld Client Install" MOVE "E:\PeopleSoft\E811\SYSTEM" "E:\PeopleSoft\E811\SYSTEM_897" MOVE "E:\PeopleSoft\E811\SYSTEM_896" "E:\PeopleSoft\E811\SYSTEM" MOVE "E:\PeopleSoft\E811\SYSTEMCOMP" "E:\PeopleSoft\E811\SYSTEMCOMP_897" MOVE "E:\PeopleSoft\E811\SYSTEMCOMP_896" "E:\PeopleSoft\E811\SYSTEMCOMP" SET WHATDONE=Activated 896 GOTO :END :Activate897 ECHO Activating 897 PAUSE MOVE "E:\PeopleSoft\E811\OneWorld Client Install" "E:\PeopleSoft\E811\OneWorld Client Install_896" MOVE "E:\PeopleSoft\E811\OneWorld Client Install_897" "E:\PeopleSoft\E811\OneWorld Client Install" MOVE "E:\PeopleSoft\E811\SYSTEM" "E:\PeopleSoft\E811\SYSTEM_896" MOVE "E:\PeopleSoft\E811\SYSTEM_897" "E:\PeopleSoft\E811\SYSTEM" MOVE "E:\PeopleSoft\E811\SYSTEMCOMP" "E:\PeopleSoft\E811\SYSTEMCOMP_896" MOVE "E:\PeopleSoft\E811\SYSTEMCOMP_897" "E:\PeopleSoft\E811\SYSTEMCOMP" SET WHATDONE=Activated 897 GOTO :END :END ECHO %WHATDONE% pause
Yes, I realize that I will need to do some replacing for the next Tools Release.
UPDATE: Don’t forget about changing the JDE.INI file to set the correct ports:
[JDENET] serviceNameListen= serviceNameConnect=
I added lines similar to the following:
REN "C:\Windows\JDE.INI" "C:\Windows\JDE_897.INI" REN "C:\Windows\JDE_896.INI" "C:\Windows\JDE.INI"Tags: EnterpriseOne - General, jde, Microsoft, oneworld, peoplesoft, Tools Release, version, world
Microsoft Eases Virtual Licensing Woes
via SearchWinIT.com
As of September 1, Microsoft will allow customers to move 41 server applications between servers and server farms without having to reassign licenses.
This move will make it much easier to get to the truely "dynamic data center"


