Posts: 84
Threads: 23
Joined: Sep 2009
Reputation:
0
11-04-2009, 06:57 PM
Hello all,
How to write a script or database connectivity to connect oracle databse, can all please help me out to connect to the oracle database and retrieve data from database.
Thanks
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
11-18-2009, 11:07 AM
I think you have provided your host ip for data source value
you should give the 'Service Name' to connect to a oracle DB
Posts: 84
Threads: 23
Joined: Sep 2009
Reputation:
0
11-18-2009, 11:17 AM
Hi Saket,
Please correct me if i am wrong, i was given my server Ip on data source row is this ok or wrong, and can you please let me explain from where i can get Service name, please take in consider.
Thanks
Mahesh
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
11-18-2009, 11:24 AM
Server IP for data source is wrong.
In oracle, usually the database resides on a server and it uses a service name (tnsname) to connect to the DB server. the service name or the tnsname should be there on both i.e server and the client machine as well. Use NetConfiguration Assistant to create a tnsname.
let me know if you need more help on this.
Posts: 49
Threads: 0
Joined: Nov 2009
Reputation:
0
11-18-2009, 11:27 AM
Giveing server IP and is not a Wrong one.
If you connect oracle database, the service name should be configured in the 'tnsnames.ora' file. If you need more information on this, contact any developer or DBA who is using in oracle DB
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
11-18-2009, 11:31 AM
@ v_selvam - I was never able to connect to a oracle db with providing server IP. have you tried this ever?
would you like to share how to do this?
Posts: 84
Threads: 23
Joined: Sep 2009
Reputation:
0
11-18-2009, 12:14 PM
Hi Saket,
Sorry i was not replying, actually i had discussion with my DB admin , he said for getiing tnsname i need to install oracle client on my end, so i am installing that now, so if i will get problem i will just let you know, take in consider
Thanks
Mahesh