Create a new system variable:
1) Variable name ORACLE_HOME
Variable value E:\Oracle\product\11.2.0\dbhome_1
Note: The variable value here is the installation path of the Oracle database you installed yourself. In the path, you will find the project and then find dbhome_1 in turn, and then copy the path to the environment variable value.
The variable path is added: %ORACLE_HOME%\bin
2) Configure TNS_ADMIN
variable name TNS_ADMIN
Variable value E:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN
3) Variable name NLS_LANG.
Variable value SIMPLIFIED CHINESE_CHINA.ZHS16GBK
Note: Here, the author recommends that you copy the above variable values directly. The meaning here is the unified encoding format. The specific ones can be found on Baidu, so I won't go into details here.
---------------------------------------------------------------------
Rewrite the listener.ora file (blue is the added part)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = f:\oracle\product\10.1.0\Db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = f:\oracle\product\10.1.0\Db_1)
(SID_NAME = orcl)
)
)