Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 059C59F9E3E for ; Mon, 24 Sep 2007 04:37:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 70008-07 for ; Mon, 24 Sep 2007 04:36:56 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by postgresql.org (Postfix) with ESMTP id E35669F9EFE for ; Mon, 24 Sep 2007 04:36:55 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id u77so3120463pyb for ; Mon, 24 Sep 2007 00:36:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=nJ3HVtihOj5BlaxFBu8+HUefXll4TeZrcflYr5AThWo=; b=VPlJD4c1FCSP8OMa4bh1T8VIz9WqgnWzNJVwtv1RKjwV94LmFdDHX887BTELvv7ZKy748wlwNmOkjiV7R/xAenO99ySWGahVMOZiJRtFQFeA9ce3ev6BLavaccLE3hWkrpmzx3MwRl0vKdKa3ilzTKw5O2tJs+HOy5QbiMPqz00= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=hXsB/+v1xmgNdnD2L04h8Cs6p7gIRyG5QFj8Y8hwk/mjwEqchKufswzOfhDy5aymdFRyFC+kw4FFJKtMyvw4T0xtiYlY5PiAPc1bOQ3M1hv2QGjuAaygxt0TmrXZq/RWv5ANEwV4CBZynIOmphW5xw27/J6+XER0Uf8iVBJsrqQ= Received: by 10.35.86.12 with SMTP id o12mr867797pyl.1190619414789; Mon, 24 Sep 2007 00:36:54 -0700 (PDT) Received: by 10.35.9.15 with HTTP; Mon, 24 Sep 2007 00:36:54 -0700 (PDT) Message-ID: <116685ec0709240036n23a11dfco5429c8704769cf5f@mail.gmail.com> Date: Mon, 24 Sep 2007 13:06:54 +0530 From: "Yogesh Arora" To: "Kevin Grittner" Subject: Re: Schedules Running Problem Cc: pgsql-admin@postgresql.org In-Reply-To: <116685ec0709232100k52274ff9g5b7acc46ee24635e@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23093_32458893.1190619414775" References: <1190205804.953274.158470@i13g2000prf.googlegroups.com> <46F268BF.EE98.0025.0@wicourts.gov> <116685ec0709202101o7142adabrc5fe851e54f6bca3@mail.gmail.com> <46F38B0F.EE98.0025.0@wicourts.gov> <116685ec0709232100k52274ff9g5b7acc46ee24635e@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/140 X-Sequence-Number: 26901 ------=_Part_23093_32458893.1190619414775 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks to all in the Group, Now my Schedule is Running..... The Steps i have taken are given below:- PgAgent for windows 1) Run PgAgent.sql script in maintenance database (Postgres database b= y default). 2) Install PgAgent service using the following command on command prompt - =95 "C:\Program Files\PostgreSQL\8.2\bin\pgAgent" INSTALL pgAgent -u postgres -p XXXX hostaddr=3D127.0.0.1 dbname=3Dpostgres user=3DPostgres if the above command didnot work suceefully then u can use the following Command:---- go to the Diectory path("C:\Program Files\PostgreSQL\8.2\bin") and run the Command pgAgent INSTALL pgAgent -l 2 -u postgres -p XXXX hostaddr=3D127.0.0.1dbname=3Dpostgres user=3Dpostgres password=3DXXXX =95 Replace the path of pgAgent if you are not using default installati= on path of Postgres =95 Replace XXXX with the password of OS User Postgres (One given while installing Postgres on windows) =95 dbname=3Dpostgres (change if your maintenance database is different= .) 3) Login using Postgres user account in windows. 4) Try to access pgAdmin III tool in that login. (These two steps are required to create pgpass.conf file under Postgres login account.) 5) Login back to your normal account. Edit the pgpass.conf File with the Following Line :---- localhost:PortNumber:myDBname:myUserName:myPassword *:*:*:*:Password in both the Account Postgres and your Local Login Account. The Pgpass.Conf File is located in %ApplicationData%/postgres/ 6) Start pgAgent service using the following command on command prompt =95 Net start pgAgent 7) Create a new job using PgAdmin III 8) Under step tab click Add to add new step. =95 Specify some name =95 Kind =96 SQL / Batch depending upon the kind of job to be performed= . =95 Database on which the job is to be performed. =95 Definition tab would contain a SQL command if kind selected is SQL =95 Definition tab would contain path of Batch file if kind selected is Batch 9) Under Schedule tab in Job window click Add to add new schedule for the job =95 Specify some name =95 Specify the start date & time =95 Specify the end date and time =95 Specify days or weekdays, months when the task needs to be performe= d in days tab =95 Specify time hours & Minutes when you want the task to be performed= . (Atleast One hour & minute to be selected.) =95 Specify exception if any when you do not want the task to be performed. 10) All set to work. On 9/24/07, Yogesh Arora wrote: > > Hello Kevin, > >>>>Exactly what are you doing to try to schedule it? > I am trying to schedule a database back up...using batc= h > File....but it is not happening then i tried to schedule a SQL Script for > creating a table on the Database. this is also not functioning.... > > >>>>How do you determine that it hasn't been scheduled? > When i tried to back up the back up file is not created and in > the case of Create table there is not any table in the database. > > > On 9/21/07, Kevin Grittner wrote: > > > > Please respond to the list as well as any individuals. This helps make > > the archive message thread useful for others who may have a similar > > problem, and it may draw advice from others who can help. > > > > >>> On Thu, Sep 20, 2007 at 11:01 PM, in message > > < 116685ec0709202101o7142adabrc5fe851e54f6bca3@mail.gmail.com>, "Yogesh > > Arora" > > wrote: > > > Hello Kevin, > > > First of all, Thanks for your response. > > > The answer to your Questions > > > > > >>>>>What operating system? > > > I am using the Windows 2003 operating System. > > >>>>>What did you do to try to schedule these things? > > > I have created a Batch File of a Command to take the Back of the > > Database > > > specified. When i run this file through command Prompt, its run > > > successfully. But when i try to schedule it., It's not get scheduled > > and > > > does not show any errors. > > > > Exactly what are you doing to try to schedule it? > > How do you determine that it hasn't been scheduled? > > > > > Then i tried to schedule the direct SQL command , but the same > > result, not > > > being scheduled. > > >>>>What were you expecting to see as a result? > > > Expecting the results of the above. > > >>>>>>>What did you see, including exact error text, if any? > > > There are not any Error to show...................................... > > > > > > The Query in Batch File is :- > > > > > > @echo off > > > "C:\Program FIles\PostgreSQL\8.2\bin\pg_dump" -U username -f > > > D:\test\test.sql -F p -C -d -D postgres > > > > > > The Password related info is being stored in the PgPass.conffile.....= .. > > > > > > > > > > > -- > Best Regards, > Yogesh Arora > Mobile: 09255123173 > > --=20 Best Regards, Yogesh Arora Asst. Software Engg. Daffodil Software Pvt. Ltd., Mobile: 09255123173 Web : www.daffodildb.com ------=_Part_23093_32458893.1190619414775 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks to all in the Group,

      &nbs= p;   Now my Schedule is Running.....

