Oracle12c_安装2——安装篇

 

 

 

安装分为图形安装,静默安装.推荐图形安装,出错率小,简洁明了。

1.安装vnc_server

yum -y install vnc *vnc-server*


2.修改VNCServer主配置文件
   复制最后两行并去掉行首注释符,然后修改为

#vim /etc/sysconfig/vncservers

VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 1024x768"

3.设置VNCServer远程连接密码

#vncserver
输入两次相同的密码123456

4.安装

 等待。。。

 

 

su - root
[root@Node1 ~]# /home/oracle/oraInventory/orainstRoot.sh [root@Node1 ~]# /home/oracle/app/product/12.2.0/db_1/root.sh

 

前面安装的是仅安装数据库软件,没有建实例。

5.新建实例:

dbca

 

6.新建监听

netca

注意三个.ora文件.

[oracle@Node1 admin]$ cd $ORACLE_HOME/network/admin/

  

[oracle@Node1 admin]$ cat listener.ora

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

  

[oracle@Node1 admin]$ cat sqlnet.ora 
SQLNET.ALLOWED_LOGON_VERSION_SERVER=8 SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8

  

[oracle@Node1 admin]$ cat tnsnames.ora 
ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = Node1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) ) LISTENER_ORCLCDB = (ADDRESS = (PROTOCOL = TCP)(HOST = Node1)(PORT = 1521)) DISS2 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = Node1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = diss2) ) )

 

sqlplus登陆后 出现部分乱码想象。

7.添加字符集变量。

export NLS_LANG='AMERICAN_AMERICA.UTF8';

(试过 'SIMPLIFIED CHINESE_CHINA.ZHS16GBK' )依然乱码。。。

 安装成功!

 

posted on 2017-12-29 15:00  ajistyle  阅读(169)  评论(0编辑  收藏  举报

导航