Monday, December 3, 2018

Generate single index on table 

Transaction tables such as F0911, F4111 etc hold a huge amount of data probably a third of petabyte. Generating indexes on such tables (through JDE) are a huge task and can hold up the database for a long period of time, probably crash it. There are multiple ways to handle this issue
Method 1 (most common and safest)
Generate the index in the database (via SQL) with the same column listing and properties as required.
You know why this is the most common and safest way to do? If there are users logged on to the system, or processes running which use the table – all your indexes get locked up. Thus JDE cannot generate the index; only SQL can.

Method 2 (Custom and 2nd best)
Use the API – 
JDB_CreateSingleIndex(hUser, szTableName, szObjectOwnerID, szSignonPassword, szDatabasePath, idIndexId, &nErrorNum)
With this API you can generate the particular index. Only catch is that, if you are modifying an index, you will have to drop the index first and then generate.
These API’s are encapsulated within the standard JDE BSFN – B9800200 (JDB Data Management Source File). Now I have termed this as 2nd best, since it’s in our control on what we are asking JDE to do. You will need to log off

Monday, May 9, 2016

Creating a Custom Pathcode and Environment:

Introduction:  This document assumes you have a strong understanding of Oneworld and CNC concepts.  The Environment and Pathcode created are not suitable for upgrade.


Introduction:

This document details the steps required to create a custom Pathcode and Environment.  These steps will create the OCM, Data sources, and physical files needed to run OneWorld.

1. Create Data base user and files.  Listed below are the methods for SQL and ORACLE:
For SQL login as system administrator.  Open an sQL Query analyzer, past in these scripts being sure to modify drive and file names to match your install.


Use master

Go

CREATE DATABASE JDE_CUSTOM  (*JDE_CUSTOM represents name of the custom file)

ON

(NAME = ‘JDE_CUSTOM_Data’, FILENAME =’z:\mssql7data\JDE_CUSTOMdata.mdf’,SIZE=2000,MAXSIZE=2500MB, FILEGROWTH=5MB)

LOGON

(NAME=’JDE_CUSTOM_log’,FILENAME=’z:\mssql7data\JDE_CUSTOMlog.ldf’,SIZE=200, MAXSIZE=250MB, FILEGROWTH=5 MB)

GO

Sp_dboption JDE_CUSTOM,’select into/bulkcopy’,TRUE

Go

CREATE DATABASE JDE_CUS

ON

(NAME=’JDE_CUS_Datta’,FILENAME=’z:\mssql7data\jde_CUSdatta.mdf,SIZE=500, MAXSIZE=600MB, FILEGROWTH=5MB)

LOG ON

(NAME=’JDE_CUS_log’,FILENAME=’z:\mssql7data\jde_CUSlog.ldf’,SIZE=50, MAXSIZE=60MB, FILEGROWTH=5MB)

GO

Sp_dboption JDE_CUS,’select into/bulkcopy’,TRUE

Go

Use JDE_CUS

Grant CREATE TABLE to public

Go

Use jdeb733

Go

Grant CREATE TABLE to public

Go

Sp_addlogin ‘CUSTOM’,’CUSTOM’,JDEB733

Go

Use JDE_Custom

Go

Sp_adduser ‘JDE’,’JDE’,public

Go

Sp_addlogin ‘CUSTOM’,’CUSTOM’, ‘public’

Go

Sp_adduser ‘CUSTOM’,’CUSTOM’,’public’

Go

Use JDEB733

Go

Sp_adduser ‘CUSTOM’,’CUSTOM’, ‘public’

Go

For Oracle, run this script in Oracle SQL worksheet.  Login as Oracle dba.  Be sure to modify drive and file names to match your install.  The scripts for creating the tablespaces can be copied from the deployment server.  They are stored in

Create tablespace customt
Datafile ‘d:\orajde\custom01.dbf’ size 1300M autoextend on next 1 M maxsize 1500M
Default storage (initial 500000 next 500000 maxextents unlimited pctincrease 0);

