Note that there are some explanatory texts on larger screens.

plurals
  1. POColdFusion ORM can see table if using native Oracle driver, but not when using thin driver
    primarykey
    data
    text
    <p>On a development server, we have an <strong>Oracle11g</strong> database that's set up and works properly with <strong>ColdFusion ORM</strong> (ColdFusion 9.0.1) using the <strong>native</strong> Oracle driver.</p> <p>However, on the production system, the driver is not available because we are using the standard edition instead of the enterprise edition. On this server, we're using the <strong>Oracle thin</strong> driver by picking "Other" for the driver type in the ColdFusion administrator -> Data Sources configuration page. It connects properly to the database.</p> <p>However, after doing so, we now run into this problem whenever we try to run <code>ormReload()</code>:</p> <blockquote> <p>Table PRODUCTS defined for cfc model.Product does not exist in schema abc.</p> </blockquote> <p>However, we verified that nothing is wrong with the model and that doing <code>cfquery</code> pulls the data from the table just fine. It seems like only the ORM is not finding the table.</p> <p>The strange thing is that, if we rename the table and clone it:</p> <pre><code>alter table ABC.PRODUCTS rename to PRODUCTS2; create table ABC.PRODUCTS as select from ABC.PRODUCTS2; </code></pre> <p>This somehow makes CF ORM read the table properly, at least until the CF service is restarted, after which it will repeat the same error.</p> <p>Does anybody have any idea why this would be happening, and what we can do to fix it?</p> <p><strong>Edit:</strong> I managed to find a workaround by creating a synonym:</p> <pre><code>create synonym P for PRODUCTS; </code></pre> <p>And then configuring the persistent component to use the <code>P</code> synonym rather than the <code>PRODUCTS</code> table, and this seems to fix the issue. However, this doesn't really address the original problem. Anyone have any ideas?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload