Print Thread
Page 1 of 2 1 2
Oracle 10 Express Edition. Error Ora-12154
#9148 03/28/07 01:39 PM
Joined: May 2002
Posts: 18
Valladolid
R
rdiez Offline OP
Member
OP Offline
Member
R
Joined: May 2002
Posts: 18
Valladolid
Do i need to install the client onto the same computer as Oracle Database 10g Express Edition to work fine whith DOA?

The TOracleSession connect but i have the error ORA-12154. Why?

Thanks and regards.

Re: Oracle 10 Express Edition. Error Ora-12154
#9149 03/28/07 09:53 PM
Joined: Aug 1999
Posts: 22,214
Member
Offline
Member
Joined: Aug 1999
Posts: 22,214
Can you connect to the same database from the same machine with SQL*Plus?


Marco Kalter
Allround Automations
Re: Oracle 10 Express Edition. Error Ora-12154
#9150 03/28/07 09:59 PM
Joined: May 2002
Posts: 18
Valladolid
R
rdiez Offline OP
Member
OP Offline
Member
R
Joined: May 2002
Posts: 18
Valladolid
yes perfectly.

Re: Oracle 10 Express Edition. Error Ora-12154
#9151 03/28/07 10:07 PM
Joined: May 2002
Posts: 18
Valladolid
R
rdiez Offline OP
Member
OP Offline
Member
R
Joined: May 2002
Posts: 18
Valladolid
This is the Oracle information :

-Oracle Database 10g Express Edition (Universal)
OracleXEUniv.exe (216,933,372 bytes)

-Oracle Database 10g Express Client
OracleXEClient.exe (30,943,220 bytes)

Client software to be installed on client systems for remotely accessing Oracle Database 10g Express Edition. You do not need to install the client onto the same computer as Oracle Database 10g Express Edition.

Re: Oracle 10 Express Edition. Error Ora-12154
#9152 03/28/07 11:02 PM
Joined: Mar 2007
Posts: 1
UK
N
Member
Offline
Member
N
Joined: Mar 2007
Posts: 1
UK
Did you have an earlier client installed on the same machine where you installed 10g express client? I had something similar recently. I had the 8i client installed on my laptop and installed 10g express server (including client) but forgetting to uninstall the 8i client first.

This left registry entries still pointing to the 8i client and uninstalling 8i didn't fix it. I ended up looking in the registry and replaced the 8i paths with the 10 XE versions. The problem was DOA was looking for the old 8i tnsnames.ora.

[HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE]
"inst_loc"="C:\\Program Files\\Oracle\\Inventory"
"ORACLE_HOME"="C:\\oraclexe\\app\\oracle\\product\\10.2.0\\server"
"ORACLE_HOME_NAME"="XE"
"API"="C:\\oraclexe\\app\\oracle\\product\\10.2.0\\server\\BIN"
"ORACLE_GROUP_NAME"="Oracle - XE"
"NLS_LANG"="NA"
@=""

Re: Oracle 10 Express Edition. Error Ora-12154
#9153 05/14/07 05:58 PM
Joined: Sep 2001
Posts: 13
North Wales, UK
M
Member
Offline
Member
M
Joined: Sep 2001
Posts: 13
North Wales, UK
I'm getting the same problem. I've succesfully managed to connect once before to 10g. The difference I've got this time is that (a) it's Windows 2000 and (b) it previously almost had Oracle 8i on, but the installation failed because the CPU was faster than it was expecting.

I've been through the regsitry and removed all Oracle8 references that I could find before installation.

The installation went fine, I've been able to run SqlPlus and IMP to load a database.

Any ideas ? You can save me a 700Km drive if you can spot whats wrong.

Thanks

Mark

Re: Oracle 10 Express Edition. Error Ora-12154
#9154 05/15/07 11:28 AM
Joined: Sep 2001
Posts: 13
North Wales, UK
M
Member
Offline
Member
M
Joined: Sep 2001
Posts: 13
North Wales, UK
As additional information the same application works ok with 10g XE on an XP machine, 8i on Win2000 machine.

The OracleAliasList has all the SIDs, the failure is at TOracleLogon.Execute.

Delphi7, Direct Oracle Access 4.0.7.1

Re: Oracle 10 Express Edition. Error Ora-12154
#9155 05/15/07 04:30 PM
Joined: Sep 2001
Posts: 13
North Wales, UK
M
Member
Offline
Member
M
Joined: Sep 2001
Posts: 13
North Wales, UK
Query Reporter also connects fine to the database. It's showing the tables, columns, allows me to pick the user name....

It's only my application which won't connect, and it has been rebuilt (cleared out all the DCUs) with the very latest Delphi 7 DOA...

Re: Oracle 10 Express Edition. Error Ora-12154
#9156 05/15/07 10:56 PM
Joined: Aug 1999
Posts: 22,214
Member
Offline
Member
Joined: Aug 1999
Posts: 22,214
You probably want to check the registry (hkey_local_machine\software\oracle) to verify if it has more than one Oracle Home. It may be that the Query Reporter selects a different home than your application.


Marco Kalter
Allround Automations
Re: Oracle 10 Express Edition. Error Ora-12154
#9157 05/16/07 08:41 AM
Joined: Sep 2001
Posts: 13
North Wales, UK
M
Member
Offline
Member
M
Joined: Sep 2001
Posts: 13
North Wales, UK
No. I've been through the registry very carefully. There are no references to the old Oracle path or version. I've also used a registry cleaner that removes any references to folders and files that no longer exist.

The code to connect to the database has been the same code since we implemented DOA around 6 years ago, and has happily worked through the different versions of Delphi, Windows and DOA.

(the name and password have been set at design time for K2.dbK2, but also tried explictly, DBSid is set from a list and has
the correct value K2.dbK2 is TOracleSession)

K2.dbK2.Connected := false;
K2.dbK2.LogonDatabase := DBSid;
Logon := TOracleLogon.Create(nil);
Logon.Session := K2.dbK2;
if not Logon.Execute then
begin
ok := false;
end
else if not K2.dbK2.Connected then
begin
ok := false;
end

Page 1 of 2 1 2

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.024s Queries: 14 (0.005s) Memory: 2.5597 MB (Peak: 3.0395 MB) Data Comp: Off Server Time: 2024-05-09 17:09:49 UTC
Valid HTML 5 and Valid CSS