Automatic startup of database in Unix

I would like my database to startup automatically whenever the server starts up. Where do I put the startup scripts in Unix?

It depends on which flavor of unix you are using. In Linux you put all start/kill scripts in the /etc/init.d directory and then create a link in the appropriate run level directory (/etc/rd?.d where ? is the run level). Oracle start scripts are usually placed in the run level 3 directory (/etc/rc3.d). Kill scripts are usually placed in the /etc/rc6.d directory.
To make a long story short, copy the $ORACLE_HOME/bin/dbora script to /etc/init.d, 2) create a symbolic link from that to /etc/rc3.d/S99dbora and /etc/rc6.d/K99dbora. All scripts in the /etc/rc3.d directory that begin with S will be run in alpha order when the OS enters run level 3.
Don't forget to set your /etc/oratab entry to 'Y' so that it starts your database.

Similar Messages

  • Urgent: can not startup the database in unix server

    hi...i am facing a treamendous problem...
    to shutdown the database(unix environmment), I have connected through putty and from there in the sysdba login, I have given the command "SHUTDOWN IMMEDIATE"
    but after that suddenly the power failure occurred and my local machine from which i was accessing the unix server, got shutdown..
    after the restart, when I am again accessing the putty and connected to the oracle11g server and from sysdba login, given the "STARTUP OPEN" command, then it is showing the error...
    SQL> startup open
    ORA-10997: another startup/shutdown operation of this instance inprogress
    ORA-09968: unable to lock file
    Linux-x86_64 Error: 11: Resource temporarily unavailable
    Additional information: 29770
    please help...its very urgent..

    My advice is, as your request is 'urgent', you submit a Service Request at level 1 at My Oracle Support.
    This is a discussion forum and not a support forum, and it is manned by volunteers, not by Oracle Support Engineers.
    Thank you for your current and future cooperation not to submit 'Urgent' requests in a forum of volunteers.
    Sybrand Bakker
    Senior Oracle DBA

  • ORACLE DATABASE의 AUTOMATIC STARTUP/SHUTDOWN

    제품 : ORACLE SERVER
    작성날짜 : 1995-11-21
    오라클 database의 AUTOMATIC STARTUP/SHUTDOWN
    ============================================
    시스템이 startup 하면서 오라클도 함께 startup하거나 시스템을 shutdown
    할 때 오라클도 같이 shutdown 하는 것이 가능하다. 그 방법은 OS마다 차이가
    있는데 여기서는 UNIX 에 기반한 여러 플랫폼에 대해서 알아보기로 한다.
    본 내용에서 가장 많이 사용되는 화일은 다음과 같다.
    $ORACLE_HOME/bin/dbstart
    $ORACLE_HOME/bin/dbshut
    /etc/oratab 또는 /var/opt/oracle/oratab
    dbstart 와 dbshut 은 오라클을 startup/shutdown 시키는 스크립트인데
    이것은 automatic startup/shutdown 시에만 사용하도록 하고 평상 시의
    경우에는 사용하지 않도록 한다.
    oratab 화일은 일반 텍스트 화일로서 시스템에 설치된 오라클 인스턴스에
    대한 정보를 가지고 있는데 보통 3개의 필드로 이루어져 있으며 첫번재
    필드는 ORACLE_SID, 두번째 필드는 ORACLE_HOME, 세번째 필드는 Y 또는 N
    으로 구성되어 있다. 해당 인스턴스를 autostartup 시키려면 꼭 Y로
    세팅되어 있어야 한다.
    SYSTEM V
    System V 에 기반한 시스템은 /etc/rc<n>.d 디렉토리에 초기화 스크립트를
    가지고 있다. 여기서 <n> 은 해당 스크립트의 run-level 을 의미한다.
    일반적으로 run-level 0은 power shutdown mode 이고 run-level 2는 multi-user
    mode 이다. 각각의 디렉토리에 들어있는 초기화 스크립트는 다음과 같은 형태의
    이름을 갖고 있다.
    K{two-digit number][descriptive filename]
    예를 들면 S75cron, K30tcp 등이 있을 수 있다.
    S로 시작되는 스크립트는 startup 시에 실행되는 것이고 K 로 시작하는 것은
    shutdown 시에 실행된다.
    two-digit number가 의미하는 것은 스크립트가 실행되는 순서인데 숫자가 작은
    것부터 먼저 실행된다. 따라서 오라클 스크립트는 보통 다음과 같은 이름을 갖게 된다.
    S99oracle, K01oracle
    이와 같이 설정하면 시스템이 startup 될 때 모든 초기화가 끝난 후 마지막으로
    오라클이 startup 되며 시스템을 shutdown 할 때에는 오라클을 가장 먼저 shutdown
    하게 된다.
    BSD UNIX
    BSD 에 기반한 시스템은 시스템이 startup 될 때 초기화 화일로
    /etc/rc*(예를 들면, /etc/rc, /etc/rc.local) 를 사용한다.
    시스템을 shutdown 할 때에는 보통은 /etc/shutdown 만 실행하게 되므로
    특별히 실행되는 스크립트가 없지만 /etc/rc.shutdown 이 실행되는
    플랫폼도 있다.
    이제 각 플랫폼별로 자세히 알아보기로 한다.
    주의 : <oracle_owner> 는 oracle owner id 로 대체
    <$ORACLE_HOME> 은 oracle home directory 명으로 대체
    (1)SunOS 4.1.3
    SunOS 4.1.3 에서는 /etc/rc.local 을 startup 스크립트로 사용한다. 즉
    시스템이 startup 되면서 /etc/rc.local 이 실행된다. 따라서 이 화일의 끝에
    다음과 같은 라인을 추가하면 된다.
    su <oracle_owner> -c <$ORACLE_HOME>/bin/dbstart
    예를 들어 oracle owner 가 oracle7 이고 $ORACLE_HOME 이 /home/oracle
    이라면 다음과 같이 해주면 된다.
    su oracle7 -c /home/oracle/bin/dbstart
    여기서 /home/oracle 대신에 $ORACLE_HOME 과 같은 환경변수를 이용하여
    세팅하면 안된다.
    SunOS 에서는 시스템이 shutdown 될 때 실행되는 스크립트는 따로 없다.
    따라서 dbshut 을 실행시키는 방법은 다음과 같은 스크립트를 만들어서
    시스템을 shutdown 시킬 때 /etc/shutdown 을 실행시키지 말고 대신
    이것을 실행시켜야 한다.
    #!/bin/csh
    su <oracle_owner> -c <$ORACLE_HOME>/bin/dbshut
    /etc/shutdown $*
    만약 오라클을 shutdown 하지 않고 시스템을 shutdown 하면 다음에
    오라클을 startup 하려고 할 때 startup이 되지 않는다. 이 경우에는
    $ORACLE_HOME/dbs/sgadef<SID>.dbf 화일을 지우고 startup 시키면 된다.
    (2)OSF/1(DIGITAL UNIX)
    /etc/inittab : 초기화 과정을 콘트롤
    /sbin/rc3 : run-level 3 에서 사용되는 script
    /sbin/rc0 : run-level 0 에서 사용되는 script
    /sbin/rc3.d/S99oracle : /sbin/init.d/oracle 로 link
    /sbin/rc0.d/K01oracle : /sbin/init.d/oracle 로 link
    /etc/initab 화일에는 초기화 과정에 대한 정보가 들어 있다.
    예를 들면 다음과 같다.
    s3:3:wait:/sbin/rc3 < /dev/console > /dev/console 2>&1
    이렇게 설정하면 run-level 3 일 경우 /sbin/rc3 스크립트가 실행된다.
    /sbin/rc3 은 /sbin/rc3.d 디렉토리에 들어있는 스크립트를 실행한다. 만약
    스크립트 이름이 K 로 시작하면 이것은 stop 파라미터를 갖고 실행되어서 이
    스크립트에 지정된 프로세스를 정지시킨다. 한편, 스크립트가 S 로 시작하면
    /sbin/rc3 는 이 스크립트에 startup 파라미터를 부여하고 여기서 지정된
    프로세스를 실행시킨다. 따라서 /sbin/rc3.d/S99oracle 을 사용하여
    dbstart를 실행한다.
    shutdown 과정도 거의 비슷하다. /etc/inittab 에 다음과 같은 라인을 추가
    한다.
    s0:0:wait:/sbin/rc0 off < /dev/console > /dev/console 2>&1
    이것은 /sbin/rc0 를 실행시키는데 /sbin/rc0 는 /sbin/rc0.d 디렉토리에
    들어있는 스크립트를 실행시킨다. 스크립트의 이름이 S 로 시작하면 run
    time parameter 로 start 를 사용하게 되고 K 로 시작하면 stop 을
    사용한다.
    따라서 /sbin/rc0.d/K01oracle 스크립트는 stop 파라미터를 갖고
    실행되며 이 스크립트는 $ORACLE_HOME/bin/dbshut 스크립트를 실행시켜서
    오라클을 shutdown 시킨다.
    /sbin/rc3.d/S99oracle과 /sbin/rc0.d/K01oracle은 모두 /sbin/init.d/oracle
    에 대한 symbolic link 이다. /sbin/init.d/oracle 에 대한 symbolic link 는
    이들 외에 더 있을 수 있다.
    (3)Solaris 2.3 & SCO UNIX
    /etc/inittab : 초기화 과정을 콘트롤
    /etc/rc2 : run-level 2 에서 사용되는 스크립트
    /etc/rc0 : run-level 0 에서 사용되는 스크립트
    /etc/rc2.d/S99dbstart : /etc/init.d/dbstart 에 대한 link
    /etc/rc0.d/K01dbshut : /etc/init.d/dbshut 에 대한 link
    /var/opt/oracle/oratab
    Solaris 의 경우는 OSF/1 과 매우 유사하다. 차이점이라고 한다면 /sbin
    디렉토리 대신에 /etc 디렉토리에 필요한 스크립트가 들어있다는 것이다.
    rc0.d, rc2.d 같은 디렉토리는 실제로 /etc 디렉토리에 위치하고 있으며
    rc0, rc2 와 같은 스크립트는 /etc/init.d 에 존재하는 같은 이름의 스크립트에
    대한 symbolic link이다.
    /etc/init.d/dbstart 와 /etc/init.d/dbshut 스크립트의 내용은 각각 다음과
    같이 한줄로 구성되어 있다.
    su - <oracle_owner> -c <$ORACLE_HOME>/bin/dbstart
    su - <oracle_owner> -c <$ORACLE_HOME>/bin/dbshut
    Solaris 에서는 start, stop 같은 파라미터는 /etc/init.d/dbstart,
    /etc/init.d/dbshut 에서는 무시된다.
    /etc/init.d/dbstart, /etc/init.d/dbshut 화일은 owner가 oracle owner id
    이여야 한다.
    /etc/init.d/README 를 읽어보면 좀 더 자세한 내용이 설명되어 있으니 참조하기
    바란다.
    (4)AIX
    /etc/inittab : 시스템 초기화 화일
    /etc/rc : 시스템 초기화 스크립트
    /etc/mkitab : /etc/inittab 을 수정하는 유틸리티
    /etc/shutdown : 시스템 shutdown 스크립트
    AIX 에서는 오라클 autostartup 방법은 여러가지가 가능하지만 shutdown 은
    한가지만 가능하다. 우선 autostartup 은 다음과 같은 방법 가운데 하나를
    사용하면 된다.
    a)/etc/mkitab 를 사용하여 /etc/inittab 에 entry 를 추가한다. 즉,
    /etc/mkitab "<oracle_owner>:2:wait:/bin/su <oracle_owner> -c
    <$ORACLE_HOME>/bin/dbstart > /dev/console 2>&1"
    이렇게 하면 /etc/inittab 화일에 dbstart 기능이 추가된다. 이렇게 하면
    시스템이 뜨면서 run-level 2일 경우 오라클이 자동으로 startup 된다.
    b)다음과 같은 방법도 가능하다.
    /etc/mkitab "rcoracle:2:wait:/etc/rc.oracle > /dev/console 2>&1"
    그리고, root 소유의 /etc/rc.oracle 스크립트를 다음과 같이 작성한다.
    su <oracle_owner> <<EOF
    <$ORACLE_HOME>/bin/dbstart
    EOF
    c)/etc/rc 스크립트의 마지막에 다음을 추가한다.
    /bin/su <oracle_owner> - c <$ORACLE_HOME>/bin/dbstart
    AIX 에서 시스템 shutdown 은 /etc/shutdown 에 의한다. 시스템을 내릴 때
    오라클을 shutdown 하려면 별도의 시스템 shutdown 스크립트(root 소유로)를
    다음과 같이 만들어서 /etc/shutdown 을 사용하지 말고 이것을 사용해야 한다.
    #!/bin/sh
    /bin/su <oracle_owner> -c <$ORACLE_HOME>/bin/dbshut
    /etc/shutdown $*
    (5)HP/UX
    /etc/rc : 시스템 startup 화일
    /etc/shutdown : 시스템 shutdown 실행 화일
    /etc/shutdown.d : 시스템 shutdown 디렉토리
    HP/UX 에서는 시스템 startup 시에 /etc/rc 가 실행된다. 따라서 다음 라인을
    /etc/rc 스크립트의 마지막에 추가하면 auto startup 이 가능해진다.
    su <oracle_owner> -c <$ORACLE_HOME>/bin/dbstart
    시스템의 shutdown 은 /etc/shutdown 화일을 실행하여 수행된다. 이 프로그램은
    /etc/shutdown.d 디렉토리에 들어있는 스크립트를 실행시키는데 다음과 같은
    세 가지 방법 가운데 하나로 auto shutdown 을 세팅할 수 있다.
    a)$ORACLE_HOME/bin/dbshut 화일을 /etc/shutdown.d 디렉토리 아래에 copy
    b)/etc/shutdown.d/dbshut 을 $ORACLE_HOME/bin/dbshut 으로 symbolic link 지정
    c)다음과 같은 스크립트 작성
    #!/bin/sh
    su <oracle_owner> -c <$ORACLE_HOME>/bin/dbshut
    단,이 스크립트는 root의 소유이고 root에 의해서만 실행 가능해야 한다.
    만약 V6 와 V7 을 동시에 사용하는 경우라면 V7 에서 제공하는 dbshut을
    사용하도록 한다.

    Dear Alexdelarg,
    First launch the "Services" applet from the Windows NT Control Panel. Double-click on the "OracleService<SID>" service and verify that "Startup Type" is set to "Automatic", "Log On As" is set to "System Account", and that the "Allow Service to Interact with Desktop" check box is disabled.
    Then launch REGEDIT and check that the Value String ORA_<SID>AUTOSTART within the key My Computer\HKEYLOCAL_MACHINE\SOFTWARE\ORACLE is set to "TRUE".
    If the above does not rectify your startup problem, try issuing the following command from the Command Prompt:
    <ORACLE_HOME>\bin\oradim -edit -sid <SID> -startmode auto
    where <ORACLE_HOME> is the full path of your Oracle8i Server software and <SID> is the Service Identifier of your database.
    Hope this helps!

  • How to configure automatical startup of both ASM and Database

    I created a ASM and a database that uses this ASM for file storage management. I also edit the /etc/oratab file as followings:
    +ASM:/u01/app/oracle/product/10.2.0/asm:Y
    orcl:/u01/app/oracle/product/10.2.0/db_1:Y
    However, when I reboot the system, both ASM and database instances cannot be started up automatically.
    How can I configure automatical startup of both ASM and Database at system reboot?
    Thanks in advance!

    try the following
    Create file called startdb.sh in $ORACLE_HOME/bin and put following line into startdb.sh and
    change the permission of the file with following command.
    $vi $ORACLE_HOME/bin/startdb.sh
    su - oracle -c 'sh /oracle/product/10.2.0/db_1/bin/dbstart'
    Please replace /oracle/product/10.2.0/db_1/ with your ORACLE_HOME
    $chmod 777 $ORACLE_HOME/bin/startdb.sh
    Open /etc/inittab file and append following two lines in /etc/inittab.
    h2:35:once:/etc/init.d/init.cssd start >/dev/null 2>&1 </dev/null
    h3:35:wait:/oracle/product/10.2.0/db_1/bin/startdb.sh >/tmp/stdb.out 2>&1
    If you have h2,h3 in the inittab file please feel free to change it to h4,h5 or whatever is unique, but it has to be unique name
    Please replace /oracle/product/10.2.0/db_1/ with your ORACLE_HOME.
    Reboot machine and check out whether both instances are getting started or not.Please check $ORACLE_HOME/startup.log for more information.
    rgds
    alan

  • Automatic startup

    hello
    i know that oracle database 10g and the listener starts automatically on windows server as a service, but its not the case on unix based machine like AS400
    how to configure automatic startup for the database and listener on system startup
    merci bien

    you can use
    #!/bin/sh
    # Verifies status of the database and send a message to DBA
    # in the case of database is running out.
    # It works fine in Red Hat Linux boxes
    # Date : 10/17/2003
    # Author : Luis Claudio Rodrigues da Silveira
    # Get oracle account
    USER=`whoami`
    # Get home to find oracle binaries
    ORACLE_HOME=`grep ^$USER: /etc/passwd | cut -d: -f6`
    DIRBIN=$ORACLE_HOME/bin
    # put your e-mail here
    ADDRESS=[email protected]
    MESSAGE=message.log
    export USER ORACLE_HOME DIRBIN ADDRESS MESSAGE
    touch $MESSAGE
    # retrieves the name of all oracle instances
    for DB in `cat /etc/oratab | cut -f1 -d:`
    do
    OPEN=0
    # verified if database is opened or closed
    STATUS=`cat /etc/oratab | grep $DB | cut -f3 -d:`
    for ACTIVE in `ps -ef | grep ora_pmon | grep -v grep | cut -f3 -d"_"`
    do
    if [ "$DB" = "$ACTIVE" ]
    then
    OPEN=1
    fi
    done
    if [ $OPEN -eq 0 -a "$STATUS" = "Y" ]
    then
    echo "Instance $DB must be running : it has been restarted on
    `hostname`" >> $MESSAGE
    export ORACLE_SID=$DB
    $ORACLE_HOME/bin/sqlplus /nolog << !
    connect / as sysdba startup
    exit
    fi
    done
    # do not send a empty message..
    LINES=`cat $MESSAGE | wc -l`
    if [ $LINES -gt 0 ]
    then
    mailx -s "Script checkdb.sh" $ADDRESS << !
    Data : `date`
    `echo`
    `cat $MESSAGE`
    fi
    touch $MESSAGE
    Source:http://www.databasejournal.com

  • 9iAS R2 Automatic Startup at Boot time on Windows

    How to successfully start the 9iAS R2 Application Server at boot time.
    Many of you are still struggling with the problem of 9iAS R2 not automatically starting up properly when your system is restarted. I've been fighting this issue for several weeks and have found the problems, and pitfalls, involved with fixing it. It really is a race condition of things trying to start up before something it depends on is fully functioning, or some application starting out of sequence.
    There is a bug associated with this problem; BUG 2511270 ( 9IASV2 Need Ability to Restart All Components in Instance After a Reboot). The bug report itself has very little useful information in it other than to say it doesn't work, and manually starting the components is the only known fix. If you're like me. this isn't a good enough answer.
    Your mileage may vary.
    My configuration has a 9.2.0.1 customer database, and a 9.0.1.3.1 infrastructure database that is also the application server database, including portals, all installed on the same system which is a Pentium 4, Windows 2000 machine, with 1.5GB of memory. I only use a single LISTENER, which runs out of the 9.2 DB ORACLE_HOME.
    Chapter 5 (Starting and Stopping the Application Server) of the Oracle9i Application Server Administrator's Guide shows all of the commands necessary, in the proper order, to manually start the infrastructure and application server. Unfortunately, there is also some incorrect information in this document.
    Part 1c in the section Starting an Infrastructure Using Commands on Windows, using SQLPlus to connect to and start the database, does not work unless oracle.exe is already running (which means that you recently shutdown the database by command, not with "services>stop"). If your system is rebooting, oracle.exe is not running. This exact same information is documented in the Database Administrators Guide, Chapter 4, Starting a Database. If you don't have these manuals handy the offending commands are as follows:
    ORACLE_HOME\bin\sqlplus /nologsql> connect sys/password_for_sys as sysdba
    sql> startup
    sql> quit
    Since we can't put some variant of the above in a command script to manually start the databases and wait for it to open, the only option left is to let the databases come up in "automatic" mode when the system boots, and run the remaining commands when they are open. If your system is like mine, that can take several minutes, even after you've logged on and gotten your first cup of coffee.
    If you set up a command script to run at startup, you don't have any control over when the script gets run, more than likely, in this case, before the databases are open. Unfortunately, Microsoft does not have anything resembling a sleep (timer, wait, delay, etc) command that can be used in a script. There may be something somewhere, but I can't find it. So I wrote one in Perl, which does have a sleep command. You can use anything you have available to you that will function as needed. We obtained our Perl distribution from http://aspn.activestate.com/ASPN/Perl.
    The next issue has to do with starting the Oracle Internet Directory. The documentation shows two commands to execute, but in reality, only the first one is required, it automatically takes care of the second one. Refer to the command file below for the correct one.
    The last issue deals with running the dcmctl commands. If you run these commands one at a time in a command window, you won't notice anything askew. If you run them, as shown, in a script, they will stop execution of the script when they complete, and there will be no indication that anything wrong has happened. The CMD.exe still exists, it just isn't running. They must be run in there own cmd command as shown below.
    Now, let's review the steps necessary to get all this to work.
    Put the two scripts shown below in there target directories and edit any necessary changes for your system.
    In Start>Settings>Control Panel>Administrative Tools>Services set the OracleServiceSID's and the OracleOraHomeTNSListener to Automatic Startup Type. All other Oracle* services should be set to Manual.
    In Start>Programs>Accessories>System Tools>Scheduled Tasks double click on the Add Scheduled Task item,
    select Next,
    Browse to where your startup script resides,
    double click the file name,
    select "When my computer starts",
    select Next,
    Enter a user name and password (that has ORA_DBA privileges)
    select Next, then Finish.
    Uncomment the first exit in the iasStartup.cmd script.
    Reboot your system.
    Compare the database open time stamp in each database alert log to the time recorded in the iasStartup.log file to determine you first time delay. Add 10-20 seconds or more to this difference just to be safe. If you add services at a later time, this number may need to be increased.
    Edit the iasStartup.cmd file to include this time delay for the first sleep command and comment out the first exit command.
    Reboot your system.
    After several minutes, all infrastructure and application server processes should be up and running. You can check this in several ways; Look at the log file to see if all commands were run, Look at the Windows Task Manager to see if all expected tasks are running, Look at Services to see what is running. Finally, you can look at the Infrastructure Enterprise Manager Website and click on each instance to determine the current status of each system component. On mine, the component Portal:portal:7779 always shows as down but in reality it is functioning.
    The following command script only starts the minimum set of processes that I require. Your requirements may be different so refer to the documentation for additional commands.
    Enjoy.
    ******** iasStartup.cmd ********
    REM # iasStartup.cmd
    REM # Command script to start the infrastructure and application server at system boot
    REM # Mike Bukaty
    REM # Sandia National Laboratories
    REM # [email protected]
    REM # set default directory that contains the log and sleep.pl files.
    cd E:\Oracle\admin
    echo Starting iasStartup.cmd > iasStartup.log
    time /t >> iasStartup.log
    REM # Uncomment the following command to determine the time delay for your system
    REM # exit
    REM # This delay is determined by looking at the times from the alert logs
    REM # for when the database was opened and the time recorded above.
    REM # SLEEP is a perl script to do just that (in seconds) since Windows doesn't have one.
    sleep.pl -delay=120
    time /t >> iasStartup.log
    REM #Start the infrastructure first
    REM #The SID for the infrastructure must be set
    set ORACLE_HOME=E:\Oracle\as9inf
    set ORACLE_SID=iasdb
    echo Starting as9inf oidmon >> iasStartup.log
    %ORACLE_HOME%\bin\oidmon start
    echo Starting as9inf EMWebsite >> iasStartup.log
    net start Oracleas9infEMWebsite
    REM # Have to wait for all of the website process to finish
    sleep.pl -delay=40
    REM # All calls to dcmctl must be in there own CMD environment,
    REM # or they will halt this one when they complete
    echo Starting as9inf dcmctl ohs >> iasStartup.log
    cmd /c %ORACLE_HOME%\dcm\bin\dcmctl start -ct ohs
    sleep.pl -delay=5
    echo Starting as9inf dcmctl OC4J_DAS >> iasStartup.log
    cmd /c %ORACLE_HOME%\dcm\bin\dcmctl start -co OC4J_DAS
    REM # Start the application server
    set ORACLE_HOME=E:\Oracle\ora9ias
    echo Starting ora9ias webcachectl >> iasStartup.log
    %ORACLE_HOME%\bin\webcachectl start >> iasStartup.log
    echo Starting ora9ias dcmctl ohs >> iasStartup.log
    cmd /c %ORACLE_HOME%\dcm\bin\dcmctl start -ct ohs
    sleep.pl -delay=10
    echo Starting ora9ias dcmctl OC4J >> iasStartup.log
    cmd /c %ORACLE_HOME%\dcm\bin\dcmctl start -ct OC4J
    REM # The above command starts all existing OC4J processes.
    REM # You can now stop any that aren't necessary.
    echo Stopping ora9ias dcmctl OC4J_Demos >> iasStartup.log
    cmd /c %ORACLE_HOME%\dcm\bin\dcmctl stop -co OC4J_Demos
    time /t >> iasStartup.log
    echo Finished iasStartup.cmd >> iasStartup.log
    exit
    ******** sleep.pl ********
    #!/usr/local/bin/perl
    ## Author: Mike Bukaty
    ##               Sandia National Laboratories
    ##               [email protected]
    ## Program: sleep.pl
    $| = 1;
    use strict;
    use Getopt::Long;
    Getopt::Long::Configure("no_ignore_case");
    GetOptions(
    "delay=s" => \ my $delay,
    # Set default options
    if( not defined($delay) ) { $delay = 1; }
    sleep $delay;
    exit 1;

    New information:
    When I originally wrote this, the command script worked as advertised. That was yesterday. I've since had to add the following lines just BEFORE the call to start the oidmon.
    echo Starting as9inf oidctl >> iasStartup.log
    %ORACLE_HOME%\bin\oidctl server=oidldapd configset=0 instance=1 start
    Sometimes me thinks that Oracle reconfigures itself at night when I'm not watching.
    Enjoy.

  • Write blob data from database to unix server

    Hi all,
    I need to send the attachment file into the mail. I have a header form in which I have implemented Download/Upload functionality using Apex user guide. When ever a user fill all the entries and submit the form then some field information along with attachment I need to send to the user.
    I mean when ever user hit the submit button it should take blob data from my custom table tmp_downlod_files and send to the user as an attachment.
    I have searched the post and got lot information but not able to get succeed.
    I have implemented java stored procedure for sending automatic mail when user is submitting the form but what I need is to take blob content from database and send as an attachment.
    1: So I need to write blob content from custom table to unix server in some location and from there I need to attach that file.
    2: the java store which I have implemented for sending automatic mail is working and one argument is attachment which I am passing null for now. So mail is working how to write the file from database to unix server and send as an attachment.
    What I did for writing file from database to unix server:
    1:
    CREATE OR REPLACE PROCEDURE trx_blob_to_file (l_header_id IN NUMBER)
    IS
    BEGIN
    FOR rec_picture IN (SELECT ID
    FROM TMP.tpx_download_files
    WHERE header_id = l_header_id
    AND mime_type LIKE ('image' || '%'))
    LOOP
    DECLARE
    l_out_file UTL_FILE.file_type;
    l_buffer RAW (32767);
    l_amount BINARY_INTEGER := 32767;
    l_pos INTEGER := 1;
    l_blob_len INTEGER;
    p_data BLOB;
    file_name VARCHAR2 (256);
    BEGIN
    SELECT blob_content, filename
    INTO p_data, file_name
    FROM tpx_download_files
    WHERE ID = rec_picture.ID;
    l_blob_len := DBMS_LOB.getlength (p_data);
    l_out_file :=
    UTL_FILE.fopen ('/home/oracle/interfaces/out/upld',
    file_name,
    'wb',
    32767
    WHILE l_pos < l_blob_len
    LOOP
    DBMS_LOB.READ (p_data, l_amount, l_pos, l_buffer);
    IF l_buffer IS NOT NULL
    THEN
    UTL_FILE.put_raw (l_out_file, l_buffer, TRUE);
    END IF;
    l_pos := l_pos + l_amount;
    END LOOP;
    UTL_FILE.fclose (l_out_file);
    EXCEPTION
    WHEN OTHERS
    THEN
    IF UTL_FILE.is_open (l_out_file)
    THEN
    UTL_FILE.fclose (l_out_file);
    END IF;
    END;
    END LOOP;
    END;
    2: I have written a PL/SQL process and calling the above procedure on SUBMIT:
    DECLARE
    l_header_id NUMBER;
    l_filename VARCHAR2 (200);
    BEGIN
    SELECT header_id, filename
    INTO l_header_id, l_filename
    FROM tpx_download_files
    WHERE header_id = :p35_sr_header_id;
    trx_blob_to_file (l_header_id);
    END;
    But it is not writing the file from database to unix server.
    If I can get how to make working to write file from database to unix server then I will hopefully can send an attachment.
    3; I have given
    GRANT EXECUTE ON TPX_BLOB_TO_FILE TO PUBLIC.
    And
    GRANT EXECUTE ON UTL_FILE TO PUBLIC.
    Where I am doing wroung can anyone guide me or any other approach is appreciated.
    I am already late so I need soon. Please help.

    Hi all,
    I need to send the attachment file into the mail. I have a header form in which I have implemented Download/Upload functionality using Apex user guide. When ever a user fill all the entries and submit the form then some field information along with attachment I need to send to the user.
    I mean when ever user hit the submit button it should take blob data from my custom table tmp_downlod_files and send to the user as an attachment.
    I have searched the post and got lot information but not able to get succeed.
    I have implemented java stored procedure for sending automatic mail when user is submitting the form but what I need is to take blob content from database and send as an attachment.
    1: So I need to write blob content from custom table to unix server in some location and from there I need to attach that file.
    2: the java store which I have implemented for sending automatic mail is working and one argument is attachment which I am passing null for now. So mail is working how to write the file from database to unix server and send as an attachment.
    What I did for writing file from database to unix server:
    1:
    CREATE OR REPLACE PROCEDURE trx_blob_to_file (l_header_id IN NUMBER)
    IS
    BEGIN
    FOR rec_picture IN (SELECT ID
    FROM TMP.tpx_download_files
    WHERE header_id = l_header_id
    AND mime_type LIKE ('image' || '%'))
    LOOP
    DECLARE
    l_out_file UTL_FILE.file_type;
    l_buffer RAW (32767);
    l_amount BINARY_INTEGER := 32767;
    l_pos INTEGER := 1;
    l_blob_len INTEGER;
    p_data BLOB;
    file_name VARCHAR2 (256);
    BEGIN
    SELECT blob_content, filename
    INTO p_data, file_name
    FROM tpx_download_files
    WHERE ID = rec_picture.ID;
    l_blob_len := DBMS_LOB.getlength (p_data);
    l_out_file :=
    UTL_FILE.fopen ('/home/oracle/interfaces/out/upld',
    file_name,
    'wb',
    32767
    WHILE l_pos < l_blob_len
    LOOP
    DBMS_LOB.READ (p_data, l_amount, l_pos, l_buffer);
    IF l_buffer IS NOT NULL
    THEN
    UTL_FILE.put_raw (l_out_file, l_buffer, TRUE);
    END IF;
    l_pos := l_pos + l_amount;
    END LOOP;
    UTL_FILE.fclose (l_out_file);
    EXCEPTION
    WHEN OTHERS
    THEN
    IF UTL_FILE.is_open (l_out_file)
    THEN
    UTL_FILE.fclose (l_out_file);
    END IF;
    END;
    END LOOP;
    END;
    2: I have written a PL/SQL process and calling the above procedure on SUBMIT:
    DECLARE
    l_header_id NUMBER;
    l_filename VARCHAR2 (200);
    BEGIN
    SELECT header_id, filename
    INTO l_header_id, l_filename
    FROM tpx_download_files
    WHERE header_id = :p35_sr_header_id;
    trx_blob_to_file (l_header_id);
    END;
    But it is not writing the file from database to unix server.
    If I can get how to make working to write file from database to unix server then I will hopefully can send an attachment.
    3; I have given
    GRANT EXECUTE ON TPX_BLOB_TO_FILE TO PUBLIC.
    And
    GRANT EXECUTE ON UTL_FILE TO PUBLIC.
    Where I am doing wroung can anyone guide me or any other approach is appreciated.
    I am already late so I need soon. Please help.

  • Can't change /etc/oratab file or automatic startup problem on linux!!!

    Hi friends,
    I have installed an Oracle 11.2.0.1 on Oracle Linux Server 5.11(Virtualbox). I have the users grid and oracle11g. Add groups and install grid infrastructure first as a grid user and install database as oracle user as in documentation successfully.
    I have following users and groups as
    [grid@orcl11g ~]$ id grid
       uid=501(grid) gid=502(oinstall) groups=502(oinstall),492(vboxsf),501(grid),503(dba),505(asmdba),506(asmadmin),507(asmoper)
    [grid@orcl11g ~]$ id oracle11g
       uid=500(oracle11g) gid=502(oinstall) groups=502(oinstall),500(oracle11g),492(vboxsf),503(dba),504(oper),505(asmdba)
    When I log on as grid user. I check the followings:
    [grid@orcl11g ~]$ crsctl check has
    CRS-4638: Oracle High Availability Services is online
    [grid@orcl11g ~]$ srvctl status database -d ora11g
    Database is running.
    [grid@orcl11g ~]$ sqlplus sys as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Thu Dec 25 19:17:37 2014
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Automatic Storage Management option
    SQL> select status from v$instance;
    STATUS
    STARTED
    When I log as  oracle user. I check the followings:
    [oracle11g@orcl11g ~]$ sqlplus sys as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Thu Dec 25 19:21:46 2014
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Enter password:
    Connected to an idle instance.
    SQL> select status from v$instance;
    STATUS
    OPEN
    Till here everything is OK!!!!
    When I edit /etc/oratab file; change N to Y for +ASM and restart the system, then it seems value N is not changed to Y. But changed for database as shown below.
         +ASM:/u01/app/grid/product/11.2.0/grid:N   # line added by Agent
         ora11g:/u01/app/oracle/product/11.2.0/dbhome_1:Y
    QUESTIONS!!!!!
    1. When I edit /etc/oratab file manually why second row saved (changed N to Y manually) but the first row become unsaved (although changed N to Y) again after restarting the system?
    2. After restarting the system database and ASM started automatically, although the line is not changed to Y above (in oratab file) for ASM. What is the reason and how can I change to Y? Or if I have to change the N to Y or not?
    3. Is it enough to edit N to Y in oratab file for ASM and database to start ASM and database automatically? I think there will be some other scripts have to be created in /etc/init.d/ directory for automatic startup.
    PLEASE HELP ME TO UNDERSTAND THIS PROBLEM CLEARLY!!!!
    Thanks!!!
    Message was edited by: DBA_84

    Thanks for reply ZeDBA,
    I don't want to prevent auto starting. As 2769577 stated above that
        "...You may not need to edit in oratab since it's automatically taken care by HAS in 11g..."
    It is meaningful and perhaps it is the exact reason or solution.
    Question is that, why I can't edit oratab file manually for ASM row? ' Not need ' and ' can't ' is different!!
    # The first and second fields are the system identifier and home
    # directory of the database respectively.  The third filed indicates
    # to the dbstart utility that the database should , "Y", or should not,
    # "N", be brought up at system boot time.
    # Multiple entries with the same $ORACLE_SID are not allowed.
    +ASM:/u01/app/grid/product/11.2.0/grhome_1:N        # line added by Agent
    ora11g:/u01/app/oracle11g/product/11.2.0/dbhome_1:Y
    If we assume the 2769577's answer is exactly correct, reason or solution. Then it means that the row "..
    +ASM:/u01/app/grid/product/11.2.0/grhome_1:N  
    # line added by Agent
    in oratab file is meaningless and unnecessary if HAS process enabled and automatically start the ASM.
    Please clarify it, If I am wrong?
    Thanks!!!

  • Installing 11g database in Unix

    I was installing 11g database in Unix
    Port number 1521 was not free and I was hit by this issue
    Checking for ip_local_port_range=1024 - 65000;
    found ip_local_port_range=10000 - 65000. Failed <<<<
    In this case if I wanna use some port other than default one (1521) should the parameter LOCAL_LISTENER be set in init.ora file or can I directly make a entry for listener in listener.ora and can I start it ...
    My listener.ora file looks like this
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /SLOTS/slot04/appmgr/Ora11g_Home)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = adorcl)
    (ORACLE_HOME = /SLOTS/slot04/appmgr/Ora11g_Home)
    LISTENER_ADORCL =
    (DESCRIPTION =
    (ADDRESS_LIST=
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    (ADDRESS = (PROTOCOL = TCP)(HOST = ap6305rt.us.oracle.com)(PORT = 1522))
    But when I start the listener I get a error syaing that
    TNS-01150: The address of the specified listener name is incorrect
    Let me know what should be done

    I have installed 11g database in Unix machine .
    After completing my installation I tried executing catalog.sql and catproc.sql but I faced this issue
    ERROR at line 1:
    ORA-06553: PLS-213: package STANDARD not accessible
    So I tried running standard.sql script to resolve the same
    but I faced this error when i executed standard.sql
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-04031: unable to allocate 16 bytes of shared memory ("shared pool","select
    obj#,type#,ctime,mtim...","sql area","tmp")
    So I thought of changing parameters in SGA as
    log_buffer = 1048576
    shared_pool_size = 80M
    java_pool_size = 10048576
    db_cache_size = 10M
    workarea_size_policy = AUTO
    pga_aggregate_target = 10M
    in init.ora file . The I did shutdown by db and tried starting it .
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 140365824 bytes
    Fixed Size 1295952 bytes
    Variable Size 103090608 bytes
    Database Buffers 33554432 bytes
    Redo Buffers 2424832 bytes
    Database mounted.
    ORA-01092: ORACLE instance terminated. Disconnection forced
    Process ID: 13774
    Session ID: 49 Serial number: 5
    So I tried checking the alert.log file to resolve the same , but i was not able to understand what has to be done
    ORA-00704: bootstrap process failure
    ORA-39700: database must be opened with UPGRADE option
    Error 704 happened during db open, shutting down database
    USER (ospid: 15636): terminating the instance due to error 704
    Instance terminated by USER, pid = 15636
    Let me know what has to be done ?

  • How to automate the Oracle database start and shutdown process

    How we can automate and oracle database start and stop procees with Linux start/shutdown process.
    I want to automatically start the oracle database at the time linux server and shutdown the database on shutdown linux server.

    Hi,
    I can share my scripts:
    1) /home/oracle/start_oracle.sh
    #Script should be ran as Oracle user
    cd /tmp
    export ORACLE_SID=orcl
    export ORACLE_HOME=/oracle/ora9i
    lsnrctl start
    sqlplus -S /nolog <<ENDSQL
    connect / as sysdba
    startup
    exit
    ENDSQL
    emctl start dbconsole
    isqlplusctl start
    NOTE: emctl and isqlplus are optional
    2) /home/oracle/stop_oracle.sh
    #Script should be ran as Oracle user
    cd /tmp
    export ORACLE_SID=orcl
    export ORACLE_HOME=/oracle/ora9i
    isqlplusctl stop
    emctl stop dbconsole
    sqlplus -S /nolog <<ENDSQL
    connect / as sysdba
    shutdown immediate
    exit
    ENDSQL
    lsnrctl stop
    NOTE: emctl and isqlplus are optional
    Then what you need:
    1) K91oracle_stop (put it in the desired run level)
    #!/bin/bash
    # description: Stop Oracle before reboots
    su - oracle -c "/home/oracle/stop_oracle.sh" >> /home/oracle/stoporacle.log
    2) S91oracle_start (put it in the desired run level)
    #!/bin/bash
    # description: Start Oracle after reboots
    su - oracle -c "/home/oracle/start_oracle.sh" >> /home/oracle/startoracle.log
    Bye.

  • Oracle 8i Automatic Startup/shutdown on NT

    After installing Oracle 8.1.6 on Win NT/2000 and creating a database a new service is created too (OracleServiceSID). My problem is that this new service (which works like oradim starting srvc,inst) does not startup the db when rebooting the machine. I need always manual startup/shutdown with a script that uses svrmgrl while in Oracle guides it seems that would be enough to start the service. Every parameter in the registry is set according to these guides to permit automatic startup/shutdown but only the service, not the db, starts and stops automatically. Where is my error?
    Thanks
    Alex
    null

    Dear Alexdelarg,
    First launch the "Services" applet from the Windows NT Control Panel. Double-click on the "OracleService<SID>" service and verify that "Startup Type" is set to "Automatic", "Log On As" is set to "System Account", and that the "Allow Service to Interact with Desktop" check box is disabled.
    Then launch REGEDIT and check that the Value String ORA_<SID>AUTOSTART within the key My Computer\HKEYLOCAL_MACHINE\SOFTWARE\ORACLE is set to "TRUE".
    If the above does not rectify your startup problem, try issuing the following command from the Command Prompt:
    <ORACLE_HOME>\bin\oradim -edit -sid <SID> -startmode auto
    where <ORACLE_HOME> is the full path of your Oracle8i Server software and <SID> is the Service Identifier of your database.
    Hope this helps!

  • Need to make automatic startup  and shut down for the instance

    hi to all
    i have os : Red Hat lunix as 3 , woth oracle DB 10g 10.0.1
    need to make an automatic startup and shut down for the instance when i start and shutdown the OS
    i tried Use dbstart and dbshut scripts then created file dbora at dbora as a script
    then i did
    # ln -s /etc/init.d/dbora /etc/rc.d/rc3.d/K01dbora
    # ln -s /etc/init.d/dbora /etc/rc.d/rc3.d/S99dbora
    # ln -s /etc/init.d/dbora /etc/rc.d/rc5.d/K01dbora
    # ln -s /etc/init.d/dbora /etc/rc.d/rc5.d/S99dbora
    nothing worked
    if you will attach me any files
    my mail is :
    [email protected]
    thanks much
    Ahmed

    Hi,
    The /etc/oratab should have an entry for this database with 'Y' in the last field as:
    Oracle_sid: Oracle_Home:Y, so when dbstart command issued it will check the oratab and starts the database.
    I advise you to keep the dbstart and dbshut in different scripts and save them directly in the runlevel directories, instead of creating links.
    thanks
    srinivas.

  • Noob question. Startup Oracle database?

    Hi folks!
    I know, this question is quite common.. But I really need a "tutorial" to startup "my" database, I really can't get it started..
    The server that the database is running on was restarted a few weeks ago and now I'm trying to get the db up and running again, so far without any luck..
    It's a Oracle 10.2 on a Linux Redhat machine and I have absolutly no experiance of Oracle before.. The previous "expert" on this DB left the following instructions if the server had to be restared:
    "start the enterprise manager and the start the listener and database from there."
    That's about all documentation there is about the whole thing..
    So... What have I tried so far?
    Tried to start EM by using the following command:
    "+emctl start dbconsole+"
    But the system could not regonize the command "emctl".
    Then I created a .login-file that set up some eniviroment variables:
    setenv ORACLE_HOME /local_disk/oracle/oracle/product/10.2.0/db_1
    setenv PATH $ORACLE_HOME/bin:$PATH
    setenv ORACLE_SID orcl
    After done that I could run "emctl start dbconsole".
    When I login to the EM page the database, listener and agent connection is down. And that is expected I guess. But in the "Agent connection" area it siad that it has faild with the following error "ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)"
    So I've started the listener from the EM page and it seems to start up but when I try to start the database the following error occurs:
    "+Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor The Connection descriptor used by the client was: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=my.domain.se)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))+"
    I'm guessing that there is something more to do than just "start the f****g EM and everything will be OK"...
    Could someone of you guys (or girls) help me with a noob tutorial how to start this database? I'm starting to panic here... :)
    Edited by: 921802 on 2012-mar-19 04:15

    Ok, a beer it is.. ;)
    Yes there are some sh scripts under ORACLE_HOME but nothing like "startup.sh" or something similar..
    This is the list of scripts..
    ./oracle/product/10.2.0/db_1/sysman/admin/scripts/topprocs.sh
    ./oracle/product/10.2.0/db_1/sysman/admin/scripts/swapList.sh
    ./oracle/product/10.2.0/db_1/sysman/admin/scripts/restartodiserver.sh
    ./oracle/product/10.2.0/db_1/sysman/admin/scripts/jobs/testSQLScript.sh
    ./oracle/product/10.2.0/db_1/sysman/admin/scripts/purgeCollectionsOid.sh
    ./oracle/product/10.2.0/db_1/sysman/admin/scripts/checkCollectionOid.sh
    ./oracle/product/10.2.0/db_1/sysman/admin/scripts/allprocs.sh
    ./oracle/product/10.2.0/db_1/sysman/admin/scripts/checkOidCredentials.sh
    ./oracle/product/10.2.0/db_1/sysman/admin/scripts/ifconfig.sh
    ./oracle/product/10.2.0/db_1/sysman/admin/scripts/reportsproc.sh
    ./oracle/product/10.2.0/db_1/ldap/schema/oid/create_subscriber.sh
    ./oracle/product/10.2.0/db_1/ldap/schema/oid/designate_default_subscriber.sh
    ./oracle/product/10.2.0/db_1/ldap/schema/oid/create_default_subscriber.sh
    ./oracle/product/10.2.0/db_1/jdbc/bin/fixJDBC-tm4ldaps.sh
    ./oracle/product/10.2.0/db_1/install/createseed1.sh
    ./oracle/product/10.2.0/db_1/install/utl/read.sh
    ./oracle/product/10.2.0/db_1/install/utl/root.sh
    ./oracle/product/10.2.0/db_1/install/createseed.sh
    ./oracle/product/10.2.0/db_1/install/rootdeletenode.sh
    ./oracle/product/10.2.0/db_1/install/unix/rootadd.sh
    ./oracle/product/10.2.0/db_1/oui/bin/addNode.sh
    ./oracle/product/10.2.0/db_1/oui/bin/runConfig.sh
    ./oracle/product/10.2.0/db_1/oui/bin/ouica.sh
    ./oracle/product/10.2.0/db_1/oui/bin/addLangs.sh
    ./oracle/product/10.2.0/db_1/oui/bin/runInstaller.sh
    ./oracle/product/10.2.0/db_1/oc4j/j2ee/home/jazn/install/postinstall.sh
    ./oracle/product/10.2.0/db_1/oc4j/j2ee/home/jazn/install/generateldif.sh
    ./oracle/product/10.2.0/db_1/network/install/sqlnet/setowner.sh
    ./oracle/product/10.2.0/db_1/inventory/Templates/install/rootdeletenode.sh
    ./oracle/product/10.2.0/db_1/inventory/Templates/oui/bin/addNode.sh
    ./oracle/product/10.2.0/db_1/inventory/Templates/oui/bin/runConfig.sh
    ./oracle/product/10.2.0/db_1/inventory/Templates/oui/bin/ouica.sh
    ./oracle/product/10.2.0/db_1/inventory/Templates/oui/bin/addLangs.sh
    ./oracle/product/10.2.0/db_1/inventory/Templates/oui/bin/runInstaller.sh
    ./oracle/product/10.2.0/db_1/inventory/Templates/bin/gsd.sh
    ./oracle/product/10.2.0/db_1/inventory/Templates/bin/netca_deinst.sh
    ./oracle/product/10.2.0/db_1/rdbms/install/rootadd.sh
    ./oracle/product/10.2.0/db_1/rdbms/install/rootadd_filemap.sh
    ./oracle/product/10.2.0/db_1/rdbms/install/rdbms/obsprm.sh
    ./oracle/product/10.2.0/db_1/rdbms/install/rdbms/shutdown.sh
    ./oracle/product/10.2.0/db_1/rdbms/install/rdbms/verf_grp.sh
    ./oracle/product/10.2.0/db_1/bin/makerootca.sh
    ./oracle/product/10.2.0/db_1/bin/gsd.sh
    ./oracle/product/10.2.0/db_1/bin/emrepdown.sh
    ./oracle/product/10.2.0/db_1/bin/netca_deinst.sh
    ./oracle/product/10.2.0/db_1/bin/agentok.sh
    ./oracle/product/10.2.0/db_1/root.sh

  • AUTOMATIC STARTUP OF ORACLE ON WINDOWS NT 3.51

    제품 : ORACLE SERVER
    작성날짜 : 1996-08-16
    There have been many questions regarding the fact that Oracle Workgroup Server
    for WindowsNT does not startup automatically as it does on other desktop platforms.
    Below is a simple workaround for this problem.
    1. Start the Registry by executing the command REGEDT32.
    2. Once in the registry, go down the following tree:
    HKey_local_machine
    software
    microsoft
    WindowsNT
    current version
    winlogon
    3. Within the WINLOGON item, edit the SYSTEM entry and append a command line which
    points to a startup command file (.CMD file), something like the following:
    C:\ORANT\STARTDB.CMD
    (Remember to separate the commands with a comma (,) delimiter)
    4. Make sure in your SERVICES APPLET in the CONTROL PANEL that your Oracle services
    are marked to start manually because the following command file will take care of
    starting you services.
    NOTE: If you use SQL*Net TCP/IP V1, leave that service setup to start automatically
    in your services applet because there is no SID attached to that service.
    Now, within your STARTDB.CMD (or whatever you want to call it) put a command line
    that is similar to the following:
    C:\ORANT\BIN\ORADIM71 -startup -sid orcl -usrpwd oracle -starttype srvc,inst
    NOTE: This is just a sample line that will work for a SID called ORCL with the
    database (authorization) password of ORACLE and is starting up both the services
    and instance with the same command.
    This will startup the database after the WindowsNT has booted, but before anyone
    logs in.
    NOTE: In step #4, if you are working with multiple instances/SID's, you will need to
    repeat the command line for each instance/sid that you have created.
    For more information, refer to "APPENDIX G" in the Oracle 7.1 IUG (Installation and
    Users Guide) because there are many different variations of this command including
    starting up sqlnet V2, edit, delete, etc.

    Hi,
    I'm new with Oracle, and I'm having problems installing the database v8i on Windows XP-Home. My classmates have successfully installed it with both XP-Pro and XP-Home. The problem is that when I click on the Install icon, the disk spins for a while, then nothing happens, and the installation doesn't even start. When I list the files on the CD and click on the setup file and select Run from the pull down menu, and enter my user name (which has administrator privileges) and password, Oracle opens a window with a message that the registry cannot be modified because I don't have permissions, and closes down.
    I know the CD is good, because I tried in a different computer. Are there any settings on Windows that I'm missing? Any help would be much appreciated. Thanks.

  • Does 11i automatically install oracle database?

    Hi,
    I have a very primitive question about installing apps. Does the setup automatically install a database or do we need to have it installed before installing Oracle Apps.
    Also for 11i apps can one use Oracle 9i R2 as database?
    Thanks and Regards,
    Ravi

    Hi, the process of installation of the database with rapidwiz 11i consists on the following thing:
    1.- The rdbms database is compressed on the media cds/dvds, the first step decompresses them in the specified route or path.
    2.- According to the operating system, the process carries out the link processes and recreate all the executables of the rdbms
    3.- Depending of the installation type that was chosen (FRESH or VISION DEMO), the datafiles was created and storage compressed on the media cds/dvds. Then in the this point rapidwiz decompresses all the database files in the specified route.
    4.- Once it has finished with the decompression of the database files, rapidwiz recreates the controlfiles and startup the database.
    5.- Once rapidwiz finish this task, the database is 100% operative, and now the installation of the application tier begins, this is part of another history.
    Regards

Maybe you are looking for

  • Sending pdf as an attachment in email with all changes done on the pdf

    Hello Everyone, I have developed a webdynpro java application which sends a interactive form as an attachment in an email. Everything works fine except that there are some editable fields on the form and the changes dont go in the attachment. The Sen

  • Colors in Windows 7 vs. Photoshop CS4

    Right off the bat - I'm a color newb (color profiles, management, etc).  I've tried to set things up correctly, but I have a couple questions.  I have an HP ZR24w monitor hooked up to an HP 6730b laptop.  On the external monitor, when I view photos i

  • Moving applications to the Media Card

    I have a Blackberry 9300 3g curve. Whenever I download any application it ets stored in the phone memory, I have all my media files and the photos stored in the Media card.  How can I move the applications such as games, themes etc. to the media card

  • Mouse wheel not working in Xorg with USB mouse? Try this!

    I'm just posting this so others may hit upon it when they search. For ages, I've been unable to get my mousewheel working,with my USB mouse, although everything in xorg.conf has been just fine. I just found out I needed to load the module uhci-hcd to

  • ALBUMS on   i phone

    How do i set up a albums on my  i phone  32 gb  ? Thanks