Friday, February 13, 2009

Quick installation -Oracle XE on Ubuntu(Debian-Like)

Olá,

Agora pouco fiz uma instalação rápida no Ubuntu,para testar com o Jdeveloper.Nesta VM em casa ,uso pouco,então como já tenho uma outro no escritório com Oracle versão Enterprise,só precio para criar tabelas,testar queries e etc.

Let's do it!

1. Abra o arquivo sources.list que fica no diretorio /etc/apt/.

No meu terminal ficou assim:

root@JAPAO:~# vi /etc/apt/sources.list

2. Adicione esta linha ao arquivo sources.list:

deb http://oss.oracle.com/debian unstable main non-free

Salve o arquivo.(No vi use o "w" para salvar e "q" para sair).

3. No terminal(prompt) digite:

# wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | sudo apt-key add

4. Atualize com o comando:

root@JAPAO:~# apt-get update

Aparecerá no prompt algo do tipo:

Hit http://br.archive.ubuntu.com intrepid Release.gpg
Ign http://br.archive.ubuntu.com intrepid/main Translation-en_US
Ign http://br.archive.ubuntu.com intrepid/restricted Translation-en_US
Ign http://br.archive.ubuntu.com intrepid/universe Translation-en_US
Ign http://br.archive.ubuntu.com intrepid/multiverse Translation-en_US
Hit http://br.archive.ubuntu.com intrepid-updates Release.gpg

...

5. Caso apareça no prompt a mensagem:

W: GPG error: http://oss.oracle.com unstable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2E2BCDBCB38A8516
W: You may want to run apt-get update to correct these problems

Rode novamente o comando:

root@JAPAO:~# apt-get update

6. Instale o Oracle XE:

root@JAPAO:~# apt-get install oracle-xe

Aparecerá algo sim:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.27-7 linux-headers-2.6.27-7-generic
Use 'apt-get autoremove' to remove them.

...

7.Confgure o Oracle XE com o comando:root@JAPAO:~# /etc/init.d/oracle-xe configure

Oracle Database 10g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 10g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press <Enter> to accept the defaults.
Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]:8080

...

Finalize as configurações .

Pronto!Pode usar o seu Oracle XE no Ubuntu.

Você tem a opção gráfica e além da tradicional linha de comando do sqlplus.



Não se esqueça que o o Oracle XE tem algumas limitações,para maiores informações consulte:

http://www.oracle.com/technology/products/database/xe/index.html

Qualquer dúvida,deixe um comentário.

Abs,

3 comments:

Anonymous said...

Cara, estou tentando instalar o oracle enterprise mas não consigo. Pesquisei na internet e vi que devo criar grupo dba e tal e mais outras coisas. Mas não acho nada que tenha um passo a passo já que sou novo no ubuntu. Se puderes me ajudar.

Grato

Wagner

Unknown said...

Fala Wagner,

Sim cara,tem uma serie de passos a ser seguidas.Nada muito dificil.
Vou te passar um link com um step-by-step.

Qual o seu SO e HW?Ubuntu qual versao?

Mesmo assim segue:

A instalação é muito parecida para linux ou unix.

http://www.oracle-base.com/articles/10g/Articles10g.php#DB10gInstallations

http://imasters.uol.com.br/artigo/8256/oracle/instalacao_oracle_database_11g_em_linux_rhel_4/

http://profissionaloracle.com.br/blogs/rodrigoalmeida/2009/02/27/criando-um-banco-de-dados-10g-manualmente-no-linux/

Qualquer duvida posta que a gente testa e vê onde está dificil.

Anonymous said...

Olá Júlio, valeu pelos links, mas como sou meio leigo em linux fiquei perdido.

Estou utilizando o ubuntu 9.04( meu pc também tem windows, então para o linux criei 2 partições, uma 10gb e outro de 36gb) e pelo que li nos links deve-se primeiro instalar e preparar o ambiente para o oracle enterprise. Aí jah fico na dúvida de como fazer isso, instalar os pacotes, criação de um "um FileSystem (Mount Point /u01 ou /app/oracle)" como vi no site do uol..enfim, não sei nem como começar esta primeira parte.


Grato

Wagner