How to install Oracle Database 11g Release 2 (11.2) on Solaris 10 (Part 3 of 3)


On my previous post (Part 2 of 3) we have seen how to install Oracle Database 11g Release 2 on Solaris 10, so now we are going to verify that the installation has been done successfully. How?

First, we need to set up the environment for the oracle user by defining the variables ORACLE_HOME, ORACLE_SID, PATH and ORACLE_BASE… The easier way is maybe to use the oraenv script :

oracle@oracleserver:~> . /usr/local/bin/oraenv
ORACLE_SID = [oracle] ? orcl
bash: dbhome: command not found
ORACLE_HOME = [] ? /u01/app/oracle/product/11.2.0/dbhome_1
The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
oracle@oracleserver:~>
oracle@oracleserver:~> echo $PATH
/usr/bin:/usr/sfw/bin:/u01/app/oracle/product/11.2.0/dbhome_1/bin
oracle@oracleserver:~> echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/dbhome_1
oracle@oracleserver:~> echo $ORACLE_BASE
/u01/app/oracle
oracle@oracleserver:~> echo $ORACLE_SID
orcl
oracle@oracleserver:~>

Having done so, we can try to open in a web browser the Oracle Enterprise Manager (OEM).

The url is https://hostname-or-ip-of-the-oracle-server:1158/em

By default the port is 1158. You can verify the port used looking to the file portlist.ini :

oracle@oracleserver:~> grep HTTP /u01/app/oracle/product/11.2.0/dbhome_1/install/portlist.ini
Enterprise Manager Console HTTP Port (orcl) = 1158
oracle@oracleserver:~>

We can also verify before that the OEM is running :

oracle@oracleserver:~> emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.

https://oracleserver:1158/em/console/aboutApplication

Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/dbhome_1/oracleserver_orcl/sysman/log
oracle@oracleserver:~>

As the previous command, the Oracle Enterprise Manager is running and if we open the URL in a web browser we can see the login page :
Oracle Enterprise Manager Login

And we can connect with :

  • Username : SYSTEM
  • Password : the password you have set during the installation

Oracle Enterprise Manager

We can do a lot of things with the OEM, but we can also use the SQL*Plus program.

We just need to use the same user & password as for the OEM, and that’s it !

oracle@oracleserver:~> sqlplus

SQL*Plus: Release 11.2.0.1.0 Production on Thu Dec 10 18:52:56 2009

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Enter user-name: SYSTEM AS SYSDBA
Enter password: 

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>
SQL> select TABLESPACE_NAME from user_tablespaces;    

TABLESPACE_NAME
------------------------------
SYSTEM
SYSAUX
UNDOTBS1
TEMP
USERS
EXAMPLE

6 rows selected.

SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
oracle@oracleserver:~>
oracle@oracleserver:~> ls -l /u01/app/oracle/oradata/orcl/*.dbf
-rw-r-----   1 oracle   oinstall 104865792 Dec 14 18:33 /u01/app/oracle/oradata/orcl/example01.dbf
-rw-r-----   1 oracle   oinstall 566239232 Dec 14 18:33 /u01/app/oracle/oradata/orcl/sysaux01.dbf
-rw-r-----   1 oracle   oinstall 723525632 Dec 14 18:33 /u01/app/oracle/oradata/orcl/system01.dbf
-rw-r-----   1 oracle   oinstall 30416896 Dec 14 18:12 /u01/app/oracle/oradata/orcl/temp01.dbf
-rw-r-----   1 oracle   oinstall 104865792 Dec 14 18:33 /u01/app/oracle/oradata/orcl/undotbs01.dbf
-rw-r-----   1 oracle   oinstall 5251072 Dec 14 18:33 /u01/app/oracle/oradata/orcl/users01.dbf
oracle@oracleserver:~>

And nothing more for testing our installation… We can now start working with Oracle Database !!

NOTE : with this installation Oracle will not start automatically when rebooting the server, so if you want to know how to stop and start Oracle Database, have a look to the documentation Oracle® Database Administrator’s Reference 11g Release 2 (11.2) for Linux and UNIX-Based Operating Systems

Nothing more…. enjoy your new Oracle Database :)

Arnaud

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: +3 (from 3 votes)
Sphere: Related Content

  • Facebook
  • Twitter
  • Google Buzz
  • Google Bookmarks
  • LinkedIn
  • Share/Bookmark

Related posts:

  1. How to install Oracle Database 11g Release 2 (11.2) on Solaris 10 (Part 2 of 3) After reviewing the requirements for installing Oracle Database 11g Release...
  2. How to install Oracle Database 11g Release 2 (11.2) on Solaris 10 (Part 1 of 3) The deal today is to install the last version of...
  3. Oracle Cheat Sheet Some quick commands for oracle: 1. Some useful commands To...

Related posts brought to you by Yet Another Related Posts Plugin.

, ,

  1. #1 by Andrzej on April 17, 2010 - 09:23

    Good description – thenks !
    It worked on OpenSolaris for me :)

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
(will not be published)