Starting Up the Database Using SQL Command Line

Previous
Previous
Next
Next

When you start up the database with SQL Command Line, you must run SQL Command Line on the same computer where you installed Oracle Database XE (the "Oracle Database XE host computer").

To start up the database using SQL Command Line:

  1. Do one of the following:

    • On Windows: Log in to the Oracle Database XE host computer as a user who is a member of the ORA_DBA user group. This is typically the user that installed Oracle Database XE.

    • On Linux: Log in to the Oracle Database XE host computer as a user who is a member of the dba user group. This is typically the oracle user.

    See "Operating System Authentication" for more information.

  2. If not already opened, open a terminal session or command window.

  3. Linux platform only: Ensure that environment variables are set properly.

    See "Setting Environment Variables on the Linux Platform" for details.

  4. At the operating system prompt, enter the following command to start SQL Command Line and connect to the database:

    SQLPLUS / AS SYSDBA
    
    

    The slash (/) indicates that the database should authenticate you with operating system authentication.

  5. At the SQL Command Line prompt, enter the following command:

    STARTUP
    
    

    If the command is successful, it displays the following output. (System global area sizes will vary depending on the amount of physical memory in your Oracle Database XE host computer.)

    ORACLE instance started.
     
    Total System Global Area  599785472 bytes
    Fixed Size                  1220804 bytes
    Variable Size             180358972 bytes
    Database Buffers          415236096 bytes
    Redo Buffers                2969600 bytes
    Database mounted.
    Database opened.
    
    
  6. (Optional) Enter the following SQL query to verify that the database started up properly:

    select count(*) from hr.employees;
    
    

    The query results should look similar to the following:

      COUNT(*)
    ----------
           107
    
    
  7. Enter the following command to exit SQL Command Line:

    EXIT