Script to STAR/STOP Oracle 11g Std.One DB on Windows Server 2008

Hi, all
Every friday we need backup our Windws Server 2008 ( Full backup),
To do that, we need
1.- 5:00pm Shutdown our Oracle 11g Std.One Database
2.- 5:05 Launch the FULL Backup procees 5:05pm.
3.- 5:10 Wait until the backup is finished (2 hours aprox.) in a external disk.
3.- 7:15 Startup Oracle 11g 5 min.
Is there any script we can use in a Windows Server schedule job, to Stop oracle at 5pm and Startup Oracle lets say at 8:00pm??
Thanks in advance.

arzamm wrote:
Hi, all
Every friday we need backup our Windws Server 2008 ( Full backup),
To do that, we need
1.- 5:00pm Shutdown our Oracle 11g Std.One Database
2.- 5:05 Launch the FULL Backup procees 5:05pm.
3.- 5:10 Wait until the backup is finished (2 hours aprox.) in a external disk.
3.- 7:15 Startup Oracle 11g 5 min.
Is there any script we can use in a Windows Server schedule job, to Stop oracle at 5pm and Startup Oracle lets say at 8:00pm??
Thanks in advance.Just like any scripting .. same commands you would issue at a command line .. put them in a script file. Unfortuanately, Windows, among it's various scripting limitations (vis a vis *nix) does not all the kind of input redirection needed to do it in a single file.
Solution is something like this:
echo shutdown immedate > shutdown.sql
echo exit >> shutdown.sql
sqlplus / as sysdba @ shutdown.sql
del shutdown.sql
exitput that in a .cmd file. schedule .cmd file

