Mac Shutdown



This chapter describes how to identify Oracle Database processes, and provides basic information about how to stop and restart them. It also describes how to set up automatic startup and shutdown of the Oracle Database. It contains the following sections:

  1. We would like to show you a description here but the site won’t allow us.
  2. Windows and Mac OS X both start to have issues after a few days either with memory or something else and restarting always helps improve the responsiveness of my system. When to Shutdown an iPhone or iPad. Devices like the iPhone and iPad are not anything like a running PC or Mac.

2.1 Stopping and Starting Oracle Processes

This section describes how to stop and start Oracle processes. It contains the following topics:

To add the shutdown, logoff, and logon actions back to the menu in the Sound Control Panel app, you just need to make a few little tweaks in the Windows Registry. RELATED: Learning to Use the Registry Editor Like a Pro. Standard warning: Registry Editor is a powerful tool and misusing it can render your system unstable or even inoperable.

2.1.1 Starting Oracle Processes on Mac OS X

Note:

Ensure that you follow the instructions in this section every time you start an Oracle Database or Automatic Storage Management instance or an Oracle Net listener process.

To ensure that certain shell limits are set to the values required to run Oracle processes, you must use the ssh, rlogin, or telnet command to connect to the system where you want to start the process, even if that system is the local system. The syntax of this command is as follows:

2.1.2 Stopping and Starting Oracle Database and Automatic Storage Management Instances

This section describes how to stop and start Oracle Database and Automatic Storage Management instances.

Stopping an Oracle Database or Automatic Storage Management Instance

Caution:

Do not stop an Automatic Storage Management instance until you have stopped all Oracle Database instances that use that Automatic Storage Management instance to manage their storage.

To stop an Oracle Database or Automatic Storage Management instance:

  1. To identify the SID and Oracle home directory for the instance that you want to shut down, run the following command:

    On Solaris:

    On other operating systems:

    The oratab file contains lines similar to the following, which identify the SID and corresponding Oracle home directory for each database or Automatic Storage Management instance on the system:

    Note:

    Oracle recommends that you use the plus sign (+) as the first character in the SID of Automatic Storage Management instances.
  2. Depending on your default shell, run the oraenv or coraenv script to set the environment variables for the instance that you want to shut down:

    • Bourne, Bash, or Korn shell:

    • C shell:

    When prompted, specify the SID for the instance.

  3. Run the following commands to shut down the instance:

    After the instance shuts down, you can quit SQL*Plus.

Restarting an Oracle Database or Automatic Storage Management Instance

Caution:

If the database instance uses Automatic Storage Management for storage management, then you must start the Automatic Storage Management instance before you start the database instance.

To restart an Oracle Database or Automatic Storage Management instance:

  1. If required, repeat Steps 1 and 2 of the preceding procedure to set the ORACLE_SID and ORACLE_HOME environment variables to identify the SID and Oracle home directory for the instance that you want to start.

  2. Run the following commands to start the instance:

    After the instance starts, you can exit from SQL*Plus.

2.1.3Stopping and Starting Oracle CSS Daemon

To stop the Oracle Cluster Services Synchronization (CSS) daemon, run the following command:

On AIX:

On other platforms:

To start the CSS daemon, run the following command:

This command stops the Oracle CSS daemon and then restarts it.

2.1.4 Stopping and Starting an Oracle Net Listener

This section describes how to stop and start an Oracle Net listener.

Stopping Oracle Net Listener

To stop an Oracle Net listener:

  1. Run the following command to determine the listener name and Oracle home directory for the Oracle Net listener that you want to stop:

    On Mac OS X:

    On other platforms:

    This command displays a list of the Oracle Net listeners running on the system. The output of this command is similar to the following:

    In this sample output, listenername1 and listenername2 are the names of the listeners.

  2. If required, set the ORACLE_HOME environment variable to specify the appropriate Oracle home directory for the listener that you want to stop:

    • Bourne, Bash, or Korn shell:

    • C shell:

  3. Run the following command to stop the Oracle Net listener:

    Note:

    If the name of the listener is the default name, LISTENER, then you do not have to specify the name in this command.
Mac

Restarting Oracle Net Listener

