Wednesday, May 23, 2012

Cisco UCS B200 M2 with VMware DPM using IPMI

Found this document but failed when setting it on Virtual Center.

https://supportforums.cisco.com/servlet/JiveServlet/downloadBody/8582-102-3-18898/Integrating%20Cisco%20UCS%20with%20vSphere%20Distributed%20Power%20Management.pdf

Finally, I confirmed when applying IPMI policy, it will not take effect to the server. The service profile need to be reapplied (dissociate and associate) in order to take effect.

Wednesday, May 16, 2012

Move Oracle XE oradata

I copied it from OTN discussion forum Florian W.

1.) Clear the folder that contains your user dump destination. Use show parameter get this folder.
 

show parameter user_dump_dest

2.) Create a tracecopy of your controlfile.
ALTER DATABASE
BACKUP CONTROLFILE TO TRACE;

You will find this tracefile in your user dump destination.
3.) Shutdown your database
shutdown immediate

4.) Move the oradatafolder to the new drive.
5.) Login to sqlplus and create a PFILE.
sqlplus / as sysdba
 
CREATE PFILE='/usr/lib/oracle/xe/initXE.ora'
FROM SPFILE;
exit

You will find the file initXE.ora in the folder /usr/lib/oracle/xe.
6.) Change the parameter CONTROL_FILES in initXE.ora so that it complies with the new location of your controlfiles. That's the new location of the oradata folder.
7.) Create a SPFILE from your PFILE
sqlplus / as sysdba
 
CREATE SPFILE
FROM PFILE='/usr/lib/oracle/xe/initXE.ora';

8.) Start your database in nomount mode.
sqlplus / as sysdba
 
startup nomount

9.) Change locations of the Redo Log and Datafiles in the tracecopy of your controlfile created in step 2. Do this with the first create controlfile statement (NORESETLOGS).
10.) Use the first CREATE CONTROLFILE statement (NORESETLOGS) in the tracecopy of your controlfile that you've changed in step number 9 to create a new controlfile that knows about the new locations of your oradata folder. If Oracle tells you that everything is OK then you have won otherwise there will be a lot of work to do to get your DB running again.

Please be very careful. This is a very tricky thing you want to do.

Annals of Oracle's Improbable Errors: How to change the language of SQL Developer's user...

Annals of Oracle's Improbable Errors: How to change the language of SQL Developer's user...: Always check out the original article at http://www.oraclequirks.com for latest comments, fixes and updates . Yesterday i upgraded SQL Dev...

Tuesday, May 15, 2012

Install Sun Java and Tomcat 6 on SLES 11 SP2

1) Install Sun Java
>rpm ivh jdk-6u31-linux-amd64.rpm
2) Upgrade zlib library by rpm
>rpm -Uvh zlib-*.rpm

zlib-1.2.5-8.1.x86_64.rpm


zlib-devel-1.2.5-8.1.x86_64.rpm
3) Install belows required libraries from SLES 11 SDK
>rpm -ivh lib*.rpm
libapr-util1-1.3.9-9.2.x86_64.rpm
libapr1-1.4.2-3.1.x86_64.rpm
libapr1-devel-1.4.2-3.1.x86_64.rpm
libdb-4_8-4.8.30-2.4.x86_64.rpm
libopenssl-devel-1.0.0c-17.1.x86_64.rpm
libopenssl1_0_0-1.0.0c-17.1.x86_64.rpm
4) Install libtcnative
zypper install libtcnative*

/usr/lib64 # ln -s libtcnative-1.so.0 libtcnative-1.so
5) Start Tomcat



Thursday, May 3, 2012

Install HP 10G Driver on ESXi 4.0


To update or add drivers on existing VMware ESX and ESXi Server 4.0 installations using vihostupdate:
1. Power on the ESX or ESXi Server host.
2. Place the driver CD in the CD-ROM drive of the host on which either the vSphere CLI package is
installed or vMA is hosted.
http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdHome/?sp4ts.oid=4274763&spf_p.tpst=psiSwdMain&spf_p.prp_psiSwdMain=wsrp-navigationalState%3Dlang%253Den%257Ccc%253DUS%257CprodNameId%253D4274763%257CprodSeriesId%253D4194735%257CswLang%253D8%257CswEnvOID%253D4115%257Caction%253DlistDriver&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken
3. Log in to vMA.
4. Configure VI fast path-> vifp addserver (ESXi Server host IP address).
5. Initialize fast path to the correct ESXi Server vifpinit (IP address).
6. Mount the ISO image from vMA.
7. Run the vihostupdate command to install drivers using the offline bundle:

vihostupdate --install --bundle <offline_bundle>.zip

E.g.

vihostupdate --install --bundle EMU-be2net-4.0.306.0-offline_bundle-473366.zip
vihostupdate --install --bundle hp-esxi4.0uX-bundle-1.6-5.zip
vihostupdate --install --bundle BCM-bnx2-2.0.22f.v40.1-offline_bundle-383735.zip
vihostupdate --install --bundle BCM-tg3-3.120h.v40.1-offline_bundle-543909.zip
vihostupdate --install --bundle ntx-nx_nic-4.0.614-164009-offline_bundle-674775.zip
vihostupdate --install --bundle qlg-qlcnic-4.0.727-164009-offline_bundle-483210.zip
vihostupdate --install --bundle SVE-be2net-2.102.518.0-offline_bundle-329992.zip