In article Installing Oracle Linux in VMware virtual machine we covered installation of Oracle Linux 5U8 including oracle-validated package.
Now, our system is ready for Oracle database installation, and no additional configuration tasks is required at this moment.
Note: Most of the time we work with OS from remote locations and target servers are located in data centers or somewhere else.
In this tutorial we assume that our server is located in a remote location and we use remote access tools in order to connect to the Linux terminal, transfer installation packages, and run Oracle Universal Installer on our local (client) machine.
Here is the action plan:
1. Downloading Oracle database 11g installation packages from Oracle websites
2. Installing local X-Server Xming to be able to display GUI applets from a remote server on our local desktop, like we were sitting in front of the server.
3. Connecting to Linux server using WinSCP and transferring installation packages.
5. Configure PyTTY session with port forwarding enabled to be able to display GUI windows via Xming server
6. Unpacking and running Oracle Universal Installer to install Oracle database software
7. Creating new Oracle database instance with Enterprise Manager Database Control
8. Testing our installation connecting to running database instance using the following tools:
Let’s get started…
Let’s download Linux 64bit version Oracle Database 11g Release 2 (18.104.22.168.0) for Linux x86-64
Xming will start minimized in system tray next to the system clock.
Our Linux server has the following access details:
IP Address: 192.168.1.2
As we remember, oracle user account has been created automatically thanks to oracle-validated package, however with randomly generated password.
Normally we would grand to our local user privileges to switch to oracle account without the password (sudo, su and visudo commands – check here) but for this tutorial we will reset oracle user account password.
[[email protected] ~]$ su - root Password: [[email protected] ~]# passwd oracle Changing password for user oracle. New UNIX password: BAD PASSWORD: it is based on a dictionary word Retype new UNIX password: passwd: all authentication tokens updated successfully. [[email protected] ~]# exit logout [[email protected] ~]$
xclock command starts graphical application xclock on the Linux server and displays it on local windows host thanks to xming server running.
Once all zip files have been copied to Linux server we are ready to unzip them from /tmp directory to /home/oracle/stage directory – now we can do it as oracle user
connect as oracle user using PuTTY and issue the following commands
[[email protected] ~]$ for i in /tmp/linux.x64_11gR2_database_*.zip; do unzip $i -d /home/oracle/stage; done [[email protected] ~]$ ls /home/oracle/stage database
Our installation package has been unzipped into /home/oracle/stage/database directory
Before we start with installation we must create directories for Oracle Software
[[email protected] database]$ su - root Password: [[email protected] ~]# mkdir -p /u01/app/oracle [[email protected] ~]# chown -R oracle:oinstall /u01 [[email protected] ~]# exit logout [[email protected] database]$
Now let’s run Oracle Universal Installer and install oracle software:
[[email protected] ~]$ cd /home/oracle/stage/database/ [[email protected] database]$ ./runInstaller Starting Oracle Universal Installer... Checking Temp space: must be greater than 120 MB. Actual 16917 MB Passed Checking swap space: must be greater than 150 MB. Actual 3999 MB Passed Checking monitor: must be configured to display at least 256 colors. Actual 1 Preparing to launch Oracle Universal Installer from /tmp/OraInstall2022-04-27_07
Before we start with database creation we configure oracle listener executing netca (net service creation assistance) utility:
[[email protected] ~]$ cd /u01/app/oracle/product/11.2.0/db_1/bin/ [[email protected] bin]$ ./netca Oracle Net Services Configuration:
Once we have Oracle software installed and listener configured we can launch DBCA (database creation assistance) to install Oracle Database Instance – TESTDB1
[[email protected] ~]$ cd /u01/app/oracle/product/11.2.0/db_1/bin/ [[email protected] bin]$ ./dbca
This is it!
Our brand new database is now up and running!
Database connection details:
Database IP: 192.168.1.2
Database name (SID): TESTDB1
Database listener port: 1521
Connecting to a database using sqlplus utility on local database host (on Linux server as oracle user)
connect to Linux server using putty and run the following commands:
[[email protected] bin]$ . oraenv ORACLE_SID = [oracle] ? TESTDB1 The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 is /u01/app/oracle [[email protected] bin]$ sqlplus / as sysdba SQL*Plus: Release 22.214.171.124.0 Production on Fri Apr 27 20:56:41 2012 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 126.96.36.199.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> select * from global_name; GLOBAL_NAME -------------------------------------------------------------------------------- TESTDB1.LOCAL.COM SQL> select name from v$database; NAME --------- TESTDB1 SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 188.8.131.52.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options [[email protected] bin]$
NOTE: You must install Java JDK for Windows 32/64bit depends on your Windows host architecture
Oracle Enterprise Manager Database Control 11g
To access OEM Database control update windows hosts file c:\Windows\System32\drivers\etc\hosts with the following entries:
192.168.1.2 test-host.local.com test-host
Type the following URL in your web browser: https://test-host.local.com:1158/em
That’s all folks!!
Next, we will show the following article Installing Oracle Database 11g R2 on Linux with ASM (Automatic Storage Management) which is more advanced type of installation.
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.