Search This Blog

Thursday, February 23, 2012

BPEL Process to display the IP Address of a hostname

 

Create a BPEL process with the following java embded code ,
<bpelx:exec import="java.net.*"/>
    <bpelx:exec name="Java_Embedding_1" language="java" version="1.3">
      <![CDATA[String ipaddr = (String)getVariableData("stringvar");   
System.out.println(ipaddr); 
try { 
        InetAddress addr1 = InetAddress.getByName(ipaddr); 
          byte[] ipAddr = addr1.getAddress(); 
          // Convert to dot representation 
          String ipAddrStr = ""; 
          for (int i=0; i<ipAddr.length; i++) { 
              if (i > 0) { 
                  ipAddrStr += "."; 
              } 
              ipAddrStr += ipAddr[i]&0xFF; 
          } 
      System.out.println(" Lookup Host Name " +addr1 +" --> " +ipAddrStr); 
      ipaddr = ipAddrStr;

catch(Exception e1) { 
e1.printStackTrace(); 
}
setVariableData("stringvar",ipaddr);]]>
    </bpelx:exec>
Please refer to the Java Doc for the API call's that you can use in BPEL java
http://docs.oracle.com/cd/B31017_01/integrate.1013/b28986/com/collaxa/cube/engine/ext/BaseBPELXExecLet.html
http://technology.amis.nl/blog/2387/embedding-java-in-bpel-process
http://niallcblogs.blogspot.in/2008/01/bpel-embedded-java.html

Thursday, February 02, 2012

EJB Out Bound Example in SOA

 

1. Create a Simple EJB HelloWorld Application and deploy this to the WebLogic Server

Refer to the file below for the example ,

Hello EJB Example

2. Create a new composite and create a mediator component ,

3. In the External Reference drop the ejb Service and specify the EJB JNDI Binding Name  say

OS9SOAApplication-HelloEJB-HelloEJB#test.os9.model.HelloEJB

EJB-Jar file :

and Java Interface : test.os9.model.HelloEJB

4. Wire the EJB Outbound Service to the mediator and perform the XML transformations and run the example ,

Refer to the file in the link given below ,

Calling EJB from Mediator/BPEL

Simple inbound ejb example ,

 

1. Create a java file with the following contents

package test.os9;
//import javax.ejb.Remote;
//@Remote
public interface Hello {
public String sayHello(String input);
}

Compile this file , create a class file and create a jar file and copy the jar file to SCA-INF\lib directory

2. Create an EJB Binding in the Services lane, based on this Java interface. Specify the JNDI Name for this EJB. For example: ejb/EjbBind and select the above interface file and the jar

3. Create a Mediator with no interface definition and Wire this mediator to this EJB Service

4. Create a BPEL process and wire this to the Medaitor

5. Create the mappings for the mediator

6. Create an EJB Client with the following code ,

package test.os9;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class EjbClient {
  public EjbClient() {
    super();
  }
  public static void main(String[] args) {
    EjbClient ejbClient = new EjbClient();
    try {
     final Context context = getInitialContext();
     Hello hello = (Hello)context.lookup("ejb/EjbBind");
     System.out.println(hello.sayHello("hello ravi"));
     } catch (Exception ex) {
     ex.printStackTrace();
     }
  }
  private static Context getInitialContext() throws NamingException {
  Hashtable env = new Hashtable();
  // WebLogic Server 10.x connection details
  env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
  env.put(Context.PROVIDER_URL, "t3://xxx.xxx.oracle.com:7001");
    env.put(Context.SECURITY_PRINCIPAL,"weblogic");
    env.put(Context.SECURITY_CREDENTIALS,"xxxxx");
  return new InitialContext( env );
  }
}

Add the following libraries to compile the class files 

   "EJB 3.0" and "WebLogic 10.3 Remote-Client"

Here is the example ,

Download Example

Tuesday, January 24, 2012

How to increase JVM Memory Size for JDeveloper 11g

Open the file D:\fmw1115\Middleware\jdeveloper\ide\bin\ide.conf

and change the lines

AddVMOption -Xmx1024M
AddVMOption -Xms128M

Also open the file D:\fmw1115\Middleware\jdeveloper\jdev\bin\jdev.conf

and change the line

AddVMOption -XX:MaxPermSize=256M

Thursday, December 01, 2011

How to Add a Hard Disk Space to Oracle VM

 

1. Create a 30GB file ,

dd if=/dev/zero of=fmw11g.img  bs=1024k count=30000

2. Add the file /OVM/linuxvm/fmw11g.img
to the vm.cfg file , for example ,

disk = ['file:/OVM/linuxvm/System.img,xvda,w','file:/OVM/linuxvm/fmw11g.img,xvdb,w',]

3. Now start the VM by using the command ,
xm create vm.cfg

4. In the fdisk -l command , you should be able to see this file ,

For example ,

fdisk -l

Disk /dev/xvda: 12.8 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1   *           1          13      104391   83  Linux
/dev/xvda2              14        1264    10048657+  83  Linux
/dev/xvda3            1265        1566     2425815   82  Linux swap / Solaris

Disk /dev/xvdb: 31.4 GB, 31457280000 bytes
255 heads, 63 sectors/track, 3824 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

5. using fdisk /dev/xvdb command create a partion and format that partition
using the command ,

mkfs.ext3 /dev/xvdb1

6. After this mount this file system by adding this entry to the /etc/fstab file ,
/dev/xvdb1             /fmw11g                   ext3    defaults        1 2

run the command , mount -a

Friday, November 25, 2011

Find out whether a Schema is Valid or Not

 

Some times in SOA you need to find out whether the schema you have designed/developed is valid and conforms to XML schema standards etc.

For this you can use the JDK 1.6 tool xjc.exe to check ,

%JDK_HOME%\bin\xjc.exe <your-schema-file> and check whether you are getting errors or not.
When I ran the xjc command with the original schmea , I got the errors
parsing a schema...
[ERROR] sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'party,IdentificationType'.
  line 45 of file:/D:/bugs-download/Bug12965191/restriction_example/restriction/schema-restriction/xsd/party/party.xsd
[ERROR] rcase-Recurse.2: There is not a complete functional mapping between the particles.
  line 7 of file:/D:/bugs-download/Bug12965191/restriction_example/restriction/schema-restriction/xsd/local-party.xsd
[ERROR] derivation-ok-restriction.5.4.2: Error for type 'LocalPartyType7'.  The particle of the type is not a valid restriction of the particle of the base.
  line 7 of file:/D:/bugs-download/Bug12965191/restriction_example/restriction/schema-restriction/xsd/local-party.xsd
Failed to parse a schema.

The above error indicates that schema is not a valid schema.

Wednesday, November 23, 2011

How to set the SOA composite name

 

By default no composite name is set when a SOA componenet gets executed.


XPath for Mediator components:
Use the the following XPath expression in an Assign value dialog when you define a routing rule.

med:setCompositeInstanceTitle(title string)

and use the following target tracking.compositeInstanceTitle.
Note: this property will not appear in the property selection dialog, but can be used though.


Java for BPEL components
Add an Embedded Java activity inside your process flow and add the following function to it:

setCompositeInstanceTitle(title string);
for example ,

In the java embeding add the following code ,

System.out.println("Hello, World 11 "+ new java.util.Date());
setCompositeInstanceTitle("Hello, World 11 "+ new java.util.Date());

Reference

http://docs.oracle.com/cd/E15523_01/integration.1111/e10226/soacompapp_mang.htm

 

For 10g use

System.out.println("Hello, World 11 "+ new java.util.Date());
setTitle("Hello, World 11 "+ new java.util.Date());

Tuesday, October 11, 2011

HTTP Proxy Server Settings for the SOA/Weblogic Server

This summary is not available. Please click here to view the post.

Tuesday, October 04, 2011

BPEL Example of Inserting to Array

 

I have the following XSD Element ,

Basically this structure stores the name and address (multiple values) , state , country and pincode etc ,
My requirement is to add the data to this element from a BPEL process ,

<complexType>
     <sequence>
  <element name="fullname" type="string"/>       
          <element name="addrline" type="string" maxOccurs="unbounded"/>
                <element name="state" type="string"/>
        <element name="country" type="string"/>
        <element name="zip" type="string"/>
            </sequence>
  </complexType>

Create a simple BPEL process , and for the output select the above XSD element , in the BPEL

 


























Near Dairy Circle




Next to Christ University




Bannerghata Road







How to start the VM in Single user mode in Oracle VM 2.2/3.0/XEN

 

Add the following line to the end of the file vm.cfg file ,

extra = 'single'

to the xen domU config file

After this start the VM using the command ,

xm create vm.cfg

This will start the VM in single user mode.

How to Run the Oracle VM 2.2 Images on Oracle VM 3.0 With out the Oracle VM Manager

 

I am having problems with the Oracle VM manager 3.0 as it needs 6GB machine to run in my home. Here is the procedure I followed to run the Oracle VM 2.2 images on Oracle VM 3.0.

 

1. You need to set the Bridged Networking on Oracle VM 3.0

open the file

vi /etc/xen/xend-config.sxp

Uncomment the following line , (Line no 163)

(network-script network-bridge)

And also ensure that you have the following line uncommented (line 178)

(vif-script vif-bridge)

After this restart the Oracle VM Server

Run the command ,

brctl show  (This displays the following , )

bridge name     bridge id               STP enabled     interfaces
bond0           8000.0021918b3e8a       no              pbond0

In the linux guest vm I have the following line ,

vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0']
vif = ['type=netfront']

In the Windows Guest OS I have the following line ,

vif = ['bridge=bond0,mac=00:16:3E:26:BE:CE,type=ioemu']

Start the VM’s manually using the command

xm create vm.cfg

Sunday, July 31, 2011

Wants to Send SMS Reminder at a future data and only one

 

I want to fire a job at 9:59 AM on July-14-2011 , 7/14/2011 (MM/DD/YYYY)

echo /home/ias/Oracle/Middleware/jdk160_18/bin/java -cp /home/ias/JavaUtils Sms160By2 9198808XXXXX "\"Test 5"\" | at 9:59 AM 7/14/2011

Install VmWare ESXI Server from USB

 

1) Format the US Drive with fat32.
2) Get Syslinux, not the version 4, but an older version. Use 3.86 from http://www.kernel.org/pub/linux/utils/boot/syslinux/3.xx/
Version 4 can give you an error on boot, "invalid c32 image".
3) Run syslinux: syslinux.exe -m -f -a G: (G: being the drive letter).
4) Get the ESXi iso,  VMware-VMvisor-Installer-4.1.0.update1-348481.x86_64.iso
5) Extract the iso, using the 7-Zip and copy contents to usb drive
6) Rename isolinux.cfg to syslinux.cfg
7) Modify the syslinux.cfg, add "ks=usb" after vmkboot.gz

