aaa

ORACLE安装

安装包:

1.VMware-workstation-full-11.1.0-2496824.exe

2.CentOS-7-x86_64-DVD-1511.iso

3.linux.x64_11gR2_database_1of2.zip

linux.x64_11gR2_database_2of2.zip

[heming @localhost ~]$ su root  #切换到root

Password:

[root@localhost heming]# groupadd oinstall  #创建用户组oinstall

[root@localhost heming]# groupadd dba   #创建用户组dba

[root@localhost heming]# useradd -g oinstall -g dba -m oracle

创建oracle用户,并加入到oinstall和dba用户组

[root@localhost heming]# passwd oracle

设置用户oracle的登陆密码,不设置密码,在CentOS的图形登陆界面没法登陆

Changing password for user oracle.

New password:

密码

BAD PASSWORD: The password is shorter than 8 characters

Retype new password:

确认密码

passwd: all authentication tokens updated successfully.

[root@localhost heming]# id oracle

查看新建的oracle用户

uid=1001(oracle) gid=1002(dba) groups=1002(dba)

2.创建oracle数据库安装目录

<pre style="text-align:justify;text-justify:inter-ideograph;background:#FAFAFC">[heming@localhost ~]$ su root</pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">Password: </pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">[root@localhost heming]# mkdir -p /data/oracle  #oracle****数据库安装目录</pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">[root@localhost heming]# mkdir -p /data/oraInventory  #oracle****数据库配置文件目录</pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">[root@localhost heming]# mkdir -p /data/database  #oracle****数据库软件包解压目录</pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">[root@localhost heming]# cd /data</pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">[root@localhost data]# ls  #****创建完毕检查一下</pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">database oracle oraInventory</pre>

<pre style="text-align:justify;text-justify:inter-ideograph;background:#FAFAFC">[root@localhost data]# chown -R oracle:oinstall /data/oracle  #****设置目录所有者为oinstall用户组的oracle用户</pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">[root@localhost data]# chown -R oracle:oinstall /data/oraInventory</pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">[root@localhost data]# chown -R oracle:oinstall /data/database</pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">[root@localhost data]# </pre>

3.修改OS系统标识(修改文件 /etc/RedHat-release )

<pre style="text-align:justify;text-justify:inter-ideograph;background:#FAFAFC">[heming@localhost data]$ su root</pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">Password: </pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">[root@localhost data]# cat /proc/version </pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">Linux version 3.10.0-327.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Nov 19 22:10:57 UTC 2015</pre>

<pre style="text-align:justify;text-justify:inter-ideograph;background:#FAFAFC">[root@localhost data]# cat /etc/redhat-release  </pre>

<pre style="text-align:justify;text-justify:inter-ideograph;background:#FAFAFC">CentOS Linux release 7.2.1511 (Core) </pre>

<pre style="text-align:justify;text-justify:inter-ideograph;background:#FAFAFC">[root@localhost data]# vi /etc/redhat-release</pre>

<pre style="text-align:
justify;text-justify:inter-ideograph;background:#FAFAFC">进入到编辑模式了,点击键盘上的“insert”按钮,再将第一行替换为redhat-7,按Esc按钮,输入:wq,注意这里有一个冒号,再回车,保存并退出. </pre>

<pre style="text-align:justify;text-justify:inter-ideograph;background:#FAFAFC">[root@localhost data]# cat /etc/redhat-release </pre>

4、关闭防火墙

关闭防火墙:systemctl stop firewalld.service

禁止使用防火墙:systemctl disable firewalld.service

<v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><v:stroke joinstyle="miter"><v:formulas></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></v:path></v:stroke></v:shapetype><v:shape id="图片_x0020_16" o:spid="_x0000_i1063" type="#_x0000_t75" alt="说明: " style="width:284.25pt;height:71.25pt;visibility:visible;
mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png" o:title=""></v:imagedata></v:shape>

5、关闭selinux

