Step by Step Installing Oracle Database 10gR2 on Oracle Solaris 10
Posted by Kamran Agayev A. on November 3rd, 2010
At last I’ve found time to create a Step by Step instruction on installing Oracle 10gR2 on Oracle Solaris 10. If you follow this instruction, you’ll successfully install Oracle on Solaris. If you get any error, do not hesitate to contact me
So, let’s begin. As a first step, download Oracle 10gR2 and Oracle Solaris , create a virtual machine using my previous instruction, but don’t forget to select “Solaris 10” on “Operating System types”.
Next, unzip downloaded Solaris zip file, mount .iso file and start the virtual machine. You should get the following screen:
Press Enter
In the above screen type “1” and press Enter
Select appropriate keyboard layout and press F2
If you see the above screen, the click on the opened window and press Enter
Select the language and press Enter
Click Next
Selet the Network Connectivity and click Next
Provide the name of the host and click Next
Click Next
Click Next
Select your country and click Next
Provide correct date and time and click Next
Provide a password for the root user and click Next
Select No and click Next
Press Confirm to proceed the installation
Click Next
Click Next
Select CD/DVD and click Next
Select Accept and click Next
Select Default Installation and click Next
Click Install Now to start the installation
After installation completed, you get the following screen. Click on Continue and Next
Click on Continue and Reboot Now button
After reboot you get the following screen. Press Enter
Wow. Oracle Solaris welcome screen! Login with the root user and the password that you’ve provided during the installation and login to the system
Here’s the Oracle Solaris desktop
Now open new Terminal and check size of RAM, swap space and /tmp directory
Now check whether you’ve installed all packages that are required for Oracle installation
pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt
As you see from the output, you’re missing two packages. So install it using pkgadd command and check the packages again:
Ok, now you need to create a group and a user:
groupadd oinstall
groupadd dba
useradd -d /export/home/oracle -g dba -G oinstall -m -s /bin/ksh oracle
passwd -r files oracle
Now change the profile of the “oracle” user and set environemnt variables:
gedit /export/home/oracle/.profile
export ORACLE_BASE=/export/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_SID=solaris
export DISPLAY=:0.0
Next, change kernel parameters by editing /etc/system file as follows:
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semmni=100
set semsys:seminfo_semvmx=32767
set noexec_user_stack=1
Restart the virtual machine, login with oracle user and add 1g of swap space (with root user)
Create a directory for Oracle installation :
mkdir –p /export/home/oracle/product/10.2.0/db_1
Then copy Oracle installation to /export/home/oracle folder, unzip it, switch to unzipped directory called database and start the installed with ./runInstaller command:
Uncheck “Create Starter Database” option and click Next
Click Next
The installer checks all pre-requsit configurations and should Succeed. If so, click Next
Click Install button to start the installation
Please don’t press “Stop Installation” button
When the installation completes, you’ll be asked to run the following shell scripts with root user.
Login with root user from the new terminal and run them
The installation completed! Congratulations!
Now let’s create a database. Open new terminal and run dbca (Database Configuration Assistant) command to create a database
Click Next
Select “Create a database” and click Next (Don’t select “Delete a Database”, ups.. you can’t even select it )
Select “General Purpose” and click Next
Provide a database name and click Next
Click Next
Provide a password for SYS user and click Next
Click Next
Click Next
Click Next
If you want to install sample schemas, then select this option and click Next
Click Next
Click Next
Click Finish and start the database creation
The database creation process has started
You got the message that the database has successfully created. Let’s check it!
Wooou!!!! Congratulations again!! At the end, you’ve successfully installed Oracle Solaris, Oracle Database on Solaris and created a database! That’s great!
Don’t forget to post a feedback!
November 3rd, 2010 at 10:27 pm
Dear Mr. Kamran
Thanks alot for showing such a good installation of Solaris and Oracle 10g.
I would like to know if you can post how to create some good function, procedures, triggers, synonyms, indexes related to Oracle DBA.
Thanks in Advance.
November 5th, 2010 at 9:43 am
Dear Aijaz.
There’s no term such as “good function, trigger or synonym”. Please try to post a comment related with the subject of the post
Thanks
November 4th, 2010 at 9:42 pm
ThanQ
Immaculate as always…. but where is the video???
Ankur
November 5th, 2010 at 9:36 am
Thanks for feedback. The video tutorial will be prepared for 11gR2 for the next week
November 7th, 2010 at 3:59 pm
[…] Step by Step Installing Oracle Database 10gR2 on Oracle Solaris 10 […]
November 11th, 2010 at 7:23 pm
Dear Kamran Sir,
Thanks a lot for sharing this wonderful video of Installation of Oracle 10g on Solaris platform.
It’s help a lot.
November 12th, 2010 at 8:56 pm
Great tutorial! Thx.
November 15th, 2010 at 12:01 pm
Dear Kamran,
Thanks a lot, it would really helpful of installing oracle 10gR2 to get started.
November 16th, 2010 at 11:42 pm
hello mr. kamram, i am trying to install oracle on redhat 9 but i want to know if i should log in as root or oracle to set the environment variables and also mydb and oracle software owner means what. thanks.
November 17th, 2010 at 11:34 pm
Nice tutorial. At least I have done it. It is very nice, powerfully experience for new one. So, thanks Kamran.
November 18th, 2010 at 10:11 am
@Kasante – You need to log in as an “oracle” user and set all environent variables
@Ulfet – You’re welcome
November 18th, 2010 at 11:33 pm
Super bir derslikdir Kamram mellm bu ele mene lazim idi bu yaxinlarda.TEsekkurler
November 23rd, 2010 at 4:20 pm
Thnx for this magnificent post i just started my career in oracle and i almost read every blog on website that shows how to install oracle on linux but no help until i saw yours Jazak allah Khair for this it really helped me a lot.
November 24th, 2010 at 1:08 pm
simply superb thnx alot
November 26th, 2010 at 7:02 pm
Excellent article, Kamran. It would be more useful if you could include a completed Oracle installation with a ASM discs group.
What do you think?
Regards
November 28th, 2010 at 12:25 am
Hi Marcos
Sure I’m thinking about it and I’m planning to create a RAC+ASM video tutorial as well
November 28th, 2010 at 2:51 pm
“AnkurK said – Immaculate as always…. but where is the video???”
Vide here . Made by me.
November 30th, 2010 at 7:44 am
Excellent then, I´ll be waiting. If I can give you some help, please send me a message to my email. Regards.
November 30th, 2010 at 11:06 pm
Quick links for videos:
How to install Oracle 10g on Oracle Solaris 10
vimeo.com/17254090
RLWRAP for sqlplus
vimeo.com/17257817
December 13th, 2010 at 9:24 pm
Sir,
Thanks for your guide, i used Oracle VM virtualBox to setup Solaris 10.
I could successfully install Solaris and also create user Oracle, editied th eprofile and /etc/system.
Restarted virtual machine and created 1g of swap space and made the directory.
But the problem i am facing is is at step where Oracle installation has to be copied in /export/home/oracle folder.
Instead of copying the .zip i directly copied the extracted folder database at /export/home/oracle
The original extracted file has runInstaller when wirtten in CD, but when the same is copied it is named only runinsta.
Apart from this i tried executing it by double clicking and then Run in terminal also only Run but none worked.
Then i tried to run (through terminal) the same with root in Oracle login also with oracle login but none worked.
I also tried the same after renaming the runinsta file as runInstaller, but no success.
Could you please elaborate the step of coppying and executing the runInstaller through proper screen shots or atleast steps like the login that must be used, commands to be typed on promp, which prompt to be used $ or #
Actually i am relatively new to unix environment.
Thanking you in advance.
abhaydeo
December 23rd, 2010 at 1:13 am
can we install sun solaris operating system on Desktop PC?(intel base)
January 8th, 2011 at 8:46 pm
thanks for sharing useful stuff..
January 28th, 2011 at 1:15 pm
Salam Kamran muellim mene bir desrlik vere bilersiniz ki men Oracle yavash yavash oyrenim. Hevesliyem oracle oyrenmek ucun
Mene dediler ki Oracle oyrenmek ucun hokmen men PL/SQL bilmeliyem bu ne qeder doqrudur?
Minnetdram Allah razi olsun sizden ve cumle Muslimanlardan hemishem.
January 28th, 2011 at 5:30 pm
Salam Anar. Oracle-i oyrenmek ucun PL/SQL-i bilmek vacib deyil. Ancaq her bir DBA mutleq ve mutleq PL/SQL ve SQL ile islemelidir.
Oracle-dan meslehet etdiyim kitab Sybex-in kitabidir, mene e-mail gonder, sene kitabi gonderim
January 28th, 2011 at 6:43 pm
Bash uset gondererem qardash e-mail. Sadigov_anar@yahoo.com
Mysql Mssql bilirem orta seviyyede cunki ozum Net ve Sys adminem amma hevesim Oracle-dir.
Allah senden razi olsun Kamran qardash Allah hemishe komeyinde olsun.
January 28th, 2011 at 6:47 pm
Sen qardash bu elmi insanlarla paylashdiqin ucun size minnetdaram.Allah hemishe komeyin olsun.
January 28th, 2011 at 6:53 pm
Borcumdu Anar
Kitabi senin e-mail unvanina gonderdim
January 28th, 2011 at 6:59 pm
Allah senden razi olsun qardash. Men ozum Unixle ishleyirem Freebsd SLES ile ishlyirem calishacam Solarise yazim oyrenim ya da SLES-e. Vurqun muellimin telebesiyem men ozum. Ne sualim olsa sizi narahat ede bilerem qardash ?
January 28th, 2011 at 7:02 pm
sizin msn ve ya skype varsa eger olsa idi cox sevinerdim.
January 28th, 2011 at 7:02 pm
Elbette. Vurgun muellim bizim boyuk qardasimizdir
Bundan sonra suallarini e-mail unvanima yaz.
Uqurlar
January 28th, 2011 at 7:05 pm
Oldu qardash elektron unvana yazaram ne cetinliyim olsa oracle-de . Allah sizden razi olsun.
February 7th, 2011 at 1:01 am
Salam Kamran. Zehmet olmazsa men yerleshdirdiyim videolara baxardin. O videolarin kimese komeyi dəyə bilərmi. Mənə elə gəlir ki, orda heç bir səhv yoxdur. Bəlkə mən orda nəyisə aydin çatdirmamışam? Xahiş edirəm onlar haqda öz rəyini bildirəsən.
PS: İstənilən kritikaya haziram ;).
March 27th, 2011 at 1:05 am
[…] Step by Step Installing Oracle Database 10gR2 on Oracle Solaris 10 […]
March 28th, 2011 at 6:57 pm
hi kamaran,
it was great !!! u made installation on linux as well solaris very easy…i had installed oracle 10g on linux successfully…about to try on solaris..By following this step by step install guide can easily able to install..ThankQ for u r guidence.
March 29th, 2011 at 9:09 am
Good Luck Lalitha!
March 29th, 2011 at 1:50 pm
Nice Guidance Sir, i like it very much. ty.
June 17th, 2011 at 11:16 am
vary vary good side for learning and expert in oracle dba
I want ISO IMAGE OF ORACLE DATABASE 10G for SOLARIS 10 CD/DVD software
September 17th, 2011 at 2:29 pm
[…] http://kamranagayev.wordpress.com/2010/11/03/step-by-step-installing-oracle10gr2-on-oracle-solaris/ […]
October 19th, 2011 at 12:57 pm
[…] 2. Step by Step Installing Oracle Database 10gR2 on Oracle Solaris 10 […]
October 26th, 2011 at 7:06 am
THanks a lot for this guide. Twice it has helped me out and i just pray you’ll continue to find the strength to continue to do things like this
October 31st, 2011 at 12:40 pm
Dear Kamran,
While installation of Oracle 10g Release 2 when I am in “Specify Invntory directory and Credentials” screen and I click on Next button I ag am getting error “OUI-10036: Could not create the inventory location. You may not have permission to write to this location.”
I could not be able to find any solution for it.
I also try to do it manually creating a directory name “oraInventory” and link it but after 86% completion of installation i am getting below errors.
Error in invoking target ‘client_sharedlib’ of makefile ‘/export/home/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk’.
Error in invoking target ‘relink’ of makefile ‘/export/home/oracle/product/10.2.0/db_1/precomp/lib/ins_precomp.mk’
…………and many more
waiting for your help
Thank You
October 31st, 2011 at 12:43 pm
Make sure you’re installing the correct bit of Oracle Database. Verify the OS bit and Oracle bit. They should be same (Most of relink problems occure due to bit inconsistency between OS and DB
December 28th, 2011 at 9:02 am
Assalamu alaikkum
dear Mr kamaran
when i am trying to install database it was 85% completed the issues the error in logfile
INFO: Start output from spawned process:
INFO: ———————————-
INFO:
INFO: /export/home/oracle/oracle/product/10.2.0/db_1/bin/genclntsh
INFO: ld:
INFO: fatal:
INFO: symbol ‘
INFO: ntcontab
INFO: ‘ in file
INFO: /export/home/oracle/oracle/product/10.2.0/db_1/lib/libn10.a(ntcontab.o)
INFO: : section [
INFO: 3]
INFO: .data
INFO: : size
INFO: 0x60
INFO: : symbol (address
INFO: 0
INFO: , size
INFO: 0x70) lies outside of containing section
INFO: ld:
INFO: fatal:
INFO: file processing errors. No output written to
INFO: /export/home/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
INFO:
INFO: genclntsh: Failed to link libclntsh.so.10.1
INFO: *** Error code 1
INFO: make: Fatal error: Command failed for target `client_sharedlib’
INFO: End output from spawned process.
INFO: ———————————-
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target ‘client_sharedlib’ of makefile ‘/export/home/oracle/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk’. See ‘/export/home/oracle/oraInventory/logs/installActions2011-12-28_09-25-13PM.log’ for details.
Exception Severity: 1
$
what is this and how to fix it?
December 28th, 2011 at 3:32 pm
Aleykum salam
Make sure you’re installing correct Oracle and not installing x86 Oracle on x64 Linux or vice verse
January 2nd, 2012 at 6:36 am
I am installing same 32 bit version OS and db software
January 2nd, 2012 at 11:37 am
Hi Syed Ibrahim. Refer to metalink ID 1364167.1
January 6th, 2012 at 4:24 pm
Salam Kamran,
Like to discuss couple of things with you ? Iam in Australia where are you located?
Kind Regards
January 13th, 2012 at 7:40 am
Aleykum salam Afzal.
I’m in Azerbaijan. You can send me an email, I’ve post it under “About” page
January 8th, 2012 at 10:35 am
thanks javid…
its very helpful and its working….
January 12th, 2012 at 9:42 am
Assalamualaikum Syed Ibrahim,
Can you share with me what metalink ID 1364167.1 to solve the problem please? I have the same issue like you have.
It would be very help full for me since I do not have access to Metalink at the moment.
Wassalamualaikum
Gitosus
January 13th, 2012 at 7:34 am
Dear Gitosus
It’s not permissioble to share metalink notes
February 29th, 2012 at 6:04 am
hi kamran,
i installed solaris 10 on virtual box then i tried to install oracle 10g on it both are of 32 bit.i successfully configured all the parameters as you mentioned but i am getting linking errors like error in invoking target file ‘client_sharedlib’ from ins_net_client.mk file when i checked in make.log file then i found Failed to link libclntsh.so.10.1 error . pls help me out in this .
Thanks and Regards
Ankur Gupta
March 1st, 2012 at 5:42 am
I would suggest you to check the following topic:
https://forums.oracle.com/forums/thread.jspa?threadID=852879
May 19th, 2012 at 5:57 am
Really loved your tutorial.
But still have a problem : i installed solaris 10 on virtual box as per your tutorial. But its not connecting to the internet ,tried the bridged network option the way you can do it on linux but it ani’t working. Please could u suggest options or solutions to these problem? Please would really appreciate
May 23rd, 2012 at 6:25 am
Hi This is punith ….. i am trying to install oracle 10g/11g R2 in (oracle solaris 11) ….. can we install or not ………..if possible send me tha step’s thank u
June 9th, 2012 at 8:24 am
May we follow same steps to install on solaris 10 64 bit.
GUI is not coming. WHERE FROM CAN I DOWNLOAD REQUIRED PACKAGES(IF NOT FOUND IN CDROM
June 15th, 2012 at 7:42 am
Do you get any error? Have you installed *everything* which is provided in this article? It seems you missed something
June 27th, 2012 at 3:28 pm
thanks this is good stuff,but how do i move the database software into the vm? i got a zipped db software file but failed to get into the VM. please help…
June 28th, 2012 at 4:07 am
For this, you need to install VMware tools in the virtual machine. After installing it, you’ll be able to copy any file to/from vmware machine and your own host
August 2nd, 2012 at 10:34 am
thank you for sharing this setup. But when I install step by step same you that don’t success. I use dbca command to create 1 database but it have some error:
“UnsatisfiedLinkError exception loading native library: njni10
Exception in thread “main” java.lang.UnsatisfiedLinkError: get
at oracle.net.common.NetGetEnv.get(Native Method)
at oracle.net.config.Config.getNetDir(Unknown Source)
at oracle.net.config.Config.initConfig(Unknown Source)
at oracle.net.config.Config.(Unknown Source)
at oracle.sysman.assistants.util.NetworkUtils.(NetworkUtils.java:223)
at oracle.sysman.assistants.util.step.StepContext.(StepContext.java:256)
at oracle.sysman.assistants.dbca.backend.Host.(Host.java:684)
at oracle.sysman.assistants.dbca.backend.SilentHost.(SilentHost.java:125)
at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:150)
at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:94)
at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:180)”
pls help me!
August 10th, 2012 at 4:25 am
Please check the following topic:
https://forums.oracle.com/forums/thread.jspa?threadID=479307
August 23rd, 2012 at 8:05 am
CAN YOU PLZ POST THE STEPS FOR ORACLE 10G DATABASE MIGRATION FROM THE SOLARIS TO RHEL USING RMAN
September 1st, 2012 at 1:06 pm
Thank you so much for this step by step guide.
If I want to install Oracle 10g on Solaris 11 x64, will steps remain the same?
Regards,
September 4th, 2012 at 2:43 pm
You should check documentation, however the steps should work
October 16th, 2012 at 7:39 am
It really helped me a lot…
Thank you very much Kamran…
October 17th, 2012 at 7:17 am
Hi Kamran,
Please help me on this.
when try this command “gedit /export/home/oracle/.profile”. it shows error as “(gedit:1252): Gtk-WARNING **: cannot open display: “.
I tried this command as root user.
Thank You.
October 30th, 2012 at 11:27 am
Check this link:
https://www.centos.org/modules/newbb/viewtopic.php?topic_id=38239
December 31st, 2012 at 10:07 am
Hello,
Thanks a lot for great help.
But I have error while press the button “finish” for creating Oracle 10gR2, I got the error “permission deny” the the installation progress for creating oracle couldn’t do correctly ??
January 29th, 2013 at 3:41 pm
Could you please post the whole error you get?
January 10th, 2013 at 9:16 am
Hi Kamran!
i’am getting following issue when I try to install oracle 10g Release 2 on Linux 64-bit
“Error in invoking target ‘install’ of makefile /u01/ app/oradw/db10g/ctx/ins_ctx.mk’ , please guide me how can I resolve this issue.
Regards!!
January 29th, 2013 at 3:39 pm
Hi Elektra
Make sure you’re installing correct bit version of Oracle Software
March 31st, 2013 at 10:31 pm
Bonsoir,
S.V.P pourriez m’envoyer un lien de téléchargement d’oracle 10 g pour solaris, j’ai passé 2 jours en cherchant sur internet mais sans aucun résultat, si quelqu’un peut m’aider plzzzzzzzzzzz
June 13th, 2013 at 5:49 am
Malheureusement, il n’est pas disponible en ligne Toutefois, si vous avez le support, vous pouvez leur demander de vous fournir le logiciel nécessaire
December 29th, 2013 at 6:54 am
dear sir
its amazing continue your service
February 28th, 2014 at 1:57 am
Dear sir
When i finished all of your post, and begin to create table, then i got this comment from sql is ‘ERROR at line 1’:
ORA-01034: ORACLE not available
and i can’t create table.
Please help me.