ORA-01041: internal error. hostdef extension doesn't exist

Hi
Im writing a C Cartridge using Oracle Application Server 4.0.8 with Oracle database 8i on SUN Solaris 7.
While trying to execute any of my SQL Statements (using OCI) I got the error :
ORA-01041: internal error. hostdef extension doesn't exist.
The database and the Application Server
are placed on different nodes.
I tought it was a problem with the Listener of the database but the with sqlplus I succeeded to connect the database (from the different node).
What can be the problem and how can I solve it.
Thank you.
sharone
sharone_Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sudhi022299Commented:
What is the statement that ie causing the error ?
0
sharone_Author Commented:
an INSERT statement , but the problem is not with a specific statement.
Sharone
0
sharone_Author Commented:
an INSERT statement , but the problem is not with a specific statement.
Sharone
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

sudhi022299Commented:
well the documentation says this:

ORA-01041: internal error. HOSTDEF extension does not exist
Cause: The pointer to the HOSTDEF extension in HOSTDEF is null.
Action: Report as a bug to customer support.

Test another simple oci script and see whether you get the same error.

Regards,
Sudhi.
0
sharone_Author Commented:
an INSERT statement , but the problem is not with a specific statement.
Sharone
0
sharone_Author Commented:
Sudhi , I checked the documentation myself...
I get the same error for all my trials.
I think it has something to do with the different hosts of the databse and the OAS
0
sudhi022299Commented:
well i have an OAS and Database on different nodes. None of the guys had any problems with C cartdriges.
Lets see if someone else had similar problems.

Regards,
Sudhi.
0
sharone_Author Commented:
Sudhi , I checked the documentation myself...
I get the same error for all my trials.
I think it has something to do with the different hosts of the databse and the OAS
0
sharone_Author Commented:
Sudhi , I checked the documentation myself...
I get the same error for all my trials.
I think it has something to do with the different hosts of the databse and the OAS
0
sharone_Author Commented:
Sudhi , I checked the documentation myself...
I get the same error for all my trials.
I think it has something to do with the different hosts of the databse and the OAS
0
sudhi022299Commented:
whats happening here ? why 3 comments of the same.

0
sharone_Author Commented:
Adjusted points to 200
0
uri22Commented:
Sharone ,
In your cartridge there is a definition of the server you are working with (In the OCI Inirialize):
OCIServerAttach(srvhp,errhp,
          (CONST text *SERVER_NAME,    
          (sb4)strlen(SERVER_NAME),
          (ub4)OCI_DEFAULT) );
Where the server name is the name of the server you are working with.
(Better be in a define)
Hope this helps.
uri22
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.