For example ,

append vmkboot.gz ks=usb --- vmkernel.gz --- sys.vgz --- cim.vgz --- ienviron.vgz --- install.vgz

8) Create the ks.cfg file in the USB root directory with the following contents

vmaccepteula
rootpw Welcome1
autopart --firstdisk --overwritevmfs
install usb
network --bootproto=dhcp --device=vmnic0

9) Boot it from the USB and install the ESXi software

Sunday, July 24, 2011

Installing VMware ESXi on a USB Memory Stick

1.The first thing you’ll need is a spare USB memory stick. I used 1 8GB USB drive for this. But 4GB or 2GB is also sufficient for this.
                                                                                                                                                                                                                                                                                                                                         2.  The next step is to download ESXi from VMware here and burn if off onto CD.

3. Now insert the USB memory stick into a USB port which is able to be booted.
Though at this stage make sure that your server can boot from the CD/DVD drive.

4. Insert the CD containing the ESXi install into the servers CD/DVD drive and boot or restart the server.
Choose the default options.

5. At this stage you will see a list of all your storage devices connected to your VMware ESXi host – select your USB memory stick and press 'Enter'

6. Wait while the ESXi is written down to your USB flash drive – at this point you should see it flashing away
                                                                                                                                                                                                        
7. Once the installation has completed you will receive the screen below.  At this point remove the ESXi installation CD from the servers CD/DVD drive and press ‘Enter’ to reboot the server.
IMPORTANT: Upon the server rebooting ensure that its boot priority order is set so that the USB port(s) are booted from first.


