Reg : Script for shutdown startup  in  oracle9i

Hi,
I need shutdown and startup sqlfiles script while taking Coldbackup in oracle9i.

U need to perform a cold backup using a script? this one will create a backup from SQL*Plus connected as SYSDBA.
Rem Set SQL*Plus variables to manipulate output
set feedback off heading off verify off
set pagesize 0 linesize 200
Rem Set SQL*Plus user variables used in script
Rem Linux User variables
define dir = '/backup'
define fil = '/tmp/closed_backup_commands.sql'
prompt *** Spooling to &fil
spool &fil
select 'host cp '|| name ||' &dir' from v$datafile order by 1;
select 'host cp '|| member ||' &dir' from v$logfile order by 1;
select 'host cp '|| name ||' &dir' from v$controlfile order by 1;
select 'host cp '|| name ||' &dir' from v$tempfile order by 1;
spool off;
Rem Shutdown the database cleanly
shutdown immediate;
Rem Run the copy file commands
@&fil
Rem Start the database again
startup;
On Linux, connect to SQL*Plus as SYSDBA and run this script like this:
LINUX> sqlplus /nolog
SQL> connect system/manager as sysdba
SQL> @closed_backup.sql

Similar Messages

  • How to create a script for DB Startup

    Hi to all,
    I need to create a script for DB Startup with this command:
    sqlplus /nolog
    conn sys/mypwd as sysdba;
    startup;
    exit
    It is possible ?
    At now, when I run Sqlplus /nolog I see only the prompt sql>.
    I Hope in Your help.
    Best Regards
    Gaetano

    Hi,
    Assuming you are on Windows environment. You may use the following two scripts to startup the database.
    startup.bat
    ========
    net start OracleServiceYOUR_INSTANCE_NAME
    set oracle_sid=YOUR_INSTANCE_NAME
    D:\oracle\product\10.2.0\db_1\bin\sqlplus /nolog @C:\DBA\startDB.sql
    net start OracleOraDb10g_home1TNSListener
    pause
    startDB.sql
    =========
    connect sys/your_password as sysdba
    startup pfile=D:\ORACLE\ORADBA\pfile\init.ora
    exit
    Similarly, you may write your own shutdown script.

  • Power Shutdown/startup Process

    We are going thru building power maintenance activity and my question is, is there any Cisco recommened or process or practicse for shutdown/startup the Telepresence devices and VCS, TCS, MUC.

    Hi Mahesh,
    We need to follow standard procedure as mentioned in the admin guides, like for VCS it is (Maintenance > Restart and then click Restart System )
    HTH
    Manish

  • Shell Script  for Startup and Shutdown the database

    Hi,
    i want Shell Script for Startup and Shutdown the database in Solaries.
    could any one can hep me where i can get this script. or send to me to [email protected]
    Thanks & Regards,
    Gangi reddy

    SHUTDOWN
    SHUTDOWN ABORT]
    Shuts down a currently running Oracle instance, optionally closing and dismounting a database.
    Terms
    Refer to the following list for a description of each term or clause:
    ABORT
    Proceeds with the fastest possible shutdown of the database without waiting for calls to complete or users to disconnect.
    Uncommitted transactions are not rolled back. Client SQL statements currently being processed are terminated. All users currently connected to the database are implicitly disconnected and the next database startup will require instance recovery.
    You must use this option if a background process terminates abnormally.
    IMMEDIATE
    Does not wait for current calls to complete or users to disconnect from the database.
    Further connects are prohibited. The database is closed and dismounted. The instance is shutdown and no instance recovery is required on the next database startup.
    NORMAL
    NORMAL is the default option which waits for users to disconnect from the database.
    Further connects are prohibited. The database is closed and dismounted. The instance is shutdown and no instance recovery is required on the next database startup.
    TRANSACTIONAL [LOCAL]
    Performs a planned shutdown of an instance while allowing active transactions to complete first. It prevents clients from losing work without requiring all users to log off.
    No client can start a new transaction on this instance. Attempting to start a new transaction results in disconnection. After completion of all transactions, any client still connected to the instance is disconnected. Now the instance shuts down just as it would if a SHUTDOWN IMMEDIATE statement was submitted. The next startup of the database will not require any instance recovery procedures.
    The LOCAL mode specifies a transactional shutdown on the local instance only, so that it only waits on local transactions to complete, not all transactions. This is useful, for example, for scheduled outage maintenance.
    Usage
    SHUTDOWN with no arguments is equivalent to SHUTDOWN NORMAL.
    You must be connected to a database as SYSOPER, or SYSDBA. You cannot connect via a multi-threaded server. For more information about connecting to a database, see the CONNECT command earlier in this chapter.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm#1013607
    Joel Pérez

  • Startup/Shutdown script for OBIEE 11g on Linux

    Hi all,
    as a follow-up to [url http://forums.oracle.com/forums/thread.jspa?messageID=4546010]an earlier thread by some fine gentleman, I have improved the original startup/shutdown script for Linux a bit, making sure that all processes are handled correctly. The script has been tested and works fine on CentOS 5.5 with Oracle BI 11.1.1.3.0 in a clustered configuration. Instructions:
    Manual start/stop:
    > service obiee start
    > service obiee stop
    > service obiee status
    Automatic start/stop during boot sequence:
    > chkconfig --add obiee
    > chkconfig obiee on
    Note that in order for the procedure to go through smoothly, you need to provide the admin credentials (username/password, defaulting to weblogic/weblogic) in three different places:
    1. In configuration file <FMW_HOME>/user_projects/domains/<domain name>/servers/AdminServer/security/boot.properties for the administration server;
    2. In script <FMW_HOME>/user_projects/domains/<domain name>/bin/startManagedWebLogic.sh (variables WLS_USER and WLS_PW) for the managed server;
    3. In the startup script itself (variables BIEE_USER and BIEE_PASSWD) for shutting down the managed server.
    Complete logs are available in /var/log/obiee-start (-stop).log files.
    Please comment as necessary,
    Chris
    #!/bin/bash
    # File:    /etc/init.d/obiee
    # Purpose: Start and stop Oracle Business Intelligence 11g components.
    # chkconfig: 2345 99 10
    # description: Manage OBIEE service.
    # These values must be adapted to your environment.
    ORACLE_OWNR=oracle                  # Local Unix user running OBIEE
    ORACLE_FMW=/home/oracle/biee        # Deployment root directory
    BIEE_USER=<username>                # BIEE administrator name
    BIEE_PASSWD=<password>              # BIEE administrator password              
    BIEE_DOMAIN=<domain name>           # Domain name
    BIEE_INSTANCE=instance1             # Instance name
    BIEE_SERVER=bi_server1              # Server name
    BIEE_MANAGER_URL=<hostname>:7001    # Admin server URL (hostname:port)   
    # These should require no change.
    WL_PATH=$ORACLE_FMW/wlserver_10.3/server/bin
    BIEE_PATH=$ORACLE_FMW/user_projects/domains/$BIEE_DOMAIN/bin
    ORACLE_INSTANCE=$ORACLE_FMW/instances/$BIEE_INSTANCE
    export ORACLE_INSTANCE
    START_LOG=/var/log/obiee-start.log
    STOP_LOG=/var/log/obiee-stop.log
    SUBSYS=obiee
    start() {
        echo "********************************************************************************"
        echo "Starting Admin Server on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$BIEE_PATH/startWebLogic.sh" &
        wait_for "Server started in RUNNING mode"
        echo "********************************************************************************"
        echo "Starting Node Manager on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$WL_PATH/startNodeManager.sh" &
        wait_for "socket listener started on port"
        echo "********************************************************************************"
        echo "Starting Managed Server $BIEE_SERVER on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$BIEE_PATH/startManagedWebLogic.sh $BIEE_SERVER http://$BIEE_MANAGER_URL" &
        wait_for "Server started in RUNNING mode"
        echo "********************************************************************************"
        echo "Starting BI components on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$ORACLE_INSTANCE/bin/opmnctl startall"
        echo "********************************************************************************"
        echo "OBIEE start sequence completed on $(date)"
        echo "********************************************************************************"
    stop() {
        echo "********************************************************************************"
        echo "Stopping BI components on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$ORACLE_INSTANCE/bin/opmnctl stopall"
        echo "********************************************************************************"
        echo "Stopping Managed Server $BIEE_SERVER on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$BIEE_PATH/stopManagedWebLogic.sh $BIEE_SERVER t3://$BIEE_MANAGER_URL $BIEE_USER $BIEE_PASSWD"
        echo "********************************************************************************"
        echo "Stopping Node Manager on $(date)"
        echo "********************************************************************************"
        pkill -TERM -u $ORACLE_OWNR -f "weblogic\\.NodeManager"
        echo "********************************************************************************"
        echo "Stopping Admin Server on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$BIEE_PATH/stopWebLogic.sh"
        echo "********************************************************************************"
        echo "OBIEE stop sequence completed on $(date)"
        echo "********************************************************************************"
    wait_for() {
        res=0
        while [[ ! $res -gt 0 ]]
        do
            res=$(tail -5 "$START_LOG" | fgrep -c "$1")
            sleep 5
        done
    case "$1" in
        start)
            echo "********************************************************************************"
            echo "Starting Oracle Business Intelligence on $(date)"
            echo "Logs are sent to $START_LOG"
            echo "********************************************************************************"
            start &> $START_LOG &
            touch /var/lock/subsys/$SUBSYS
        stop)
            echo "********************************************************************************"
            echo "Stopping Oracle Business Intelligence on $(date)"
            echo "Logs are sent to $STOP_LOG"
            echo "********************************************************************************"
            stop &> $STOP_LOG
            rm -f /var/lock/subsys/$SUBSYS
        status)
            echo "********************************************************************************"
            echo "Oracle BIEE components status...."
            echo "********************************************************************************"
            su $ORACLE_OWNR -c "$ORACLE_INSTANCE/bin/opmnctl status"
        restart)
            $0 stop
            $0 start
            echo "Usage: $(basename $0) start|stop|restart|status"
            exit 1
    esac
    exit 0

    You can use WLST to start/stop BI Services and it works on both Linux and Windows.
    Following link has the sample -
    http://download.oracle.com/docs/cd/E21764_01/bi.1111/e10541/admin_api.htm#CDEFAHDD

  • Startup and shutdown script for EP 60SP2 Unix

    Does anyone have a working script to shutdown and startup EP 60 SP2 on unix (solaris) that they would like to share.....
    Needed for sys ops to be able to log n and stop and start....and for admins to start and stop at the unix if server needs rebooted (for solaris patches, scheduled maintenance windows etc etc)
    Thanks
    John Ryan

    Hi John,
    The scripts below can be used to start the J2EE engine/portal so it gets you halfway there (doesn't stop).  The script also creates the log ouput under the tmp directory).  Then from a command you just have to type startdisp.sh or whatever script you're trying to run.
    PS. If you have your r3startup service set to automatic, you can just use the dispatcher script below.
    Hope this helps.
    Marty
    UNIXSERVER% more startdisp.sh
    #!/bin/ksh
    nohup cluster/dispatcher/go > /tmp/dispatcher.$$.out 2>&1 &
    UNIXSERVER% more startserver.sh
    #!/bin/ksh
    nohup cluster/server/go > /tmp/server.$$.out 2>&1 &
    UNIXSERVER% more startstate.sh
    #!/bin/ksh
    nohup cluster/state/go > /tmp/state.$$.out 2>&1 &

  • Startup and Shutdown scripts for OCS 9.0.4 on Windows?

    Hi,
    I wanted to know if startup and shutdown scripts for OCS 9.0.4 on Windows are available.
    I am thinking something like the ocsctl_sample scripts that OCS10g included.
    I have checked the OCS 9.0.4 documentation and not a lot of information for the windows platform is avaiable.
    Any information will be appreciated.
    Thanks,
    Ana

    There is no scripts that comes with 9.0.4.
    One possibility is to just write the commands you normally use in a batch-file, but note that then you have no checking, and if OCS runs on several machines you should have some checking for required processes etc.
    We are using some scripts that does this, but I'm not shure where they came from, possibly from Metalink or from this forum. Try a search. Our scripts are changed quite a bit for our needs, but I might be able to find the original ones.

  • Startup/Shutdown script for OBIEE 11.1.1.5.0 on Linux

    There was a very good thread on start/stop scripts for Oracle BI 11.1.1.3.0 that can be found at
    https://forums.oracle.com/forums/thread.jspa?messageID=9896816#9896816Now OBI11.1.1.5.0 is out and I tried to use the scripts in the post to start OBI 11.1.1.5.0 after system reboot. I did the following
    1) saved the scripts modified with my environemnt variables in /etc/init.d
    2) login as root
    3) issue command, and got in std out right away
    # service obiee start
    Starting Oracle Business Intelligence on Tue Sep 27 10:39:31 PDT 2011
    Logs are sent to /var/log/obiee-start.log
    4) check the log file
    [oracle@cchdb ~]$ tail -f /var/log/obiee-start.log
    at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:261)
    at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Truncated. see log file for complete stacktrace
    >
    <Sep 27, 2011 10:39:54 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    <Sep 27, 2011 10:39:54 AM PDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    <Sep 27, 2011 10:39:54 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    5) Check running processes
    [root@cchdb oracle]# ps -fe|grep obiee
    root 9332 1 0 10:39 pts/2 00:00:00 /bin/bash /etc/init.d/obiee start
    oracle 9452 9179 0 10:39 pts/1 00:00:00 tail -f /var/log/obiee-start.log
    root 9481 9305 0 10:40 pts/2 00:00:00 grep obiee
    OBI is not started. Can some one help ?

    Tried various things and has a work around.
    First of all, cannot make WLST work for me. Then tried manually step by step as described in reference https://forums.oracle.com/forums/thread.jspa?messageID=9896816#9896816 that is in fact agree with document e10541.
    1) Start Admin Server and response to prompt to username/password
    <BI Domain Home>/bin/startWebLogic.sh
    2) Start node manager
    $WL_PATH/startNodeManager.sh
    3) Start managed Server with Weblogic Server Admin Console
    4) Start System Components with opmnctl
    ./opmnctl startall This works with the following notes1) Do step one in backgroumd not work, cannot response the username/password prompt properly.
    2) If change WLS_USER and WLS_PW in <BI Domain Home>/bin/startManagedWebLogic.sh as in the reference cited abover, step 1 still prompt for username and stops right after username is provided.
    3) Step 3 does not work if use command line
    <BI Domain Home>/bin/startManagedWebLogic.sh bi_server1 http://<admin_server_host_name>:7001
    Has to use UI tool Weblogic Server Admin Console.  Question1) How to provide username/password to startWebLogic.sh to allow run it in background
    2) How to provide username/password to startManagedWebLogic.sh to allow run it in background

  • Startup Scripts for OBIEE 11g on Linux

    Hi, I originally spent many hours trying to find a startup/shutdown script for OBIEE on linux, in the end I compiled a new one based on notes in the install manual and other posts on the subject until I got it working consistantly
    Please add comments or improvements :)
    Note: you need to create the boot.properties file (in /security) for each server, and provide the username/password so WebLogic won't prompt for it when starting automatically (otherwise it doesn't start :p) ....refer to the install manual or [weblogic boot.properties|http://onlineappsdba.com/index.php/2010/08/21/weblogic-startup-prompting-from-username-password-bootproperties/]
    #!/bin/bash
    # /etc/init.d/obiee
    # Run-level Startup script for OBIEE
    # set required paths
    export ORACLE_BASE=/opt/oracle
    export ORACLE_HOME=/opt/oracle/product/11.1.0/db_1
    export ORACLE_OWNR=oracle
    export ORACLE_FMW=/opt/oracle/product/fmw
    export PATH=$PATH:$ORACLE_FMW/bin
    case "$1" in
    start)
    echo -e "Starting Weblogic Server...."
    su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startWebLogic.sh > /dev/null 2>&1 &"
    sleep 30
    echo -e "Starting Node Manager..."
    su $ORACLE_OWNR -c "$ORACLE_FMW/wlserver_10.3/server/bin/startNodeManager.sh > /dev/null 2>&1 &"
    sleep 30
    echo -e "Starting Managed Server: bi_server1..."
    su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startManagedWebLogic.sh bi_server1 [url for admin console] > /dev/null 2>&1 &"
    sleep 30
    echo -e "Starting Components...."
    su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl startall > /dev/null 2>&1 &"
    sleep 30
    stop)
    echo -e "Stopping Components...."
    su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl stopall > /dev/null 2>&1 &"
    sleep 30
    echo -e "Stopping Managed Server: bi_server1..."
    su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopManagedWebLogic.sh bi_server1 [url for admin console] [weblogic user] [weblogic pass] > /dev/null 2>&1 &"
    sleep 30
    echo -e "Stopping Weblogic Server...."
    su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopWebLogic.sh > /dev/null 2>&1 &"
    sleep 15
    status)
    echo -e "Component Status...."
    su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl status"
    restart)
    $0 stop
    $0 start
    echo "Usage: `basename $0` start|stop|restart|status"
    exit 1
    esac
    exit 0
    Hopefully this helps others in the same situation
    Cheers

    HI,
    Is this script for Enterprise Install on a single computer? For Simple install I think there is no concept of nodemanager and managedserver.
    --Joe                                                                                                                                                                                                                                                                                                                           

  • Shutdown script for linux

    Hi,
    I'm looking for a shutdown script for linux to put it in crontab and another for startup. Do you have any ?
    Thanks.

    OK, you can cron following commands (assume that all Oracle related env variables are set. We are setting ORACLE_SID just to ensure that we will be working with the right instance):
    59 7 * * *     su - oracle -c "export ORACLE_SID=ORCL; echo 'startup' | sqlplus -s '/ as sysdba' >>/dev/null" 2>&1
    31 16 * * *      su - oracle -c "export ORACLE_SID=ORCL; echo 'shutdown immediate' | sqlplus -s '/ as sysdba' >>/dev/null" 2>&1

  • Error in shutdown script for bea weblogic

    We have this error in the shutdown script of our bea weblogic:
    ./stopWebLogic.sh[33]: -Xms256m: not found.
    using the Oracle OCI database driver
    Shutdown initiated
    The shutdown sequence has been initiated.the script is as follows:
    echo "using the Oracle OCI database driver"
    export ORACLE_HOME=/opt/oracle/product/8.1.7
    export NLS_LANG=AMERICAN_AMERICA.UTF8
    export ORACLE_CLIENT_VERSION=817
    export ORACLE_API_VERSION=8
    PATH=$PATH:$ORACLE_HOME/bin
    SHARED_LIBRARY_PATH=$WEBLOGIC_HOME/lib/hpux11:$WEBLOGIC_HOME/lib/hpux11/oci$ORACLE_CLIENT_VERSION\_$ORACLE_API_VERSION:$ORACLE
    _HOME/lib
    PATH=$JDK_HOME/bin:$PATH
    export PATH
    # Set application specific variables
    DOMAIN_NAME=eGovStarters
    SERVER_NAME=MyServer
    WLS_PW=weblogic
    # change to domain directory
    cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
    # Allow other users in group to see created files - i.e. logfiles
    umask 027
    # Set system classpath initially to contain WebLogic product JARs
    CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
    #!/bin/sh
    # Weblogic start script for egovernment
    # Based on Colin Brick's initial version
    # Modified 02/04/03 - Colin Brick
    #       - included settings for Oblix from using SSO Assembly Test as example
    # Set General environment variables (Should normally not be changed)
    #Java settings
    JDK_HOME=/opt/bea/jdk131/
    export JDK_HOME
    JAVACMD=java
    JAVA_OPTIONS=""-server -Xms1024m -Xmx1024m -Xmn320m -XX:SurvivorRatio=8 -Xverbosegc:file=/opt/bea/wlserver6.1/config/eGovStart
    ers/logs/gc.log -Dweblogic.system.gc.enabled=false ""
    export JAVA_OPTIONS
    WEBLOGIC_PORT=51080
    #Bea settings
    BEA_HOME=/opt/bea
    export BEA_HOME
    WEBLOGIC_HOME=/opt/bea/wlserver6.1
    export WEBLOGIC_HOME
    BEA_SECURITY_POLICY=/opt/bea/wlserver6.1/lib/weblogic.policy
    export  BEA_SECURITY_POLICY
    #Oracle settings
    echo "using the Oracle OCI database driver"
    export ORACLE_HOME=/opt/oracle/product/8.1.7
    export NLS_LANG=AMERICAN_AMERICA.UTF8
    export ORACLE_CLIENT_VERSION=817
    export ORACLE_API_VERSION=8
    PATH=$PATH:$ORACLE_HOME/bin
    SHARED_LIBRARY_PATH=$WEBLOGIC_HOME/lib/hpux11:$WEBLOGIC_HOME/lib/hpux11/oci$ORACLE_CLIENT_VERSION\_$ORACLE_API_VERSION:$ORACLE
    _HOME/lib
    PATH=$JDK_HOME/bin:$PATH
    export PATH
    # Set application specific variables
    DOMAIN_NAME=eGovStarters
    SERVER_NAME=MyServer
    WLS_PW=weblogic
    # change to domain directory
    cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
    # Allow other users in group to see created files - i.e. logfiles
    umask 027
    # Set system classpath initially to contain WebLogic product JARs
    CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
    domain_NAME=eGovStarters
    SERVER_NAME=MyServer
    WLS_PW=weblogic
    # change to domain directory
    cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
    # Allow other users in group to see created files - i.e. logfiles
    umask 027
    # Set system classpath initially to contain WebLogic product JARs
    CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
    #Set the shared library path
    if [ -n "$SHLIB_PATH" ]; then
            SHLIB_PATH=$SHLIB_PATH:$SHARED_LIBRARY_PATH
    else
            SHLIB_PATH=$SHARED_LIBRARY_PATH
    fi
    export SHLIB_PATH
    # Start weblogic
    # change to weblogic home
    cd $WEBLOGIC_HOME
    PATH=$WL_HOME/bin:$JAVA_HOME/jre/bin:$JAVA_HOME/bin:$PATH
    $JAVACMD -classpath $CLASSPATH -Dbea.home=$BEA_HOME -Dweblogic.Domain=$DOMAIN_NAME -Dweblogic.Name=MyServer weblogic.Admin -ur
    l t3://localhost:$WEBLOGIC_PORT -username system -password $WLS_PW SHUTDOWNIt has obviously something to do with the line
    JAVA_OPTIONS=""-server -Xms1024m -Xmx1024m -Xmn320m -XX:SurvivorRatio=8 -Xverbosegc:file=/opt/bea/wlserver6.1/config/eGovStart
    ers/logs/gc.log -Dweblogic.system.gc.enabled=false ""I googled for this Xms1024m, Xmx1024m and it turns out to be for memory management for the java virtual machine.
    I don't know why it sais it can't find "-Xms256m" since it's not in the script.
    Anyone with some experience in this field who can help me out?

    ./stopWebLogic.sh[33]: -Xms256m: not found.
    this can be produced by something like this:
    javaoptions="-Xms256m" // or other option too
    $javacmd $javaoptions
    Now if javacmd has not been set, then $javacmd will be evaluated to the empty string, and the program to look for is the first part in $javaoptions, -Xms256m in our case.

  • Startup scripts for DB in one $OH and AS in another $OH

    Hello, I am setting up Oracle Collaboration Suite 10g on a SLES9 SP3 machine. I have used the installers and followed the docs (so I ended up creating oracle users, setting kernel params, modifying limites, etc myself). I am now trying to figure out how to get this setup to start on boot. I found the orarun package but the Oracle Collaboration Suite (OCS) docs seem to recommend against this. I am willing to use it if it works, however. I have also looked at the ocsctl_sample script that is installed in the apps tier, but that doesn't seem to handle starting a db in a different $OH and can not be run by root. I wrote a wrapper to use "su oracle -c cmd" but that didn't work out either.
    The setup I have is a database instance in one $ORACLE_HOME, and then the app server and apps in a separate $ORACLE_HOME (infrastructure/OID is on another server). Both of these $OH instances are listed in /etc/oratab of course. Since OCS handles mail it listens on privileged ports (25, 143, etc), so this listener may need to be started by root. I am thinking I only want one opmn instance, one apache instance, and one em instance on the system as well. I read through the init.d/oracle script from the orarun package and it seems like it only looks at the first $OH found in /etc/oratab if the /etc/profile.d/oracle.sh file is not found (I moved it out of the way as I have two scripts I use to set oracle environments depending on whether I'm working on the db or the as).
    Has anyone either used orarun or developed other scripts for starting a db instance in one $OH and an app server in another? Any tips?
    Thanks in advance,
    Chris

    Well, the issue is really multiple ORACLE_HOMEs. The single box install of OCS is two, in OCS 9i it was three. There is no problem with it, you just have to set the environment(mr obvious).
    As far as having a single EM, you'll have two on your apps box. One for the apps, the other for the DB. Again, no problem because they are on different ports.
    So, I guess the simplest explanation is just to write your own script. You can either create a sudoer for the mail listener, or set the setuid bit. There is a note on metalink for starting the mail listener as Oracle user.
    The safest way would be to log in as root each time the mail listener needs started, it depends what you can tolerate. You will come across these very same issues if you setup the web cache etc. for reserved ports.
    Another issue for automating the startup with your environment, is the fact that it is on two boxes. The processes need started in a particular order, the DB, Infra, then the apps. I don't have a good suggestion for that. You really should have put the DB and infra on one box, and the apps on another.

  • Missing startup script for version cue

    I'm having the problem where I don't seem to have the startup scripts for version cue in bridge.
    When I check the list of startup scripts in preferences, the other scripts all seem to be there like for contribute, fireworkds etc. However version cue is missing.
    I also checked the actual locations for the startup scripts.
    The scripts for version cue seem to be in the actual locations but for some reason they're not running or showing up in bridge or that's what I'm assuming anyway.
    I'm running bridge CS4 and version cue CS4.
    If anyone could help me that would be great!

    What then do they recommend?  The URL listed below is broken/no longer available.  The solution listed above does appear to work.  I installed Version Cue Server CS4 after having installed the rest of the suite on my workstation.  I used drive to link to the server(my machine which I am using for testing).  I had CS3 on this machine before uninstalling it and installing CS4.
    Re: Missing startup script for version cue
    Matthew Laun wrote:
     Adobe recommends that you do not follow the steps above to enable Version Cue CS4 in Bridge CS4.
    Please see this thread for more details:
    http://www.adobeforums.com/webx/.59b6d12f

  • Shutdown script for awesome wm

    I`m writing a shutdown script for my awesome wm.
    it looks like this
    [c!/bin/bash
    ACTION=`zenity --width=90 --height=200 --list --radiolist --text="Select logout action" --title="Logout" --column "Choice" --column "Action" TRUE Shutdown FALSE Reboot FALSE LockScreen FALSE Suspend`
    if [ -n "${ACTION}" ];then
    case $ACTION in
    Shutdown)
    #zenity --question --text "Are you sure you want to halt?" &&
    dbus-send --system --print-reply \
    --dest=org.freedesktop.ConsoleKit \
    /org/freedesktop/ConsoleKit/Manager \
    org.freedesktop.ConsoleKit.Manager.Stop
    Reboot)
    #zenity --question --text "Are you sure you want to reboot?" && gksudo reboot
    dbus-send --system --print-reply \
    --dest=org.freedesktop.ConsoleKit \
    /org/freedesktop/ConsoleKit/Manager \
    org.freedesktop.ConsoleKit.Manager.Restart
    Suspend)
    #gksudo pm-suspend
    dbus-send --system --print-reply --dest=org.freedesktop.Hal \
    /org/freedesktop/Hal/devices/computer \
    org.freedesktop.Hal.Device.SystemPowerManagement.Suspend int32:0
    LockScreen)
    slock
    esac
    fi
    and i makedd it executable with chmod +x. But it sims that she is not working.When i run it as root the script works.And when i run it like user onli suspend semams to working.

    You don't have to use the deprecated hal! Here are my scripts which I use(d). All you need is
    exec ck-launch-session awesome
    in your .xinitrc.
    shutdown
    #!/bin/bash
    dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
    reboot
    #!/bin/bash
    dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
    hibernate
    #!/bin/bash
    dbus-send --system --print-reply --dest="org.freedesktop.DeviceKit.Power" /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Hibernate
    and suspend
    #!/bin/bash
    dbus-send --system --print-reply --dest="org.freedesktop.DeviceKit.Power" /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Suspend
    Last edited by Army (2010-12-25 20:42:09)

  • Shutdown script for Weblogic?

    Hi,
    I am looking for weblogic shutdown script?
    Can anybody point me to the script if one is available.
    Thanks in advance
    Subba Reddy

    just use the admnin utility from a shell and bat/cmd file. here's the
    command:
    java weblogic.Admin <url> SHUTDOWN system <password>
    you may get the usage by just typing:
    java weblogic.Admin
    jason
    Original Message <<<<<<<<<<<<<<<<<<On 3/10/00, 9:42:47 PM, subba reddy <[email protected]> wrote
    regarding shutdown script for Weblogic?:
    Hi,
    I am looking for weblogic shutdown script?
    Can anybody point me to the script if one is available.
    Thanks in advance
    Subba Reddy

Maybe you are looking for