after 10+ hours of trying I'd like to ask for your help.
I'm trying to connect to Oracle database "O90 Oracle 9i" in Powerbuilder 12.5.
My machine is a little bit messy regarding Oracle (I had couple if instances and I'm not able to perfectly remove them) so I set up a Virtual Machine to test it in clean environment.
That's what I do on the clean machine:
- Installed Powerbuilder 12.5
- Installed ERP software (where I try to connect). The ERP software distribution comes with \dbms\oracle\bin|network folders.
- Added "C:\facterp\dbms\oracle\bin" (one of the folders from point 2) to PATH variable
Now I'm able to connect to server with SQLTools (apparently it reads data from tnsnames.ora located in one of the folders from point 2). Inside the tnsnames.ora:
GERP_POLAND = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = server.ip.given.here)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = orcl)
However when trying to connect from Powerbuilder I get an error ORA-12154.
I thought that maybe PB uses a different tnsnames.ora file (if I remove or modify the file the error is the same). However there is no other file. From what I know Powerbuilder uses ORACLE_HOME variable for tnsnames.ora location. I added the variable but the issue remains the same.
My questions:
- Can it be a 32bit vs 64bit issue? I know I should install 32bit Oracle client to work with 32bit PB but I don't install any client in this case. I just use provided files. That's enough for SQLTools but not for PB.
- The TNS includes a line: (SERVICE_NAME = orcl). Does that mean I need to configure and use listener.ora?
I admit I haven't figured out the whole concept of different ways of connecting yet (flat ora file/services/ect.)
Exactly the same happens on my "messy" machine.
I'll very gretefull for showing me the direction here.
Thank you,
Kris.
An update:
I expanded the ORACLE_HOME variable from:
C:\facterp\dbms\oracle
to
C:\facterp\dbms\oracle\network\admin\oracle
Now Powerbuilder connects to the database but when I expand the "tables" treeview there are no tables. When I expand the "users" treeview it crashes whole application.
It seems logical that the change I implemented (longer ORACLE_HOME path) shouldn't work - there are some ORACLE_HOME% references in other places...