Your server should now be booting successfully off of the USB memory stick to VMware ESXi  4 – all you need to do now is configure it!

After this you have to create a VMFS file system that can be used as a data store ,

For this you need to create a VMFS file system. First run the command ,

fdisk -l                                                        
                                                                                                                                                 
Disk /dev/disks/t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740: 1000.2 GB, 1000204886016 bytes                      
255 heads, 63 sectors/track, 121601 cylinders                                                                                                   
Units = cylinders of 16065 * 512 = 8225280 bytes                                                                                                
                                                                                                                                                
                                                                                  Device Boot      Start         End      Blocks  Id System      
/dev/disks/t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740p1   *         1        13    102400    7  HPFS/NTFS       
Partition 1 does not end on cylinder boundary                                                                                                   
/dev/disks/t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740p2            13     19123 153497600    7  HPFS/NTFS       
/dev/disks/t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740p3         19123     31871 102400000    7  HPFS/NTFS       
...      
/dev/disks/t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740p8         39573     51731  97659146   83  Linux 
 
And run the command
fdisk /dev/disks/t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740

and create a partion , and specify the format type as "fb". This is for the VMFS file system.

In the fdisk , type "t". It will ask you for partition number. This is where that first fdisk is useful. You need to know what the new partition number is.
It will be one more than the last number on fdisk. Type this number in