Creat tablespace customi
Datafile ‘d:\orajde\customi01.dbf size 350M autoextend on next 1M mazsize 1000M
Default storage (initial 500000 next 500000 maxextents unlimited pctincrease 0);




Create tablespace custdtat
Datafile ‘d:\orajde\custdta01.dbf’ size 200M autoextend on next 1 M maxsize 1000M
Default storage (initial 500000 next 500000 maxextents unlimited pctincrease 0);

Creat tablespace custdtai
Datafile ‘d:\orajde\custdtai01.dbf size 200M autoextend on next 1M mazsize 1000M
Default storage (initial 500000 next 500000 maxextents unlimited pctincrease 0);

Create tablespace custctlt
Datafile ‘d:\orajde\custctl01.dbf’ size 25M autoextend on next 1 M maxsize 1000M
Default storage (initial 500000 next 500000 maxextents unlimited pctincrease 0);

Creat tablespace custctli
Datafile ‘d:\orajde\custctli01.dbf size 25M autoextend on next 1M mazsize 1000M
Default storage (initial 500000 next 500000 maxextents unlimited pctincrease 0);

Create user custom identified by custom
Default tablespace customt
Temporary tablespace TEMPORARY_DATA
Quota unlimited on customt
Quota unlimited on customi
Quota unlimited on TEMPORARY_DATA;

Grant jde_role to custom;


2. Create Oneworld Data Sources
Log in to Oneworld on an Admin workstation
Fast path to the GH9011 menu
Choose Database datasources
Select the system –B733 datasource
Copy Business Data –xxxx and rename it to Business Data – CUSTOM.  Pay close attention to the object owner ID and the Database name.
Copy the remaining Data Sources (Versions, Central Objects, Control Tables and OneWorld local –xxxx).  Pay close attention to the object owner ID and the Database name.
Create ODBC datasource as prompted (SQL Server)

3. Copy and existing pathcode
Fast Path to GH9053
Select Path Code Master
Highlight an existing pathcode (xxxxB733) and click copy.
Modify the Path Code name, description and Deployment Data Source

4) Copy an existing Environment
Fast path to GH9053
Select Environment Master
Highlight an existing Environment (xxx733).  From the row exit click the Copy Environment
Modify Environment Name, Description and Path Code.
Enter OL Data Source if prompted.

5) Copy files on the Enterprise Server and the Deployment Server
On the Deployment Server, right click on the path code you wish to copy.  Highlight B733 and click paste.
Rename the directory to your custom name
Modify, under the custom path code, the Package directory as necessary.
In the PACKAGE_INF directory, copy and modify an existing package.inf
On the enterprise server, copy and existing path code and rename it to your custom name.

6) Create new OL records
Log into OneWorld, fastpath to BV
D a find for R989861
Double click on the XJDE0001
In the Processing Options, set your source PathCode to the PathCode you copied, Target is the New Custom Pathcode.

7) Generate Server Map OCM  (*Note this will configure all environments listed.  If you add another environment and don’t want to alter other settings, delete the other enviornments, configure and then readd the environment.)
Fast Path to P9654a
Click Find.  Expand, the Enterprise Server section
Highlight your Enterprise Server and click Select
From the Form exit, click on Environments
Add your custom environment to the list
From the form exit, click on the Generate Server Map

8) Run the appropriate R98403 version
Version 21 will copy your Business Data to the new custom Data Source
Version 19 will copy your Specs and Versions to the new custom Data Source
Version 22 will copy your Control Tables to the new custom Data Source

9) Test the new environment
Run PortTest for the newly created environment.  CD to the system\bin32 on the enterprise server from a command prompt.
On the Enterprise Server do the following:
1. Start, Run, type in the following to get a dos prompt:  cmd
2. Type the letter drive of the jdedwardsoneworld path.  Ex:  g:
3. Then type:  cd:\jdedwardsoneworld\ddp\b7332\system\bin32
4. Type, porttest JDE JDE CUSTOM.  Case is important, JDE JDE should be replaced with a valid OneWorld username and passworld.  Custom should be replaced with the custom environment name.

Change Password in Oracle WebLogic

