Rohit Prabhakar

I build agentic revenue systems for Fortune 50 companies

  • Digital Transformation
  • Leadership
  • Marketing
  • Writing
  • Home
  • Privacy Policy

Database Migration from Postgres to SQL Server or any other DB to SQL Server

March 24, 2010 by Rohit Prabhakar 2 Comments

Upgrade to SQL Server 2000 and SQL Server 7.0

In order to migrate a database from POSTGRES to MS SQL Server use a very powerful set of tools called Data Transformation Services (DTS). These tools can help you perform these tasks in Microsoft SQL Server 2000. DTS can help you import, export, and/or transform data from various sources to single or multiple locations. Please refer to a very good illustrative article for all details at TechRepublic.

In order to migrate data from postgres please install an ODBC driver for postgres so that the DTS can communicate with the postgres. Once this is done use import/export or copy database wizard available in MS SQL Server. Create a DTS job on your MS SQL Server and schedule it using dtsrun.

Upgrade to SQL Server 2005

If you are migrating to SQL Server 2005 you can use Import/Export wizard provided by Integration Services package (SSIS) or even the Data Transformation Services (DTS).

In order to use SSIS you need to have SQL Server Business Intelligence Development Studio installed. A very nice tutorial that illustrates how to use the import/export on SSIS is available at Database Journal written by Gregory A. Larsen

If you are confused between DTS and SSIS please refer to a very good discussion on Simple Talk. Laso refer to MSDN for better details.

Good resource on Postgres.

Reblog this post [with Zemanta]

Filed Under: Programming, Technology, The Frontier Tagged With: Business Intelligence Development Studio, Data Transformation Services, database, database migration, FAQs Help and Tutorials, Microsoft sql server, Microsoft SQL Server 2000, migrate data, migrate database, migrate db2 to sql server, migrate My SQL to sql server, migrate oracle to sql server, migrate postgres to sql server, oracle, postgres, rohit, SQL SERVER, SQL server 2000, SQL server 2005, SQL server 7, SQL Server Integration Services

Address already in use: NET_Bind, ORBX0390E on WAS

March 19, 2010 by Rohit Prabhakar 4 Comments

On WebSphere Application Server (WAS) if you are getting a similar error

ORBX0390E: Cannot create listener thread. Exception=[ > java.net.BindException: Address already in use: NET_Bind ].

The port to be used by the WAS is being used by some other service. Please check which application is using the port and kill the process or restart your machine.

For more information go to:

http://publib.boulder.ibm.com/infocenter/tivihelp/v2r1/index.jsp?topic=/com.ibm.IBMDI.doc_6.1.1/pdguide23.htm

Filed Under: Programming, Technology, The Frontier Tagged With: Address already in use, Address already in use: NET_, java.net.BindException, NET_Bind, ORBX0390E, ORBX0390E: Cannot create listener thread. Exception, rohit, WAS, Websphere

IBM Websphere: Change config if machine name or network name changed

March 16, 2010 by Rohit Prabhakar 3 Comments

Recently you changed the machine name or network name and now you are facing problems with the IBM WebSphere. The behavior of the application server has turned weird as it does not stop when asked to stop from the console or the menu etc.

In order to fix this problem we can update the new name wither manually or from admin UI of IBM WebSphere.

MANUAL

  • Open the serverindex.xml in an editor. C:WS6AppServerprofilesdefaultconfigcellsLTL3AHM4MNode01CellnodesLTL3AHM4MNode01serverindex.xml (This path may be different on your machine)
  • Replace all the instances of the old computer name with the new name
  • Save

ADMIN UI

You can also do this from the Admin console of the server.

  • Go to Click Servers > Application servers > server1
  • Select Communication > Ports
  • Over here you will see the old host name in the Host column.
  • Click on every port name and change the host value to the new value.

Click Save when all Host values have been updated.

Filed Under: Programming, Technology, The Frontier Tagged With: How to Change config, IBM Websphere, machine name changed, network name changed, rohit, unable to start websphere, unable to stop websphere, Websphere, websphere issues, websphere problems

How the Start or Stop a IBM Websphere Profile

February 27, 2010 by Rohit Prabhakar Leave a Comment

Using: WAS 6.1, Eclipse 2.31.1, Windows XP

FROM WINDOWS START MENU

Start > All Programs > Websphere Installation > Profiles