You will now be prompted for the hex code for the partition type. You can also type "L" for a list of codes. The code you want is "fb". So type "fb" in the space. This will return that the partition has been changed to fb (unknown).

Now run the command to create the VMFS file system ,

vmkfstools -C vmfs3 -S storage1 /vmfs/devices/disks/vml.0100000000202020202057442d574341563548323430373430574443205744:9                                      
Checking if remote hosts are using this device as a valid file system. This may take a few seconds...                                                          
Creating vmfs3 file system on "t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740:9" with blockSize 1048576 and volume label "storage1".
Successfully created new volume: 4e2c8868-54253438-de36-001aa0c2472f        
 
 
If you do not specify the VMFS file system , while creating the vmfs file system you may get the error as ,

vmkfstools -C vmfs3 -S storage1 /vmfs/devices/disks/vml.0100000000202020202057442d574341563548323430373430574443205744:9                                      
Checking if remote hosts are using this device as a valid file system. This may take a few seconds...                                                          
Creating vmfs3 file system on "t10.ATA_____WDC_WD10EARS2D00Y5B1__________________________WD2DWCAV5H240740:9" with blockSize 1048576 and volume label "storage1".vmkfstools -C vmfs3 -S storage1 /vmfs/devices/disks/vml.0100000000202020202057442d574341563548323430373430574443205744:9
/vmfs/devices/disks/vml.0100000000202020202057442d574341563548323430373430574443205744:9: Permission denied.  (Have you set the partition type to 0xfb?)       
Error: Permission denied

Now in the VMWare VSphere Client you can see the datastore.

Thursday, July 21, 2011

Sending SMS to Multiple People

 

Sending SMS to Multiple People

I used the following code available at

https://sourceforge.net/projects/servalivecheck/

I have a file say sms.txt with the following entries I want to send an SMS to all the people in this file.

Sms.lst has the following entries

Ravi,9198808XXXXX

Naveen,919663XXXXX

In Unix create an shell script with the following entries

cat dd.sh

#!/bin/bash

for x in `awk -F',' '{ print $2 }' sms.lst`

do

/home/ias/Oracle/Middleware/jdk160_18/bin/java -cp /home/ias/JavaUtils Sms160By2 $x "\" We are playing Cricket on this Saturday "\"

Done

On Windows run the following batch file ,

for /F "tokens=2* delims=," %i in (sms.lst) do java -cp . Sms160By2 %i "We are playing Cricket on this Saturday"

This sends the SMS to all the people in the group.

Tuesday, July 12, 2011

Yum Configuration With OEL

Refer to the URL , http://public-yum.oracle.com/ for more details on this.

1.Download and Install Oracle Linux

2. Download and copy the appropriate yum configuration file in place, by running the following commands as root:

