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切換用戶。