<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ross,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>So looking back at the changes I made the other day, I also
added to /etc/rhn/default/rhn_hibernate.conf -- hibernate.show_sql=true.  This
should show you something like:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hibernate: select legacyrhnu0_.id as id235_4_,
legacyrhnu0_.login as login235_4_, legacyrhnu0_.login_uc as login3_235_4_,
legacyrhnu0_.password as password23<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>5_4_, legacyrhnu0_.created as created235_4_,
legacyrhnu0_.modified as modified235_4_, legacyrhnu0_.org_id as org7_235_4_,
personalin1_.web_user_id as web1_23<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>2_0_, personalin1_.prefix as prefix232_0_,
personalin1_.first_names as first3_232_0_, personalin1_.last_name as last4_232_0_,
personalin1_.company as company<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>232_0_, personalin1_.title as title232_0_, personalin1_.phone as
phone232_0_, personalin1_.fax as fax232_0_, personalin1_.email as email232_0_,
personalin1_.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>created as created232_0_, personalin1_.modified as modified232_0_,
orgimpl2_.id as id44_1_, orgimpl2_.name as name44_1_,
orgimpl2_.oracle_customer_id as orac<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>le3_44_1_, orgimpl2_.oracle_customer_number as oracle4_44_1_,
orgimpl2_.customer_type as customer5_44_1_, orgimpl2_.created as created44_1_,
orgimpl2_.credit<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>_application_completed as credit7_44_1_, orgimpl2_.modified as
modified44_1_, orgimpl2_1_.reg_token_id as reg2_47_1_, entitlemen3_.org_id as
org1_6_, orgenti<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>tle4_.id as entitlem2_6_, orgentitle4_.id as id43_2_,
orgentitle4_.label as label43_2_, orgentitle4_.name as name43_2_,
orgentitle4_.created as created43_2_,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> orgentitle4_.modified as modified43_2_,
trustedorg5_.org_id as org1_7_, orgimpl6_.id as org2_7_, orgimpl6_.id as
id44_3_, orgimpl6_.name as name44_3_, orgim<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>pl6_.oracle_customer_id as oracle3_44_3_,
orgimpl6_.oracle_customer_number as oracle4_44_3_, orgimpl6_.customer_type as
customer5_44_3_, orgimpl6_.created as<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> created44_3_, orgimpl6_.credit_application_completed as
credit7_44_3_, orgimpl6_.modified as modified44_3_, orgimpl6_1_.reg_token_id as
reg2_47_3_ from WEB_<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>CONTACT legacyrhnu0_, WEB_USER_PERSONAL_INFO personalin1_,
WEB_CUSTOMER orgimpl2_, rhnRegTokenOrgDefault orgimpl2_1_, rhnOrgEntitlements
entitlemen3_, RHNORG<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>ENTITLEMENTTYPE orgentitle4_, rhnTrustedOrgs trustedorg5_,
WEB_CUSTOMER orgimpl6_, rhnRegTokenOrgDefault orgimpl6_1_ where
legacyrhnu0_.id=personalin1_.web_u<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>ser_id and legacyrhnu0_.org_id=orgimpl2_.id and
orgimpl2_.id=orgimpl2_1_.org_id(+) and orgimpl2_.id=entitlemen3_.org_id(+) and
entitlemen3_.entitlement_id=or<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>gentitle4_.id(+) and orgimpl2_.id=trustedorg5_.org_id(+) and
trustedorg5_.org_trust_id=orgimpl6_.id(+) and
orgimpl6_.id=orgimpl6_1_.org_id(+) and legacyrhnu0<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>_.id=?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>2008-12-15 10:23:14,157 [TP-Processor3] WARN 
org.hibernate.util.JDBCExceptionReporter - SQL Error: 942, SQLState: 42000<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>2008-12-15 10:23:14,157 [TP-Processor3] ERROR
org.hibernate.util.JDBCExceptionReporter - ORA-00942: table or view does not
exist<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I broke this query down a bit and checked it within Oracle and
was able to duplicate the error with:<br>
<br>
‘select trustedorg5_.org_id as org1_7_ from rhnTrustedOrgs trustedorg5_;’<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>From the git repo I saw in schema/spacewalk/upgrade/spacewalk-0.3-spacewalk-0.4
the file 116-rhnTrustedOrgs.sql which creates that table.  Unfortunately I
haven’t had the chance to get any further with this.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><br>
Aric<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'> spacewalk-list-bounces@redhat.com
[mailto:spacewalk-list-bounces@redhat.com] <b>On Behalf Of </b>Ross<br>
<b>Sent:</b> Friday, December 19, 2008 12:37 PM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> RE: [Spacewalk-list] unregister clients or remove pacakges
fromchannel<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Hi Aric<br>
<br>
After bumping up the debugging, the error I get:<o:p></o:p></p>

<pre><tt>2008-12-19 12:29:20,665 [TP-Processor3] WARN  org.apache.struts.action.RequestProcessor - Unhandled Exception thrown: class com.redhat.rhn.common.db.WrappedSQLException</tt><o:p></o:p></pre><pre><tt>2008-12-19 12:29:20,849 [TP-Processor3] ERROR com.redhat.rhn.frontend.servlets.SessionFilter - Error during transaction. Rolling back</tt><o:p></o:p></pre><pre><tt>javax.servlet.ServletException: ORA-00942: table or view does not exist<o:p></o:p></tt></pre><pre><tt><o:p> </o:p></tt></pre>

<p class=MsoNormal style='margin-bottom:12.0pt'>and further down:<o:p></o:p></p>

<pre>Caused by: com.redhat.rhn.common.db.WrappedSQLException: ORA-00942: table or view does not exist<o:p></o:p></pre><pre><o:p> </o:p></pre>

<p class=MsoNormal style='margin-bottom:12.0pt'>and even further:<o:p></o:p></p>

<pre><span style='font-size:7.5pt'>2008-12-19 12:29:20,941 [TP-Processor3] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/rhn].[action] - Servlet.service() for servlet action threw exception</span><o:p></o:p></pre><pre><span
style='font-size:7.5pt'>java.sql.SQLException: ORA-00942: table or view does not exist<o:p></o:p></span></pre><pre><span
style='font-size:7.5pt'><o:p> </o:p></span></pre>

<p class=MsoNormal>Version 0.4, is that from SVN?<br>
<br>
Thanks<br>
Ross<o:p></o:p></p>

</div>

<PRE>
Confidentiality Notice: This e-mail message (including any attached or
embedded documents) is intended for the exclusive and confidential use of the
individual or entity to which this message is addressed, and unless otherwise
expressly indicated, is confidential and privileged information of Rackspace.
Any dissemination, distribution or copying of the enclosed material is prohibited.
If you receive this transmission in error, please notify us immediately by e-mail
at abuse@rackspace.com, and delete the original message.
Your cooperation is appreciated.
</PRE></body>

</html>