Script rac

Hi,
Db : 10.2
Os : aix6/7,redhat 5
We have 5 node cluster.For clearing inactive sessions in rac is very difficult.We need to login each and every instance(ssh) and then clear.But 11g is very simple.
Is there any SHELL script to clear all sessions from one node.
Thanks and Regards,
VN
Edited by: user3266490 on May 13, 2012 9:08 AM

user3266490 wrote:
Hi,
Db : 10.2
Os : aix6/7,redhat 5
We have 5 node cluster.For clearing inactive sessions in rac is very difficult.We need to login each and every instance(ssh) and then clear.But 11g is very simple.
Is there any SHELL script to clear all sessions from one node.
Thanks and Regards,
VN
Edited by: user3266490 on May 13, 2012 9:08 AMYou need to fix the root cause that generates the "inactive sessions" instead of fighting the symptom.

Similar Messages

  • Can RAC be installed quitely

    I need to install a 3 node RAC on Linux through VPN/VNC. The VNC result in very small screen and rather slow. Thus using OUI becomes difficult. Is there a way I can install RAC in quite mode, so that I can use SSH and do every thing command line.
    Thanks

    The steps and commands to install 11.1 clusterware are exactly the same as the ones to install 10.2 clusterware. The only difference is due to a typo in the crs.rsp response file that comes with the 11.1.0.6 distribution — namely, the FROM_LOCATION parameter doesn’t point the correct location. To overcome this issue, just add the parameter in the runInstaller
    cd clusterware
    export DISTRIB=`pwd`
    echo $DISTRIB
    ./runInstaller -silent \
    -responseFile $DISTRIB/response/crs.rsp \
    FROM_LOCATION=$DISTRIB/stage/products.xml \
    ORACLE_HOME="/u01/app/crs" \
    ORACLE_HOME_NAME="OraCrsHome" \
    s_clustername="rac-cluster" \
    sl_tableList={"rac-server1:rac-server1-priv:rac-server1-vip:N:Y",\
    "rac-server2:rac-server2-priv:rac-server2-vip:N:Y",\
    "rac-server3:rac-server3-priv:rac-server3-vip:N:Y",\
    "rac-server4:rac-server4-priv:rac-server4-vip:N:Y"}\
    ret_PrivIntrList={"bond0:10.0.0.0:1","bond1:192.168.1.0:2",\
    "bond2:10.1.0.0:3"} \
    n_storageTypeOCR=1 \
    s_ocrpartitionlocation="/dev/sdb1" \
    s_ocrMirrorLocation="/dev/sdc1" \
    n_storageTypeVDSK=1 \
    s_votingdisklocation="/dev/sdb2" \
    s_OcrVdskMirror1RetVal="/dev/sdc2" \
    s_VdskMirror2RetVal="/dev/sdd1"
    Once the clusterware is installed, you only have to connect as root on each of the servers and run the orainstRoot.sh and root.sh scripts:
    rac-server1# /u01/app/oraInventory/orainstRoot.sh
    rac-server2# /u01/app/oraInventory/orainstRoot.sh
    rac-server3# /u01/app/oraInventory/orainstRoot.sh
    rac-server4# /u01/app/oraInventory/orainstRoot.sh
    rac-server1# /u01/app/crs/root.sh
    rac-server2# /u01/app/crs/root.sh
    rac-server1# /u01/app/crs/root.sh
    rac-server1# /u01/app/crs/root.sh
    hth

  • Oracle数据库实用脚本

    <p>&#20197;&#19979;&#26159;Maclean.Liu&#25152;&#32534;&#20889;&#25110;&#25910;&#38598;&#30340;Oracle&#25968;&#25454;&#24211;&#23454;&#29992;&#33050;&#26412;&#30340;&#21015;&#34920;&#65292;&#22312;&#36825;&#37324;&#20998;&#20139;&#19968;&#19979;&#65306;</p>
    <p> </p>
    <p><a title="Script:&#25910;&#38598;Enterprise Manager Grid Control/Agent/Database Control&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-collect-grid-control-agent-db-console-diag.html" target="_blank">Script:&#25910;&#38598;Enterprise Manager Grid Control/Agent/Database Control&#35786;&#26029;&#20449;&#24687;<br>
    </a><a title="Script:&#25910;&#38598;Exadata&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e6%94%b6%e9%9b%86exadata%e8%af%8a%e6%96%ad%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#25910;&#38598;Exadata&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:&#25910;&#38598;RAC&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-collect-rac-diag.html" target="_blank">Script:&#25910;&#38598;RAC&#35786;&#26029;&#20449;&#24687;<br>
    </a><a title="Script:&#25910;&#38598;&#33258;&#21160;SGA&#20869;&#23384;&#31649;&#29702;ASMM&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-collect-sga-asmm-diag.html" target="_blank">Script:&#25910;&#38598;&#33258;&#21160;SGA&#20869;&#23384;&#31649;&#29702;ASMM&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:Collect vip resource Diagnostic Information" href="http://www.oracledatabase12g.com/archives/script-collect-vip-resource-diagnostic-information.html" target="_blank">Script:Collect vip resource Diagnostic Information</a><br>
    <a title="11g&#26032;&#29305;&#24615;:hangdiag.sql&#23454;&#20363;hang&#35786;&#26029;&#33050;&#26412;" href="http://www.oracledatabase12g.com/archives/11g%e6%96%b0%e7%89%b9%e6%80%a7hangdiag-sql%e5%ae%9e%e4%be%8bhang%e8%af%8a%e6%96%ad%e8%84%9a%e6%9c%ac.html" target="_blank">11g&#26032;&#29305;&#24615;:hangdiag.sql&#23454;&#20363;hang&#35786;&#26029;&#33050;&#26412;</a><br>
    <a title="Script:verify Oracle Object timestamp discrepancy" href="http://www.oracledatabase12g.com/archives/script-verify-oracle-object-timestamp-discrepancy.html" target="_blank">Script:verify Oracle Object timestamp discrepancy</a><br>
    <a title="Script:SQL&#35843;&#20248;&#20581;&#24247;&#26816;&#26597;&#33050;&#26412;" href="http://www.oracledatabase12g.com/archives/sql-tuning-health-check-script.html" target="_blank">Script:SQL&#35843;&#20248;&#20581;&#24247;&#26816;&#26597;&#33050;&#26412;</a><br>
    <a title="Script:&#21015;&#20986;&#26412;&#20250;&#35805;&#30340;&#32454;&#33410;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-list-session-details.html" target="_blank">Script:&#21015;&#20986;&#26412;&#20250;&#35805;&#30340;&#32454;&#33410;&#20449;&#24687;</a><br>
    <a title="&#21033;&#29992;rowid&#20998;&#22359;&#23454;&#29616;&#38750;&#20998;&#21306;&#34920;&#30340;&#24182;&#34892;update&#19982;delete" href="http://www.oracledatabase12g.com/archives/%e5%88%a9%e7%94%a8rowid%e5%88%86%e5%9d%97%e5%ae%9e%e7%8e%b0%e9%9d%9e%e5%88%86%e5%8c%ba%e8%a1%a8%e7%9a%84%e5%b9%b6%e8%a1%8cupdate%e4%b8%8edelete.html" target="_blank">&#21033;&#29992;rowid&#20998;&#22359;&#23454;&#29616;&#38750;&#20998;&#21306;&#34920;&#30340;&#24182;&#34892;update&#19982;delete</a><br>
    <a title="Script:&#35745;&#31639;Oracle Streams&#36827;&#31243;&#25152;&#21344;&#29992;&#30340;&#20869;&#23384;&#22823;&#23567;" href="http://www.oracledatabase12g.com/archives/script%e8%ae%a1%e7%ae%97oracle-streams%e8%bf%9b%e7%a8%8b%e6%89%80%e5%8d%a0%e7%94%a8%e7%9a%84%e5%86%85%e5%ad%98%e5%a4%a7%e5%b0%8f.html" target="_blank">Script:&#35745;&#31639;Oracle Streams&#36827;&#31243;&#25152;&#21344;&#29992;&#30340;&#20869;&#23384;&#22823;&#23567;</a><br>
    <a title="&#21033;&#29992;RMAN&#26816;&#27979;&#25968;&#25454;&#24211;&#22351;&#22359;&#30340;&#33050;&#26412;" href="http://www.oracledatabase12g.com/archives/rman-validate-check-logical-database-corrupted-block.html" target="_blank">&#21033;&#29992;RMAN&#26816;&#27979;&#25968;&#25454;&#24211;&#22351;&#22359;&#30340;&#33050;&#26412;</a><br>
    <a title="Script:&#21033;&#29992;&#22806;&#37096;&#34920;&#23454;&#29616;SQL&#26597;&#35810;Oracle&#21578;&#35686;&#26085;&#24535;Alert.log" href="http://www.oracledatabase12g.com/archives/%e5%88%a9%e7%94%a8%e5%a4%96%e9%83%a8%e8%a1%a8%e5%ae%9e%e7%8e%b0sql%e6%9f%a5%e8%af%a2oracle%e5%91%8a%e8%ad%a6%e6%97%a5%e5%bf%97alert-log.html" target="_blank">Script:&#21033;&#29992;&#22806;&#37096;&#34920;&#23454;&#29616;SQL&#26597;&#35810;Oracle&#21578;&#35686;&#26085;&#24535;Alert.log</a><br>
    <a title="Script: &#25910;&#38598;RAC DRM &#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-%e6%94%b6%e9%9b%86rac-drm-%e8%af%8a%e6%96%ad%e4%bf%a1%e6%81%af.html" target="_blank">Script: &#25910;&#38598;RAC DRM &#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:10g&#20013;&#19981;&#29992;EM&#26174;&#31034;Active Session Count by Wait Class" href="http://www.oracledatabase12g.com/archives/script-10g-show-active-session-count-wait-class.html" target="_blank">Script:10g&#20013;&#19981;&#29992;EM&#26174;&#31034;Active Session Count by Wait Class</a><br>
    <a title="Script:&#25968;&#25454;&#24211;&#26368;&#36817;&#30340;&#24615;&#33021;&#24230;&#37327;" href="http://www.oracledatabase12g.com/archives/script-show-instance-recent-performance-metric.html" target="_blank">Script:&#25968;&#25454;&#24211;&#26368;&#36817;&#30340;&#24615;&#33021;&#24230;&#37327;</a><br>
    <a title="Script:&#25910;&#38598;&#25968;&#25454;&#24211;&#20013;&#29992;&#25143;&#30340;&#35282;&#33394;&#21644;&#34920;&#31354;&#38388;&#31561;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-gather-user-role-tablespace-profile-info.html" target="_blank">Script:&#25910;&#38598;&#25968;&#25454;&#24211;&#20013;&#29992;&#25143;&#30340;&#35282;&#33394;&#21644;&#34920;&#31354;&#38388;&#31561;&#20449;&#24687;</a><br>
    <a title="Script:&#25910;&#38598;&#20171;&#36136;&#24674;&#22797;&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-media-recovery-diag-info.html" target="_blank">Script:&#25910;&#38598;&#20171;&#36136;&#24674;&#22797;&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:&#25910;&#38598;Flashback Database Log&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e6%94%b6%e9%9b%86flashback-database-log%e8%af%8a%e6%96%ad%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#25910;&#38598;Flashback Database Log&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:&#21015;&#20986;Oracle&#27599;&#23567;&#26102;&#30340;redo&#37325;&#20570;&#26085;&#24535;&#20135;&#29983;&#37327;" href="http://www.oracledatabase12g.com/archives/script%e5%88%97%e5%87%baoracle%e6%af%8f%e5%b0%8f%e6%97%b6%e7%9a%84redo%e9%87%8d%e5%81%9a%e6%97%a5%e5%bf%97%e4%ba%a7%e7%94%9f%e9%87%8f.html" target="_blank">Script:&#21015;&#20986;Oracle&#27599;&#23567;&#26102;&#30340;redo&#37325;&#20570;&#26085;&#24535;&#20135;&#29983;&#37327;</a><br>
    <a title="Script:&#25910;&#38598;11g Oracle&#23454;&#20363;IO&#24615;&#33021;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e6%94%b6%e9%9b%8611g-oracle%e5%ae%9e%e4%be%8bio%e6%80%a7%e8%83%bd%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#25910;&#38598;11g Oracle&#23454;&#20363;IO&#24615;&#33021;&#20449;&#24687;</a><br>
    <a title="Script:&#26816;&#26597;&#25968;&#25454;&#24211;&#24403;&#21069;&#26159;&#21542;&#26377;&#22791;&#20221;&#25805;&#20316;&#22312;&#25191;&#34892;&#20013;" href="http://www.oracledatabase12g.com/archives/script%e6%a3%80%e6%9f%a5%e6%95%b0%e6%8d%ae%e5%ba%93%e5%bd%93%e5%89%8d%e6%98%af%e5%90%a6%e6%9c%89%e5%a4%87%e4%bb%bd%e6%93%8d%e4%bd%9c%e5%9c%a8%e6%89%a7%e8%a1%8c%e4%b8%ad.html" target="_blank">Script:&#26816;&#26597;&#25968;&#25454;&#24211;&#24403;&#21069;&#26159;&#21542;&#26377;&#22791;&#20221;&#25805;&#20316;&#22312;&#25191;&#34892;&#20013;</a><br>
    Script:List Schema/Table Constraints<br>
    <a title="Script:RAC Failover&#26816;&#39564;&#33050;&#26412;loop.sh" href="http://www.oracledatabase12g.com/archives/script-rac-failover%e6%a3%80%e9%aa%8c%e8%84%9a%e6%9c%acloop-sh.html" target="_blank">Script:RAC Failover&#26816;&#39564;&#33050;&#26412;loop.sh</a><br>
    <a title="Script:Diagnostic Resource Manager" href="http://www.oracledatabase12g.com/archives/script-diagnostic-resource-manager.html" target="_blank">Script:Diagnostic Resource Manager</a><br>
    <a title="Script:List Grid Control Jobs" href="http://www.oracledatabase12g.com/archives/script-list-grid-control-jobs.html" target="_blank">Script:List Grid Control Jobs</a><br>
    <a title="Script:GridControl Repository Health Check" href="http://www.oracledatabase12g.com/archives/script-grid-control-repository-health-check.html" target="_blank">Script:GridControl Repository Health Check</a><br>
    <a title="Script:&#35786;&#26029;Scheduler&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e8%af%8a%e6%96%adscheduler%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#35786;&#26029;Scheduler&#20449;&#24687;</a><br>
    <a title="Script:&#20248;&#21270;crs_stat&#21629;&#20196;&#30340;&#36755;&#20986;" href="http://www.oracledatabase12g.com/archives/script%e4%bc%98%e5%8c%96crs_stat%e5%91%bd%e4%bb%a4%e7%9a%84%e8%be%93%e5%87%ba.html" target="_blank">Script:&#20248;&#21270;crs_stat&#21629;&#20196;&#30340;&#36755;&#20986;</a><br>
    <a title="Script:Diagnostic Oracle Locks" href="http://www.oracledatabase12g.com/archives/script-diagnostic-oracle-locks.html" target="_blank">Script:Diagnostic Oracle Locks</a><br>
    <a title="Script:&#21015;&#20986;&#29992;&#25143;&#34920;&#31354;&#38388;&#30340;&#23450;&#39069;" href="http://www.oracledatabase12g.com/archives/script-list-user-tablespace-quotas.html" target="_blank">Script:&#21015;&#20986;&#29992;&#25143;&#34920;&#31354;&#38388;&#30340;&#23450;&#39069;</a><br>
    <a title="Backup Script:Expdp Schema to ASM Storage" href="http://www.oracledatabase12g.com/archives/backup-script-expdp-schema-to-asm-storage.html" target="_blank">Backup Script:Expdp Schema to ASM Storage</a><br>
    <a title="Script:Speed Up Large Index Create or Rebuild" href="http://www.oracledatabase12g.com/archives/script-speed-up-large-index-create-rebuild.html" target="_blank">Script:Speed Up Large Index Create or Rebuild</a><br>
    <a title="Script:&#21015;&#20986;&#22833;&#25928;&#32034;&#24341;&#25110;&#32034;&#24341;&#20998;&#21306;" href="http://www.oracledatabase12g.com/archives/list-unusable-index-partition-subpartition.html" target="_blank">Script:&#21015;&#20986;&#22833;&#25928;&#32034;&#24341;&#25110;&#32034;&#24341;&#20998;&#21306;</a><br>
    <a title="Script:&#21015;&#20986;&#25968;&#25454;&#24211;&#20013;5%&#20197;&#19978;&#38142;&#24335;&#34892;&#30340;&#34920;" href="http://www.oracledatabase12g.com/archives/list-tables-with-5-chained-rows.html" target="_blank">Script:&#21015;&#20986;&#25968;&#25454;&#24211;&#20013;5%&#20197;&#19978;&#38142;&#24335;&#34892;&#30340;&#34920;</a><br>
    <a title="Script:&#21015;&#20986;&#27809;&#26377;&#20027;&#38190;&#25110;&#21807;&#19968;&#32034;&#24341;&#30340;&#34920;" href="http://www.oracledatabase12g.com/archives/list-tables-with-no-primary-key-no-unique-key-or-index.html" target="_blank">Script:&#21015;&#20986;&#27809;&#26377;&#20027;&#38190;&#25110;&#21807;&#19968;&#32034;&#24341;&#30340;&#34920;</a><br>
    <a title="Script:&#25910;&#38598;ASM&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e6%94%b6%e9%9b%86asm%e8%af%8a%e6%96%ad%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#25910;&#38598;ASM&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:&#25910;&#38598;Oracle&#22791;&#20221;&#24674;&#22797;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e6%94%b6%e9%9b%86oracle%e5%a4%87%e4%bb%bd%e6%81%a2%e5%a4%8d%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#25910;&#38598;Oracle&#22791;&#20221;&#24674;&#22797;&#20449;&#24687;</a><br>
    <a title="&#30417;&#25511;&#19968;&#20010;&#22823;&#20107;&#21153;&#30340;&#22238;&#28378;" href="http://www.oracledatabase12g.com/archives/%e7%9b%91%e6%8e%a7%e4%b8%80%e4%b8%aa%e5%a4%a7%e4%ba%8b%e5%8a%a1%e7%9a%84%e5%9b%9e%e6%bb%9a.html" target="_blank">&#30417;&#25511;&#19968;&#20010;&#22823;&#20107;&#21153;&#30340;&#22238;&#28378;</a><br>
    <a title="Script to Collect DB Upgrade/Migrate Diagnostic Information (dbupgdiag.sql)" href="http://www.oracledatabase12g.com/archives/script-to-collect-db-upgrademigrate-diagnostic-information-dbupgdiag-sql.html" target="_blank">Script to Collect DB Upgrade/Migrate Diagnostic Information (dbupgdiag.sql)</a><br>
    <a title="Script:partition table into rowid extent chunks" href="http://www.oracledatabase12g.com/archives/script-partition-table-into-rowid-extent-chunks.html" target="_blank">Script:partition table into rowid extent chunks</a><br>
    <a title="Script:Oracle EBS&#25968;&#25454;&#24211;&#21021;&#22987;&#21270;&#21442;&#25968;&#20581;&#24247;&#26816;&#26597;&#33050;&#26412;" href="http://www.oracledatabase12g.com/archives/script-oracle-ebs%e6%95%b0%e6%8d%ae%e5%ba%93%e5%88%9d%e5%a7%8b%e5%8c%96%e5%8f%82%e6%95%b0%e5%81%a5%e5%ba%b7%e6%a3%80%e6%9f%a5%e8%84%9a%e6%9c%ac.html" target="_blank">Script:Oracle EBS&#25968;&#25454;&#24211;&#21021;&#22987;&#21270;&#21442;&#25968;&#20581;&#24247;&#26816;&#26597;&#33050;&#26412;</a><br>
    <a title="Script:Monitoring Memory and Swap Usage to Avoid A Solaris Hang" href="http://www.oracledatabase12g.com/archives/script-monitoring-memory-and-swap-usage-to-avoid-a-solaris-hang.html" target="_blank">Script:Monitoring Memory and Swap Usage to Avoid A Solaris Hang</a><br>
    <a title="SQL&#33050;&#26412;:&#30417;&#25511;&#24403;&#21069;&#37325;&#20570;&#26085;&#24535;&#25991;&#20214;&#20351;&#29992;&#24773;&#20917;" href="http://www.oracledatabase12g.com/archives/sql%e8%84%9a%e6%9c%ac%e7%9b%91%e6%8e%a7%e5%bd%93%e5%89%8d%e9%87%8d%e5%81%9a%e6%97%a5%e5%bf%97%e6%96%87%e4%bb%b6%e4%bd%bf%e7%94%a8%e6%83%85%e5%86%b5.html" target="_blank">SQL&#33050;&#26412;:&#30417;&#25511;&#24403;&#21069;&#37325;&#20570;&#26085;&#24535;&#25991;&#20214;&#20351;&#29992;&#24773;&#20917;</a><br>
    <a title="Streams Health Check on 10g Release 2" href="http://www.oracledatabase12g.com/archives/streams-health-check-on-10g-release-2.html" target="_blank">Streams Health Check on 10g Release 2</a><br>
    <a title="&#20174;&#35270;&#22270;&#26597;&#35810;&#34920;&#20998;&#21306;&#30340;&#30456;&#20851;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/%e4%bb%8e%e8%a7%86%e5%9b%be%e6%9f%a5%e8%af%a2%e8%a1%a8%e5%88%86%e5%8c%ba%e7%9a%84%e7%9b%b8%e5%85%b3%e4%bf%a1%e6%81%af.html" target="_blank">&#20174;&#35270;&#22270;&#26597;&#35810;&#34920;&#20998;&#21306;&#30340;&#30456;&#20851;&#20449;&#24687;</a><br>
    <a title="Script To Monitor RDBMS Session UGA and PGA Current And Maximum Usage Over Time" href="http://www.oracledatabase12g.com/archives/script-to-monitor-rdbms-session-uga-and-pga-current-and-maximum-usage-over-time.html" target="_blank">Script To Monitor RDBMS Session UGA and PGA Current And Maximum Usage Over Time</a><br>
    <a title="Script:&#25910;&#38598;RAC&#24615;&#33021;&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e6%94%b6%e9%9b%86rac%e6%80%a7%e8%83%bd%e8%af%8a%e6%96%ad%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#25910;&#38598;RAC&#24615;&#33021;&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:&#25910;&#38598;UNDO&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/automatic-undo-management-common-analysis-diagnostic-scripts.html" target="_blank">Script:&#25910;&#38598;UNDO&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:&#21015;&#20986;&#25968;&#25454;&#24211;&#20013;&#23376;&#34920;&#19978;&#27809;&#26377;&#23545;&#24212;&#32034;&#24341;&#30340;&#22806;&#38190;" href="http://www.oracledatabase12g.com/archives/list-foreign-keys-with-no-matching-index-on-child-table-causes-locks.html" target="_blank">Script:&#21015;&#20986;&#25968;&#25454;&#24211;&#20013;&#23376;&#34920;&#19978;&#27809;&#26377;&#23545;&#24212;&#32034;&#24341;&#30340;&#22806;&#38190;</a><br>
    <a title="Script: Listing Memory Used By All Sessions" href="http://www.oracledatabase12g.com/archives/script-listing-memory-used-by-all-sessions.html" target="_blank">Script: Listing Memory Used By All Sessions</a><br>
    <a title="Collecting Diagnostic Data for OCFS2 Issues" href="http://www.oracledatabase12g.com/archives/collecting-diagnostic-data-for-ocfs2-issues.html" target="_blank">Collecting Diagnostic Data for OCFS2 Issues</a><br>
    <a title="Script to Identify Objects and Amount of Blocks in the Buffer Pools &ndash; Default, Keep, Recycle, nK Cache" href="http://www.oracledatabase12g.com/archives/script-to-identify-objects-and-amount-of-blocks-in-the-buffer-pools-default-keep-recycle-nk-cache.html" target="_blank">Script to Identify Objects and Amount of Blocks in the Buffer Pools &ndash; Default, Keep, Recycle, nK Cache</a><br>
    <a title="Script:Generate A DDL Script For A Table" href="http://www.oracledatabase12g.com/archives/script-generate-ddl-script-for-table.html" target="_blank">Script:Generate A DDL Script For A Table</a><br>
    <a title="SCRIPT TO CHECK FOR FOREIGN KEY LOCKING ISSUES" href="http://www.oracledatabase12g.com/archives/script-to-check-for-foreign-key-locking-issues.html" target="_blank">SCRIPT TO CHECK FOR FOREIGN KEY LOCKING ISSUES</a><br>
    <a title="&#22914;&#20309;&#25214;&#20986;Oracle&#20013;&#38656;&#35201;&#25110;&#20540;&#24471;&#37325;&#24314;&#30340;&#32034;&#24341;" href="http://www.oracledatabase12g.com/archives/script-lists-all-indexes-that-benefit-from-a-rebuild.html" target="_blank">&#22914;&#20309;&#25214;&#20986;Oracle&#20013;&#38656;&#35201;&#25110;&#20540;&#24471;&#37325;&#24314;&#30340;&#32034;&#24341;</a><br>
    Script:Diagnostic ORA-01000 maximum open cursors exceeded<br>
    ORA-4030 PGA Usage Diagnostic Script<br>
    Script:Tune Very Large Hash Join<br>
    Script to Collect Log File Sync Diagnostic Information (lfsdiag.sql)<br>
    Script:List Buffer Cache Details<br>
    Script:List NLS Parameters and Timezone<br>
    Script:List SORT ACTIVITY<br>
    Script:List OBJECT DEPENDENT<br>
    Script:Logfile Switch Frequency Map<br>
    Script:Tablespace Report<br>
    Script:&#25910;&#38598;&#25968;&#25454;&#24211;&#23433;&#20840;&#39118;&#38505;&#35780;&#20272;&#20449;&#24687;<br>
    &#33050;&#26412;:&#26684;&#24335;&#21270;&#30340;V$SQL_SHARED_CURSOR&#25253;&#21578;<br>
    &#33050;&#26412;:&#30417;&#25511;&#24182;&#34892;&#36827;&#31243;&#29366;&#24577;<br>
    &#33050;&#26412;:&#30417;&#25511;&#25968;&#25454;&#24211;&#20013;&#30340;&#27963;&#36291;&#29992;&#25143;&#21450;&#20854;&#36816;&#34892;&#30340;SQL<br>
    &#33050;&#26412;:&#30417;&#25511;&#20020;&#26102;&#34920;&#31354;&#38388;&#20351;&#29992;&#29575;<br>
    Script to show Active Distributed Transactions<br>
    Gather DBMS_STATS Default parameter<br>
    Script:Datafile Report<br>
    Script to Collect Data Guard Diagnostic Information<br>
    Script:To Report Information on Indexes<br>
    ORA-4031 Common Analysis/Diagnostic Scripts<br>
    Script:when transaction will finish rollback<br>
    Script: Computing Table Size<br>
    Script to Detect Tablespace Fragmentation<br>
    &ldquo;hcheck.sql&rdquo; script to check for known problems in Oracle8i, Oracle9i, Oracle10g and Oracle 11g<br>
    Script to Prevent Excessive Spill of Message From the Streams Buffer Queue To Disk<br>
    Oracle Systemstate dump analytic tool: ASS.AWK V1.09<br>
    SCRIPT TO GENERATE SQL*LOADER CONTROL FILE</p>
    Edited by: Maclean Liu on Jan 22, 2012 1:23 AM

    谢谢大家支持! :)

  • Question about DBCA generate script o create RAC database 2 node cluster

    Question about creating two node RAC database 11g after installing and configuration 11g clusterware. I've used DBCA to generate script to create a rac database. I've set
    environment variable ORACLE_SID=RAC and the creating script creates instance of RAC1 and RAC2. My understanding is that each node will represent a node, however there should only be one database with a name of 'RAC'. Please advise

    You are getting your terminology mixed up.
    You only have one database. Take a look, there are one set of datafiles on shared storage.
    You have 2 instances which are accessing one database.
    Database name is RAC. Instance names are RAC1, RAC2, etc, etc.
    Also, if you look at the listener configuration and if your tnsnames is setup properly then connecting to RAC will connect you to either one of the instances wheras connecting to RAC1 will connect you to that instance.

  • Oracle 11gR2 RAC: Running the script root.sh problem

    Folks,
    Hello. I am installing Oracle 11gR2 RAC using 2 Virtual Machines (rac1 and rac2 whose OS are Oracle Linux 5.6) in VMPlayer and according to the tutorial
    http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    I have been installing Grid Infrastructure using runInstaller from step 1 to step 9 of 10 in both VM rac1 and rac2.
    Now, I am running the script root.sh in VM rac1 and rac2 as below:
    [root@rac1 /]# /u01/app/grid/root.sh
    Output:
    CRS-4123: ohasd is starting
    FATAL: Module oracleoks not found
    FATAL: Module oracleadvm not found
    FATAL: Module oracleacfs not found
    ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec
    ACFS-9310: ADVM/ACFS installation failed.
    ACFS-9311: not all components were detected after installation
    'UpdateNodeList' was successful.
    [root@rac1 /]#
    [root@rac2 /]# /u01/app/grid/root.sh
    Output:
    CRS-4123: ohasd is starting
    FATAL: Module oracleoks not found
    FATAL: Module oracleadvm not found
    FATAL: Module oracleacfs not found
    ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec
    ACFS-9310: ADVM/ACFS installation failed.
    ACFS-9311: not all components were detected after installation
    Start of resource "ora.asm_init" failed.
    Failed to start ASM.
    Failed to start Oracle Clusterware Stack.
    [root@rac2 /]#
    As we see the output above, rac1 and rac2 get the same problems. in addition, rac2 fails to start ASM and Clusterware stack. Thus, I have 2 questions:
    First, the common problem for rac1 and rac2 :
    1)Module "oracleoks, oracleadvm, oracleacfs" not found
    2)/dev/asm/.asm_ctl_spec not detected
    3)ADVM/ACFS installation failed
    Do the above 3 factors affect Grid and DataBase Installation later ? If yes, how to solve these problems ?
    Second, how to start ASM and Clusterware stack in rac2 ?
    Thanks.

    you have 2 options:
    1. OEL 5.6 comes with 2 kernels, the original Red Hat, and Oracle UEK, you can choose not to use UEK
    or the one i would recommend:
    2. Upgrade Grid Infrastructure,
    *11.2.0.3.1* (patch 13348650, released about a 1 month ago) supports ACFS on UEK (starting with 2.6.32.200 IIRC)

  • Confusion over DBCA script generated for manual RAC DB creation

    Version:11.2.0.4/RHEL 6.3
    We would like to create our 3-node RAC DB manually.  DBCA cannot meet our requirement because our redo log files, datafiles, tempfiles and control files are placed in a complicated manner . If we use DBCA , we will have to spend a lot of time configuring to our requirements after the DB creation.
    I generated the DB creation scripts from DBCA (DB Name = BRCFPRD )
    DBCA placed the db creation scripts in the specified directory in all the 3 nodes !!
    They all have almost the same contents . The only difference being the instance name (BRCFPRD12.sql for Node2, ... etc).
    Scripts in each node have the createDB.sql statement which has CREATE DATABASE "BRCFPRD" statement. Why is this ? The database need to be created only from one node. Then why did DBCA place createDB.sql in all nodes ?
    I just want to run the script from just one node , say Node1 and it should create the 3-Node RAC DB. How can I do this manually?
    -- The scripts genereated by DBCA in Node1
    apex.sql
    BRCFPRD1.sh
    BRCFPRD1.sql
    context.sql
    CreateClustDBViews.sql
    CreateDB.sql
    CreateDBCatalog.sql
    CreateDBFiles.sql
    cwmlite.sql
    emRepository.sql
    init.ora
    interMedia.sql
    JServer.sql
    lockAccount.sql
    ordinst.sql
    owb.sql
    postDBCreation.sql
    spatial.sql
    xdb_protocol.sql
    -- The contents of the main shell script BRCFPRD1.sh
    $ cat BRCFPRD1.sh
    #!/bin/sh
    OLD_UMASK=`umask`
    umask 0027
    mkdir -p /optware/product/admin/BRCFPRD/adump
    mkdir -p /optware/product/admin/BRCFPRD/dpdump
    mkdir -p /optware/product/admin/BRCFPRD/hdump
    mkdir -p /optware/product/admin/BRCFPRD/pfile
    mkdir -p /optware/product/cfgtoollogs/dbca/BRCFPRD
    umask ${OLD_UMASK}
    ORACLE_SID=BRCFPRD1; export ORACLE_SID
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    echo You should Add this entry in the /etc/oratab: BRCFPRD:/optware/product/oracle/11.2.0:Y
    /optware/product/oracle/11.2.0/bin/sqlplus /nolog @/optware/product/BRCFPRD1.sql
    -- Contents of BRCFSPRD1.sql
    $ cat BRCFPRD1.sql
    set verify off
    ACCEPT sysPassword CHAR PROMPT 'Enter new password for SYS: ' HIDE
    ACCEPT systemPassword CHAR PROMPT 'Enter new password for SYSTEM: ' HIDE
    ACCEPT sysmanPassword CHAR PROMPT 'Enter new password for SYSMAN: ' HIDE
    ACCEPT dbsnmpPassword CHAR PROMPT 'Enter new password for DBSNMP: ' HIDE
    host /optware/product/oracle/11.2.0/bin/orapwd file=/optware/product/oracle/11.2.0/dbs/orapwBRCFPRD1 force=y
    host /grid/product/11.2.0/bin/setasmgidwrap o=/optware/product/oracle/11.2.0/bin/oracle
    host /optware/product/oracle/11.2.0/bin/srvctl add database -d BRCFPRD -o /optware/product/oracle/11.2.0 -p +DATA/BRCFPRD/spfileBRCFPRD.ora -n BRCFPRD -a "DATA,ARCH_DG"
    host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD1 -n cimprd175
    host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD3 -n cimprd177
    host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD2 -n cimprd176
    host /optware/product/oracle/11.2.0/bin/srvctl disable database -d BRCFPRD
    @/optware/product/CreateDB.sql
    @/optware/product/CreateDBFiles.sql
    @/optware/product/CreateDBCatalog.sql
    @/optware/product/JServer.sql
    @/optware/product/context.sql
    @/optware/product/xdb_protocol.sql
    @/optware/product/ordinst.sql
    @/optware/product/interMedia.sql
    @/optware/product/cwmlite.sql
    @/optware/product/spatial.sql
    @/optware/product/emRepository.sql
    @/optware/product/apex.sql
    @/optware/product/owb.sql
    @/optware/product/CreateClustDBViews.sql
    host echo "SPFILE='+DATA/BRCFPRD/spfileBRCFPRD.ora'" > /optware/product/oracle/11.2.0/dbs/initBRCFPRD1.ora
    @/optware/product/lockAccount.sql
    @/optware/product/postDBCreation.sql
    -- Contents of CreateDB.sql in Node1
    $ cat /optware/product/CreateDB.sql
    SET VERIFY OFF
    connect "SYS"/"&&sysPassword" as SYSDBA
    set echo on
    spool /optware/product/CreateDB.log append
    startup nomount pfile="/optware/product/init.ora";
    CREATE DATABASE "BRCFPRD"
    MAXINSTANCES 32
    MAXLOGHISTORY 1
    MAXLOGFILES 192
    MAXLOGMEMBERS 3
    MAXDATAFILES 3000
    DATAFILE SIZE 700M AUTOEXTEND ON NEXT  10240K MAXSIZE UNLIMITED
    EXTENT MANAGEMENT LOCAL
    SYSAUX DATAFILE SIZE 600M AUTOEXTEND ON NEXT  10240K MAXSIZE UNLIMITED
    SMALLFILE DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE SIZE 20M AUTOEXTEND ON NEXT  640K MAXSIZE UNLIMITED
    SMALLFILE UNDO TABLESPACE "UNDOTBS1" DATAFILE SIZE 200M AUTOEXTEND ON NEXT  5120K MAXSIZE UNLIMITED
    CHARACTER SET AL32UTF8
    NATIONAL CHARACTER SET AL16UTF16
    LOGFILE GROUP 1  SIZE 28672M,
    GROUP 2  SIZE 28672M
    USER SYS IDENTIFIED BY "&&sysPassword" USER SYSTEM IDENTIFIED BY "&&systemPassword";
    set linesize 2048;
    column ctl_files NEW_VALUE ctl_files;
    select concat('control_files=''', concat(replace(value, ', ', ''','''), '''')) ctl_files from v$parameter where name ='control_files';
    host echo &ctl_files >>/optware/product/init.ora;
    spool off

    If you look at scripts generated in Node2 and Node3 , you can see all scripts except the instance specific ones are commented using REM .
    REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl add instance -d STOMPER -i STOMPER1 -n ugxtlprd186
    REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl add instance -d STOMPER -i STOMPER2 -n ugxtlprd187
    REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl disable database -d STOMPER
    REM @/u01/product/CreateDB.sql
    REM @/u01/product/CreateDBFiles.sql
    REM @/u01/product/CreateDBCatalog.sql
    REM @/u01/product/JServer.sql
    REM @/u01/product/context.sql
    <snipped >

  • RAC FAN Callout script issue

    In my script I have the following that script that is not providing me the information that I was expecting. Namely the following values I would like to have trapped and written to logfile
    SERVICE
    DATABASE
    INSTANCE
    HOST
    STATUS
    REASON
    TIMSTAMP
    However I'm only getting SERVICE, INSTANCE, and SERVICEMEMBER with no actual values assigned to them. Please advise on how to fix this. THanks.
    #! /bin/ksh
    AWK=/bin/awk
    for ARGS in $*; do
    PROPERTY=`echo $ARGS | $AWK -F"=" '{print $1}'`
    VALUE=`echo $ARGS | $AWK -F"=" '{print $2}'`
    #> map EVTTYPE to EVENT_TYP, NODE to HOST:
    case $PROPERTY in
    #> note: EVENT_TYP is one of: NODE, DATABASE, INSTANCE, SERVICE, SERVICEMEMBER
    EVENT_TYP | event_typ) NOTIFY_EVENT_TYP=$VALUE ;;
    VERSION | version) NOTIFY_VERSION=$VALUE ;;
    SERVICE | service) NOTIFY_SERVICE=$VALUE ;;
    DATABASE | database) NOTIFY_DBNAME=$VALUE ;;
    INSTANCE | instance) NOTIFY_INSTANCE=$VALUE ;;
    HOST | host) NOTIFY_HOST=$VALUE ;;
    STATUS | status) NOTIFY_STATUS=$VALUE ;;
    TIMESTAMP | timestamp) NOTIFY_SVRLOGDATE=$VALUE ;;
    esac
    done
    FAN_LOGFILE=/tmp/fan`hostname`_uptime.log
    echo ${1} >>${FAN_LOGFILE}
    if [ ${NOTIFY_EVENTTYPE} = "INSTANCE" -a ${NOTIFY_STATUS} = "down" ]
    then
    ${REFRESH_DIR}/rac_refresh >> ${FAN_LOGFILE} 2>&1
    fi
    How do you get the actual values for SERVICE, INSTANCE, DATABASE...? Thanks
    Edited by: yakub21 on May 26, 2010 12:26 PM

    Is this your script or Oracle provided script....? If Oracle provided scirpt then i am not sure how you are running...
    If it is your personal script then i can advise how to get the values...
    1. Get the node name from $ lsnodes command or HOSTNAME=`hostname |awk -F"." '{print $1}'`
    2. You can take the remaining values directly from database by querying the DBA_* tables ..gerp the value using AWK...
    Hope this helps..
    Regards
    http://www.oracleracexpert.com/
    Overview of Transparent Application Failover in Oracle RAC
    http://www.oracleracexpert.com/2010/04/overview-of-transparent-application.html
    In function 'lcdprm':: Warning after patch in RAC
    http://www.oracleracexpert.com/2010/04/in-function-lcdprm-warning-gets.html

  • Script execution in RAC

    We have a 2 node RAC in place with different DB names like dev1 in one node and dev2 in another node. DB is up and running .
    Now I need to create tablespace, schemas ,objects etc. DO I need t execute the scripts in both nodes of the RAC? .How this will work?
    [oracle@636606-devora1 ~]$  ps -ef|grep pmon
    oracle    1577 28768  0 11:05 pts/1    00:00:00 grep pmon
    grid     23149     1  0 Dec04 ?        00:00:17 asm_pmon_+ASM1
    oracle   26701     1  0 Dec04 ?        00:00:21 ora_pmon_DEV1
    oracle   27410     1  0 Dec04 ?        00:00:21 ora_pmon_QA1
    oracle   28185     1  0 Dec04 ?        00:00:21 ora_pmon_UAT1
    [oracle@636607-devora2 ~]$ ps -ef|grep pmon
    oracle   14586 10328  0 11:04 pts/0    00:00:00 grep pmon
    grid     16635     1  0 Dec04 ?        00:00:21 asm_pmon_+ASM2
    oracle   17579     1  0 Dec04 ?        00:00:20 ora_pmon_DEV2
    oracle   18600     1  0 Dec04 ?        00:00:20 ora_pmon_QA2
    oracle   19490     1  0 Dec04 ?        00:00:20 ora_pmon_UAT2

    DEV1 and DEV2 are "instances" of the same database, which is named "DEV". If you add a third node to the cluster, the instance on node 3 would be "DEV3".
    Any users, tables created, etc will only need to be done once. The database is shared among the instances so the other instances will see the change.
    Cheers,
    Brian

  • Root.sh script is not running successfully in RAC

    Hi
    when i run root.sh script for RAC Grid installation. throws below error in screen.
    CRS-4123: Oracle High Availability Services has been started.
    ohasd is starting
    CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
    CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
    CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
    CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
    CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
    CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
    CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
    CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
    CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
    CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
    CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
    CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
    CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
    CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
    Disk Group ASM already exists. Cannot be created again
    Configuration of ASM failed, see logs for details
    Did not succssfully configure and start ASM
    CRS-2500: Cannot stop resource 'ora.crsd' as it is not running
    CRS-4000: Command Stop failed, or completed with errors.
    Command return code of 1 (256) from command: /u01/app/grid/11.2.0/grid_1/bin/crsctl stop resource ora.crsd -init
    Stop of resource "ora.crsd -init" failed
    Failed to stop CRSD
    CRS-2500: Cannot stop resource 'ora.asm' as it is not running
    CRS-4000: Command Stop failed, or completed with errors.
    Command return code of 1 (256) from command: /u01/app/grid/11.2.0/grid_1/bin/crsctl stop resource ora.asm -init
    Stop of resource "ora.asm -init" failed
    Failed to stop ASM
    CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
    CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
    CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac1'
    CRS-2677: Stop of 'ora.cssdmonitor' on 'rac1' succeeded
    CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
    CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
    CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'
    CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded
    CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
    CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded
    CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
    CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded
    What need to be done. please help

    IN case it matters, which version?
    I agree with Hemant K Chitale on both of his points. The disk group has already been created, and one probably shouldn't name it "ASM". Give it a more meaningful name.
    "Configuration of ASM failed, see logs for details"
    Did you look in the log files? Anything of interest in there?
    Cheers,
    Brian

  • RMAN Scripts for 9i RAC

    We have just recently started to use Oracle 9i RAC on Red Hat linux 2.1. And we are going to use RMAN for backing up the archived logs.
    Currently we have 2 node cluster and the archived logs of respective nodes are on their respective local hard disk. e.g for node1 logs are archived on /arch1 and for node2 on /arch2 individually.
    Can I have some sample RMAN scripts for backing and restoring the logs of this individual nodes.?
    An early guidance is highly appreciated.
    Thanks

    you can use the same scripts as you where running before you upgraded to RAC. The main difference is that to distribute the load you can allocate channels from other nodes. A simple backup could be done as follows:
    #rman
    #connect target /
    #connect catalog rman/cat@cat
    #run{
    #allocate channel ch1 type sbt_tape;
    #allocate channel ch2 type sbt_tape;
    #configure channel 1 device type 'SBT_TAPE' connect = 'node 1'
    #configure channel 2 device type 'SBT_TAPE connect = 'node 2'
    #backup database;
    that will work (he says) but thats the main difference, remember oracle only recommend you allocate the same number of channels as you have devices (EG if you have 2 tape drives you can allocate 2 channels to maximize effiantcy)...
    hope this helps a bit,
    Marky Mark...

  • Database creation scripts from a running RAC

    Hi all
    We have a two node Oracle 10g R2 RAC running on SLES 10 SP2 Itanium systems.
    We have 4 database instances running on the two nodes.
    I need to create database creation scripts for one of the databases. eg. the script should contain all current configuration of the database (i.e i dont want the script which would have been created at the time of creation of the database)
    Is this possible to achieve?
    thanks

    Hi,
    You can follow this steps to create yours scripts using notes below:
    Create Database Manually
    *How to create a RAC database using DBCA generated scripts from templates [ID 856783.1]*
    Create Database Service Manually
    *How To Configure Server Side Transparent Application Failover [ID 460982.1]*
    *10g & 11g :Configuration of TAF(Transparent Application Failover) and Load Balancing [ID 453293.1]*
    Regards,
    Levi Pereira
    Edited by: Levi Pereira on Mar 18, 2011 11:36 AM

  • When accessing the form on the races instead of a form guide I get a java script void error. How do I fix this please ?

    When in the TAB Racing site at a particular race I click on Form to access the form guide for that race. Instead of the form guide I get an error message " Java Script Void " This has only started recently and not as a result of anything I have done ..... HELP !!!

    Delete the song from your library and re-download it from the Purchases section of the iTunes Store.
    http://support.apple.com/kb/PH12491

  • Orainst.sh scripts not respond on RAC Node 2

    Hi every one,
    I am configuring RAC with 2 nodes. during cluster installation the root.sh and orainst.sh runs successfully on Node1.. root.sh scripts also runs fine on Node 2...but when running orainst.sh scripts its starts and hangs on "90 seconds" nothing happens ...
    Any one have idea..
    Thanks..
    Aziz

    Abdul Aziz wrote:
    Hi Billy, sorry for not mentioning... I have Linux rhel 4.6 and Oracle 10g Clusterware 10.2.....
    We have installed many time before but on rhel 4.3..
    Had a similar problem due to bug 4679769. As I recall, the configuration/checking of the OCR (and/or Voting) Disks fails when checked by the installer script on subsequent nodes after the 1st node formatted it.
    I hacked it originally by removing certain checks from the shell script (not recommended). Later when installing other clusters discovered that module clsfmt.bin was the problem and that patch 4679769 provides a replacement module. The patch is not opatch style - simply a manual copy to replace the existing module with the updated one.
    But this was for Linux x86-64 (AMD64/EM64T). You neglected to name the h/w platform. But I suspect the same problem would exist for Intel based platforms.
    An alternative (which I am using with current CRS installs) is to install CRS 11g and run 10gr2 RAC on top of it. It is a certified combo and hopefully will result in less work when I need to upgrade the RDBMS to 11.2 when it becomes available.

  • Add script to rac

    Hi,
    I have goldengate configure with rac 2 node.
    I what to add a script that will start the goldengate manager to the rac
    so that whenever a node fails the rac will automatecly run the script in the other server. also i want it to "jump" when the db fails too, and not only when the server fails.
    Is it possible? if so, how can I do it?
    Thanks.

    yes,its possible.
    one of the best oracle document on this.
    http://www.oracle.com/technetwork/middleware/goldengate/overview/ha-goldengate-whitepaper-128197.pdf

  • Scripting to gather oracle info on a Linux box Finding rac/normal instance?

    Hello all,
    I've been tasked by the disaster recovery team to get a little quick script for them to run, to see what oracle instances are on a box, if it is up, listener is running, etc.
    So far, with normal, one node instances I've had success. I grab data from the /etc/oratab file, and parse it out with awk to get a ORACLE_SID and and ORACLE_HOME.
    This script is run as the oracle user or a user in the dba group, so, that with each instance, I attempt a logon through SQL*Plus as connect / as sysdba and does a query to gather some instance information that I echo to the screen to establish that the instance is up and connectable.
    The problem I have run into, is if there is an instance listed for a node of a RAC cluster....it doesn't see that entries to /etc/oratab are quite the same using dbca for RAC nodes as normal nodes.
    For instance, say I have a cluster RAC which has nodes rac1 rac2 and rac3.
    From what I'm seeing...on the individual nodes, in the /etc/oratab entries only seem to be put in for the cluster RAC, rather that say rac1. My script which tries to set the oracle sid and home and connect / as sysdba fails. If the entry were put in there as rac1, it should work, I'd think.
    Can someone make suggestions for me to use with this script, so that I can find out what node instance is running, if RAC is on the computer...and automatically find and connect similar to how I'm doing with the single databases using /etc/oratab
    Is there a similar file to /etc/oratab that is used by the clusterware on the system?
    Thanks in advance,
    cayenne
    Edited by: cayenne on Apr 15, 2009 12:57 PM

    S2K wrote:
    please post your script here so we can see what exactly is going on...and help you point out stuff...Certainly...that might help indeed.
    Here is the listing:
    #! /bin/bash
    #grab original path so as to reuse on each loop interation to ensure ONLY
    # the oracle binaries from the proper oracle home are used.
    old_path=$PATH
    #set oracle_home/bin path for listener
    #to guess best fit, hit first home that is bootable
    #and not listed as ASM
    #start as empty
    listener_path=
    if [ -e "/etc/oratab" ]
    then
         #grab and clean the entries for oracle instances and their respective oracle homes
         oracle_instances=`cat /etc/oratab | sed '/#/d' | sed '/\*/d' | sed '/^$/d'`
         echo 'Testing connections to Oracle intances as listed in /etc/oratab'
         echo 'and testing connectivity, start times and status'
         echo '----------------------------------------------------------------------------------------------------'
         for oinstance in $oracle_instances;
         do
              oracle_sid=`echo $oinstance | awk -F":" '{print $1}'`
              oracle_home=`echo $oinstance | awk -F":" '{print $2}'`
              oracle_bootable=`echo $oinstance | awk -F":" '{print $3}'`
              echo
              echo 'Using ORACLE_HOME='$oracle_home
              echo
              export ORACLE_HOME=$oracle_home #set oracle home
              echo 'Setting ORACLE_SID='$oracle_sid
              echo
              export ORACLE_SID=$oracle_sid #set oracle sid
              echo 'Adding Oracle bin to path'
              echo
              echo '----------------------------------------------------------------------------------------------------'
              echo
              export PATH=$ORACLE_HOME/bin:$old_path #reset to old path plus new oracle home /bin
              #Test and set listener path
              # do I need this? to exclude asm for listener? && `expr match "$oracle_sid" \+ASM.*` = 0
              if [[ -z "$listener_path" && $oracle_bootable != "N" ]] #Test to see if listener path set yet, if not, is instance set bootable
              then
                   listener_path=$oracle_home/bin:$old_path
              fi
              #Next, connect through sqlplus and query v$instance table to prove connectivity
              output= #Reset output for each iteration
              output=`sqlplus -s "/ as sysdba" <<EOF
              set heading off feedback off verify off
              select 'Instance Name='||instance_name||' Host='||host_name||' Start Time='||to_char (startup_time, 'HH:MI AM MON DD,YYYY')||' Status='||status from v\\$instance;
              exit
              EOF`
              echo 'Connection to Database returns message:'
              # If sqlplus fails, print error message
              echo
              if [[ -z "$output" || `expr match "$output" .*ORA-.*` > 0 ]]
              then
                   echo 'Unable to conect and query database instance = '$oracle_sid
              else
                   echo $output
                   echo
                   echo '----------------------------------------------------------------------------------------------------'
                   echo
                   echo 'Schemas on this Database Instance: '$oracle_sid
                   echo
                   if [[ `expr match "$oracle_sid" \+ASM.*` = 0 ]] #Test to see if an ASM instance
                   then
                        #Hit sqlplus again, this time to grab and display a list of schema/usernames on this instance.
                        sqlplus -s "/ as sysdba" <<EOF
                        set heading off feedback off verify off pagesize 0
                        select username from dba_users order by username;
                        exit
    EOF
                   else
                        echo 'Instance '$oracle_sid' is an Auto Storage Management instance, no user schemas to report'
                   fi #end test for ASM
              fi
              echo
              echo '----------------------------------------------------------------------------------------------------'
         done
         echo
         ###Look into what path is used here for the listener!!
         output=''
         echo 'Checking output for querying the Oracle Listener'
         echo
         if [[ -n "$listener_path" ]]
         then
              lsnrctl status
         else
              echo
              echo 'Oracle Home Not set to bootable path, cannot find path for listener'
         fi
         echo
         echo '----------------------------------------------------------------------------------------------------'
    else
         echo '----------------------------------------------------------------------------------------------------'
         echo 'Unable to test connectivity to oracle database instances due to '
         echo 'the file /etc/oratab NOT being found on this system'
         echo '----------------------------------------------------------------------------------------------------'
    fi #End if statement testing if /etc/oratab present
    echo
    echo 'Listing Oracle processes currently running on this box'
    echo
    ps -ef | grep oracle
    echo
    echo '----------------------------------------------------------------------------------------------------'
    As I mentioned before, the problem comes when a RAC instance is in the /etc/oratab...apparently dbca puts in the RAC sid, not the node sid....and when my script tries to connect...it can't and throws the not started error.
    See other email for details of the problem.
    This is the script I'm working on....any suggestions greatly appreciated!!
    cayenne

Maybe you are looking for

  • Macs or mac mini work with blu ray external drives even XL DISC CAPACITIES

    macs or mac mini work with blu ray external drives (BURNERS) even XL DISC CAPACITIES like 128GB?

  • Can we write a join on a view and a table

    Hi all, can we write a join on a view and a table. i got the requirement from my functional people about the following one Select CAUFV-AFUNR, CAUFV-AUART, AFVC-VORNR, CAUFV-FTRMI, CRHD-ARBPL into <ProOrd>, <OrdTyp>, <Opt>, <RelDat>, <WorCen> from CA

  • Picture in table appears cut with thin lines

    I'm working on my CV and now I'm hampered by the following misbehavior of Pages: I made up a table with 7 rows and 3 columns. The 2 leftmost columns contain my personal data, the rightmost colum stretches over all rows and contains a picture of me. N

  • Missing orasql9.lib in Windows ???

    Has anyone downloaded and installed Oracle 9i Release 9.2 Standard and attempted to compile and link a Pro*C program in Windows? I'm not finding orasql9.lib in the precomp\lib\msvcc directory as is documented. It's supposed to be there, but it's not!

  • Nast table and spras language in it

    hi i want to know how the data in nast table is populated as i have a bwlow code   LANGUAGE     = NAST-SPRAS.   SHIPMENT_NUM = NAST-OBJKY. CALL FUNCTION 'RV_SHIPMENT_PRINT_VIEW' now the problme is that the language as cming from n ast spras is 1 but