chkconfig libvirtd on
service libvirtd start
Also you can enable it or check the status for libvirtd by :
/etc/init.d/libvirtd [status|start|stop]
Thank you
Osama mustafa
For the people who think differently Welcome aboard
chkconfig libvirtd on
service libvirtd start
Also you can enable it or check the status for libvirtd by :
/etc/init.d/libvirtd [status|start|stop]
Thank you
Osama mustafa
Thank you
Osama Mustafa
Script Number One
Script Number Two
There are Serveral Tools Used for Comparing such as :
1-Open Source application for comparing two tables of data http://s.awads.net/Q3jmCw
2-TOAD FOR ORACLE
3-Oracle SQL DEVELOPER
4-Oracle Enterprise Manager (OEM).
5-Compare any Two Database http://www.dbsolo.com/schema_comparison.html .
6-RedGate to Compare Data, schema , Database .
Thank you
Osama Mustafa
To enable Oracle Trace you can do the following :
Option Number One :
alter session set sql_trace = true;
Disable it :
alter session set sql_trace = false;
Option Number two :
dbms_session.set_sql_trace (true);
dbms_session.set_sql_trace (false);
Option Number three:
dbms_support.start_trace (binds=>{true|false}, waits=>{true|false});
dbms_support.stop_trace;
Notice that package is not installed by default , Check
EVENT: 10046 “enable SQL statement tracing (including binds/waits)” [ID 21154.1]
There’s The most Common way to Trace your SQL and enable trace , there’s other way you can search on it via Google or Oracle Documentation , all you have to do is trying one of these options .
some Other Useful link :
1-Oracle Documentation
2-Oracle traces description.
3-Enable Oracle Traces
Thank you
Osama
Is Program designed to fix some Bugs Or Particular problem .
types of file in patchcxxxx.drv the ‘c’ or copy driverdxxxx.drv the ‘d’ or ‘database’ drivergxxxx.drv the ‘g’ or ‘generate’ driver -form rep chartjxxxx.zip jar file
Applying Patch On EBS ?
-Go to Patch Directory , Unzip .
-inside patch Directory , you find Patch.DRV
-After Run Apps-.evn run adpatch
-answer on the question .
-On Some where in the question , you will be asked to apply patch name which is .DRV
Note : You Need to Enable Maintenance Mode using adadmin .
You will find Topics in Details on my blog talking about how to use adadmin and Adpatch .
Thank you
Osama Mustafa
Miladin Modrakovic offers this script to detect and kill RAC blocking sessions, using GV$Session and GV$Lock.
CREATE OR REPLACE PROCEDURE kill_blocker
AS
sqlstmt VARCHAR2 (1000);
BEGIN
FOR x IN (SELECT gvh.SID sessid, gvs.serial# serial,
gvh.inst_id instance_id
FROM gv$lock gvh, gv$lock gvw, gv$session gvs
WHERE (gvh.id1, gvh.id2) IN (SELECT id1, id2
FROM gv$lock
WHERE request = 0
INTERSECT
SELECT id1, id2
FROM gv$lock
WHERE lmode = 0)
AND gvh.id1 = gvw.id1
AND gvh.id2 = gvw.id2
AND gvh.request = 0
AND gvw.lmode = 0
AND gvh.SID = gvs.SID
AND gvh.inst_id = gvs.inst_id)
LOOP
sqlstmt :=
‘ALTER SYSTEM KILL SESSION ”’
|| x.sessid
|| ‘,’
|| x.serial
|| ‘,@’
|| x.instance_id
|| ””;
DBMS_OUTPUT.put_line (sqlstmt);EXECUTE IMMEDIATE sqlstmt;
END kill_blovk;
END TEST;
/
when the script will generate it will execute Alter session to kill This Session .
Some Useful Link :
1-Erik Wramner
Thank you
Osama mustafa
But After finishing KVM installation and see everything is working fine i knew its deserve every moments . I believe in what they say now ” Never Give Up ” . I posting this article today for the people who wants to learn something new. And if you face any problem you can contact me here, I Wrote this because there’s no much information about the package that you should install while you are working on Virtualization But Hope you will find this useful.
you can install the package from Redhat Media , some Package will Generate what called Package Dependency , You will start searching for missing Package on media with same name as appear to you . its waste of time , i will post under this topic the most important package that you need to install to avoid this error.
Some Other Information you need to know To Check If KVM Support :
Solution One Using :
/proc/cpuinfo , the output :
The flags to look out for are:
vmx — Intel VT-x, basic virtualization svm — AMD SVM, basic virtualization ept — Extended Page Tables, an Intel feature to make emulation of guest page tables faster. vpid — VPID, an Intel feature to make expensive TLB flushes unnecessary when context switching between guests. npt — AMD Nested Page Tables, similar to EPT. tpr_shadow and flexpriority — Intel feature that reduces calls into the hypervisor when accessing the Task Priority Register, which helps when running certain types of SMP guests. vnmi — Intel Virtual NMI feature which helps with certain sorts of interrupt events in guests. Solution Two :
dmesg | less
The two messages to look out for are:
kvm: no hardware support and
kvm: disabled by bios
To load KVM:
Intel
modprobe kvm_intel
AMD :
modprobe kvm_amd
Package that you need to install (Sorted) :
etherboot-zroms-kvm-5.4.4-10.el5.x86_64.rpm
kmod-kvm-83-105.el5.x86_64.rpm
celt051-0.5.1.3-0.el5.x86_64.rpm
log4cpp-1.0-4.el5.x86_64.rpm
qpixman-0.13.3-4.el5.x86_64.rpm
qcairo-1.8.7.1-3.el5.x86_64.rpm
qffmpeg-libs-0.4.9-0.15.20080908.el5.x86_64.rpm
qspice-libs-0.3.0-39.el5.x86_64.rpm
kvm-83-105.el5.x86_64.rpm
cyrus-sasl-md5-2.1.22-5.el5.x86_64.rpm
iscsi-initiator-utils-6.2.0.871-0.10.el5.x86_64.rpm
bridge-utils-1.1-2.x86_64.rpm
kvm-qemu-img-83-105.el5.x86_64.rpm
gnome-python2-gnomekeyring-2.16.0-3.el5.x86_64.rpm
gtk-vnc-0.3.8-3.el5.x86_64.rpm
gtk-vnc-python-0.3.8-3.el5.x86_64.rpm
xen-libs-3.0.3-94.el5.x86_64.rpm
xen-devel-3.0.3-94.el5.x86_64.rpm
libvirt-0.6.3-20.el5.x86_64.rpm
virt-viewer-0.0.2-3.el5.x86_64.rpm
libvirt-python-0.6.3-20.el5.x86_64.rpm
python-virtinst-0.400.3-5.el5.noarch.rpm
virt-manager-0.6.1-8.el5.x86_64.rpm
Some Other package you need to install for avoiding dependency error :
xz-lib-***
xz-4.***
If you need to Run convirt install the below package also (Sorted) :
kernel-xen-2.6.18-164.el5
xen-3.0.3-94.el5
gpg-pubkey-32a349c9-493c185a
socat-1.6.0.1-1.el5.rf
tunctl-1.5-2.el5
python-crypto-2.0.1-13.1.el5.kb.1
python-paramiko-1.7.4-1.el5
convirt-1.1-1.fedora
Thank you
Osama Mustafa
declare
begin
for index_rec in (select owner, index_name
from dba_INDEXES
where status = ‘UNUSABLE’)
loop
execute immediate ‘alter index ‘ || index_rec.owner || ‘.’ ||
index_rec.index_name || ‘ rebuild’;
end loop;
end;
Solution two:
10g and above :
alter system set skip_unusable_indexes=true;
thank you
Osama mustafa
SELECT
SUBSTR(SS.USERNAME,1,8) USERNAME,
SS.OSUSER "USER",
AR.MODULE || ' @ ' || SS.machine CLIENT,
SS.PROCESS PID,
TO_CHAR(AR.LAST_LOAD_TIME, 'DD-Mon HH24:MM:SS') LOAD_TIME,
AR.DISK_READS DISK_READS,
AR.BUFFER_GETS BUFFER_GETS,
SUBSTR(SS.LOCKWAIT,1,10) LOCKWAIT,
W.EVENT EVENT,
SS.status,
AR.SQL_fullTEXT SQL
FROM V$SESSION_WAIT W,
V$SQLAREA AR,
V$SESSION SS,
v$timer T
WHERE SS.SQL_ADDRESS = AR.ADDRESS
AND SS.SQL_HASH_VALUE = AR.HASH_VALUE
AND SS.SID = w.SID (+)
AND ss.STATUS = 'ACTIVE'
AND W.EVENT != 'client message'
ORDER BY SS.LOCKWAIT ASC, SS.USERNAME, AR.DISK_READS DESC
To Download the Script Press Here
Thank you
Osama Mustafa