How to install Oracle Database 12c in Windows

Summary : This tutorial shows you step-by-step how to install Oracle Database 10c in Windows 12.

Install Oracle Database

To install the Oracle database on your computer, you need to download the installer from the download page of the Oracle website.

Once you have the installation files in ZIP format, you need to extract them to a specific folder on your computer.

The following image shows the folder structure of the extracted Oracle installation files.

Install Oracle Database

Now, you need to double-click on the installer .exe file to start the installation process. There will be 9 steps that are mostly automated.

Step 1 . The installer will ask you for your email address to get the latest security issues and updates. You can ignore it by clicking the "Next" button:

Install Oracle Database - Step 1

Because I did not provide an email address, the Oracle Database installer will confirm it and you can simply click the "No" button to continue.

Step 2 . In step 2, the Oracle installer asks you whether you want to create and configure a database, just install the database software, or just upgrade an existing database. Since you are installing an Oracle database for the first time, select option 1 and click the Next button.

Install Oracle Database - Step 2

Step 3. The installer allows you to select a system class. Since you installed Oracle on your computer and not on the server, select the first option: Desktop class and click the Next button.

Install Oracle Database - Step 3

Step 4. This step allows you to specify the Windows user account used to install and configure Oracle Home for enhanced security. Select the third option: "Use Windows built-in account".

Install Oracle Database - Step 4

Step 5. In this step you can (1) select the folder where you want to install the Oracle database, (2) the global database name and password, and (3) the insertable database name.

Install Oracle Database - Step 5

Step 6. The installer performs prerequisite checks.

Install Oracle Database - Step 6

Step 7. The installer displays a summary of information such as global settings, database information, etc. You need to review the information and if everything is fine, click the install button.

Install Oracle Database - Step 7

Step 8. The installer begins installing the Oracle database. This will take a few minutes to complete, depending on your computer.

Install Oracle Database - Step 8

You will see the Database Configuration Assistant window. Click the " Password Management... " button to enter the password for the Oracle database account.

Enter the passwords for the SYS and SYSTEM accounts and click the OK button.

Step 9. Once the installation has completed successfully, the installer will notify you as shown in the screenshot below. Click the Close button to close the window.

Install Oracle Database - Step 9

Connect to Oracle database

First, start the SQL developer application provided by Oracle Database.

Second, right-click on the connection node and select the "New Connection ..." menu item to create a new connection.

Third, enter the information you provided during the installation process, as shown in the following screenshot. Click the Connect button to connect to the Oracle database.

SQL Developer will display all objects as shown below.

SQL Developer - Connected

congratulate! You have successfully installed Oracle Database 12c. Let's start exploring Oracle.

Add entries to the tnsnames.ora file

This file is usually located in the following directory:tnsnames.ora

<span style="color:#000000"><span style="background-color:#ffffff"><code class="language-sql">C:\app\<user>\product\12.1.0\dbhome_1\network\admin\</code>Code language: SQL (Structured Query Language) (sql)</span></span>

If you followed the installation steps above, the file is located in the following directory:

<span style="color:#000000"><span style="background-color:#ffffff"><code class="language-sql">C:\app\product\12.1.0\dbhome_1\network\admin\</code>Code language: SQL (Structured Query Language) (sql)</span></span>

First open the file using any text editor like Notepad or Notepad++. Then you need to add the following lines at the end of the file:tnsnames.ora

<span style="color:#000000"><span style="background-color:#ffffff"><code class="language-sql">PDBORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = pdborcl)
    )
  )</code>Code language: SQL (Structured Query Language) (sql)</span></span>

Afterwards, you can save the file and close it. It's time to download the sample database and load it into the Oracle database server.

Guess you like

Origin blog.csdn.net/allway2/article/details/133030809