Start: Select “Start the Server”

Stop: Select “Stop the Server”

FROM ECLIPSE

Go to: Configure Server

From Servers select Websphere 6.1

Specify Websphere Home Directory, which should point to the “AppServer” location

Specify the required Profile

Specify the Node Name

Press Apply

Press OK

Start: Select “Start”

Stop: Select “Stop”

FROM COMMAND PROMPT

Start: startServer [serverName] -profile [profileName]

Stop: stopServer [serverName] -profile [profileName]

Filed Under: Programming, Technology, The Frontier Tagged With: 6.1, How to start, How to stop, IBM, IBM Wepbsphere, instance, profile, rohit, start profile, stop profile, stop server, stop sever, stop WAS, WAS, WAS profile, Websphere, websphere instance, Websphere profile

How to Use WAS profiles to create multiple independent user configurations: IBM Websphere

February 26, 2010 by Rohit Prabhakar Leave a Comment

How to Use WAS profiles to create multiple independent user configurations sharing the same install binaries. This is almost like having multiple servers.

Server: IBM Websphere Application Server 6.1

Tool Used: Use the Profile Management Tool

Note: WAS instances in version 5 are Profiles in v 6

In WAS 6 files are divided into 2 parts Product files and User Data. Hence in order to have multiple instances for different purposed we can have separate User Data sets and these are called as profiles in WAS 6.

By doing this you escape the need of installing multiple servers on the same machine and especially in development environment you can easily control which profile to start (saves lot of resources)

The command is in the following directory:

<was_root>/bin/pmt.sh on UNIX/LINUX

<was_root>binpmt.bat for WINDOIWS


Select “Application Server”

Click “Next”


Select “Advanced Profile Creation”


Don’t Deploy Default Application


Provide an appropriate Name and the default location of the profile

Select the option ” Create the server using development template” if you are not deploying this to a production server and for dev purpose else keep this unchecked.


Give a node name or keep it as it is

Change the Host name to the network name of the server if required


Don’t Select “Enable Administrative Security”


Change the port values as required. (Don’t forget to keep a copy of the port number assigned)


Unselect the “Run the application server process as window service” if you want to have a manual control on the server. As I am using this in development environment I don’t want my server to eat all resources on startup.


Skip this screen


Press “Create”


Select “Launch the first steps console” and verify the profile.

Recommended Reading*

Filed Under: Programming, Technology, The Frontier Tagged With: 6.1, Application, control start, control startup, IBM, instances, multiple servers, Profiles, rohit, selective application, Server, start only, WAS, Websphere, Websphere Application Server

Java Tiger (Java 5) is a history

December 16, 2006 by Rohit Prabhakar Leave a Comment

Java Tiger (Java 5) is a history now after one more release from the sun, now we have Java 6. Sun has finally announced the availability of Java Standard Edition 6‘ final release.

The new release has an improved JIT, with better runtime analysis. This has been well tested and agreed upon by the users of the pre-release version. Those who used the pre-release version have put the improvement in performance between 5%- 24%. The new release also has dynamic language support as now it comes with JavaScript engine (Netscape’s Rhino) and support for many other scripting languages like Ruby, and Python.

For the guys who are working with the rich clients, the new release has splash screen, system tray support etc.

The new Java6 profilers and debuggers can now attach to a running JVM without specifically using a debugging-capable configuration. For example, if a problem is found at run-time for a production server, a debugger can attach to it without restarting the server, a valuable feature for issues that show up after the server has been running for a long period. This is a great feature for the guys in the enterprise community.

You can read more in detail at http://java.sun.com/javase/6/

Happy Programming!

content from http://prabhakars.blogspot.com/atom.xml

Filed Under: Programming, The Frontier Tagged With: Chandigarh, Computers, Java, Prabhakar, Rohit Prabhakar, Tiger

Logical Versus Physical Database Modeling

August 11, 2005 by Rohit Prabhakar 8 Comments

After all business requirements have been gathered for a proposed database, they must be modeled. Models are created to visually represent the proposed database so that business requirements can easily be associated with database objects to ensure that all requirements have been completely and accurately gathered. Different types of diagrams are typically produced to illustrate the business processes, rules, entities, and organizational units that have been identified. These diagrams often include entity relationship diagrams, process flow diagrams, and server model diagrams. An entity relationship diagram (ERD) represents the entities, or groups of information, and their relationships maintained for a business. Process flow diagrams represent business processes and the flow of data between different processes and entities that have been defined. Server model diagrams represent a detailed picture of the database as being transformed from the business model into a relational database with tables, columns, and constraints. Basically, data modeling serves as a link between business needs and system requirements.

