Você está na página 1de 13

Create Demantra Instance

1. Requirements
Information we need to have before we start Demantra Installation
Demantra Nodename : usmlrh219.arrow.com
User : oracle
Install Location : /rh219/u01/app/oracle/cmpdmgold
Instance Name : cmpdmgold
ASCP Instance : CMAGOLD
EBS Instance : CMPGOLD
Demantra Windows Hostname :

2. Install IAS

a. Copy the tar and extract file


From Location : /rh157/u04/Unity_SW/middletier
From Hostname : usmlrh157.arrow.com

scp as101330_cmp.tar.gz oracle@usmlrh219.arrow.com: /rh219/u01/app/oracle


b.
Login to Demantra node
Create file system
Ex: /rh219/u01/app/oracle/
Extract the file
c. Extract the tar from /rh157/u04/Unity_SW/middletier/as101330_cmp.tar.gz to
/rh<host>/u01/app/oracle
tar xvzf as101330_cmp.tar.gz

d. Rename the extracted directory to appropriate SID & ORACLE_HOME ( eg cmpdmcr for
Demantra )

mv cmpdmcr cmpdmgold

e. echo $ORACLE_HOME
cd
vi .bash_profile
add entry
f. export ORACLE_HOME=/rh<host>/u01/app/oracle/<SID>/10.1.3

. ./.bash_profile
Ex:
-bash-3.00$ cat .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
export ORACLE_HOME=/rh219/u01/app/oracle/cmpdmgold/10.1.3
export PATH=:.:$PATH::$ORACLE_HOME/bin
export PATH
unset USERNAME
3. Update cs.properties in $ORACLE_HOME/clone/ias/config with proper physical path of
staticports.ini

# clone command line


clone_command_line= -silent oracle.as.j2ee.top:szl_PortListSelect=
"{YES,/rh219/u01/app/oracle/cmpdmgold/10.1.3/staticports.ini}"

4. Ensure the physical path exists for Staticports.ini


1. ls -l /rh<host>/u01/app/oracle/<sid>/10.1.3/staticports.ini
Make sure ports are of 10 series
Ex: 10777 Note for OBIEE we need to use 11 series -11777

5. export PERL5LIB=$ORACLE_HOME/perl/lib/5.8.3/i686-linux-thread-multi:
$ORACLE_HOME/perl/lib/5.8.3:$ORACLE_HOME/perl/lib/site_perl/5.8.3/i686-linux-thread-
multi/

6. cd $ORACLE_HOME

7. Modify the Instance and Paths accordingly and run the in Unix prompt
$ORACLE_HOME/perl/bin/perl ./clone/bin/clone.pl
ORACLE_HOME="/rh170/u01/app/oracle/cmpdmdv/10.1.3"
ORACLE_HOME_NAME="cmpdmdv" -instance cmpdmdv

Please enter the old oc4jadmin password (Plain Text):arr0wcmp


Please enter the new oc4jadmin password (Plain Text):oc4ja0min
8. Check the ports have been properly configured
netstat –an | grep 10777

9. $ORACLE_HOME/opmn/bin/opmnctl status

II Create Demantra.war file

Desktop-> Accessories -> Remote Desktop Connection


Windows Demantra Hosname : wmhap067t
Login as rtc_user/Arrow786
Domain : this Computer

To point Oracle Demantra to a different database without rerunning the installer, complete the
following steps:
1. Make a backup copy of the AppServer.properties file.

Location: C:\Program Files\Demantra Spectrum\Collaborator\demantra\WEB-


INF\classes\com\demantra\applicationServer\services

2. Edit the AppServer.properties file as follows:


- ServerName: Specify the host on which database resides (as in the TNSNAMES.ora file),
preceded by an at sign (@)
- DBUser: Username that stores the Oracle data
- DBPassword: Corresponding password
- DBName: For Oracle, this is the SID of the database. For SQL Server**, this is the name of the
database.

EX:
DBType=oracle

# ServerName Example :
# Oracle : @caesar
# MS-SQL : shira
ServerName=@usmliu167.arrow.com

# DBPort Example :
# Oracle : 1521
# MS-SQL : 1433
DBPort=1527

# DBName Example : (In Oracle should be the server SID)


# Oracle : orc9
# MS-SQL : nf_demo_62
DBName=cmagold

# DBUser Example : nf_demo_62


DBUser=dp

# DBPassword Example : mdp


DBPassword=dp

4. Back up the ds.ini file.


Location : C:\Program Files\Demantra Spectrum\Demand Planner\Security Management

5. Run the executable Demantra_root\Demand Planner\Security Management\encryption.exe


