Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Tools > Re: Memory exce...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 2665 of 2833
Post > Topic >>

Re: Memory exception with connection to Oracle

by "frank.van.bortel@[EMAIL PROTECTED] " <frank.van.bortel@[EMAIL PROTECTED] > Nov 14, 2007 at 02:20 PM

On 14 nov, 07:52, vinod.kat...@[EMAIL PROTECTED]
 wrote:
> Hi,
>
> When i am trying to execute the below code, getting the memory
> exception " Unable to read memory". Can anybody suggest me of what can
> be the problem?
> Also the exception is only if a add a createconnection statement. For
> connection to oracle from iSQLPLus i am using the same usr/pass
> without hoststring and its working there.
>
I'm not familiar with how occi connects, but iSQLPlus runs against
a defined environment.

I suggest occi uses an tns alias to connect, so look into
your tnsnames.ora file (locted in %ORACLE_HOME\network\admin)
for one. An example of an entry is:

ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = your-hostname.is.here)(****T =
1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl.yourdb_domain.here)
    )
  )

in this example, the first "Orcl" would be the alias.
If it reads "orcl.whatever.com", use that.

hth, frank
 




 3 Posts in Topic:
Memory exception with connection to Oracle
vinod.katare@[EMAIL PROTE  2007-11-14 06:52:04 
Re: Memory exception with connection to Oracle
"frank.van.bortel@[E  2007-11-14 14:20:13 
Re: Memory exception with connection to Oracle
DA Morgan <damorgan@[E  2007-11-16 16:49:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 20:14:26 CST 2008.