First, install the Oracle database.
01. Unzip the downloaded Oracle installation package to D:\Oracle\database;
02. Run D:\Oracle\database\setup.exe as an administrator;
03. Uncheck "Email" in "Configure Security Update" option, the next step;
04. In the prompt box of "No email address specified", select "Yes";
05. In the "Select installation option" list, select "Create and configure the database", the next step;
06. In the "System" In the "Class" list, select "Server Class", the next step;
07. In the "Network Installation Items" list, select "Single Instance Database Installation", the next step;
08. In the "Select Installation Type" list, select "Advanced Installation", Next step;
09. Select "English and Simplified Chinese" in the "Select Product Language" list, the next step;
10. Select "Enterprise Edition" in the "Select Database Version" list, the next step;
11. In the "Specify Installation Location" "In the list, enter "Oracle base directory (eg E:\Oracle)" and "software location (eg E:\Oracle\product\11.2.0\dbhome_1", the next step;
12. Select in the "Select configuration type" list "General Purpose/Transaction", the next step;
13. In the "Specify Database Identifier" list, enter "Global Database Name (eg orcl)" and "Oracle Service Identifier (eg orcl)", the next step;
14. In In the "Specify Configuration Options" list, select "Use Unicode (AL32UTF8)" for "Character Set", and the other items default to the next step;
15. In the "Specify Management Options" list, "Use Database Control to manage the database", other items are not selected, the step;
16. In the "Specify database storage options" list, select "File system (specify database file location such as E:\Oracle\oradata)", the next step;
17. In the "Specify recovery options" list, select "Do not enable automatic backup" , the next step;
18. In the "Specify scheme password" list, for the convenience of remembering, select "Use the same password for the account used", after entering the password, go to the next step;
19. During the "Prerequisite Check" process, there may be Reasons for passing:
(a) "Memory check failed" setting method:
Set virtual memory to meet the requirements in "Control Panel\System and Security\System\Advanced System Settings\Advanced\Performance\Settings\Virtual Memory\Change";
(b ) Right-click to select C:\Windows\System32\cmd.exe, run as administrator, and then enter the following command (enter the disk where the virtual memory has been set): net share c$=c: net share d$=d : net share e$=e: (c) When the length of PATH exceeds 1023 characters: Edit PATH in "Control Panel\System and Security\System\Advanced\System Variables" (remove the missing path) to the specified 1023 ( d) Right-click to select C:\Windows\System32\cmd.exe, run as administrator, and then enter the following command (modify registry keys): regedit Find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet in the registry \services\LanmanServer\Parameters
Change the values of AutoShareServer and AutoShareWks from 0 to 1, then click OK.
Through the above steps, the "prerequisite check" can generally be passed.
20. After the "Prerequisite Check" is passed, the next step is to enter the installation process;
21. After "Complete", it will prompt "The installation of Oracle Database has been successful".
22. The network configuration of the database (E:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN) is as follows:
---sqlnet.ora---
# sqlnet.ora Network Configuration File: E:\Oracle\product\ 11.2.0\dbhome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NONE)
# SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
---listener.ora---
# listener.ora Network Configuration File: E:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = E:\Oracle\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:E:\Oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = E:\Oracle\product\11.2.0\dbhome_1)
(SID_NAME = orcl)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 本机的IP地址)(PORT = 1521))
)
)
ADR_BASE_LISTENER = E:\Oracle
---tnsnames.ora---
# tnsnames.ora Network Configuration File: E:\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 本机的IP地址)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
备注:配置文件修改后,需要重新启动OracleServiceORCL和OracleOraDb11g_home1TNSListener服务。
01. Unzip the downloaded Oracle installation package to D:\Oracle\database;
02. Run D:\Oracle\database\setup.exe as an administrator;
03. Uncheck "Email" in "Configure Security Update" option, the next step;
04. In the prompt box of "No email address specified", select "Yes";
05. In the "Select installation option" list, select "Create and configure the database", the next step;
06. In the "System" In the "Class" list, select "Server Class", the next step;
07. In the "Network Installation Items" list, select "Single Instance Database Installation", the next step;
08. In the "Select Installation Type" list, select "Advanced Installation", Next step;
09. Select "English and Simplified Chinese" in the "Select Product Language" list, the next step;
10. Select "Enterprise Edition" in the "Select Database Version" list, the next step;
11. In the "Specify Installation Location" "In the list, enter "Oracle base directory (eg E:\Oracle)" and "software location (eg E:\Oracle\product\11.2.0\dbhome_1", the next step;
12. Select in the "Select configuration type" list "General Purpose/Transaction", the next step;
13. In the "Specify Database Identifier" list, enter "Global Database Name (eg orcl)" and "Oracle Service Identifier (eg orcl)", the next step;
14. In In the "Specify Configuration Options" list, select "Use Unicode (AL32UTF8)" for "Character Set", and the other items default to the next step;
15. In the "Specify Management Options" list, "Use Database Control to manage the database", other items are not selected, the step;
16. In the "Specify database storage options" list, select "File system (specify database file location such as E:\Oracle\oradata)", the next step;
17. In the "Specify recovery options" list, select "Do not enable automatic backup" , the next step;
18. In the "Specify scheme password" list, for the convenience of remembering, select "Use the same password for the account used", after entering the password, go to the next step;
19. During the "Prerequisite Check" process, there may be Reasons for passing:
(a) "Memory check failed" setting method:
Set virtual memory to meet the requirements in "Control Panel\System and Security\System\Advanced System Settings\Advanced\Performance\Settings\Virtual Memory\Change";
(b ) Right-click to select C:\Windows\System32\cmd.exe, run as administrator, and then enter the following command (enter the disk where the virtual memory has been set): net share c$=c: net share d$=d : net share e$=e: (c) When the length of PATH exceeds 1023 characters: Edit PATH in "Control Panel\System and Security\System\Advanced\System Variables" (remove the missing path) to the specified 1023 ( d) Right-click to select C:\Windows\System32\cmd.exe, run as administrator, and then enter the following command (modify registry keys): regedit Find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet in the registry \services\LanmanServer\Parameters
Change the values of AutoShareServer and AutoShareWks from 0 to 1, then click OK.
Through the above steps, the "prerequisite check" can generally be passed.
20. After the "Prerequisite Check" is passed, the next step is to enter the installation process;
21. After "Complete", it will prompt "The installation of Oracle Database has been successful".
22. The network configuration of the database (E:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN) is as follows:
---sqlnet.ora---
# sqlnet.ora Network Configuration File: E:\Oracle\product\ 11.2.0\dbhome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NONE)
# SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
---listener.ora---
# listener.ora Network Configuration File: E:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = E:\Oracle\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:E:\Oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = E:\Oracle\product\11.2.0\dbhome_1)
(SID_NAME = orcl)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 本机的IP地址)(PORT = 1521))
)
)
ADR_BASE_LISTENER = E:\Oracle
---tnsnames.ora---
# tnsnames.ora Network Configuration File: E:\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 本机的IP地址)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
备注:配置文件修改后,需要重新启动OracleServiceORCL和OracleOraDb11g_home1TNSListener服务。