ORA-12154 Error
ORA-12154 Error
Hi there
I am trying to connect to an Oracle 10 database (OCI mode) within Delphi and Lazarus and I get an ORA-12154 error.
my tnsoranames looks like:
ORCL.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.2)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl.world)
)
)
my connect string looks like:
vin_ws_dev/[email protected]:1521:sn=orcl.world
Any idea what could be wrong?
P.S:
- Other tools PL/SQL Developer, TOAD, etc... do connect well to Oracle.
- ODAC in direct mode does connect well.
Thanks in advance,
Peter
I am trying to connect to an Oracle 10 database (OCI mode) within Delphi and Lazarus and I get an ORA-12154 error.
my tnsoranames looks like:
ORCL.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.2)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl.world)
)
)
my connect string looks like:
vin_ws_dev/[email protected]:1521:sn=orcl.world
Any idea what could be wrong?
P.S:
- Other tools PL/SQL Developer, TOAD, etc... do connect well to Oracle.
- ODAC in direct mode does connect well.
Thanks in advance,
Peter
Hello,
To connect in the OCI mode, the connection string should look like:
vin_ws_dev/[email protected]
To connect in the OCI mode, the connection string should look like:
vin_ws_dev/[email protected]
Hi there
I tried the ConnectString you proposed, but it is not working eather -> Same error.
The test DFM:
- Windows 7
- Delphi 7
- ODAC 8.0.1
- ORACLE 10.2
- SQL*Net 10.2
Thanks & cheers,
Peter
I tried the ConnectString you proposed, but it is not working eather -> Same error.
The test DFM:
Code: Select all
object Form1: TForm1
Left = 368
Top = 124
Width = 1006
Height = 460
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object OraSession1: TOraSession
Username = 'vin_ws_dev'
Password = 'xxxxxx'
Server = 'orcl.world'
HomeName = 'OraClient10g_home1'
Left = 88
Top = 72
end
end- Delphi 7
- ODAC 8.0.1
- ORACLE 10.2
- SQL*Net 10.2
Thanks & cheers,
Peter
Hi there
I understand and I did/tried that -> See DFM extract above where I set:
That is the default Oracle client with the correct tnsnames.ora. It seems that this property HomeName has no effect.
-> Anyway, now that I deinstalled my local OracleXE it works
Thx & cheers,
Peter
I understand and I did/tried that -> See DFM extract above where I set:
Code: Select all
HomeName = 'OraClient10g_home1'-> Anyway, now that I deinstalled my local OracleXE it works
Thx & cheers,
Peter
Hello,
We've checked this situation once more, and if different Oracle clients are stated in the HomeName property, ODAC connects to a database using the corresponding client specified in HomeName. Maybe the tnsnames.ora file of the local client was setup incorrectly or several tnsnames.ora files were available.
We've checked this situation once more, and if different Oracle clients are stated in the HomeName property, ODAC connects to a database using the corresponding client specified in HomeName. Maybe the tnsnames.ora file of the local client was setup incorrectly or several tnsnames.ora files were available.