<?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: how to Alter oracle current_schema via sas pass through? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/771529#M244850</link>
    <description>&lt;P&gt;here's example of alter session that did not error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Connect to oracle as oraconnect (user="&amp;amp;ora_userid" password="&amp;amp;ora_pw" path=Prod connection=global);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Execute by oraconnect(ALTER SESSION set "_push_join_predicate"=false);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create table……&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 01:05:34 GMT</pubDate>
    <dc:creator>_KM</dc:creator>
    <dc:date>2021-10-01T01:05:34Z</dc:date>
    <item>
      <title>how to Alter oracle current_schema via sas pass through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/435885#M108317</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;SQL code_1:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;connect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; oracle (user=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"xxxxx"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; pw=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"%superq(ex_pw)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; path=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;ex_path"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;execute&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (ALTER SESSION SET CURRENT_SCHEMA=HCCLNW;)&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ORACLE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DISCONNECT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ORACLE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;result_1:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ERROR: ORACLE execute error: ORA-00922: missing or invalid option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQL code_2:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;connect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; oracle (user=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"xxxxx"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; pw=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"%superq(ex_pw)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; path=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;ex_path"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;execute&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (EXEC ALTER SESSION SET CURRENT_SCHEMA=HCCLNW;)&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ORACLE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DISCONNECT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ORACLE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Result_2:&lt;/P&gt;&lt;P&gt;ERROR: ORACLE execute error: ORA-06550: line 1, column 8:PLS-00103: Encountered the symbol "ALTER" when expecting one of the&lt;/P&gt;&lt;P&gt;following: ( begin case declare exit for goto if loop mod null pragma raise return select update while with &amp;lt;an&lt;/P&gt;&lt;P&gt;identifier&amp;gt; &amp;lt;a double-quoted delimited-identifier&amp;gt; &amp;lt;a bind variable&amp;gt; &amp;lt;&amp;lt; continue close current delete fetch lock&lt;/P&gt;&lt;P&gt;insert open rollback savepoint set sql execute commit forall merge pipe purgeThe symbol "update was inserted before&lt;/P&gt;&lt;P&gt;"ALTER" to continue.ORA-06550: line 1, column 49:PLS-00103: Encountered the symbol ";" when expecting one of the&lt;/P&gt;&lt;P&gt;following: ( begin case declare end exception exit for goto if loop mod null pragma raise return select update while&lt;/P&gt;&lt;P&gt;with &amp;lt;an identifier&amp;gt; &amp;lt;a double-quoted delimited-identifier&amp;gt; &amp;lt;a bind variable&amp;gt; &amp;lt;&amp;lt; continue close current delete fetch&lt;/P&gt;&lt;P&gt;lock insert open rollback savepoint set sql execute commit forall merge pipe purgeThe symbol "exit" was substituted&lt;/P&gt;&lt;P&gt;for ";" to continue..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ANY IDEAs?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 21:52:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/435885#M108317</guid>
      <dc:creator>jfd</dc:creator>
      <dc:date>2018-02-09T21:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to Alter oracle current_schema via sas pass through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/435934#M108335</link>
      <description>Why can't you set the appropriate schema in the connect statement directly?</description>
      <pubDate>Sat, 10 Feb 2018 06:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/435934#M108335</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-02-10T06:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to Alter oracle current_schema via sas pass through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/435992#M108361</link>
      <description>&lt;P&gt;Are you sure the schema exists?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the ALTER command work when using some other tool to connect to your Oracle database?&lt;/P&gt;
&lt;P&gt;See if it helps to add semi-colon to the Oracle command?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  connect to oracle (user="xxxxx" pw="%superq(ex_pw)" path="&amp;amp;ex_path");
  execute 
    (ALTER SESSION SET CURRENT_SCHEMA=HCCLNW ; )
  by ORACLE;
  DISCONNECT from ORACLE;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2018 20:35:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/435992#M108361</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-02-10T20:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to Alter oracle current_schema via sas pass through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/440331#M109964</link>
      <description>&lt;P&gt;Thank you for the response.&amp;nbsp; The schema is right. It doe not require to have a semi-colon at the end of the Oracle command. Strange enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 20:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/440331#M109964</guid>
      <dc:creator>jfd</dc:creator>
      <dc:date>2018-02-26T20:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to Alter oracle current_schema via sas pass through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/440334#M109965</link>
      <description>It does not work that way in a SAS pass_througth to Oracle. I did try it...</description>
      <pubDate>Mon, 26 Feb 2018 20:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/440334#M109965</guid>
      <dc:creator>jfd</dc:creator>
      <dc:date>2018-02-26T20:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to Alter oracle current_schema via sas pass through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/560583#M156790</link>
      <description>&lt;P&gt;Did you ever find a solution? I am struggling to find one.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 17:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/560583#M156790</guid>
      <dc:creator>currymj</dc:creator>
      <dc:date>2019-05-21T17:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to Alter oracle current_schema via sas pass through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/771529#M244850</link>
      <description>&lt;P&gt;here's example of alter session that did not error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Connect to oracle as oraconnect (user="&amp;amp;ora_userid" password="&amp;amp;ora_pw" path=Prod connection=global);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Execute by oraconnect(ALTER SESSION set "_push_join_predicate"=false);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create table……&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 01:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-Alter-oracle-current-schema-via-sas-pass-through/m-p/771529#M244850</guid>
      <dc:creator>_KM</dc:creator>
      <dc:date>2021-10-01T01:05:34Z</dc:date>
    </item>
  </channel>
</rss>