To start an Oracle Net listener:

  1. If required, set the ORACLE_HOME environment variable to specify the appropriate Oracle home directory for the listener that you want to start:

    • Bourne, Bash, or Korn shell:

    • C shell:

  2. Run the following command to restart the Oracle Net listener:

    You must specify the listener name only if it is different from the default listener name, LISTENER. The listener name is mentioned in the listener.ora file. To display the contents of this file, run the following command:

2.1.5 Stopping and Starting iSQL*Plus

This section describes how to stop and start iSQL*Plus.

Stopping iSQL*Plus

To stop iSQL*Plus:

  1. If required, set the ORACLE_HOME environment variable to specify the appropriate Oracle home directory for iSQL*Plus:

    • Bourne, Bash, or Korn shell:

    • C shell:

  2. Run the following command to stop iSQL*Plus:

Starting iSQL*Plus

To start iSQL*Plus:

  1. If required, set the ORACLE_HOME environment variable to specify the appropriate Oracle home directory for the iSQL*Plus instance that you want to start:

    • Bourne, Bash, or Korn shell:

    • C shell:

  2. Run the following command to start iSQL*Plus:

Mac Shutdown Problem

2.1.6 Stopping and Starting Oracle Ultra Search

This section describes how to stop and start Oracle Ultra Search.

Stopping Oracle Ultra Search

To stop Oracle Ultra Search:

  1. If required, set the ORACLE_HOME environment variable to specify the appropriate Oracle home directory for Oracle Ultra Search:

    • Bourne, Bash, or Korn shell:

    • C shell:

  2. Run the following command to stop Oracle Ultra Search:

Starting Oracle Ultra Search

To start Oracle Ultra Search:

  1. If required, set the ORACLE_HOME environment variable to specify the appropriate Oracle home directory for Oracle Ultra Search:

    • Bourne, Bash, or Korn shell:

    • C shell:

  2. Run the following command to start Oracle Ultra Search:

2.1.7 Stopping and Starting Oracle Enterprise Manager Database Control

This section describes how to stop and start Oracle Enterprise Manager Database Control.

Stopping Oracle Enterprise Manager Database Control

To stop Oracle Enterprise Manager Database Control:

  1. Depending on your default shell, run the oraenv or coraenv script to set the environment for the database managed by the Database Control that you want to stop:

    • coraenv script:

    • oraenv script:

  2. Run the following command to stop the Database Control:

Ad free spotify windowseleasysite. Starting Oracle Enterprise Manager Database Control

Key

To start Database Control:

  1. Set the ORACLE_SID and ORACLE_HOME environment variables to identify the SID and Oracle home directory for the database control that you want to start:

    • Bourne, Bash, or Korn shell:

    • C shell:

  2. Run the following command to start the Database Control:

2.1.8 Stopping and Starting Oracle Management Agent

If you are using Oracle Enterprise Manager Grid Control to manage multiple Oracle products from a central location, then you must have an Oracle Management Agent installed on each host system. Typically, the Oracle Management Agent is installed in its own Oracle home directory.

This section describes how to stop and start Oracle Management Agent.

Stopping Oracle Management Agent

Shutdown

To stop Oracle Management Agent:

  1. Run the following command to determine the Oracle home directory for Oracle Management Agent:

    Pandi movie download. This command displays information about the Oracle Management Agent processes. The output of this command is similar to the following:

  2. If required, set the ORACLE_HOME environment variable to specify the appropriate Oracle home directory for the Oracle Management Agent:

    • Bourne, Bash, or Korn shell:

    • C shell:

  3. Run the following command to stop Oracle Management Agent:

Starting Oracle Management Agent

To start Oracle Management Agent:

  1. If required, set the ORACLE_HOME environment variable to specify the appropriate Oracle home directory for Oracle Management Agent:

    • Bourne, Bash, or Korn shell:

    • C shell:

  2. Run the following command to start Oracle Management Agent:

2.2 Automating Shutdown and Startup

Oracle recommends that you configure your system to automatically start Oracle Database when the system starts up, and to automatically shut it down when the system shuts down. Automating database startup and shutdown guards against incorrect database shutdown.

To automate database startup and shutdown, use the dbstart and dbshut scripts, which are located in the $ORACLE_HOME/bin directory. The scripts refer to the same entries in the oratab file, which are applied on the same set of databases. You cannot, for example, have the dbstart script automatically start sid1, sid2, and sid3, and have the dbshut script shut down only sid1. However, you can specify that the dbshut script shuts down a set of databases while the dbstart script is not used at all. To do this, include a dbshut entry in the system shutdown file, but do not include the dbstart entry from the system startup files.

