Oracle 11gR2 安装

前端之家收集整理的这篇文章主要介绍了Oracle 11gR2 安装前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

 

 

 

 Oracle客户端安装步骤:

  1. 分享图片

  2. 分享图片

  3. 分享图片

  4. 配置tnsnames

    1.  在C:\app\Administrator\product\11.2.0\client_1 自定义文件 network/ admin/ tnsnames.ora
    2. 记事本打开tnsnames.ora,配置数据库信息(服务器上每次新建数据库都需要在这里手动配置)
  5. 配置环境变量
    1. 我的电脑 - 属性 - 高级 - 环境变量 - 系统变量
    2. 新建 Path = C:\app\Administrator\product\11.2.0\client_1
    3. 新建TNS_ADMIN = C:\app\Administrator\product\11.2.0\client_1\network\admin
    4. 新建NLS_LANG = SIMPLIFIED CHINESE_CHINA.ZHS16GBK
  6.  安装、配置PL/sql

 

 

C:\app\Administrator\product\11.2.0

C:\app\Administrator\product\11.2.0\client_1\oci.dll

 

 

  1. 重启PL/sql

 

 

 

 

 

 

使用PLsql创建Oracle的表空间及用户

需要使用拥有dba权限的用户登录PLsql,打开Command Window窗口,然后创建表空间及在该表空间下创建用户

命令:

--创建表空间

sql> Create tablespace JYTTableSpace

  2  logging

  3  datafile ‘C:\DB\JYTTest\JYTTableSpace.dbf‘

  4  size 50m

  5  autoextend on

  6  next 50m

  7  extent management local;

Tablespace created

 

--创建表空间用户

sql> Create user JYT_Users identified by 123456 default tablespace JYTTableSpace temporary tablespace temp;

User created

 

--用户授权

sql> Grant connect,dba to JYT_Users;

Grant succeeded

 

 

 

不用PL/sql,还可以使用Navicat Premium管理Oracle数据库

配置

 

 

 

 

 

 

Oracle服务端安装步骤:

提示安装完成后需要操作 :

  1. 开放1521端口(关闭防火墙,新建入站规则)
  2. 按需配置C:\app\jyt\product\11.2.0\dbhome_1\NETWORK\ADMIN下的三个文件:

l listener.ora

SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (SID_NAME = ORCL)

      (ORACLE_HOME = C:\app\jyt\product\11.2.0\dbhome_1)

      (ENVS = "EXTPROC_DLLS=ONLY:C:\app\jyt\product\11.2.0\dbhome_1\BINoraclr11.dll")

    )

    (SID_DESC =

      (SID_NAME = JYTTEST)

      (ORACLE_HOME = C:\app\jyt\product\11.2.0\dbhome_1)

      (GLOBAL_DBNAME= JYTTEST)

    )

  )

LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

    )

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.80)(PORT = 1521))

    )

  )

ADR_BASE_LISTENER = C:\app\jyt

 

sqlnet.ora

sqlNET.AUTHENTICATION_SERVICES= (NONE)

NAMES.DIRECTORY_PATH= (TNSNAMES,EZCONNECT)

 

l tnsnames.ora

JYTTEST =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = WindowsServer2012R2-Image)(PORT = 1521))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = JYTTest)

    )

  )

ORCL =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = WindowsServer2012R2-Image)(PORT = 1521))

    )

    (CONNECT_DATA =

      (SERVICE_NAME = orcl)

    )

  )

猜你在找的Oracle相关文章