Quantcast
Channel: Planet Ubuntu
Viewing all articles
Browse latest Browse all 17727

Diego Turcios: Frequently Problems when we use Oracle in Ubuntu

$
0
0

When we begin to work on Oracle in Ubuntu. We have some troubles to run Oracle. Some of the common
mistakes it gives us is that the user is not part of the dba group, or similar errors.I am living a
 small guide I did thanks to many google search, so if you want to solve this troubles do the fallowing.

First of all we should add our user name to the dba group.
So we open the terminal an we do the fallowing

sudo usermod -a -G dba your_username

After this we do

sudo chmod g+w /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log

With this we are going to have the menu links “Start Database” and “Stop Database” available for working.

I will recommend user who are going to use frequently Oracle to enable database autostart

For this we do the fallowing

sudo nano /etc/default/oracle-xe

We look for the following text

ORACLE_DBENABLED=false

and we change it to true

ORACLE_DBENABLED=true

Now we do the fallowing

sudo gedit /etc/profile

And we add to the end of the file the fallowing file

. /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh

After this we do the fallowing

sudo cp /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh_original

sudo nano /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh

We change

#!/bin/sh

to

#!/bin/bash

One frequently problem using the SQL command line

When we are going to use the sql command line by the first time. Many users got the problem that we need to enable some permissions. For that we do the fallowing on the terminal

” sudo chmod 6751 $ORACLE_HOME/bin/oracle”

And thats all. If you want to read this article on spanish

http://blog.diegoturcios.net16.net/?p=606


Viewing all articles
Browse latest Browse all 17727

Trending Articles