Automation of closing of the database and commissioning

Hi all

I want to automate the closing of database and commissioning when the power linux operating system that I do the following:

OS version: centos 5
DATABASE version: oracle 11.2.0


Su root
1 - Edit the #vi/etc/oratabfile:
ORCL:/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1:Y

2 - cd /etc/init.d and vi released
Add the following lines to released
#! / bin/bash
# chkconfig: 35 99 10
Description #: starts and stops the Oracle process
ORA_HOME=/home/Oracle/app/Oracle/product/11.2.0/dbhome_1
ORA_OWNER = oracle
case '$1' in
'Start')
known - $ORA_OWNER - c "start ORA_HOME/bin/lsnrctl $".
known - $ORA_OWNER - c $ORA_HOME/bin/dbstart
;;
'stop')
known - $ORA_OWNER - c "ORA_HOME/bin/lsnrctl stop $.
known - $ORA_OWNER - c $ORA_HOME/bin/dbshut
;;
ESAC


3 # chgrp oinstall released
4 # chmod 750 released

5 # / sbin/chkconfig--add released

When I have my os restrat and I tried to connect to sqlplus / as sysdba
the release was "you are connected to an idle instance", I forgot something?

Please can you tell me where is the error?

Thank you in advance.

You are welcome

If you get your answer you please mark this thread replied.

Tags: Database

