Welcome!

Recurring Revenue Authors: Pat Romanski, Liz McMillan, John Katrick, Yeshim Deniz, Carmen Gonzalez

Related Topics: Containers Expo Blog, Open Source Cloud, Recurring Revenue

Containers Expo Blog: Article

Installing a Guest Operating System on a Virtual Machine

Oracle Database 10g XE on Virtualized openSuse 11.2 on VMWare Player

Virtualization has been widely accepted as a technique to conserve resources. Virtualization is the process of running a guest operating system on a virtual machine, which is created in a virtualizer running on the host operating system. Large companies do not have to install 100 different host computers for its employees as they may create 100 different virtual machines running different guest operating systems on a single host computer.

VMware is one of the main vendors of Linux virtualization solutions. VMware Player may be used to run 32-bit and 64-bit Linux operating systems including openSUSE, RHEL 5, and Ubuntu. VMware also offers Virtual Appliances, which are prebuilt software solutions comprising of virtual machine/s. Virtual Appliances are available for Ubuntu, Red Hat and openSUSE, though an appliance for the latest versions may not be available. For the latest version of openSuse, 11.2, it is recommended to install the openSUSE directly onto the VMware Player. In this article we shall install Oracle database XE in openSuse 11.2 as a guest operating system running in a virtual machine (VM) on a Windows host operating system.

Using Oracle database XE with openSuse 11.2 in VMPlayer requires the following:

  1. Install VMPlayer
  2. Create a virtual machine and install openSUSE 11.2 on the VM
  3. Install Oracle database in openSUSE 11.2
  4. Add user to dba group
  5. Create initialization initXE.ora file
  6. Grant write access to intiXE.ora
  7. Start database instance in NOMOUNT
  8. Modify DB_NAME parameter
  9. Restart database instance in NOMOUNT
  10. Create database
  11. Create database table
  12. Create data dictionary views

Installing VMware Player
Create three folders - openSuse, vmplayer and VMs - for installing openSuse ISO, VMPlayer, and an openSuse virtual machine. First, we need to download the latest version of VMPlayer to the vmplayer folder. The VMPlayer is just an .exe file. Double-click on the .exe file and the VMware Player Setup Wizard gets started.

Click on Next in the Welcome window. Specify the Destination Folder (C:\vmplayer for example) to install the VMware Player. Click on Next. In the Ready to Perform the Requested Operations window click on Continue. The VMware installation gets started. When the installation is completed, the Setup Wizard prompts for restarting the system to complete the installation. Click on Restart Now. After the system has been restarted, the VMware Player installation is completed.

Creating a Virtual Machine
Next, download the openSUSE 11.2 Live KDE ISO (openSUSE-11.2-KDE4-LiveCD-i686.iso) to the openSuse folder. Open the VMware Player. Click on Create a New Virtual Machine to create an openSUSE 11.2 virtual machine as shown in Figure 1.

The New Virtual Machine Wizard gets started. Select the Installer disc image file (iso) radio button and select the openSUSE 11.2 KDE ISO file as shown in Figure 2. Click on Next.

Select a guest operating system as Linux and a version as OpenSUSE as in Figure 3. Click on Next.

Specify a name for the virtual machine and specify the Location of the VM as the VMs directory. Click on Next. Specify the disk size as 40.0 GB and select Split virtual disk into 2GB files as in Figure 4. Click on Next.

Select the memory allocated to the VM. By default one processor is configured. Configure the Network Adapter as Bridged with Replicate physical network connection state as in Figure 5.

Click on Finish to create the openSUSE 11.2 VM and start the installation.

Installing openSUSE 11.2 in the Virtual Machine
After the virtual machine gets created, select Installation in the OpenSUSE Installer boot screen as in Figure 6.

In the Welcome window the license agreement is displayed. Click on Next. Select Time Zone and click on Next. In the Suggested Partitioning window Partition Based is selected by default. Click on Edit Partition Setup. In the Expert Partitioner the Available Storage on Linux gets listed for the different partitions of the VMware type /dev/sda hard disk as in Figure 7. Click on Accept.

Click on Next as in Figure 8.

In the User Settings, create a new user with the Create New User wizard. Click Next. In Installation Settings, review the installation summary and click Install. In the Confirm Installation window click Install. The installation gets started.

After the installation is completed, the system needs to reboot as shown in Figure 9.

