A. linux下Oracle监听服务启动失败,高人进来帮忙解决一下~
错误提示是没有权限,网上搜了下看到:
The Unix permissions for the hidden directory /tmp/.oracle should be:
Owner = the Oracle user who performed the database install,
Group = the dba group of the Oracle user,
and the directory's Unix permissions should be drwxrwxrwx
试试:
1) 进入/tmp目录
# cd /var/tmp(on Solaris Linux)
或者
# cd /tmp(on Hp and IBM)
2) 修改权限
# chown -R oracle10:dba .oracle
或者
# chmod 777 .oracle
B. linux操作系统下oracle数据库如何配置监听
1. 修改监听器配置文件
Linux下Oracle监听器配置文件在:$ ORACLE_HOME/network/admin/listerer.ora, 如:
/bank/oracle/oracle10g/proct/10.2.0/network/admin/listener.ora
修改并配置要监听SID的相关信息,如:
#listener.ora Network Configuration File: /bank/oracle/oracle10g/proct/10.2.0/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /bank/oracle/oracle10g/proct/10.2.0)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL DBNAME = bkserver)
(SID_NAME = bkserver)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.7.13.242)(PORT = 1521))
)
)
2. 启动监听器
(1). 切换至oracle安装用户(一般为oracle)
su - oracle
(2). 启动监听器
lsnrctl start
另:停止监听器
lsnrctl stop
3. 测试监听器是否运行正常
在客户端修改tnsnames.ora配置文件就访问Oracle数据库,如:
BKSERVER =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.7.13.242)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = BKSERVER)
)
)
通过命令tnsping测试是否能访问到监听器,如:
M:\>tnsping bkserver
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Proction on 12-8月 -
2010 17:11:04
Copyright (c) 1997, 2005, Oracle. All rights reserved.
已使用的参数文件:
D:\oracle\proct\10.2.0\client_1\network\admin\sqlnet.ora
已使用 TNSNAMES 适配器来解析别名
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 10.7.13.242)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVIC
E_NAME = BKSERVER)))
OK (20 毫秒)
注意: 监听器是否能被tnsping通跟数据库的开启/关闭无关,所以就算可以tnsping通监听器但未必能连接到数据库,这时请检查listener.ora文件配置信息是否正确,还有数据库是否已经被开启。
C. linux下启动oracle监听时报错
错误:
[oracle@Oora log]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Proction on 18-12月-2009 17:22:17
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /opt/app/oracle/proct/10.2.0/db_1/bin/tnslsnr: please wait...
TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
[oracle@ora log]$
解决办法:
1:查看/etc/hosts文件,一定要包含以下语句:
127.0.0.1 localhost.localdomain localhost
2:保证下面2个文件标红的内容要完全一样
修改listener.ora文件
默认情况下该文件内容:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =你的服务器IP地址)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
修改tnsnames.ora文件
默认情况下该文件内容
orcl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =你的服务器IP地址)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
D. linux 下的oracle怎么启动
1、首先打开命令行窗口,切换到su - oracle,启动数据库监听。
E. linux操作系统下,如何启动oracle服务与监听命令
1、切换到oracle用户x0dx0asu - oraclex0dx0a2、startdb.sh命令脚本x0dx0a#!/bin/shx0dx0alsnrctl startx0dx0asqlplus "/as sysdba" << 、netstat -ntlp或ps -ef |grep ora检查x0dx0a4、shutdb.sh命令脚本x0dx0a#!/bin/bashx0dx0alsnrctl stopx0dx0asqlplus "/as sysdba" << EOFx0dx0ashutdown immediatex0dx0aEOF
F. 如何在linux suse中安装Oracle 11g创建监听
在linux suse中安装Oracle 11g创建监听的步骤:
在本地oracle用户模式下 oracle@linux-udly:~> netca
接下来按图一直点击NEXT
此处可以修改oracle监听器的端口号
G. Linux下如何启动、关闭Oracle以及打开关闭监听
1、以oracle用户登录系统,如果是root用户,使用su - oracle切换用户。