Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

sybase, installing job template failed

Posted on 2009-07-13
6
Medium Priority
?
1,560 Views
Last Modified: 2012-05-07
Hi,
I have install and configure the sybase job scehduler, now I want to have the job template, everytime when I executed below command, I still see nothing in Job template folder in sybase central 4.3, do you guys have ny idea on error below ?

D:\sybase\ASE-15_0\jobscheduler\Templates\xml>installTemplateXml.bat TestX01 TestX01 5012 z4ki term#3 en



----------------------------------------------------------------
                  W E L C O M E   T O

  TemplateImport Utility [version 1.11]    Jul 13, 2009 4:32:08 PM

    Runtime Switches:

    TemplateImport Properties:

               Server_Machine_Name: TestX01
                       Server_Name: TestX01
                       Server_Port: 5012
     Template_Description_Override: Updates table or index statistics for all
user databases where criteria are met.
      Template_Group_Path_Override: Statistics Management
                 Template_Language: en
            Template_Name_Override: Sybase Server Update Statistics Template
         Template_Version_Override: 3.0
                 Template_XML_File: en\SybSvrUpdateStatsTemplate.xml
----------------------------------------------------------------
Reading XML File: en\SybSvrUpdateStatsTemplate.xml
XML File Read Completed Successfully
Creating Initial Template Record
SQLException: JZ006: Caught IOException: java.net.ConnectException: Connection refused: connect
Exception in thread "main" java.lang.NullPointerException
        at com.sybase.util.template.Connection.open(Connection.java:231)
        at com.sybase.util.template.TemplateBase.getConnection(TemplateBase.java:3234)
        at com.sybase.util.template.TemplateBase.execUpdate(TemplateBase.java:3151)
        at com.sybase.util.template.TemplateBase.createTemplate(TemplateBase.java:2240)
        at com.sybase.util.template.TemplateImport.importTemplate(TemplateImport.java:418)
        at com.sybase.util.template.TemplateImport.mainRoutine(TemplateImport.java:361)
        at com.sybase.util.template.TemplateImport.main(TemplateImport.java:349)
D:\sybase\ASE-15_0\jobscheduler\Templates\xml>


On checking, I'm trying to start my job scheduler but its failing <sp_js_wakeup start_js,1> I did the same from sybase central but still error.


00:02236:04888:2009/07/13 17:11:35.86 jamain  SYB_JSAGENT connected with Job Scheduler Task on port 5012
00:02236:04888:2009/07/13 17:11:35.86 jamain  SYB_JSAGENT waiting for connection
00:02236:04888:2009/07/13 17:11:36.75 jamain  Initializing SYB_JSAGENT
00:02236:04888:2009/07/13 17:11:36.75 jamain  Allocating list resources.
00:02236:04888:2009/07/13 17:11:36.75 jamain  Allocating queue resources.
00:02236:04888:2009/07/13 17:11:36.75 jamain  Allocating thread resources.
00:02236:04888:2009/07/13 17:11:36.75 jamain  Initializing connection pool.
00:02236:04888:2009/07/13 17:11:36.78 jamain  Client message: ct_connect(): protocol specific layer: external error: The attempt to connect to the server failed.
00:02236:04888:2009/07/13 17:11:36.78 jamain  ct_connect() failed.
00:02236:04888:2009/07/13 17:11:36.78 jamain  jsd_MakeConnection() failed
00:02236:04888:2009/07/13 17:11:36.78 jamain  jsj_AddConxs() failed
00:02236:04888:2009/07/13 17:11:36.78 jamain  Initialization failed initializing connection pool
0
Comment
Question by:motioneye
  • 3
  • 3
6 Comments
 
LVL 6

Assisted Solution

by:IncisiveOne
IncisiveOne earned 1000 total points
ID: 24844756
What is the connection string you are using, is the login and password valid.

Cheers
0
 

Author Comment

by:motioneye
ID: 24845643
Hi,
For the first issue is now working fine

installTemplateXml.bat TestX01 TestX01 5012 z4ki term#3 en -- 5012 for job scheduler

Now I change to db engine port which is 5000 and it worked to distribute the template

for the second issue with problem to start job scheduler, not sure which account I use to start it, but I did grant my self with privilleges as per documentation.
0
 

Author Comment

by:motioneye
ID: 24846891
I'm checking from log and found something here, what is actually user that we need here ??

00:00000:00013:2009/07/14 15:13:31.39 server  Error: 571, Severity: 16, State: 1
00:00000:00013:2009/07/14 15:13:31.39 server  Invalid user specified, password left unchanged.
00:00000:00013:2009/07/14 15:13:31.51 kernel  Job Scheduler Task lost its Agent connection (No error)
00:00000:00013:2009/07/14 15:13:37.51 kernel  Job Scheduler Task failed (re)connecting to its Agent (No error)
00:00000:00013:2009/07/14 15:13:37.51 kernel  Job Scheduler Task state set to stop
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 6

Accepted Solution

by:
IncisiveOne earned 1000 total points
ID: 24854805
1  Follow the documentation, it is slightly different for each version.

2  Personally, I prefer to add a login "JobScheduler"; give it the required privileges (roles); then always use that login for the JobScheduler to log in to whatever it needs, anywhere.  It shows up nicely in sp_who, etc.

Cheers

0
 

Author Comment

by:motioneye
ID: 24855605
Hi,
Yes just follow the documentation faithfully, but I confuse why still can't start the JS.. as u can see from screen shot document, its quite straight forward then the agent shud able to start before adding JS user..
sybase-doc.bmp
0
 
LVL 6

Expert Comment

by:IncisiveOne
ID: 24901353
Ok, that seems to be a new question.  Go ahead and ask.

Cheers
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Did you know there are services out there that can turn an Instagram feed into an RSS feed? I found some interesting exclusive Instagram content which I wanted to follow without signing up for yet another social media account. RSS to the rescue!
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question