Have you ever forgot the password of WebLogic domain? It is a recurring question I receive now and again: "I’ve forgot my password, how can I reset the AdminServer password in WebLogic domain? Is there a way I can change the password of WebLogic Domain?" For security policy, the administrators need to change regularly the WebLogic password. No problem! Let's discuss how can you reset the WebLogic password from the command line.

1.     Shut down the WebLogic domain, the managed servers, Admin Server and Node Manager.
2.     Set the following environment variables in the command prompt (cmd) to help you navigate easily, in my case for Windows O/S:
o    set MW_HOME=\Oracle\Middleware\Oracle_Home
o    set DOMAIN_HOME=%MW_HOME%\user_projects\domains\base_domain
NB: If you are on Linux O/S, use export instead of set and $MW_HOME instead of %MW_HOME%
3.      Rename the data folder under the AdminServer of the domain to old_data, this is the path:%DOMAIN_HOME%\servers\AdminServer\data
4.      In the same command prompt that you opened earlier, set the environment variable of the domain by calling: %DOMAIN_HOME%\bin\setDomainEnv.cmd or ./setDomainEnv.sh in Linux.
5.     In the same command prompt, change directory to security folder: cd %DOMAIN_HOME%\security
6.     Inside the %DOMAIN_HOME%\security directory, move the file "DefaultAuthenticatorInit.ldift" to "%DOMAIN_HOME%\security\old\" In the next step, the command that we are going to run will create a new file “DefaultAuthenticatorInit.ldift” in the security folder
7.     Run the following command to reset or change admin password:
  java weblogic.security.utils.AdminAccount  weblogic welcome123 .
o    NB: "weblogic" is user name and "welcome123" is the new password which we need to set. 
o    NB: The DOT at the end of the above command represents the current directory. A new "DefaultAuthenticatorInit.ldift" file will be created in the current directory when you execute the command.
8.     Update the "boot.properties" file under the directory %DOMAIN_HOME%\servers\AdminServer\security\with your username and the new password.
9.     Now start the admin server using the new credentials from %DOMAIN_HOME%\bin\startWeblogic.cmdin Windows or ./startWeblogic.sh in Linux.
10.   Once the AdminServer started, login into the Admin console using the username and the new password


Deleting a service from services.msc


In order to delete a service from the windows services list, use sccommand tool
sc delete ServiceName
Ex:- sc delete ZTime

Check the sc command help for other options available

com.microsoft.sqlserver.jdbc.SQLServerException: The connection to the named instance has failed. Error: java.net.SocketTimeoutException: Receive timed out

This error will usually occur while trying to connect to named instance of SQL server using JDBC driver.com.microsoft.sqlserver.jdbc.SQLServerException: The connection to the named instance has failed. Error: java.net.SocketTimeoutException: Receive timed out

To correct the problem make sure your named instance passes in the below scenarios.


When installing SQL Express, it is necessary to enable mixed mode security as the authentication mode in the advanced configuration options so that connections are possible using the user name and password.


Make sure that the SQL Server Browser is enabled.
Start-> Programs-> Microsoft SQL Server 2005 -> Configuration Tools -> SQL Server Configuration Manager.
Highlight on SQL Server 2005 Services.
In the right pane check to see if "SQL Server Browser" is running. If not, highlight it, right-click and choose Start.

The JDBC provider only works with the TCP/IP protocol which is disabled by default on SSE. Enable the TCP/IP Protocol from the SQL Server Configuration Manager that ships with SSE and re-start the server services.

Start-> Programs-> Microsoft SQL Server 2005 -> Configuration Tools -> SQL Server Configuration Manager.
Expand SQL Server 2005 Network Configuration.
Highlight Protocols for SQLEXPRESS.
In the right pane, check to see if TCP/IP is enabled, if not, enable it and restart the services
Check the firewall settings on your computer.Try turning OFF and see if it resolves the issueThis error will usually occur while trying to connect to named instance of SQL server using JDBC driver.com.microsoft.sqlserver.jdbc.SQLServerException: The connection to the named instance has failed. Error: java.net.SocketTimeoutException: Receive timed out

To correct the problem make sure your named instance passes in the below scenarios.


