Monday, January 18, 2021

How To Find OS Version On IBM i

 


To find the OS version of an IBM i (iSeries, AS/400), use the steps below:

  1. Type the following on the command line: 
    DSPSFWRSC
  2. Press 
    [F11]

The above commands will result in a screen similar to the one below:




Wednesday, May 13, 2020

Registering Fat Client DLL for 9.2.4.x


Registering Fat Client DLL for 9.2.4.x

--D:\E920\system\bin32\ Bitness is 32Registering files in
 D:\E920\system\bin32 ...
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\ActivBPMInterface.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\ActivBPMXMLContent.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\activDocumentation.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\ActivDOM.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\activExplorer.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\ActivFindIt.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\activHeader.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\ActivMyActivEra.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\activProperties.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\activWebView.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\BPMLogger.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\CoMailMerge.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\dataitem.ocx
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\DebuggerService.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\design.ocx
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\E1Soap.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\EnvServer.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\EventClass.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\FDAAxHostMod.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\Jdboledb.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\JDEBPMSoap.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\JDEBPMSockets.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\jdectocx.ocx
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\JDEMMC.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\Jdeocx.ocx
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\Jdeowoda.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\jdesplash.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\JDETLBrowseMod.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\jdeuser.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\OneWorldInterfaceTx.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\RdaReportView.ocx
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\TextCtrlMod.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\TLBrowseCtrlMod.dll
 D:\E920\system\bin32>C:\Windows\SysWOW64\regsvr32.exe /s .\WinUbeDbgService.dll

Friday, February 28, 2020

Fat Client JDE Folder permission missing


JDE Folder permission missing
In this example e1dbuser is a database user

"C:\Windows\SysWOW64\icacls.exe" "D:\E920" /grant "e1dbuser":F /t /c
"C:\Windows\SysWOW64\icacls.exe" "D:\Oracle" /grant "e1dbuser":F /t /c
"C:\Windows\SysWOW64\icacls.exe" "D:\Oracle32" /grant "e1dbuser":F /t /c

Tuesday, September 3, 2019

JDE Oracle ASM Tablespace

For ASM Database to create a Tablespace under Diskgroup use following command -

create tablespace dv920t datafile '+DATA' size 3072M autoextend on next 300M maxsize 5120M logging extent management local segment space management auto;
create tablespace dv920i datafile '+DATA' size 1536M autoextend on next 150M maxsize 3072M logging extent management local segment space management auto;
create tablespace testctli datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;
create tablespace testctlt datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;
create BIGFILE tablespace testdtai datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;
create BIGFILE tablespace testdtat datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;


create tablespace pd920t datafile '+DATA' size 3072M autoextend on next 300M maxsize 5120M logging extent management local segment space management auto;
create tablespace pd920i datafile '+DATA' size 1536M autoextend on next 150M maxsize 3072M logging extent management local segment space management auto;
create tablespace prodctli datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;
create tablespace prodctlt datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;
create BIGFILE tablespace proddtai datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;
create BIGFILE tablespace proddtat datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;

create tablespace py920t datafile '+DATA' size 3072M autoextend on next 300M maxsize 5120M logging extent management local segment space management auto;
create tablespace py920i datafile '+DATA' size 1536M autoextend on next 150M maxsize 3072M logging extent management local segment space management auto;
create tablespace crpctli datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;
create tablespace crpctlt datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;
create BIGFILE tablespace crpdtai datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;
create BIGFILE tablespace crpdtat datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;

create tablespace ps920t datafile '+DATA' size 3072M autoextend on next 300M maxsize 5120M logging extent management local segment space management auto;
create tablespace ps920i datafile '+DATA' size 1536M autoextend on next 150M maxsize 3072M logging extent management local segment space management auto;
create tablespace ps920ctli datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;
create tablespace ps920ctlt datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;
create BIGFILE tablespace ps920dtai datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;
create BIGFILE tablespace ps920dtat datafile '+DATA' size 1000M autoextend on next 100M maxsize 2000M logging extent management local segment space management auto;