The Steps i have take= n are given below:-


 PgAgent for windows
1)  &= nbsp;   Run PgAgent.sql script in maintenance database (Postgres = database by
default).
2)      Install PgAgent service u= sing the following command on command prompt -
=95   &nbs= p; "C:\Program Files\PostgreSQL\8.2\bin\pgAgent" INSTALL pgAgent = -u postgres
-p XXXX hostaddr=3D 127.0.0.1 dbname=3Dpostgres user=3DPostgres

if the above command= didnot work suceefully then u can use the following Command:----

&n= bsp;go to the Diectory path("C:\Program Files\PostgreSQL\8.2\bin"= ) and run the Command=20
 
 pgAgent INSTALL pgAgent -l 2 -u postgres -p XXXX hostad= dr=3D127.0.0.1 dbname=3Dpostgres
 = user=3Dpostgres password=3DXXXX

=95     Replace = the path of pgAgent if you are not using default installation path
of Postgres
=95     Replace XXXX with the passwo= rd of OS User Postgres (One given while
installing Postgres on windows)<= br>=95     dbname=3Dpostgres (change if your maintenanc= e database is different.)
3)      Login using P= ostgres user account in windows.

4)      Try to access pgAdmin III tool in = that login. (These two steps are
required to create pgpass.conf file und= er Postgres login account.)

5)      Login b= ack to your normal account.

    Edit the=20 pgpass.conf File with the Following Line :----
   
&n= bsp;   localhost:PortNumber:myDBname:myUserName:myPassword
&nb= sp;  
     *:*:*:*:Password
 &nb= sp;  in both the Account Postgres and your Local Login Account. The Pg= pass.Conf File is located in
    %ApplicationData%/postgres/
<= br>6)      Start pgAgent service using the followi= ng command on command prompt
=95     Net start pgAge= nt

7)      Create a new job using PgAdmin I= II

8)      Under step tab click Add to add new step.<= br>=95     Specify some name
=95   &n= bsp; Kind =96 SQL / Batch depending upon the kind of job to be performed.=95     Database on which the job is to be performed.=
=95     Definition tab would contain a SQL command = if kind selected is SQL
=95     Definition tab would contain path of Batch = file if kind selected is Batch
9)      Under Sc= hedule tab in Job window click Add to add new schedule for the
job
= =95     Specify some name
=95    = ; Specify the start date & time
=95     Specify the end date and time
=95 &= nbsp;   Specify days or weekdays, months when the task needs to b= e performed in
days tab
=95     Specify time hour= s & Minutes when you want the task to be performed.
(Atleast One hou= r & minute to be selected.)
=95     Specify exception if any when you do not wa= nt the task to be performed.
10)     All set to work= .





On 9/24/07, Yogesh Arora < yogesh.arora.daffodil@gm= ail.com> wrote:
Hello Kevin,
 = >>>>Exactly what are you doing to try to schedule it?
      &nb= sp;           I am trying to schedule a database back up...using batch File....but it = is not happening then i tried to schedule a SQL Script for creating a table= on the Database. this is also not functioning....
      =            
>>>>How= do you determine that it hasn't been scheduled?
  =        
  When i tried to bac= k up the back up file is not created and in the case of Create table there = is not any table in the database.

  

On 9/21/07, Kevin Grittner < Kevin.Grittner@wicourts.gov > wrote:
Please respond to the list as well as any individuals.  This= helps make
the archive message thread useful for others who may have a similar
= problem, and it may draw advice from others who can help.

>>&g= t; On Thu, Sep 20, 2007 at 11:01 PM, in message
< 116685ec0709202101o7142adabrc5fe851e54f6bca3@mail.gmail.com>, "= Yogesh Arora"
<
--
Best Regards,
Yogesh Arora
Mobile: 09255123173




--
Best Regards,Yogesh Arora
Asst. Software Engg.
Daffodil Software Pvt. Ltd.,
Mo= bile: 09255123173
Web :  
www.daffodildb.com ------=_Part_23093_32458893.1190619414775--