Oracle basic articles-local installation (1)

Oracle basics-installation + installation exception solution + uninstall + installation test + operation of table space and user + database import and export

===========================================================================================

installation

installation steps

    -Unzip the two files together into the same folder under the same directory. Do not include Chinese in the path name , and do not include irregular characters such as spaces .

        After decompression is complete, go to the corresponding path, find [setup.exe], double-click to run, and install Oracle 11g.

    -Step 2: Configure security updates: In this step, you can fill in your own email address (you can also leave it out, just receive some useless emails). Cancel the "I want to receive security updates (W) through My Oracle Support" below.
    
    -Step 3: Security option: directly choose to create and configure a database by default (after installing the database management software, the system will automatically create a database instance).
    
    -Step 4: System category: directly select the default desktop category
    
    -Step 5: Typical installation: This step is an important step.

        It is recommended that you only need to update the Oracle base directory, and the directory path should not contain Chinese or other special characters . (I have obsessive-compulsive disorder. In this step, all directories have been customized with the same parent address)

        The global database name can be the default, and the password and password must be kept in mind.
    -Step 6: Prerequisite check: In this step, the installation program will check whether the computer's software and hardware systems meet the minimum requirements for installing this Oracle version. The next step

    -Step 7: The instance database is created. The system defaults to lock all accounts out of use (except sys and system accounts). It is recommended to click the password management on the right to unlock the commonly used scott account and enter the password. Unlock the scott account, remove the green tick in front, and enter the password. You can also enter the usual short passwords, you don’t have to follow the 8 uppercase and lowercase plus numbers suggested by Oracle

===========================================================================================

The exception encountered during the installation process, and the solution is attached:

The administrator runs.
Abnormal 1: Oracle check installation program requires an error ~~ Solution:

        将配置文件oraparam.ini内的[Certified Versions]代码段尾部加上windows=5.1,5.2,6.2

             [Certified Versions]

            #You can customise error message shown for failure, provide value for          CERTIFIED_VERSION_FAILURE_MESSAGE

            Windows=5.1,5.2,6.1

            并加上如下代码

            [Windows-6.2-required]

            #Minimum display colours for OUI to run

            MIN_DISPLAY_COLORS=256

            #Minimum CPU speed required for OUI

            #CPU=300

            [Windows-6.2-optional]


Exception 2: The program terminates abnormally

解决方法:
        
        1. 修改安装程序Oracle 10G\database\stage\prereq\db\refhost.xml
        
                <span style="font-family:Microsoft YaHei;font-size:18px;"></SYSTEM>   
                <CERTIFIED_SYSTEMS>  
                .....  
                  
                <OPERATING_SYSTEM>  
                    <VERSION VALUE="5.1"/>  
                </OPERATING_SYSTEM>  
                  
                <OPERATING_SYSTEM>  
                    <VERSION VALUE="5.2"/>  
                </OPERATING_SYSTEM>  
                  
                只要在后面添加  
                <!--Microsoft Windows 7  、Windows 10-->  
                <OPERATING_SYSTEM>  
                    <VERSION VALUE="6.1"/>  
                </OPERATING_SYSTEM>  
                  
                <OPERATING_SYSTEM>  
                    <VERSION VALUE="6.2"/>  
                </OPERATING_SYSTEM>  
                  
                <!--Microsoft Windows 7  6.1  、Windows 10  6.2--></span> 
        
        2. 到install目录中找到oraparam.ini文件
        
                <span style="font-family:Microsoft YaHei;font-size:18px;">把  
                #Windows=4.0,5.0,5.1,5.2  
                修改成  
                #Windows=4.0,5.0,5.1,5.2,6.1,6.2  
                并在后面添加  
                [Windows-6.1-required]      
                #Minimum display colours for OUI to run      
                MIN_DISPLAY_COLORS=256     
                #Minimum CPU speed required for OUI      
                #CPU=300     
                [Windows-6.1-optional]  
                  
                [Windows-6.2-required]      
                #Minimum display colours for OUI to run      
                MIN_DISPLAY_COLORS=256     
                #Minimum CPU speed required for OUI      
                #CPU=300     
                [Windows-6.2-optional]</span> 

        3.设置系统虚拟内存至少256MB以上。
    
        4.右键setup.exe,属性->兼容性->以兼容模式运行这个程序 windows xp( service pack 3),以管理员身份运行安装

