rasti.hil@hilandco.com +41 79 367-9677

How To Recover Forgotten Weblogic Admin Password

http://recover-weblogic-password.appspot.com/

OAM Debug



cd $ORACLE_HOME/common/bin
./wlst.sh


wls:/offline>
connect()

listLoggers(pattern="oracle.oam.*",target="oam_server1")


domainRuntime()
setLogLevel(logger="oracle.oam",level="TRACE:1", persist="0", target="oam_server1")

listLoggers(pattern="oracle.oam.*",target="oam_server1")


setLogLevel(logger="oracle.oam",level="NOTIFICATION:1", persist="1",target="oam_server1")

listLoggers(pattern="oracle.oam.*",target="oam_server1")

Wordpress behind Apache proxy


    RewriteEngine On
    RewriteRule ^/wordpress/?$ /wp/ [R]
    ProxyPreserveHost on
    ProxyPass /wp http://127.0.0.1:81/wordpress
    ProxyPassReverse /wp  http://127.0.0.1:81/wordpress

install grub on clone system

download vbox
create vm
download KNOPPIX
start vm with knoppix
startx

rootshell
qparted
create partition
mkdir /dev/sda1 /ora

on source system create tar's from

tar cvf /tmp/sles9.tar

scp oracle@source:/tmp/sles9.tar

tar xvf sles9.tar

chroot /ora
mkdir -p  /proc /sys /tmp /mnt  /boot
mount -t proc proc /proc
mount -t sysfs sysfs /sys
vi /etc/fstab

vi /etc/mtab
/dev/sda1 / ext3 rw,acl

exit

grub-install --root-directory=/ora /dev/sda


demo ssl with openssl

set system32_folder=C:\WINDOWS\system32
set openssl_home="d:\Programme\Openssl-0.9.7e-Win32"
set csr_file=domain.csr
set key_file=domain.key
set cert_file=domain.cert
copy %openssl_home%\ssleay32.dll  %system32_folder%\
copy %openssl_home%\libeay32.dll  %system32_folder%\



cd "%openssl_home%"
openssl req -config openssl.cnf -new -out %csr_file%
openssl rsa -in privkey.pem -out %key_file%
openssl x509 -in %csr_file% -out %cert_file% -req -signkey %key_file% -days 365

Resize aws EC2 root partition

  1. stop  instance
  2. disassociate root volume
  3. snapshot root volume
  4. create new volume with larger size
  5. associate new root volume
  6. start instance
  7. resize2fs /dev/xvde1 
  8. delete snapshot
  9. delete old volume

Install NX on aws ec2 sles11



yast
kdebase3
xauth

rpm -i nxclient-3.5.0-7.x86_64.rpm
rpm -i nxnode-3.5.0-9.x86_64.rpm
rpm -i nxserver-3.5.0-11.x86_64.rpm

Update hosts file with LB IP (AWS EC2)

export TS=$(date +%Y%m%d%H%M)
echo $TS
export hosts=/etc/hosts
export hname="soa.hilandco.com soa"
cp $hosts $hosts.$TS
sed /$hname/d $hosts.$TS > $hosts
export dnsalias="`curl http://169.254.169.254/latest/meta-data/local-ipv4` $hname"

echo $dnsalias >> $hosts
cat $hosts

LOCAL_LISTENER

alter system set local_listener='(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521))';
 alter system register;

Hyperic Agent Install

cd /hyperic/hyperic-hq-installer-4.6/
./setup.sh
Oracle User:

CREATE USER hqagent IDENTIFIED BY pwd;
GRANT CONNECT TO hqagent;
GRANT SELECT ANY DICTIONARY TO hqagent;


ORACLE_HOME=/oracle
export ORACLE_HOME
PATH="${ORACLE_HOME}/bin:${PATH}"
export PATH

vi  /hyperic/agent-4.6/conf/agent.properties
platform.name=em platform.fqdn=em.hilandco.com 
 
 
cp ojdbc6.jar /hyperic/agent-4.6/bundles/agent-4.6/pdk/lib/jdbc/

iptables Red Hat

system-config-firewall-tui

Hyperic Server Installation (oracle)

CREATE USER hq IDENTIFIED BY pwd DEFAULT TABLESPACE TS_HQDB;
GRANT CONNECT, RESOURCE, CREATE VIEW TO hq;
GRANT CONNECT, RESOURCE, CREATE VIEW TO HQ;
SELECT GRANTED_ROLE, DEFAULT_ROLE FROM dba_role_privs WHERE grantee = 'HQ';

cp ojdbc6.jar /hyperic/hyperic-hq-installer-4.6/installer/lib

install jdk 1.6
export PATH=/jdk1.6/bin:$PATH

cd /hyperic/hyperic-hq-installer-4.6/
./setup.sh -oracle

/ojdbc6.jar /hyperic/server-4.6/hq-engine/hq-server/lib/.

export HQ_JAVA_HOME=/jdk1.6.0_25
/hyperic/server-4.6/bin/hq-server.sh start