Kamran Agayev's Oracle Blog

Oracle Certified Master

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!

75 Responses to “Step by Step Installing Oracle Database 10gR2 on Oracle Solaris 10”

  1. Aijaz Khan Says:

    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.

  2. Kamran Agayev A. Says:

    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

  3. AnkurK Says:

    ThanQ

    Immaculate as always…. but where is the video???

    Ankur

  4. Kamran Agayev A. Says:

    Thanks for feedback. The video tutorial will be prepared for 11gR2 for the next week

  5. Learning … this week « Oracle DB 10g & 11g Tops Says:

    […] Step by Step Installing Oracle Database 10gR2 on Oracle Solaris 10 […]

  6. Prageet Says:

    Dear Kamran Sir,
    Thanks a lot for sharing this wonderful video of Installation of Oracle 10g on Solaris platform.
    It’s help a lot.

  7. Oracle Spec Says:

    Great tutorial! Thx.

  8. Jay Says:

    Dear Kamran,

    Thanks a lot, it would really helpful of installing oracle 10gR2 to get started.

  9. kasante Says:

    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.

  10. Ulfet Says:

    Nice tutorial. At least I have done it. It is very nice, powerfully experience for new one. So, thanks Kamran.

  11. Kamran Agayev A. Says:

    @Kasante – You need to log in as an “oracle” user and set all environent variables
    @Ulfet – You’re welcome :)

  12. Nesimi Says:

    Super bir derslikdir Kamram mellm bu ele mene lazim idi bu yaxinlarda.TEsekkurler

  13. Abdullah Khan Says:

    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.

  14. sai Says:

    simply superb thnx alot

  15. Marcos Ortiz Says:

    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

  16. Kamran Agayev A. Says:

    Hi Marcos

    Sure I’m thinking about it and I’m planning to create a RAC+ASM video tutorial as well

  17. samirimanov Says:

    “AnkurK said – Immaculate as always…. but where is the video???”

    Vide here . Made by me.

  18. Marcos Ortiz Says:

    Excellent then, I´ll be waiting. If I can give you some help, please send me a message to my email. Regards.

  19. samirimanov Says:

    Quick links for videos:
    How to install Oracle 10g on Oracle Solaris 10
    vimeo.com/17254090

    RLWRAP for sqlplus
    vimeo.com/17257817

  20. abhaydeo Says:

    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

  21. Muhammad Adnan Says:

    can we install sun solaris operating system on Desktop PC?(intel base)

  22. Muhammad Adnan Says:

    thanks for sharing useful stuff..

  23. Anar Says:

    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.

  24. Kamran Agayev A. Says:

    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

  25. Anar Says:

    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.

  26. Anar Says:

    Sen qardash bu elmi insanlarla paylashdiqin ucun size minnetdaram.Allah hemishe komeyin olsun.

  27. Kamran Agayev A. Says:

    Borcumdu Anar

    Kitabi senin e-mail unvanina gonderdim

  28. Anar Says:

    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 ?

  29. Anar Says:

    sizin msn ve ya skype varsa eger olsa idi cox sevinerdim.

  30. Kamran Agayev A. Says:

    Elbette. Vurgun muellim bizim boyuk qardasimizdir

    Bundan sonra suallarini e-mail unvanima yaz.

    Uqurlar

  31. Anar Says:

    Oldu qardash elektron unvana yazaram ne cetinliyim olsa oracle-de . Allah sizden razi olsun.

  32. samirimanov Says:

    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 ;).

  33. Step by step installing Oracle 11gR2 on Oracle Solaris 10 « Kamran Agayev’s Oracle Blog Says:

    […] Step by Step Installing Oracle Database 10gR2 on Oracle Solaris 10 […]

  34. lalitha Says:

    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.

  35. Kamran Agayev A. Says:

    Good Luck Lalitha!

  36. Handi Herman Says:

    Nice Guidance Sir, i like it very much. ty.

  37. amod Says:

    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

  38. OracleDB: Step by Step installing Oracle 11g R2 on Oracle Solaris 10. « jnutsscs Says:

    […] http://kamranagayev.wordpress.com/2010/11/03/step-by-step-installing-oracle10gr2-on-oracle-solaris/ […]

  39. Kamran Agayev's Oracle Blog » Blog Archive » Step by Step Oracle installation All in One e-book Says:

    […] 2. Step by Step Installing Oracle Database 10gR2 on Oracle Solaris 10 […]

  40. Nosa Says:

    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

  41. Shahid Says:

    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

  42. Kamran Agayev A. Says:

    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

  43. syed ibrahim Says:

    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?

  44. Kamran Agayev A. Says:

    Aleykum salam
    Make sure you’re installing correct Oracle and not installing x86 Oracle on x64 Linux or vice verse

  45. syed ibrahim Says:

    I am installing same 32 bit version OS and db software

  46. Javid Hasanov Says:

    Hi Syed Ibrahim. Refer to metalink ID 1364167.1

  47. M Afzal Says:

    Salam Kamran,
    Like to discuss couple of things with you ? Iam in Australia where are you located?

    Kind Regards

  48. Kamran Agayev A. Says:

    Aleykum salam Afzal.
    I’m in Azerbaijan. You can send me an email, I’ve post it under “About” page

  49. syed ibrahim Says:

    thanks javid…

    its very helpful and its working….

  50. gitosus Says:

    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

  51. Kamran Agayev A. Says:

    Dear Gitosus

    It’s not permissioble to share metalink notes

  52. ankur gupta Says:

    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

  53. Kamran Agayev A. Says:

    I would suggest you to check the following topic:
    https://forums.oracle.com/forums/thread.jspa?threadID=852879

  54. Dindi Harris Samuel Says:

    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

  55. punith Says:

    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

  56. Bhopinder Says:

    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

  57. Kamran Agayev A. Says:

    Do you get any error? Have you installed *everything* which is provided in this article? It seems you missed something

  58. Aaron Aloni Says:

    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…

  59. Kamran Agayev A. Says:

    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

  60. Tuan Anh Says:

    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!

  61. Kamran Agayev A. Says:

    Please check the following topic:
    https://forums.oracle.com/forums/thread.jspa?threadID=479307

  62. chintu Says:

    CAN YOU PLZ POST THE STEPS FOR ORACLE 10G DATABASE MIGRATION FROM THE SOLARIS TO RHEL USING RMAN

  63. Pankaj Says:

    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,

  64. Kamran Agayev A. Says:

    You should check documentation, however the steps should work

  65. Mathan Says:

    It really helped me a lot… :)

    Thank you very much Kamran…

  66. Mathan Says:

    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.

  67. Kamran Agayev A. Says:

    Check this link:
    https://www.centos.org/modules/newbb/viewtopic.php?topic_id=38239

  68. sami Says:

    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 ??

  69. Kamran Agayev A. Says:

    Could you please post the whole error you get?

  70. elektra Says:

    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!!

  71. Kamran Agayev A. Says:

    Hi Elektra
    Make sure you’re installing correct bit version of Oracle Software

  72. Nelson Says:

    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

  73. Kamran Agayev A. Says:

    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

  74. Thineshkumar.p Says:

    dear sir

    its amazing continue your service

  75. hiep Says:

    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.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>