Jump to content

Php Script, Win Scheduled Tasks and ODBC link problem


Recommended Posts

I've been trying to set a php script to run at a given time with Windows Scheduled Tasks and it will work for most scripts including ones that connect with mysql_pconnect to a mysql database. The only one that doesnt work is the one I need to use.

 

It connects to an Oracle database through an ODBC connection. The script itself will work if launched from the browser, but I cannot get it to work from the command line or using a batch file run by Scheduled Tasks. It keeps giving me the TNS: Could not resolve service name error.

 

Any ideas on how to solve this?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.