Solaris 10 database shutdown script

Use Oracle Solaris 10 and looking for a stop on the database script when a DBA is not available at the stop of the database. Thank you

For an automatic start and stop on Unix platforms, please read http://download.oracle.com/docs/cd/B19306_01/server.102/b15658/strt_stp.htm#CFAHAHGA. These scripts work for 10.2 and 11.2 (and should also work for 11.1).

Tags: Database

Similar Questions

  • Can I use a shutdown Script, delete a file during shutdown of Windows XP?

    I have a program, once executed, places a file in the startup folder (start (user)).  I uncheck the item in msconfig, and in another program, I have that I use to control what programs start at startup, it works, it stops the starting program at startup - until I relaunch the program, when I see a second instance of the startup in msconfig item or another utility to start I. The program is committed to start upward after he was executed. Can I use a shutdown script to ensure that the item in the startup folder (or wherever the file is located) is deleted when the PC is shut down?

    I think that the place where the file is preserved, which gets the program running at start-up to the East:

    C:\Documents and Settings\01 EBAY\Start Menu\Programs\Startup

    I saw a shortcut there.  I can remove it, but it comes back. Thank you. Rich

    Hi Richard,

    Please go to the Microsoft Community Forums.

    This problem would be better suited in the MSDN forums.

    Please visit the link below to find a community that will provide the support you want.

    http://social.msdn.Microsoft.com/forums/en-us/WinForms/threads

    Thank you.

  • Test database search script

    Hello

    I have a real problem to find the database search Scripts, documentation around this seems terribly poor, is anyone able to help me?

    I created my search for data based on customer information.

    When I go to database search Options > data search Scripts I use the "display Script example" for purposes of test

    Its my understanding this should contact data of research based on the email address I enter and print the results.  If its unable to find the contact it will print 'Functions of customization not found'

    I stick my 'form Autopopulation Script' in an empty html file.  First question, I have to pull the < div > out of the JS (I put it in front of the JS)

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------

    < div id = "contactinfo" > < / div >

    < SCRIPT TYPE = "text/javascript" LANGUAGE = "JavaScript" > <!--/ /.

    function CreateRow (label, value) {}

    var p = document.createElement ('p');

    var b = document.createElement ('b');

    p.appendChild (b);

    b.appendChild (document.createTextNode (label));

    p.appendChild (document.createTextNode (value));

    document.getElementById('contactinfo').appendChild (p);

    }

    function SetElqContent() {}

    If (this. GetElqContentPersonalizationValue) {}

    CreateRow (': ', GetElqContentPersonalizationValue ('C_FirstName'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_LastName'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_EmailAddress'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_BusPhone'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Company'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Job_Title1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Department1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Address1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Address2'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_City'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Zip_Postal'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Country'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_ANZ_Mail_Flag1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_ANZ_SFDC_Contact_ID1'));

    } else {}

    CreateRow ("customization not found '," ");

    }

    }

    --> < /script >

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Secondly, I paste my "Script for integration" below it:

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------

    < SCRIPT TYPE = "text/javascript" LANGUAGE = "JavaScript" > <!--/ /.

    _elqQ.push (['elqDataLookup', escape ('66c01e80420c4bc88c0cab5f149ed81a'),' < C_EmailAddress > Enter_Email Address_here < / C_EmailAddress > ']);

    --> < /script >

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    I run this page and I get an error uncaught exception in my JS Console "_elqQ is not defined.

    After a lot of research and found some final or current, I decide that I must add the following above the previous scripts (still not entirely sure on that?).  Not mentioned at all in the page that provides the scripts...

    " < script src =" http://img.EN25.com/i/elqCfg.min.js "type =" text/javascript"> < / script > "

    This seems a step in the right direction (no error console) but I do not print anything either!


    My final code


    <! DOCTYPE html >

    < html >

    < head > < / head >

    < body >

    < div id = "contactinfo" > < / div >

    " < script src =" http://img.EN25.com/i/elqCfg.min.js "type =" text/javascript"> < / script > "

    < SCRIPT TYPE = "text/javascript" LANGUAGE = "JavaScript" > <!--/ /.

    function CreateRow (label, value) {}

    var p = document.createElement ('p');

    var b = document.createElement ('b');

    p.appendChild (b);

    b.appendChild (document.createTextNode (label));

    p.appendChild (document.createTextNode (value));

    document.getElementById('contactinfo').appendChild (p);

    }

    function SetElqContent() {}

    If (this. GetElqContentPersonalizationValue) {}

    CreateRow (': ', GetElqContentPersonalizationValue ('C_FirstName'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_LastName'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_EmailAddress'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_BusPhone'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Company'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Job_Title1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Department1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Address1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Address2'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_City'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Zip_Postal'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Country'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_ANZ_Mail_Flag1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_ANZ_SFDC_Contact_ID1'));

    } else {}

    CreateRow ("customization not found '," ");

    }

    }

    --> < /script >


    < SCRIPT TYPE = "text/javascript" LANGUAGE = "JavaScript" > <!--/ /.

    _elqQ.push (['elqDataLookup', escape ('66c01e80420c4bc88c0cab5f149ed81a'),' < C_EmailAddress >Enter_Email Address_here< / C_EmailAddress > ']);

    --> < /script >

    < / body >

    < / html >

    Okay, so I found where the complete code 'Test '.

    Settings > Setup > site > monitoring > visitor tracking > visitor tracking package.

    In these files that I found rather than the

    If (window.addEventListener) window.addEventListener ('DOMContentLoaded', async_load, false);

    Else if (window.attachEvent) window.attachEvent ("onload", async_load);

    })();

       

    Just a little more tweaking and playing, and I'm finally here Yay!

  • build the new database through scripts must understand Spanish character sets.

    Hello gurus,
    I need to some simple tips, a good chance for some quick points for you.
    I've never built a database to understand any different other than the U.S. English character set. I now have to build a database that will be used for characters Spanish-keyboards, etc. But I will use English to install 11g software. I just want to be able to show the Spanish characters in the data for the names of clients.
    I will create the database with scripts that I did to make the standard model for data files, control files, etc..
    Then I import in a dump that I did and that was done with American English character sets.
    The system is 11g (11.2.0.3.0) on Linux Enterprise Server 5.8.
    I thought I'd use the AL32UTF8 character set, but I'm not sure where to use them.
    My original test showed no Spanish characters for names of customers as the "tilda" or "sueano" (excuse my spelling). But in this case I did the exceptional for Spanish, I used only the construction of standard American English (no change in the file init.ora or original database create script).

    How can I adjust my settings file for the initial creation of the database model to be able to understand the Spanish character set and still be able to import my dump error-free file.

    EXAMPLE of a build script:

    CREATE DATABASE mynewdb
    The USER SYS IDENTIFIED BY sys_password
    The USER IDENTIFIED BY system_password SYSTEM
    LOGFILE GROUP 1 ('/ u01/app/oracle/oradata/mynewdb/redo01.log') SIZE in the 100M.
    GROUP 2 ('/ u01/app/oracle/oradata/mynewdb/redo02.log') SIZE in the 100M.
    GROUP 3 ('/ u01/app/oracle/oradata/mynewdb/redo03.log') SIZE 100 M
    MAXLOGFILES 5
    MAXLOGMEMBERS 5
    MAXLOGHISTORY 1
    MAXDATAFILES 100
    CHARACTER SET US7ASCII
    NATIONAL CHARACTER SET AL16UTF16

    If I replace to AL32UTF8 AL16UTF16 NATIONAL CHARACTER SET, will it work to show the Spanish characters?

    Sorry for the long-winded question, any advice will be great.

    Fortunately,
    Shawn

    Hello
    the national character sets is for the column as nvarchar types not for normal varchar data types. So if your dump file contains column types, you also need to set. The character set is for normal column as a varchar types. The use of unicode is best practice if you use the multiel language, but keep in mind that multibyte character set can be a problem when importing because varchar2 (10) means byte 10 and not 10 characters, so mistakes as an identifier for a long time may occur when importing.
    You can create the database.

    See this documentation:
    http://docs.Oracle.com/CD/B28359_01/server.111/b28298/ch2charset.htm

    You can use a like WE8MSWIN1252 character set which covers the Spanish also (like many, I know) and a superset of us7ascii

    concerning
    Peter

  • database creation script

    Hello

    on 11.2.0.03 on Win 2008 Server

    I want to create (just by script), on another server, a database of exactly similar to my db (ORCL). Then I want to generate this script. I used DBCA. But it generates files.

    File is attached.

    I do not understand why it creates twice the control files and...

    Another way to generate a simple create database to an existing base script?

    Thank you.

    The orcl.bat file name is everything and creates the necessary directories.  This is the file you are calling; You may need to modify the scripts to change the path if the ORACLE_HOME on the destination server is not the same as on the source server.

    David Fitzjarrell

  • Send form data to the database with scripted button

    I know not how to connect the form to an Access database. However, I do not want the form to connect to the database until the user clicks a button. When the user completes the form and clicks the button, I need the form to connect to the database and save form data in a new record. How script button to do this?

    Any help is appreciated.

    I think that you will need to use a layer between the two.  For example, LC, you can do a process that takes your data and stores it in your database.  Your form may submit to this process through SOAP and REST.

  • HRCS 9.0 database installation script does not have the Data Mover Bootstrap

    People,

    Hello. I'm working on Campus Solution 9.0 and human resources.

    Atfter install HRCS 9.0 in PeopleTools 8.49, I create a script and run the script to load data into a database using the Data Mover Bootstrap HRCS.

    Data Mover Bootstrap mode, when the script imports about 1,000 records in the database, the Data Mover becomes unresponsive. How do the Data Mover to continue to run the script?

    As I said previously, you should check the log generated by the MDS file and as explained Jean-Marc, despite his suspended looks, the script can continue behind.
    A database of loading may take some time, depending on the configuration of the server/network.
    If you have an error in the unique key, this means that the tables has already loaded, so you can drop it and restart the DMS of this table or restart from scratch.

    Nicolas.

  • Password database Chaning scripts

    We have more than 100 shell scripts on the database server that has the password for the dba user in these scripts.

    for example:
    test.sh

    UserID = s/n
    password = s/n

    Now, he must change the password for the dba user and hide the password for all users on this box.

    What will be the best solution to change the password.
    Is it possible to store the password in a file and leave the script uses this password?

    Hello

    Something very simple like

    my script which uses the password
    
    i=`cat erro.txt`
    echo $i
    
    text file which contain the password
    
    password
    
    Output I get
    sh output.sh
    
    password
    

    Concerning
    Anurag Tibrewal

  • Startup and shutdown scripts for Oracle R12 in Windows XP

    I have successfully installed R12.1.1 in Windows XP and connected to the Vision with no problems. But after restarting my PC, I am unable to restart (I don't know how to restart) services.
    I see the other threads that talk about the same scripts in Linux environment.
    If anyone knows - how to start and stop the services of R12 in the Windows environment, please let us know.

    Thank you.

    Published by: SanDan on July 13, 2012 10:08

    SanDan wrote:
    I have successfully installed R12.1.1 in Windows XP and connected to the Vision with no problems. But after restarting my PC, I am unable to restart (I don't know how to restart) services.
    I see the other threads that talk about the same scripts in Linux environment.
    If anyone knows - how to start and stop the services of R12 in the Windows environment, please let us know.

    Management of server processes
    http://docs.Oracle.com/CD/E18727_01/doc.121/e13675/T530130T530133.htm#5274555

    Thank you
    Hussein

  • Run the database sql script

    Is this possible in some form?

    < = 'name' datasource cfquery name = "dsn" >
    #query.sqlstatement # < / cfquery >

    Yes, if you mean creating a query string, and then using them in a cfquery. Usually, you will need to place the text of the query in a PreserveSingleQuotes() function if you have settings that are placed in single quotes, something like this


    #PreserveSingleQuotes (sqlstatement) #.

    Phil

  • Dump to IMPORT ORACLE 9i to ORACLE 11 G database by using script

    Hi all

    I'm trying to import a dump of an Oracle 9i database from exp in the Oracle 11 g database using script.


    (1) the export using 9i client script:

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    #! / bin/sh

    testsync_home= / home/oraexp / / DMPtestsync

    log_home =/ home/oraexp/testsync/log

    file userid=test/test@testsource exp = $testsync_home/usr 'date' + %m %d %Y ".dmp tables =userdata2015 ACCORDING = y compress = buffer n = 655350 log = $log_home/exp_test_usr.log

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


    2) the import using 9i client script. Import the dump into Oracle database 11g. The imp can't exit normally, although the data has already been imported into the testdb.

    If the next part of the script can't be executed.

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    #! / bin/sh

    "sync_date ='date + %m %d %Y"

    testsync_home = / home/oraexp/testsync/dmp

    log_home = / home/oraexp/testsync/log

    sqlplus test/test@testdb < < EOF

    truncate table userdata2015;

    commit;

    quit smoking

    EXPRESSIONS OF FOLKLORE

    file userid=test/test@testdb IMP = $testsync_home/usr 'date' + %m %d %Y ".dmp fromuser = touser = test test tables = userdata2015

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Can you please give me some advice on this situation?


    Thank you very much in advance.

    DO NOT USE THE DATAPUMP.

    You do not use expdp and impdp.

    You will use the 9i client exp and imp 11g client.

  • Oracle 11g Database Scripts necessary analysis

    Hi all

    I don't have access to the Console EM Oracle.

    I know that without having access to it I can always monitor DB activities and health checks like memory usage, work of long-running queries, use of the CPU etc.

    Please you can help by telling me how to do it. (By some sql scripts or methods using SqlDeveloper feature will do also).

    Thank you

    Vishwamber Shetty

    > I'm looking for using GOOGLE

    I don't know why you don't not found db administration of Google scripts, but when I said "oracle database administration scripts" on Google, I found great sources such as:

    http://www.Oracle-base.com/DBA/scripts.php

    http://gavinsoorma.com/category/scripts/

    http://www.dbatoolz.com/SQL-scripts

    and many others.  You will need to download these scripts.  Most of them is made for Linux environment.  If you want to learn and to test them, just create databases for each source test according to the mentioned Oracle version and you did.  I would strongly suggest to have a separate database for each source to better test and learn.

    In addition, some sites of books provide too good scripts.  These scripts are code in action of their examples of books.

    Concerning

    Girish Sharma

  • Running SQL scripts on different databases

    Hello!

    At my work we have many databases on a server. I have to make a request so that users can run the application on a selected database SQL scripts.

    So my question may be separated into 2 sections:

    1 - is possible to let users SQL scripts run directly from the application?

    I think a database to create a page that displays the list of all the SQL scripts, that we want to use, and when you click on a specific script name in the list, it asks something like "Where the database you want to run the script?", and then, as confirmed by the user, it would show results running the script on a different page.

    is 2 - possible to let users choose what database to run these scripts?

    Any information would be helpful, I'm at the beginning of the project and am not sure at all about how to proceed, or if it is at all possible.

    Thank you!

    Fallen_Kaede wrote:

    Thanks for the quick response. I confirm that we are talking about databases on a server.

    The request is to "debug" to other databases. For example, be run scripts to the locks on the list, to show the different indexes on a table, etc. to help diagnose problems.

    It looks like the 'users' are DBA who should use OEM/Grid Control to do so.

    1 - is possible to let users SQL scripts run directly from the application?

    Lol the only way to run scripts in the APEX is the use of the SQL Scripts for SQL workshop component.

    The key word in your question is 'application '. SQL * more and Developer SQL are applications that allow users to run SQL scripts on the desktop. Scripts SQL is an APEX integrated application that allows developers to run SQL scripts on the web. However, there is no documented way supported for end users to run SQL scripts in a custom of APEX application that you created. Therefore, rethink your approach. Rather than create an application APEX runs scripts, you must convert the scripts in PL/SQL, APEX packages, pages, components and applications leverage features of the APEX and reports, graphics and interactivity (e.g. exploration links; timed refreshes etc.). This will give you a user experience improved, beyond what is possible using static SQL scripts.

    is 2 - possible to let users choose what database to run these scripts?

    The APEX applications would exist on an instance of the APEX in a database and access other databases using the database links (which can have a performance impact). It would be possible to create a LOV based on the view of the USER_DB_LINKS dictionary and use in a selection set to a global page list to provide a control to set the current context of the database. Region data sources will have to be generated dynamically in the packages of PL/SQL use the links from relevant database based on this value LOV.

  • DBMS_SCHEDULER and Script Shell on 10.2.0.1

    Hi all

    My env, Oracle 10.2.0.1 and OS is Solaris.

    My script can run on the operating system that is a work without error that contain create file, delete the file, call sqlplus, function to get the value of database and return to the variables of the BONE.

    Shell script to the code as below

    -------------------------------------------------------------------------------------------------------------------------------------

    get_val () {}

    sqlplus-s/nolog < < EOF

    Conn test/test

    set the position

    Set feedback off

    set pages 0

    SELECT SUBSTR (SYS_CONNECT_BY_PATH (Z, ' '), 2) z

    FROM (SELECT NAMEDQUERY, ROW_NUMBER () ON the rn (ORDER OF Z),

    COUNT (*) NTC)

    X

    WHERE Z LIKE "% FULL")

    WHERE rn = NTC

    START WITH rn = 1

    Rn = rn + 1 PRIOR CONNECTION.

    EXPRESSIONS OF FOLKLORE

    }

    VX = $(get_val)

    If [${#vx} - gt 0]; then

    for x in $vx

    do

    RM-f $CURRDIR / $xfile.txt 2 >/dev/null

    fact

    FI

    -------------------------------------------------------------------------------------------------------------------------------------

    When it is executed by dbms_scheduler showing below error

    ORA-27369: jobs of type EXECUTABLE failed with exit code: no such file or directory

    STANDARD_ERROR="/home/Oracle/script/test.sh: error of syntax on line 26: ' vx = $' unexpected

    How to fix above error?  (owner of $CURRDIR / $xfile.txt is oracle user)

    One last question, how to force dbms_scheduler that use user oracle (OS) to run the shell script?, as I know, the default user is null and Oracle 10.2.0.2 later version which have external.job.ora to define but 10.2.0.1 has not.

    Thank you in advance,

    Hiko

    I changed the planner of the storyline of the game as below

    dbms_scheduler.create_job (job_name => 'TEST', job_type => 'EXÉCUTABLE', job_action => ' / usr/bin/bash ', number_of_arguments-online 1);

    dbms_scheduler.set_job_argument_value('TEST',1,argument_value,'/home/Oracle/test.sh');

    It's the job. This is the finding of fact

    1. change the permissions of $ORACLE_HOME/bin/extjob to 4750 (- rwsr - x) -

    2. change the owner of $ORACLE_HOME/bin/extjob to oracle: dba

    3. use "/ usr/bin/bash ' instead of ' / usr/bin/sh".

    But I found the error on the process of downloading the files I use wget to download the source in shell script file and run by dbms_scheduler as shown above.

    My problem, the first file can download normally and until the end of the process but second file has to hang.

    You have an idea or a solution to prove and solve it?

    Thank you

    Hiko

  • 11 GR 2 install Solaris

    Hi Experts,

    I'm tryning to create a database using scripts in Solaris Intel;

    The CreateDB.sql script failed with;

    "SQL > startup nomount pfile="/u01/app/oracle/admin/db/scripts/init.ora ";
    ORA-27102: out of memory
    Error on Solaris-AMD64: 22: invalid argument

    I have a server with 16G memory and in the init.ora file I put as follows;

    ###########################################
    # Various
    ###########################################
    compatible = 11.2.0.0.0
    diagnostic_dest = / u01/app/oracle
    SGA_TARGET = 8g
    pga_aggregate_target = 1 g

    and;

    -bash-3, $00 cat/etc/project
    system: 0:
    User .root: 1:
    noproject:2:
    default: 3:
    Group.Staff:10:
    User .Oracle: 100:Oracle:Process.Max - SEM-nsems =(priv,2048,Deny); Project.Max - SEM - IDS =(priv,4000,Deny); Project.Max - SHM - IDS =(priv,32768,Deny); Project.Max - SHM-Memory =(priv,8589934592,Deny)
    -bash-3, $ 00



    Why I have this error? Appreciate your help

    Published by: 871552 on there / 09/2011 02:32

    check http://blogs.oracle.com/mandalika/entry/oracle_on_solaris_10_fixing

Maybe you are looking for

  • iPhone5 screen no longer works with no physical damage to, the screen

    Someone at - he had problems with iphone5? This morning my screen stops working. Is no longer able to select icons / password etc... No damage to the screen?

  • If USB3 IMAQdX does not support a pixel format is at - it a way to make do, or am I hosed?

    We recently bought a USB3 HDSDI converter of Pleora Technologies (modelIPORT HDSDI-u3).  This adapter is supposedly USB3 Vision and Genicam Compliant.  When Iconnect to my computer and open MAX it enumerates correctly as an IMAQdX USB3camera.  When I

  • HP Recovery (D)

    I have a Pavilion P7-1254, with Windows 7. When I try to run the backup program it shows incomplete backup due to recovery disk with not enough sapce. How to remedy this situation? Can I remove the current file and then perform a new backup or can I

  • Support for LabVIEW FPGA

    The President complied, Is LabVIEW FPGA support for numbered kit ML-505 (Type FPGA: Virtex 5 LX110T) available or not? If Yes, where is it?

  • How to use count imaq objects in a while loop?

    Hello, I am using objects IMAQ County and works well, but when I use a loop and I want to change the picture that I analyze to see results instantly, the search box, and the locations of the remains of the objects in the picture, even if I return to