Note that there are some explanatory texts on larger screens.

plurals
  1. POError when trying to call Oracle.DataAccess.Client.OracleDataAdapter.Fill()
    text
    copied!<p>The following error is logged when I try to call Fill(), and my powershell session crashes.</p> <blockquote> <p>Event Type: Error Event Source: .NET Runtime Description: .NET Runtime version 2.0.50727.3625 - Attempted to read or write protected memory. This is often an indication that other memory is corrupt.</p> </blockquote> <p>My script looks like:</p> <pre><code>$asm = [System.Reflection.Assembly]::LoadWithPartialName(“Oracle.DataAccess”) $userName = "foo" $tnsDbName = "bar" $pass = "foobar" $connectionString = "User Id=$userName;Password=$pass;Data Source=$tnsDbName" $q = @" SELECT * FROM blah WHERE blar = '5848752' "@ $cstr = $connectionString $conn= New-Object Oracle.DataAccess.Client.OracleConnection($cstr) $conn.open() $adapter = New-Object Oracle.DataAccess.Client.OracleDataAdapter($q,$conn) $dataset = New-Object Data.DataSet $adapter.Fill($dataset) $dataset.Tables[0] </code></pre> <p>If I only run up through the "$adapter =" line to see the state of things before a crash I have:</p> <pre><code>PS H:\&gt; $asm.GetName() Version Name ------- ---- 10.2.0.100 Oracle.DataAccess PS H:\&gt; $adapter.SelectCommand.Connection | fl ClientID,ConnectionTimeout,ServerVersion,State ClientId : ConnectionTimeout : 15 ServerVersion : 10.2.0.4.0 State : Open </code></pre> <p>I'm open to suggestions! There MAY have been an update to the ODP.NET done on my computer, but all other applications that use it (some simple winform apps) and Toad for Oracle are working without problems.</p>
 

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