Showing posts with label CDM. Show all posts
Showing posts with label CDM. Show all posts

Tuesday, June 2, 2009

CDM Setup : Websphere Standalone profile

Main >> CDM >> CDM Setup : Websphere Standalone profile



Prerequisite

WebShpere Application Server 6.1.0.13
Oracle 10g with CDM schemas on it

Steps

CDM_Installation.book

1. Login to WAS admin console (http://localhost:9060/admin)

2. Create J2C Authentication Entries

2.1. Go to Security >> Secure administration, applications, and infrastructure >> Java Authentication and Authorization Service >> J2C authentication data

2.2. Click on New, and create the following authentication entities

2.2.1. ADS authentication alias

2.2.1.1.Alias Name: ads

2.2.1.2.User Name: ads user name

2.2.1.3.Password: ads user’s password

2.2.2. DMA authentication alias

2.2.2.1.Alias Name: dma

2.2.2.2.User Name: dma user name

2.2.2.3.Password: dma user’s password

2.2.3. DMO authentication alias

2.2.3.1.Alias Name: dmo

2.2.3.2.User Name: dmo user name

2.2.3.3.Password: dmo user’s password

2.2.4. RTDS authentication alias

2.2.4.1.Alias Name: rtds

2.2.4.2.User Name: rtds user name

2.2.4.3.Password: rtds user’s password

2.2.5. IS authentication alias

2.2.5.1.Alias Name: is

2.2.5.2.User Name: is user name

2.2.5.3.Password: is user’s password

2.2.6. RA authentication alias

2.2.6.1.Alias Name: ra

2.2.6.2.User Name: is user name

2.2.6.3.Password: is user’s password

2.3. Click Apply >> Ok.

2.4. Save the changes to master configuration

3. Create JDBC Provider

3.1. Go to Resources >> JDBC >> JDBC Providers >> Select the scope as server1 >> Click on New >> Select the following …

3.1.1. Database type : Oracle

3.1.2. Provider type : Oracle JDBC Driver

3.1.3. Implementation type : Connection pool data source

3.1.4. Name : Oracle JDBC Driver ( you can give any name )

3.1.5. Description : You can give any description

3.2. Click Next

3.3. Specify the path of “ojdbc14.jar” in the text box labeled ${ORACLE_JDBC_DRIVER_PATH} and click >> Next

3.4. Click Finish

3.5. Save the changes to master configuration

4. Create JDBC Data Sources

4.1. Go to Resources >> JDBC >> Data Sources >> Select the scope as server1 >> Click on New

4.2. Create the following data sources

4.2.1. ADS Data source

4.2.1.1.Data source name: adsDataSource

4.2.1.2.JNDI Name: jdbc/adsDataSource

4.2.1.3.Authentication Alias: ads

4.2.2. DMA Data source

4.2.2.1.Data source name: dmaDataSource

4.2.2.2.JNDI Name: jdbc/dmaDataSource

4.2.2.3.Authentication Alias: dma

4.2.3. DMO Data source

4.2.3.1.Data source name: dmoDataSource

4.2.3.2.JNDI Name: jdbc/dmoDataSource

4.2.3.3.Authentication Alias: dmo

4.2.4. RTDS Data source

4.2.4.1.Data source name: rtdsDataSource

4.2.4.2.JNDI Name: jdbc/rtdsDataSource

4.2.4.3.Authentication Alias: rtds

4.2.5. IS Data source

4.2.5.1.Data source name: isDataSource

4.2.5.2.JNDI Name: jdbc/isDataSource

4.2.5.3.Authentication Alias: is

4.2.6. RA Data source

4.2.6.1.Data source name: raDataSource

4.2.6.2.JNDI Name: jdbc/raDataSource

4.2.6.3.Authentication Alias: ra

4.3. Select JDBC provider

4.3.1. Select an existing JDBC provider

4.3.2. And Select Oracle JDBC Driver from the dropdown

4.3.3. Click Next

4.4. Enter the following details

4.4.1. URL: jdbc:oracle:thin:@ Database server IP : DB server port : SID where Database server IP is the IP of database server, port is the port on which Database is running ideally 1521 or 1522 and SID is database name.

4.4.2. Data store helper class name: Oracle10g data store helper

4.5. Click Next

4.6. Click Finish

4.7. Repeat step 4c to 4f.

4.8. Save the changes to master configuration

5. Create & Configure Service Integration Buses

5.1. Go to System Integration >> Buses >> Click on New

5.1.1. Bus name: ADS Bus

5.1.2. Uncheck “Bus Security” option

5.1.3. Click Next

5.1.4. Click Finish

5.2. Go to System Integration >> Buses >> Click on New

5.2.1. Bus name: RTDS Bus

5.2.2. Uncheck “Bus Security” option

5.2.3. Click Next

5.2.4. Click Finish

5.3. Save the changes to master configuration

5.4. Go to System Integration >> Buses >> Select ADS Bus

5.4.1. Click Bus members

5.4.2. Click Add

5.4.3. Click on option button labeled Server and select server1

5.4.4. Click Next

5.4.5. Select the type of message store as “Files store”

5.4.6. Click Next

5.4.7. Keep default settings and click Next

5.4.8. Click Finish

5.5. Go to System Integration >> Buses >> Select RTDS Bus

5.5.1. Click Bus members

5.5.2. Click Add

5.5.3. Click on option button labeled Server and select server1

5.5.4. Click Next

5.5.5. Select the type of message store as “Files store”

5.5.6. Click Next

5.5.7. Keep default settings and click Next

5.5.8. Click Finish

5.6. Save the changes to master configuration

5.7. Go to System Integration >> Buses >> Select ADS Bus

5.7.1. Click Destinations

5.7.2. Click New

5.7.3. Select destination type: Topic Space

5.7.4. Click Next

5.7.5. Identifier: ADS Topic

5.7.6. Click Next

5.7.7. Click Finish

5.7.8. Save the changes to master configuration

5.8. Go to System Integration >> Buses >> Select RTDS Bus

5.8.1. Click Destinations

5.8.2. Click New

5.8.3. Select destination type: Queue

5.8.4. Click Next

5.8.5. Identifier: RTDS

5.8.6. Click Next

5.8.7. Bus member: Select server1

5.8.8. Click Next

5.8.9. Click Finish

5.8.10. Save the changes to master configuration

6. Define the Connection Factories

6.1. Define a Queue Connection Factory

6.1.1. Go to Resources >> JMS >> JMS providers

6.1.2. Select scope as server1 >> Default Messaging Provider

6.1.3. Click on Queue Connection Factories

6.1.4. Click New

6.1.4.1.Name: rtdsQueueConnectionFactory

6.1.4.2.JNDI Name: jms/RTDSQueueConnectionFactory

6.1.4.3.Select bus type: RTDS Bus

6.1.4.4.Click Ok

6.1.4.5.Save the changes to master configuration

6.2. Define a Topic Connection Factory

6.2.1. Go to Resources >> JMS >> JMS providers

6.2.2. Select scope as server1 >> Default Messaging Provider

6.2.3. Click on Topic Connection Factories

6.2.4. Click New

6.2.4.1.Name: adsTopicConnectionFactory

6.2.4.2.JNDI Name: jms/ADSTopicConnectionFactory

6.2.4.3.Bus name: ADS Bus

6.2.4.4.In the provider endpoints: host_name/hostIP:SIB_ENDPOINT_ADDRESS:BootstrapBasicMessaging

6.2.4.5.Click Ok

6.2.4.6.Save the changes to master configuration

7. Define the Queue & topic

7.1. Define Queue

7.1.1. Go to Resources >> JMS >> JMS providers

7.1.2. Select scope as server1 >> Default Messaging Provider

7.1.3. Click on Queues

7.1.4. Click New

7.1.4.1.Name: RTDS Request Queue

7.1.4.2.JNDI Name: queue/DecisionRequestQueue

7.1.4.3.Bus Name: RTDS Bus

7.1.4.4.Queue Name: RTDS

7.1.4.5.Click Ok

7.1.4.6.Save the changes to master configuration

7.1.5. Click New

7.1.5.1.Name: RTDS Reply Queue

7.1.5.2.JNDI Name: queue/DecisionReplyQueue

7.1.5.3.Bus Name: RTDS Bus

7.1.5.4.Queue Name: RTDS

7.1.5.5.Click Ok

7.1.5.6.Save the changes to master configuration

7.2. Define Topic

7.2.1. Go to Resources >> JMS >> JMS providers

7.2.2. Select scope as server1 >> Default Messaging Provider

7.2.3. Click on Topics

7.2.4. Click New

7.2.4.1.Name: ADS Topic

7.2.4.2.JNDI Name: jms/ADSTopic

7.2.4.3.Bus Name: ADS Bus

7.2.4.4.Topic Space: ADS Topic

7.2.4.5.Click Ok

7.2.4.6.Save the changes to master configuration

8. Set Activation specifications

8.1.1. Go to Resources >> JMS >> JMS providers

8.1.2. Select scope as server1 >> Default Messaging Provider

8.1.3. Click on Activation specifications

8.1.4. Click New

8.1.4.1.Name: RTDS Queue

8.1.4.2.JNDI Name: eis/RTDSQueue

8.1.4.3.Destination type: Queue

8.1.4.4.Destination JNDI Name: queue/DecisionRequestQueue

8.1.4.5.Bus Name: RTDS Bus

8.1.4.6.Authentication Alias: node_name/rtds

8.1.4.7.Click Ok

8.1.4.8.Save the changes to master configuration

8.1.5. Click New

8.1.5.1.Name: ADS Topic

8.1.5.2.JNDI Name: eis/ADSTopic

8.1.5.3.Destination type: Topic space

8.1.5.4.Destination JNDI Name: jms/ADSTopic

8.1.5.5.Bus Name: ADS Bus

8.1.5.6.Authentication Alias: node_name/ads

8.1.5.7.Click Ok

8.1.5.8.Save the changes to master configuration

Wednesday, May 6, 2009

Accessing AIX box from Windows

Main >> CDM >> Accessing AIX box from Windows



In order to access AIX box from Windows you will need either PuTTY or WinSCP. PuTTY has character user interface wherein you need to type the UNIX commands. WinSCP on the other side is a GUI tool. To connect to AIX box you will need Host name / IP address and the port number. By default PuTTY connects using SSH on port 22. You will need the username and the password as well.

Some of the usefull commands are listed below
  1. sudo su –
    Change user to get super user privileges.
  2. df –k
    df –g
    Check the disk space occupied by each directory
  3. topas
    Check the current CPU usage
  4. stty erase ^?
    Enable the usage of backspace on PuTTY
  5. set -o vi
    this command is used to show the commands when you press up/down keys
  6. oslevel -g
    Displays the version of operating system
  7. prtconf
    Displays system configuration information

Tuesday, May 5, 2009

Starting SVN server (svnserve)

Main >> SVN >> Starting SVN server (svnserve)


To start SVN server that is svnserve, follow the steps below
  1. Browse to the path /usr/svn/custom/bin
  2. Run the Daemon
    ./svnserve --daemon --root /usr/svn/SVN_REPOS
Thats all it needs to start the SVN server that is served by svnserve.

Configuring access to SVN repository

Main >> SVN >> Configuring access to SVN repository


Now that we have repository, the next step is to access it. Here are a few steps to do so.
  1. Browse to the directory /WAS/SVN/SVN_REPOS/conf

  2. Open the svnserve.conf file in a text editor, and uncomment the [general], anon-access = read, auth-access = write, and password-db = passwd lines. Save.

    svnserve.conf

    ### This file controls the configuration of the svnserve daemon, if you

    ### use it to allow access to this repository. (If you only allow

    ### access through http: and/or file: URLs, then this file is

    ### irrelevant.)

    ### Visit http://subversion.tigris.org/ for more information.

    [general]

    ### These options control access to the repository for unauthenticated

    ### and authenticated users. Valid values are "write", "read",

    ### and "none". The sample settings below are the defaults.

    anon-access = read

    auth-access = write

    ### The password-db option controls the location of the password

    ### database file. Unless you specify a path starting with a /,

    ### the file's location is relative to the conf directory.

    ### Uncomment the line below to use the default password file.

    password-db = passwd

    ### The authz-db option controls the location of the authorization

    ### rules for path-based access control. Unless you specify a path

    ### starting with a /, the file's location is relative to the conf

    ### directory. If you don't specify an authz-db, no path-based access

    ### control is done.

    ### Uncomment the line below to use the default authorization file.

    # authz-db = authz

    ### This option specifies the authentication realm of the repository.

    ### If two repositories have the same authentication realm, they should

    ### have the same password database, and vice versa. The default realm

    ### is repository's uuid.

    # realm = My First Repository

  3. Open the passwd file in a text editor, uncomment the [users] line, and add the username and password you want to use when connecting to your subversion server. Save.


    passwd

    ### This file is an example password file for svnserve.

    ### Its format is similar to that of svnserve.conf. As shown in the

    ### example below it contains one section labelled [users].

    ### The name and password for each user follow, one account per line.

    [users]

    # harry = harryssecret

    # sally = sallyssecret

    root = pass1234

    admin = admin

    manoharn = mani1234

    amitd = amitd

    ravi = ravik

Thats all here. We have created the repository and also configured access to it. Now try accessing it using the user names given in the passwd file.