Two types of data modeling are as follows:

* Logical modeling
* Physical modeling

If you are going to be working with databases, then it is important to understand the difference between logical and physical modeling, and how they relate to one another. Logical and physical modeling are described in more detail in the following subsections.

Logical Modeling

Logical modeling deals with gathering business requirements and converting those requirements into a model. The logical model revolves around the needs of the business, not the database, although the needs of the business are used to establish the needs of the database. Logical modeling involves gathering information about business processes, business entities (categories of data), and organizational units. After this information is gathered, diagrams and reports are produced including entity relationship diagrams, business process diagrams, and eventually process flow diagrams. The diagrams produced should show the processes and data that exists, as well as the relationships between business processes and data. Logical modeling should accurately render a visual representation of the activities and data relevant to a particular business.
Note
Logical modeling affects not only the direction of database design, but also indirectly affects the performance and administration of an implemented database. When time is invested performing logical modeling, more options become available for planning the design of the physical database.

The diagrams and documentation generated during logical modeling is used to determine whether the requirements of the business have been completely gathered. Management, developers, and end users alike review these diagrams and documentation to determine if more work is required before physical modeling commences.

Typical deliverables of logical modeling include

* Entity relationship diagrams
An Entity Relationship Diagram is also referred to as an analysis ERD. The point of the initial ERD is to provide the development team with a picture of the different categories of data for the business, as well as how these categories of data are related to one another.
* Business process diagrams
The process model illustrates all the parent and child processes that are performed by individuals within a company. The process model gives the development team an idea of how data moves within the organization. Because process models illustrate the activities of individuals in the company, the process model can be used to determine how a database application interface is design.
* User feedback documentation

Physical Modeling

Physical modeling involves the actual design of a database according to the requirements that were established during logical modeling. Logical modeling mainly involves gathering the requirements of the business, with the latter part of logical modeling directed toward the goals and requirements of the database. Physical modeling deals with the conversion of the logical, or business model, into a relational database model. When physical modeling occurs, objects are being defined at the schema level. A schema is a group of related objects in a database. A database design effort is normally associated with one schema.

During physical modeling, objects such as tables and columns are created based on entities and attributes that were defined during logical modeling. Constraints are also defined, including primary keys, foreign keys, other unique keys, and check constraints. Views can be created from database tables to summarize data or to simply provide the user with another perspective of certain data. Other objects such as indexes and snapshots can also be defined during physical modeling. Physical modeling is when all the pieces come together to complete the process of defining a database for a business.

Physical modeling is database software specific, meaning that the objects defined during physical modeling can vary depending on the relational database software being used. For example, most relational database systems have variations with the way data types are represented and the way data is stored, although basic data types are conceptually the same among different implementations. Additionally, some database systems have objects that are not available in other database systems.
Implementation of the Physical Model
The implementation of the physical model is dependent on the hardware and software being used by the company. The hardware can determine what type of software can be used because software is normally developed according to common hardware and operating system platforms. Some database software might only be available for Windows NT systems, whereas other software products such as Oracle are available on a wider range of operating system platforms, such as UNIX. The available hardware is also important during the implementation of the physical model because data is physically distributed onto one or more physical disk drives. Normally, the more physical drives available, the better the performance of the database after the implementation. Some software products now are Java-based and can run on virtually any platform. Typically, the decisions to use particular hardware, operating system platforms, and database software are made in conjunction with one another.

Typical deliverables of physical modeling include the following:

* Server model diagrams
The server model diagram shows tables, columns, and relationships within a database.
* User feedback documentation
Database design documentation

Conclusion

Understanding the difference between logical and physical modeling will help you build better organized and more effective database systems. This article described both of these models.

content from http://prabhakars.blogspot.com/atom.xml

Filed Under: Programming, The Frontier Tagged With: Chandigarh, database, logical, modelling, physical, Rohit Prabhakar

  • « Previous Page
  • 1
  • 2

Copyright © 2026 · Genesis Framework · WordPress · Log in