<?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: ORA-30926: unable to get a stable set of rows in the source tables. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ORA-30926-unable-to-get-a-stable-set-of-rows-in-the-source/m-p/474943#M122106</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/99537"&gt;@kuppusamy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;i modified to distinct party_rk. it is not working.......can you edit above code..&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I can't test anything, as I do not have Oracle, I only have SAS and google &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; . I suggest you get hold of one of your local Oracle DBA's to check your code.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jul 2018 15:25:43 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-07-02T15:25:43Z</dc:date>
    <item>
      <title>ORA-30926: unable to get a stable set of rows in the source tables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ORA-30926-unable-to-get-a-stable-set-of-rows-in-the-source/m-p/474888#M122089</link>
      <description>&lt;P&gt;the below bolded text is the logic. inthat im getting this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sql feedback;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;connect to &amp;amp;db_engine as &amp;amp;db_engine (authdomain=&amp;amp;ecm_dbauth &amp;amp;ecm_db_conopts.);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;execute (&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;merge into party_live pl&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;using&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(select party_rk, version_no, party_full_nm, valid_from_dttm from iem_party_staging) tmp_iem&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;on (tmp_iem.party_rk = pl.party_rk)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;when matched then update set &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;pl.version_no = tmp_iem.version_no,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;pl.valid_from_dttm = tmp_iem.valid_from_dttm,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;pl.party_full_nm = tmp_iem.party_full_nm&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;%if %upcase(&amp;amp;db_engine) eq ODBC %then %do;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;%end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;) by &amp;amp;db_engine;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;disconnect from &amp;amp;db_engine;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable DB_ENGINE resolves to oracle&lt;BR /&gt;MPRINT(FCF_IEM_UPDATE_SUBJECT):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;execute ( merge into party_live pl using (select party_rk, version_no, party_full_nm, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;valid_from_dttm from iem_party_staging) tmp_iem on (tmp_iem.party_rk = pl.party_rk) when matched then update set pl.version_no = &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;tmp_iem.version_no, pl.valid_from_dttm = tmp_iem.valid_from_dttm, pl.party_full_nm = tmp_iem.party_full_nm ) by oracle;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: ORACLE execute error: ORA-30926: unable to get a stable set of rows in the source tables.&lt;/FONT&gt;&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;SYMBOLGEN: Macro variable DB_ENGINE resolves to oracle&lt;BR /&gt;MPRINT(FCF_IEM_UPDATE_SUBJECT): disconnect from oracle;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NOTE: Statement not executed due to NOEXEC option.&lt;BR /&gt;MPRINT(FCF_IEM_UPDATE_SUBJECT): quit;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 13:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ORA-30926-unable-to-get-a-stable-set-of-rows-in-the-source/m-p/474888#M122089</guid>
      <dc:creator>kuppusamy</dc:creator>
      <dc:date>2018-07-02T13:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-30926: unable to get a stable set of rows in the source tables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ORA-30926-unable-to-get-a-stable-set-of-rows-in-the-source/m-p/474904#M122094</link>
      <description>&lt;P&gt;According to&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/2337271/ora-30926-unable-to-get-a-stable-set-of-rows-in-the-source-tables" target="_blank"&gt;https://stackoverflow.com/questions/2337271/ora-30926-unable-to-get-a-stable-set-of-rows-in-the-source-tables&lt;/A&gt;, this is caused by duplicates returned by the "using" clause. Try a distinct in there.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 13:57:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ORA-30926-unable-to-get-a-stable-set-of-rows-in-the-source/m-p/474904#M122094</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-02T13:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-30926: unable to get a stable set of rows in the source tables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ORA-30926-unable-to-get-a-stable-set-of-rows-in-the-source/m-p/474910#M122095</link>
      <description>&lt;P&gt;i modified to distinct party_rk. it is not working.......can you edit above code..&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ORA-30926-unable-to-get-a-stable-set-of-rows-in-the-source/m-p/474910#M122095</guid>
      <dc:creator>kuppusamy</dc:creator>
      <dc:date>2018-07-02T14:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-30926: unable to get a stable set of rows in the source tables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ORA-30926-unable-to-get-a-stable-set-of-rows-in-the-source/m-p/474913#M122097</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is&amp;nbsp;&lt;STRONG&gt;iem_party_staging &lt;/STRONG&gt;temporary table? How did you create that temp table? Temp tables in DBMS exists only for that particular session. You need to setup connection in such a way that multiple DATA steps and PROC steps share the same connection. This can be done by using CONNECTION=GLOBAL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your creating the temp table in one pass-through statement and accessing in other pass-through statement will not wok if you don't mention connection=Global.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Run this and see if your temp table actually exists */

 proc sql;
connect to &amp;amp;db_engine as &amp;amp;db_engine (authdomain=&amp;amp;ecm_dbauth &amp;amp;ecm_db_conopts.);
CREATE TABLE temp AS 
SELECT * 
FROM CONNECTION TO &amp;amp;db_engine 

 (Select  * from iem_party_staging);

DISCONNECT FROM &amp;amp;db_engine;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ORA-30926-unable-to-get-a-stable-set-of-rows-in-the-source/m-p/474913#M122097</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-07-02T14:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-30926: unable to get a stable set of rows in the source tables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ORA-30926-unable-to-get-a-stable-set-of-rows-in-the-source/m-p/474943#M122106</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/99537"&gt;@kuppusamy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;i modified to distinct party_rk. it is not working.......can you edit above code..&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I can't test anything, as I do not have Oracle, I only have SAS and google &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; . I suggest you get hold of one of your local Oracle DBA's to check your code.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:25:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ORA-30926-unable-to-get-a-stable-set-of-rows-in-the-source/m-p/474943#M122106</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-02T15:25:43Z</dc:date>
    </item>
  </channel>
</rss>