Oracle Linux 5

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo

Enable the appropriate repository by editing the yum configuration file

    Open the yum configuration file in a text editor
    Locate the section in the file for the repository you plan to update from, e.g. [el4_u6_base]
    Change enabled=0 to enabled=1

Begin using yum, for example:

yum list

yum install firefox


After this install the oracle-validated package this will install the necessary packages and sets the kernel parameters
and also creates oracle user etc.

yum install oracle-validated

Sunday, July 10, 2011

Parsing Railway’s PNR Data (JSON Parsing)

 

Here I am using a Service from the following URL ,

http://pnrapi.appspot.com/<pnr-number>

for example ,

http://pnrapi.appspot.com/1416780219

This gives the data in the following format ,

{'status': 'OK', 'data': {'passenger': [{'status': 'G3  , 45', 'seat_number': 'W/L   15,CK'}],
'from': 'SC', 'alight': 'YPR', 'pnr_number': '1416780219', 'train_number': '*12735',
'to': 'YPR', 'board': 'SC', 'train_name': 'YPR GARIB RATH',
'travel_date': {'date': '26-6-2011', 'timestamp': 1309046400}, 'class': '3A'}}

you need to have the following jar files in the classpath ,

D:\fmw1114\Middleware\jdk160_21\bin\javaw.exe -client -classpath C:\JDeveloper\mywork\Application5\Project1\classes;D:\commons-httpclient-3.1\commons-io-2.0.1.jar;D:\commons-httpclient-3.1\json-lib-2.4-jdk15.jar;D:\commons-httpclient-3.1\commons-httpclient-3.1.jar;D:\commons-httpclient-3.1\commons-lang-2.6.jar;D:\commons-httpclient-3.1\commons-logging-1.1.1.jar;D:\commons-httpclient-3.1\commons-logging-adapters-1.1.1.jar;D:\commons-httpclient-3.1\commons-logging-api-1.1.1.jar;D:\commons-httpclient-3.1\commons-logging-tests.jar;D:\commons-httpclient-3.1\ezmorph-1.0.6.jar;D:\commons-httpclient-3.1\commons-collections-3.2.1.jar;D:\commons-httpclient-3.1\commons-beanutils-1.8.3.jar;D:\commons-httpclient-3.1\commons-beanutils-bean-collections-1.8.3.jar;D:\commons-httpclient-3.1\commons-beanutils-core-1.8.3.jar project1.ParsePNR


package project1;

import java.io.BufferedReader;
import java.io.InputStream;

import java.io.InputStreamReader;

import java.net.URL;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import net.sf.json.JSONSerializer;
import org.apache.commons.io.IOUtils;