进入编辑状态:vi /etc/selinux/config

将SELINUX的值改为disabled,保存并退出。

<v:shape id="图片_x0020_15" o:spid="_x0000_i1062" type="#_x0000_t75" alt="说明: " style="width:284.25pt;height:141.75pt;visibility:visible;
mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image002.png" o:title=""></v:imagedata></v:shape>

6、修改内核参数

进入编辑状态:vi /etc/sysctl.conf

在最后添加如下代码:

net.ipv4.icmp_echo_ignore_broadcasts = 1

net.ipv4.conf.all.rp_filter = 1

fs.file-max = 6815744

fs.aio-max-nr = 1048576

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144

net.core.rmem_max= 4194304

net.core.wmem_default= 262144

net.core.wmem_max= 1048576

保存并退出。

使配置参数立即生效:sysctl -p

<v:shape id="图片_x0020_14" o:spid="_x0000_i1061" type="#_x0000_t75" alt="说明: " style="width:284.25pt;height:213.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png" o:title=""></v:imagedata></v:shape>

7、对oracle用户设置限制,提高软件运行性能

进入编辑状态:vi /etc/security/limits.conf

找到最后一行# End of file,在它上面空行处添加如下代码:

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

保存并退出。

8、配置用户的环境变量

进入编辑状态:vi /home/oracle/.bash_profile

在最后添加如下代码:

export ORACLE_BASE=/data/oracle #oracle数据库安装目录

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1

export ORACLE_SID=orcl #oracle启动数据库实例名

export ORACLE_TERM=xterm

export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

export LANG=C

export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

保存并退出。

使上述配置立即生效:source /home/oracle/.bash_profile

9、上述都搞定了,便可以进行oracle的安装了。

10、切换用户到oracle用户。如下图所示,单击桌面右上角的三角形图标,单击你的用户名称,单击切换用户。输入你前面设置的oracle账户登录密码。将oracle解压后的文件复制到桌面上,名字为database,双击进入该文件夹,空白处单击右键,选择Open in Terminal进入终端界面。

<v:shape id="图片_x0020_37" o:spid="_x0000_i1060" type="#_x0000_t75" style="width:414.75pt;height:177.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image004.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_38" o:spid="_x0000_i1059" type="#_x0000_t75" style="width:415.5pt;height:267.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image005.png" o:title=""></v:imagedata></v:shape>

