重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
这篇文章将为大家详细讲解有关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环境字符界面单实例如何安装”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。