Semantic web refers to the extension of the World Wide Web (WWW) and it will provide a common framework which makes data available for reusing and sharing. Ontology is the backbone of semantic web which is used to access relational database in semantic web. This paper proposes a new approach which enables semantic web application to access distributed relational databases. The method involves two main phases. In the first phase, have focus to construct one or more local ontologies. In the second phase, have focus to construct a global ontology to access distributed relational databases.