Installation and uninstallation of Oracle11g

Installation and uninstallation of Oracle11g

If you want to install the Oracle database, please prepare 5G space, and also know some common Oracle versions

  • Oracle 8, Oracle 8i: "i" Internet, which means that Oracle has begun to develop into the Internet

  • Oracle9i: It is the stable version of Oracle8i, and it is also the most commonly seen version, 3CD;

  • Oracle10g: Indicates that Oracle began to launch a database based on grid computing, 1CD;

  • Oracle1lg: It is the stable version of Oracle10g. It is now the most popular version, around 2G;

  • Oracle12C: "C" represents the concept of cloud computing, which is the latest version now. In this lecture, the Oracle11g version is used instead of the Oracle 12C version;

Before installing Oracle, you must pay attention to one point, please turn off the firewall,

Chapter 1 Installation Steps

step one:

image 20200922092657880

Step 2: For Oracle, its own software provides only a platform, and a database management will be carried out on this platform. We choose "Create and configure a database", which means that after successful installation, Will automatically configure a database

image 20200922092951812

Step 3:

Here we choose the server class, the function is relatively complete

wLTBkR.png

Step 4:

When installing Oracle, the user will be asked about the type of installation. The default stand-alone database installation is "singleton database installation"

RAC is a relatively advanced database management topic among Oracle

wLTw79.png

Step five:

Select "Advanced Installation" to enter the basic configuration interface of some databases

wLTDt1.png image 20200922093732920 image 20200922093750777 image 20200922094244264 image 20200922094318856

Step 6:

Since "Create Database" was selected at the beginning, the user will be asked for the name of the database to be created at this time. We will modify the name to "rango" and we can find that there is an Oracle service identifier (SID) that is exactly the same as the database name. The SID is the service number used in the development of the program. If there is no such number, the program will not be able to connect to the database. Generally, the SID is consistent with the database name.

image 20200922100208720

Step 6:

Set the encoding to UTF-8 encoding. At the same time, in "Create a database with sample schemes", the corresponding test data will appear for learning and use

image 20200922100315128 image 20200922100358302 image 20200922103345862

Next step, keep going

image 20200922103421772 image 20200922103431757

Step Seven:

There are two main administrator users in Oracle: SYS (super administrator); SYSTEM (ordinary administrator)

At this point we need to configure the passwords of these management accounts

image 20200922104104486

Step eight:

Password setting, when the installation is complete, (in fact, the database and installation are completed at this time), but then we set the database password password, so we don't click OK after the database is installed

image 20200922110959420

First enter the "password management interface", and then modify the passwords of the four user names

  1. Super administrator: sys/change_on_install; this cannot be used in actual work
  2. Ordinary administrator System/manager
  3. Ordinary user scott/tiger, this user is a very classic user
  4. Big data users, (sample solution database); sh/sh, need to be unlocked
image 20200922111543273 image 20200922111601182

Click OK at this time, the installation is successful at this time, after the Oracle installation is successful, you will return to the main interface of the Oracle installation and select Close

Chapter 2 Configuration Issues After Installation

When Oracle is installed, it will automatically register Oracle-related services in the Windows service. There are several services as follows

However, these services use the "automatic start" method by default, but they are all modified to be started manually, so that it can be easily carried out and started when needed. For developers, if you want to use Oracle For development, only two services are required

  1. Oracle listening service (OracleOraDb11g_home1 TNSListener ), when you need to connect to the database through the program for development, this service must be turned on; if you are learning Oracle, and you are using this machine, you can not start the service
  2. Oracle instance service (OracleService RANGO ), multiple databases can be created under one Oracle software platform, each time a database is created, a database service will be automatically created, named "OracleService SID " (SID is generally the same as the database)

PS: Although the database has been successfully installed at this time, there is also an uninstall service for the database

Chapter 3 Completely uninstall the Oracle database

3.1 Close all oracle services.

Window7 users can close all services starting with oracle in Windows Task Manager -> Services; XP users can right-click on My Computer -> Manage -> Services and Applications -> Services to find all services starting with oracle , Right-click and close.

