XML CDATA
All text in an xml document will be parsed by the parser. But text inside a CDATA section will be ignored by the parser. A CDATA section starts with "<![CDATA[" and ends with "]]>"...
show line numbers in vim
:set number or :set nu :set number! or :set nu!
list open files
lsof
Turn on or off syntax highlighting in vim
:syntax on :syntax off
How to find final blocking session
SELECT s.sid, S.BLOCKING_SESSION, S.FINAL_BLOCKING_SESSION FROM v$session s WHERE s.blocking_session IS NULL AND exists( select 1 from v$session s2 where S2.BLOCKING_SESSION =...
oracle Merge
http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9016.htm MERGE INTO bonuses D USING (SELECT employee_id, salary, department_id FRO...
How to back up partial data in a table
create table [tablename] asselect * from [another_TableName]
how to resolve performance issue caused by locks
please refer to this following article, http://www.oracle.com/technetwork/issue-archive/2012/12-jul/o42dba-1566567.html How to find locked objects:1. Get row lock inf...
How to find blocking sessions
please refer to the following article. http://www.oraclerecipes.com/monitoring/find-blocking-sessions/
How to find the size of files and directories on linux
du -sh name where name could be the name of a file or the name of a directory
zip and unzip
archive files or update files in an archive file: zip zipfile file1 file2 ... extract a file in an archive file: unzip zipfile fileToExtract eg. unzip wmserve...
how to look at the locales and charset in linux
locale -a locale -m echo $Lang temporarily set Lang: LANG='zh_CN.GBK'; export LANG/etc/sysconfig/i18n records the system default locale ....
generate AWR report
1. see if AWR is enabled show parameter statistics_level 2. modify interval and retention exec DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS(retention=>43200, interv...
How to manually start and stop enterprise manager
emctl start dbconsole emctl stop dbconsole emctl status dbconsole
How to manually set up oracle enterprise manager
emca is used to configure enterprise manager.Please refer to http://space.itpub.net/20943428/viewspace-628782 to set up enterprise manager.You will pe...