The initial booting of openSUSE 11.2 gets completed. Next, the automatic configuration of openSUSE 11.2 gets performed. The openSUSE 11.2 VM gets created and installed as shown in Figure 10.

Installing Oracle Database XE in openSUSE 11.2
Next, we install the Oracle database XE in the openSUSE 11.2 VM. To start the openSUSE 11.2 VM click on Play virtual machine. Select VM > Install VMWare Tools to install VMware Tools. In the openSUSE login window specify the Username and Password.

The VMPlayer Desktop is displayed, as shown in Figure 11.

Download the Oracle database XE for Linux. Start the Dolphin file manager. Select the Download folder. Right-click on the oracle-xe rpm and select Open with Install Software. Specify a password for the root user and click on OK. The Software Manager will start. Oracle Database 10g XE will be installed.

Adding a User to the dba Group
Next, we test the newly installed database by starting the database. First, start the application launcher. In the application launcher search for Oracle and start the database with Start Database. An error will be generated, "Operation failed. dvohra11 is not a member of ‘dba' group. We need to add the user dvohra11 to the ‘dba' group. In the application launcher select the command line Terminal Konsole. The openSUSE terminal will start the Bash shell. Log in to the openSUSE 11.2 with root privileges with the su command. Add user dvohra11 to the ‘dba' group with the following command as shown in Figure 12.

usermod  -G dba dvohra11

Start the SQL Command line. Having added the user to the ‘dba' group, you will be able to connect as sys to an idle instance.

Creating an Initialization File initXE.ora
Before we create a database and a table, we need to create an initialization file from which the initialization parameters are read. For an ‘XE' SID we need an initXE.ora initialization file. We'll create the initXE.ora file by making a copy of the init.ora file in the directory /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs. In the bash shell cd to the //dbs directory. Create the initXE.ora file with the following command as shown in Figure 13.

cp init.ora initXE.ora

Next, grant write permissions to initXE.ora with the following command.

chmod g+w initXE.ora

Starting Database Instance in NOMOUNT
To create a database and a table start the database instance with the STARTUP command. Because control files are not yet available, an error will be generated indicating we need to start the instance in NOMOUNT. Start up the instance with the following command:

STARTUP NOMOUNT

The Oracle instance gets started.

Modifying DB_NAME Parameter
Next, we will create a database with the CREATE DATABASE command:

CREATE DATABASE ORAXE

An error is generated:

CREATE DATABASE failed
database name ‘ORAXE' does not match parameter db_name ‘DEFAULT'

We need to modify the static initialization parameter DB_NAME to the database name we want to create. Static parameters are modified with the ALTER SYSTEM command with scope set to ‘SPFILE'. Start the database in NOMOUNT and set the db_name parameter with the following command:

ALTER SYSTEM SET db_name='ORCLXE' scope=spfile

Static parameters require an instance restart when modified for the modification to take effect. Shut down the instance with the SHUTDOWN command as shown in Figure 14.

Restart the instance in NOMOUNT and verify that the DB_NAME parameter has been modified with the SHOW PARAMETER command.

Creating a Database
Having set the DB_NAME parameter to ORCLXE, create a database with the following command.

CREATE DATABASE ORCLEXE

The database gets created and mounted and opened as shown in Figure 15.

Creating a Database Table
Next, create a database table with the CREATE TABLE command. Shut down the instance with the SHUTDOWN command.

Creating Data Dictionary Views
We also need to create the data dictionary views with the following commands:

SQL> @?/rdbms/admin/catalog.sql
SQL> @?/rdbms/admin/catproc.sql

A VM may be shut down by selecting VM > Power > Power Off. As a best practice, don't shut down the VMPlayer without shutting down the VM. Similarly, multiple virtual machines may be added to the VMPlayer.

More Stories By Deepak Vohra