public class ParsePNR {
public ParsePNR() {
super();
}

public static void main(String[] args) throws Exception {
// InputStream is =
// ParsingJSON.class.getResourceAsStream( "c:\\sample-json.txt");
// String jsonTxt = IOUtils.toString( is );
/*
String test = "\"status\" : \"OK\",\n" +
"\"data\" : { \n" +
" \"train_name\" : \"ERNAKULAM EXP\",\n" +
" \"train_number\" : \"*12677\",\n" +
" \"from\" : \"SBC\",\n" +
" \"to\" : \"CBE\",\n" +
" \"alight\" : \"CBE\",\n" +
" \"board\" : \"SBC\",\n" +
" \"class\" : \"2S\",\n" +
" \"travel_date\" : \"2- 6-2011\"\n" +
" \"passenger\" : [ { \"seat_number\" : \"D8 , 31,GN\", \"status\" : \"CNF\" },\n" +
" { \"seat_number\" : \"D8 , 32,GN\", \"status\" : \"CNF\" } ]\n" +
" }";

// Sample Data (1 passenger)
{'status': 'OK', 'data': {'passenger': [{'status': 'G3 , 45', 'seat_number': 'W/L 15,CK'}], 'from': 'SC', 'alight': 'YPR', 'pnr_number': '1416780219', 'train_number': '*12735', 'to': 'YPR', 'board': 'SC', 'train_name': 'YPR GARIB RATH', 'travel_date': {'date': '26-6-2011', 'timestamp': 1309046400}, 'class': '3A'}}


// Sample Data (2 passenger)
{'status': 'OK', 'data': {'passenger': [{'status': 'G3 , 45', 'seat_number': 'W/L 15,CK'},{'status': 'G3 , 46', 'seat_number': 'W/L 16,CK'}], 'from': 'SC', 'alight': 'YPR', 'pnr_number': '1416780219', 'train_number': '*12735', 'to': 'YPR', 'board': 'SC', 'train_name': 'YPR GARIB RATH', 'travel_date': {'date': '26-6-2011', 'timestamp': 1309046400}, 'class': '3A'}}

Replace the class with class1 as class is a reserved word in java.

*/
String pnr="";
if (args.length == 0 )
pnr = "1416780219";
else
pnr = args[0];
System.setProperty("http.proxyHost", "www-proxy.us.oracle.com");
System.setProperty("http.proxyPort", "80");
System.setProperty("http.nonProxyHosts","*.us.oracle.com|*.oraclecorp.com|*.idc.oracle.com|*.uk.oracle.com|localhost");

URL url = new URL("http://pnrapi.appspot.com/"+pnr);
// Read all the text returned by the server
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
String str="";
String line;
while ((line = in.readLine()) != null) {
// str is one line of text; readLine() strips the newline character(s)
str= str.concat(line );
// System.out.println(line);
System.out.println(str);
}
in.close();
str= str.replace("'class':","'class1':");
/*String jsonTxt ="{'status': 'OK', 'data': {'passenger': [{'status': 'G3 , 45', 'seat_number': 'W/L 15,CK'},{'status': 'G3 , 46', 'seat_number': 'W/L 16,CK'}], " +
"'from': 'SC', 'alight': 'YPR', 'pnr_number': '1416780219', " +
"'train_number': '*12735', 'to': 'YPR', 'board': 'SC', " +
"'train_name': 'YPR GARIB RATH', 'travel_date': {'date': '26-6-2011', 'timestamp': 1309046400}, " +
"'class1': '3A'}}"; */
String jsonTxt = str;
JSONObject json = (JSONObject) JSONSerializer.toJSON( jsonTxt );
String status = json.getString( "status" );
if (status.compareToIgnoreCase("INVALID") == 0) {

System.out.println("Status is "+status);
System.exit(0);

}
JSONObject data = json.getJSONObject("data");
String train_name = data.getString("train_name");
String train_number = data.getString("train_number");
String class_d = data.getString("class1");
String from = data.getString("from");
String alight = data.getString("alight");


JSONObject travel_date = data.getJSONObject("travel_date");
String date = travel_date.getString("date");




System.out.printf( "status: %s\n", status );

System.out.printf( "Train number : %s Tain Name : %s \n", train_number, train_name );
System.out.printf( "From : %s To : %s Date Of Travel : %s Class : %s\n", from, alight , date , class_d );

JSONArray passenger = data.getJSONArray("passenger");
int i1=0;
for (Object o : passenger) {
i1++;
JSONObject passengerDetails = (JSONObject) o;
String status_p = passengerDetails.getString("status");
String seat_number = passengerDetails.getString("seat_number");

System.out.printf( "Passenger : %d Current Status : %s Previous Staus : %s\n", i1, status_p, seat_number );

}



}
}

Wednesday, July 06, 2011

How to start the vncserver automatically

 

Open the file

vi .vnc/xstartup

and add the line


exec gnome-session &

and remove the line that starts with "twm"


chkconfig --level 3 vncserver on
chkconfig --level 5 vncserver on

 

Add the following line in /etc/sysconfig/vncservers

VNCSERVERS="1:root"

service vncserver start

Tuesday, July 05, 2011

XE On Linux

Oracle is installed to: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle

To start XE

/etc/init.d/oracle-xe start

To stop XE

/etc/init.d/oracle-xe stop

 

export PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin:$PATH
export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_SID=XE

sqlplus "/ as sysdba"

 

If you want to use Oracle XE as your database, you have to set the RCU_JDBC_TRIM_BLOCKS environment variable to TRUE *prior* to running RCU. As a reminder as to support level, when running RCU against XE you will receive a warning stating that the database version is not supported by Oracle.