Oracle 11g+Windows10 x64 installation and configuration process record

Remarks: I wanted to install an oracle practice on my computer, but I was afraid that there would be problems during the installation process, and uninstalling oracle was notoriously troublesome, so I used a virtual machine to build a system that is the same as the local machine, and recorded at the same time. each step of the installation below.

 

Environment:
windows10 system ,
it is best to install jre or jdk first (this software is used to open the visual operation interface that comes with oracle, it does not matter if it is not installed; you can install plsql, or use the command line directly)

 

1, oracle download

* Download address: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
* Download files (version 11g, enterprise version, both files must be downloaded)

 

2. Oracle installation

a. Unzip the downloaded two zip files to the same folder, click setup.exe in the unzip file to start the installation

 

b. The installation is divided into 10 steps. The first step is to uncheck the security update and click "Next"

 

c. Select "Install only database software" and click "Next"

 

d. Select "Single instance database installation" and click "Next"

 

e. Select by default, click "Next"

 

f. Select "Enterprise Edition" and click "Next"

 

g. Select the installation directory of oracle here, (that is, the location of the software on the computer), and click "Next"

 

h. Here is a summary of your previous 7-step choices, you can check if your previous choices are wrong here. After confirmation, click "Next"

 

i. The following is the long wait for the installation process.

 

j. After the installation is complete, click "Close"

 

3. Oracle database configuration

After the oracle software is installed, you need to configure a database for use. There are many configuration steps for the oracle database, but most of them are the default, the next step, so it is not troublesome.

a. Open the Windows start menu, find the "Database Configuration Assistant" in the oracle installation software, click Open, and click "Next"

 

 

 b. Select "Create database" and click "Next"

 

 c. Default selection, click "Next"

 

 d. Enter the global database name (that is, the name of the database), the SID is created by default, and click "Next"

 

 e. Uncheck "Configure Enterprise Manager" and click "Next"

 

 f. Select "All accounts use the same management password", enter the password (that is, the password of the database user sys, system. There are many users in the oracle database, sys and system are the administrators of the database, and have the greatest authority)

 

 g. Don't make any changes, click "Next"

 

 h. Don't make any changes, click "Next"

 

 i. Select "Sample Scheme" (several tables will be created by default) and click "Next"

 

 j. Don't make any changes, click "Next"

 

 k. Click "Next"

 

 l. Don't make any changes, click "Finish"

 

 m. Confirm whether the configuration information is correct, click "OK"

 

 n. to install, a long wait

 

o. After the installation is complete, the following page will pop up, click "Password Management" to enter the user management page

 

 

p., find the SCOTT user in the figure below, cancel the "Locked Account", enter the "New Password" and "Confirm Password", click "Confirm" to complete the configuration of the database

In this way, the database can be logged in with the three users sys, system, and scott.

 

4, oracle listener configuration

After configuring the database, you also need to configure monitoring to facilitate future use. The specific configuration process is very simple.

 

a. Open the windows start menu, find "Net Conguration Assistant" under the oracle column, and click to open

b. Select "Listener Configuration" and click "Next"

 

 c. Select "Add" and click "Next"

 

 d. Don't make any changes, click "Next"

 

 e. Select "TCP" and click "Next"

 

 

 f. Don't make any changes, click "Next"

 

 g. Click "Finish" to complete the monitoring configuration.

 

5. Configure environment variables

The path is in oracle's home directory (the home directory is selected during the oracle installation)

 

New ORACLE_HOME=C:\soft\product\11.2.0\dbhome_1,

Edit: Path =%ORACLE_HOME%\BIN

 

 

New TNS_ADMIN=C:\soft\product\11.2.0\dbhome_1\NETWORK\ADMIN

 

New NLS_LANG=AMERICAN_AMERICA.AL32UTF8

 

Restart the computer for the environment variables to take effect

 

6. Log in to the database

According to the above method, the database is installed successfully. You can use the sqlplus tool that comes with oracle or the command line to log in and view the database

a. Open the command line and enter: sqlplus

b. Enter the user name: scott, password: scott (the user name can be in lowercase, oracle will automatically convert all lowercase to uppercase, and all letters in the oracle database are uppercase), and enter the database

 

7. Problems and Solutions

Although it is now possible to log in to the database using the command line, when you use tools such as plsql to log in to the database, you will find that there are still two problems.

Problem 1: The database cannot be found

Problem 2: No listener found (no listener)

Although we have configured the database and listener before, these two problems still exist.

Of course, the previous configuration database and configuration listener are also necessary steps. Now these two problems should be that the oracle configuration software is not written well enough.

 

Solutions to these two problems are provided below:

a. Open the Windows start menu, find "Net Manager" in the oracle directory, and click Open

b. Click "Service Naming", then click "+" on the left

 

 c. Enter the network service name on the pop-up page (you can write it casually, it is not important), and click "Next"

 

 d. Select "TCP/IP Protocol" and click "Next"

 

 f. The database should be on the local machine, so fill in the host name: 127.0.0.1, the default port number selected when installing (ie 1521)

 

 g. Service name (that is, the name of the database), click "Next"

 

 h. Click "Finish"

 

 i. As shown below: You can see the configuration you just made, so you can find the database you installed

 

 j. Click "Listener" to open LISTENER, which is the listener configured in step 4. Click "Delete Address" in the lower right corner to delete the two existing addresses. After the deletion is complete, click "Add Address" ", do not modify the newly added content, exit and save.

In this way, you can use other clients to access the oracle database.

 

In fact, the root cause of these two problems is that the two files in the figure below lack the corresponding configuration. If you are interested, you can pay attention to the changes of these two files when you do the above configuration.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324897144&siteId=291194637