create tablespace sy920t datafile '+DATA' size 250M autoextend on next 25M maxsize 1000M logging extent management local segment space management auto;
create tablespace sy920i datafile '+DATA' size 100M autoextend on next 10M maxsize 1000M logging extent management local segment space management auto;
create tablespace svm920t datafile '+DATA' size 10M autoextend on next 1M maxsize 1000M logging extent management local segment space management auto;
create tablespace svm920i datafile '+DATA' size 10M autoextend on next 1M maxsize 1000M logging extent management local segment space management auto;
create tablespace ol920t datafile '+DATA' size 250M autoextend on next 5M maxsize 1000M logging extent management local  segment space management auto;
create tablespace ol920i datafile '+DATA' size 100M autoextend on next 5M maxsize 1000M logging extent management local  segment space management auto;
create tablespace dd920t datafile '+DATA' size 350M autoextend on next 10M maxsize 1000M logging extent management local  segment space management auto;
create tablespace dd920i datafile '+DATA' size 125M autoextend on next 5M maxsize 1000M logging extent management local segment space management auto;


When Installing JDE Set ORCL_set.sh as following value

Please set only ASM Disk Group to INDEX_PATH and TABLE_PATH.

export INDEX_PATH=DATA
export TABLE_PATH=DATA

Wednesday, August 21, 2019

Planner Backup

CREATE USER "JDEBACKUP" IDENTIFIED BY JD3BACKUP DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP" ACCOUNT UNLOCK ;
GRANT EXP_FULL_DATABASE TO JDEBACKUP;
GRANT IMP_FULL_DATABASE TO JDEBACKUP;
ALTER USER "JDEBACKUP" QUOTA UNLIMITED ON USERS;
CREATE OR REPLACE DIRECTORY BACKUP AS 'E:\Planner_DATABASE_BACKUP';
GRANT READ, WRITE ON DIRECTORY BACKUP TO JDEBACKUP;

cd\
E:
cd E1lOCAL_DATABASE_BACKUP
del *.* /q

cd\
E:
cd Oracle\E1Local\BIN

expdp JDEBACKUP/JD3BACKUP@E1Local DIRECTORY=BACKUP dumpfile=JDECTL920.dmp logfile=Exp_JDECTL920.log compression=none schemas=JDECTL920

expdp JDEBACKUP/JD3BACKUP@E1Local DIRECTORY=BACKUP dumpfile=JDEDATA920.dmp logfile=Exp_JDEDATA920.log compression=none schemas=JDEDATA920

expdp JDEBACKUP/JD3BACKUP@E1Local DIRECTORY=BACKUP dumpfile=JDEDD920.dmp logfile=Exp_JDEDD920.log compression=none schemas=JDEDD920

expdp JDEBACKUP/JD3BACKUP@E1Local DIRECTORY=BACKUP dumpfile=JDEOL920.dmp logfile=Exp_JDEOL920.log compression=none schemas=JDEOL920

expdp JDEBACKUP/JD3BACKUP@E1Local DIRECTORY=BACKUP dumpfile=JDEPLAN920.dmp logfile=Exp_JDEPLAN920.log compression=none schemas=JDEPLAN920

expdp JDEBACKUP/JD3BACKUP@E1Local DIRECTORY=BACKUP dumpfile=JDESY920.dmp logfile=Exp_JDESY920.log compression=none schemas=JDESY920

expdp JDEBACKUP/JD3BACKUP@E1Local DIRECTORY=BACKUP dumpfile=JDEVL920.dmp logfile=Exp_JDEVL920.log compression=none schemas=JDEVL920

expdp JDEBACKUP/JD3BACKUP@E1Local DIRECTORY=BACKUP dumpfile=SPEC_E920.dmp logfile=Exp_SPEC_E920.log compression=none schemas=SPEC_E920


Exit

Wednesday, August 7, 2019