C:\Program Files\Demantra Spectrum\Demand Planner\Security Management
6. On the General tab, make the following changes:
- Server Name: Specify the host on which database resides (as in the TNSNAMES.ora file),
preceded by an at sign (@)
- User Name: Username that stores the Oracle data
- Password: Corresponding password
7. Save the changes. All the desktop user interfaces are now directed to the new database.

Middle tier config

Also modify AppServer.properties for the proper URL at generic URL

On the Demantra instance the application server and the database are not in sync. Please update
the web.xml file on the Demantra instance on the remote machine WMHAPxxxx with the detials
below:

1. On the server, open the following file:


C:\Program Files\Demantra Spectrum\Collaborator\demantra\WEB-INF\web.xml

<param-value>http://usmlrh219.arrow.com:10777/Demantra_cmpgold/glue</param-value>

In this file, check the value of the parameter electric.http.url. This parameter should have the
following format:
http://server name/virtual_directory/glue

Edit the file and save the changes, and then restart the application server.

In the web.xml file on the Demantra AS environment, what you see is the following:
This should be pointing to
http://usmlrhXXX.arrow.com:10777/Demantra_cmpcrp3/glue

Regenerate demantra.war file


and redeploy it on the application server.
To regenerate run the bat file to do so
Go to Location : C:\Program Files\Demantra Spectrum\Collaborator\demantra
Remove any .war file in the folder

After regeneration create an OC4J instance in IAS and deploy the war file in it

1. Deploy Demantra

Login into Enterprise manager

http://usmlrh219.arrow.com:10777/em/

oc4jadmin/oc4ja0min

Click Application server cmpdmgold.usmlrh219.arrow.com

Click Link Create OC4J


Provide OC4J Instance_name as Demantra_cmpgold

And Add to an existing group with name default_group


Click on the newly created OC4J Instance
Demantra_cmpgold

Select tab Application


Select Deploy Link

Under Archive

Select option :
Archive is present on local host. Upload the archive to the server where Application Server
Control is running
Select the deployment war file using Browse
C:\Program Files\Demantra Spectrum\Collaborator\demantra\b2b.war

Under Deployment Plan


Select option : Automatically create a new deployment plan.

Click - next 2/3


Application Name : Demantra_cmpgold
Context_root : Demantra_cmpgold

Click next 3/3


In Class loading - check the following check box

Configure Web module class Loaders


Check URL
Ex: http://usmlrh158.arrow.com:10777/Demantra_cmpcrdv/portal/loginpage.jsp
2. Integrate with ASCP Instance

EBS Integration/Profile setup

1. Update the synonym in ERP and APS env.


Login to APS and ERP env with applmgr user and and login to database with apps user
execute the following sql script
$MSD_TOP/patch/115/sql/msddemcrsyn.sql

2. Modify the fnd profile options


A) Source Side Profiles(ERP) CMPPAT
1. MSD_DEM: Category Set Name ---------- Inv.Items
2. MSD_DEM: Conversion Type ------------- Corporate
3. MSD_DEM: Master Org ------------- V1
4. MSD_DEM: Customer Attribute ------ None

B) Destination Side Profiles(APS) CMAPAT


1. MSD_DEM: Currency Code -------- US Dollar
2. MSD_DEM: Two-Level Planning -------- Exclude family members with
forecast control 'None'
3. MSD_DEM: Schema ----------- DP
4. MSD_DEM: Data Profile for Price Lists --------- EBS Price List
5. MSD_DEM: Debug Mode ------- No
6. MSD_DEM: Host URL at Site level to
'http://usmlrs33.arrow.com:10777/Demantra_utyas09'
(Demantra URL from 10G AS))
7. MSC: Configuration at Application Level, responsibility Advanced Supply
Chain Planner to 'APS & CP'

MSC: Organization containing generic BOM for forecast explosion, at Site level
to 'V01'.

3. Creation of DB Links.(Below example is on APS env)


Make sure APS and ERP tnsnames.ora should be configured so both env should
be able to connect each other via sqlplus. If not login to both env using applmgr
and got TNS_ADMIN and configure the tnsnames.ora, and then check the
connectivity.

try creating the link from sqlplus

SQL> create database link cmatmne connect to apps identified by aparr0w321


using 'cmatmne.arrow.com';
Database link created.
SQL> drop database link cmatmne;
Database link dropped.

Domain Name: ?????????


APPS Username: APPS
APPS Passwd : xxxx

Same way create the DB link in ERP env.


3. Health Checks

Check URL : http://usmlrh158.arrow.com:10777/Demantra_cmpcrdv/portal/loginpage.jsp

Você também pode gostar