Links

   Quran Explorer - Interactive Audio Recitations & Translations

Monday, April 26, 2010

Virtual Appliances

These are software appliances (mostly enterprise applications) that run on a Virtual Machine. A virtual machine (VM) is a software implementation of a machine (i.e. a computer) that executes programs like a physical machine.

Virtual Machines are realized using a Virtualization Platform:
1. Sun Virtual Box (Now called Oracle VM Virtualbox)
2. VMWare
3. Parallels Workstation, etc

The main advantages of system VMs are:
i) multiple OS environments can co-exist on the same computer, in strong isolation from each other
ii) the virtual machine can provide an instruction set architecture (ISA) that is somewhat different from that of the real machine
iii) application provisioning, maintenance, high availability and disaster recovery[2]

The main disadvantage of system VMs is:
a virtual machine is less efficient than a real machine since it accesses the hardware indirectly


A virtual appliance is a virtual machine image designed to run on a virtualization platform.

Virtual appliances are a subset of the broader class of software appliances. Installation of a software appliance to a virtual machine creates a virtual appliance. Like software appliances, virtual appliances are aimed to eliminate the installation, configuration and maintenance costs associated with running complex stacks of software.

A virtual appliance is not a virtual machine, but rather a software image containing a software stack designed to run inside a virtual machine. Like a physical machine, a virtual machine is merely a platform for running an operating system environment and by itself does not contain application software.

Versioning - Subversion

Virtual Machines

Msiniseme - Alikiba

CHORUS
Msinisemee ah 4x
Kwamba napenda kula
Msinishangae 4x
kwamba napenda kula
Msinitengee 4x
Kwamba napenda kula
VERSE(1)
Basi hivi juzi juzi
Kulikuwa na shuguli
Utawa birika na simali
Kulikuwa na pilau na wali
Basi nami nikajiunga
Pale pale kupiga mpunga
Watu wakajipanga
Nikaanza kwa tonge na nyama
Jamani ninamatonge*4
Mpaka wakanifukuza
Nikasema sijali
Nikatoa pesa mfukoni
Nikanunua mayai
Kilijofuata watu hawakai
CHORUS 
Msinisemee ah 4x
Kwamba napenda kula
Msinishangae 4x
kwamba napenda kula
Msinitengee 4x
Kwamba napenda kula
VERSE (2)
Ilikuwa juma pili
Siku ya watu wenye ufahari
Kujirusha sehemu mbali mbali
Nami nikasema sikubali
Wacha niendee*4
Ila pesa sina na nataka ni kale
Nikapita sokoni
Nikaomba embe sokoni
Nikaelekea baharini
Nikawaona wengi ufukweni
Nikapita na embe kiutani
Nakula ili watamani
Mate yaliwajaa midomoni
Wakaanza kuniomba
Msiniombee ah 4x

© Alikiba

iReport

Dream Car

Favourite Car - Toureg

Pics


ICEFaces

SUN WebSpace

To Install Web Space Server

1. Download the stand-alone version of Web Space Server.
Extract the Web Space Server bundle.
2. Unzip webspace-for-gfv2.zip
3. Navigate to the Application folder.
cd webspace-for-gfv2/webspace/application
4. Install (make sure glassfish, and mysql are running)
Run ant -f install-gfv2.xml (or ant -f install.xml)


Properties File
Default Path: etc/webspace/application

Defined in 'install.xml' as:







Misc

Default Webspace Admin:
Email:admin@example.com
Pass:admin

Fedora 10

Virtual Box - Cloning Drives

Prerequisite for Fedora 10
dkms package

Cloning

NB: Windows Users will call this copying.

Cloning allows u to use an existing installation as the basis of another installation/config.
For example u can clone the Virtual HDD of a Solaris appliance so that u can have another solaris appliance with Glassfish on top.

Command
#VBoxManage clonevdi soure.vdi target.vdi

The target.vdi will be created when u run the command. If a Virtual HDD exists with the same name the command will fail with an error.

Oracle

Administration

1. Manual Startup

#xhost + //disables access control
#su - oracle //switch to user oracle (execute home folder)
#export ORACLE_SID=crm //for crm SID
#sqlplus / as sysdba //start sqlplus
SQL>startup //start it up
SQL>quit //
#lsnrctl start lsnrcrm //start listener
#emctl start dbconsole //Enterprise Manager

shutting down = shutdown immediate

2. Related (run as user oracle)

#dbca //db config assistant
db type: General Purpose
Global Db Name : eg dump.fsm
SID : eg dumpfsm

Option - > Generate DB Creation Scripts (Default location: /home/oracle/oracle/admin/dump/scripts)

#netca //configure listener

3. Enterprise Manager
Login:
User: sys
Pass: invent
Connect: SYSDBA
DB Login:
User: sys
Pass: invent
Connect: SYSDBA

Hosted(172.100.3.22):
User:sys
Pass:Imis2goke
Connect: SYSDBA

System Administration
1. Local http://localhost.localdomain:5500/em/
2. Hosted http://172.100.3.22:5501/em/

Manage (Create,Edit n Delete) Users, Roles, etc

Create User > Edit Roles > Priviledges >

Roles
All Except:
-DBA
-GLOBAL_AQ_USER_ROLE

Privileges
All Except:
-FREEZE_ANY_WORKSPACE


String Manipulation

Position Of Substring
INSTR(string, y [,start [, o]]) returns the location of substring y within string.
Optionally you can specify the start at a start position from the beginning of string and find the specific numbered occurance o of y.
For example INSTR(’abracadabraabraxas’, ’ra’, 4, 2) returns the location of the second occurance of the substring ’ra’ starting from location 4. It gives location 14 since the search ignores the first 3 characters (the first character is location 1).


Extract Substring
SUBSTR(string, start [, count]) returns a string by clipping out the subsection of string starting at location start and including count characters.
If count is omitted it will clip until the end of the string.

//get rid of leading and trailing characters
update channeltemp set channelplanname = substr(channelplanname,2, length(CHANNELPLANNAME)-2)

Execution Plan


Exception Handling

Trees - Connect By

MySQL

Postgres

GlassFish

Introduction


Installation
Installation Path
/opt/glassfishv3

Installation Command
--test
Install (make sure glassfish, and mysql are running)
Run ant -f install-gfv2.xml (or ant -f install.xml)


Config:
Admin Port:4848 eg localhost:4848
HTTP Port:8080 eg localhost:8080


Default Password: adminadmin
Startup option 1 ???:
cd /opt/glassfishv3/glassfish/bin
1. glassfish [asadmin] startserv
2. glassfish [asadmin] stopserv

Start option 2:
cd /opt/glassfishv3/glassfish/bin
./asadmin start-domain
./asadmin stop-domain

Log File

/opt/glassfishv3/glassfish/domains/domain1/logs/server.log


Good Startup - message:
Waiting for DAS to start .................................................................................................................................
Started domain: domain1
Domain location: /opt/glassfishv3/glassfish/domains/domain1
Log file: /opt/glassfishv3/glassfish/domains/domain1/logs/server.log
Admin port for the domain: 4848
Command start-domain executed successfully.

Tomcat

test