Database Role JDEADMIN and JDEUSER


Starting with Application JDE 9.2 there comes 2 roles for Database JDEADMIN  and JDEUSER.

During upgrade these roles are not added to database which are migrated from older release.

Run these command


User JDE_DEVELOPMENT

Create role JDEADMIN
Create role JDEUSER
ALTER ROLE JDEADMIN ADD MEMBER JDE

exec sp_MSForEachTable 'GRANT ALTER,REFERENCES, SELECT, INSERT, DELETE, UPDATE ON ? TO [JDEADMIN]'
go

exec sp_MSForEachTable 'GRANT REFERENCES, SELECT, INSERT, DELETE, UPDATE ON ? TO [JDEUSER]'
go

Wednesday, February 13, 2019

Oracle Weblogic 12.2.1.3 Critical Patch Update (January 2019 OCPU)




Due to the increase in attack on Weblogic, Oracle is releasing Critical Patch Update every Quarter.


Below are the steps to Install Weblogic  Weblogic 12.2.1.3 January CPU patch set.  Remember if you already have the previous patch there are conflict sometimes, so you might have to uninstall the previous patchset before applying the latest one.

The Oracle Product Patch info is located at  https://www.oracle.com/technetwork/topics/security/alerts-086861.html

Download following Patch from  support.oracle.com


6880880 - Optach 13.9.4 Patch
29137924 - OUI Interim Patch
28710939 - Weblogic 12.2.1.3 Jan 2019 OCPU


  1. Stop Weblogic Admin Server and All Managed Instance
  2. Stop NodeManager Service
  3. Stop Server Manager Agent
  4. Make sure Task Manager no java process running
  5. Unzip in a folder D:\Software\92\HTML\PatchSet using 7-zip (if it’s a linux system use command unzip )
  6. Backup D:\Oracle\Middleware using 7-zip
  7. open CMD  - Run As an administrator
  8. set PATH=D:\OracleWLS\Middleware\Oracle_Home\OPatch;%PATH%
  9. set PATH=D:\OracleWLS\Java\bin;%PATHH%
  10. D:
  11. cd D:\Software\92\HTML\PatchSet\6880880  (This is a directory in Step 5 to unzip folder)
  12. java -jar opatch_generic.jar -J-Doracle.installer.oh_admin_acl=true -silent oracle_home=D:\OracleWLS\Middleware\Oracle_Home
  13. cd ..
  14. cd 29137924
  15. opatch apply -oop
  16. cd ..
  17. cd 28710939
  18. opatch apply -oop

Wednesday, December 5, 2018

Customizing the WebLogic JVM heap size







Customizing the WebLogic JVM heap size

You can change the default JVM heap size to fit the needs of your deployment.
The default JVM heap size for WebLogic is 3GB. The size is set in the setDomainEnv.sh file for Linux or setDomainEnv.cmd for Windows, which is in the $DOMAIN_HOME/bin directory. The heap size is set with the -Xmx option.
To change the WebLogic JVM heap size:
  1. Open the setDomainEnv file in a text editor.
  2. Search for this comment line:
    For Linux:
    # IF USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS values
    For Windows:
    @REM IF USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS values
  3. Immediately after the comment line, add one of these lines:
    For Linux:
    export USER_MEM_ARGS="-Xms2048m -Xmx2048m ${MEM_DEV_ARGS} ${MEM_MAX_PERM_SIZE}"
    For Windows:
    set USER_MEM_ARGS=-Xms2048m -Xmx2048m %MEM_DEV_ARGS% %MEM_MAX_PERM_SIZE%
  4. Save the file.
  5. Re-start WebLogic Server.

Monday, September 17, 2018

SQL Command


CREATE TABLE #TEMP(TBLNAME VARCHAR(200))

