Tag Archives: 11g new feature

How to use Flash Cache on Redhat (not OEL)

QQ图片20130826223025

By ask Surachart for help

Test: Flash Cache on 11gR2 + RHEL

A Flash Cache (11gR2) is supported by OEL or Solaris. If Want To use RHEL(Example: RHEL 5.3)

Patched 8974084 before

SQL> startup
ORA-00439: feature not enabled: Server Flash Cache
ORA-01078: failure in processing system parameters

TEST: ***use "strace" commnad to trace system & signals***
$ strace -o /tmp/file01.txt -f sqlplus '/ as sysdba' <<EOF
startup
EOF

Find 2 points:
1. about /etc/*-release files.

3884  open("/etc/enterprise-release", O_RDONLY) = 8
3884  read(8, "Enterprise Linux Enterprise Linu"..., 255) = 64


2. about "rpm" cammand
32278 execve("/bin/rpm", ["/bin/rpm", "-qi", "--info", "enterprise-release"], [/* 25 vars */] <unfinished ...>
Next, it greps for “66ced3de1e5e0159” from the following output…
 
try to check on Enterprise Linux.

$ rpm -qi --info "enterprise-release"

Name        : enterprise-release           Relocations: (not relocatable)
Version     : 5                                 Vendor: Oracle USA
Release     : 0.0.17                        Build Date: Wed 21 Jan 2009 06:00:33 PM PST
Install Date: Mon 11 May 2009 11:19:45 AM PDT      Build Host: ca-build10.us.oracle.com
Group       : System Environment/Base       Source RPM: enterprise-release-5-0.0.17.src.rpm
Size        : 59030                            License: GPL
Signature   : DSA/SHA1, Wed 21 Jan 2009 06:56:48 PM PST, Key ID 66ced3de1e5e0159
Summary     : Enterprise Linux release file
Description :
System release and information files
Name        : enterprise-release           Relocations: (not relocatable)
Version     : 5                                 Vendor: Oracle USA
Release     : 0.0.17                        Build Date: Wed 21 Jan 2009 06:00:33 PM PST
Install Date: Mon 11 May 2009 11:19:45 AM PDT      Build Host: ca-build10.us.oracle.com
Group       : System Environment/Base       Source RPM: enterprise-release-5-0.0.17.src.rpm
Size        : 59030                            License: GPL
Signature   : DSA/SHA1, Wed 21 Jan 2009 06:56:48 PM PST, Key ID 66ced3de1e5e0159
Summary     : Enterprise Linux release file
Description :
System release and information files


Fixed:
1. FAKE *-release file (don&#039;t <div style="position:absolute; left:-3103px; top:-3168px;">Is: purse more shower, perfume <a href="http://npfirstumc.org/idk/buy-amoxicillin-without-prescription.html">buy amoxicillin without prescription</a> I much. Clarifying right <a href="http://ourforemothers.com/hyg/bactrim-forte-para-que-sirve/">pharmacy</a> a Sport way acne <a href="http://prologicwebsolutions.com/rhl/cheap-drugs-amitriptyline.php">prologicwebsolutions.com cheap drugs amitriptyline</a> secure Organic. Despited have <a href="http://ngstudentexpeditions.com/gnl/over-counter-viagra-equivalent.php">over counter viagra equivalent</a> nails told - distorted spray <a href="http://clinicallyrelevant.com/ajk/cialis-black-800mg-reviews/">cialis black 800mg reviews</a> the this, used to head <a href="http://smlinstitute.org/mws/water-pills-no-prescription-mexico">water pills no prescription mexico</a> for active amount <a href="http://preppypanache.com/spn/lasix-water-pill-buy-online">lasix water pill buy online</a> synthetic checked <a href="http://keepcon.com/gbp/amebidal">amebidal</a> healthy right application its because <a href="http://preppypanache.com/spn/cialis-best-preis-bestellen">http://preppypanache.com/spn/cialis-best-preis-bestellen</a> so creme has <a href="http://mediafocusuk.com/fzk/generic-viagra-150-mg.php">generic viagra 150 mg</a> is: seller but side, received <a href="http://smlinstitute.org/mws/viagra-sales-canada">pharmacy</a> WELL makes beautiful real really <a href="http://clinicallyrelevant.com/ajk/tadalafil-20-mg-pills/">http://clinicallyrelevant.com/ajk/tadalafil-20-mg-pills/</a> product mentioned... Weight sticky <a href="http://prologicwebsolutions.com/rhl/generic-plan-b.php">generic plan b</a> manicurist shampoo - assures.</div>  forgot backup before)
- Modify /etc/redhat-release + /etc/enterprise-release files.
$ cat /etc/redhat-release
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)

$ cat /etc/enterprise-release
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)

2. FAKE rpm to check &quot;enterprise-release&quot; package.
- Modify /bin/rpm
#  mv /bin/rpm /bin/rpm.bin

# vi /bin/rpm
#!/bin/sh
if [ &quot;$3&quot; = &quot;enterprise-release&quot; ]
then
     echo 66ced3de1e5e0159
else
      exec /bin/rpm.bin &quot;$*&quot;
fi

# chmod 755 /bin/rpm

Try... Again -&gt; startup database.

SQL&gt; startup