When installing SQL Express, it is necessary to enable mixed mode security as the authentication mode in the advanced configuration options so that connections are possible using the user name and password.

Make sure that the SQL Server Browser is enabled.
Start-> Programs-> Microsoft SQL Server 2005 -> Configuration Tools -> SQL Server Configuration Manager.
Highlight on SQL Server 2005 Services.
In the right pane check to see if "SQL Server Browser" is running. If not, highlight it, right-click and choose Start.

The JDBC provider only works with the TCP/IP protocol which is disabled by default on SSE. Enable the TCP/IP Protocol from the SQL Server Configuration Manager that ships with SSE and re-start the server services.

Start-> Programs-> Microsoft SQL Server 2005 -> Configuration Tools -> SQL Server Configuration Manager.
Expand SQL Server 2005 Network Configuration.
Highlight Protocols for SQLEXPRESS.
In the right pane, check to see if TCP/IP is enabled, if not, enable it and restart the services
Check the firewall settings on your computer.Try turning OFF and see if it resolves the issue

Tuesday, May 3, 2016

Oracle Weblogic 12.1.2 Node Manager Bug – FORCE_SHUTTING_DOWN

There is a bug in the Weblogic 12.1.2 Node Manager that reports the managed server in a FORCE_SHUTTING_DOWN status when there is no PID.

RESOLUTION: Delete the managed server’s “.state” file which is usually located here:

%Oracle_Home%\user_projects\domains\<DOMAIN_NAME>\servers\<SERVER_NAME>\data\nodemanager

Step-by-Setp installation guide of Self Service - Oracle portal Installation for JD Edwards

This step-by-step guide is done on SOLARIS system

Following component is needed to Install Self Service.
before starting setup
  1. Install and Configure Oracle Database [11.2.0.1]
  2. Install Repository Creation using [RCU] – V37395-01
  3. Install jdk 1.7.0_79
  4. Installing Oracle WebLogic [10.3.6.0] Server
  5. Installing WebCenter Portal 11g [11.1.1.8.0]
  6. Configuring WebCenter
  7. Installation of required patches
  8. Starting nodeManager.sh & startWeblogic.sh
  9. Portal Login details
  10. Creation of new instance in Server Manager
  11. Register Portal
     
  1. Install and Configure Oracle Database [11.2.0.1]
Install Oracle Database [Pre-installation task]

a) Create necessary groups and a user. [Following instruction is to be done using root user id]

[code]
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba -d /export/home/oracle -s /usr/bin/bash oracle
passwd oracle
[/code]

b) Create necessary folder for the installation

[code]
mkdir -p /u01/oracle/product/11.2.0/db_1
mkdir /export/home/oracle/tmp
[/code]

[code]
chown -R oracle:oinstall /export/home/oracle
[/code]

c) Change kernel parameters

[code]
projadd -U oracle -K "project.max-shm-memory=(priv,4g,deny)" oracle
projmod -sK "project.max-sem-nsems=(priv,256,deny)" oracle
projmod -sK "project.max-sem-ids=(priv,100,deny)" oracle
projmod -sK "project.max-shm-ids=(priv,100,deny)" oracle
echo "set maxuprc=16384" >> /etc/system
echo "set max_nprocs=30000" >> /etc/system
echo "set shmsys:shminfo_shmmax=4294967295" >> /etc/system
[/code]
Now reboot the machine and login with an oracle user. Now change the .profile file of the oracle user and set necessary environment variables:
vi /export/home/oracle/.profile
[code]
export ORACLE_SID=portal
export JAVA_HOME=/u01/jdk/jdk1.7.0_79
export ORACLE_BASE=/u01/db
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export TMP=/export/home/oracle/tmp
export TMPDIR=/export/home/oracle/tmp
export DISPLAY=:0.0
export PATH=$JAVA_HOME/bin:$PATH
[/code]



Now create an “installation” directory under /u01/installable. Extract downloaded files using unzip utility & start the installation.

[code]
cd/u01/oracle/installable/OracleDB/database
./runinstaller.
[/code]

