Step by Step Installing Oracle Database 10g Release 2 On Linux (CentOS)
Step by Step Installing Oracle Database 10g Release 2 On Linux (CentOS)
Home
Step by Step Oracle guides
Oracle VIDEO Tutorials
My Oracle e-books
Exclusive Interviews with Top Oracle Experts
About me
My Photos
Your email:
1 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
May 2009
M T W T F S S
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
« Apr Jun »
2 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Administration
DBA scripts
Expert Interviews
Interview questions
My abstracts from Documentation 10gR2
Oracle on Linux
Oracle Utilities
Qafqaz University
RAC issues
RMAN Backup and Recovery
SQL and PL/SQL
Uncategorized
Video Tutorials
3 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Log in
Entries (RSS)
Comments (RSS)
4 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
5 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
In order to use Oracle Database, first of all we need to setup Oracle Software. Installation of Oracle Database on Windows is
very easy. By running setup.exe from installation CD of Oracle for Windows, we can invoke a setup and by clicking NEXT
buttons we can install Oracle Software and Database without any problem. We don’t need any prerequisite actions before
installation. But in Linux it’s different. If we want to install Oracle Database on Linux OS, we should follow some
prerequisite actions.
Today, we’re going to install Oracle Database on CentOS. To do it, we use last version of CentOS (the latest release for now)
– “CentOS-5.2” and mostly used release of Oracle Database – “Oracle Database 10g Release 2”. And we’re going to
practice this whole project on VMware 6.0.0
Before starting, we need to install VMware. Then, we need to install CentOS on VMware. After that, we are going to install
Oracle Database. You should refer to my previous posts in order to install VMware and Centos
But there’s one thing we should keep in mind. During installation of CentOS, on the “package lists” page, we should behave
differently. It will be discussed in the next paragraphs.
As you see from the list above, in order to setup Oracle Database, we need to change some parameters in the system.
Changing these parameters each time could lead to mistakes and waste of time. The main purpose of our article is to
automate all these processes and save your time. For this purpose we’re going to use “Shell Script”
- 1GB RAM
- Depending on type of the installation, 1.5-3.5 GB free space for Oracle Software
6 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Getting familiar with requirements mentioned above, we need to get hardware information of our system. To check the size
of RAM, Swap space and tmp directory, we run these commands:
While installing CentOS, we have to install some rpm packages. During the installation, on the installation window you get
list of packages. Here, we select “Customize” choice
On “Customized” window, we check required packages and uncheck packages that are not required for Oracle Installation
In the packages list, check following packages. Uncheck all packages that are not in the list below
Desktop Environments
Applications
Graphical Internet
Development
7 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Development Libraries
Development Tools
Java Development
X Software Development
Servers
Web Server
Base System
Administration Tools
Base
Java
System Tools
X Window System
Furthermore, after installation of CentOS, we have manually to install these four rpm packages. Surely, you can select them
(except libaio-devel package) from the package list during setup, for many people who don’t want to find these packages in
the package list, installing it manually after system installation is the best option. These are packages which should be
installed before Oracle installation
- compat-db-4.2.52-5.1.i386.rpm
- sysstat-7.0.2-1.el5.i386.rpm
- libaio-devel-0.3.106-3.2.i386.rpm
- libXp-1.0.0-8.1.el5.i386.rpm
In order to install these packages, you can use rpm –Uvh command by changing directory to CentOS directory inside the CD
(DVD) of CentOS installation as shown below
8 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
After installing above mentioned packages, we need to change some Kernel parameters and make them match to Oracle
requirements. Parameters which should be changed are shown below
shmmax 2147483648
shmmni 4096
shmall 2097152
shmmin 1
semmsl 250
semmns 32000
semopm 100
semmni 128
file-max 65536
ip_local_port_range 1024 65000
rmem_default 1048576
rmem_max 1048576
wmem_default 262144
wmem_max 262144
We do all these changes in the /etc/sysctl.conf file by adding these lines to that file:
kernel.shmmax = 2147483648
kernel.shmall = 2097152
kernel.shmmni=4096
fs.file-max=65536
net.ipv4.ip_local_port_range=1024 65000
net.core.rmem_default=1048576
net.core.rmem_max=1048576
net.core.wmem_default=262144
net.core.wmem_max=262144
9 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
After appending those lines we save that file and run the following command to make these changes effective immediately in
the running system
/sbin/sysctl –p
Setting Shell limits for the Oracle UserTo improve the performance of the software on Linux systems, you must increase
the following shell limits for the oracle user:
3. In order to use Oracle Software, we need to make a change in “oracle” user’s buffer size and number of opened file
descriptors. In order to do it, we add below lines to /etc/profile file
ulimit -p 16384
ulimit -n 65536
else
fi
fi
One of the first checks performed by the Oracle Universal Installer (OUI) is to determine if the host platform is supported.
10 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
The OUI uses the file /etc/redhat-release to determine the platform. For the case of Red Hat Enterprise Linux, Oracle
Database 10g Release 2 expects either RHEL 3 or RHEL/OEL 4.
The easiest way to get around this error is to modify the /etc/redhat-release file replacing the current release information
(CentOS release 5 (Final)) with the following:
redhat-4
Before modifying /etc/redhat-release, make a backup copy of the file and ensure to replace the original one after the Oracle
installation and patch process has been completed.
cp /etc/redhat-release /etc/redhat-release.original
In this step, we create “oinstall” and “dba” groups and “oracle” user to install Oracle Software, and create new Database
groupadd oinstall
groupadd dba
passwd oracle
11 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
First of all, we need to download Oracle Database 10g R2. To download it, use this link:
http://download.oracle.com/otn/linux/oracle10g/10201/10201_database_linux32.zip
After download finish, we need to copy this file to the Virtual Machine. To copy it, we have two choices:
Here, we’re going to copy the zipped file using second technique. With any ISO creator program, create .iso file from zipped
installation file of Oracle Database. And then mount it to the Virtual Machine as shown below:
Now switch to the desktop of CentOS, right click on DVD of CentOS installation on the desktop and click “Eject” as shown
below:
12 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Now, create install folder on the /tmp directory, change owner of this folder to “oracle”, copy this file into /tmp/install
directory
13 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
If you want to create new database after software installation, check “Create Starter Database” checkbox and enter database
name and password, then click Next
14 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
As we’ve checked “Create Starter Database” at the first page of the installation, new database will be created automatically
after software installation
15 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
After database created, you’ll get information about your database, Enterprise Manager and Spfile
Click Ok. In the below window, you’ll get location for two scripts which you should run as a root user to complete last
configurations. Open new Terminal window and run those two scripts:
Now reboot your server and login as oracle user and start newly created database.
16 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
If we want to login to our database, we run sqlplus. But before it, we need to set Environment Variables. We can do it
automatically by adding them to .bashrc file in the /home/oracle directory as below:
export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
17 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
As you see, after setting Environment Variables to their correct values, I was able to login to SQL*Plus using two ways.
Now, let’s start Oracle Enterprise Manager. In order to use EM, we should firstly start listener. In production environment,
you need automate database, listener and EM startup. To automate them, please refer to one of my previous blogs –
“Automatically StartUp and Shutdown an Oracle Database in Linux OS”
Now, we can login to EM page to administer our database using above given address:
http://localhost.localdomain:1158/em/
Enter user sys and its password, then select “SYSDBA” as a role and click Login
18 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Using Enterprise Manager, you can administer your database in very easy steps
By following above mentioned steps we were able to install Oracle 10g R2 on CentOS 5. But if we carry out frequent tests
and as a result of these tests each time we are to install Oracle Database, then we need to automate installation of Oracle
Database. I would suggest two options to overcome this problem:
1. To install CentOS+Oracle on VMware and copy image of VMware to elsewhere, then each time use this image to get
fresh copy of Oracle Database
2. To automate installation of Oracle Database by using Shell Script
1. Firstly, I usually create new Virtual Machine with 10GB size. Then, I install CentOS on it and create an Oracle
Database with all its configurations. Then I shut down Virtual Machine and copy all the folders to another directory.
Usually, I create two copies of the Virtual Machine. Then I do all my tests on the first Virtual Machine. When it
becomes useless, I shut down and delete it as a whole folder, open second Virtual Machine which I’ve copied and
continue my tests.
2. Second way is the best method of approach to the problem. For this, I create a shell script and write all steps and do all
configuration changes from this script. By running this script once, all configurations needed for Oracle Installation
will be changed automatically and we will only be asked for new oracle user’s password and next we’ll see installation
page open.
Automating installation of Oracle Database 10g Release 2 on Centos 5 using Shell Script
To automate this job, we wrote a Shell Script. Before running this script, we should follow some steps as shown below:
1. Firstly you should know that before running this script we should create install directory in /tmp directory and copy
zipped installation file of Oracle to this directory with this installation script
2. Before running this script we must be sure that installation DVD of CentOS has been inserted or installation DVD image of
CentOS mounted to the system. You can check it by running this code:
19 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
3. After installation completes, change the following Environment Variables and alias name into proper names which you’ve
used during installation in the .bashrc file
If everything is OK as mentioned above, we change directory to /tmp/install folder and run install.sh file. By running this
shell script, all configurations needed for installation will be automatically changed and only thing asked will be oracle user’s
password. After that we’ll see Oracle Database installation page. By clicking Next buttons we’ll be able to install Oracle
Software and Database very easily
Now, let’s install Oracle Database 10g using this Shell Script
First of all, we need to create install folder in the /tmp directory and copy zipped installation file of Oracle Database 10g to
/tmp/install directory with install.sh script and check their existence. After that we need to mount Centos DVD once more,
because we’re going to install some packages that were not installed with CentOS. After getting below screen, you can start
installation
We have zipped installation file of Oracle Database 10g in the /tmp/install directory
We mounted CentOS DVD
20 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Here, enter oracle user’s password. Then click ok. After this step, zipped file will be unzipped
That’s all! After getting this page, you should follow above mentioned installation steps in which we installed Oracle
Database manually.
Using automatic install script we’ve avoided of all configuration settings and got Oracle 10gR2 installer page opened
successfully
21 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
cd /tmp/install
#Install all packages that are not installed during OS installation and that are required packages for Oracle Database
10gR2
EOF
22 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
ulimit -p 16384
ulimit -n 65536
else
fi
umask 022
fi
EOF
EOF
kernel.shmmax = 2147483648
kernel.shmall = 2097152
kernel.shmmni=4096
fs.file-max=65536
net.ipv4.ip_local_port_range=1024 65000
net.core.rmem_default=1048576
net.core.rmem_max=1048576
23 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
net.core.wmem_default=262144
net.core.wmem_max=262144
EOF
/sbin/sysctl -p
cp /etc/redhat-release /etc/redhat-release.original
#Create new groups and “oracle” user and add this user to group
groupadd oinstall
groupadd dba
passwd oracle
export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
24 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
export ORACLE_SID=mydb
EOF
EOF
unzip 10201_database_linux32.zip
cd /tmp/install/database
xhost +
Like
This entry was posted on Friday, May 1st, 2009 at 10:14 am and is filed under Administration, DBA scripts, Oracle on Linux.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own
site.
213 Responses to “Step by Step Installing Oracle Database 10g Release 2 on Linux (CentOS) and
AUTOMATE the installation using Linux Shell Script”
1. ahmet Says:
May 6th, 2009 at 10:47 am
VMware Server 2.0 ‘da,Oracle Enterprise Linux 5 update 4 üzerine Oracle 10g r2 kurarken son adımda database
kurulumunda aşağıda bulunan linke koyduğum hatayı aldım;
http://www.resimbank.org/share-75A2_4A0121A7.html
25 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
2. ahmet Says:
May 6th, 2009 at 12:58 pm
Merhaba tekrar,
compat-db-4.2.52-5.1.i386.rpm
sysstat-7.0.2-1.el5.i386.rpm
libaio-devel-0.3.106-3.2.i386.rpm
libXp-1.0.0-8.1.el5.i386.rpm
Merhaba Ahmet
Hataya bakdim. Amma gorunduyu gibi Oracle Software kurulmus, ama Oracle Database-in kurulumu ashamasinda
Enterprise Manager-in configuration-inda hata almishsin. Error-da yazildiqi gibi installation-a devam edip Enterprise
Manager-in konfigurasiyasini sonradan emca utility-si ile yapa bilirsin
Amma gosterdiyim 4 paketi kurma ZORUNDASIN. Belki onlar otomatik kurulmushdur (eger CentOS-u full olarak
install etdiysen)
Onlari rpm -Uvh ile bir daha install etmeyi dene. Amma senin Oracle Datbase-in normal kurulmushdur bence.
Database-e koshulup calisdiqina baka bilirmisin?
4. Mariane Says:
May 7th, 2009 at 7:05 pm
Hi Kamran,
Thanks in advance.
Regards,
mariane
[root@localhost database]xhost +
[root@localhost database]./runInstaller
2. Additionaly, after creating oracle user, before installation you can logout from root user, login with oracle user and
try installation. I think you’ll success
Good Luck
26 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
6. Vijay Says:
May 24th, 2009 at 2:10 pm
Hi Kumaran,
It’s really wonderful about the articles you plblished in your web site.
I have question like I was in SAP for some time not really many opp are coming I want to start my carrier as Oracle
DBA on Unix – linux and I am hands on Unix and I have teaching exp as Oracle DBA long back 5 years ago about 1
year.
What do you suggest like should I continue my carrier as Oracle DBA or not ? If so On which flavour of unix do u
suggest….I do agree that Linux is available on free some time.
Thanks in Advance
Vijay
Hi Vijay
Firstly I want to notice that, my name is Kamran, not Kumaran. I’m from Azerbaijan, not from Pakistan
I strongly advice you to continue your career as Oracle DBA. It’s your choice. Start learning Oracle on Linux
(RedHat, CentOS and etc.)
Do practices, read documentations. Being Oracle DBA/Developer is a very good choice for your career. Good luck
Hi Kamran,
Hi Shyam
Keep going. Test all that written above and practice them step by step. I assume that it will help you more
Kamran,
afew days back, I installed oracle database 10.2 on mac os server 10.5.4.
27 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
No I didn’t
But there’re some beautiful articles written about this. One of them is :
http://www.williamrobertson.net/documents/install-oracle10g-intelmac.html
some more beautiful articles are also here. for your info
1. http://blog.rayapps.com/2009/04/12/how-to-install-oracle-database-10g-on-mac-os-x-intel/
2. http://www.pythian.com/news/1937/quick-install-guide-for-oracle-10g-release-2-on-mac-os-x-leopard-intel
3. http://www.nostalgix.org/blog/2005/05/install-oracle-10g-on-mac-os-x-104.html
Thanks.
Thanks Shyam for information. It will be useful for visitors who interest in Installing Oracle on Mac
Hi Kamran,
[bayu] – Indonesia
Hi Bayu
Welcome to my Blog! I’m happy to see you here
Kamran,
I installed oracle software 10.2 on mac os server first then create database using dbca. It went well but
I did not find HR user created by system by default.
Please refer to documentation for how to install manually the Sample Schema
http://download.oracle.com/docs/cd/B19306_01/server.102/b14198/installation.htm#I6806
28 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Hi,
[bayu]
You’re right Bayu. We use -g option when we want to give numeric value for the group
Thanks Imran
dear Kamran
i followed all steps in your blog, and done installing oracle on my computer with no error. but when i tried to open em(i
already started the listener), there’s an alert said “The connection was refused when attempting to contact
basdat.ittelkom.ac.id:1158″. i dont know, maybe the network parameter is incorrect(im using static IP address), but i
just dont know how to fix it, since im stil new to RHEL environment.
i hope you can help.
thanks, and sorry for my bad emglish, its my secondary language
-aditt-
Hi Kamran,
But the command is still not corrected
It’s still:
groupadd -g oinstall
groupadd -g dba
29 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Ups. I’ve forgotten Bayu. I’ve made that change. You can see
Hi Kamaran,
Excellent document.
regards
rezzu
Hi Rezzu
It is one of my plans to write a step by step article about it. But for now, I can only direct you to another well written
document about “how create standby database”. Please refer to below link
http://blogs.oracle.com/alejandroVargas/gems/DataGuardPhysicalStandbystep.pdf
Hi Aditt
I’m very happy that you were able to install Oracle on Linux usint this article.
In order to solve your problem, you can refer to below links. There’re so many suggestions and topics which were
discussed in forums
http://tinyurl.com/mhxbwc
thx kamran
i will check it out, i will let u know if its work, and if its not, perhaps i will back here
i think last time i installed oracle, i forget to start dbconsloe, hehe, and also something with .bashrc file, i just dont
understand, my bad.
so today i re-install the OS, rpm package, and then installing oracle, following steps in this blog, and also reading the
manual, and voila, its work, although i’m still a a little bit confused with ORACLE_HOME, ORACLE_BASE,
ORACLE_SID, export this, export that, etc, but its okay, oracle is working, and i can learn about those later hehe
30 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
regards
aditt
Hi Aditt
I’m very glad that this article was helpful
And DON’T be confused on exports. It’s very easy. You can have more than one database in your system. And each
time you run sqlplus and connect to database, Oracle SHOULD KNOW which database to connect. Thus, you export
ORACLE_SID and tell Oracle that now you want to connect to this database
For more information, you can refer to :
http://www.idevelopment.info/data/Oracle/DBA_tips/Unix/UNIX_4.shtml
http://ugweb.cs.ualberta.ca/~c391/manual/chapt3.html
Additonaly, now I’m working on Video Tutorial on “Oracle Installation”. For my first Video Tutorial, you can refer
below link:
http://kamranagayev.wordpress.com/2009/07/04/using-rlwrap-to-get-command-lines-history-in-sqlplus-video-tutorial/
Good Luck!
and the video, that’s a great idea, i wonder if i can download it, so i can watch it offline hehe
Hi Kamran,
Now a days, when I start database manually it took more time to start. However there is not huge data in my database
stored.
Thanks.
–Shyam
Hola Kamran Agayev, solo quiero decir que la guia es EXCELENTE. Muy buena.
¿Como puedo definir un ORACLE_SID? No me funciono el EM, porque no tengo definido el SID.
31 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Gracias
Hi Alejandro and thank you for your comment. Although it’s written in Spanish, I was able to translate it using google
You wrote:
My Answer:
If you use Windows, then use set ORACLE_SID=your_sid
If you use Linux, then use export ORACLE_SID=your_sid
Thanks men it is really help full for me .. Once again thanks a lot ..
Hi Kamran,
It’s really wonderful about the articles you published.
It’s really help me to understand how to install oracle on linux.
Its an Excellent document.
I am desperately searching for this type of document.
I followed all the steps which you mention in the blog.
I successfully installed the Oracle 10g on Linux.
But I got one error after restarting my Laptop.
When i try to connect to database url http://localhost.localdomain:1158/em
i am getting following error:-
ORA-12505 TNS:listener does not currently know of SID given in current description.
sir,
i want to install oracle 10g to learn oracle 10g dba please tell me which server/software i have to install.can i use same
server for oracle 10g developer for sql/plsql,please give me detail of computer configuration for installation
32 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
According to error you get, you need to shutdown the database, shutdown the listener and Enterprise manager. Then
open the database, listener and Enterprise Manager in these steps. You should open Database firstly, then listener and
then EM. Doing that way, you’ll be able to start Enterprise Manager without getting any error.
Good Luck
Hi Hema
If you want to install Oracle, you can use Oracle for Windows, it’s very easy. By clicking some “Next” buttons you’ll
succesfully install Oracle on Linux
If you want to install Oracle on Linux, you need to download CentOS (it’s free) and using this blog post try to install
Oracle on Linux
Good Luck
Hi Prageet
Try to connect to the database as follows:
But before connection, make sure you’ve set environment variables such as ORACLE_HOME, ORACLE_SID and
PATH
If you want to create another db on the same machine, firstly you need to set PATH variable to
$ORACLE_HOME/bin and run dbca command (Database Configuration Assistant) to create new database
There, you’ll find the name of each instance running on your host
You can post your questions on http://forums.oracle.com under Database-General topic to get more brief answers from
other DBAs
Good Luck
Once again thank you very much sir for your prompt reply.
It resolve my problem.
But when i create another database on same machine & after creation i restart the laptop & start listener & dbconsole
33 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
but after this i am not able to login in Enterprise Manager whose url is:
http://localhost.localdoamin:5500/em.
When i start dbconsole it start only my first database url:-http://localhost.localdomain:1158/em
I am able to connect my first database.But when i try to connect my second database it show me error:-
error:-”CANNOT ESTABLISH THE CONNECTION WITH LOCALHOST.LOCALDOMAIN”
I donot understand what is the problem.
Please help me.
Great Great Article, Good Job. I was able to install oracle on Linux (CentOS 5.2) and got it off the ground with the
help of Kamran’s Step by Step Guide.
Hi Prageet
I’d suggest you to post your question to OTN forum please. Don’t worry, I’m there
Hi Ghost Ryder. I’m so happy that my article was useful. Go on learning Oracle
Hi Prageet
You’re welcome. I’ll try to add more Step by Step explanation guides to help beginners to learn Oracle easily
53. TOP 5 Resources: Installing Oracle Database 10g Software « Oracle Top 5 References's Blog Says:
September 22nd, 2009 at 2:03 pm
[...] Step-by-step Installing Oracle Database 10g Release 2 on Linux (CentOS) [...]
Hi
Hi Tnks for sharing your experience can yo help my about step by step install physical standby white rman?
34 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Hi Mostafa. Unfortunately I haven’t created step by step instruction on how to create standby database using RMAN
yet. As you know I’m currently working on my RMAN book and there’s a one seperate chapter for “Creating physical
standby database using RMAN”
However, there’re a lot of examples over net which you can find by google-ing. Moreover, I’d suggest you to refer to
documentation
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rcmbackp.htm#i636377
Good Luck
With that you can connect to the server throw web browser:
http://localhost:5560/isqplus
Hi,
Nicolas.
Salam!zehmet deyilse mene komek ede bilersiz.men linuxa teze baslayiram bele 1 problemle uzlesmisem.oracle install
etmek ucun gosterdiyiniz emrleri etdim bu sehvi verdi.mumkunse komek ederdizde.cox sagolun!
There were errors encountered in trying to update the software you selected.
35 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
I just came across your site and am very delighted! I want to be part of your discussion group!
Keep up man!
I noted that you did not address the network aspect in the during the above installation of Oracle. I know you mention
during the creation of VMware machone you use a bridged network. Is it enough for the Oracle installation?
Thank you!
Atif Iqbal
(Bakuryu)
Hi Atif Iqbal. I’m so happy that this article has helped you
Hi pouctam
As we use VMware for testing purpose, it’s enough to use bridged network, although we have different options
Salam Huseyn
Uqurlar
Hi homonloo
I’d suggest you to start reading Oracle Documentation from http://tahiti.oracle.com (Especially 2 Days Administration
docs)
Start reading documentation, Install Oracle and do more practices. Moreover, I’d suggest you to read any OCA
preparation books, because they have lot of examples and practices than documentation
36 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Good Luck
your guide is the great among all the guides I searched in Google, THANKS
I have one inquery, If I install CentOS 5.4 64 bit version & Oracle 10g for Linux 64 bit, is this the same ?
I guess it’s same except they need different set of prerequisite .rpm, if it’s so, what are they ?
thanks
Thang
Hi Thankg
Thank you for your comment. Yes, you’re right. You need to install additional rpms, but all the steps are same
hey kamran
I want to tell you that I was installing oracle on linux since 10 days but by reading your tutorial I installed and
configured the oracle settings within 10 mins.
So you might be knowing how HAPPY I might be.
Now I want to know how to set editor for oracle so as to use ed cmd
I tried
export VIEWER=vi;
but this dint work please do tell me how to set editor..
Thank you Imran for your kind words. I’m also happy having students like you
export EDITOR=vi
37 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Kamram,
what are the specific prerequisites .rpm for Oracle 10g 64 bit on CentOS 5.4 64 bit ?
appreciate your help to list it here, so I will try it tomorrow
thanks
Thang
Hi
I just look at this link but it doesn’t relate to 64bit platform specifically, could you please explain why !?
thanks
@Thang
Good Luck
Hi Kamran,
I was looking for guides to install Oracle 11gR2 EE (plus OBIEE later) on CentOS 5.4,
it was really difficult to find some useful documentations..finally I found your guides..they seem to be very clear,
guess I can use them also for the new versions, CentOS 5.4 + ORA 11gR2…???
Have still a question regarding the selected packages, you say:
‘To install packages, especially for working with Oracle Server, select all options except Clustering and Storage
Clustering. Then select Customize now option and click Next’ +
‘Then, from Base System menu, select Legacy Software Support, System Tools and click Next ‘
Thanks a lot
Zeynel
Dear Zeynal. Sure not. But in case of selecting each rpm package inside the list and for quick installation, I suggest to
38 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
select them all. However, you only need those packages that are required for Oracle (they’re written in the installation
guide of each OS)
Congratulations Zeynel!
Dear Kamran,
Its an excellent document. I like your blog. I will stay in contact with you.
Dear Muhammad
You’re welcome and thank you for your comment.
I am total novice to CentOS as well as oracle. Just by following the steps mentioned here, I was able to successfully
install the oracle. Thanks a lot and keep up the good work. Thanks again.
Ajay
Dear Ajar
Welcome to my blog and thank you for your comment. I’m so happy for you
Good Luck!
Hi sir,
Actually I am doing My academic project so I need to Automate the VM installation and creation of VM and also load
mysql on that VM and test the query using Mysql benchmark sysbench.
can you give some instruction to Automate the above process?
Thanks in advance.
Merhaba Kamran
39 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Redhat EL5 ve Oracle 10g kurulu makinada rman ile ibm tsm üzerinden tape e bakup almak istiyorum.
yol gösterebilirmisin
şimdiden teşekkür
Kamran,
You have done a great job with this tutorial. I have found it incredibly useful in my installation on CentOS 5.4. I have
been working through some basic issues, such as a connection refusal when trying to launch the Enterprise Manager
Console. I was getting the following error message in the emoms.log file
WARN jdbc.ConnectionCache _getConnection.306 – Io exception: Then Network Adapter could not establish the
connection.
I checked to make sure that I have my firewall and virus control off. I am thinking that the issue may revolve around
the connection method. I will review the information that you provided on DHCP connections as this is currently my
set up. Any thoughts?
Best,
Brandon
Please make sure you’ve started the listener and then EM consequently
Can you give some instruction to Automate the VM machine ? like power on machine. after power on I want to launch
the window that already power on.I did the power on process using the VIX api and Still I am struggling with launch
the VM machine window. can u give some instruction how to do that?
Dear Jamsheer
thank you. Why I send you this because I saw your post like step by step to install the VMware.so I thought like that
you can help me.its ok. can you give some instruction that how to automate Mysql server installation using shell script
in linux?
40 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Merhaba Akin
This is a very very helpful post. I am installing Oracle 10g R2 on Centos 5. I followed all the steps but when I write
./runInstaller I get following error. Kamran I would be really thankful if you please help me in getting rid of this error.
Dear Habib
See the following link
http://kevinclosson.wordpress.com/2007/04/18/dont-install-oracle-on-linux-servers-with-long-kernel-names/
hi Kamran,
41 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Can you post some articles on how to do patching and upgrading from a version to another version.
i have some doubts about the upgrade.
Br
Chandu
Thanks for the wonderful articles, i liked the Rman series a lot.
Br
Chandu
Currently I’m working on the installation of Oracle 10g on OEL. I’ve noted your suggestion and try to work on it
hi Kamran,
i have successfuly install oracle on my ubantu machine but when i am writing sqlplus on console it’s showing sqlplus:
command not found…….plz help me connect oracle
Hi Prashant
Hey Prashant,
You Need to set ORACLE_HOME and PATH env variables,
First set ORACLE_HOME and then
set PATH=$ORACLE_HOME/bin:$PATH
To know your ORACLE_HOME view the inventory.xml file in your ContentsXML directory.
xhost +
42 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Vladimir
This guide is really nice .. It is usable for oracle 10 g installation on linux platform and centos linux
I found some error with my installation oracle 10g on centOS 5.4, when 62% install oracle : Error in invokin target
‘ntcontab.o’ makefile ‘/home/oracle/oracle/product/10.2.0/db_4/network/lib/ins_net_client.mk’ See ‘/home/oracle
/oraInventory/logs/installActions2010-06-16_07-19-27PM.log’ for details. Click ‘Help’, Retry’,'Ignore’,'Cancel’.
Best regards
A. Mulyana
Dear Mulyana
110. Installing Oracle on Linux CentOS « The Survival Guides's Blog Says:
August 10th, 2010 at 2:42 am
Hi Kamaran,
I am glad to find ur blog. I have started my career as an Oracle DBA. Can you please give me suggestions and share
some of ur experiences in this field.Looking forward to hearing from you.
Prathibha
Dear Kamran,
I found same error as Mulyana said, Error in invokin target ‘ntcontab.o’ makefile ‘/home/oracle/oracle/product/10.2.0
43 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
/db_4/network/lib/ins_net_client.mk’
Also I saw you answer : “Try to reinstall gcc and install Oracle Software again”
for this re-installation which packages must be uninstalled and witch packages must be installed again? I was confused
because there are many packages that their names start with gcc with varios version!
AoA Kamran,
God bless you for your efforts. You are doing a great service to other humans.
I am trying to install on CentOS 5.5. I am unable to install the following rpm’s, I get the error “no such file or
directory”: I have installed the packages that you have listed.
sysstat-7.0.2-1.el5.i386.rpm
libaio-devel-0.3.106-3.2.i386.rpm
Maybe they have different version number in 5.5, your example uses 5.2.
Jazakallah.
I’m sure that you haven’t checked to install sysstat and libaio-devel rpm’s during installation. Please make sure you’ve
checked them and let me know
Dear Moslem. I strongly believe that if you use the steps on installing rpms as I did, you’ll not get the above error and
will complete the installation successfully
AoA Kamran,
Thanks for the reply. Infact, I went ahead and installed Oracle 10g without these 2 rpm’s, and it is running well.
Jazakallah.
sysstat – This package provides the sar and iostat commands for Linux. Sar and iostat enable system monitoring of
disk, network, and other IO activity.
libaio-devel – This package provides header files to include and libraries to link with for the Linux-native
asynchronous I/O facility (“async I/O”, or “aio”).
44 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Dear kamran,
Thank you for your reply,
I can sucessfully install oracle but when I choose “install software only”.
Now when I use dbca to create my database, dbca window appares and I choose default options, but when I press
Finish button it doesn`t work without any error! only it remains on screen!
Let me know if you have any idea.
dbca does not create database and event does not report error!
when I press finish button to start database creation in final wizard page , it does not any action and this page remains
on screen without any error !
Is there any log file? or do you have any idea to find the reason of this problem?
Helo Kamran ,
I have a query that i have linux RHEL 5 installed on my machine and while installig Oracle 10g it shows that i should
install a lower version of LINUX like Linux 2,3,4. Can u help me out with the installation process.
It will be really kind of u if u give me the installation steps of installing Oracle 10g on rhel 5.
Thank You
Mohsin
Dear Mohsin
There’s no difference between installing Oracle on RHEL 5 and installing Oracle on CentOS or OEL (Oracle
Enterprise Linux)
So you can use my step by step explained video tutorial from the following link:
http://kamranagayev.wordpress.com/2010/04/25/video-tutorial-installing-oel-and-oracle-10gr2/
Or you can use my Step by Step explained installation guide of installing Oracle 10g on CentOS 5 :
http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-
centos-and-automate-the-installation-using-linux-shell-script/
Good Luck!
Hi Kamran,
I m very new to oracle and linux. I wanted to install oracle 10g on Enterprise Linux OS
on my PC. Actually this was a bit difficult task for the beginner like me.
45 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
I followed your step by step instruction in this tutorial, and i got oracle
installed successfully with little changes.
—– Parag
thanks
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Failed <<<<
Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2010-11-29_12-05-19AM
/installActions2010-11-29_12-05-19AM.log
cp /etc/redhat-release /etc/redhat-release.original
echo “redhat-4″ > /etc/redhat-release
And please extract and run the installation zip file using “oracle” user
Error
Listener refused the connection with the following error: ORA-12516, TNS:listener could not find available handler
with matching protocol stack The Connection descriptor used by the client was: (DESCRIPTION=(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=TCP)(HOST=db-samk.pertamina.com)(PORT=1521)))(CONNECT_DATA=
(SERVICE_NAME=ORA1)))
why? n help me
46 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
ORA-12516: TNS:listener could not find available handler with matching protocol stack
Cause: None of the known and available service handlers for the given SERVICE_NAME support the client’s protocol
stack: transport, session, and presentation protocols.
Action: Check to make sure that the service handlers (e.g. dispatchers) for the given SERVICE_NAME are registered
with the listener, are accepting connections, and that they are properly configured to support the desired protocols.
selam Kamran;
öncelikle böle bi blog oluşturduğun için teşekkürler.Ben senin anlatımınla centos üzerine oracle yi kurdum.Şimdi bu
oracle yi canlı sistem olarak düşünürsek içindede datalar var diyelim.Bunun bi kopyasını nasıl test sistemine alabiliriz.
İyi çalışmalar.
Basarilar
I got following problem could u plz help me. I am unable to unzip the zipfile and i cant proceed forward. Thanks
47 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
[root@oracle install]#
Şimdi ben dün bu iletiyi sana yazdıktan sonra bu serverin imajını aldım.Gittim bu imajı başka bir serverda
çalıştırdım.Daha sonra bu imajı çalıştırdığım serverin hostnamesini ipsini değiştirdim çakışma olmasın diye.Sonra
listener.ora ve tnsmanes.ora dosyasının içeriğini değiştirdim.SOnra database i ve listeneri çalıştırdım.Sorunsuz
çalıştı.Acaba bu şekilde clonu çalıştırsam canlı sunucuya zararı olurmu.İyi çalışmalar.
Bu sekilde clone calistirirsan canli sunucuya hic bir zarari olmaz. Sen imaj derken, Oracle imaj mi aldin, OS imajmi?
Hi Kamran
I like you web site thats why its very interesting a had got a lot of good idea on you site about oracle. I am Sys and net
admin but wanna learn oracle by exatly. How can you help me to learn oracle?
thanks
Dear Anar
I’d suggest you to read the “INtroduction for newbies” written by Turkish ACE, Tonguc Yilmaz
http://tonguc.files.wordpress.com/2009/06/oracle-introduction-for-newbies.doc
Moreover, you can start reading some certification preparation books and practice everything you read
Good Luck!
Dear Ram
Hi Kamran Sir,
This is a good one again. Sir I need help regarding installing more than one database on a single Linux server(RHEL5).
Can you please help me on these.
Waiting for your reply. Thanks in advance.
Abdul Wahab
Kolkata,India.
48 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Just type dbca on command line and select “Create database” radio button
Thank you for your help. Along with this I would like to know whether I will create multiple homes for multiple
databases while using dbca. And I would like to know about the .bash_profile entries also. Sir, I want to be little bit
clear regarding this. Kindly help me sir.
Abdul Wahab
Kolkata,India.
hi Kamran,
i followed you blog steps to install linux and oracle but i got stuck on step .
when i m entring this commend all help related to useradd will open there .
thanks
chetan
142. OBIEE 11g on CentOS 5.5 – the install from the VirtualBox to stand-alone Admin Tool – Hyperion, Linux, Oracle
and Video Games Says:
January 20th, 2011 at 6:16 pm
[...] this point I had VBoxes. Clones in fact. To install Oracle I found this some useful blogs: Blog #1 Blog #2 [...]
Hi Kamran,
Regards,
Azeem Ahmed Rao.
IBM India Pvt. Ltd, Noida, India
145. ST Says:
February 8th, 2011 at 2:43 am
Kamran,
49 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
I am on step 2, Installing rpm packages which are required for Oracle installation. I don’t have access to the CentOS
installation disk, so instead, I downloaded the 4 rpm files off the internet.
I was just trying to install the first rpm package, and I ran the command
rpm -Uvh compat-db-4.2.52-5.1.i386.rpm
I got the failed dependency error, See the attached output below:
Any ideas why? is this because we use CentOS4.8 and you were running CentOS 5.2? Any pointers on how to solve
this issue would be greatly appreciated!
thanks,
ST
Step 4 ???
Try /usr/sbin/groupadd
It seems you haven’t installed other dependent RPM packages. You can check “Install all” checkbox during CentOS
installation to avoid such errors or make sure you’ve installed all rpm packages listed in the following link:
http://download.oracle.com/docs/cd/B19306_01/install.102/b15660/pre_install.htm#CIHFICFD
HI, KAMRAM, I’M FROM ARGENTINE AND I’M ORACLE DATABASE ADMINISTRATOR. I READ YOUR
ARTICLE AND IT SEEMS VERY GOOD!!!
AT THIS MOMENT, I ADD YOUR LINK TO MY FAVORITES.
BEST REGARDS FROM ARGENTINE…
NICOLAS
50 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Keep in touch
Additionally, I am using Oracle VM VirtualBox & therefore wanted to share my solution for Step 5.
You can just open your browser inside of CentOS, navigate to this blog, and click on the download link at Step 5.
Make sure to save file to your desktop, and follow all of the commands, in the 5th window of step 5, except that when
you cp, substitute this location:
cp /home/username/Desktop/10201_database_linux32.zip install/
Part 1
In terminal I did "yum install gcc" successfully. Is this the fix for [WARNING 1] or do I need to do something more?
Is the fix for [WARNING 2] (Checking Kernel Parameters) simply to edit the sysctl.conf file by adding rmem_max =
262144 or do I need to do something more?
Part 2
Which Forum/Category in OTN Forums should I ask future questions about Oracle10g on CentOS (I am sure I will
have many more) Database-Installation or Server & Storage Systems – Generic Linux?
Regards
To resolve the second warning you need to change /ets/sysctl.conf file and execute /sbin/sysctl -p command
To resolve the third error you need to increase RAM (I hope you can bypass it for the testing purpose)
51 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Dear Kamran:
Wanted to inform you that I was able to overcome obstacles and am now ready to use Database & Enterprise
Manager.
I was lucky to find your blog, as I am learning both Linux & Oracle Database in College. This blog was like a Rosetta
Stone for answering many of the questions I had regarding both!
Trying to learn Oracle Database in a Windows environment is frustrating to say the least. I am much more comfortable
in a Unix like environment, and will go on to your Solaris step by step tutorial next.
My college textbook (Oracle 10g Database Adminstrator II – Claire Rajan) is geared towards Windows & while I have
learned many things, I would like to know if your textbook “Expert secrets for using RMAN and Data Pump” would
be useful for me now, using Oracle 10g R2 on Centos?
Dear Victor
Thank you for your feedback and I wish you more success
I hope after learning the basics of Oralce, my book will definetly be helpful for you to learn Oracle Backup and
Recovery techniques
It’s not yet available now, but it should be printed in two months
Dear kamran, great documents step to step installation oracle on linux. i will face some error in /etc/redhat-release. so i
have read yur docs and will try to solve error…
Thanks loot.
I have uninstall the gcc-4.1.2-48.el5.x86_64.rpm and the gcc-c++-4.1.2-48.el5.x86_64 and install them again but
everytime the same error
also in the error message: INFO: /bin/sh: line 2: gcc: command not found
what should i do upgrade some packages i do not know I m newbie in Linux and oracle : (
best regards
52 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Benjamin
Dear Benjamin
Hello Kamran,
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /home/vin/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = Vinod)(PORT = 1521))
)
)
53 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
ORACLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Vinod)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oracle.vinod)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
Dear Vin
Salaam Kamran,
Do you have steps on how to install/configure Oracle 11g r2 on a Centos. I am also looking for configuration steps for
ASM, and TPC-C database. Thanks!
Salam Iltifat
You can try my Oracle 11g R2 on a OEL installation guide from the following link:
http://kamranagayev.wordpress.com/2011/03/21/step-by-step-installing-oracle11g-on-linux/
Good Luck
Thanks Kamran!
54 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
i got very important point to install oracle10 on linux,,,,,,,,,i am so happy,,,,i could get easliy,,and learnt how to install
oracle
thanks sir
Hi Kamran,
It’s really wonderful about the articles you published.
It’s really help me to understand how to install oracle on linux.
Its an Excellent document.
I followed all the steps which you mention in the blog.
I successfully installed the Oracle 10.2.0.5g (just software)on Linux;
But I got one error when i create database with dbca; i have tried to rebuild the repository EM but get the same error.
the error is:
55 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:449)
at java.lang.Thread.run(Thread.java:534)
21-mar-2011 9:51:38 oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
CONFIG: Failed to set value in server.xml for application-server tag
21-mar-2011 9:51:38 oracle.sysman.emcp.EMConfig perform
GRAVE: Error al instanciar los archivos de configuración de OC4J
Consulte el archivo log en /u01/app/oracle/product/10.2.0.1/db_1/cfgtoollogs/dbca/orakol/emConfig.log para obtener
más información.
21-mar-2011 9:51:38 oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Error al instanciar los archivos de configuración de OC4J
at oracle.sysman.emcp.EMDBCConfig.performConfiguration(EMDBCConfig.java:409)
at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:162)
at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:136)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:172)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:449)
at java.lang.Thread.run(Thread.java:534)
Configuring OEM is very boring, so you need to play with lot of log files and it’s not so easy to solve the problem
online
It seems the configuration is not able to find the following file:
/u01/app/oracle/product/10.2.0.1/db_1/oc4j/j2ee/OC4J_DBConsole/config/server.xml
Hi kamran how r u.
I have already installed centos on my vmware. Now to proceed with step 2 how to customize again.
best regards,
krishna.
[...] bacaan: – Step by Step Installing Oracle in Centos” – Instalasi Oracle 10g di Centos 5.3 – Dokumentasi Online
Oracle 10g This entry is filed under [...]
hai….kamran,
iam taking course for oracle DBA. i installed VM ware and red hat linux 4 in my laptop.when i installing oracle11Gon
LINUX s/w ,after ./runInstaller command ,it is showing error like ” checking recomended glibc version failed” .so wat
is the solution..help me..
2)when i installed oracle 10g on R.H.E.L 4. and when creating database by using DBCA command…showing error
like ” can not create directory /oraeng/app/oracle/product.10.2.0/dbs/prd/adump” so can u give solution…
thank you.,
surender martha
56 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Hi Surender
1. It seems you’ve missed installing some required OS libraries, so make sure you’ve installed them all
Hi kamran how r u.
I have aleready installed centos on vmware. Now to proceed with step 2 how can I customize again.
best regards,
krishna
Hi Kamran,
I had read your artical its very good. I have same dout about “How t create ASM instance and database” in window
2003.
will you please help me out
Hi kamran how r u.
how should I proceed. Can you clearly explain me how to install the packages that you have mentioned.
regards,
ramakrishna.
Dear Krishna
Please make sure that you’ve in the RPMS folder and run “ls” command to see the list of rpm files, then install any
rpm file you want
kamran,
57 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
can you describe me the brief steps to install the rpm packages. so far I have wasted lot of time to install these
packages and still I am unable to install.
regards,
ramakrishna.
I get a problem:
[oracle@localhost ~]$ sqlplus /nolog
Dear Duoc
export ORACLE_SID=yourdbname
sqlplus / as sysdba
startup
OK.Great !
Thanks, Kamran.
Hello Kamran
Thank you for your article,
Wow man! You are my GURU:)!! Thank you so much for the fantastc video!
Assalam kamran…
I hope you are doing well…
can you tell me how to install oracle 10g on Solaris 10 platform…
58 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Hello Kamran.
Can you tell me how to install database sample to perform the examples in Oracle ‘s books and related documentations
?
Thanks.
Just check “Install sample schema” checkbox during Database Creation. That will create a scott schema with all
required tables
OK. Thanks.
Hi,
Just went through you steps. You have used centos 5.2
I am trying to Install Oracle 10gR2 on centos 5.5. But I have pre-requisite check errors “Installation not supported”.
Sid
Hi Sid
59 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
It’s supported. Just make sure you’ve changed /etc/redhat-release file as it’s shown in the post
Kamran, i tried different steps which didn’t help me out much. So, i tried reinstalling oracle and see below error now at
the time of installation:
hi kamran
i am having a liitle proble. i follow all the steps but at the time of installation after ./runInstaller blue window appears.
here in my installation the unix dba group appears only root and oracle not oinstall if i type oinstall .
In next step it again ask for user and if type oinstall it shows error.
In you installation it outomatically apears oinstall but in my i have to mention it.
which finally leads to error. since last three day i tryed several time but result is same.
please help me i m wating for you answer.
i tryed installation again i a got all the steps right but in product prerequisite checks i got expected result 922 mb and
actual result 568 mb. physical memory requirements. can u help me out here how to sove it i have 14gb red hat vertual
machine.
Duoc,
I resolved the error
Thanks,
Ajay
Hello,
I have exactly the same problme as Moslem Rashidi explain in comments 118 and 120.
“Now when I use dbca to create my database, dbca window appares and I choose default options, but when I press
Finish button it doesn`t work without any error! only it remains on screen!
dbca does not create database and event does not report error!
when I press finish button to start database creation in final wizard page , it does not any action and this page remains
on screen without any error !”
it’s describe exactly my problem. I try to install an Oracle 11g R1 on a AIX 6.1.
60 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
You advise to check the $ORACLE_HOME/cfgtoollogs/dbca/ folder but i don’t have any dbca folder in
$ORACLE_HOME/cfgtoollogs.
I know your article is about a Oracle installation on a Centos system but maybe you should have an idea to solve my
problem.
thanks in advance.
Alexandre BRUN.
I am following the whole procedure correctly but when i try to con to oracle then i am getting the error bash: command
not found. This is when i run sqlplus command.Pls help
thanks for all but can u help me in my problem…i do all of the above but when i connected to database in different
server and make aselect statement it get ???????
because the data stored in arabic….how i adjust database to
accept arabic
201. Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Oracle installation All in One e-book Says:
October 19th, 2011 at 12:55 pm
selam kamran.
yukarıdaki kurulumu örnek alarak oracle sistemimi kurdum.Gerçekten güzel çalışyor.Ama 32 bit olduğu için 2 gbden
fazlasını kullandıramıyorum sisteme ramın.Bundan daha fazla ram kullandırma şansım varmı veya 64 bite migration
yapmam için nasıl bir yol izlemem gerekiyor.Yardımcı olabilirmisin.Teşekkürler.
61 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Hi kamaran
I successfully install oracle 10g on centos and i have two computers in i install oracle 10g on vm and on another i
installed sql client on xp but im unable to connect to oracle 10 g on centos,
Please help me
Thanks
also for the install, permissions seem to be incorrect for both the lib and lib32 directories and contents. Fixing this
solved all sorts of exceptions like not finding libnjni10.so. Also, PERL5LIB environment var will need to be modified
so that it finds the .pm files in the oracle directories.
These were all set up at install time so that if you run them with the oracle account, all is fine. If other users run them
they run into these permission issues. Not sure why oracle’s install did this.
Dear Kamran
during oracle application (10.1.3 )installation, i faced there error.
Checking operating system version: must be redhat-Red Hat Enterprise Linux AS release 3, redhat-Red Hat Enterprise
Linux AS release 4, redhat-Red Hat Enterprise Linux ES release 3, redhat-Red Hat Enterprise Linux ES release 4 or
SuSE-9
Failed <<<<
Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2011-12-10_11-56-56PM
/installActions2011-12-10_11-56-56PM.log
Hi, Kamran !
Thanks for your efforts. I really appreciate and got inspired.
I need your help to find step by step installation of Oracle 11.2.0.2 RAC on Linux 6.1
And I need What Linux OS packages are required for installing Oracle RAC 11.2.0.2
Hi SYed. What error you get? Have you configured listener.ora and tnsnames.ora correctly?
Hi! Kamran!
Will you please help me what are the required rpms / packages for installing Oracle 11.2.0.2 on Red Hat Linux 6.1
Do you have any issues in record ?
Thanks for sharing .
62 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Hi Kamran,
“In order to install these packages, you can use rpm –Uvh command by changing directory to CentOS directory inside
the CD (DVD) of CentOS installation as shown below”
Thanks!
Hi Engy. In order to install rpm packages you need to switch the directory to the folder where all rpm packages reside
I did but it the four packages you mention aboe are not in that directory. There are rpm packages there but not the four
you mention. What do you suggest??? I am using 5.7 instead of the 5.2 that you have. Could it now be in a different
name?
You can check the missing packages if they are available at the installation of the system with release number you’ve
mentioned
Leave a Reply
Name (required)
Website
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime="">
<em> <i> <q cite=""> <strike> <strong>
63 of 64 2/9/2012 12:40 AM
Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Installing O... http://kamranagayev.com/2009/05/01/step-by-step-installing-oracle-datab...
Kamran Agayev's Oracle Blog is powered by WordPress | Design by Andreas Viklund | Ported by Ainslie
64 of 64 2/9/2012 12:40 AM