<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: script help oracle in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939827#M760918</link>
    <description>The command loolks ok, but it is best to verify by just giving the result directly to SQLplus. Does it work as expected?&lt;BR /&gt;&lt;BR /&gt;Next, use the SET SPOOL as requested and share the exact commands as given to Oracle and the result.&lt;BR /&gt;&lt;BR /&gt;We see where MAITM010_IDX might come from.&lt;BR /&gt;But where does the SYSAUX, SYSTEM,... come from. Understanding that may explain a problem. Maybe the command shown works, but the next command suggests a problem?&lt;BR /&gt;&lt;BR /&gt;Finally... If the MAITM010_IDX is what it's name implies: just indexes, then be sure to carefully weigh the cost of backup + restore all versus just re-indexing and analyzing selected indexes.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;HvdH Performance Consulting</description>
    <pubDate>Thu, 08 Feb 2007 09:11:51 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2007-02-08T09:11:51Z</dc:date>
    <item>
      <title>script help oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939822#M760913</link>
      <description>Dear experts.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;${ORACLE_HOME}/bin/sqlplus / as sysdba &amp;lt;&amp;lt; EOF &amp;gt; /dev/null&lt;BR /&gt;alter tablespace ${TABLESPACE_NAME} begin backup;&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;this script is supposed to login oracle and &lt;BR /&gt;tablespace is altered ,  when i run the script, it is connected but  &lt;BR /&gt;dose not know sql command alter..&lt;BR /&gt;&lt;BR /&gt;Beginning backup of tablespace MAITM010_IDX&lt;BR /&gt;&lt;BR /&gt;SQL*Plus: Release 10.2.0.2.0 - Production on Wed Feb 7 14:18:10 2007&lt;BR /&gt;&lt;BR /&gt;Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Connected to:&lt;BR /&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production&lt;BR /&gt;With the Partitioning, OLAP and Data Mining options&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; SP2-0734: unknown command beginning "MAITM010_T..." - rest of line ignored.&lt;BR /&gt;SQL&amp;gt; SP2-0042: unknown command "SYSAUX" - rest of line ignored.&lt;BR /&gt;SQL&amp;gt; SP2-0042: unknown command "SYSTEM" - rest of line ignored.&lt;BR /&gt;SQL&amp;gt; SP2-0042: unknown command "UNDOTBS1" - rest of line ignored.&lt;BR /&gt;SP2-0044: For a list of known commands enter HELP&lt;BR /&gt;and to leave enter EXIT.&lt;BR /&gt;&lt;BR /&gt;how can I run the script to run.</description>
      <pubDate>Wed, 07 Feb 2007 00:32:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939822#M760913</guid>
      <dc:creator>file system</dc:creator>
      <dc:date>2007-02-07T00:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: script help oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939823#M760914</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;to be able to troubleshoot this script better, add the following to the commands:&lt;BR /&gt;spool /tmp/log.txt&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;spool off;&lt;BR /&gt;&lt;BR /&gt;and then upload the log.txt so that we can have a better look.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In the meanwhile, I have tried this simple script here and it works fine:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;$ORACLE_HOME/bin/sqlplus / as sysdba &amp;lt;&amp;lt; EOF &amp;gt;&amp;gt; /dev/null&lt;BR /&gt;spool /tmp/log.txt&lt;BR /&gt;select sysdate from dual;&lt;BR /&gt;exit;&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;revert.&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Wed, 07 Feb 2007 02:44:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939823#M760914</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2007-02-07T02:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: script help oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939824#M760915</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;since you are using Oracle 10g, it is much better and easy to do RMAN backup.&lt;BR /&gt;&lt;BR /&gt;please refer to my post in your previous thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1097393" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1097393&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Wed, 07 Feb 2007 02:50:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939824#M760915</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2007-02-07T02:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: script help oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939825#M760916</link>
      <description>Hi,&lt;BR /&gt;I assume you have set the value for ${TABLESPACE_NAME} somewehere else, but have assigned the list of tablespaces, rather the &lt;BR /&gt;individual value.&lt;BR /&gt;&lt;BR /&gt;If your do a &lt;BR /&gt;echo ${TABLESPACE_NAME} &lt;BR /&gt;just before your call to sqlplus, you should find the list includes SYSAUX SYSTEM UNDOTBS1.&lt;BR /&gt;&lt;BR /&gt;You have to call the alter statement in a loop, or have multiple alter statement with a different tablespace_name value.&lt;BR /&gt;&lt;BR /&gt;You are also missing a EOF in the line following the exit statement.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Feb 2007 03:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939825#M760916</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-02-07T03:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: script help oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939826#M760917</link>
      <description>Hi,&lt;BR /&gt;try:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;TABLESPACE_NAME=MAITM010_IDX&lt;BR /&gt;${ORACLE_HOME}/bin/sqlplus / as sysdba &amp;lt;&amp;lt; EOF &amp;gt; /dev/null&lt;BR /&gt;alter tablespace ${TABLESPACE_NAME} begin backup;&lt;BR /&gt;exit&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Thu, 08 Feb 2007 05:14:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939826#M760917</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2007-02-08T05:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: script help oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939827#M760918</link>
      <description>The command loolks ok, but it is best to verify by just giving the result directly to SQLplus. Does it work as expected?&lt;BR /&gt;&lt;BR /&gt;Next, use the SET SPOOL as requested and share the exact commands as given to Oracle and the result.&lt;BR /&gt;&lt;BR /&gt;We see where MAITM010_IDX might come from.&lt;BR /&gt;But where does the SYSAUX, SYSTEM,... come from. Understanding that may explain a problem. Maybe the command shown works, but the next command suggests a problem?&lt;BR /&gt;&lt;BR /&gt;Finally... If the MAITM010_IDX is what it's name implies: just indexes, then be sure to carefully weigh the cost of backup + restore all versus just re-indexing and analyzing selected indexes.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;HvdH Performance Consulting</description>
      <pubDate>Thu, 08 Feb 2007 09:11:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939827#M760918</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-02-08T09:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: script help oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939828#M760919</link>
      <description>Thank you all experts.&lt;BR /&gt;I think that maybe the shell environment is the cause of error&lt;BR /&gt;&lt;BR /&gt;I changed ${ORACLE_HOME}/bin/sqlplus / as sysdba &amp;lt;&amp;lt; EOF &amp;gt; /dev/null to ${ORACLE_HOME}/bin/sqlplus / as sysdba &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;&lt;BR /&gt;this works fine.&lt;BR /&gt;but your helps are available to me.&lt;BR /&gt;I really appreciate that.&lt;BR /&gt;&lt;BR /&gt;and I will backup of oracle using RMAN next time to your advice. thank you</description>
      <pubDate>Thu, 08 Feb 2007 20:57:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939828#M760919</guid>
      <dc:creator>file system</dc:creator>
      <dc:date>2007-02-08T20:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: script help oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939829#M760920</link>
      <description>It probably wouldn't hurt to set ${ORACLE_SID} as well.</description>
      <pubDate>Mon, 12 Feb 2007 19:33:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939829#M760920</guid>
      <dc:creator>Sean Dale</dc:creator>
      <dc:date>2007-02-12T19:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: script help oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939830#M760921</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;with 10g you simply can do&lt;BR /&gt;&lt;BR /&gt;alter database begin backup;&lt;BR /&gt;&lt;BR /&gt;Very charming and very speedy compared to 9i.&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 21 Feb 2007 12:47:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-oracle/m-p/3939830#M760921</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2007-02-21T12:47:58Z</dc:date>
    </item>
  </channel>
</rss>

