您好,登錄后才能下訂單哦!
這篇文章將為大家詳細講解有關ORACLE-LINUX環境字符界面單實例如何安裝,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。
vi /etc/sysconfig/network-scripts/ifcfg-eth2
vi /etc/yum.repos.d/520.repo
mkdir /u01/app/oraInventory
chown -R oracle.oinstall /u01
cp /mnt/usb/ linux.x64_11gR2_database* /u01/
解壓:
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
cp /u01/database/response/db_install.rsp /u01/database/response/db_install.rsp.bak
設置響應文件權限
su - root
chmod 700 /u01/database/response/*.rsp(注意所有者,oinstall)
chown oracle.oinstall /u01/database/response/*.rsp
su - oracle
修改安裝Oracle軟件的響應文件/u01/database/response/db_install.rsp
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=ciptest6
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.isCustomInstall=false
oracle.install.db.customComponents=
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
oracle.install.db.CLUSTER_NODES=
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
oracle.install.db.config.starterdb.globalDBName=ciptest6
oracle.install.db.config.starterdb.SID=ciptest6
oracle.install.db.config.starterdb.memoryLimit=
oracle.install.db.config.starterdb.memoryOption=false
oracle.install.db.config.starterdb.installExampleSchemas=false
oracle.install.db.config.starterdb.enableSecuritySettings=true
oracle.install.db.config.starterdb.password.ALL=
oracle.install.db.config.starterdb.password.SYS=
oracle.install.db.config.starterdb.password.SYSTEM=
oracle.install.db.config.starterdb.password.SYSMAN=
oracle.install.db.config.starterdb.password.DBSNMP=
oracle.install.db.config.starterdb.control=DB_CONTROL
oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
oracle.install.db.config.starterdb.dbcontrol.emailAddress=
oracle.install.db.config.starterdb.dbcontrol.SMTPServer=
oracle.install.db.config.starterdb.automatedBackup.enable=false
oracle.install.db.config.starterdb.automatedBackup.osuid=
oracle.install.db.config.starterdb.automatedBackup.ospwd=
oracle.install.db.config.starterdb.storageType=
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
oracle.install.db.config.asm.diskGroup=
oracle.install.db.config.asm.ASMSNMPPassword=
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
PROXY_HOST=
PROXY_PORT=
db_name='ciptest6'
memory_target=3500M
processes = 3000
audit_file_dest='/u01/app/oracle/admin/ciptest6/adump'
audit_trail ='db'
db_block_size=8192
db_domain=''
db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
db_recovery_file_dest_size=5G
diagnostic_dest='/u01/app/oracle'
dispatchers='(PROTOCOL=TCP) (SERVICE=CIPTEST6XDB)'
open_cursors=3000
remote_login_passwordfile='EXCLUSIVE'
undo_tablespace='UNDOTBS1'
# You may want to ensure that control files are created on separate physical
# devices
control_files = (ora_control1,ora_control2, ora_control3)
compatible ='11.2.0'
然后就可以啟動oracle實例了,用sqlplus "/as
sysdba"登錄進去,然后startup nomount;
如果說MEMORY_TARGET太大了,那么可以在參數文件里面改小一點(這里設置的是81960M,80G),或者修改shm的大小、
用df -h能看到/dev/shm的大小
用mount -o size=102400M -o nrinodes=1000000 -o
noatime,nodiratime -o remount /dev/shm來修改shm的大小
然后創建spfile
create spfile from pfile;
CREATE DATABASE ciptest6
USER SYS IDENTIFIED BY sys
USER SYSTEM IDENTIFIED BY system
logfile
group 1 ('/u01/app/oracle/oradata/redo01.log') size 256M,
group 2 ('/u01/app/oracle/oradata/redo02.log') size 256M,
group 3 ('/u01/app/oracle/oradata/redo03.log') size 256M,
group 4 ('/u01/app/oracle/oradata/redo04.log') size 256M
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 200
MAXDATAFILES 10000
MAXINSTANCES 1
CHARACTER SET ZHS16GBK
NATIONAL CHARACTER SET AL16UTF16
datafile '/u01/app/oracle/oradata/system01.dbf' size 2048M REUSE
EXTENT MANAGEMENT LOCAL
sysaux datafile '/u01/app/oracle/oradata/sysaux01.dbf' size 2048M REUSE
default temporary tablespace temp
tempfile '/u01/app/oracle/oradata/temp01.dbf' size 2048M REUSE
undo tablespace UNDOTBS1
datafile '/u01/app/oracle/oradata/undotbs01.dbf' size 4096M REUSE
AUTOEXTEND off
default tablespace DATA
datafile '/u01/app/oracle/oradata/data01.dbf' size 1024M REUSE
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO;
如果沒問題,接下來就創建數據字典和pl/sql包,
(可以在操作系統上cd到對應的目錄)
cd /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/admin
sqlplus "/as sysdba"
@catalog.sql;
@catproc.sql;
@utlrp.sql;
Exit
(可以在操作系統上cd到對應的目錄)
cd /u01/app/oracle/product/11.2.0/dbhome_1/sqlplus/admin
sqlplus "/as sysdba"
alter user system identified by manager;
conn system/manager
@pupbld.sql;
(這幾個腳本放在$ORACLE_HOME/rdbms/admin下,也可以先進這個目錄,然后直接@腳本就好)
最后shutdown
immediate 然后startup吧~
alter database datafile '/u01/app/oracle/oradata/undotbs01.dbf' autoextend on next 128M maxsize 32767M
alter database datafile '/u01/app/oracle/oradata/sysaux01.dbf' autoextend on next 128M maxsize 32767M
alter database datafile '/u01/app/oracle/oradata/system01.dbf' autoextend on next 128M maxsize 32767M
alter database datafile '/u01/app/oracle/oradata/data01.dbf' autoextend on next 128M maxsize 32767M
配置監聽前要注意:
hostname
/etc/hosts
/etc/sysconfig/network
幾個文件的host要配置好
su - oracle
cd /u01/app/oracle/product/11.2.0/dbhome_1/bin
netca /silent /responsefile /u01/database/response/netca.rsp
成功配置信息反饋如下:
正在對命令行參數進行語法分析:
參數"silent" = true
參數"responsefile" = /opt/database/response/netca.rsp
完成對命令行參數進行語法分析。
Oracle Net Services 配置:
完成概要文件配置。
Oracle Net 監聽程序啟動:
正在運行監聽程序控制:
/u01/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start LISTENER
監聽程序控制完成。
監聽程序已成功啟動。
監聽程序配置完成。
成功完成 Oracle Net Services 配置。退出代碼是0
注意:客戶端連接數據庫前,要將服務器的防火墻關閉
setenforce 0
service iptables stop
關于“ORACLE-LINUX環境字符界面單實例如何安裝”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,使各位可以學到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。