SSIS error authenticating proxy with SQL Agent

Hello,
I'm a BI Analyst (not DBA) and I've asked our IT department for access to SSIS and SQL Server Agent to deploy packages to import data from Oracle nightly and transform it into a dataset in SQL Server 2012 using SSIS.
I've written several packages, deployed these to a SQL Server. These run fine when ran locally through Object Explorer > Integration Services Catalog > SSIDB by right clicking/execute. 
However our DBA has set up an SSIS Proxy that I can use in conjunction with SQL Server Agent to run these packages. However, when I try to use this proxy I get the error message:
'Unable to start execution of step 1 (reason: error authoenticating proxy ad\[name removed], system error. The username or password is incorrect. The step failed.'
I've tried packages with security for 'dontsavesensitive' and 'encryptsensitivewithuserkey' but neither work. I'd like to rule anything out that I'm not doing, however I think it is a permissions issue (happy to be proven wrong though). 
Can anyone offer suggestions for next steps please?
Thanks, 
ZP

Hi V, 
Thanks again. 
I went to the general tab and it is all greyed out and the credentials box is empty - though I can click on the button with three dots on. However, it just takes me to a credentials form but doesn't give me any options to select from. The box for SSIS is
ticked though. 
It is all greyed out - I presumed this is because I haven't got permissions to set what the proxy can do?
I tried select * from sys.credentials - didn't return any information (zero rows).
I'm (mostly!) convinced the packages are fine - I've created several simple packages to demonstrate the same thing to our DBA and these simple packages all run fine when executed directly through SSMS but never work through SQL Agent with SSIS Proxy. His
thinking is that its because I need to run them with security as 'dontsavesensitive' but these dont work either. 
Do you know if I should be asking for a specific permission/credential?
Thanks!