===========================================================================================

ORACLE complete deletion steps:

1. Start -> Settings -> Control Panel -> Administrative Tools -> Services Stop all Oracle services.
2. Start -> Programs -> Oracle-OraHome81 -> Oracle Installation Products -> Universal Installer, click "Uninstall Products"-"Expand All", select all directories except "OraDb11g_home1" and delete them.
3. Enter regedit in cmd to call up the registry
    HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE and             press the del key to delete this entry.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services , scroll this list, delete all Oracle entries (keys starting with oracle or OraWeb).

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application , delete all Oracle entries.

    All keys prefixed with Ora, Oracle, Orcl or EnumOra in the HKEY_CLASSES_ROOT directory .

    All the keys starting with oracle in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs .

    All keys containing Oracle in HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI except for the Microsoft ODBC for Oracle registry key

4. My Computer-->Properties-->Advanced-->Environment Variables, delete the Oracle settings in the environment variables CLASSPATH and PATH.

5. Delete all Oracle-related groups and icons from the desktop, STARTUP group, and program menu.

6. Delete all Oracle-related directories (if you can't delete it, restart the computer and delete it again) including:

1).C:\Program file\Oracle目录。
2).ORACLE_BASE目录(oracle的安装目录)。
3).C:\WINDOWS\system32\config\systemprofile\Oracle目录。
4).C:\Users\Administrator\Oracle或C:\Documents and Settings\Administrator\Oracle目录。
5).C:\WINDOWS下删除以下文件ORACLE.INI、oradim73.INI、oradim80.INI、oraodbc.ini等等。
6).C:\WINDOWS下的WIN.INI文件中若有[ORACLE]的标记段,删除该段。

7. If necessary, delete all Oracle-related ODBC DSNs

8. Go to the Event Viewer and delete the Oracle-related logs. Note: If there are some DLL files that cannot be deleted, just ignore it, restart, and start a new installation. When
installing, select a new directory and the installation is complete. After restarting, the old directories and files can be deleted.

(PS: I hope any great god can write a script or .bat that can be completely uninstalled, and adhere to the basic principle of never inking in one step!)

===========================================================================================

DOS command under Windows to test whether the Oracle installation is successful:

要测试oracle数据安装是否成功,可按顺序执行以下两个步骤: 
测试步骤 1:请执行操作系统级的命令:tnsping orcl 
上述命令假定全局数据库名是 orcl。以下是命令执行后的示例(请在cmd命令窗口手工输入红色部分文字):
C:\>tnsping orcl

TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 10-11月-2005 10:09:58

Copyright (c) 1997, 2005, Oracle. All rights reserved.

已使用的参数文件:
C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
已使用 TNSNAMES 适配器来解析别名
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver
)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
OK (50 毫秒)
其中,结果 OK 至关重要。 上述结果如果正确,表明侦听器配置无误。 
如果没有看到此结果,不要继续进行下一步。请检查: 
使用 Oracle Net Configuration Assistant 检查网络配置(netca 命令) 使用 Database Configuration Assistant 检查数据库配置(dbca 命令)
测试步骤 2:请执行DOS命令:sqlplus system/password@orcl 
上述命令假定 SYSTEM 用户对应的口令是 password,此处输入的password为你实际安装oracle时设置的口令密码。假定全局数据库名是 orcl。 
以下是命令执行后的示例: 
C:\>sqlplus system/password@orcl

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 11月 10 10:15:25 2005

Copyright (c) 1982, 2005, Oracle. All rights reserved.

连接到:
Oracle Database 10g Release 10.2.0.1.0 - Production

SQL> SELECT 1+2+3+4  FROM DUAL; 

测试结果:

    1+2+3+4
    ----------
    10

查看Oracle版本:sqlplus -v

 

Guess you like

Origin blog.csdn.net/qq_37768368/article/details/86165780