3.2 Open the registry: regedit

Open the path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
Delete all the service names that start with oracle under this path. This key is to identify the various services registered by Oracle under windows!

3.3 Find the path:

HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE

Delete the oracle directory, under which the software installation information of the Oracle database is registered.

3.4 Delete the registered oracle event log and open the registry

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application

Delete all items starting with oracle in the registry.

3.5 Delete the content about oracle in the environment variable path. (It doesn't seem to be necessary to do this step.)

Right-click on "My Computer -> Properties -> Advanced -> Environment Variables -> PATH Variable.

Delete the content of Oracle in this value. Note: There are a bunch of operating system directories recorded in path, which are separated by semicolons (;) between the various directories in windows. Pay attention when deleting.

Suggestion: When deleting the value of Oracle in the PATH environment variable, copy all the values ​​to a text editor, find the corresponding Oracle value, delete it, and then copy the modified string and paste it into the PATH environment variable. The language is safer.

3.6 Restart the operating system.

After the above 1~5 steps are completed, restart the operating system.

3.7 After restarting the operating system, all Oracle related processes will not be loaded.

Delete the oracle installation directory, here is the benefit of creating a separate directory above. You can directly delete the customized oracle folder. (It seems to be very slow to delete things in the database).

If you did not follow the customization, find the default installation directory and delete it.

3.8 Delete the oracle item in the start menu.

At this point, Oracle has been completely uninstalled under the Windows platform.

supplement:

Have you installed ORACLE? It should be because the installation was successful last time, or the uninstallation was not complete. Just check where the files that have not been deleted are deleted.
The
method of completely uninstalling Oracle:
software environment:
1. Windows XP + Oracle 10g
2.Oracle安装路径为:d:\Oracle

1. If the database is configured with Automatic Storage Management (ASM), you should delete the cluster synchronization service CSS (cluster Synchronization Services) first. The way to delete the CSS service is to execute the following command in the DOS command line: localconfig delete

2. Stop all Oracle services in the "Services" window.

3. In the "Start" menu, select "Programs"/"Oracle-OraDb10g_home1"/"Oracle Installation Products"/"Universal Installer" in turn to open the Oracle Universal Installer (OUI) window

4. Click the "Uninstall Product" button to open the "Product List" window, select the Oracle product to be deleted, and click the "Delete" button to open the "Confirm Delete" dialog box.

5. Click the "Yes" button in the "Confirm Delete" dialog box to start deleting the selected Oracle product.

6. To delete automatic storage management (ASM), execute the following command in the DOS command line: oracle -delete -asmsid +asm

7. Run the regedit command to open the registry window. Delete the content related to Oracle in the registry, as follows:

  1. Delete the HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE directory.

  2. Delete all the keys starting with oracle or OraWeb in HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services.

  3. Delete all the keys beginning with oracle in HKEY_LOCAL_MACHINE/SYSETM/CurrentControlSet/Services/Eventlog/application.

  4. Delete all keys prefixed with Ora, Oracle, Orcl, or EnumOra in the HKEY_CLASSES_ROOT directory.

  5. Delete HKEY_CURRENT_USER/SOFTWARE/Microsoft/windows/CurrentVersion/Explorer/MenuOrder/Start Menu/Programsall the keys beginning with oracle.

  6. Delete all keys that contain Oracle HKDY_LOCAL_MACHINE/SOFTWARE/ODBC/ODBCINST.INIexcept for Microsoft ODBC for Oracleregistry keys. Some of these registry keys may have been deleted when the Oracle product was uninstalled.

  7. Delete the value of Oracle in the PATHT CLASSPATH in the environment variable.

  8. Delete all Oracle groups and icons in "Start"/"Programs".

  9. Delete all directories related to Oracle, including:

    1. c:\Program file\Oracle directory.
    2. ORACLE_BASE directory.
    3. c:\Documents and Settings\system user name, temporary files in the LocalSettings\Temp directory.

Guess you like

Origin blog.csdn.net/qq_41076577/article/details/108732617