一.相關(guān)文檔
1.1創(chuàng)建表空間與用戶授權(quán)
http://blog.sina.com.cn/s/blog_4b7809800100zsw5.html
1.2在監(jiān)聽上注冊(cè)實(shí)例
http://blog.csdn.net/enyutime/article/details/9270625
http://wenku.baidu.com/link?url=oBh78gQrTbS3rt6dxBTiF_u8crZObTXN6GgqazmqE8xVPrMCORtYyWraXX-Dx0Xj8oRihrIn5z4CzRgym_SxBU4z28I4xue0qHn08Ifvm8i&qq-pf-to=pcqq.group
1.3創(chuàng)建實(shí)例
注:?jiǎn)?dòng)是必須使用ssh協(xié)義
命令 ?/usr/bin/gnome-session --display $DISPLAY
進(jìn)入 x-nautilus-desk
三.報(bào)錯(cuò)解決方法
3.1執(zhí)行./dbca(實(shí)例),netca(監(jiān)聽)時(shí)報(bào)如下錯(cuò)誤
DISPLAY not set!
Please set DISPLAY and try again.
解決方法:$export DISPLAY=192.168.4.93:0.0再執(zhí)行./dbca
$export DISPLAY=192.168.4.118:0.0
注:192.168.4.118為本機(jī)地址
$export DISPLAY=192.168.4.93:0.0
3.2執(zhí)行./dbca怎囚,netca時(shí)沒彈出orcle操作界面
原因:沒有啟動(dòng)Xmanager 4
3.3中文linux安裝oracle界面亂碼解決方案
在linux的中文操作系統(tǒng)下使用xmanager進(jìn)行oracle進(jìn)行安裝的時(shí)候螃概,可能出現(xiàn)亂碼界面卡儒,可以通過以下方法進(jìn)行解決
1 修改環(huán)境屬性? vi /etc/sysconfig/i18n
LANG="en_US.UTF-8"
2 在每次調(diào)用圖形界面以前默垄,我們使用export臨時(shí)設(shè)置LANG(ORACLE 用戶)
export LANG=en_US.UTF-8
3 在每次調(diào)用圖形界面以前棍丐,我們使用export臨時(shí)設(shè)置 LC_CTYPE
export LC_CTYPE=en_US.iso88591
提示:我們可以使用linux的locale命令查看相關(guān)的字符集
四.操作步驟(用SSH登錄)
1.使用root用戶登錄
2.切換到oracle用戶
3.切換到bin目錄
3.1創(chuàng)建監(jiān)聽
export DISPLAY=192.168.4.118:0.0(在xmmage4中啟動(dòng)創(chuàng)建監(jiān)聽)
netca
3.2創(chuàng)建實(shí)例
export DISPLAY=192.168.4.118:0.0(在xmmage4中啟動(dòng)創(chuàng)建監(jiān)聽)
./dbca
注:安裝時(shí)注意字符集選持utf-8
3.3創(chuàng)建表空間與授權(quán)用戶(在客戶端使用sys帳號(hào)登錄執(zhí)行)
3.3.1創(chuàng)建臨時(shí)表空間
create temporary tablespace testimgdb_temp
tempfile '/u01/oradata/testimgdb/testimgdb_temp.dbf'
size 100m
autoextend on
next 100m maxsize 2048m
extent management local;
3.3.2創(chuàng)建數(shù)據(jù)表空間
create tablespace testimgdb_date
datafile '/u01/oradata/testimgdb/testimgdb_date.dbf'
size 100m
autoextend on
next 100m maxsize 2048m
extent management local;
3.3.3創(chuàng)建用戶并指定表空間
create user tydbMgr identified by tydbMgr
default tablespace testimgdb_date
temporary tablespace testimgdb_temp;
3.3.4給用戶授權(quán)
grant dba to tydbMgr with admin option;
grant execute on sys.dbms_sys_sql to tydbMgr with grant option;
grant unlimited tablespace to tydbMgr;
--grant connect,resource to tydbMgr;
3.3創(chuàng)建表空間與授權(quán)用戶(在客戶端使用 sys帳號(hào)登錄執(zhí)行)
3.3.1創(chuàng)建臨時(shí)表空間
create temporary tablespace testdb_temp
tempfile '/oracledata/testdb/testdb_temp.dbf'
size 100m
autoextend on
next 100m maxsize 2048m
extent management local;
3.3.2 創(chuàng)建數(shù)據(jù)表空間
create tablespace testdb_date
datafile '/oracledata/testdb/testdb_date.dbf'
size 100m
autoextend on
next 100m maxsize 2048m
extent management local;
3.3.3 創(chuàng)建用戶并指定表空間
create user tydbMgr identified by tydbMgr
default tablespace testdb_date
temporary tablespace testdb_temp;
3.3.4 給用戶授權(quán)
grant dba to tydbMgr with admin option;
grant execute on sys.dbms_sys_sql to tydbMgr with grant option;
grant unlimited tablespace to tydbMgr;
--grant connect,resource to tydbMgr;
=====================testty=======================
3.3.1創(chuàng)建臨時(shí)表空間
create temporary tablespace gps_temp
tempfile '/u01/oradata/testty/gps_temp.dbf'
size 100m
autoextend on
next 100m maxsize 2048m
extent management local;
3.3.2 創(chuàng)建數(shù)據(jù)表空間
create tablespace gps_data
datafile '/u01/oradata/testty/gps_data.dbf'
size 100m
autoextend on
next 100m maxsize 2048m
extent management local;
3.3.3 創(chuàng)建用戶并指定表空間
create user gps identified by gps2014
default tablespace? gps_data
temporary tablespace? gps_temp;
3.3.4 給用戶授權(quán)
grant dba to gps with admin option;
grant execute on sys.dbms_sys_sql to gps with grant option;
grant unlimited tablespace to gps;
grant connect,resource to gps;
-----------------------------------刪除表空間---------------------------
步驟一:? 刪除user
drop user tydbMgr cascade
說明: 刪除了user锦秒,只是刪除了該user下的schema objects乳丰,是不會(huì)刪除相應(yīng)的tablespace的绍填。
步驟二: 刪除tablespace
DROP TABLESPACE testwfdb_date INCLUDING CONTENTS AND DATAFILES;
/oracledata霎桅、
然后根據(jù)你的實(shí)例名
如:/oracledata/kfdb
什么的