BI_DBA_安裝(1):安裝OS及DB

1.這部分沒有什麼好講的,關鍵的點注意好就好了,linux

開啓FTP\關閉防火牆等等.web

爲了方便DB的安裝 直接使用Oracle提供的oracle-validated包來簡化oracle安裝。數據庫

[root@db03 ~]# cd /etc/yum.repos.d  
[root@db03 yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el5.repo  
session

[root@db03 yum.repos.d]# yum install oracle-validated  oracle

會安裝如下幾個部分:app

(1)自動安裝oracle所需的RPM包dom

(2)自動建立oracle用戶和group組ide

(3)自動配置/etc/sysctl.conf內核參數url

(4)自動配置/etc/security/limits.conf參數spa

(5)關閉NUMA=OFF   (關閉非一致內存訪問)

ps.oracle linux 6_64bit上,提供了oracle-rdbms-server-11gR2-preinstall包

yum install oracle-rdbms-server-11gR2-preinstall

掛上光盤:

[oel6_local]

 name = oracle Enterprise Linux 6

 baseurl=file:///mnt/cdrom/Server/

 gpgcheck=0

 enabled=1

裝完後配好監聽等等

2.注意將JDK升級爲1.6版本

export JAVA_HOME="/usr/local/jdk1.6.0_33"
export CLASS_PATH="$JAVA_HOME/lib:$JAVA_HOME/jre/lib"
export PATH=".:$PATH:$JAVA_HOME/bin"

3.建立DB相關信息

 

create tablespace bidimd datafile '/u01/app/oracle/oradata/bidw/bidimd01.dbf' size 2000M reuse autoextend off;  --informatica

create tablespace bidacd datafile '/u01/app/oracle/oradata/bidw/bidacd01.dbf' size 2000M reuse autoextend on; --dac

create tablespace bidwd datafile '/u01/app/oracle/oradata/bidw/bidwd01.dbf' size 4000M reuse autoextend OFF; --dw

create tablespace bidwx datafile '/u01/app/oracle/oradata/bidw/bidwx01.dbf' size 4000M reuse autoextend OFF;  --索引

建立用戶:

create user infodomain identified by Test123 default tablespace bidimd temporary tablespace temp;

create user inforeps identified by Test123 default tablespace bidimd temporary tablespace temp;

create user dacreps identified by Test123 default tablespace bidacd temporary tablespace temp;

create user bidw identified by Test123 default tablespace bidwd temporary tablespace temp;

建立角色:

CREATE ROLE SSE_ROLE;

GRANT CONNECT, RESOURCE,DBA TO SSE_ROLE;

GRANT SELECT ANY TABLE TO SSE_ROLE;

GRANT INSERT ANY TABLE TO SSE_ROLE;

GRANT UPDATE ANY TABLE TO SSE_ROLE;

GRANT DELETE ANY TABLE TO SSE_ROLE;

GRANT GRANT ANY OBJECT PRIVILEGE TO SSE_ROLE;

GRANT GRANT ANY PRIVILEGES TO SSE_ROLE;

GRANT SSE_ROLE TO infodomain;

GRANT SSE_ROLE TO inforeps;

GRANT SSE_ROLE TO dacreps;    

GRANT SSE_ROLE TO  bidw;

Alter User inforeps QUOTA unlimited on bidimd;

Alter User infodomain QUOTA unlimited on bidimd;

Alter User dacreps QUOTA unlimited on bidacd;

Alter User bidw QUOTA unlimited on bidwd;

Alter User bidw QUOTA unlimited on bidwx;

修改數據庫進程,會話,遊標

alter  system set processes=1000 scope=spfile;

alter  system set open_cursors=1000 scope=spfile;

alter  system set sessions=2000 scope=spfile;

修改用戶有效時間-永不過時:

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

備份文件:

.control_files='/u01/app/oracle/oradata/bidw/control01.ctl','/u01/app/oracle/fast_recovery_area/bidw/control02.ctl'

--alter user bidw identified by test123456 default tablespace bidwd temporary tablespace temp;
 

4.安裝RCU

安裝-連接DB-建立RCU前綴

選公用as方案\biee\選擇相應的表空間

相關文章
相關標籤/搜索