du -s /tmp/*|sort -nr|head -3

<v:shape id="图片_x0020_40" o:spid="_x0000_i1058" type="#_x0000_t75" style="width:415.5pt;height:293.25pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image006.png" o:title=""></v:imagedata></v:shape>

<v:shape id="图片_x0020_41" o:spid="_x0000_i1057" type="#_x0000_t75" style="width:415.5pt;height:292.5pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image007.png" o:title=""></v:imagedata></v:shape>

<v:shape id="图片_x0020_39" o:spid="_x0000_i1056" type="#_x0000_t75" style="width:414.75pt;height:288.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image008.png" o:title=""></v:imagedata></v:shape>

<v:shape id="图片_x0020_42" o:spid="_x0000_i1055" type="#_x0000_t75" style="width:415.5pt;height:288.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image009.png" o:title=""></v:imagedata></v:shape>

<v:shape id="图片_x0020_43" o:spid="_x0000_i1054" type="#_x0000_t75" style="width:415.5pt;height:294pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image010.png" o:title=""></v:imagedata></v:shape>

<v:shape id="图片_x0020_44" o:spid="_x0000_i1053" type="#_x0000_t75" style="width:415.5pt;height:291.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image011.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_52" o:spid="_x0000_i1052" type="#_x0000_t75" style="width:415.5pt;height:291pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image012.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_46" o:spid="_x0000_i1051" type="#_x0000_t75" style="width:415.5pt;height:291pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image013.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_47" o:spid="_x0000_i1050" type="#_x0000_t75" style="width:415.5pt;height:290.25pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image014.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_49" o:spid="_x0000_i1049" type="#_x0000_t75" style="width:415.5pt;height:294pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image015.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_50" o:spid="_x0000_i1048" type="#_x0000_t75" style="width:415.5pt;height:289.5pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image016.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_51" o:spid="_x0000_i1047" type="#_x0000_t75" style="width:415.5pt;height:290.25pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image017.png" o:title=""></v:imagedata></v:shape>

[oracle@localhost ~]$ netca

创建监听

<v:shape id="图片_x0020_53" o:spid="_x0000_i1046" type="#_x0000_t75" style="width:415.5pt;height:285pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image018.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_54" o:spid="_x0000_i1045" type="#_x0000_t75" style="width:415.5pt;height:285.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image019.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_55" o:spid="_x0000_i1044" type="#_x0000_t75" style="width:415.5pt;height:287.25pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image020.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_56" o:spid="_x0000_i1043" type="#_x0000_t75" style="width:415.5pt;height:285pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image021.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_57" o:spid="_x0000_i1042" type="#_x0000_t75" style="width:415.5pt;height:288.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image022.png" o:title=""></v:imagedata></v:shape>

[oracle@localhost ~]$ dbca

创建用户

<v:shape id="图片_x0020_66" o:spid="_x0000_i1041" type="#_x0000_t75" style="width:414.75pt;height:300pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image023.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_67" o:spid="_x0000_i1040" type="#_x0000_t75" style="width:414.75pt;height:300.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image024.png" o:title=""></v:imagedata></v:shape>

<v:shape id="图片_x0020_68" o:spid="_x0000_i1039" type="#_x0000_t75" style="width:414.75pt;height:302.25pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image025.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_69" o:spid="_x0000_i1038" type="#_x0000_t75" style="width:414.75pt;height:303.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image026.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_70" o:spid="_x0000_i1037" type="#_x0000_t75" style="width:414.75pt;height:301.5pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image027.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_71" o:spid="_x0000_i1036" type="#_x0000_t75" style="width:414.75pt;height:300.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image028.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_72" o:spid="_x0000_i1035" type="#_x0000_t75" style="width:414.75pt;height:301.5pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image029.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_73" o:spid="_x0000_i1034" type="#_x0000_t75" style="width:414.75pt;height:301.5pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image030.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_74" o:spid="_x0000_i1033" type="#_x0000_t75" style="width:414.75pt;height:300.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image031.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_75" o:spid="_x0000_i1032" type="#_x0000_t75" style="width:414.75pt;height:300.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image032.png" o:title=""></v:imagedata></v:shape>

<v:shape id="图片_x0020_65" o:spid="_x0000_i1031" type="#_x0000_t75" style="width:6in;height:317.25pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image033.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_64" o:spid="_x0000_i1030" type="#_x0000_t75" style="width:6in;height:312pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image034.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_60" o:spid="_x0000_i1029" type="#_x0000_t75" style="width:6in;height:312.75pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image035.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_59" o:spid="_x0000_i1028" type="#_x0000_t75" style="width:414.75pt;height:302.25pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image036.png" o:title=""></v:imagedata></v:shape> <v:shape id="图片_x0020_62" o:spid="_x0000_i1027" type="#_x0000_t75" style="width:414.75pt;height:302.25pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image037.png" o:title=""></v:imagedata></v:shape>

CenotOS6中文环境下安装Oracle 11g 中文乱码 解决办法

Linux下安装Oracle11g,安装界面乱码问题解决方法:

解决安装时中文是"囗囗囗囗囗囗囗囗"

1.进入刚解压的database/stage/Components/oracle.jdk/1.5.0.17.0/1/DataFiles/all.jar

2.在桌面新建一个文件夹命名为fallback,下载中文字体(zysong.ttf)放入里面去。

3.用归档管理器打开all.jar它进入/jdk/jre/lib/fonts/把在桌面建好的fallback文件夹拖放进来,完成后的目录结构应该是/jdk/jre/lib/fonts/fallback/zysong.ttf。

NETWORKING=yes

NETWORKING_IPV6=no

HOSTNAME= localhost.localdomain

hostname localhost.localdomain

192.168.68.129 localhost.localdomain localhost.localdomain.mycompany.com.cn

https://www.oracle.com/index.html

wget http://download.oracle.com/otn/linux/oracle11g/R2/linux.x64_11gR2_database_1of2.zip

ORACLE_HOME/product/11.2.0/db_1/network/admin/listener.ora

/home/oracle/oracle/product/11.2.0/db_1/network/admin/listener.ora

<v:shape id="图片_x0020_8" o:spid="_x0000_i1026" type="#_x0000_t75" style="width:415.5pt;height:241.5pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image038.png" o:title=""></v:imagedata></v:shape>

<v:shape id="图片_x0020_9" o:spid="_x0000_i1025" type="#_x0000_t75" style="width:415.5pt;height:289.5pt;
visibility:visible;mso-wrap-style:square"><v:imagedata src="file:///C:\Users\Administrator\AppData\Local\Temp\msohtmlclip1\01\clip_image039.png" o:title=""></v:imagedata></v:shape>

sql>alter user dbsnmp identified by orcl

alter user dbsnmp identified by orcl

<pre style="line-height:21.75pt;background:white">3、打开一个终端 4、在终端里面敲下面的命令启动数据库 1)sqlplus / as sysdba

2)startup

5、再开一个终端,敲入如下命令启动监听和oem

1)启动监听 lsnrctl start

2)启动oem服务 emctl start 注意oem服务启动后会有一个网址的提示,利用这个网址就可以通过ie用图形界面操作oracle了</pre>


经过各种尝试和折腾后,最终还是把问题给搞定了,步骤如下:

1. 停止监听器

?

|

1

|

$ lsnrctl stop

|

2. 停止 oracle 数据库

?

|

1

2

3

4

5

6

7

8

9

10

11

12

13

|

$ sqlplus "sys / as sysdba"

SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 10 17:16:45 2015

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

Enter password:

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> shutdown

|

3. 修改 $ORACLE_HOME/network/admin/listener.ora,将文件内容中 HOST 的值改为正确的 IP(192.168.132.41),如:

?

|

1

2

3

4

5

6

7

|

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

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

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

)

)

|

4. 修改 $ORACLE_HOME/network/admin/tnsnames.ora,将文件内容中 HOST 的值改为正确的 IP(192.168.132.41),如:

?

|

1

2

3

4

5

6

7

8

|

ORCL =

(DESCRIPTION =

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

(CONNECT_DATA =

  (SERVER = DEDICATED)

  (SERVICE_NAME = orcl)

)

)

|

5. 修改 /etc/sysconfig/network,

需要进入root身份才能进行修改

将文件内容改为:

| |

NETWORKING=yes

NETWORKING_IPV6=no

HOSTNAME=hemw-pc

因为修改完这个文件后需要重启操作系统才会生效,所以在不重启操作系统的情况下需要同时执行一下:# hostname hemw-pc

6. 修改 /etc/hosts,在文件的最后新增如下内容:

?

| |

|

192.168.68.129 hemw-pc hemw-pc.mycompany.com.cn

4、在终端里面敲下面的命令启动数据库 1)sqlplus / as sysdba
2)startup

��ڟ���V��7���

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 159,219评论 4 362
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,363评论 1 293
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 108,933评论 0 243
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 44,020评论 0 206
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,400评论 3 287
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,640评论 1 219
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,896评论 2 313
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,597评论 0 199
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,327评论 1 244
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,581评论 2 246
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 32,072评论 1 261
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,399评论 2 253
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 33,054评论 3 236
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,083评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,849评论 0 195
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,672评论 2 274
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,585评论 2 270

推荐阅读更多精彩内容