See Also:

The init command in your operating system documentation for more information about system startup and shutdown procedures

Sleep Or Shutdown Mac

2.2.1 Automating Database Shutdown and Startup on Mac OS X

To automate database startup and shutdown by using the dbstart and dbshut scripts:

  1. Log in as the root user.

  2. Open the oratab file in any text editor:

    Database entries in the oratab file are displayed in the following format:

    In this example, Y or N specifies whether you want the scripts to start or shut down the database. For each database for which you want to automate shutdown and startup, first find the instance identifier (SID) for that database, which is identified by the SID in the first field. Then, change the last field for each to Y.

    Note:

    If you add new database instances to the system, then remember to edit the entries for those instances in the oratab file if you want them to start automatically.
  3. Run the following commands to create the /Library/StartupItems/Oracle directory and to change directory to it:

  4. Using any text editor, create a startup script called Oracle in this directory, with contents similar to the following:

    Note:

    The script can only stop Oracle Net listener for which a password has not been set. In addition, if the listener name is not the default name LISTENER, then you must specify the listener name in the stop and start commands:
  5. Using any text editor, create a startup item parameter list file called StartupParameters.plist in this directory, with contents similar to the following:

    Caution:

    AL32UTF8 is the Oracle Database character set that is appropriate for XMLType data. It is equivalent to the IANA registered standard UTF-8 encoding, which supports all valid XML characters.

    Do not confuse the Oracle Database database character set UTF8 (no hyphen) with the database character set AL32UTF8 or with character encoding UTF-8. Database character set UTF8 has been superseded by AL32UTF8. Do not use UTF8 for XML data. UTF8 supports only Unicode version 3.1 and earlier; it does not support all valid XML characters. AL32UTF8 has no such limitation.

    Using database character set UTF8 for XML data could potentially cause a fatal error or affect security negatively. If a character that is not supported by the database character set appears in an input-document element name, a replacement character (usually '?') is substituted for it. This will terminate parsing and raise an exception.

  6. Change the owner, group, and permissions of the files that you created as follows:

Shutdown Mac Without Mouse

2.2.2 Automating Database Startup and Shutdown on Other Operating Systems

Mac Shutdown Terminal

To automate database startup and shutdown by using the dbstart and dbshut scripts:

  1. Log in as the root user.

  2. Edit the oratab file for your platform.

    To open the file, use one of the following commands:

    • On Solaris:

    • On AIX, HP-UX, Linux, and Tru64 UNIX:

    Database entries in the oratab file are displayed in the following format:

    In this example, the values Y and N specify whether you want the scripts to start or shut down the database, respectively. For each database for which you want to automate shutdown and startup, first determine the instance identifier (SID) for that database, which is identified by the SID in the first field. Then, change the last field for each to Y.

    You can set dbstart to autostart a single-instance database that uses an Automatic Storage Management installation that is auto-started by Oracle Clusterware. This is the default behavior for an Automatic Storage Management cluster. If you want to do this, then you must change the oratab entry of the database and the Automatic Storage Management installation to use a third field with the value W and N, respectively. These values specify that dbstart auto-starts the database only after the Automatic Storage Management instance is started.

    Note:

    If you add new database instances to the system and if you want to automate startup for them, then you must edit the entries for those instances in the oratab file.
  3. Change directory to one of the following depending on your operating system.

    PlatformInitialization File Directory
    AIX/etc
    Linux and Solaris/etc/init.d
    HP-UX and Tru64 UNIX/sbin/init.d

  4. Create a file called dbora, and copy the following lines into this file:

    Note:

    Change the value of the ORACLE_HOME environment variable to an Oracle home directory for the installation. Change the value of the ORACLE environment variable to the user name of the owner of the database installed in the Oracle home directory (typically, oracle).

    Note:

    This script can only stop Oracle Net listener for which a password has not been set. In addition, if the listener name is not the default name, LISTENER, then you must specify the listener name in the stop and start commands:
  5. Change the group of the dbora file to the OSDBA group (typically dba), and set the permissions to 750:

  6. Create symbolic links to the dbora script in the appropriate run-level script directories as follows.

    PlatformSymbolic Links Commands
    AIX
    HP-UX
    Linux
    Solaris
    Tru64 UNIX