以下是网站 shenblog.com 在 2015-07 的历史页面存档,小提示:CTRL+U 查看源码
本站和 shenblog.com 的作者无关,不对其内容负责。本历史页面谨为网络历史索引,不代表被查询网站的即时页面。 *号[x]表示已屏蔽显示的敏感字。
原网页标题:Kelvin Shen's Blog

System.Exception: OCIEnvCreate failed with return code -1 but error message text was not availab

One of  my web application using IIS report an error like:

System.Exception: OCIEnvCreate failed with return code -1 but error message text was not available

Reason:

It means Asp.net does not have correct permissions in the Oracle home folder including full control and also run aspnet_regiis it is in the .NET 2.0 folder of the virtual machine. 

Solution:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe  -i

 

Posted in Oracle at June 23rd, 2014. No Comments.

FreeNas 9 Installation

In this test, I try to install freenas for a trial. The environment is VMware, I create a virtual machine with 1G memory, and 3 HD (1 for freenas, 2 for data), that is enough for fressnas installation.

Download freenas iso from http://www.freenas.org

And let’s start the installation

Image-000

Read More…

Posted in FreeNAS at December 24th, 2013. No Comments.

Install vSphere Data Protection

Created on Sep 25, 2013

Environment:
VMware vSphere 5.1
HP P2000G3 iSCSI

 

1. Download  vSphere Data Protection from vmware web site

There are 3 kinds of ova files for downloading depend on the volume size of storage:

0.5TB

1TB

2TB

For this guide, we use 0.5TB Backup Data Store.

Recommendations:

Image-121

Read More…

Posted in VMware at October 8th, 2013. No Comments.

Unknown CORBA exception. Unable to contact the media server. Confirm that the Backup Exec Job Engine service is running on the media server

Created on Sep 24, 2013
Environment:
Windows 2008 R2
Backup Exec 12.5 for Windows Servers

Backup Exec report an error “Unknown CORBA exception. Unable to contact the media server. Confirm that the Backup Exec Job Engine service is running on the media server” during the backup.
There is an official doc of Symantec to solve this problem. Especially for Windows 2008.
http://www.symantec.com/business/support/index?page=content&pmv=print&impressions=&viewlocale=zh_CN&id=TECH58180

For my environment, the root cause is IPV6, stop IPV6, this problem is solved, which has been described in the Symantec doc.

Image-100

Posted in Backup Exec at September 25th, 2013. No Comments.

How to install Adobe Flash Player Plugin for CentOS 6.4

1. Install Adobe YUM Repository RPM package(run as root)

for 32bit

rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

for 64bit

rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

2. Update Repositories

yum check-update

3. Install Adobe Flash Player 11.2

yum install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl

4. Verify that the Flash Player Plugin is working

type about:plugins in firefox address bar

Posted in Linux at August 27th, 2013. 1 Comment.

Virtual Machine Inaccessable after Changing LUN Mapping of iSCSI Storage

Environment:
VMware vSphere 5.1
HP P2000G3 iSCSI

After change a LUN mapping of my HP P2000G3 iSCSI storage, the Vmware vSphere 5.1 has problems. All virtual servers with status powered on look good but servers with status powered off are unknow and inaccessable.

Image-068

Read More…

Posted in VMware at August 15th, 2013. No Comments.

Setup Multi-Path on vSphere 5.1 for iSCSI storage

Environment:
VMware vSphere 5.1
HP P2000G3 iSCSI

1. Add VMKernel Port

Home–>Hosts and Clusters–>Configuration–>Networking

Add 2 VMKernel ports to a vSwitch(no vSwitch, create one), connect with 2 physical network adapters.

Name these 2 ports as your wish, but  I recommend iscsi0 & iscsi1.

Enable  vMotion for these 2 VMKernal ports, and set IP for them.

Image-059

Read More…

Posted in Storage, VMware at August 14th, 2013. No Comments.

How to test your Linux(VPS)

There is a simple way to test the power of Linux

wget https://acelnmp.googlecode.com/files/unixbench-4.1.0-wht.tar.gz
gunzip -dvc unixbench-4.1.0-wht.tar.gz | tar xvf -
cd unixbench-4.1.0-wht-2
make
./Run

Here is my VPS result

TEST                                        BASELINE     RESULT      INDEX
 
Dhrystone 2 using register variables        376783.7  5581936.5      148.1
Double-Precision Whetstone                      83.1     1274.8      153.4
Execl Throughput                               188.3     3179.5      168.9
File Copy 1024 bufsize 2000 maxblocks         2672.0   112729.0      421.9
File Copy 256 bufsize 500 maxblocks           1077.0    30939.0      287.3
File Read 4096 bufsize 8000 maxblocks        15382.0   706924.0      459.6
Pipe-based Context Switching                 15448.6   233794.0      151.3
Pipe Throughput                             111814.6   721127.3       64.5
Process Creation                               569.3    11468.2      201.4
Shell Scripts (8 concurrent)                    44.8      656.8      146.6
System Call Overhead                        114433.5   621463.6       54.3
=========
FINAL SCORE                                                     169.6

 

Posted in Linux at August 9th, 2013. No Comments.

Two books about Oracle Administrator

I received 2 books today, one is “Expert Oracle Database Architecture” , a great book from a oracle master Thomas Kyte, I have read this book’s previous version about 9i/10g , thanks to this book, I really get more about oracle internals, and this time, he adds some contents about 11g. So it is necessary for me to read it again. This book is not for fresh man, you should know some basic knowhow about oracle.

Another is  “Expert Oracle Database 11g Administration” from Sam R. Alapati, who writes oracle’s OCP exam book. More than 1000 pages, looks like it will cost a lot of my spare time :)

Links below from Amazon, if you need, by yourself.

 

Expert Oracle Database Architecture: Oracle Database 9i, 10g, and 11g Programming Techniques and Solutions

oracle1

Expert Oracle Database 11g Administration (Expert’s Voice in Oracle)

oracle2

Posted in Oracle, Oracle Books, Uncategorized at August 8th, 2013. No Comments.

Oracle Data Guard Installation Guide

Created on Aug 7, 2013

Environment:
Oracle:
Oracle 11g Release 2  11.2.0.3
OS:
Oracle Linux 6 U3

1. On Primary

1.1. Modify /etc/hosts

10.172.10.160    dgp    dgp

10.172.10.161    dgs    dgs

 1.2. Make database force logging

alter database force logging; Read More…

Posted in data guard, Oracle at August 8th, 2013. No Comments.