日期:2014-05-16  浏览次数:20406 次

ORACLE 安装心得

一、删除oracle 9i

?

?

  • 删除注册表

HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE

?

  • 删除oracle服务

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ORACLE下的所有服务

?

  • 删除事件日志

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application

  • 删除环境变量Path, oracle_home
  • 删除开始菜单中的oracle
  • 删除安装window2000硬盘分区中所有的Program Files\Oracle目录
  • 重启Window2000,所有服务自动停止

删除Oracle主目录,服务停止后,可以删除全部Oracle数据库文件

?

?

二 安装ORACLE11G。

?

(9I装了一个月美装成,环境是XP SP2,老是不能创建和启动数据库实例,弹出的错误提示窗口的内容是空的,我无奈了,只好装11G的了,9i这么年代久远的东西应该没有考虑装在XP上吧,看网上的很多都是装在WINDOWS 2000上)。

?

装完之后,重写listener.ora,sqlnet.ora,tnsnames.ora(需要注意的一点是最好把计算机名改成IP地址 )

?

sqlnet.ora

# sqlnet.ora Network Configuration File: D:\app\liguocai\product\11.1.0\db_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)

NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

?listener.ora

?

# listener.ora Network Configuration File: D:\app\liguocai\product\11.1.0\db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (SID_NAME = PLSExtProc)

      (ORACLE_HOME = D:\app\liguocai\product\11.1.0\db_1)

      (PROGRAM = extproc)



    )



 (SID_DESC =

       (GLOBAL_DBNAME = orcl)

       (ORACLE_HOME =  D:\app\liguocai\product\11.1.0\db_1)  

       (SID_NAME = orcl)

      )

   )



LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    )
  )

?tnsname.ora

# TNSNAMES.ORA Network Configuration File: D:\oracle\ora92\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

local_orcl=
(DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = ORCL)
    )
)
?

?