SELECT 'IF (SELECT COUNT(*) FROM '+TABLE_SCHEMA+'.'+TABLE_NAME +')=0 INSERT INTO #TEMP  SELECT '''+TABLE_SCHEMA+'.'+TABLE_NAME +''' '
from INFORMATION_SCHEMA.TABLES order by TABLE_SCHEMA,TABLE_NAME

SELECT 'DROP TABLE '+TABLENAME FROM #TEMP

Wednesday, August 8, 2018

Oracle 12c Expired User


-- How to reset the Expired user to Open with same password

select 'alter user ' || su.name || ' identified by values'    || ' ''' || spare4 || ';'    || su.password || ''';'
from sys.user$ su
join dba_users du on ACCOUNT_STATUS like 'EXPIRED%' and su.name = du.username;


-- Set Oracle Profile as Password Unlimited and Failed Login Unlimited

ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED PASSWORD_LIFE_TIME UNLIMITED;

Tuesday, January 16, 2018

Manually Import E1Local Database on Fat Client

Manually Import E1Local Database on Fat Client

Step 1 - Decrypt the password
C:\e920\system\bin32
ReconfigureDB.exe to set decrypt password

Step 2 - Import JDELOCAL_PY920

CREATE USER JDELOCAL_PY920 IDENTIFIED BY JDELOCAL_PY920;

GRANT CREATE SESSION, ALTER SESSION, CREATE TABLE, CREATE VIEW TO JDELOCAL_PY920;

CREATE OR REPLACE DIRECTORY PKGDIR AS 'C:\E920_1\PY920\data\' ;

impdp TRANSPORT_DATAFILES='C:\E920_1\PY920\data\jdelocal_py920.dbf' DIRECTORY=PKGDIR DUMPFILE='jdelocal_py920.dmp' REMAP_TABLESPACE=JDELOCAL:JDELOCAL_PY920 REMAP_SCHEMA=JDELOCAL:JDELOCAL_PY920 LOGFILE='impjdelocal_py920.log'

ALTER TABLESPACE JDELOCAL_PY920 READ WRITE ;

ALTER USER JDELOCAL_PY920 DEFAULT TABLESPACE JDELOCAL_PY920 QUOTA UNLIMITED ON JDELOCAL_PY920;

Step 3- Import SPEC_PY920


CREATE USER SPEC_PY920FB IDENTIFIED BY SPEC_PY920FB;

GRANT CREATE SESSION, ALTER SESSION, CREATE TABLE, CREATE VIEW TO SPEC_PY920FB ;

CREATE OR REPLACE DIRECTORY PKGDIR AS 'C:\E920_1\PY920\spec\' ;

impdp TRANSPORT_DATAFILES='C:\E920_1\PY920\spec\spec_py920fb.dbf' DIRECTORY=PKGDIR DUMPFILE='spec_py920fb.dmp' REMAP_TABLESPACE=SPEC__PY920FB:SPEC_PY920FB REMAP_SCHEMA=SPEC__PY920FB:SPEC_PY920FB LOGFILE='impspec_py920fb.log'

ALTER TABLESPACE SPEC_PY920FB READ WRITE ;

ALTER USER SPEC_PY920FB DEFAULT TABLESPACE SPEC_PY920FB QUOTA UNLIMITED ON SPEC_PY920FB ;

Step 4 - Encrypt the password
C:\e920\system\bin32
ReconfigureDB.exe to set encrypt password

Tuesday, August 29, 2017

Security -> Processing Option Type '5'

Field Mapping with F00950



Change –  FSCHNG
Prompt for Values -  FSVWYN
Prompt for Version – FSATN2
Prompt for Data Selection – FSIOK AND FSIUPT
Modify Data Selection - FSATN1
Full Access Data Selection - FSICPY

Wednesday, January 25, 2017

JDE Last time user logged in successful


SQL -




select t1.SHUSER User_Name, MAX(t1.SHUPMJ) LastLogin_Date from SY910.F9312 t1, SY910.F98OWSEC t2 where t1.SHEVTYP = '01' and t1.SHEVSTAT = '01' and t2.SCEUSER='01' and t1.SHUSER=t2.SCUSER
GROUP BY t1.SHUSER