Similar Messages

  • Oracle 11g R2 install problem on Windows Server 2008 R2 SP1

    Hi all,
    Trying to install the Oracle 11g R2 database onto Windows Server 2008 R2 SP1.
    I get as far as running the setup and a black window flashes up on the screen and disappears.
    The log files only show the following:
    Using paramFile: C:\Temp\database\install\oraparam.ini
    Checking monitor: must be configured to display at least 256 colors. Actual 65536 Passed
    The number of files bootstrapped for the jre is 0.
    The number of files bootstrapped for the oui is 0.
    I've tried running setup -debug from the command line but no further information is logged.
    Any help in troubleshooting further is appreciated.

    That is the complete log file. No error messages or further information is given.
    I'm not sure how to check:
    Statement of Direction: Oracle Database 11g Release 2 – Microsoft Windows 7 and Windows Server 2008 R2 [ID 867040.1]
    I have checked on:
    http://docs.oracle.com/cd/E11882_01/install.112/e24283/toc.htm
    The server meets all the hardware requirements. The default file share is accessible and it is running a supported browser. The installer is being run with Admin rights. I'm not sure what else I need to check.

  • Oracle 11.2.0.3 on Windows Server 2008 R2 64-bit

    Good night Oracle community,
    I'm having problems on using Oracle 11.2.0.3 on Windows Server 2008 R2 64-bit that runs inside a virtual machine.
    The first problem was the error ORA-12152 (unable to send break message) when using a 32-bit server version when trying to connect via SQLPlus using domain administrator user. I did reboot, tnsping, checked parameters and oracle support articles but neither help me. So I uninstalled it and installed the 64-bit version and it wasn't possible to run the applications like netca.
    Now I installed it on a local profile version 32-bit to see if the problem was related to the domain.
    My question is simple: is this environment ok to run a production database server? 11.2.0.3 is that stable with Windows 2008?
    Thank you very much!

    Oracle Database 11.2.0.3.0 is certified on Microsoft Windows (32-bit) 2008.
    Error: ORA 12152
    Text: TNS:unable to send break message
    Cause: Unable to send break message. Connection probably disconnected.
    Action: Re-establish connection. If the error is persistent, turn
    n tracing and reexecute the operation.
    Refer to MOS
    ORA-12152 "Unable To Send Break Message" on Connection [ID 363638.1]

  • Oracle 10g xe 32 bit on windows server 2008 64 bit

    I have windows server 2008 64 bit and oracle 10g xe 32 bit
    does it work on ?
    I have tested but no success.
    Any one knows reasons

    You seem to have posted threads before on very similar topics, and you also posted this once in the appropriate forum:
    {thread:id=2270082}
    Please avoid duplicating posts!
    As already stated in one of your other threads, it is not a certified combination. Again, read the Installation Guide !
    If you want to play with it and try to make it "work", that's up to you. And as you say you have already tried, with "no success", it seems you already got an answer.
    I suggest you close this thread and continue in the dedicated 10g XE forum thread (or try the 11g XE Beta - only for 32-bit Windows yet, but there's a chance the general release will be aimed for Windows x64 as well).
    Edited by: orafad on Aug 20, 2011 1:14 PM

  • Oracle 10.1.0.4 on Windows Server 2008 64 bits Standard

    Hello,
    For migratiion purposes, we would need to install Oracle 10.1.4.0 on a Windows Server 2008 64 bits Standard, and then upgrade it to 11g.
    We have forced Oracle 10.2.0.4 installation on a Windows Server 2008 64 bits Standard, but we are not sure for 10.1.0.4.
    Since we don't have that software version to try it and we are looking for it, is it possible to install Oracle 10.1.4.0 on a Windows Server 2008 64 bits Standard?
    Could you point me out a document that reference Oracle versions compatibilty with Windows Server 2008?
    Thanks

    At MOS, click on the certifications tab, then enter database in the first drop down box, and select the rdbms. Then enter the relevant info in the other boxes, and then you will see Oracle Database 10.1.0.4.0 is not certified on Microsoft Windows x64 (64-bit) 2008 R2
    Certification is a little more strict than supported, but extended support ended in January.      REMINDER: Premier Support for Oracle Database 10.1 ends January 2009 [ID 761713.1]
    There's always lifetime support, but your case shows how useful that can be.

  • How to Stage directory for Oracle EBS R12.1.1 on Window Server 2008 ?

    Hi Every Body,
    1- How to Stage directory for Oracle EBS R12.1.1 downloaded from e-delivery.com on Window Server 2008.?
    -- I have download all files from e-delivery and check the md5 and all files are OK.
    I extracted the entire files with winrar program to the same directory and during the unzipping I was notified to replace these files (dvd.label and component.label) and I agreed each time. So >>
    2- Was that a problem ?
    -- I have setup vc++ from VS6 , the sp6, cygwin , ... and set up the active directory and the domain.. and all other requirements.
    BUT when i started the ebs set up it raise the "*Os User and Group Check*" error.
    even if I am the only user and sure I am the Administrator. and also I run this Command to be sure
    C:\>net localgroup administrators and it said that the administrator is one of the administrators group.
    3- Somebody said that I have to change the temp and tmp folder to be on c:\ drive >> might this solve the problem?
    thanks in advance.

    Hi,
    Most of the instructions you have mentioned , already was configured.
    except for the tmp and temp directories.
    And even I changed them from System Properties >> Advanced >>  Environment Variable under User variable for Administrator and System variables , the problem still exist Os User and Group Check .
    I attach the conf_VIS.txt file because I thought it may help.
    http://www.4shared.com/document/1bS6aio5/conf_VIS.html
    Actually I am not sure about the rapid install patch version but I have download the EBS R12 from the following link and I think it contains the recent installer version
    Link >> Oracle E-Business Suite Release 12.1.1 Media Pack for Microsoft Windows (32-bit)
    http://edelivery.oracle.com/EPD/Download/get_form?egroup_aru_number=11250138
    Note If you still can not open the link just suggest a suitable file hosting and I will upload to you. here I used 4shared and hoped it suits you.

  • Running oracle database xe (express edition) on windows server 2008 r2

    Is it supported to run Oracle Database XE on Windows Server 2008 R2?
    Database XE is only supported as 32-bit. Current builds of Windows Server 2008 only come in x64 configurations.
    Here are the Database XE system requirements for windows:
    [http://docs.oracle.com/cd/E17781_01/install.112/e18803/toc.htm]
    The docs say that 32-bit windows is required, yet they also say that windows server 2008 is supported.
    Windows Server 2008 R2 came out in 2009, and in R2 they eliminated 32-bit OS (though there is the WOW64 subsystem to run 32-bit programs within the 64-bit OS).
    See:
    - [Wikipedia page about windows server 2008 with info on R2|http://en.wikipedia.org/wiki/Windows_Server_2008#Windows_Server_2008_R2]
    - [Wikipedia page on "windows 32-bit on windows 64-bit"|http://en.wikipedia.org/wiki/WOW64]
    Thanks,
    Matt

    Hello Matt,
    Is it supported to run Oracle Database XE on Windows Server 2008 R2?No.
    The docs say that 32-bit windows is required, yet they also say that windows server 2008 is supported.So this means that only 32bit versions of 2008 will be supported.
    Windows Server 2008 R2 came out in 2009, and in R2 they eliminated 32-bit OS (though there is the WOW64 subsystem to run 32-bit programs within the 64-bit OS).Which is probably why 2008 R2 is not supported.
    You can either take the VM approach and install a 32 bit Windows or 64 bit Linux host, or you can queue in the list of persons waiting for a 64 bit Windows release. See the following thread for details (and the queue) for the latter: {thread:id=2277728}
    -Udo

  • Oracle Dev-suite 10g installation on WINDOWS server 2008 R2

    Hi Friends,
    Is it possible to install Oracle Dev-suite 10g on WINDOWS server 2008 R2.Any idea on this,can you please share.
    Best regards,
    Rafi.

    Hi John,
    Is it possible to do this by applying any patches or alternate option.
    Best regards,
    Rafi.

  • Oracle Forms and Reports 10gR2 for Windows Server 2008 (64bit)

    Hi!
    I need to install Oracle Forms and Reports 10gR2 in a windows server 2008 64 bit machine. But I cannot find the installer of it. Is there a way to do it?
    Thanks...

    I need to install Oracle Forms and Reports 10gR2 in a windows server 2008 64 bit machine.Be aware that Oracle Forms and Reports 10gR2 (AS 10.1.2.0.2) is not certified for windows server 2008, as from Oracle Certification Matrices

  • Pb with pro*C / Oracle 11 / VS2010 on Windows server 2008

    Hello,
    I am migrating an application from Windows server 2003 / Oracle 10gr2 / Visual Studio 2003 to Windows Server 2008 / Oracle 11gr2 / Visual Studio 2010 and I am having some issue with the compilation of our oci files.
    After fixing the common issue related to path change for Visual Studio, I ran in the following error message while trying to compile one of my file:
    Syntax error at line 48, column 9, file C:\Program Files\Microsoft Visual Studio 10.0\VC\include\vadefs.h:
    Error at line 48, column 9 in file C:\Program Files\Microsoft Visual Studio 10.0\VC\include\vadefs.h
    typedef W64 unsigned int uintptrt;
    ........1
    PCC-S-02201, Encountered the symbol "__w64" when expecting one of the following:
    auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name,
    Syntax error at line 0, column 0, file C:\mgt_sita\Integration\MS\Archive\dev\TOOL\gSGBD\gSGBD.pc:
    Error at line 0, column 0 in file C:\mgt_sita\Integration\MS\Archive\dev\TOOL\gSGBD\gSGBD.pc
    PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the following:
    ; : an identifier, end-exec, random_terminal
    Error at line 0, column 0 in file C:\mgt_sita\Integration\MS\Archive\dev\TOOL\gSGBD\gSGBD.pc
    PCC-F-02102, Fatal error while doing C preprocessing
    Searching on the web lead me first to use a work around to define W64 and _W64, but that only leads to more errors of the same kind after.
    Also, I've found that "Error at line 0, column 0" may be an indication of missing semi-column or brace, but as the source file has not been changed during this migration, it is still syntactically correct as it was compiling with earlier version of pro*c. Of course, I have double checked and I don't think I am missing any obvious brace or semi-column, or coma ...
    Any help or suggestion will be greatly appreciated.
    Thanks
    Eric

    I'm not sure how much help my post will be, but perhaps it will have some value for you.
    There's an unpublished bug on this issue (Bug 10017848 - PRO*C PRECOMPILER CANNOT HANDLE _W64 IN TYPEDEF) but it has not been resolved as of this writing.
    If you are not familiar with the purpose of "__w64" (which has been deprecated) you can see the following in the MS documentation:
    [url http://msdn.microsoft.com/en-US/library/s04b5w00(v=vs.100).aspx]Visual Studio 2010 __w64 description
    Now, one thing that you may be able to use in your situation is to simply make "__w64" an "empty define" at the top of your source file(s) like so:
    #ifdef WIN32
    #define __w64
    #endif
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <sqlca.h>
    #include <sqlda.h>
    #include <sqlcpr.h>
    ... rest of code ...Of course the above assumes that WIN32 has been defined - if it has not, you will need to use another symbol, make adjustments, etc.
    As an example:
    proc define=(_WSTDIO_DEFINED,WIN32) code=ansi_c parse=full common_parser=yes atest.pcIf you have a large amount of files that can be tedious of course but it may be a potential workaround for you.

  • Oracle 8i compatible with Windows Server 2008?

    Does anyone know whether Oracle 8i can be run on Windows Server 2008? My organization has only a license for Oracle 8i and we're buying new servers coming with Windows Server 2008.
    Thank you, Chaiyong

    There is no such thing as a licence for "Oracle 8i" there is only a licence for Oracle. Do you mean that you're out of support ?
    In any event 8i is desupported.
    Best bet is to install P2V a VMware Windows 2000 and leave it at that.

  • Oracle Database XE with Microsoft Windows Server 2008 (32-bit)

    I would like to find out if Oracle Database XE works with Microsoft Windows Server 2008 (32-bit)?
    If not, is there any other Oracle Open Source Database version can work with Microsoft Windows Server 2008 (32-bit)?
    Any help would be greatly appreciated!

    I am installing W2k8 R2 Domain Controller with Oracle Express 10g.
    This is the tip to make it work.
    Go to the installer OracleXE.exe -> Right click + Select Properties + Compatibility + Run this program in Compatibility Mode fot + Windows 2003 Sp1
    Then Select Run this Program as administrator.
    After this run the OracleXe.exe and it will install properly.
    Remember to double check that everything works fine.

  • Planning to purchase Oracle 11g Standard One Edition

    I am planning to purchase Oracle 11g Standard One Edition at the same time I have some following questions.
    Plat form
         Server with
    Dual CPU Inter Core 2 Quada
              4 GB RAM
              500 GB HDD
              Windows 2003
              2 MBPS Broadband
         40 Clients
    *18 Locations*
    Inter Core 2 Due
    2 GB RAM
    2 MBPS Broadband
    All clients should be connected to server over the internet with VB 6.0 and VB.Net 2005 both the applications.
    This is possible?

    I am planning to purchase Oracle 11g Standard One Edition at the same time I have some following questions.
    Plat form
         Server with
    Dual CPU Inter Core 2 Quada
              4 GB RAM
              500 GB HDD
              Windows 2003
              2 MBPS Broadband
         40 Clients
    *18 Locations*
    Inter Core 2 Due
    2 GB RAM
    2 MBPS Broadband
    All clients should be connected to server over the internet with VB 6.0 and VB.Net 2005 both the applications.
    This is possible?

  • Oracle 11g R2 to MS Access .mdb (Windows Server 2008 64-bit) problem

    I have a need to make connection from Oracle 11g R2 to MS Access database file (mdb). OS is MS Windows Server 2008 64-bit. My configuration is next:
    1. I made System DNS mikeacs (using c:\windows\sys_wow6\odbcad32.exe) to my access mdb file;
    2. I made initmikeacs.ora file in ora_home\hs\admin folder:
    # HS init parameters
    HS_FDS_CONNECT_INFO = mikeacs
    HS_FDS_TRACE_LEVEL = debug
    HS_FDS_SHAREABLE_NAME = c:\Windows
    3. Listener.ora file is:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\Oracle\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\Oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
    (SID_NAME = mikeacs)
    (ORACLE_HOME = c:\oracle\product\11.2.0\dbhome_1)
    (PROGRAM = dg4odbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = cspo02)(PORT = 1521))
    4. Tnsnames.ora is:
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    MIKEACS =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=cspo02)(PORT=1521))
    (CONNECT_DATA=(SID=mikeacs))
    (HS=OK)
    5. After this, I restarted Listener:
    lsnrctl stop;
    lsnrctl start;
    Given feedback:
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Start Date 20-RUJ-2010 14:47:21
    Uptime 0 days 0 hr. 0 min. 3 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\Oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File c:\oracle\diag\tnslsnr\cspo02\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=cspo02)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "mikeacs" has 1 instance(s).
    Instance "mikeacs", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    6. I created db link: create public database link macs using 'MIKEACS' (connected as sysdba);
    7. tnsping mikeacs:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=cspo02)(PORT=1521)) (CONNECT_DATA=(SID=mikeacs)) (HS=OK))
    OK (0 msec)
    Then, when I try fire query (connected as sysdba): select * from mytable@macs;
    get result:
    ERROR at line 1:
    ORA-28513: internal error in geterogeneous remote agent
    ORA-02063: preceding line from MACS;
    Although, when I fire the same query, but connected as other user, get next result:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC Driver Manager] Data source name not found and no default
    driver specified {IM002}
    ORA-02063: preceding 2 lines from MACS
    Where is my problem? Please help. Thanks in advance!

    That's the problem. DG4ODBC on 64bit Windows is 64bit and thus it also requires a 64bit ODBC driver.
    If you don't find one - maybe you can install DG4ODBC 32bi on a 32bit platform (please do NOT install it on the 64bit Windows machine) and then use this 32biit DG4ODBC with the 32bit ODBC driver.
    Another option would be to purchase a commercial ODBC driver or a bridged ODBC driver.

  • Installation of Oracle 11g Release 2 on Windows Server 2008 R2

    Hi:
    When I tried to install 64-bit Oracle 11g Release 2 on a system running 64-bit Windows Server 2008 R2.
    One of the system pre-requisites failed with the following error message:
    Checking operating system requirements ...
    Expected result: One of 5.0,5.1,5.2,6.0
    Actual Result: 6.1
    Check complete. The overall result of this check is: Failed <<<<
    Problem: Oracle Database 11g is not certified on the current operating system.
    Recommendation: Make sure you are installing the software on the correct platform.
    I presume 6.0 is Windows 2008 Server and 6.1 should be Release 2.
    Does this mean that this version is not compatible with Server 2008 Release 2?
    venki
    Edited by: thevenkat on Jan 20, 2010 9:37 PM

    Hans Forbrich wrote:
    [email protected] wrote:
    Does anyone know when we can expect 11g R2 for Windows?No one outside of Oracle officially knows (and they are under NDA)
    No one inside Oracle is permitted to say, or pre-announce release dates for legal reasons.
    Which is why I gave you the link - so you could monitor for yourself.OK, thanks...
    I was just hoping there was an official release date and I just couldn't find it.
    Is there any information about features in 11gR2 for Windows available yet?
    Or can you maybe tell me if it will be possible to mount the new "database filesystem" like we can do on linux?
    I remember oracle did something similar with Oracle ifs (Internet File System) back in Oracle 9i. (or was it 8i?)
    Regards
    Thomas

Maybe you are looking for

  • SFTP: The invocation resulted in an error: java.util.NoSuchElementException

    I have created a business service using the SFTP protocol. When testing the BS, I received the "known_hosts doesn't exist or doesn't have read permission" error, which I resolve by placing the known_host file in $Domain_Home\config\osb\transports\sft

  • Need help with sharing - Can't see shared playlist

    I have my songs on a Windows 7 Pro 64 bit computer. I turned on home sharing and selected a playlist to be shared. I'm trying access the shared content on a Windows XP and a Vista machine, but I cannot see the shared playlist. The Vista machine can s

  • How to get the selectOneRadio value in javascript

    Hi, I want the selectOneRadio value in javascript. Can anyone give us a solution how to get the selectOneRadio value to javascript from jspx page. Thanks, Eswari

  • Solaris 10 - IPv6 Configuration

    Hey, i have some Problems with IPv6 configuration on Solaris 10 (SPARC). I can't configure an physical Interface with an IPv6-address. Every way I choose to configure, Solaris always create a virtual Interface, and give this Interfface the IP-address

  • ESS/MSS config

    Dear Experts, Can anyone send me ESS/MSS config and support issues pdf ? Regards RS