1
C:\Temp\db\1
Uncheck the checkbox and click next.
2
C:\Temp\db\2
Click second option & click on Next button
3
C:\Temp\db\3
Click Next
4
C:\Temp\db\4
Click Next
5
C:\Temp\db\5
Select standard edition & click Next
6
C:\Temp\db\6
Enter Software installation directory & click on Next
7
C:\Temp\db\7
Enter Inventory directory & click on Next
8
C:\Temp\db\8
Click Next
9
C:\Temp\db\9
Save response file & click on Finish
10
C:\Temp\db\10
This will complete Oracle Database software installation part.



Configure Database (Creation of database using DBCA)

[code]
Cd /u01/oracle/product/11.2.0/db_1/bin
./dbca
[/code]

C:\Temp\db\db1

1
C:\Temp\db\db2
Click Next
2
C:\Temp\db\db3
Select create a database & click on next
3
C:\Temp\db\db4
Select option 1 & click on Next
4
C:\Temp\db\db5
Enter db name as portal & click on Next
5
C:\Temp\db\db7
De-select enable auto maintenance task - click next
6
C:\Temp\db\db8
Enter password as 0rac1e & click on Next
7
C:\Temp\db\db9
Click on Next
8
C:\Temp\db\db10
Remove all check box & click on Next
9
C:\Temp\db\db11
De-select sample schemas & click on Next
A
C:\Temp\db\db11
Enter 2048 MB as memory Size, select use automatic memory management & click on Next
B
C:\Temp\db\db13
Select AL32UTF8 as character set  & click on next
C
C:\Temp\db\db15
Select 100 processes and click on next
D
C:\Temp\db\db16
Click on Next
E
C:\Temp\db\db17
Select create database and click on Finish button

After completion start listner. This will complete the process for oracle database installation.

  1. Install Repository Creation using [RCU] – V37395-01