Similar Messages

  • Error authenticating proxy while running agent job

    I am trying to schedule a SSIS2014 package via SQL Server Agent job. Both SSIS and SSMS are running on my local machine in the same domain. I am running SSMS with the same user
    Domain\Admin which is the creator of the SSIS package. SSMS 32-Bit and SSIS 32-Bit are running on Windows 7 64-Bit machine. I can run the package within SSIS without problems.
    When I use a proxy account to run the job step, the following message occurs:
    Unable to start execution of step 1 (reason: Error authenticating proxy `Domain\Admin`, system error: Logon failure: unknown user name or bad password.). The step failed.
    The proxy account uses the credentials identity Domain\Admin. Since the password fields for credential properties in SSMS cannot be left blank, I typed any password although my corresponding windows account has no password. So as mentioned above
    it's the same user account that created the SSIS package since Domain\Admin is stated in the CreatorName property of the SSIS package.
    With this proxy, I tried to run SSIS jobs using the package ProtectionLevel's
    EncryptSensitiveWithUserKey and EncryptSensitiveWithPassword. Running the package manually within SSDT without problems, but from SSMS agent job the same error message appears. I tried the package sources "File System" and, after
    importing the package to MSDB, "SQL Server" and "SSIS Package Store". But exactly the same error message appears with each method.
    Task manager shows that SSMS is running in administrator mode. Using Windows Component Services I added DCOM permissions for
    Domain\Admin to start and activate "Microsoft SQL Server Integration Services 12.0" from local. But the same error message appears. So in my opinion it's a problem with SSMS user account permissions (???) but unfortunately I don't know
    what exactly to do here. I tried the following:
    In the system database MSDB (full path: Databases / System Databases / MSDB / Security / Logins) I assigned all available role memberships (Including db_ssisoperator, db_ssisltduser, db_ssisadmin) to
    Domain\Admin.
    In server security (full path: Security / Logins) I assigned all available server roles. In the tab User Mapping, I assigned the MSDB database.
    Still the same error message appears when I try to run the job. Does anybody have some ideas what I can try?

    If you use the Agent then set the package protection to "Rely on server".
    Then Domain/Admin is probably not an actual proxy but the account the Agent is running under, in this or even any case follow http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/ to create the
    proper proxy for the packages.
    Arthur My Blog

  • SSIS configuration Not Working With SQL agent Job

    Hi,
    I have created an SSIS configuration table in SQL Server where in I store all connection strings. This configuration is enabled within my package. To make even the DB where I store connection strings, I have an environment varibale. I thus have 2 configurations
    in the following order:
    1. env variable: Points to the DB where in my connection strings would be stored.
    2. SQl Server configuration:where I actually, store the connection strings.
    However , when I try to execute the package, it seems the SQL Server agent does not read from the Configuration tables at all.
    Can someone let me know how to enable this from within SQL Server agent? I do not store connection strings in a file, so I can't add any files within the configuration tab.
    Please let me know as to how do I enable configurations stored within SQL tables from SQL Server Agent jobs. I am using SQL Server 2008.

    Todd,
    Yes, I have enabled the configurations from within the package. When I open the package from BIDS, I do see information stating that package is trying to read from the environment variable and from the SQL Server.
    However, when the same package is used in a SQL Agent job, in the data sources tab, I see the connection string which I have set manually within the package, not the one which it should read from the Configuration table.
    E.g. in the design of my package, I am using Server A with Credential1, but within the Configuration table, against the same Connection, for the Same Server , I have stored Credential2.
    It should read the Credential2, as I have configuration enabled (as I can also verify from the messages within BIDS, upon opening the pacakge).
    However, it just reads the same Credential1, which has been supplied at design time.
    Not sure how can I access the Configuration stored within the SQL table from a SQL Agent job

  • *** ERROR = CONNECT failed with SQL error '12154' after Oracle Upgrade

    Hello Experts,
    Recently I upgraded my oracle database from 11.2.0.3 to 11.2.0.4.The upgrade completed successfully but I am unable to start the instance.
    R3trans -d failing with the error--
    OCIServerAttach(OCI_DEFAULT) failed with -1=OCI_ERROR
    OCIServerAttach(OCI_DEFAULT) failed with SQL error 12154:    
    ORA-12154: TNS:could not resolve the connect identifier specified
    OCIServerAttach(con=0, svc=069C1630): Error 12154 attaching new srv=069C17D0
    OCIHandleFree(con=0): Server handle srv=069C17D0 freed.          
    server_detach(con=0, svc=069C1630; srv=NULL, stale=2)            
    OCIHandleFree(con=0): Service svc=069C1630 freed (i=1).          
    *** ERROR => CONNECT failed with SQL error '12154'              
    -->oci_get_errmsg (con=0, rc=12154)                              
      OCIErrorGet() -> SQL error code: 12154; buflen=66            
    OCIErrorGet(): error text ->                                    
    ORA-12154: TNS:could not resolve the connect identifier specified
    ocica() -> SQL error code 12154,12154                          
      DbSlConnect(con=0) -> orc=12154, rc=99=DBSL_ERR_DB            
    ***LOG BY2=>sql error 12154  performing CON                      
    ***LOG BY0=>ORA-12154: TNS:could not resolve the connect identifier specified
    I have checked listener is up and running properly.Entry is maintained in tnsnames.ora.
    Also kernel is upgraded with latest path.Curent kernel version--742
    Please suggest on the mentioned error.I am attaching the logs here.Thanks in advance.
    Best Regards,
    Debaditya

    Hi Debadiya
    Kindly check this SAP Notes
    1204916 - Error: "ORA-12154" when connecting to Oracle from a Windows 64-bit platform
    2153975 - Database connectivity fails with ORA-12154
    556232 - Environment settings for R/3/Oracle on Windows
    443867 - ORA-12154 Collective SAP note
    BR
    SS

  • ERROR = CONNECT failed with sql error '1017'

    Hi,
    we are getting the following error when we run r3trans -dx.It is an windows system.
    Here i have attached the trans.log.
    4 ETW000 r3trans version 6.14 (release 700 - 16.10.08 - 16:26:00).
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 30.11.2010 - 08:58:12
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: r3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Tue Nov 30 08:58:14 2010                               0  0.000000
    4 ETW000  [dev trc     ,00000]  db_con_init called                                     0  0.000000
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                              0  0.000000
    4 ETW000  [dev trc     ,00000]  Loading DB library 'dboraslib.dll' ...                 0  0.000000
    4 ETW000  [dev trc     ,00000]  load shared library (dboraslib.dll), hdl 0          3857  0.003857
    4 ETW000  [dev trc     ,00000]      using "E:\usr\sap\TQ1\DVEBMGS10\exe\dboraslib.dll"
    4 ETW000                                                                              22  0.003879
    4 ETW000  [dev trc     ,00000]  Library 'dboraslib.dll' loaded                         9  0.003888
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library dboraslib.dll
    4 ETW000                                                                              18  0.003906
    4 ETW000  [dev trc     ,00000]  Version of 'dboraslib.dll' is "700.08", patchlevel (0.167)
    4 ETW000                                                                             143  0.004049
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library dboraslib.dll
    4 ETW000                                                                              16  0.004065
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library dboraslib.dll
    4 ETW000                                                                              25  0.004090
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              18  0.004108
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              29  0.004137
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         16  0.004153
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              15  0.004168
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              18  0.004186
    4 ETW000  [dev trc     ,00000]  CLIENT_ORACLE_HOME is not set as environment variable or
    4 ETW000                        DIR_CLIENT_ORAHOME is not set as profile parameter.
    4 ETW000                          assuming using instant client with unspecified location.
    4 ETW000                                                                             223  0.004409
    4 ETW000  [dev trc     ,00000]  Oracle Client Version: '10.2.0.2.0'                 6714  0.011123
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         23  0.011146
    4 ETW000  [dev trc     ,00000]  Client NLS settings: AMERICAN_AMERICA.WE8DEC        2397  0.013543
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPRP1's password           16  0.013559
    4 ETW000  [dev trc     ,00000]  Connecting as /@TQ1 on connection 0 (nls_hdl 0) ... (dbsl 700 030508)
    4 ETW000                                                                              22  0.013581
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              18  0.013599
    4 ETW000  [dev trc     ,00000]    0 WE8DEC                                                    1 0000000006E6C090 000000000032AFF0 0000000006E7E378
    4 ETW000                                                                             109  0.013708
    4 ETW000  [dev trc     ,00000]  Allocating service context handle for con_hdl=0     6894  0.020602
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      14  0.020616
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server TQ1 (con_hdl=0,svchp=0000000006E7E238,srvhp=0000000006E80608)
    4 ETW000                                                                              37  0.020653
    4 ETW000  [dev trc     ,00000]  Assigning server context 0000000006E80608 to service context 0000000006E7E238
    4 ETW000                                                                           21591  0.042244
    4 ETW000  [dev trc     ,00000]  Allocating user session handle                        32  0.042276
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=0000000006E7E238,srvhp=0000000006E80608,usrhp=000000000032B808)
    4 ETW000                                                                              32  0.042308
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1017
    4 ETW000                                                                           34551  0.076859
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1017'
    4 ETW000                                                                           23657  0.100516
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 1017         13  0.100529
    4 ETW000  [dev trc     ,00000]  Try to connect with default password                  12  0.100541
    4 ETW000  [dev trc     ,00000]  Connecting as SAPRP1/<pwd>@TQ1 on connection 0 (nls_hdl 0) ... (dbsl 700 030508)
    4 ETW000                                                                              17  0.100558
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              16  0.100574
    4 ETW000  [dev trc     ,00000]    0 WE8DEC                                                    1 0000000006E6C090 000000000032AFF0 0000000006E7E378
    4 ETW000                                                                              18  0.100592
    4 ETW000  [dev trc     ,00000]  Assigning username to user session 000000000032B808
    4 ETW000                                                                              15  0.100607
    4 ETW000  [dev trc     ,00000]  Assigning password to user session 000000000032B808
    4 ETW000                                                                              23  0.100630
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=0000000006E7E238,srvhp=0000000006E80608,usrhp=000000000032B808)
    4 ETW000                                                                              18  0.100648
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1017
    4 ETW000                                                                            3281  0.103929
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1017'
    4 ETW000                                                                              19  0.103948
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 1017         10  0.103958
    4 ETW000  [dblink      ,00431]  ***LOG BY2=>sql error 1017   performing CON [dblink#5 @ 431]
    4 ETW000                                                                           10634  0.114592
    4 ETW000  [dblink      ,00431]  ***LOG BY0=>ORA-01017: invalid username/password; logon denied [dblink#5 @ 431]
    4 ETW000                                                                              17  0.114609
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'TQ1'"

    Hi,
    LOG BY0=>ORA-01017: invalid username/password; logon denied
    You need to change your schema users password using "brconnect"
    Try as follow:
    1. Login as ora<sid>
    2. Use below command to reset SAPRP1 users password
    # brconnect  -u system -f chpass -o SAPRP1 -p <new password>
    If it still doesn't work... just set the password as "sap" (it is default password for schema user)
    # brconnect  -u system -f chpass -o SAPRP1 -p sap
    Hope, it helps you...
    Suggestions:
    Above thing will help even if OPS$ mechanism is not set correctly...
    But it is recommended to create and set permissions for OPS$ user. Else some BRTools function will produce errors...
    Relevant notes are already suggested by others...
    Please go through it word by word...
    Regards.
    Rajesh Narkhede

  • ERROR = CONNECT failed with sql error '12518'

    Hi All,
    OS Win 2003 - 32 Bit, Database - Oracle 10.2.0.2 , I am facing this from yesterday, suddenly SAP was done and when i am checking the logs it is not able to connect to the database.
    I have checked the services for oracle - service was down, i have started the oracleService<SID> and also i have restarted the listener.. after this when i am trying to start the SAP through MMC again the problem is face.. and also the oracle service is stopped. when i tried starting the database from OS level it was giving me error like
    ORA-24324: service handle not initialized
    ORA-24323: value not allowed
    ORA-03113: end-of-file on communication channel
    again the Oracle service is stopped i am not getting why the oracle service is stopping..
    dev_w*.log
    Thu Apr 09 10:33:50 2009
    M  calling db_connect ...
    C  Prepending D:\usr\sap\SID\DVEBMGS01\exe to Path.
    C  Oracle Client Version: '10.2.0.1.0'
    C  Client NLS settings: AMERICAN_AMERICA.UTF8
    C  Logon as OPS$-user to get SAPSR3's password
    C  Connecting as /@SID on connection 0 (nls_hdl 0) ... (dbsl 700 110706)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   05C84528   05C89AC4   05C8934C
    C  Attaching to DB Server SID (con_hdl=0,svchp=05C89298,svrhp=05C9AB64)

    C Thu Apr 09 10:33:51 2009
    C  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12518
    [dboci.c      4172]
    C  *** ERROR => CONNECT failed with sql error '12518'
    [dbsloci.c    10933]
    C  Try to connect with default password
    C  Connecting as SAPSR3/<pwd>@SM3 on connection 0 (nls_hdl 0) ... (dbsl 700 110706)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   05C84528   05C89AC4   05C8934C
    C  Detaching from DB Server (con_hdl=0,svchp=05C89298,srvhp=05C9AB64)
    C  Attaching to DB Server SID (con_hdl=0,svchp=05C89298,svrhp=05C9AB64)
    C  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12518
    [dboci.c      4172]
    C  *** ERROR => CONNECT failed with sql error '12518'
    [dbsloci.c    10933]
    B  ***LOG BY2=> sql error 12518  performing CON [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY0=> ORA-12518: TNS:listener could not hand off client connection [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY2=> sql error 12518  performing CON [dblink#3 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> ORA-12518: TNS:listener could not hand off client connection [dblink#3 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1411]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10156]

    M  Info for wp 16

    M    stat = 4
    M    reqtype = 6
    M    act_reqtype = -1
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    vm = V-1

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server hostname_SM3_01 on host tcs042619 (wp 16)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Thu Apr 09 10:33:51 2009
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10354
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   720]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  260]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc16 7988) [dpnttool.c   327]
    Any suggestions pls
    Mahesh

    Hi Rohit,
    when i check in the sqlnet.log
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SM2\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 04-SEP-2007 15:09:30
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: Message 12560 not found; No message file for product=NETWORK, facility=TNS
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Message 530 not found; No message file for product=NETWORK, facility=TNS
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 19:16:32
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 19:16:46
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 19:19:27
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 19:19:28
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 19:19:29
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 19:26:38
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12518, connecting to:
    (DESCRIPTION=(ADDRESS=(COMMUNITY=SAP.WORLD)(PROTOCOL=TCP)(HOST=hostname)(PORT=1527))(CONNECT_DATA=(SID=SID)(GLOBAL_NAME=SID.WORLD)(CID=(PROGRAM=D:\usr\sap\SID\SYS\exe\uc\NTI386\R3trans.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 20:35:23
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12564
        TNS-12564: TNS:connection refused
        ns secondary err code: 0
        nt main err code: 0
        nt secondary err code: 0
        nt OS err code: 0
    Fatal NI connect error 12518, connecting to:
    (DESCRIPTION=(ADDRESS=(COMMUNITY=SAP.WORLD)(PROTOCOL=TCP)(HOST=hostname)(PORT=1527))(CONNECT_DATA=(SID=SID)(GLOBAL_NAME=SID.WORLD)(CID=(PROGRAM=D:\usr\sap\SID\SYS\exe\uc\NTI386\R3trans.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 20:35:23
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12564
        TNS-12564: TNS:connection refused
        ns secondary err code: 0
        nt main err code: 0
        nt secondary err code: 0
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 09-APR-2009 09:15:43
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 09-APR-2009 09:17:28
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    This error occured when the oracle service was  not started..
    Mahesh..

  • Trans.log file showing  'ERROR = CONNECT failed with sql error 12541'

    Dear All
    We have upgraded our datatabse from Oracle 9.2.0.8 to Oracel 10.2.0.4 on our ECC 5.0 IS-AFS SAP system. When we check version from SQL, it's showing 10.2.0.4. That means database is successfully upgraded. Now, when we login through our <SID>adm user and checking R3trans -d, it is showing
    'This is R3trans version 6.13 (release 640 - 07.01.08 - 14:25:00).
    unicode enabled version
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'V
    AP'"
    R3trans finished (0012).'
    In the trans.log file it is showing,
    4 ETW000 R3trans version 6.13 (release 640 - 07.01.08 - 14:25:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 22.06.2009 - 11:56:40
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Mon Jun 22 11:56:40 2009                             110  0.000
    110
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    27  0.000
    137
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                             62  0.000
    199
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/VAP/SYS/exe/run/dboraslib.o' ...
    4 ETW000                                                                              77  0.000
    276
    4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/VAP/SYS/exe/run/dboraslib.o), hdl
    0
    4 ETW000                                                                            8142  0.008
    418
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/VAP/SYS/exe/run/dboraslib.o' loaded
    4 ETW000                                                                              43  0.008
    461
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/VAP/SYS/exe/r
    un/dboraslib.o
    4 ETW000                                                                              61  0.008
    522
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/VAP/SYS/exe/run/dboraslib.o' is "640.00",
    patchlevel (0.276)
    4 ETW000                                                                             421  0.008
    943
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/VAP/SYS/exe/
    run/dboraslib.o
    4 ETW000                                                                              46  0.008
    989
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/VAP/SYS/exe
    /run/dboraslib.o
    4 ETW000                                                                              75  0.009
    064
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              48  0.009
    112
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm =
    YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              53  0.009
    165
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         55  0.009
    220
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              53  0.009
    273
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm =
    YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              49  0.009
    322
    4 ETW000  [dev trc     ,00000]  Got ORACLE_HOME=/oracle/VAP/102_64 from environment
    4 ETW000                                                                             521  0.009
    843
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         84  0.009
    927
    4 ETW000  [dev trc     ,00000]  got NLS_LANG='AMERICAN_AMERICA.UTF8' from environment
    4 ETW000                                                                              65  0.009
    992
    4 ETW000  [dev trc     ,00000]  Client NLS settings: AMERICAN_AMERICA.UTF8          2033  0.012
    025
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPVAP's password           49  0.012
    074
    4 ETW000  [dev trc     ,00000]  Connecting as /@VAP on connection 0 (nls_hdl 0) ... (dbsl 640 1
    80309)
    4 ETW000                                                                              57  0.012
    131
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C
          EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              49  0.012
    180
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1
    0x1113a4400 0x1113b6b00 0x1113b63b8
    4 ETW000                                                                              58  0.012
    238
    4 ETW000  [dev trc     ,00000]  Allocating service context handle for con_hdl=0       48  0.012
    286
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      42  0.012
    328
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server VAP (con_hdl=0,svchp=0x1113b97d8,srvhp=0
    x1113b99f8)
    4 ETW000                                                                              95  0.012
    423
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12541
    4 ETW000                                                                            4556  0.016
    979
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error 12541.
    4 ETW000                                                                              59  0.017
    038
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 12541        39  0.017
    077
    4 ETW000  [dev trc     ,00000]  Try to connect with default password                 184  0.017
    261
    4 ETW000  [dev trc     ,00000]  Connecting as SAPVAP/<pwd>@VAP on connection 0 (nls_hdl 0) ...
    (dbsl 640 180309)
    4 ETW000                                                                              46  0.017
    307
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C
          EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              48  0.017
    355
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1
    0x1113a4400 0x1113b6b00 0x1113b63b8
    4 ETW000                                                                              48  0.017
    403
    4 ETW000  [dev trc     ,00000]  server_detach(con_hdl=0,stale=0,svrhp=0x1113b99f8)
    4 ETW000                                                                              54  0.017
    457
    4 ETW000  [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=0x1113b97d8,srvhp=0x1
    113b99f8)
    4 ETW000                                                                              54  0.017
    511
    4 ETW000  [dev trc     ,00000]  Deallocating server context handle 0x1113b99f8        42  0.017
    553
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      33  0.017
    586
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server VAP (con_hdl=0,svchp=0x1113b97d8,srvhp=0
    x1113b99f8)
    4 ETW000                                                                              54  0.017
    640
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12541
    4 ETW000                                                                            2547  0.020
    187
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error 12541.
    4 ETW000                                                                              45  0.020
    232
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 12541        28  0.020
    260
    4 ETW000  [dblink      ,00428]  ***LOG BY2=>sql error 12541  performing CON [dblink#3 @ 428]
    4 ETW000                                                                             220  0.020
    480
    4 ETW000  [dblink      ,00428]  ***LOG BY0=>ORA-12541: TNS:no listener [dblink#3 @ 428]
    4 ETW000                                                                              42  0.020
    522
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'V
    AP'"
    Checked the listener service. It is already started and status is OK. Please help.
    Regards
    Shashank Shekhar

    Hi
    Yes, I am trying it with orasid user also. There in trans.log file it is showing:
    '4 ETW000 R3trans version 6.13 (release 640 - 07.01.08 - 14:25:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 22.06.2009 - 15:54:42
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Mon Jun 22 15:54:42 2009                             109  0.000
    109
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    27  0.000
    136
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                             61  0.000
    197
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/VAP/SYS/exe/run/dboraslib.o' ...
    4 ETW000                                                                              79  0.000
    276
    4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/VAP/SYS/exe/run/dboraslib.o), hdl
    0
    4 ETW000                                                                            8174  0.008
    450
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/VAP/SYS/exe/run/dboraslib.o' loaded
    4 ETW000                                                                              43  0.008
    493
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/VAP/SYS/exe/r
    un/dboraslib.o
    4 ETW000                                                                              61  0.008
    554
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/VAP/SYS/exe/run/dboraslib.o' is "640.00",
    patchlevel (0.276)
    4 ETW000                                                                             430  0.008
    984
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/VAP/SYS/exe/
    run/dboraslib.o
    4 ETW000                                                                              46  0.009
    030
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/VAP/SYS/exe
    /run/dboraslib.o
    4 ETW000                                                                              76  0.009
    106
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              48  0.009
    154
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm =
    YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              53  0.009
    207
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         57  0.009
    264
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              54  0.009
    318
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm =
    YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              49  0.009
    367
    4 ETW000  [dev trc     ,00000]  Got ORACLE_HOME=/oracle/VAP/102_64 from environment
    4 ETW000                                                                             526  0.009
    893
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         84  0.009
    977
    4 ETW000  [dev trc     ,00000]  got NLS_LANG='AMERICAN_AMERICA.UTF8' from environment
    4 ETW000                                                                              64  0.010
    041
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIEnvCreate(mode=16384)' failed: rc = -
    1
    4 ETW000                                                                            1464  0.011
    505
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code -1           40  0.011
    545
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIErrorGet' failed: rc = -2
    4 ETW000                                                                              58  0.011
    603
    4 ETW000  [dblink      ,00428]  ***LOG BY2=>sql error -1     performing CON [dblink#3 @ 428]
    4 ETW000                                                                              74  0.011
    677
    4 ETW000  [dblink      ,00428]  ***LOG BY0=>Cannot get Oracle error text. [dblink#3 @ 428]
    4 ETW000                                                                              55  0.011
    732
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'V
    AP'"
    Someone suggested 'The solution is to download the new oracle client dll into the kernel'. Can anyone tell from where i can get the client dll for the kernel.
    Regards
    Shashank Shekhar

  • 7-zip SSIS task run with SQL agent gives "This operation requires an interactive window station" error.

    I have set up the 7-zip parameters to not require a response, and the process task object to have a "hidden" window.  This is also running with a proxy on the SQL agent.  Is there some other proxy setting, or package or job setting that
    needs to be done to let this run with the SQL agent?  It works fine running under BIDS.
    Thanks,
    John

    Actually you can implement zipping unzipping functionality without using any third party tools if you want. You'll just need to include j# redistributable functions for that in a script task.
    See
    http://microsoft-ssis.blogspot.in/2011/01/unzip-files-with-ssis.html 
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • SSIS package is failing in SQL agent job with webserviceTaskException: Service Description cannot be null

    Hi All
    we are using webservice task in our ssis package and the package is successful in SSDT . when we created SQL job using that package it is failing with  webserviceTaskException: Service Description cannot be null.
    we have given access to web service for ssis proxy account  and have access on wsdl file folder  and given access to temp folder .
    what would be the reason for the failure?
    Surendra Thota

    Hi Surenda,
    As per my understanding, the error message is too general. In order to troubleshoot this issue, we should view the detail error message about this job. For more details, please see:
    Troubleshooting Jobs
    SQL Server Agent Error Log
    Besides, since when you call a Microsoft SQL Server Integration Services (SSIS) package outside a SQL Server Agent job step, the SSIS package runs successfully. However, if you do not modify the SSIS package, then execute it via SQL Server Agent job step,
    it fails. The scenario always related to the user account that is used to run the package under SQL Server Agent. Please also verify that the account has access to the Web site or to the Web Service Description Language (WSDL) file for HTTP connection manager.
    References:
    SSIS package does not run when called from a SQL Server Agent job step
    Example using Web Services with SQL Server Integration Services
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Error Using New-WebServiceProxy cmdlet with SQL Agent Powershell Subsystem

    I created a powershell script to connect to SSRS via web service so I can cache reports in the database and expose them directly through our application. The script works fine when I run it through Powershell directly, but when I try running it through the
    SQL Agent Powershell subsystem I am getting a strange error:
    "A job step received an error at line 61 in a PowerShell script. The corresponding line is '$RS = New-WebServiceProxy -Class 'RS' -Namespace 'RS' -Uri $reportServerURI -UseDefaultCredential  '. Correct the script and reschedule the job. The error
    information returned by PowerShell is: 'Could not load file or assembly 'file:///C:\WINDOWS\TEMP\yfqiivtg.dll' or one of its dependencies. The system cannot find the file specified.  '.  Process Exit Code -1.  The step failed."
    I am using SQL Server 2014, SSRS 2014, Windows 8.1. The only difference I can think of is that when I run Powershell from the OS, I am using v 4.0 whereas when I run it from SQL Agent it loads v 2.0. My understanding is that v 2.0 supports the New-WebServiceProxy
    cmdlet, so I'm not convinced the version discrepancy is the culprit. Any ideas what might be causing this?
    On a side note, is there a way to have SQL Agent use Powershell 4.0 for the subsystem? v 2.0 feels a little dated for SQL Server 2014.

    Hi WilliamW,
    When creating a PowerShell job step, there is only one security context available, which is the "SQL Server Agent Service Account." That means that if you intend to execute PowerShell scripts from SQL Agent Job steps, the SQL Server Agent
    service account must have appropriate permissions.
    According to your error message, I recommend to check if the SQL Server Agent service account has access to the folder where the scripts live, as well as the folder C:\WINDOWS\TEMP.
    In addition, when we execute a PowerShell job step in SQL Server, SQL Server Agent subsystem run the sqlps utility, and the sqlps utility launches PowerShell 2.0 and imports the sqlps module. If you need to run a PowerShell v4.0 script from a SQL Server
    Agent job, you can create a proxy account to run the agent job which contains PowerShell script. For more details, please review this similar blog:
    Run a PowerShell v3 Script From a SQL Server Agent Job.
    Thanks,
    Lydia Zhang

  • Maintenance Cleanup Task fails when executed with SQL Agent but dont if executed manually

    Hello,
    I have a job that fails with the following error if exectued via the SQL Server Agent but not if executed manually.
    The error is:
     Error: 2014-03-31 21:30:14.89     Code: 0xC002F210     Source: Maintenance Cleanup Task Execute SQL Task     Description: Executing the query "EXECUTE master.dbo.xp_delete_file 0,N'\\erpfiles\b..."
    failed with the following error: "xp_delete_file() returned error 2, 'The system cannot find the file specified.'". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly,
    or connection not established correctly.  End Error
    I have checked and the user configured to run the SQL Agent has all needed accesses to the folder \\erpfiles\b....
    Have you an idea to help me go further in my troubleshooting ? Or have you an idea to solve my problem ?
    Thanks in advance

    I think reason for this is the service account having no permissions on the specified folder path. Thats when you get this error most of the times. The user logged in might have access but please keep in mind that sql agent job makes use of service account
    to execute the job which would still need access to the pat to delete the files
    What you can do is add a proxy account and give it access to folder path and use it to execute the job
    http://www.databasejournal.com/features/mssql/article.php/3789881/Proxy-Accounts-in-SQL-Server.htm
    Alternatively you can give the service account access to the folder path.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Error Establishing Socket with SQL Server 2000

    I have a java application that uses JDBC to connect to a source of data.
    The application has been installed on many platforms using many different data sources, but one combination has beaten me.
    I am using Windows Server 2003 and SQL Server 2000 Enterprise, when the application starts up it fails to connect to the database with the following message:
    [Microsoft][SQL Server 2000 Driver for JDBC] Error Establishing Socket
    I have looked at a lot of forums and tried many things but nothing has fixed the problem for me:
    To summarise:
    The URL I am using is jdbc:microsoft:sqlserver://locahost:1433
    I have also tried using the name of the machine and it's actual IP address
    I have checked that TCP/IP is enabled and using the correct port (1433)
    Both SQL Server and Windows authentication are enabled and I can connect using both method from ODBC
    I can connect to it and use it with c#.net, vb.net and ODBC from the same machine
    I have installed the latest SQL Server 2000 service pack
    The application works with SQL Server 2000 Developer on Windows XP
    If anyone has any other suggestions, I would love to hear from you.

    If you printed out the SQL state and error code that would be a bit more info:
    catch (SQLException e)
        e.printStackTrace();
        System.err.println("SQL state: " + e.getSQLState());
        System.err.println("SQL error: " + e.getErrorCode());
    }Maybe that will give you more detail as to exactly why this is happening.
    The only other thought I had was security. Maybe there's a permission to access the port that would have to be granted explicitly as part of M$'s new emphasis on security. You did say it was Windoze Server 2003. Maybe that's the difference between all the other installs and this one.
    No joy from me, sorry. - MOD

  • Issue with SQL Agent when install SCOM 2012 R2

    Hi all,
    i'm try to install SCOM 2012 R2 with all components (Mgmt Server, Operation Console, Web Console, Reporting Server)
    Everything is fine, except Reporting Server. I have attached the picture below
    I have also check the SQL Server Agent in SQL Server Configuration Manager. It has already started. But... i dont know why?
    Is there anyone know what wrong it is??

    Many thanks Gautam,
    i have checked again in Repoting Services Configuration Manager & change the database to the local SCOM
    Cause i'm using database for management server, dataware house on SCCM. So reporting service automatic set the database on SCCM also.... :(
    So now i will show everyone who try to install SCOM
    For the Management & DatawareHouse database --> you could install on any SQL Server (open port 1433)
    For the Reporting Services:
    On the local SCOM, install SQL Server with these components (SQL Engine: SQL Agent; SQL Reporting)
    After install SQL successfully, login to the Reporting Services Configuration Manager to set:
    First, create the new database on local SCOM
    Second, Web Service URL. login to the IIS to create self-signed certification for own SCOM. then turn back too Web Service URL to create SSL Certification
    Set SQL Agent service to Automatic, then start
    so, that's all. I'm crazy with this issue for a whole day :)

  • Authentication proxy with Apps !!!!

    How can the iPhone doesn't support authentication proxy access for 3rd party apps ??? does anyone know how to get over that ?

    @luvlabs - As much as one wouldn't think that the iPhone is the problem (or in my case, the iPad), I actually think it is.
    It appears that iOS does not have support for system-wide proxy settings. That is why I experience certain applications that ask for proxy settings, which have been coded into the application, and some applications just fail completely to access the internet under proxy authenticated networks, because developers have not included a system to ask for proxy settings for the respective application.
    I have a thread over in the iPad forums, which I hope will grab some answers. Feel free to keep an eye on it should someone provide an official answer to this issue:
    http://discussions.apple.com/thread.jspa?threadID=2807623&tstart=0
    MrP.

  • Custom Authentication Issue with Policy Agent

    Hi,
    I have a custom authentication module which is hosted on the BEA application server and I am trying to access through the policy agent on apache.
    I have set the following property in AMAgent.properties file
    com.sun.am.policy.am.loginURL= http://host:port/amserver/UI/Login
    So When the user requests a protected resource, the policy agent forwards the user to Identity Server with the module as CustomLoginModule. However, after this, authentication is succeed, user sesion is being created and I get the following error message in the agent log file.
    2004-10-19 16:20:26.908 Error 27620:e1140 PolicyEngine: am_policy_evaluate: InternalException in Service::construct_auth_svc with error message:Application authentication failed during service creation. and code:3
    2004-10-19 16:20:26.908 128 27620:e1140 RemoteLog: User unknown was denied access to http://hostname:port/weblogic/protapp/protected/a.html.
    2004-10-19 16:20:26.908 Error 27620:e1140 LogService: LogService::logMessage() loggedBy SSOTokenID is invalid.
    2004-10-19 16:20:26.909 Error 27620:e1140 all: am_log_vlog() failed with status AM_REMOTE_LOG_FAILURE.
    2004-10-19 16:20:26.909 -1 27620:e1140 PolicyAgent: URL Access Agent: access denied to unknown user
    The necessary policy object is already created in Identity Server. Please send your suggestions to fix this problem.
    Thanks
    Neeraj

    Hi Neeraj,
    I still have not been able to resolve that issue. Let me know If you find a solution for the same.
    Thanks,
    Srinivas

Maybe you are looking for