Cannot find database job

Every day I see new data in tables. A specific procedure is running every morning at 5 pm. I cannot find a database job in user_jobs and there is no job in dba_jobs. Yesterday I put a text coding to this procedure. Today I see the in a test-table. But the procedure is running automatically. I do not know what happens. Does anybody have an idea?

Yesterday I noticed that my car wouldn't start can anyone tell me why?
No operating system.
No version number.
Apparently no attempt to ask the DBA managing the system.
No information about where the procedure was put or what it did or why it was written or how you think it was supposed to be run.
This week we are already out of guesses. Please provide all relevant information. The above list is just the first couple of items I wrote down. It is not complete.

Similar Messages

  • Cannot find database login fail.

    I had to database one on my local machine (LM) and one on the network machine (NM).
    NM had a website where users and had to login to access the data using SQL authentication.
    LM uses windows authentication. I updated LM  made a backup.
    detach NM and delete it. I copied the backup to  NW and then Attach it.
    now when users login they are seeing the message can't find database.
    Even if I know for a fact the database is there with the same name.
    Not sure what to do.

    If i am guessing correctly then, This is a very common issue :-)
    you think that the because you use attached a database with the same user name then this is the same user :-) It is not.  two users with the same name and the same password in two instances are not the same user. you should search Google for: sql
    server orphaned users. those users that came from the other server named "orphaned users". they seem to be in the login list but there is no real user with the same ID configure in the server (there might be a different use with the same name and
    password which is not the same user since the ID is not the same)
    Fix the orphaned users as a start step :-)
    http://msdn.microsoft.com/en-us/library/ms175475.aspx
    [Personal Site] [Blog] [Facebook]

  • Cannot find database AIR says was created successfully

    Hi,
    I'm new to AIR development so maybe I'm not understanding
    this correctly.
    Following the example at
    http://help.adobe.com/en_US/AIR/1.1/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7d49. html
    Does the "DBSample.db" only exist while the application is
    running?
    I can't find the database anywhere on my system even though I
    get the trace message "the database was created successfully"?
    I'm using Eclipse Ganymede, FlexSDK3, AIR 1.0 on a Mac OSX
    10.5.4
    Thank you

    Change the creation success message to:
    air.trace("the database was created successfully at: " +
    air.File.applicationStorageDirectory.nativePath);
    to see where the file is. I'm guessing that you just don't
    realize how deeply buried the application storage directory
    is.

  • Pacman cannot find database on repos

    Ok, I have no clue what I have done...When I run pacman -Syu here is what I get:
    [root@Kolob ~]# pacman -Syu
    :: Synchronizing package databases...
    error: failed retrieving file 'core.db.tar.gz' from archlinux.unixheads.org : Not Found
    error: failed to update core (Not Found)
    error: failed retrieving file 'extra.db.tar.gz' from archlinux.unixheads.org : Not Found
    error: failed to update extra (Not Found)
    error: failed retrieving file 'community.db.tar.gz' from archlinux.unixheads.org : Not Found
    error: failed to update community (Not Found)
    error: failed to synchronize any databases
    I don't really know what to do at this point. Here is my pacman config:
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #XferCommand = /usr/bin/curl %u > %o
    #CleanMethod = KeepInstalled
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options (all disabled by default)
    #UseSyslog
    #ShowSize
    #UseDelta
    #TotalDownload
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # The testing repositories are disabled by default. To enable, uncomment the
    # repo name header and Include lines. You can add preferred servers immediately
    # after the header, and they will be used before the default mirrors.
    #[testing]
    ## Add your preferred servers here, they will be used first
    #Include = /etc/pacman.d/mirrorlist
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    ## Add your preferred servers here, they will be used first
    #Include = /etc/pacman.d/mirrorlist
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    And my /etc/pacman.d/mirrorlist:
    # Arch Linux repository mirrorlist
    # Generated on 2009-06-16
    # United States
    #Server = http://mirror.archlinux.com.ve/$repo/os/@carch@
    Server = http://archlinux.unixheads.org/$repo/os/@carch@
    #Server = ftp://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/@carch@
    #Server = http://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/@carch@
    #Server = ftp://mirrors.easynews.com/linux/archlinux/$repo/os/@carch@
    #Server = http://mirrors.easynews.com/linux/archlinux/$repo/os/@carch@
    Perhaps some other useful info:
    -i686
    -GNOME
    -pacman 3.3.2

    It seems as if you have only one mirror enabled in your mirrorlist file. Can you try to enable more mirrors. pacman will try them in the order they appear in the file. Also, I have made good experience with ftp mirrors.
    What you also could do is try the rankmirrors script. It will sort your mirrors according to speed. See Beginners Guide.

  • Cannot find details of completed DPM backup job

    I ran a DPM backup job successfully but now cannot find the job log to review the details.  I can only see the start time, time elapsed, and data transferred on the jobs tab. Where is the detailed job log?
    Any help would be appreciated...
    Thanks.
    Dave W

    After jobs run in DPM there is only limited information (status) given in the gray box at the bottom of the Jobs tab.  With many of the other backup applications that I deal with I get a lot more information.  DPM only gives limited information
    such as how long the backup took (backup time), the size of the backup, and where the backup target is.  But I am looking for much more information than these basics.
    For instance:
    what was the duration of the backup (HH:MM:SS)
    how many objects or files/folders were selected and how many completed the backup
    what backup target was used
    what was the throughput of the backup (MB/s or GB/s)
    what was the compression ratio attained
    what is the native remaining capacity on the target device
    how many streams were used during the backup
    etc.
    The DPM GUI does not show this information and I cannot find or produce a log file that does either.
    If you have any other suggestions on how I can get this data please let me know.
    Many thanks in advance and thank you for your cooperation.
    Dave W

  • "RUN-TIME ERROR '3078': The Microsoft Access database engine cannot find the input table or query 'name'. Make sure it exists and that its name is spelled correctly.

     When I run the code below I get the following error:"RUN-TIME ERROR '3078': The Microsoft Access database engine cannot find the input table or query 'False'. Make sure it exists and that its name is spelled correctly. Note that I do not call
    anything by the name of "false" anywhere in this code.
    The subject code (the underscored line of code is highlighted in the debugger when the error occurs):
    Option Compare Database
    Private Sub JobAssign_Click()
    MatLotListAvail_openform
    End Sub
    Function MatLotListAvail_openform()
    Dim dbsAPIShopManager2010 As DAO.Database
    Dim rstMaterialLotJobJoint As DAO.Recordset
    Dim strSQL As String
    Set dbsAPIShopManager2010 = CurrentDb
    strSQL = "SELECT * FROM MaterialLotJobJoint WHERE JobID" = "tempvars!JobID" And "MatLotID" = "tempvars!MatLotID"
    Set rstMaterialLotJobJoint = dbsAPIShopManager2010.OpenRecordset(strSQL, dbOpenDynaset)
    If rstMaterialLotJobJoint.EOF Then
    DoCmd.OpenForm "JobAssignMatConf", acNormal, "", "", acEdit, acNormal
    Forms!JobAssignMatConf!PartapiIDVH = TempVars!PartapiID
    Forms!JobAssignMatConf!JobapiIDVH = TempVars!JobapiID
    Forms!JobAssignMatConf!JobIDVH = TempVars!JobID
    Forms!JobAssignMatConf!MaterialLotIDVH = TempVars!MatLotID
    Forms!JobAssignMatConf!Desc = TempVars!MatDesc
    Forms!JobAssignMatConf!recdate = TempVars!recdate
    DoCmd.Close acForm, "MaterialLotListAvailable"
    Else: MsgBox "This material lot has already been assigned to this job."
    DoCmd.Close acForm, "MaterialLotListAvailable"
    End If
    End Function

    I think the SQL statement should be
    strSQL = "SELECT * FROM MaterialLotJobJoint WHERE JobID=" & _
    tempvars!JobID & " AND MatLotID=" & tempvars!MatLotID
    This assumes thatJobID and MatLotID are number fields.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • ORA -18808;Cannot find OUTLN schema using Database Link

    Hi,
    I have to access a database using a database link. When I try to do so I get the message:
    ORA -18808:cannot find OUTLN schema
    The OUTLN schema really does'nt exist at the target database, but I don't get the message when connecting with the same user outside the database link.
    I am trying to avoid to ask them to recreate the schema, since I am the only one that needs the database link working.
    Is there any way I can access the database with the database link without messing with the target database?
    Thanks in advance for any help.

    The error number returned by that error does not seem to be correct. Below is the correct error number:
    ORA-18008 cannot find OUTLN schema
    Cause: The database creation script that creates this schema must not have been executed.
    Action: Review the log files to see what happened when the database was created.
    How is the DB link defined to connect as?

  • Essbase Add-in Error - Cannot Find Message Database

    Error #1040007 - Cannot find message database. Error received launching either the essbase add-in or app manager.Arbor path has been verified in path statement, and is first. Running under Win 2000, no changes to PC.Can anyone advise what may be causing this problem? Specific question: Where would the "message database be located?".Randy [email protected]

    It's used to point to the message database (seriously)... LOL! I've never seen it used anyplace I've done Essbase and to my knowledge no one has ever been the worse off for it. It's probably just as well that you deleted it.Regards,Bruce

  • JMS Database Persistence Provider in OC4J 10131:system cannot find the path

    I'm walking through the steps here with OC4J standalone 10131:
    http://mike-lehmann.blogspot.com/2006/09/simple-mdb-with-oracle-database-jms.html
    And when I try to create the RA with a new RP I get the following exception in the logs. My datasource is setup and is tested. Thoughts?
    oracle.sysman.ias.studio.j2ee.deploy.DeployUtil$DeploymentFailureException
         at oracle.sysman.ias.studio.j2ee.deploy.DeployUtil.deployArchive(DeployUtil.java:211)
         at oracle.sysman.ias.studio.j2ee.deploy.DeployUtil.deployArchive(DeployUtil.java:85)
         at oracle.sysman.ias.studio.oc4j.jms.JMXDeployDbProviderAdminBean.deployDBProviderAndConfigure(JMXDeployDbProviderAdminBean.java:121)
         at oracle.sysman.ias.studio.oc4j.jms.DeployDbProviderHelper.deployDBProvider(DeployDbProviderHelper.java:242)
         at oracle.sysman.ias.studio.oc4j.jms.DeployDbProviderHelper.handleEvent(DeployDbProviderHelper.java:127)
         at oracle.sysman.ias.studio.sdk.AbstractController.handleEvent(AbstractController.java:769)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:378)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:765)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:283)
         at oracle.sysman.ias.studio.app.StudioConsole.doGet(StudioConsole.java:297)
         at oracle.cabo.servlet.UIXServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.sysman.ias.studio.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:75)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.sysman.ias.studio.app.MultipleJVMFilter.doFilter(MultipleJVMFilter.java:85)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.sysman.ias.studio.app.PostLogonFilter.doFilter(PostLogonFilter.java:80)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.sysman.ias.studio.app.ShortHostnameRedirectFilter.doFilter(ShortHostnameRedirectFilter.java:68)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.oc4j.admin.jmx.shared.exceptions.JMXRuntimeException: The system cannot find the path specified
         at oracle.oc4j.admin.jmx.shared.util.JarTool.<init>(JarTool.java:122)
         at oracle.sysman.ias.studio.j2ee.deploy.DeployPageUtil.getArchiveType(DeployPageUtil.java:105)
         at oracle.sysman.ias.studio.j2ee.deploy.DeployUtil.deployArchive(DeployUtil.java:133)
         ... 33 more
    Caused by: java.util.zip.ZipException: The system cannot find the path specified
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:203)
         at java.util.jar.JarFile.<init>(JarFile.java:132)
         at java.util.jar.JarFile.<init>(JarFile.java:97)
         at oracle.oc4j.admin.jmx.shared.util.JarTool.<init>(JarTool.java:119)
         ... 35 more

    gday Jason.
    Not sure off the top of my head, looks like something is missing.
    Caused by: java.util.zip.ZipException: The system cannot find the path specified
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:203)
    at java.util.jar.JarFile.<init>(JarFile.java:132)
    at java.util.jar.JarFile.<init>(JarFile.java:97)
    at oracle.oc4j.admin.jmx.shared.util.JarTool.<init>(JarTool.java:119)
    I'm not even sure what file is being deployed to create the RA/RP here, I'll see if I can find out.
    -steve-

  • Oracle connection: cannot find the database driver

    i have the following code:
    Class.forName("oracle.jdbc.driver.OracleDriver");
         // Create a connection to the database
         String serverName = "rana-etcsup3ueu";
         String portNumber = "1521";
         String sid = "ORCLE";
         String url = "jdbc:oracle:thin:@rana-etcsup3ueu:1521:ORCLE";
         String username = "scott";
         String password = "tiger";
         connection = DriverManager.getConnection(url, username,password);
         } catch (ClassNotFoundException e) {
              JOptionPane.showMessageDialog(null,"Coud not find the database driver ");
         // Could not find the database driver
         } catch (SQLException e) {
              JOptionPane.showMessageDialog(null,"Coud not connect to the database ");
         // Could not connect to the database
    but i have ClassNotFoundException that is cannot find tha database driver

    This clearly implies that your driver classes are not on the classpath.
    Ensure that the classes are reachable to your JVM.

  • Database Control on Windows - Gives error Cannot Find Server or DNS Error

    hi all,
    After installing 10g on Windows, the necessary services for my new db are running, listener is up.
    But when I try to bring up Database Control via http://pnclultraprd.corporate.mem.5500/em/console/logon/logon
    I get "The page cannot be displayed. Cannot find server'
    I've not had this before on new installations and I'm stuck.
    Any tips? thanks, John

    What is the status of the enterprise manager and agent,
    emctl status dbconsole
    emctl status agentHTH
    Aman....

  • Every time i try to update software it asks me to close Microsoft Database Daemon SyncServicesAgent  Close these applications and try again. i cannot close them becase i cannot find where they are open help as i cannot update

    every time i try to update software it asks me to close Microsoft Database Daemon SyncServicesAgent  Close these applications and try again. i cannot close them becase i cannot find where they are open help as i cannot update

    You can find how to here:
    http://www.bing.com/search?q=close+sync+services+agent
    http://www.bing.com/search?q=what+is+mac+os+x+sync+services
    Mac OS X: Resetting the SyncServices folder - Apple - Support
    http://support.apple.com/kb/TS1627
      Aug 17, 2012 · Choose Reset Sync Services. Click Reset Sync History. Test for the ... Resetting SyncServices resets your Mac OS X User Account's Sync settings and …
    Sync Services: Advanced troubleshooting for contact and calendar ...
    http://support.apple.com/kb/TS2481

  • I MIGRATED MUSIC AND PHOTOS FROM PC TO NEW IMAC VIA ETHERNET/MIGRATION ASSISTANT. IT SAID that job was completed but i cannot find anyof my stuff. where is it?

    i cannot find music, photos or documents after migrating from pc to new imac. both computers said transfer was successful but i cannot find anything. where is it?

    It went to a new user Account.
    Go to: Apple > System Preferences > Users & Groups to see the new Account.
    For more info, see > About Windows Migration Assistant
    Notes
    This process will create a new user account on your Mac that contains the data migrated from the Windows PC.  It will not merge the information with any existing user accounts on your Mac.
    This article only applies to migrating from a Windows-based PC to a Mac. For assistance with performing a migration from one Mac to another, please see How to use Migration Assistant to transfer files from another Mac.
    Windows-specific file types, such as .exe files, are not transferred.
    You will need to enter your password when you first use an account, such as when you use your transferred email account in the Mail application for the first time.

  • Newbie needs help!  Cannot open database home page...

    Hi all,
    I know this sort of question has been posted before but either it never got resolved or the thread seems to just die...
    I have just installed 10gXE and have tried to open the 'homepage' but all I get is 'page not available' errors in either IE Firefox or Opera. I have turned off the windows Firewall to see if that had anything to do with it but it made no difference.
    the out put of 'lsnrctl status' is:
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 08-MAR-2007 14:19:22
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Start Date 08-MAR-2007 13:31:01
    Uptime 0 days 0 hr. 48 min. 21 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fawlty-towers)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    which seems ok but then I've never used Oracvle before so I don't know what to look for. (I have years of database experience btw using MySQL, PostgreSQL, SQL Server, hell, even Access!)
    If I do 'netstat -na' I get:
    Active Connections
    Proto Local Address Foreign Address State
    TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:1521 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:3260 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:3261 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:1026 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:1027 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:1597 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:2691 127.0.0.1:2692 ESTABLISHED
    TCP 127.0.0.1:2692 127.0.0.1:2691 ESTABLISHED
    TCP 127.0.0.1:2693 127.0.0.1:2694 ESTABLISHED
    TCP 127.0.0.1:2694 127.0.0.1:2693 ESTABLISHED
    TCP 127.0.0.1:2695 127.0.0.1:2696 ESTABLISHED
    TCP 127.0.0.1:2696 127.0.0.1:2695 ESTABLISHED
    TCP 127.0.0.1:6880 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:45100 0.0.0.0:0 LISTENING
    TCP 192.168.1.64:139 0.0.0.0:0 LISTENING
    TCP 192.168.1.64:1912 141.146.8.66:80 ESTABLISHED
    TCP 192.168.1.64:1913 141.146.8.66:80 ESTABLISHED
    TCP 192.168.1.64:1914 141.146.8.66:80 ESTABLISHED
    TCP 192.168.1.64:1919 141.146.8.66:80 ESTABLISHED
    TCP 192.168.1.64:1920 141.146.8.66:80 ESTABLISHED
    TCP 192.168.1.64:1921 141.146.8.66:80 ESTABLISHED
    TCP 192.168.1.64:1945 194.106.56.35:110 TIME_WAIT
    TCP 192.168.1.64:4550 82.11.36.182:33445 ESTABLISHED
    UDP 0.0.0.0:445 *:*
    UDP 0.0.0.0:500 *:*
    UDP 0.0.0.0:1032 *:*
    UDP 0.0.0.0:1034 *:*
    UDP 0.0.0.0:1066 *:*
    UDP 0.0.0.0:1067 *:*
    UDP 0.0.0.0:4500 *:*
    UDP 0.0.0.0:16680 *:*
    UDP 127.0.0.1:123 *:*
    UDP 127.0.0.1:1640 *:*
    UDP 127.0.0.1:1700 *:*
    UDP 127.0.0.1:1900 *:*
    UDP 127.0.0.1:2629 *:*
    UDP 127.0.0.1:4765 *:*
    UDP 192.168.1.64:123 *:*
    UDP 192.168.1.64:137 *:*
    UDP 192.168.1.64:138 *:*
    UDP 192.168.1.64:1900 *:*
    UDP 192.168.1.64:2697 *:*
    UDP 192.168.1.64:56841 *:*
    My local PC IP is 192.168.1.64 incase you didn't guess from all that!
    My 'hosts' file has nothing in it except '127.0.0.1 localhost' which I tried commenting out but, rather obviously, didn't make a jot of difference.
    Any help would be appreciated.

    sqlplus / as sysdbaThis will tell you if you are connected to an idle
    instance or not. If it says your are connected to an
    idle instance ...It does indeed say that I am connected to an idle instance
    ... do the following:
    SQL> startup
    When I do that I get the following:
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file 'C:\oraclexe\app\oracle\product\10.2.0\serv
    er\dbs/spfileXE.ora'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.Legatti, the dump log you mentioned is this (Hope you don't mind me pasting the whole thing...):
    Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Thu Mar 08 13:31:14 2007
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows XP Version V5.1 Service Pack 2
    CPU                 : 1 - type 586
    Process Affinity    : 0x00000000
    Memory (Avail/Total): Ph:1068M/2047M, Ph+PgF:2871M/3939M, VA:1943M/2047M
    Thu Mar 08 13:31:14 2007
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Shared memory segment for instance monitoring created
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =10
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:
      sessions                 = 49
      sga_target               = 599785472
      control_files            = C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
      compatible               = 10.2.0.1.0
      db_recovery_file_dest    = C:\oraclexe\app\oracle\flash_recovery_area
      db_recovery_file_dest_size= 10737418240
      undo_management          = AUTO
      undo_tablespace          = UNDO
      remote_login_passwordfile= EXCLUSIVE
      dispatchers              = (PROTOCOL=TCP) (SERVICE=XEXDB)
      shared_servers           = 4
      job_queue_processes      = 4
      audit_file_dest          = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\ADUMP
      background_dump_dest     = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\BDUMP
      user_dump_dest           = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\UDUMP
      core_dump_dest           = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\CDUMP
      db_name                  = XE
      open_cursors             = 300
      os_authent_prefix        =
      pga_aggregate_target     = 199229440
    PMON started with pid=2, OS id=5344
    PSP0 started with pid=3, OS id=1424
    MMAN started with pid=4, OS id=4928
    DBW0 started with pid=5, OS id=2092
    LGWR started with pid=6, OS id=3088
    CKPT started with pid=7, OS id=1920
    SMON started with pid=8, OS id=2148
    RECO started with pid=9, OS id=5296
    CJQ0 started with pid=10, OS id=5960
    MMON started with pid=11, OS id=3720
    Thu Mar 08 13:31:18 2007
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    MMNL started with pid=12, OS id=5076
    Thu Mar 08 13:31:18 2007
    starting up 4 shared server(s) ...
    Oracle Data Guard is not available in this edition of Oracle.
    Thu Mar 08 13:31:22 2007
    The input backup piece C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\CONFIG\SEEDDB\EXPRESS.DFB is in compressed format.
    Thu Mar 08 13:31:41 2007
    Full restore complete of datafile 4 to datafile copy C:\ORACLEXE\ORADATA\XE\USERS.DBF.  Elapsed time: 0:00:19
      checkpoint is 193065
    Full restore complete of datafile 2 to datafile copy C:\ORACLEXE\ORADATA\XE\UNDO.DBF.  Elapsed time: 0:00:20
      checkpoint is 193065
    Thu Mar 08 13:32:04 2007
    Full restore complete of datafile 3 to datafile copy C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF.  Elapsed time: 0:00:42
      checkpoint is 193065
    Full restore complete of datafile 1 to datafile copy C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF.  Elapsed time: 0:00:52
      checkpoint is 193065
    Thu Mar 08 13:32:14 2007
    Create controlfile reuse set database "XE"
    MAXINSTANCES 8
    MAXLOGHISTORY 1
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    Datafile
    'C:\oraclexe\oradata\XE\system.dbf',
    'C:\oraclexe\oradata\XE\undo.dbf',
    'C:\oraclexe\oradata\XE\sysaux.dbf',
    'C:\oraclexe\oradata\XE\users.dbf'
    LOGFILE
    GROUP 1 SIZE 51200K,
    GROUP 2 SIZE 51200K,
    RESETLOGS
    WARNING: Default Temporary Tablespace not specified in CREATE DATABASE command
    Default Temporary Tablespace will be necessary for a locally managed database in future release
    Setting recovery target incarnation to 1
    Thu Mar 08 13:32:15 2007
    Successful mount of redo thread 1, with mount id 2497757598
    Thu Mar 08 13:32:15 2007
    Completed: Create controlfile reuse set database "XE"
    MAXINSTANCES 8
    MAXLOGHISTORY 1
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    Datafile
    'C:\oraclexe\oradata\XE\system.dbf',
    'C:\oraclexe\oradata\XE\undo.dbf',
    'C:\oraclexe\oradata\XE\sysaux.dbf',
    'C:\oraclexe\oradata\XE\users.dbf'
    LOGFILE
    GROUP 1 SIZE 51200K,
    GROUP 2 SIZE 51200K,
    RESETLOGS
    Shutting down instance: further logons disabled
    Thu Mar 08 13:32:15 2007
    Stopping background process CJQ0
    Thu Mar 08 13:32:15 2007
    Stopping background process MMNL
    Thu Mar 08 13:32:15 2007
    Stopping background process MMON
    Thu Mar 08 13:32:16 2007
    Shutting down instance (immediate)
    License high water mark = 1
    Thu Mar 08 13:32:16 2007
    Stopping Job queue slave processes
    Thu Mar 08 13:32:16 2007
    Job queue slave processes stopped
    Waiting for dispatcher 'D000' to shutdown
    All dispatchers and shared servers shutdown
    Thu Mar 08 13:32:18 2007
    ALTER DATABASE CLOSE NORMAL
    ORA-1109 signalled during: ALTER DATABASE CLOSE NORMAL...
    Thu Mar 08 13:32:18 2007
    ALTER DATABASE DISMOUNT
    Completed: ALTER DATABASE DISMOUNT
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 activeAny ideas?

  • Cannot find file specified!!!

    To anyone that can help.
    Server 2012 R2
    Trying to run a .wsf file and the system tells me that it cannot find the file specified.
    Opened command prompt as admin and running cscript.exe shoreware_backup.wsf
    I am losing my mind
    Jared

    ' Backup Script for ShoreWare Server
    <job id="ShorewareBackup">
     <script language="VBScript" src="common.vbs" />
     <script language="VBScript">
    writeToLog "********** Starting Shoreware Backup Process **********"
    '----- load ini file, this should always be the first thing to do -----
    loadINI
    Dim backupDrive : backupDrive = BACKUP_DRIVE
    Dim backupRootDir : backupRootDir = BACKUP_ROOT_DIR
    Dim scriptsRootDir : scriptsRootDir = SCRIPTS_ROOT_DIR
    Dim scriptsDVMRootDir : scriptsDVMRootDir = SCRIPTS_DVM_ROOT_DIR
    Dim backupVMBRootDir : backupVMBRootDir = BACKUP_VMB_ROOT_DIR
    Dim backupUCBRootDir : backupUCBRootDir = BACKUP_UCB_ROOT_DIR
    Dim backupDVSRootDir : backupDVSRootDir = BACKUP_DVS_ROOT_DIR
    Dim ShoretelRootDir : ShoretelRootDir = SERVER_DIR
    Dim ShoretelDVMRootDir : ShoretelDVMRootDir = DVM_SERVER_DIR
    writeToLog "Backup Directory: " & backupDrive & backupRootDir
    If(serverType = SERVER_TYPE_HQ) Then
     writeToLog "Scripts Directory: " & scriptsRootDir
    ElseIf(serverType = SERVER_TYPE_DVM) Then
     writeToLog "Scripts Directory: " & scriptsDVMRootDir
    End If 
    Dim objShell, serverType, action, cmd_error
    Set objShell = WScript.createObject("wscript.shell")
    cmd_error = 0
    Dim  inIBMLF
    inIBMLF = False
    On Error Resume Next
    Dim lfMode : lfMode = objShell.RegRead(REG_LF_MODE)
    Select Case Err
    Case 0:
      writeToLog "Registry key RunningOnLFMode exist"
      if(lfMode) Then
       writeToLog "RunningOnLFMode is not 0, we are in LF mode"
       inIBMLF = True
      End If
    Case Else
      writeToLog "Registry key RunningOnLFMode does not exist"
    End Select
    On Error Goto 0
    '----- Check for errors in the command line -----
    If (WScript.Arguments.Length > 0) Then
     serverType = LCase(WScript.Arguments.Item(0))
     if(serverType = SERVER_TYPE_HQ or serverType = SERVER_TYPE_DVM or serverType = SERVER_TYPE_VMB or serverType = SERVER_TYPE_UCB or serverType = SERVER_TYPE_DVS) Then
      writeToLog "Server Type: " & serverType
     Else
      writeToLog "ERROR! Invalid server type: " & serverType
      cmd_error = 1 
     End If
    Else
     writeToLog "ERROR! Syntax error, check the command line."
     cmd_error = 1
    End If
    If (cmd_error = 1) Then
     WScript.Echo "Usage Error: shoreware_backup.wsf [" &_
           SERVER_TYPE_HQ & "," &_
           SERVER_TYPE_DVM & "," &_
           SERVER_TYPE_VMB & "," &_
           SERVER_TYPE_UCB & "," &_
           SERVER_TYPE_DVS & "] [" &_
           OPTION_ALL & " | " &_
           OPTION_DB & " | " &_
           OPTION_VM & " | " &_
           OPTION_LOG & "]"
     WScript.Quit -1
    End If
    '----- Verify this server is the server the user is expecting -----
    If ((serverType = SERVER_TYPE_HQ) and isRemoteServer) Then
     WScript.Echo TEXT_ERROR_NOT_HQ
     WScript.Quit -1
    ElseIf ((serverType = SERVER_TYPE_DVM) and Not isRemoteServer) Then
     WScript.Echo TEXT_ERROR_NOT_DVM'
     WScript.Quit -1
    Else
    End If
    '----- Parse the command line -----
    Dim index, doConfig, doVM, doCDR, doLogs
    index = 0
    doConfig = False
    doVM = False
    doCDR = False
    doLogs = False
    For Each action in WScript.Arguments
     If (index = 0) Then
      'Do nothing, this is the server type
     Else
      select case LCase(action)
       case OPTION_ALL
        doConfig = True
        doVM = True
        doCDR = True
        doLogs = True
       case OPTION_CONFIG
        doConfig = True
       case OPTION_VM
        doVM = True
       case OPTION_CDR
        doCDR = True
       case OPTION_LOG
        doLogs = True
       case OPTION_DB
        doConfig = True
        doCDR = True
       case ARG_SWITCH_VERBOSE
        VERBOSE_MODE = True
       case Else
        writeToLog "ERROR! Invalid option: " & action
        WScript.Echo "Warning: Unrecognized type " & action
      end select
     End If
     index = index + 1
    Next
    Dim dataRootDir : dataRootDir = objShell.RegRead(REG_SWDATA_DIR)
    writeToLog "SW Data Directory: " & dataRootDir
    '----- Stop services and perform backup -----
    If(serverType = SERVER_TYPE_HQ) Then
     writeToLog "---> cleaning current backup folder"
     rotateBackupFolder backupDrive, backupRootDir
     writeToLog "---> stopping hq services"
     stopHQ scriptsRootDir
     writeToLog "---> backing up hq data"
     backUpHQ dataRootDir, backupDrive, backupRootDir, doConfig, doVM, doCDR, doLogs
    ElseIf(serverType = SERVER_TYPE_DVM) Then
     writeToLog "---> cleaning current backup folder"
     rotateBackupFolder backupDrive, backupRootDir
     writeToLog "---> stopping dvm services"
     stopDVM scriptsDVMRootDir
     writeToLog "---> backing up dvm data"
     backUpDVM dataRootDir, backupDrive, backupRootDir, doConfig, doVM, doCDR, doLogs
    ElseIf(serverType = SERVER_TYPE_VMB) Then
     Dim vmbIp
     writeToLog "---> cleaning current backup folder"
     rotateBackupFolder backupDrive, backupVMBRootDir
     For Each vmbIp In VMB_LIST
      writeToLog "---> stopping vmb (" & vmbIp & ") services"
      stopVMB vmbIp
      writeToLog "---> backing up vmb data"
      backupVMB backupDrive, backupVMBRootDir, vmbIp
     Next
    ElseIf(serverType = SERVER_TYPE_UCB) Then
     Dim ucbIp
     writeToLog "---> cleaning current backup folder"
     rotateBackupFolder backupDrive, backupUCBRootDir
     For Each ucbIp In UCB_LIST
      writeToLog "---> stopping ucb (" & ucbIp & ") services"
      stopUCB ucbIp
      writeToLog "---> backing up ucb data"
      backupUCB backupDrive, backupUCBRootDir, ucbIp
     Next
    ElseIf(serverType = SERVER_TYPE_DVS) Then
     Dim dvsIp
     writeToLog "---> cleaning current backup folder"
     rotateBackupFolder backupDrive, backupDVSRootDir
     For Each dvsIp In DVS_LIST
    '  writeToLog "---> stopping dvs (" & dvsIp & ") services"
    '  stopDVS dvsIp
      writeToLog "---> backing up dvs data"
      backupDVS backupDrive, backupDVSRootDir, dvsIp
     Next
    End If
    '----- Save off current version of shoreware -----
    setDataVersion backupDrive, backupRootDir, serverType
    '----- Backup complete, so re-start services -----
    If(serverType = SERVER_TYPE_HQ) Then
     writeToLog "---> starting hq services"
     startHQ scriptsRootDir
    ElseIf(serverType = SERVER_TYPE_DVM) Then
     writeToLog "---> starting dvm services"
     startDVM scriptsDVMRootDir
    ElseIf(serverType = SERVER_TYPE_VMB) Then
     For Each vmbIp In VMB_LIST
      writeToLog "---> starting vmb (" & vmbIp & ") services"
      startVMB vmbIp
     Next
    ElseIf(serverType = SERVER_TYPE_UCB) Then
     For Each ucbIp In UCB_LIST
      writeToLog "---> starting ucb (" & ucbIp & ") services"
      startUCB ucbIp
     Next
    'ElseIf(serverType = SERVER_TYPE_DVS) Then
    ' For Each dvsIp In DVS_LIST
    '  writeToLog "---> starting dvs (" & dvsIp & ") services"
    '  startDVS dvsIp
    ' Next
    End If
    writeToLog "********** Completed Shoreware Backup Process **********"
    If(Not inIBMLF) Then
     WScript.Echo TEXT_BACKUP_COMPLETE
    End If
    '----- Script Done -----
    ' SubProcedure to backup the data on the HQ server
    ' Backs up the following:
    ' 1. \Inetpub\mailroot
    ' 2. \Inetpub\ftproot
    ' 3. \Windows\my.ini
    ' 4. \Shoreline Data\MessageFiles
    ' 5. \Shoreline Data\Prompts
    ' 6. \Shoreline Data\Scripts
    ' 7. \Shoreline Data\SoftSwitch
    ' 8. \Shoreline Data\Templates
    ' 9. (optional) \Shoreline Data\Database
    ' 10. (optional) \Shoreline Data\Vms
    ' 11. (optional) \Shoreline Data\Call Records 2
    ' 12. (optional) \Shoreline Data\Logs
    ' Input
    '  rootDir - (String) path of root directory containing Shoreline Data
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    '  doConfig - (Boolean) if to backup "\Database"
    '  doVM - (Boolean) if to backup "\Vms"
    '  doCDR - (Boolean) if to backup "\Call Records 2"
    '  doLogs - (Boolean) if to backup "\Logs"
    sub backUpHQ (rootDir, backupDrive, backupDir, doConfig, doVM, doCDR, doLogs)
     'WScript.Echo "Backing up HQ..."
     'back-up mailroot
     folderCopy WINDOWS_DRIVE & MAILROOT_ROOT_DIR, backupDrive, backupDir & MAILROOT_ROOT_DIR, True
     ftpRootDirAsInRegistry = objShell.RegRead(REG_FTPROOT_DIR)
     writeToLog "ftp root Directory: " & ftpRootDirAsInRegistry
     'lngPos = Instr(ftpRootDirAsInRegistry, ",")
     'ftpRootDir = Left(ftpRootDirAsInRegistry, lngPos-1)
     ftpRootDir = ftpRootDirAsInRegistry
     lngPos1 = Instr(ftpRootDir, ":")
     ftpdirlength  =Len(ftpRootDir)
     ftpRootDirWithoutDriveName = Right(ftpRootDir, ftpdirlength-lngPos1)
     backupDirWithSlash = backupDir & "\"
     'back-up ftproot
     'folderCopy WINDOWS_DRIVE & FTPROOT_ROOT_DIR, backupDrive, backupDir & FTPROOT_ROOT_DIR, True
     'back-up ftproot directory
     folderCopy ftpRootDir, backupDrive, backupDirWithSlash & ftpRootDirWithoutDriveName, True
     writeToLog "ftproot directory backup done: " & backupDirWithSlash & ftpRootDirWithoutDriveName
     'back-up mysql configuration
     fileCopy SHOREWARE_DRIVE & ShoretelRootDir & "\MySQLCDR\MySQL Server\" & MYSQL_CONFIG_FILE, backupDrive, backupDir & ShoretelRootDir & "\MySQLCDR\MySQL Server\", True
     fileCopy SHOREWARE_DRIVE & ShoretelRootDir & "\MySQLConfig\MySQL Server\" & MYSQL_CONFIG_FILE, backupDrive, backupDir & ShoretelRootDir & "\MySQLConfig\MySQL Server\", True
     'back-up HQ data 
     Dim objFSO : Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If objFSO.FolderExists(rootDir) Then
      Dim objFolder, objSubfolders, doCopy
      Set objFolder = objFSO.GetFolder(rootDir)
      Set objSubfolders = objFolder.SubFolders
      For Each objFolder in objSubfolders
       doCopy = False
       select case objFolder.Name
        case FOLDER_NAME_CONFIG
         if(doConfig) Then
          doCopy = True
         End If
        case FOLDER_NAME_VM
         if(doVM) Then
          doCopy = True
         End If
        case FOLDER_NAME_CDR
         if(doCDR) Then
          doCopy = True
         End If
        case FOLDER_NAME_LOGS
         if(doLogs) Then
          doCopy = True
         End If
        case Else
         doCopy = True
       end select
       if(doCopy) Then
        folderCopy objFolder.Path, backupDrive, backupDir & "\" & BACKUP_SW_DIR & objFolder.Name, True
       End If
      Next
     End If
    end sub
    ' SubProcedure to backup the data on the DVM server
    ' Backs up the following:
    ' 1. \Inetpub\mailroot
    ' 2. \Inetpub\ftproot
    ' 3. \Windows\my.ini
    ' 4. \Shoreline Data\MessageFiles
    ' 5. \Shoreline Data\Prompts
    ' 6. \Shoreline Data\Scripts
    ' 7. \Shoreline Data\SoftSwitch
    ' 8. \Shoreline Data\Templates
    ' 9. (optional) \Shoreline Data\Database
    ' 10. (optional) \Shoreline Data\Vms
    ' 11. (optional) \Shoreline Data\Call Records 2
    ' 12. (optional) \Shoreline Data\Logs
    ' Input
    '  rootDir - (String) path of root directory containing Shoreline Data
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    '  doConfig - (Boolean) if to backup "\Database"
    '  doVM - (Boolean) if to backup "\Vms"
    '  doCDR - (Boolean) if to backup "\Call Records 2"
    '  doLogs - (Boolean) if to backup "\Logs"
    sub backUpDVM (rootDir, backupDrive, backupDir, doConfig, doVM, doCDR, doLogs)
     'WScript.Echo "Backing up DVM..."
     'back-up mailroot
     folderCopy WINDOWS_DRIVE & MAILROOT_ROOT_DIR, backupDrive, backupDir & MAILROOT_ROOT_DIR, True
     ftpRootDirAsInRegistry = objShell.RegRead(REG_FTPROOT_DIR)
     writeToLog "ftp root Directory: " & ftpRootDirAsInRegistry
     ftpRootDir = ftpRootDirAsInRegistry
     lngPos1 = Instr(ftpRootDir, ":")
     ftpdirlength  =Len(ftpRootDir)
     ftpRootDirWithoutDriveName = Right(ftpRootDir, ftpdirlength-lngPos1)
     backupDirWithSlash = backupDir & "\"
     'back-up ftproot directory
     folderCopy ftpRootDir, backupDrive, backupDirWithSlash & ftpRootDirWithoutDriveName, True
     writeToLog "ftproot directory backup done: " & backupDirWithSlash & ftpRootDirWithoutDriveName
     'back-up mysql configuration
     fileCopy SHOREWARE_DRIVE & ShoretelDVMRootDir & "\MySQLConfig\MySQL Server\" & MYSQL_CONFIG_FILE, backupDrive, backupDir & ShoretelDVMRootDir & "\MySQLConfig\MySQL Server\", True
     'back-up DVM data 
     Dim objFSO : Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If objFSO.FolderExists(rootDir) Then
      Dim objFolder, objSubfolders, doCopy
      Set objFolder = objFSO.GetFolder(rootDir)
      Set objSubfolders = objFolder.SubFolders
      For Each objFolder in objSubfolders
       doCopy = False
       select case objFolder.Name
        case FOLDER_NAME_CONFIG
         if(doConfig) Then
          doCopy = True
         End If
        case FOLDER_NAME_VM
         if(doVM) Then
          doCopy = True
         End If
        case FOLDER_NAME_CDR
         if(doCDR) Then
          doCopy = True
         End If
        case FOLDER_NAME_LOGS
         if(doLogs) Then
          doCopy = True
         End If
        case Else
         doCopy = True
       end select
       if(doCopy) Then
        folderCopy objFolder.Path, backupDrive, backupDir & "\" & BACKUP_SW_DIR & objFolder.Name, True
       End If
      Next
     End If
    end sub
    ' SubProcedure to backup the data on the VMB switch
    ' Backs up the following:
    ' 1. \etc\ShoreTel.cfg
    ' 2. \etc\cfg.dat
    ' 3. \cf
    ' Input
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    '  vmbIP - (String) ip address of vmb switch
    sub backupVMB(backupDrive, backupDir, vmbIP)
     Dim tarCF, copyCF, copyShorCFG, copyCfgDat, cleanUp
     Dim backUpPath : backUpPath = backupDrive & backupDir & "\" & BACKUP_VMB_DIR & "_" & vmbIP
     'create folder if doesn't exist
     Dim objFSO : Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If Not objFSO.FolderExists(backUpPath) Then
      buildPath backUpPath
     End If
     tarCF = """" & PLINK_CMD & """"  & " -pw " & VMB_PASSWD & " " &_
        VMB_USER & "@" & vmbIP &_
        " ""tar -czf " & VMB_CF_TAR_FOLDER & VMB_CF_TAR_FILE & " " & VMB_CF_SHORELINEDATA_DIR & """"
     copyCF = """" & PSCP_CMD & """" & " -pw " & VMB_PASSWD & " " &_
        VMB_USER & "@" & vmbIP & ":" & VMB_CF_TAR_FOLDER & VMB_CF_TAR_FILE &_
        " """ & backUpPath & """"
     copyShorCFG = """" & PSCP_CMD & """"  & " -pw " & VMB_PASSWD & " " &_
        VMB_USER & "@" & vmbIP & ":" & VMB_SHORE_CFG_FOLDER & VMB_SHORE_CFG_FILE &_
        " """ & backUpPath & """"
     copyCfgDat = """" & PSCP_CMD & """" & " -pw " & VMB_PASSWD & " " &_
        VMB_USER & "@" & vmbIP & ":" & VMB_CGF_DAT_FOLDER & VMB_CGF_DAT_FILE &_
        " """ & backUpPath & """"
     cleanUp = """" & PLINK_CMD & """" & " -pw " & VMB_PASSWD & " " &_
        VMB_USER & "@" & vmbIP &_
        " ""rm -f " & VMB_CF_TAR_FOLDER & VMB_CF_TAR_FILE & """"
     runCmd tarCF
     runCmd copyCF
     runCmd copyShorCFG
     runCmd copyCfgDat
     runCmd cleanUp
    end sub
    ' SubProcedure to backup the data on the UCB switch
    ' Backs up the following:
    ' 1. \etc\ShoreTel.cfg
    ' 2. \etc\cfg.dat
    ' 3. \cf
    ' Input
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    '  ucbIP - (String) ip address of ucb switch
    sub backupUCB(backupDrive, backupDir, ucbIP)
     Dim tarCF, copyCF, copyShorCFG, copyCfgDat, cleanUp
     Dim backUpPath : backUpPath = backupDrive & backupDir & "\" & BACKUP_UCB_DIR & "_" & ucbIP
     'create folder if doesn't exist
     Dim objFSO : Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If Not objFSO.FolderExists(backUpPath) Then
      buildPath backUpPath
     End If
     tarCF = """" & PLINK_CMD & """"  & " -pw " & UCB_PASSWD & " " &_
        UCB_USER & "@" & ucbIP &_
        " ""tar -czf " & UCB_CF_TAR_FOLDER & UCB_CF_TAR_FILE & " " & UCB_CF_SHORELINEDATA_DIR & """"
     copyCF = """" & PSCP_CMD & """" & " -pw " & UCB_PASSWD & " " &_
        UCB_USER & "@" & ucbIP & ":" & UCB_CF_TAR_FOLDER & UCB_CF_TAR_FILE &_
        " """ & backUpPath & """"
     copyShorCFG = """" & PSCP_CMD & """"  & " -pw " & UCB_PASSWD & " " &_
        UCB_USER & "@" & ucbIP & ":" & UCB_SHORE_CFG_FOLDER & UCB_SHORE_CFG_FILE &_
        " """ & backUpPath & """"
     copyCfgDat = """" & PSCP_CMD & """" & " -pw " & UCB_PASSWD & " " &_
        UCB_USER & "@" & ucbIP & ":" & UCB_CGF_DAT_FOLDER & UCB_CGF_DAT_FILE &_
        " """ & backUpPath & """"
     cleanUp = """" & PLINK_CMD & """" & " -pw " & UCB_PASSWD & " " &_
        UCB_USER & "@" & ucbIP &_
        " ""rm -f " & UCB_CF_TAR_FOLDER & UCB_CF_TAR_FILE & """"
     runCmd tarCF
     runCmd copyCF
     runCmd copyShorCFG
     runCmd copyCfgDat
     runCmd cleanUp
    end sub
    ' SubProcedure to backup the data on the DVS switch
    ' Backs up the following:
    ' 1. \etc\ShoreTel.cfg
    ' 2. \etc\cfg.dat
    ' 3. \cf
    ' Input
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    '  dvsIP - (String) ip address of dvs switch
    sub backupDVS(backupDrive, backupDir, dvsIP)
    ' Dim tarCF, copyCF, copyShorCFG, copyCfgDat, cleanUp
     Dim backUpPath : backUpPath = backupDrive & backupDir & "\" & BACKUP_DVS_DIR & "_" & dvsIP
     Dim backupcascmd
     'create folder if doesn't exist
     Dim objFSO : Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If Not objFSO.FolderExists(backUpPath) Then
      buildPath backUpPath
     End If
    ' tarCF = """" & PLINK_CMD & """"  & " -pw " & DVS_PASSWD & " " &_
    '    DVS_USER & "@" & dvsIP &_
    '    " ""tar -czf " & DVS_CF_TAR_FOLDER & DVS_CF_TAR_FILE & " " & DVS_CF_SHORELINEDATA_DIR & """"
    ' copyCF = """" & PSCP_CMD & """" & " -pw " & DVS_PASSWD & " " &_
    '    DVS_USER & "@" & dvsIP & ":" & DVS_CF_TAR_FOLDER & DVS_CF_TAR_FILE &_
    '    " """ & backUpPath & """"
    ' copyShorCFG = """" & PSCP_CMD & """"  & " -pw " & DVS_PASSWD & " " &_
    '    DVS_USER & "@" & dvsIP & ":" & DVS_SHORE_CFG_FOLDER & DVS_SHORE_CFG_FILE &_
    '    " """ & backUpPath & """"
    ' copyCfgDat = """" & PSCP_CMD & """" & " -pw " & DVS_PASSWD & " " &_
    '    DVS_USER & "@" & dvsIP & ":" & DVS_CGF_DAT_FOLDER & DVS_CGF_DAT_FILE &_
    '    " """ & backUpPath & """"
    ' cleanUp = """" & PLINK_CMD & """" & " -pw " & DVS_PASSWD & " " &_
    '    DVS_USER & "@" & dvsIP &_
    '    " ""rm -f " & DVS_CF_TAR_FOLDER & DVS_CF_TAR_FILE & """"
    ' backupcascmd = "rdiff-backup.exe -v7  --force --no-eas --remote-schema "plink -pw ShoreTel  %%s rdiff-backup --server" 
    [email protected]::/rdiff/back1  c:\mywindowsdata > c:\out.txt 2>&1"
     backupcascmd = "rdiff-backup.exe -v7  --force --no-eas --remote-schema " &_
        """" & PLINK_CMD & " -pw " & DVS_PASSWD & " %%s rdiff-backup --server" & """" &_
        DVS_USER & "@" & dvsIP & "::" & DVS_CF_DIR & " " & """" & backUpPath & """"
     runCmd backupcascmd
    ' runCmd tarCF
    ' runCmd copyCF
    ' runCmd copyShorCFG
    ' runCmd copyCfgDat
    ' runCmd cleanUp
    end sub
    ' SubProcedure to rotate the backup folder.  It will archive the
    '  current backup folder based on the BACKUP_ARCHIVE_SIZE value.
    ' Input
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    sub rotateBackupFolder (backupDrive, backupDir)
     Dim objFSO, objFolder, newBackupFolderName
     Dim backupFolder : backupFolder = backupDrive & backupDir
     Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     For i=BACKUP_ARCHIVE_SIZE to 0 Step -1
      If(i = 0) Then
       newBackupFolderName = backupFolder
      Else
       newBackupFolderName = backupFolder & i
      End If
      If objFSO.FolderExists(newBackupFolderName) Then
       Set objFolder = objFSO.GetFolder(newBackupFolderName)
       If(i = BACKUP_ARCHIVE_SIZE) Then
        objFolder.Delete True
       Else
        newBackupFolderName = backupFolder & i+1
        objFolder.Move newBackupFolderName
       End If
      End If
     Next
    end sub
    ' SubProcedure to perform a folder copy.  Utilizes the Windows xcopy
    '  command.  The xcopy switches used:
    '    /E Copies directories and subdirectories, including empty ones.
    '    /I If destination does not exist and copying more than one file,
    '       assumes that destination must be a directory.
    '    /K Copies attributes. Normal Xcopy will reset read-only
    '       attributes.
    '    /C Continues copying even if errors occur.
    '    /Y Suppresses prompting to confirm you want to overwrite an
    '       existing destination file.
    ' Input
    '  src - (String) path of source folder
    '  dstDrive - (String) disk drive of destination
    '  dstFolder - (String) path of destination
    '  force - (Boolean) if false, will prompt before overwriting
    '          existing files
    sub folderCopy (src, dstDrive, dstFolder, force)
     Dim objFSO
     Dim dst : dst = dstDrive & dstFolder
     Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If objFSO.FolderExists(src) Then
      Dim objFolder, objDrive
      'Check for available disk space first
      Set objFolder = objFSO.GetFolder(src)
      Set objDrive = objFSO.GetDrive(dstDrive)
      If isThereAvailableSpace(objDrive, objFolder.Size) Then
       Dim command : command = "xcopy """ & src & """ """ & dst & """ /E /I /K /C"
       If (force) Then
        command = command & " /Y"
       End If
       runCmd command
      Else
       writeToLog "ERROR! Insufficient Disk Space to copy folder: " & src
       WScript.Echo "Error! Insufficient Disk Space!"
      End If
     Else
      writeToLog "ERROR! Folder not found: " & src
      WScript.Echo "ERROR: Folder doesn't exist (" & src & ")"
     End If
    end sub
    ' SubProcedure to perform a file copy. Utilizes the Windows xcopy
    '  command. The xcopy switches used:
    '    /I If destination does not exist and copying more than one file,
    '       assumes that destination must be a directory.
    '    /K Copies attributes.
    '    /C Continues copying even if errors occur.
    '    /Y Suppresses prompting to confirm you want to overwrite an
    '       existing destination file.
    ' Input
    '  src - (String) path of source file
    '  dstDrive - (String) disk drive of destination
    '  dstFile - (String) path of destination
    '  force - (Boolean) if false, will prompt before overwriting
    '          existing files
    sub fileCopy (src, dstDrive, dstFile, force)
     Dim objFSO
     Dim dst : dst = dstDrive & dstFile
     Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If objFSO.FileExists(src) Then
      Dim objFile, objDrive
      'Check for available disk space first
      Set objFile = objFSO.GetFile(src)
      Set objDrive = objFSO.GetDrive(dstDrive)
      If isThereAvailableSpace(objDrive, objFile.Size) Then
       Dim command : command = "xcopy """ & src & """ """ & dst & """ /I /K /C"
       If (force) Then
        command = command & " /Y"
       End If
       runCmd command
      Else
       writeToLog "ERROR! Insufficient Disk Space to copy file: " & src
       WScript.Echo "Error! Insufficient Disk Space!"
      End If
     Else
      writeToLog "ERROR! File not found: " & src
      WScript.Echo "ERROR: File doesn't exist (" & src & ")"
     End If
    end sub
    ' Function to check if there's sufficient disk space for the
    ' requested size
    ' Input
    '  objDrive - (Object) the disk drive to check for space
    '  spaceNeeded - (Integer) number of bytes being requested
    ' Return
    '  (Boolean) if the requested space is available
    function isThereAvailableSpace(objDrive, spaceNeeded)
     If (objDrive.AvailableSpace > spaceNeeded) Then
      isThereAvailableSpace = True
     Else
      isThereAvailableSpace = False
     End If
    end function
    ' SubProcedure to write current version of Shoreware to a file
    ' Input
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    sub setDataVersion (backupDrive, backupDir, serverType)
     Dim version
     Dim fileName : fileName = backupDrive & backupDir & "\" & SW_VERSION_FILE
     If(serverType = SERVER_TYPE_HQ) Then
      version = objShell.RegRead(REG_HQ_VERSION)
     ElseIf(serverType = SERVER_TYPE_DVM) Then
      version = objShell.RegRead(REG_DVM_VERSION)
     ElseIf(serverType = SERVER_TYPE_VMB) Then
      'For now, VMB doesn't do any version checking
      Exit sub
     ElseIf(serverType = SERVER_TYPE_UCB) Then
      'For now, UCB doesn't do any version checking
      Exit sub
     ElseIf(serverType = SERVER_TYPE_DVS) Then
      'For now, DVS doesn't do any version checking
      Exit sub
     End If
     writeToLog "SW Data Version: " & version
     writeToFile fileName, 2, version
    end sub
     </script>
    </job>
    Jared

Maybe you are looking for

  • SharePoint Foundation 2010 Calendar Questions

    We would like to move our equipment resource calendar from Outlook 2010 Meeting Requests to SharePoint calendars if SharePoint Foundation calendars can add additional functionality. The problem we have had with the standard Outlook meeting request wi

  • Friends IPod connects to network but mine won't

    My iPod touch used to connect to the internet at work but now it no longer does. A coworker has a 2nd generation ipod touch as well and it connects to the internet just fine. I adjusted my WiFi settings to match his to no avail. What else do I need t

  • ABAP General Forum in Santa mode for the next 10 days.

    Dear gurus, In an attempt to close some threads neglected by the OP's this year and achieve SDN's goals with regards to points (see the Welcome thread about the UN food program and other donations made by SAP based on annual contributions) I will be

  • ITunes start and try to download a podcast and it freeze !

    I can not stop or cancel the download... Any ideas ? Thanks for any answers, you're welcome !

  • ITunes 10.7 and 10.8.5 install?

    I currently running 10.7.5 on my Mac Pro; I'd like to upgrade to 10.8.x, but I also want to keep my iTunes 10.7 as I prefer the interface over the newer version. When I attempt to upgrade to 10.8.x, it installs 10.8.5 along with iTunes 11.x. iTunes 1