Similar Questions

  • How do I delete the database and backup of the ASM

    Hi all

    Oracle 11.2.0.3 database
    OEL 5.7

    We have a host for restore purposes.
    Run us monthly or quarterly operations to verify that I am able to restore a subset data in the given duration or for other purposes of restoration.
    I have an automated script to clone the database, but the database Clone to remove former base ASM before starting this process. I want to delete only the database files and keep the configuration (for example oratab/network/ocr and so on).

    Question: There is an easy way to delete these files without logging on ASM or using DBCA?

    Appreciate any help.

    user12028775 wrote:
    Hi all

    Oracle 11.2.0.3 database
    OEL 5.7

    We have a host for restore purposes.
    Run us monthly or quarterly operations to verify that I am able to restore a subset data in the given duration or for other purposes of restoration.
    I have an automated script to clone the database, but the database Clone to remove former base ASM before starting this process. I want to delete only the database files and keep the configuration (for example oratab/network/ocr and so on).

    Question: There is an easy way to delete these files without logging on ASM or using DBCA?

    Yes, there is a simple way. Use the DROP DATABASE command.

    Use the DROP DATABASE command to remove the database target and, if RMAN is connected to a recovery catalog, unregister it. RMAN removes all the data files, online redo logs and control belonging to the target database files. By default, RMAN prompts.

    Put this command in your script before clone your database:

    RMAN> CONNECT TARGET SYS@test1
    
    RMAN> STARTUP FORCE MOUNT
    RMAN> SQL 'ALTER SYSTEM ENABLE RESTRICTED SESSION';
    RMAN> DROP DATABASE INCLUDING BACKUPS NOPROMPT;
    

    Kind regards
    Levi Pereira

  • How to start the database and servers after the installation of the Webcenter JSK Portal

    Hello

    I finally installed the portal WebCenter using JSK, after it turned off the machine, I don't know how to start the database or server, I need to set the environment variables? create the oracletab file? or is it a file .sh to start the database and servers?

    Any help will be great!

    Best regards!

    Thanks Françoise-Oracle for your response

    As you say, I need to go to /WCPortal_JSK_Linux.x 86-64/linux64, I found all the scripts that I needed to start or stop a server or database. But more especially if you run evertything, (I did) you just need to run the de./startup.sh script and wait, he'll run, but take some time.

    Best regards!

  • Error: Unable to connect to the database.  Please check the databases and verify the database is accessible.

    Hello.

    Hello

    Do you have any idea of this error, I went through a few forums, but I still got the same message.

    FDM is my server on computer A

    and my Foundation + shared on machine B


    Error: Unable to connect to the database.  Please check the databases and verify the database is accessible.

    Hello

    Browse the following post

    Failed to create the application of FDM

    (mark this message as useful or appropriate if that helps!)

    concerning

    -DM

  • differences between the Data Pump to back up the database and use RMAN?

    What are the differences between the Data Pump to back up the database and use RMAN? What is DISADVANTAGES and BENEFITS?

    Thank you

    Search for the backup of the database in

    http://docs.Oracle.com/CD/B28359_01/server.111/b28318/backrec.htm#i1007289

    In brief

    RMAN-> physical backup. (copies of the physical database files)

    DataPump-> logical backup. (logical data such as tables, procedures)

    Docs for RMAN-

    http://docs.Oracle.com/CD/B28359_01/backup.111/b28270/rcmcncpt.htm#

    Datapump docs

    http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dp_overview.htm

    Published by: Sunny kichloo on July 5, 2012 06:55

  • difference between the eve of the database and primary database

    can someone tell me the difference between the database and the database of relief in simple layman's language...

    Thanks in advance

    The primary database is the active production database.
    STANDBY database is a database backup (or read-only).
    Basically, the database pending is in power of the primary database (mechanism depends on the type of sleep) where users are connected to.

    Nicolas.

  • Oracle HTTP server on a different machine than the database and APEX

    Hi guys!

    I wonder if its possible to have Oracle HTTP Server installed on a different machine then the database and APEX?

    With respect,

    PsmakR

    Hello

    exactly. Details have recently been examined here: {: identifier of the thread = 1955437}. You will find the link to the license document it.
    But OSH is not only registered with the database. If you have an OAS running somewhere, you can use the HTTP server that comes with this instance for APEX as well.

    Another option could be the APEX listener that runs on (almost) any J2EE container. The officially supported include the embedded GlassFish and the Open Source Edition of GlassFish, who both don't need no extra license.

    -Udo

  • What is the exact difference between cloning the database and updating of the database?

    Hello

    Can someone like me precisely the difference between cloning the database and updating of the database?

    I have some conflicts in these topics.

    Thank you
    Rajesh

    Discounting is what he says, "Refresh". You have a main site which would always have the data inserted into it. There is another site that would stay somewhere else. This site needs to be updated with the main site. It must be the export of primary, push the site high school and done!

    HTH
    Aman...

  • The difference in the value of the column of a flag in the database and OBIEE. Level of response

    Hello

    Field of the FLAG column, like "Accepted_Flag" can be {0,1} or {"n", "Y"} at the database level. Is there a way to OBIEE help we can transform this area of {0,1} to {'Y', ' n} or vice versa?

    Basically, we would like to understand if there is a way by which we can see a different output to the database and the OBIEE. Levels of responses:
    -DATABASE: Select accepted_flag from table_a returns * {0,1} *.
    -OBIEE answers: Select accepted_flag from presentation_table_a returns * {"n", "Y"} *.

    Please notify.

    Thank you and best regards,
    Abhishek

    You can create a logical column or responses using case statements:
    -case when table_a.accepted_flag = 1 then 'Y '.
    When table_a.accepted_flag = 0 then 'n '.
    end

  • How to determine the number of rows in the database and save the result to a local variable?

    Hello

    I'm a newbie in the use of TestStand, databases and SQL, and now I've met difficulties. I use TestStand 2014 (32 bit).

    I have a need to know the number of rows in a database and save that number in a local variable. I tried to practice using the database of the Types of step provided with TS. I tried to use the following in a SQL statement:

    Locals.NumberOfRows = ("SELECT COUNT (*) FROM TEST_TABLE")

    It returns an error: specified value is not the expected type. My goal is possible in this way, or I'm doing this completely wrong?

    -RautSa

    Thank you for your response, Norbert. I have a database of who wins new values at random, and sometimes I need the exact number of rows in this table.

    I managed to achieve my goal by using the SQL statement: "SELECT COUNT (*) as Rowcount OF TEST_TABLE", followed by a data GET operation, which records that number of lines in a local variable.

    -RautSa

  • Impossible to find information of the domain in the database and access is denied. (Exception from HRESULT: 0x80070005)

    Configuration of the VM Windows 8 of my model fails and causes the following error in log audit Broker rd.

    I'm running vWorkspace 8 with different Hyper-V hosts (without SCVMM).

    clues?

    Broker - INFO - CVdiMachineHyperV::startHyperVClone: cloning xxx, try = 1...

    Broker - INFO - CVdiMachineHyperV::buildParentVHDPath: entering, the folder path is "D:\". ', file name is "xxx.vhdx".

    Broker - DEBUG - CDbManager: Re-use of conn = 0x038215c0 (50)

    Conn CDbManager:keeping broker - DEBUG - = 0x038215c0 (50, lastCount = 49)

    Broker - INFO - CDbManager:connection held 0MS

    Broker - INFO - CVdiMachineHyperV::buildParentVHDPath: the Final folder path is «D:\Quest VMs\ParentVHDs\ vWorkspace»

    Broker - INFO - CVdiMachineHyperV::buildParentVHDFilePart: Extension, part of parent's name is "xxx".

    Broker - INFO - CVdiMachineHyperV::buildParentVHDPath: Final full path is «D:\Quest VMs\ParentVHDs\xxx-20130927090200.vhdx vWorkspace»

    Broker - INFO - CVdiMachineHyperV::startHyperVClone: Call to CHyperVClone::doClone...

    Broker - INFO - CVdiUtils::pnGetDomainControllers: entering, strDnsDomainName is "xxx".

    Broker - INFO - CVdiUtils::getDnsServersForManagedDomain: entering, strDnsDomainName is "xxx".

    Broker - DEBUG - CDbManager: Re-use of conn = 0x038215c0 (50)

    Broker - INFO - CVdiUtils::getDnsServersForManagedDomain: ERROR: could not find the domain managed in the database information for xxx

    Conn CDbManager:keeping broker - DEBUG - = 0x038215c0 (50, lastCount = 49)

    Broker - INFO - CDbManager:connection held 0MS

    Broker - INFO - CVdiUtils::pnGetDomainControllers: WARNING: could not find the domain information managed in the database for xxx

    Broker - INFO - CVdiMachineHyperV::startHyperVClone: domain name into IP [xxx] [xxx]

    Broker - INFO - CHyperVClone::doClone: taken exception. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Broker - INFO - CVdiMachineHyperV::startHyperVClone: took CJvmErr during the CHyperVClone::doClone call.

    Broker - INFO - CVdiMachineHyperV::doVdiAction: ERROR: create failed.  Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) - call stacks - to System.Management.ThreadDispatch.Start)

    Hi Freek,

    I think you have a support case to open to this question as it seems similar to the one I was talking to Sam earlier, is that correct?

    Thank you

    David

  • Worm 16.09.20 document is automatically closed after the scroll and zoom text output but the application is running

    IPad 2 (IOS 9.3.5), Adobe, 16.09.20, Document version is slowed after the scroll and zoom text output and then automatically closed, it jumps to the main menu, but application is running (in multitasking mode). This behavior was not in the previous version. I tried to reinstall the IOS on IPad, but no change.

    Thanks for any help

    Hi jakubh25891777,

    Acrobat Reader 16.09.21 is now available in the App Store.

    It should solve the frequent accidents that you have experienced.

    Please try it and let us know if it works for you.

    We apologize for the inconvenience.

  • With regard to the restoration of the database and recovery (DBPITR)

    Hello

    Today I have a level 0 backup (23/01/2015) and I want to restore and to recover the database up to yesterday (22/01/2015-21:00) by using the backup of level 0 of today.

    Is this possible? If so, please tell me how?

    Thanks in advance.

    Hello

    It is not possible to restore and to recover the database until yesterday with the backup of level 0 of today.

    Your flashback database is active? If it is active, then you can use flashback database.

    to check it out;

    Select flashback_on in the database of v$.

    Talip Hakan Öztürk

  • new incarnation of the database and rc_database

    Hello!

    Have I understood that after the registration of the new incarnation of the database in the recovery catalog
    I see new line in rc_database?

    Thank you and best regards,
    Pavel

    Hello

    After you save your database with the catalog database, you can get the information from the database recorded using the view 'rc_database '.

    To interrogate the details of the incarnation of the newly registered database, you can use the view 'rc_database_incarnation '.

    It could be useful! If you feel that your questions have been answered, then please consider fill your questions by marking them as answered. Please clean the forum!

  • Duplicate the database and incremental backups

    Hello

    I reviewing options to maintain a test server that is "relatively" updated compared to the production server.
    This is my first contact with RMAN and I went through the books, but as I have not had a chance to play with it I could have missed something.

    It is an Oracle devoted to a Redhat Enterprise Linux (not sure of the complete version number) 11.2.

    The test server must be writable and must be synchronized with the server in production about once or twice a month. Due to the size of the database (~ 600 GB) we are studying solutions that could make using incremental backups that are already taken on the production database.

    While launching the test using RMAN DUPLICATE server seems to be honest, I'm not sure how the "sync" can be done as effectively as possible - especially because we are changing the data on the test server.

    After the RMAN BACK command description, is not clear to me if this could serve to 'recover' the database of test based on the incremental backups to the 'current state' of the production database, even if the test database has been changed. After reading a few posts here, it's not seems to be the case.

    A restore point would make such a possible incremental restore? Creating a (name?) point of restoration immediately after duplication, and once the tests are finished making back to the restore point and then apply the incremental backups that have accumulated since then.


    Another of the options seems to be to create a database of the previous day. Then when running the tests, we turn to the backup database in one instantaneous standby database open read/write and run tests. Once we have finished, we he switch back to a physical standby. This switchback to rewind the changes and recovery logs accumulated are applied as "incremental" catching up with production - which is basically what we want.

    Is there another solution to this? Or use a watch of the snapshot, the most effective solution? If possible, we would like to avoid transferring the 600GB whenever we want to re - synchronize the database to test.

    Thanks in advance
    Thomas

    Hi Tomas. I think you're right. Ensures the most effective solution in your situation of snapshot.

Maybe you are looking for