Download the RCU from oracle (link:http://www.oracle.com/technetwork/middleware/downloads/fmw-11-download-092893.html) Part # V37394-01 is for Linux & V37395-01 is for Windows platform [We have downloaded Windows RCU].
Oracle WebCenter requires that certain schemas exist in the database prior to installation. You must run the Repository Creation Utility (RCU) in order to create the schemas in the database.

Before begin adjust the following database parameters before running RCU
alter system set processes=500 scope=spfile;
alter system set open_cursors=800 scope=spfile;
shutdown immediate;
startup;

You must unzip the file and put it in a easy to access folder. We can consider this folder as an Oracle Home (rcu Home).  In our case we have installed it in C:\Temp\rcu\rcuHome\BIN
The following screen will appear:
Create OBIEE schemas with RCU : Create repository . Choose "Create and load component schemas into a database." and press "Next".
The following screen will appear: select the “WebCenter Suite” & change prefix to “OW” from “DEV”
Create OBIEE schemas with RCU : Select Components
Click on "Next". The following screen will appear

Click on Next
Click on Create
When the schemas/ tablespaces are created the following screen will appear:
Create OBIEE schemas with RCU : Completion Summary  Click on "Close" and all the stuff is done. Now you are ready to install the OBIEE Server.

  1. Installing jdk 1.7
Before installation weblogic server Jdk 1.7 component is needed. Installable dk-7u79-solaris-sparc.gz and jdk-7u79-solaris-sparcv9.gz has been downloaded from oracle.

Installation steps are as follows

zcat jdk-7u<version>-solaris-sparc.tar.Z | tar xf -
zcat jdk-7u<version>-solaris-sparcv9.tar.Z | tar xf -

Restarted the server & verified new version of java

  1. Installing Oracle WebLogic [10.3.6.0] Server
Download following part number from e-delivery for weblogic installation, extract these zip files and copy to portal server
Extract V29856-01 & run following command in /u01/installable/WebLogic
java -d64 -jar wls1036_generic.jar

Following screen will appear
1
C:\Temp\jrockit\Screenshot\2
Click on Next
2
C:\Temp\jrockit\Screenshot\3
Enter path to install and Click on Next
3
C:\Temp\jrockit\Screenshot\4
Select custom and Click on Next
4
C:\Temp\jrockit\Screenshot\5
Click on Next
5
C:\Temp\jrockit\Screenshot\6
Verify java version & click on next
6
C:\Temp\jrockit\Screenshot\7
Click on Next
7
C:\Temp\jrockit\Screenshot\8
Click on Next
8
C:\Temp\jrockit\Screenshot\9
Deselect Run Quickstart & click on Done











  1. Installing WebCenter Portal 11g [11.1.1.8.0]
Installer requires the location of Java Runtime Environment [JRE]. Location has been given while running ./runinstaller

C:\Temp\weblogic\screenshot\1

C:\Temp\weblogic\screenshot\2
C:\Temp\weblogic\screenshot\3

C:\Temp\weblogic\screenshot\4
C:\Temp\weblogic\screenshot\5

C:\Temp\weblogic\screenshot\6


C:\Temp\weblogic\screenshot\7

C:\Temp\weblogic\screenshot\8


  1. Configuring Web Center


C:\Temp\weblogic\screenshot\9

C:\Temp\weblogic\screenshot\10
C:\Temp\weblogic\screenshot\11

C:\Temp\weblogic\screenshot\12

C:\Temp\weblogic\screenshot\13

C:\Temp\weblogic\screenshot\14

C:\Temp\weblogic\screenshot\15
C:\Temp\weblogic\screenshot\16
C:\Temp\weblogic\screenshot\17

C:\Temp\weblogic\screenshot\18

C:\Temp\weblogic\screenshot\19
C:\Temp\weblogic\screenshot\20

C:\Temp\weblogic\screenshot\21
C:\Temp\weblogic\screenshot\22
C:\Temp\weblogic\screenshot\23



  1. Installation of Required patches
Patch: 6880880 This is latest opatch
Downloaded p6880880_111000_SOLARIS64.zip patches from patches and update tab of oracle support.
>mv p6880880_111000_SOLARIS64.zip /u01/Middleware/Oracle_WC1
>cd /u01/Middleware/Oracle_WC1
>mv OPatch OPatch_28042015
>unzip p6880880_112000_SOLARIS64.zip

Apart from patch following patches has been applied
Patch : 18633874 -  p18633874_111180_Generic.zip
Patch 20425442 - p20425442_111180_Generic.zip





  1. Starting nodeManager.sh & startWeblogic.sh
Now we need to start WebCenter WebLogic Admin Server and Managed Servers (WLS_Spaces, WLS_Portlet and WLS_Services)

Post Configuration Tasks
  • Starting Node Manager
  • Starting the WebLogic Administration Server
  • Starting Managed Servers from the Administration Console
  • Verify the installation


Starting WebLogic Node Manger

1. Run this script to start the Node Manager once. This process will create the Node Manager
properties file.
MW_Home/wlserver_10.3/server/bin/startNodeManager.sh
2. Shut down the Node Manager process.
3. Run this script to set the Node Manager properties. This process will update the
nodemanager.properties file.
MW_Home/oracle_common/common/bin/setNMProps.sh
4. Re-Run this script to start the Node Manager:
MW_Home/wlserver_10.3/server/bin/startNodeManager.sh



Starting WebLogic startWeblogic

1.Before starting server create boot.properties in
/u01/Middleware/user_projects/domains/portal_domain/servers/AdminServer/security
The boot.properties should contain following entries
username=weblogic
password=oracle123
2. Start server with running startWeblogic.sh script in the directory /u01/Middleware/user_projects/domains/portal_domain/bin

  1. Portal Login Details

SR #
Description
Link
1
Web Logic Admin
2
Web Center Login
3
Web Center Console / Enterprise Manager
  1. Create new instance in the server manager
Login to server manager
Create new manage instance
Select Enterprise HTML Server & Click on Continue
Enter Instance name
Click on Continue on


  1. Register Portal
Login to web center console
Click on Register portal

Featured Post

Generate single index on table 

Transaction tables such as F0911, F4111 etc hold a huge amount of data probably a third of petabyte. Generating indexes on such tables (th...

Popular Posts