Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to know if oracle style object oriented database code can be written in mysql, postgresql or any OSS database softwares. I don't want to install the massive oracle db on my ubuntu to learn minimum database programming

EDIT1: After installing orafce when I did the following

CREATE TYPE addr_obj_typ AS OBJECT (
    street          VARCHAR2(30),
    city            VARCHAR2(20),
    state           CHAR(2),
    zip             NUMBER(5));

And I got this error:

ERROR:  syntax error at or near "object"
LINE 1: create type addr_obj_typ as object
share|improve this question
up vote 3 down vote accepted

Postgres is probably closest to Oracle, especially if you install the Oracle support functions for PostgreSQL Install postgresql-8.4-orafce

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.