Deepak Vohra is a Sun Certified Java 1.4 Programmer and a Web developer.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@ThingsExpo Stories
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering m...
In his session at 21st Cloud Expo, Raju Shreewastava, founder of Big Data Trunk, provided a fun and simple way to introduce Machine Leaning to anyone and everyone. He solved a machine learning problem and demonstrated an easy way to be able to do machine learning without even coding. Raju Shreewastava is the founder of Big Data Trunk (www.BigDataTrunk.com), a Big Data Training and consulting firm with offices in the United States. He previously led the data warehouse/business intelligence and B...
Recently, REAN Cloud built a digital concierge for a North Carolina hospital that had observed that most patient call button questions were repetitive. In addition, the paper-based process used to measure patient health metrics was laborious, not in real-time and sometimes error-prone. In their session at 21st Cloud Expo, Sean Finnerty, Executive Director, Practice Lead, Health Care & Life Science at REAN Cloud, and Dr. S.P.T. Krishnan, Principal Architect at REAN Cloud, discussed how they built...
With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, examined the regulations and provided insight on how it affects technology, challenges the established rules and will usher in new levels of diligence arou...
Nordstrom is transforming the way that they do business and the cloud is the key to enabling speed and hyper personalized customer experiences. In his session at 21st Cloud Expo, Ken Schow, VP of Engineering at Nordstrom, discussed some of the key learnings and common pitfalls of large enterprises moving to the cloud. This includes strategies around choosing a cloud provider(s), architecture, and lessons learned. In addition, he covered some of the best practices for structured team migration an...
No hype cycles or predictions of a gazillion things here. IoT is here. You get it. You know your business and have great ideas for a business transformation strategy. What comes next? Time to make it happen. In his session at @ThingsExpo, Jay Mason, an Associate Partner of Analytics, IoT & Cybersecurity at M&S Consulting, presented a step-by-step plan to develop your technology implementation strategy. He also discussed the evaluation of communication standards and IoT messaging protocols, data...
The 22nd International Cloud Expo | 1st DXWorld Expo has announced that its Call for Papers is open. Cloud Expo | DXWorld Expo, to be held June 5-7, 2018, at the Javits Center in New York, NY, brings together Cloud Computing, Digital Transformation, Big Data, Internet of Things, DevOps, Machine Learning and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding busin...
Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
DevOps at Cloud Expo – being held June 5-7, 2018, at the Javits Center in New York, NY – announces that its Call for Papers is open. Born out of proven success in agile development, cloud computing, and process automation, DevOps is a macro trend you cannot afford to miss. From showcase success stories from early adopters and web-scale businesses, DevOps is expanding to organizations of all sizes, including the world's largest enterprises – and delivering real results. Among the proven benefits,...
@DevOpsSummit at Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, is co-located with 22nd Cloud Expo | 1st DXWorld Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait...
Cloud Expo | DXWorld Expo have announced the conference tracks for Cloud Expo 2018. Cloud Expo will be held June 5-7, 2018, at the Javits Center in New York City, and November 6-8, 2018, at the Santa Clara Convention Center, Santa Clara, CA. Digital Transformation (DX) is a major focus with the introduction of DX Expo within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive ov...
SYS-CON Events announced today that T-Mobile exhibited at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. As America's Un-carrier, T-Mobile US, Inc., is redefining the way consumers and businesses buy wireless services through leading product and service innovation. The Company's advanced nationwide 4G LTE network delivers outstanding wireless experiences to 67.4 million customers who are unwilling to compromise on qua...
SYS-CON Events announced today that Cedexis will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Cedexis is the leader in data-driven enterprise global traffic management. Whether optimizing traffic through datacenters, clouds, CDNs, or any combination, Cedexis solutions drive quality and cost-effectiveness. For more information, please visit https://www.cedexis.com.
SYS-CON Events announced today that Google Cloud has been named “Keynote Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Companies come to Google Cloud to transform their businesses. Google Cloud’s comprehensive portfolio – from infrastructure to apps to devices – helps enterprises innovate faster, scale smarter, stay secure, and do more with data than ever before.
SYS-CON Events announced today that Vivint to exhibit at SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California. As a leading smart home technology provider, Vivint offers home security, energy management, home automation, local cloud storage, and high-speed Internet solutions to more than one million customers throughout the United States and Canada. The end result is a smart home solution that sav...
SYS-CON Events announced today that Opsani will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Opsani is the leading provider of deployment automation systems for running and scaling traditional enterprise applications on container infrastructure.
SYS-CON Events announced today that Nirmata will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Nirmata provides a comprehensive platform, for deploying, operating, and optimizing containerized applications across clouds, powered by Kubernetes. Nirmata empowers enterprise DevOps teams by fully automating the complex operations and management of application containers and its underlying ...
SYS-CON Events announced today that Opsani to exhibit at SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California. Opsani is creating the next generation of automated continuous deployment tools designed specifically for containers. How is continuous deployment different from continuous integration and continuous delivery? CI/CD tools provide build and test. Continuous Deployment is the means by which...