SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
connect

 
Reply to topic    SoftTree Technologies Forum Index » DB Audit, DB Mail, DB Tools View previous topic
View next topic
connect
Author Message
Michael



Joined: 21 Aug 2001
Posts: 8

Post connect Reply with quote

Just installed DBMail, and I can not connect to the database. I can connect from SQLPlus, but not from the mail console. I am running Oracle 8.1.7 and trying to connect to a server running Oracle 8.1.7. The error message I am getting is :
ERROR (WEB) Database not available: ORA-12154: TNS: could not resolve service name
ERROR: Error connecting to WEB
My database alias is WEB, which is the name of the database, the database service, the name of trhe TNS entry on the local computer, and the name of the service that the listener is looking for.

Any ideas?

Tue Aug 21, 2001 4:30 pm View user's profile Send private message
Michael



Joined: 21 Aug 2001
Posts: 8

Post Re: connect Reply with quote

: Just installed DBMail, and I can not connect to the database. I can connect
: from SQLPlus, but not from the mail console. I am running Oracle 8.1.7 and
: trying to connect to a server running Oracle 8.1.7. The error message I am
: getting is : ERROR (WEB) Database not available: ORA-12154: TNS: could not
: resolve service name
: ERROR: Error connecting to WEB
: My database alias is WEB, which is the name of the database, the database
: service, the name of trhe TNS entry on the local computer, and the name of
: the service that the listener is looking for.

: Any ideas?
I failed to mention that I have tried to trace the connection through the DBMail tool. I can get a SQL trace file when connecting through SQLPlus, but there is not a trace file generated when only using DBMail.

Tue Aug 21, 2001 4:34 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6484

Post Re: connect Reply with quote

It looks like you have specified incorrect value for the "Server name"

Because the database server runs on the same computer you can either enter your computer name or leave the Server field blank.

: I failed to mention that I have tried to trace the connection through the
: DBMail tool. I can get a SQL trace file when connecting through SQLPlus,
: but there is not a trace file generated when only using DBMail.

Tue Aug 21, 2001 5:05 pm View user's profile Send private message
Michael



Joined: 21 Aug 2001
Posts: 8

Post Re: connect Reply with quote

: It looks like you have specified incorrect value for the "Server
: name"

: Because the database server runs on the same computer you can either enter
: your computer name or leave the Server field blank.

I want to connect to a remote UNIX database. In the TNSNames file, the server name is defined as an IP address. The Windows machine the DBMail tool is on does not see the server name, so I use the IP address for the server name in the TNSNames file.
Does the mail tool need to be on the same server as the database? If not, how do you specify a UNIX server's name. Do I need to add an entry for the lmhosts file to resolve the server name to the ip address?


Tue Aug 21, 2001 5:21 pm View user's profile Send private message
Michael



Joined: 21 Aug 2001
Posts: 8

Post Re: connect Reply with quote

: It looks like you have specified incorrect value for the "Server
: name"

: Because the database server runs on the same computer you can either enter
: your computer name or leave the Server field blank.

I want to connect to a remote UNIX database. In the TNSNames file, the server name is defined as an IP address. The Windows machine the DBMail tool is on does not see the server name, so I use the IP address for the server name in the TNSNames file.
Does the mail tool need to be on the same server as the database? If not, how do you specify a UNIX server's name. Do I need to add an entry for the lmhosts file to resolve the server name to the ip address?

Thanks for your quick help with this.
Michael

Tue Aug 21, 2001 5:21 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6484

Post Re: connect Reply with quote

No it does not have to be on the same machine.

You can enter your server IP address into the Server Name filed in DB Mail.
As long as you can connect from the SQL*Plus you should be able to connect from DB Mail, just specify the connection parameters. Note that the "Server" field in DB Mail matches the "Host String" field on the logon dialog in SQL*Plus

: I want to connect to a remote UNIX database. In the TNSNames file, the server
: name is defined as an IP address. The Windows machine the DBMail tool is
: on does not see the server name, so I use the IP address for the server
: name in the TNSNames file.
: Does the mail tool need to be on the same server as the database? If not, how
: do you specify a UNIX server's name. Do I need to add an entry for the
: lmhosts file to resolve the server name to the ip address?

: Thanks for your quick help with this.
: Michael

Tue Aug 21, 2001 6:11 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6484

Post Re: connect Reply with quote

Sorry, I meant to say the following

No it does not have to be on the same machine.

You can enter your server IP address into the Server Name field in DB Mail.
As long as you can connect from SQL*Plus you should be able to connect
from DB Mail, just specify the same connection parameters. Note that the "Server" field in DB Mail matches the "Host String" field on the logon dialog in SQL*Plus.

: No it does not have to be on the same machine.

: You can enter your server IP address into the Server Name filed in DB Mail.
: As long as you can connect from the SQL*Plus you should be able to connect
: from DB Mail, just specify the connection parameters. Note that the
: "Server" field in DB Mail matches the "Host String"
: field on the logon dialog in SQL*Plus

Tue Aug 21, 2001 7:47 pm View user's profile Send private message
Michael



Joined: 21 Aug 2001
Posts: 8

Post Re: connect Reply with quote

: Sorry, I meant to say the following

: No it does not have to be on the same machine.

: You can enter your server IP address into the Server Name field in DB Mail.
: As long as you can connect from SQL*Plus you should be able to connect
: from DB Mail, just specify the same connection parameters. Note that the
: "Server" field in DB Mail matches the "Host String"
: field on the logon dialog in SQL*Plus.

Thanks for your help. I am connected to the server now. The problem was that I was using the name/ip address of the database server, rather than the TNS Service name of the alias.
Thanks again.

Wed Aug 22, 2001 9:29 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » DB Audit, DB Mail, DB Tools All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.