Solved

sybase, installing job template failed

Posted on 2009-07-13
6
1,486 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 500 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 6

Accepted Solution

by:
IncisiveOne earned 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Find out what the Office 365 disclaimer function is, why you would use it and its limited ability to create Office 365 signatures.
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now