fedora10 下安裝 oracle xe(續)
前一篇沒顯示完,太長,本文續:
SQL> shutdown immediate
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
SQL> shutdown
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
SQL> startup mount
ORA-01078: failure in processing system parameters
LRM-00109: '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora'
SQL> vi /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora
SP2-0734: 未知的命令開頭 "vi /usr/li..." - 忽略了剩餘的行。
SQL> quit
已斷開連線
[oracle@yellow admin]$ cd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora
bash: cd: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora: 沒
有那個檔案或目錄
[oracle@yellow admin]$ cd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/
[oracle@yellow dbs]$ ls
init.ora
[oracle@yellow dbs]$ vi init.ora
[oracle@yellow dbs]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:44:20 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
已連線到空閒例程。
SQL> select * from dual;
select * from dual
*
第 1 行出現錯誤:
ORA-01034: ORACLE not available
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: ������������������������ '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora'
SQL> quit
已斷開連線
[oracle@yellow dbs]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:44:20 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
已連線到空閒例程。
SQL> select * from dual;
select * from dual
*
第 1 行出現錯誤:
ORA-01034: ORACLE not available
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: ������������������������ '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora'
SQL> quit
已斷開連線
[oracle@yellow dbs]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:46:37 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
已連線到空閒例程。
SQL> select * from dual;
select * from dual
*
第 1 行出現錯誤:
ORA-01034: ORACLE not available
SQL> startup
ORA-00371: not enough shared pool memory, should be atleast 62198988 bytes
SQL> quit
已斷開連線
[oracle@yellow dbs]$ ls
initXE.ora
[oracle@yellow dbs]$ vi initXE.ora
[oracle@yellow dbs]$ vi initXE.ora
[oracle@yellow dbs]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:48:35 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
已連線到空閒例程。
SQL> startup
ORACLE 例程已經啟動。
Total System Global Area 121634816 bytes
Fixed Size 1257476 bytes
Variable Size 109055996 bytes
Database Buffers 8388608 bytes
Redo Buffers 2932736 bytes
ORA-00205: ?????????, ??????, ???????
SQL> select * from dual
2 ;
ADDR INDX INST_ID DUM
-------- ---------- ---------- ---
0C0362D4 0 1 X
到這裡基本就ok了,其中注意幾個配置檔案的設定:
1,.bash_profile 一些環境變數:oracle_home等
[oracle@yellow admin]$ su - oracle
密碼:
[oracle@yellow ~]$ vi .bash_profile
[oracle@yellow ~]$
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_BASE=/usr/lib/oracle/xe/app
ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/server
ORACLE_SID=XE
LSNR=$ORACLE_HOME/bin/lsnrctl
SQLPLUS=$ORACLE_HOME/bin/sqlplus
PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_BASE
export ORACLE_HOME
export ORACLE_SID
export PATH
LD_LABRARY_PATH=$ORACLE_HOME/lib
export LD_LABRARY_PATH
source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
2,配置tns和監聽
[oracle@yellow ~]$ cd $oracle_home
[oracle@yellow ~]$ cd $ORACLE_HOME
[oracle@yellow server]$ cd network/admin
[oracle@yellow admin]$ ll
總計 20
-r--r--r-- 1 oracle dba 453 08-22 17:18 listener.ora
drwxr-xr-x 2 oracle dba 4096 08-16 11:57 samples
-rw-r--r-- 1 oracle oinstall 6174 08-22 17:38 sqlnet.log
-r--r--r-- 1 oracle dba 424 08-22 17:32 tnsnames.ora
[oracle@yellow admin]$ vi tnsnames.ora
# tnsnames.ora Network Configuration File:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
配置監聽:
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
)
DEFAULT_SERVICE_LISTENER = (XE)
如果配置有問題的話,可能會有一些報錯:
[oracle@yellow admin]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:19:52 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
oracleXE: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
ERROR:
ORA-12547: TNS: 丟失連線
3,配置 initXE.ora (XE是sid,根據需要重新命名)
如果不配置的話可能有如下錯誤:
SQL> shutdown
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
SQL> startup mount
ORA-01078: failure in processing system parameters
LRM-00109: ������������������������ '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora'
要做的是首先重新命名,然後修改其中的db_name:
[oracle@yellow admin]$ vi /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora
[oracle@yellow admin]$
# replace DEFAULT with your database name
db_name=XE
再試一下,還有可能有報錯:
[oracle@yellow dbs]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:46:37 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
已連線到空閒例程。
SQL> select * from dual;
select * from dual
*
第 1 行出現錯誤:
ORA-01034: ORACLE not available
SQL> startup
ORA-00371: not enough shared pool memory, should be atleast 62198988 bytes
SQL> quit
這個是說 shared pool memory設定的太小
回到上面的:
[oracle@yellow admin]$ vi /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora
[oracle@yellow admin]$
找到相應的設定:
shared_pool_size = 80000000 # SMALL
# shared_pool_size = 5000000 # MEDIUM
# shared_pool_size = 9000000 # LARGE
如果還有其他問題,則同樣的處理。
然後:
[oracle@yellow dbs]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:48:35 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
已連線到空閒例程。
SQL> startup
ORACLE 例程已經啟動。
Total System Global Area 121634816 bytes
Fixed Size 1257476 bytes
Variable Size 109055996 bytes
Database Buffers 8388608 bytes
Redo Buffers 2932736 bytes
ORA-00205: ?????????, ??????, ???????
SQL> select * from dual
2 ;
ADDR INDX INST_ID DUM
-------- ---------- ---------- ---
0C0362D4 0 1 X
到這裡就基本ok了。
---------------------------------------
很懷念在學校的日子,雖然那時候很茫然。
很多時候沒有堅持下去,不過嘗試很多。
花了很長的時間才明白:who am i,what i want,where am going.
所以一定要記得andy說過的話:
hope is a good thing ,maybe the best of all.
很多時候堅持一下,會有很大不同。
SQL> shutdown immediate
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
SQL> shutdown
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
SQL> startup mount
ORA-01078: failure in processing system parameters
LRM-00109: '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora'
SQL> vi /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora
SP2-0734: 未知的命令開頭 "vi /usr/li..." - 忽略了剩餘的行。
SQL> quit
已斷開連線
[oracle@yellow admin]$ cd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora
bash: cd: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora: 沒
有那個檔案或目錄
[oracle@yellow admin]$ cd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/
[oracle@yellow dbs]$ ls
init.ora
[oracle@yellow dbs]$ vi init.ora
[oracle@yellow dbs]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:44:20 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
已連線到空閒例程。
SQL> select * from dual;
select * from dual
*
第 1 行出現錯誤:
ORA-01034: ORACLE not available
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: ������������������������ '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora'
SQL> quit
已斷開連線
[oracle@yellow dbs]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:44:20 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
已連線到空閒例程。
SQL> select * from dual;
select * from dual
*
第 1 行出現錯誤:
ORA-01034: ORACLE not available
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: ������������������������ '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora'
SQL> quit
已斷開連線
[oracle@yellow dbs]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:46:37 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
已連線到空閒例程。
SQL> select * from dual;
select * from dual
*
第 1 行出現錯誤:
ORA-01034: ORACLE not available
SQL> startup
ORA-00371: not enough shared pool memory, should be atleast 62198988 bytes
SQL> quit
已斷開連線
[oracle@yellow dbs]$ ls
initXE.ora
[oracle@yellow dbs]$ vi initXE.ora
[oracle@yellow dbs]$ vi initXE.ora
[oracle@yellow dbs]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:48:35 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
已連線到空閒例程。
SQL> startup
ORACLE 例程已經啟動。
Total System Global Area 121634816 bytes
Fixed Size 1257476 bytes
Variable Size 109055996 bytes
Database Buffers 8388608 bytes
Redo Buffers 2932736 bytes
ORA-00205: ?????????, ??????, ???????
SQL> select * from dual
2 ;
ADDR INDX INST_ID DUM
-------- ---------- ---------- ---
0C0362D4 0 1 X
到這裡基本就ok了,其中注意幾個配置檔案的設定:
1,.bash_profile 一些環境變數:oracle_home等
[oracle@yellow admin]$ su - oracle
密碼:
[oracle@yellow ~]$ vi .bash_profile
[oracle@yellow ~]$
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_BASE=/usr/lib/oracle/xe/app
ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/server
ORACLE_SID=XE
LSNR=$ORACLE_HOME/bin/lsnrctl
SQLPLUS=$ORACLE_HOME/bin/sqlplus
PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_BASE
export ORACLE_HOME
export ORACLE_SID
export PATH
LD_LABRARY_PATH=$ORACLE_HOME/lib
export LD_LABRARY_PATH
source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
2,配置tns和監聽
[oracle@yellow ~]$ cd $oracle_home
[oracle@yellow ~]$ cd $ORACLE_HOME
[oracle@yellow server]$ cd network/admin
[oracle@yellow admin]$ ll
總計 20
-r--r--r-- 1 oracle dba 453 08-22 17:18 listener.ora
drwxr-xr-x 2 oracle dba 4096 08-16 11:57 samples
-rw-r--r-- 1 oracle oinstall 6174 08-22 17:38 sqlnet.log
-r--r--r-- 1 oracle dba 424 08-22 17:32 tnsnames.ora
[oracle@yellow admin]$ vi tnsnames.ora
# tnsnames.ora Network Configuration File:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
配置監聽:
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
)
DEFAULT_SERVICE_LISTENER = (XE)
如果配置有問題的話,可能會有一些報錯:
[oracle@yellow admin]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:19:52 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
oracleXE: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
ERROR:
ORA-12547: TNS: 丟失連線
3,配置 initXE.ora (XE是sid,根據需要重新命名)
如果不配置的話可能有如下錯誤:
SQL> shutdown
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
SQL> startup mount
ORA-01078: failure in processing system parameters
LRM-00109: ������������������������ '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora'
要做的是首先重新命名,然後修改其中的db_name:
[oracle@yellow admin]$ vi /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora
[oracle@yellow admin]$
# replace DEFAULT with your database name
db_name=XE
再試一下,還有可能有報錯:
[oracle@yellow dbs]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:46:37 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
已連線到空閒例程。
SQL> select * from dual;
select * from dual
*
第 1 行出現錯誤:
ORA-01034: ORACLE not available
SQL> startup
ORA-00371: not enough shared pool memory, should be atleast 62198988 bytes
SQL> quit
這個是說 shared pool memory設定的太小
回到上面的:
[oracle@yellow admin]$ vi /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora
[oracle@yellow admin]$
找到相應的設定:
shared_pool_size = 80000000 # SMALL
# shared_pool_size = 5000000 # MEDIUM
# shared_pool_size = 9000000 # LARGE
如果還有其他問題,則同樣的處理。
然後:
[oracle@yellow dbs]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 8月 22 17:48:35 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
請輸入使用者名稱: sys/sys as sysdba
已連線到空閒例程。
SQL> startup
ORACLE 例程已經啟動。
Total System Global Area 121634816 bytes
Fixed Size 1257476 bytes
Variable Size 109055996 bytes
Database Buffers 8388608 bytes
Redo Buffers 2932736 bytes
ORA-00205: ?????????, ??????, ???????
SQL> select * from dual
2 ;
ADDR INDX INST_ID DUM
-------- ---------- ---------- ---
0C0362D4 0 1 X
到這裡就基本ok了。
---------------------------------------
很懷念在學校的日子,雖然那時候很茫然。
很多時候沒有堅持下去,不過嘗試很多。
花了很長的時間才明白:who am i,what i want,where am going.
所以一定要記得andy說過的話:
hope is a good thing ,maybe the best of all.
很多時候堅持一下,會有很大不同。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/16179598/viewspace-612969/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- centos7.3上安裝oracle xe 11gCentOSOracle
- oracleLinux下安裝oracleOracleLinux
- ubuntu下安裝oracleUbuntuOracle
- windows下oracle安裝WindowsOracle
- Windows下Oracle的下載與安裝WindowsOracle
- Oracle Linux 7.5下載和安裝OracleLinux
- Solaris下Oracle RAC 11.2.0.4 安裝方法Oracle
- ubuntu下安裝python-opencv(待續)UbuntuPythonOpenCV
- Oracle 19C 下載和安裝Oracle
- Linux下Oracle 11.2.0.1 RAC安裝筆記LinuxOracle筆記
- Oracle 21C下載和安裝Oracle
- oracle11g安裝和下載Oracle
- Oracle 19C下載和安裝(二)Oracle
- Oracle 19C的下載和安裝部署(圖形安裝和靜默安裝)Oracle
- oracle安裝配置Oracle
- Oracle RUR 安裝Oracle
- Linux安裝oracleLinuxOracle
- golang oracle 安裝GolangOracle
- linux環境下解除安裝oracle11gLinuxOracle
- 11. Oracle for Linux安裝和配置—11.3. Oracle安裝和配置—11.3.1. Oracle軟體安裝OracleLinux
- 「Oracle」Oracle 資料庫安裝Oracle資料庫
- oracle 19c 安裝、解除安裝Oracle
- 靜默方式安裝、升級oracle(一): 安裝oracle軟體Oracle
- Ubuntu 16.04下安裝資料庫Oracle客戶端Ubuntu資料庫Oracle客戶端
- Oracle 23C Free下載安裝及新特性Oracle
- Oracle 12.2 OJVM安裝OracleJVM
- Docker中安裝OracleDockerOracle
- 安裝centOS版本oracleCentOSOracle
- Oracle靜默安裝Oracle
- Oracle GoldenGate安裝(一)OracleGo
- Oracle GoldenGate安裝(二)OracleGo
- Oracle GoldenGate安裝(三)OracleGo
- Oracle Payment Interface安裝Oracle
- Oracle:Windows10下安裝oracle client (win32_11gR2_client)OracleWindowsclientWin32
- Windows環境下Oracle11g安裝的問題WindowsOracle
- Linux下利用指令碼靜默安裝Oracle11GLinux指令碼Oracle
- Ubuntu 16.04下安裝Oracle資料庫的ODBC驅動UbuntuOracle資料庫
- oracle下載安裝及PLSQL連線資料庫教程OracleSQL資料庫
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle