Keith Tolbert
2008-02-24 02:47:24 UTC
Greetings,
This is my first posting to a Delphi newsgroup.
I first tried to connect to to OracleXE with Delphi 2005, using dbexpress
(on Vista), but failed. So I took an Advanced Delphi training class from
one of the top Delphi training consultants for one reason - to learn how to
connect D2005/dbx/Oracle XE/Vista. We spent several hours during the week
and we concluded that Vista was the reason. Then, when D2007 came out,
advertising it was 'Vista compatible,' I assumed that there would be no
problem. So, I purchased Delphi 2007 RAD Studio.Net. I am now $5,000
poorer and still cannot make the connection. I have seached Tamarack and
MERS and cannot see any answer there.
Has anyone heard of any developer connecting Delphi 2005, 2006, or 2007 to
Oracle XE, using dbexpress (on Vista)?
I am VERY disappointed and would really appreciate ANY help.
Here is the error I am receiving: "Failure to Connect: TNS:could not
reseolve the connect identifier specified."
Thank you so much,
Keith
===========================
Here is my context:
OS: Vista Ultimate
Delphi: 2007 Rad Studio
Database Server: Oracle 10g XE (client install not required for Local
XE)
Here are my revelant file locations:
TNSNAME.ORA: (there are two copies, in these locations)
C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN
C:\oraclexe\app\oracle
OCI.DLL: C:\oraclexe\app\oracle\product\10.2.0\server\BIN
SQLNET.ORA: C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN
C:\Program Files\CodeGear\RAD Studio\5.0\bin\dbxora30.dll
(I thought Delphi 2007 Rad Studio came with dbx4!?)
dbxdrivers.ini: C:\Users\Public\Documents\RAD Studio\dbExpress
dbxconnections.ini: C:\Users\Public\Documents\RAD Studio\dbExpress
Here is my database info:
Oracle XE is running:
This is verified by running the Oracle XE app and looking at the
data
Database: The sample database ('HR'), which comes with Oracle XE
Here is what I do:
1) Create VCL app
2) Add one form
3) Add TSQLConnection to form
4) Connection Builder: Create a Connection object:
1) Connection Name: ORATest4
1) DriverName: Oracle
2) Database: XE
3) User_Name: hr
4) Password: hr
5) BlobSize: -1
6) ErrorResourceFile:
7) Localecode: 0000
8) Oracle TransIsolation: ReadCommited
9) OS Authentication:False
10) Multiple Transaction: False
11) Trim Char: False
2) Oracle DriverName:
1) Library Name: dbexpora.dll
2) Vendor Name: oci.dll
Here is what I have done to try to fix this:
1) I made a copy of TNSNAMES.ORA and put it in in the '...
app\oracle\' directory
2) I have looked up ORA-12154 on the net and a web site said to add the
following to the SQLNET.ORA file
'NAMES.DIRECTORY_PATH = TNSNAMES'
3) The same site said there could be a syntax error in the TNSNAMES.ORA
file
However, I have not edited the TNSNAMES at all
Plus, the Oracle app, which I assume, also uses the TNSNAMES.ORA
file
to connect to the db, connects just fine
4) I have made sure all of the files above are not read only and there
is Full Access by all users and the system
This is my first posting to a Delphi newsgroup.
I first tried to connect to to OracleXE with Delphi 2005, using dbexpress
(on Vista), but failed. So I took an Advanced Delphi training class from
one of the top Delphi training consultants for one reason - to learn how to
connect D2005/dbx/Oracle XE/Vista. We spent several hours during the week
and we concluded that Vista was the reason. Then, when D2007 came out,
advertising it was 'Vista compatible,' I assumed that there would be no
problem. So, I purchased Delphi 2007 RAD Studio.Net. I am now $5,000
poorer and still cannot make the connection. I have seached Tamarack and
MERS and cannot see any answer there.
Has anyone heard of any developer connecting Delphi 2005, 2006, or 2007 to
Oracle XE, using dbexpress (on Vista)?
I am VERY disappointed and would really appreciate ANY help.
Here is the error I am receiving: "Failure to Connect: TNS:could not
reseolve the connect identifier specified."
Thank you so much,
Keith
===========================
Here is my context:
OS: Vista Ultimate
Delphi: 2007 Rad Studio
Database Server: Oracle 10g XE (client install not required for Local
XE)
Here are my revelant file locations:
TNSNAME.ORA: (there are two copies, in these locations)
C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN
C:\oraclexe\app\oracle
OCI.DLL: C:\oraclexe\app\oracle\product\10.2.0\server\BIN
SQLNET.ORA: C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN
C:\Program Files\CodeGear\RAD Studio\5.0\bin\dbxora30.dll
(I thought Delphi 2007 Rad Studio came with dbx4!?)
dbxdrivers.ini: C:\Users\Public\Documents\RAD Studio\dbExpress
dbxconnections.ini: C:\Users\Public\Documents\RAD Studio\dbExpress
Here is my database info:
Oracle XE is running:
This is verified by running the Oracle XE app and looking at the
data
Database: The sample database ('HR'), which comes with Oracle XE
Here is what I do:
1) Create VCL app
2) Add one form
3) Add TSQLConnection to form
4) Connection Builder: Create a Connection object:
1) Connection Name: ORATest4
1) DriverName: Oracle
2) Database: XE
3) User_Name: hr
4) Password: hr
5) BlobSize: -1
6) ErrorResourceFile:
7) Localecode: 0000
8) Oracle TransIsolation: ReadCommited
9) OS Authentication:False
10) Multiple Transaction: False
11) Trim Char: False
2) Oracle DriverName:
1) Library Name: dbexpora.dll
2) Vendor Name: oci.dll
Here is what I have done to try to fix this:
1) I made a copy of TNSNAMES.ORA and put it in in the '...
app\oracle\' directory
2) I have looked up ORA-12154 on the net and a web site said to add the
following to the SQLNET.ORA file
'NAMES.DIRECTORY_PATH = TNSNAMES'
3) The same site said there could be a syntax error in the TNSNAMES.ORA
file
However, I have not edited the TNSNAMES at all
Plus, the Oracle app, which I assume, also uses the TNSNAMES.ORA
file
to connect to the db, connects just fine
4) I have made sure all of the files above are not read only and there
is Full Access by all users and the system