安装oracle之后执行dbca的时候报错;

sh:/bin/ksh:Nosuch file or directory

  怀疑是没有安装ksh包,yum installksh

搞定!

File “/etc/oratab” is not accessible

 原来是没有执行root.sh脚本,在oracle的家目录下(cd$ORACLE_HOMEproduct/11.2.0/db_1/ 目录下执行./root.sh

执行之后还是有报错,

ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name'LISTENER_ORCL'

怀疑是监听的问题,lsnrctlstart启动失败,具体的报错信息既不清楚了,于是重新添加监听。

执行netca的时候报错;

TNS-12545 Connect failed because target host or object does not exist

经过检查是由于tnsname.ora文件不存在导致的,因为oracle不是我安装的,不太清楚为什么没有这个文件。于是从其他服务器上拷贝了一份过来:

# tnsnames.ora Network Configuration File:/u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora

# Generated by Oracle configuration tools.

 

Oracle11g=

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL =TCP)(HOST = *.*.*.*)(PORT = 1521))

    )

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SID = orcl)

    )

  )

 

ORCL =

  (DESCRIPTION =

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

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = orcl)

    )

 拷贝之后执行lsnrctl,监听启动成功。

执行startup的时候

SQL> startup

ORA-00845: MEMORY_TARGET not supported on this system

root@test~]# cat /etc/fstab | grep tmpfs

tmpfs                 /dev/shm              tmpfs  defaults    0 0

重新挂载shm分区 mount -oremount,size=8G /dev/shm

修改fstab使其永久生效vi/etc/fstab

/dev/mapper/vg_ccbfpp-lv_home/home                   ext4    defaults        1 2

/dev/mapper/vg_ccbfpp-lv_swap swap                    swap    defaults        0 0

tmpfs                   /dev/shm                tmpfs   defaults        0 0

devpts                 /dev/pts                devpts  gid=5,mode=620  0 0

sysfs                   /sys                    sysfs   defaults        0 0

proc                    /proc                   proc    defaults        0 0

tmpfs                 /dev/shm             tmpfs  defaults,size=16g      0 0

df -h|grepshm

tmpfs               8G    0 16G  0% /dev/shm

SQL>startup

ORACLE instancestarted.

Total SystemGlobal Area 9420095488 bytes

FixedSize                2236248 bytes

VariableSize          2315255976 bytes

DatabaseBuffers        7046430720 bytes

RedoBuffers              56172544 bytes

Databasemounted.

Databaseopened.

SQL> exit

真是一波三折啊。