SQL Update In Excel VB Script Fails

How do I perform an update statement in Excel using VB Script? I get a General ODBC Error when attempting to issue the SQL statement in VB Script below:
(Assume that all of the variables in the script below have already been defined.)
Sheets("Variables").Select
With ActiveSheet.QueryTables.Add(Connection:=Array(Array( _
"ODBC;DSN=ppg4;UID=apps;PWD=apps;DBQ=PPG4;DBA=W;APA=T;EXC=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=F;BAM=IfAllSuccessful;NUM" _
), Array("=NLS;DPM=F;MTS=T;MDI=F;CSR=F;FWC=F;FBS=64000;TLO=0;")), Destination _
:=Range("A2"))
.CommandText = Array( _
"UPDATE APPS.TEST_TITLE_TABLE TEST_TITLE_TABLE" _
"SET TEST_TITLE_TABLE.BUCKET='" & Bucket & "', TEST_TITLE_TABLE.SEVERITY='" & Severity & "' " _
"TEST_TITLE_TABLE.STATUS ='" & Status & "', TEST_TITLE_TABLE.SUB_DATE = '" & Actual_Date & "' " _
"TEST_TITLE_TABLE.TARAGET_DATE='" & Target_Date & "', TEST_TITLE_TABLE.USER_SUB='" & User_ID & "' " _
"TEST_TITLE_TABLE.LOAD = '" & Load & "', TEST_TITLE_TABLE.MR_SR = '" & MR_SR & "', TEST_TITLE_TABLE.NOTES = '" & Notes & "'" _
"WHERE TEST_TITLE_TABLE.RELEASE = '" & Release & "' AND TEST_TITLE_TABLE.FEATURE_NUM = '" & Feature & "'" _
"AND TEST_TITLE_TABLE.DOC_TITLE = '" & Doc_Title & "'" _
.Name = "Query from ppg4"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlOverwriteCells
.SavePassword = True
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.PreserveColumnInfo = True
.Refresh BackgroundQuery:=False
End With

How do I perform an update statement in Excel using VB Script? I get a General ODBC Error when attempting to issue the SQL statement in VB Script below:
(Assume that all of the variables in the script below have already been defined.)
Sheets("Variables").Select
With ActiveSheet.QueryTables.Add(Connection:=Array(Array( _
"ODBC;DSN=ppg4;UID=apps;PWD=apps;DBQ=PPG4;DBA=W;APA=T;EXC=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=F;BAM=IfAllSuccessful;NUM" _
), Array("=NLS;DPM=F;MTS=T;MDI=F;CSR=F;FWC=F;FBS=64000;TLO=0;")), Destination _
:=Range("A2"))
.CommandText = Array( _
"UPDATE APPS.TEST_TITLE_TABLE TEST_TITLE_TABLE" _
"SET TEST_TITLE_TABLE.BUCKET='" & Bucket & "', TEST_TITLE_TABLE.SEVERITY='" & Severity & "' " _
"TEST_TITLE_TABLE.STATUS ='" & Status & "', TEST_TITLE_TABLE.SUB_DATE = '" & Actual_Date & "' " _
"TEST_TITLE_TABLE.TARAGET_DATE='" & Target_Date & "', TEST_TITLE_TABLE.USER_SUB='" & User_ID & "' " _
"TEST_TITLE_TABLE.LOAD = '" & Load & "', TEST_TITLE_TABLE.MR_SR = '" & MR_SR & "', TEST_TITLE_TABLE.NOTES = '" & Notes & "'" _
"WHERE TEST_TITLE_TABLE.RELEASE = '" & Release & "' AND TEST_TITLE_TABLE.FEATURE_NUM = '" & Feature & "'" _
"AND TEST_TITLE_TABLE.DOC_TITLE = '" & Doc_Title & "'" _
.Name = "Query from ppg4"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlOverwriteCells
.SavePassword = True
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.PreserveColumnInfo = True
.Refresh BackgroundQuery:=False
End With

Similar Messages

  • I attempted to download a "critical" update for Excel, however, it failed.  When I try and open an excel doc I am not able to ~ can anyone help???

    Hello - I attempted to download a "critical" update for Excel, however, it failed.  I shut down the computer.  Now I am not able to access docs in excel either ones I have already created or create new ones.  I continue to get an error message.  Please help!!!!!  thanks!!

    I suspect you may want to try Microsoft's Mac Office support forums, since this appears to be an issue with their software. 
    What error message (if any) do you get if you try and start up Excel?
    However, if it happened to me I'd probably remove Office and then resintall it from the original disks.  That will take you back to the original shipping version of Office after which it should update you to the latest version.
    Most likely when Microsoft's update software failed it managed to corrupt the Excel program files in such a way that they are no longer usable.  So a resintallation of the program is likely the only real option to fix this one.

  • Getting error message when i am trying to update the excel file using script task in ssis package

    Hi Guys,
    I am getting error message when I am trying to update the excel. Please find the error messages as below
    Error at Update File [Update File]: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.
    Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Application' is not defined., ScriptMain.vb, 32, 32
    Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Workbook' is not defined., ScriptMain.vb, 33, 25
    Error at Update File [Update File]: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.
    Warning at Update File [Update File]: Found SQL Server Integration Services 2008 Script Task "ST_050fcae972904039b4f0fe59b7528ece" that requires migration!
    and the code that   I am using is
    Dell - Internal Use - Confidential
    ' Microsoft SQL Server Integration Services Script Task
    ' Write scripts using Microsoft Visual Basic
    ' The ScriptMain class is the entry point of the Script Task.
    Imports System
    Imports System.Data
    Imports System.Math
    Imports Microsoft.SqlServer.Dts.Runtime
    Imports Microsoft.Office.Interop.Excel
    <System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="",
    Description:="")> _
    <System.CLSCompliantAttribute(False)> _
    Partial
    Public Class ScriptMain
    Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    Enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    End Enum
    Public Sub Main()
            Dts.TaskResult = ScriptResults.Success
    'Dim proc As System.Diagnostics.Process
    'kill all instances of excel
    'For Each proc In System.Diagnostics.Process.GetProcessesByName("EXCEL")
    ' proc.Kill()
    'Next
    Dim excelnacomm As
    New Microsoft.Office.Interop.Excel.Application
    Dim wbnacomm As Microsoft.Office.Interop.Excel.Workbook
            wbnacomm = excelnacomm.Workbooks.Open("http://test.xlsx")(renamed
    the excel)
            wbnacomm.RefreshAll()
            wbnacomm.Save()
            wbnacomm.Close()
            excelnacomm.Quit()
            Runtime.InteropServices.Marshal.ReleaseComObject(excelnacomm)
    End Sub
    End
    Class
    Please let me know what could be the reason
    Smash126

    Download:
    Microsoft Office 2010: Primary Interop Assemblies Redistributable
    How to: Add or Remove References By Using the Add Reference Dialog Box  /  How to:
    Add and Remove References in Visual Studio (C#)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable
    Dear All,
    I am Automating STATSPACK reporting by modifying the sprepins.sql script.
    Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
    I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
    From the sprepins.sql script
    variable bid number;
    variable eid number;
    begin
    select begin_snap into :bid from db_snap;
    select end_snap into :eid from db_snap;
    end;
    This fails with the following error:
    DB Name DB Id Instance Inst Num Release Cluster Host
    RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    &lt;a string literal with character set specification&gt;
    &lt;a number&gt; &lt;a single-quoted SQL string&gt; pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev su
    But when I change the select statements below the report runs successfully.
    variable bid number;
    variable eid number;
    begin
    select '46' into :bid from db_snap;
    select '47' into :eid from db_snap;
    end;
    Even changing the select statements to:
    select TO_CHAR(begin_snap) into :bid from db_snap;
    select TO_CHAR(end_snap) into :eid from db_snap;
    Does not help.
    Please Help.
    TIA,
    Nischal

    Hi,
    could it be the begin_ and end_ Colums of your query?
    Seems SQL*PLUS hs parsing problems?
    try to fetch another column from that table
    and see if the error raises again.
    Karl

  • Copying SQL Script from Oracle SQL Developer into Excel with formatting

    I need to copy a SQL Script into Excel in order to develop some VBA code. Is there any nice way that I can copy SQL Script from Oracle SQL Developer into Excel and retain its formatting? I am a stickler for having legible, readable SQL and like to have all my columns lined up and aliases lined up. When we used to use SQL Navigator, the tab formatting seemed to copy and paste just fine. Now that we have migrated to Oracle SQL Developer, the formatting seems to get all messed up.
    And suggestions are greatly appreciated and Thanks in advance for your review and am hopeful for an answer.
    Thanks.
    PSULionRP

    I suppose you want a real tabulator instead of spaces. You can configure this in the preferences (SQL Formatter - Oracle). You have to apply it then to your existing code (e.g. CTRL-F7), but new code should get it right from the start.
    Hope that helps,
    K.

  • CJS-00084  SQL Statement or Script failed. Error Message: Executable

    Hello
    Hello
    I am facing one problem at the time of installing 4.7 IDES can you please guide me on that. Do I need to reinstall system ageing or it can be sort it out in this stage.
    ERROR AT THE TIME OF INSTALLING SAP 4.7 IDES ARE
    1. CJS-00084  SQL Statement or Script failed. Error Message: Executable
        C:\oracle\ora92/bin/sqlplus.exe returns 3.
    2. FJS-00012  Error when executing script.
    Complete error log :--
    INFO 2000-06-15 20:56:57
    Moving file C:/SAPinst ORACLE KERNEL/changed_init_ora_tmp.txt to: C:\oracle\ora92\database\initGOD.ora.
    INFO 2000-06-15 20:56:57
    Removing file C:/SAPinst ORACLE KERNEL/orig_init_ora_tmp.txt.
    INFO 2000-06-15 20:56:57
    Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
    INFO 2000-06-15 20:56:58
    See 'C:\oracle\ora92/bin/lsnrctl stat' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
    INFO 2000-06-15 20:56:58
    'C:\oracle\ora92/bin/lsnrctl stat' returned with '3'.
    INFO 2000-06-15 20:56:58
    Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
    INFO 2000-06-15 20:56:58
    See 'C:\oracle\ora92/bin/lsnrctl start' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
    INFO 2000-06-15 20:56:58
    'C:\oracle\ora92/bin/lsnrctl start' returned with '0'.
    INFO 2000-06-15 20:56:58
    Copying file D:/SAP_DUMP/CD1/KERNEL/NT/COMMON/INSTALL/ORADBUSR.SQL to: ./oradbusr.sql.
    INFO 2000-06-15 20:56:58
    Creating file C:\SAPinst ORACLE KERNEL\oradbusr.sql.
    INFO 2000-06-15 20:56:59
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 20:56:59
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 20:57:00
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 20:57:00
    FJS-00012  Error when executing script.
    INFO 2000-06-15 20:56:57
    Moving file C:/SAPinst ORACLE KERNEL/changed_init_ora_tmp.txt to: C:\oracle\ora92\database\initGOD.ora.
    INFO 2000-06-15 20:56:57
    Removing file C:/SAPinst ORACLE KERNEL/orig_init_ora_tmp.txt.
    INFO 2000-06-15 20:56:57
    Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
    INFO 2000-06-15 20:56:58
    See 'C:\oracle\ora92/bin/lsnrctl stat' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
    INFO 2000-06-15 20:56:58
    'C:\oracle\ora92/bin/lsnrctl stat' returned with '3'.
    INFO 2000-06-15 20:56:58
    Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
    INFO 2000-06-15 20:56:58
    See 'C:\oracle\ora92/bin/lsnrctl start' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
    INFO 2000-06-15 20:56:58
    'C:\oracle\ora92/bin/lsnrctl start' returned with '0'.
    INFO 2000-06-15 20:56:58
    Copying file D:/SAP_DUMP/CD1/KERNEL/NT/COMMON/INSTALL/ORADBUSR.SQL to: ./oradbusr.sql.
    INFO 2000-06-15 20:56:58
    Creating file C:\SAPinst ORACLE KERNEL\oradbusr.sql.
    INFO 2000-06-15 20:56:59
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 20:56:59
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 20:57:00
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 20:57:00
    FJS-00012  Error when executing script.
    INFO 2000-06-15 21:04:28
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 21:04:28
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 21:04:29
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 21:04:29
    FJS-00012  Error when executing script.
    INFO 2000-06-15 21:04:37
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 21:04:37
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 21:04:37
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 21:04:37
    FJS-00012  Error when executing script.
    INFO 2000-06-15 21:04:51
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 21:04:51
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 21:04:51
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 21:04:51
    FJS-00012  Error when executing script.
    WARNING 2000-06-15 21:07:00
    Error 2 (The system cannot find the file specified.
    ) in execution of a 'CreateProcess' function, line (276), with parameter (C:\oracle\ora92/bin/sqlplus.exe /NOLOG @ora_scr_tmp.sql).
    ERROR 2000-06-15 21:07:00
    MDB-06029  Caught exception while trying to start script executing application: [C:\oracle\ora92/bin/sqlplus.exe].
    ERROR 2000-06-15 21:07:00
    MDB-06030  A call to the system library failed. System error message: [No such file or directory].
    ERROR 2000-06-15 21:07:00
    MUT-02011  Internal error: A call to syslib failed. System error message: No such file or directory.
    ERROR 2000-06-15 21:07:00
    FJS-00012  Error when executing script.
    WARNING 2000-06-15 21:11:52
    Error 1326 (Logon failure: unknown user name or bad password.
    ) in execution of a 'LogonUser' function, line (537), with parameter (SAPTRANSHOST\godadm).
    ERROR 2000-06-15 21:11:52
    MDB-06029  Caught exception while trying to start script executing application: [C:\oracle\ora92/bin/sqlplus.exe].
    ERROR 2000-06-15 21:11:52
    MDB-06030  A call to the system library failed. System error message: [Unknown error].
    ERROR 2000-06-15 21:11:52
    MUT-02011  Internal error: A call to syslib failed. System error message: Unknown error.
    ERROR 2000-06-15 21:11:52
    FJS-00012  Error when executing script.
    INFO 2000-06-15 21:11:53
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 21:11:54
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 21:11:54
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 21:11:54
    FJS-00012  Error when executing script.
    INFO 2000-06-15 21:13:42
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 21:13:42
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 21:13:42
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 21:13:42
    FJS-00012  Error when executing script.
    INFO 2000-06-16 02:00:06
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-16 02:00:07
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-16 02:00:07
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-16 02:00:07
    FJS-00012  Error when executing script.
    INFO 2000-06-16 02:08:16
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-16 02:08:16
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-16 02:08:18
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-16 02:08:18
    FJS-00012  Error when executing script.
    INFO 2000-06-16 02:09:48
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-16 02:09:49
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-16 02:09:49
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-16 02:09:49
    FJS-00012  Error when executing script.
    INFO 2000-06-16 02:14:33
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-16 02:14:33
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-16 02:14:33
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-16 02:14:33
    FJS-00012  Error when executing script.

    > WARNING 2000-06-15 21:07:00
    > Error 2 (The system cannot find the file specified.
    > ) in execution of a 'CreateProcess' function, line
    > (276), with parameter
    > (C:\oracle\ora92/bin/sqlplus.exe /NOLOG
    > @ora_scr_tmp.sql).
    > ERROR 2000-06-15 21:07:00
    > MDB-06029  Caught exception while trying to start
    > script executing application:
    > [C:\oracle\ora92/bin/sqlplus.exe].
    > ERROR 2000-06-15 21:07:00
    > MDB-06030  A call to the system library failed.
    > System error message: [No such file or directory].
    > ERROR 2000-06-15 21:07:00
    > MUT-02011  Internal error: A call to syslib failed.
    > System error message: No such file or directory.
    > ERROR 2000-06-15 21:07:00
    > FJS-00012  Error when executing script.
    > WARNING 2000-06-15 21:11:52
    > Error 1326 (Logon failure: unknown user name or bad
    > password.
    > ) in execution of a 'LogonUser' function, line (537),
    > with parameter (SAPTRANSHOST\godadm).
    > ERROR 2000-06-15 21:11:52
    > MDB-06029  Caught exception while trying to start
    > script executing application:
    > [C:\oracle\ora92/bin/sqlplus.exe].
    is that file there (sqlplus)?
    as which user are you installing?
    Markus

  • SQL 4.7 Installation Error CJS-00084  SQL Statement or Script failed

    Dear SAP Gurus,
    pl do let me know hoe to resolve this error.......
    """CJS-00084  SQL Statement or Script failed"""
    my ora_sql_results file is like that..
    ===========================================
    2008-10-25, 16:14:44 SAPINST ORACLE start logging for
    connect  / as sysdba ;
    @@"C:\SAPinstORACLEKERNEL/oradbusr.sql"
    exit;
    Output of SQL executing program:
    SQL*Plus: Release 9.2.0.2.0 - Production on Sat Oct 25 16:14:44 2008
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected.
    Connected.
    old   3:    if substr(upper('&&1'),1,5) = 'SAPR3' then
    new   3:    if substr(upper('SAPERP'),1,5) = 'SAPR3' then
    old   6:           if upper('&&2') = 'NT' then
    new   6:           if upper('NT') = 'NT' then
    old  13:                :sDomain := upper('&&3');
    new  13:                :sDomain := upper('ERP');
    old  17:           :sSchema := upper('&&1');
    new  17:           :sSchema := upper('SAPERP');
    old  18:           if upper('&&2') = 'NT' then
    new  18:           if upper('NT') = 'NT' then
    old  25:                :sDomain := upper('&&3');
    new  25:                :sDomain := upper('ERP');
    using following Parameters:
    .  Oracle SID:                      ERP
    .  Oracle Version:                 9.2.0.2.1
    .  Parametervalue os_authent_prefix:   OPS$
    .  Database User (Schema):            SAPERP
    .  SAP R/3 Administrator:            OPS$ERP\ERPADM
    .  SAP R/3 Serviceuser:             OPS$ERP\SAPSERVICEERP
    O/S Message: No such file or directory
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.2.1 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.2.0 - Production
    SAPINST: End of output of SQL executing program F:\oracle\ora92/bin/sqlplus.exe.
    SAPINST found errors.
    SAPINST The current process environment may be found in sapinst_ora_environment.log.
    2008-10-25, 16:14:44 SAPINST ORACLE stop logging
    =======================================
    My SAPINST_ORA_ENVIRONMENT FIle is like that
    ==========================================
    2008-10-25, 16:10:43 SAPINST Current process environment:
    =::=::\
    =C:=C:\SAPinstORACLEKERNEL
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    APPDATA=C:\Documents and Settings\tanya\Application Data
    CLIENTNAME=Console
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=ERP
    ComSpec=C:\WINDOWS\system32\cmd.exe
    DBMS_TYPE=ORA
    DBS_ORA_SCHEMA=SAPERP
    dbs_ora_tnsname=ERP
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\tanya
    JAVA_HOME=C:\j2sdk1.4.2_09
    JSERV=F:\oracle\ora92/Apache/Jserv/conf
    LOGONSERVER=
    ERP
    NLS_LANG=AMERICAN_AMERICA.WE8DEC
    NUMBER_OF_PROCESSORS=2
    ORACLE_HOME=F:\oracle\ora92
    ORACLE_SID=ERP
    OS=Windows_NT
    Path=F:\oracle\ora92\bin;$PATH$
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=1706
    ProgramFiles=C:\Program Files
    SAPDATA_HOME=F:\oracle\ERP
    SAPEXE=F:\usr\sap\ERP\SYS\exe\run
    SAPLOCALHOST=ERP
    SAPSYSTEMNAME=ERP
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:\WINDOWS
    TEMP=C:\WINDOWS\TEMP
    TMP=C:\WINDOWS\TEMP
    USERDOMAIN=ERP
    USERNAME=tanya
    USERPROFILE=C:\Documents and Settings\tanya
    windir=C:\WINDOWS
    WV_GATEWAY_CFG=F:\oracle\ora92\Apache\modplsql\cfg\wdbsvr.app
    SAPINST: End of current process environment.
    =====================================
    REgards,
    Abhishek

    Thanks, but most of the people in the industry are still using the same, and it is working on their Machine
    As far as I remember 9.2.0.2 was never released, one needed to install at least 9.2.0.4 (or .5). That´s why the official installation guides tell you to install the latest patches PLUS the latest interim patches for the database.
    On top of that, Oracle 9.2 is out of extended support already, I would get a new installation CD set with Oracle 10g and use that for a new installation.
    why it is not working on my machine?
    Because those old database versions have many bugs that are fixed with patches - so why do you want to run such an old version if one KNOWS that it´s buggy and there are patches to fix those errors?
    secondly from where i will get the latest patches, as told by you. pl do let me know any website from where i can down load them
    Check
    Note 938986 - Oracle Database 9.2: Patches for 9.2.0
    Markus

  • SQL MP script failed to run

    Hi! I have installed the SQL MP 6.5.1.0 for SQL2005,SQL2008,SQL2012 and SQL2014. I know that I need to use one SQL RunAsAccount and add that account in the SQL RunAsProfiles to have the correct access to run the SCOM SQL scripts and get the correct
    monitoring. We have give this SQL RunAsAccount the "Local Administrator" and "sysadmin" rights on all instances through a group. This SQL servers also use UAC, then we tested to add this SQL RunAsAccount directly with sysadmin
    rights on one SQL servers instances instead through a group. But still the same problem... I haven't test the new SQL MP version 6.5.4.0 yet and I know that there is one fix for "Fixed
    Timeout error in CPU utilization monitoring scenario"
    The SQL RunAsAccount use "More Secure" and we are running the SQL RunAsProfiles target type against a Group with "Windows Computers" for all the SQL servers that we want to run this RunAsAccount against. We have the same problem
    when we tested to change the target type to "SQL Computers" 
    At most of our customer it works fine but at one customer we still get all this SQL monitor related errors:
    Power Shell Script failed to run (timeout 200 sec)
            - scriptname=CPUUsagePercentDataSource.ps1
            - workflow=Microsoft.SQLServer.2008DBEngine.ThreadsCountMonitor
    Operations Manager failed to start a process
           - command=GetSQL2008DBWinServStat.js
           - workflow=Microsoft.SQLServer.2008.Database.ServiceMonitor
    Operations Manager failed to start a process due to lack of Resources
           - command=GetSQL2012DBFreeSpace.vbs
    Operations Manager failed to run a WMI Query
             - workflow=Microsoft.SQLServer.2012.Database.ServiceMonitor
    Someone with any idea what's the problem can be?

    Hi,
    >At most of our customer it works fine but at one customer we still get all this SQL monitor related errors
    Do you mean only one SQL server has this error message poped out? If that is the case, then you may check whether the runas account configured has proper permissions on that server. You may add the account to local admin group.
    Please also go through the link below:
    http://blogs.technet.com/b/kevinholman/archive/2013/10/24/opsmgr-sql-mp-version-6-4-1-0-capabilities-and-configuration.aspx
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Getting error CJS-00084 SQL Statement or script failed while creating a DB

    Hi All,
    I ma trying to install IDES CRM 4.0 with Oracle DB and process went fine till the point of central instance installation. I am at the final step of installing the database instance and got an error while it is performing different steps of it.
    At the step CREATE ORACLE DATABASE, i got the below error message:
    CJS-00084  SQL statement or script failed. DIAGNOSIS: Error message: ORA-01092: ORACLE instance terminated. Disconnection forced
    Can someone help me to resolve this?
    Thanks
    Vijay

    -> did you follow all steps correctly? for example did you say NO when runinstaller asks for database creation?
    -> which operating system are you on?
    GreetZ, AH

  • Intermittent "Power Shell Script failed to run" after installing SQL MP 6.5.4.0

    We recently installed the SQL MP.  One thing I am struggling with is this "Power Shell Script failed to run" that occasionally comes up, but, not always on the same server, and not always at the same time. 
    It says it ran past the configured timeout of 300 seconds. 
    The post that seemed to have me on the right track was
    https://social.technet.microsoft.com/Forums/en-US/c539a55d-dd48-438f-b7d5-06ed2cecf6e9/powershell-script-failed-to-run-alerts-from-sql-management-pack-6410?forum=operationsmanagergeneral
    However, even after getting one of the several scripts that have been generating the error, out of the extract management pack, it has parameters that need to be fed to it that I have no idea what they are....
    Example.  ActiveRequestsDataSource.ps1 requires $computername, $connectionstring, $tcpport, $sql_wmi_namespace, and $servicename. 
    The computername is easy enough...  so is tcpport.  but, the others... not so much. 
    I am fairly certain I will be able to run these manually, if I just knew the parameters...  I am also fairly certain we are getting these because at the time of the check, resources on that server are tied up for one reason or another. 
    Can someone please help?  This is killing me. 

    Hi,
    As this issue happens after you installing SQL MP, so from my point of view, it seems like caused by the runas account for the SQL MP is not configured well, I would like to suggest you follow the article below to configure runas account for the management
    pack:
    Configuring Run As Accounts and Profiles in OpsMgr – A SQL Management Pack Example
    http://blogs.technet.com/b/kevinholman/archive/2010/09/08/configuring-run-as-accounts-and-profiles-in-r2-a-sql-management-pack-example.aspx
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • SCOM 2012 SP1 - PowerShell Script failed to run - 3 alerts appear after every reboot of the SCOM Server

    Brand new SCOM 2012 SP1 install with Update Rollup 1 applied
    Single server, local SQL install, SQL Server 2012 SP1
    Hyper-V VM running on Server 2012.  VM has 8GB Ram, single vCPU
    Going through initial management pack importing and configuration, at this point I have the Windows Server 2012 and SQL 2012 MP's installed.
    See screenshot
    http://i.imgur.com/l0Molh1.png
    I am getting the following alerts in my SCOM console and cannot find a resolution to fix the issue.  I don't want to set an override, as an override will prevent the PowerShell alert in other instances, where I might want to receive an alert.
    Looking at the alert description, it states "The Data Access service is either not running or not yet initialized"
    The SCOM Console launches and responds fine, and I get no other errors.  I check the Data Access service and it is online.  I have left the system alone for a couple of hours and no other errors.  I then closed those alerts and restarted the
    server, and they came right back in, so I know that this is something that is happening at either server startup of during the start of the SCOM services.
    Is it possible that SCOM is trying to execute these scripts and the Data Access service has not come online yet?
    Has anyone else come across this before?

    Please try the method in the following thread:
    Note: As there is operations related to Registry, please perform a backup before doing this.
    OpsMgr 2012 - Power Shell Script failed to run 
    http://social.technet.microsoft.com/Forums/de-DE/systemcenterde/thread/4be37f8d-1e7b-450c-8cb9-f1e95f3b2bd0/
    Thanks.
    Nicholas Li
    TechNet Community Support

  • Start up script fails; Unable to boot...Please, Help.

    This is my first major problem that I have had with this computer. It has been running fine until this past Sunday night. I was running AOL, Firefox & iTunes. The computer was running slow and iTunes was skipping frequently. I rebooted and resumed my activities only to have the same problems and the computer booted slower than usual. I closed all my applications and rebooted once again. Then, I ran Disk Utility had used Verify Disk. It found an error on my system volume stating an incorrect block count in one sector and referenced a file cache_003, all other volumes passed. Disk Utility was unable to repair the volume. Repair Disk ran slow. I did a search for the file cache_003 and discovered that it was part of a Netscape profile back up on a different partition. I deleted the profile and used Disk Utility again. This time, the system volume passed and a different volume failed due to incorrect block size, Repair Disk failed. The next time I tried to boot the computer the gray screen with apple and loading indicator came up and stayed for several minutes followed by a blue screen with loading indicator for several minutes and stayed blue for nearly 40 minutes. Eventually, the screen went black and displayed that the start up script failed. Here is some of what was displayed.
    Darwin/BSD(Computer Name-Computer.local)(console)
    System Starter[35]
    login date&time Internet Sharing[96]:Libinfo[Socket_open():2318]connect():2318]connect:()connection refused (This line repeated continuously)
    I am able to input commands at this stage but I am not knowledgeable enough to know what to do.
    When I push the power button to turn it off the computer beeps once and the led light flashes three times and turns off.
    Each time when I attempt to boot either into Safe Mode or from the Software Install DVD I encounter the same problem.
    Now, Monday night by chance on another boot attempt the computer started up although it took about 20-30 minutes. It was missing one volume which showed up in Disk Utility under a different name. While I had the computer up I backed up what I could on the volumes that mounted. One file I was unable to burn using Toast 9 due to a data fork error. The computer eventually froze during my activities and since I have had no luck at my start up attempts and have had the same problem. Luckily, I was able to back up everything I needed with the exception of what was on the AWOL volume.
    The last thing I had installed recently was the latest Security Update which went fine and was two days before the trouble started.
    I am at a loss for what to do next. I would like to retrieve the files on that one volume but at this point if I can start up I would just like to reformat and install the OS.
    Any help with this problem would be much appreciated. Thank you.

    Well, originally when I ran Disk Utility, although it performed slower than usaual it found the error as previously mentioned and was unable to Repair Volume. As to using the Hardware Disc & Install Discs(original & Tiger) the computer failed to boot although you could hear the disc spinnning for awhile. In both and every instance regardless of any or no disc, the computer starts the boot process and you see the gray screen with white apple and loading indicator for about 3 minutes then it switches to the blue screen with loading indicator. After quite some time the loading indicator goes away and it's just a blue screen for nearly a half-hour followed by a black screen which starts the above prompt. I can post all of what that said later as I have written all of it down at home, a portion of it is in my original post. The start up chime doesn't sound at all. I do get a tone and flashing LED lights when I hold the power button down to turn it off after the above described boot process. There is not much I can do except try and try again. I may need to get a new hard drive but I would like to resolve it without doing so if possible. When trying to boot from both discs I was holding down the C key as directed and I have tried just letting the computer boot with disc in drive without any key interaction.

  • Error while exporting data from sql server to excel

    Hi,
    I am trying to export data from sql server to excel.
    The query that I used is s follows
    INSERT INTO OPENROWSET( 'Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\Folder1\abc.xls','select * from [Sheet1$A1:IV65000]')
    select 
    column1,column2.... from Table1
    I get the following error message while doing so..
    String or binary data would be truncated.
    The statement has been terminated.
    One of the column's holds data more than 225 characters.
    What is the way to correct this, i want the whole data of the colum in the excel sheet.

    I haven't had great luck with the INSERT INTO OPENROWSET method.  Can you try one of the many samples from one of these 3 links?
    http://www.excel-sql-server.com/excel-sql-server-import-export-using-vba.htm#Excel%20Data%20Export%20to%20SQL%20Server%20Test%20Code 
    http://www.mssqltips.com/sqlservertip/1540/insert-update-or-delete-data-in-sql-server-from-excel/
    https://www.simple-talk.com/sql/database-administration/getting-data-between-excel-and-sql-server-using-odbc--/
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • SSIS 2012: SSIS Error Code "Excel Connection Manager" failed with error code 0xC0202009.

    Hi,
    This is kind of weird issue that I am experiencing with excel connection manager in SSIS 2012. This issue occurs sometimes but when I close and re-open SSDT (SQL Server Data Tools - newer BIDS) then this issues goes off temporarily.
    Just FYI, through SSDT environment I executed the package successfully with both settings Run64bit runtime setting to Yes and No when error does not occur.
    So far I have installed
    http://www.microsoft.com/en-us/download/details.aspx?id=13255 (Microsoft Access Database Engine 2010 Redistributable).
    I still remember for older versions of SQL Server (2005 & 2008) that I have executed Excel connection SSIS packages with Run64bit runtime = false i.e. in 32-bit mode. As far as I know I think Excel 64-bit issue has been resolved with SQL Server
    2012 release.
    Here is the detail of error message:
    TITLE: Package Validation Error
    Package Validation Error
    ADDITIONAL INFORMATION:
    Error at Data Flow Task [Excel Source [2]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection
    Manager" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    Error at Data Flow Task [SSIS.Pipeline]: Excel Source failed validation and returned error code 0xC020801C.
    Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.
    Error at Data Flow Task: There were errors during task validation.
    Error at Package [Connection manager "Excel Connection Manager"]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft Access Database Engine"  Hresult: 0x80004005  Description: "Unspecified error".
     (Microsoft.DataTransformationServices.VsIntegration)
    Here are my environment details:
    SQL Server 2012 {Microsoft SQL Server 2012 (SP1) - 11.0.3368.0 (X64) } , Excel 2010 (32-bit). I am developing SSIS code on Virtual desktops with Windows 7 32-bit OS.
    Also it occurred to me that since Virtual Desktops are on Shared Infrastructure, the source files and SSIS packages (code) can be on Shared drives for e.g. \\<Corpnet>\userdata\<Corp_Users_Grp>\<Username>\Visual Studio 2010\Projects\Integration
    Services Project2\Integration Services Project2\Package.dtsx.
    Does this kind of Shared drives have any impact to give this issue?
    Thanks in advance!
    Ketan
    P.S.: I had look at this forum question -->
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/903bbe1d-e070-4c43-9d3b-0a5193550029/64bit-error-in-excel-connection-manager-in-ssis

    Hi Arthur,
    Thanks for your response.
    Yes, it looks like SSIS still has bunch of issues with Excel files like as follows:
    1) Some times excel source files cannot be parsed by excel source connection manager.
    2) For derive column conversion, we can't replace the existing column. rather, we have to add the derived column as " add as new column" which is tough to manage  while destination mapping.
    3) If an column in excel contains a data which is not of the data type assigned for the column in excel, the excel source reads that data as "null". For the same, we can't validate the data and redirect the erroneous data in reject file.  <-- For
    this we tried IMEX setting also
    4) In multi-tab/sheet excel file, excel source is unable to detect a tab and identify the metadata of the excel.
    I am also checking Microsoft connect for Excel issues with SSIS 2012(https://connect.microsoft.com/SQLServer/SearchResults.aspx?SearchQuery=excel#&&PageIndex=22
    As worst case scenario, I am thinking of converting Excel to CSV file or Flat text file. (http://www.mssqltips.com/sqlservertip/2772/importing-data-from-excel-using-ssis--part-2/).
    Do you think it is advisable to convert Excel into CSV or Flat file.
    Thanks,
    Ketan

  • AcquireConnection method call to the connection manager Excel connection Manager failed

    I used VS Studio 2008 (BIDS version 10.50.2500.0) on an WinXp machine (v 5.1.2600 SP3 Build 2600) to create a package that writes multiple query results to different tabbed sheets of a single excel spreadsheet. The package was working just fine and has run
    successfully multiple times, but all of a sudden when opening the project, every single Data Flow task with an Excel Connection Manager displayed error icons. Each raises the following error message when attempting to open the Advanced Editor:
    SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005 Description: "Unspecified error". Error at DataFlow task name: SSIS error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method
    call to the connection manager Excel connection Manager failed with error code 0xC0202009. There may be error messages posted before this with more information on why the Acquire Connection method call failed. Exception from HRESULT: 0Xc020801c (Microsoft.SQlServer.DTSPipelineWrap)
    From the time I created the original package (when it worked fine) until now:
     1) I have been using the same computer, the same login account and the same permissions.
     2) I have been writing to the same (32 bit) 2010 Excel file (which I created) in a folder on my local machine.
     3) The filename and location have not changed; a template file is used each time to move and overwrite the previous file. Both are in the same locations.
     4) I can independently open the target Excel file and the template Excel files with no errors.
     6) The ConnectionString has not changed. The Connnection String I am using is
      Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Conversion\Conversion\Results_dt01.xlsx;Extended Properties="EXCEL 12.0 XML;HDR=YES;".
     7) Run64BitRuntime is set to False.
    8)  Delay Validation is set to true
    9) This is not running under a SQL job  
    10) There are no child packages being run
    I CAN create a NEW Excel Connection Manager, assigning it the exact same target Excel spreadsheet, successfully, but when I attempt to assign it to the Data Flow destination this error occurs:
    "Test connection failed because of an error in initializing provider. Unspecified error."
    Thinking that the driver might be corrupt, I opened a second SSIS package, which also uses the Excel Connection Manager (same driver) and this package continues to work fine on the same workstation with no errors.
    I have searched online for causes of this error for many hours and found nothing that helps me to solve this issue.
    Does anyone have any suggestions for me?

    Yes, I have verified that the Excel file is not in use or opened by anyone, including me. It has been two months since I opened this particular package, although I have been working with other packages in this project. I just discovered that another
    package in the same project has the same problem - all Data Flows that output to an Excel Destination now have the same error icons. This second packages outputs to an entirely different Excel file than in the first package.  A summay:
    Package #1 has error on every Excel Destination and uses templateA to overwrite fileA and then writes to fileA
    Package #2 has error on every Excel Desintation and uses templateB to overwrite fileB and then writes to fileB
    Package #3 has no error on any Excel Destination and is linked to multiple files (none are A or B)
    Package #1 and #2 are in the same project, but Package #3 is in a separate project .
    I will try replacing the Excel files with new ones for Package 1 and 2.

Maybe you are looking for