oracle solaris10,Solaris 10下安装Oracle11r2

前一段时间本打算安装Solaris上的Oracle,可惜一是没有安装文档,二是操作系统版本不够高,最近下载了一个最新的Solaris 10,安装一下Oracle 11.2.0.1 for Solaris 10 sparc。

首先检查硬件情况:

# /usr/sbin/prtconf | grep "Memory size"

Memory size: 4096 Megabytes

# /usr/sbin/swap -l交换文件dev  swaplo blocks   free

/dev/dsk/c2t0d0s1   118,9      16 8389632 8389632

# /bin/isainfo -kv

64-bit sparcv9 kernel modules

# df -k /tmp文件系统千字节用了可用 容量挂接在swap                 7109504      80 7109424     1%    /tmp

# df -k /data文件系统千字节用了可用 容量挂接在/dev/dsk/c2t1d0s7    35024906 1282138 33392519     4%    /data

硬件一般都不是问题,连这个N年的老480都能满足要求。

下面看软件要求:

# uname -r

5.10

# more /etc/release

Solaris 10 10/09 s10s_u8wos_08a SPARC

Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.

Use is subject to license terms.

Assembled 16 September 2009

Oracle要求的系统版本必须是U6以上,08年10月之后的版本。

检查系统包:

# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibm SUNWlibms SUNWsprot SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt SUNWcsl

system      SUNWarc   Lint Libraries (usr)

system      SUNWbtool CCS tools bundled with SunOS

system      SUNWcsl   Core Solaris, (Shared Libs)

system      SUNWhea   SunOS Header Files

system      SUNWi1of  ISO-8859-1 (Latin-1) Optional Fonts

system      SUNWlibC  Sun Workshop Compilers Bundled libC

system      SUNWlibm  Math & Microtasking Library Headers & Lint Files (Usr)

system      SUNWlibms Math & Microtasking Libraries (Usr)

system      SUNWsprot Solaris Bundled tools

system      SUNWtoo   Programming Tools

system      SUNWxwfnt X Window System platform. required fonts错误:未发现"SUNWi1cs"的信息错误:未发现"SUNWi15cs"的信息

这里缺少了SUNWi1cs和SUNWi15cs两个包,不过记得以前的版本似乎确实这两个包也能安装成功,这里暂时忽略这个问题。

下面检查系统patch信息:

120753-06

139574-03

119963-14

124861-15

125555-03

140796-01

140899-01

141016-01

139555-08

141414-10

141736-05

对于SPARC芯片的CPU,确保操作系统安装的补丁大于上面补丁号,可以通过patchadd –p | grep来检查补丁安装情况:

# patchadd -p | grep 120753

Patch: 120753-07 Obsoletes: Requires: Incompatibles: Packages: SUNWlibmsr SUNWlibm

其中前面两个是必须的,随后的两个对于编译C/C++ OCI等程序所需。

最后的几个是Database Smart Flash Cache所需的。

下面创建组和用户:

# groupadd oinstall

# groupadd -g 502 dba

# groupadd -g 503 oper

# groupadd -g 504 asmadmin

# groupadd -g 505 asmoper

# groupadd -g 506 asmdba

# useradd -u 502 -g oinstall -G dba,asmdba,oper oracle

# passwd -r files oracle

# mkdir /export/home/oracle

# chown -R oracle:dba /export/home/oracle

# usermod -d /export/home/oracle oracle

在Oracle用户下检查SHELL的限制:

# su – oracle

$ ulimit -t -f -d -s -n -v时间(秒)没有限制文件(块)没有限制数据(千字节)没有限制栈(千字节) 8192文件数(描述符) 256存储区(千字节)没有限制

堆栈和文件数设置比推荐值小,对这两个参数进行设置

编辑Oracle的启动shell脚本:

$ vi .profile

".profile"[新文件]ulimit -s 32768

ulimit -n 65536

ORACLE_SID=ora112

export ORACLE_SID

ORACLE_BASE=/data/oracle

export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/11.2

export ORACLE_HOME

PATH=$ORACLE_HOME/bin:$PATH

export PATH

DISPLAY=172.25.0.115:1.0

export DISPLAY

利用root建立Oracle的ORACLE_BASE目录,并授权:

# mkdir -p /data/oracle/product/11.2

# chown -R oracle:oinstall /data

最后修改系统的参数限制:

set noexec_user_stack=1

set semsys:seminfo_semmni=100

set semsys:seminfo_semmns=1024

set semsys:seminfo_semmsl=256

set semsys:seminfo_semvmx=32767

set shmsys:shminfo_shmmax=4294967295

set shmsys:shminfo_shmmni=100

在/etc/system文件中添加上面的配置。如果愿意可以重新系统使配置生效,不过11gr2的安装程序,可以自动调整系统的配置。

下面解压文件后,用root登陆图形界面设置xhost +后,就可以开始安装过程了:

# xhost +

access control disabled, clients can connect from any host

# su - oracle

Sun Microsystems Inc.   SunOS 5.10      Generic January 2005

$ cd /data/database

$ ./runInstaller

安装界面最开始的部分就是提供给Oracle支持的邮件地址信息以及metalink帐号,Oracle把支持部分的内容放到了第一个页面,其中深意不言而喻了。这里如果不提供用户信息,Oracle还会弹出一个告警的对话框。

安装选项部分可以选择安装配置数据库、只安装软件和升级已经存在的数据库。这里选择了只安装软件,一会打算手工启动DBCA来安装数据库。

接着是网格配置,选择单实例数据库还是RAC环境。

语言选择添加简体中文。

然后安装版本选择企业版。

在安装位置设置合适的ORACLE_BASE和ORACLE_HOME目录。

确认组选项后,开始操作系统、硬件的检查。

这里检查出操作系统的内核设置不满足要求,不过可以利用安装程序自动修复。点击修补并再次检查后,弹出对话框,要求用root执行一个脚本:

# /var/tmp/CVU_11.2.0.1.0_oracle/runfixup.sh

/usr/bin/id

Response file being used is :/var/tmp/CVU_11.2.0.1.0_oracle/fixup.response

Enable file being used is :/var/tmp/CVU_11.2.0.1.0_oracle/fixup.enable

Log file location: /var/tmp/CVU_11.2.0.1.0_oracle/orarun.log

Setting Kernel Parameters...

99

修复后,还有一个补丁的错误,这里选择忽略。

最后运行两个脚本后,安装顺利完成:

# /data/oraInventory/orainstRoot.sh更改权限/data/oraInventory.添加组的读取和写入权限。删除全局的读取,写入和执行权限。

更改组名/data/oraInventory到oinstall.脚本的执行已完成。# /data/oracle/product/11.2/root.sh

Running Oracle 11g root.sh script...

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME=  /data/oracle/product/11.2

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Creating /usr/local/bin directory...

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...

Creating /var/opt/oracle/oratab file...

Entries will be added to the /var/opt/oracle/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

Finished product-specific root actions.

首先利用NETCA配置监听和本地服务命令,然后利用dbca完成建库操作。

bash-3.00$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on星期三7月7 15:15:15 2010

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

连接到:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select * from v$version;

BANNER

------------------------------------------------------------------------------

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

PL/SQL Release 11.2.0.1.0 - Production

CORE    11.2.0.1.0      Production

TNS for Solaris: Version 11.2.0.1.0 - Production

NLSRTL Version 11.2.0.1.0 - Production

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
2013年最新版的强悍Unix版本Solaris 11.1系统文件,功能十分强大,不愧是真正血统的Unix系统! Oracle Announces Availability of Oracle Solaris 11.1 and Oracle Solaris Cluster 4.1 Delivers Oracle Database and Java Enhancements, Expanded Mission Critical Cloud Management Capabilities and Advanced Platform Features Redwood Shores, Calif – October 26, 2012 News Facts Oracle today announced general availability of Oracle Solaris 11.1 and Oracle Solaris Cluster 4.1. Oracle Solaris 11 is the first cloud OS that allows customers to build large-scale enterprise-class Infrastructure as a Service (IaaS), Platform as a Service (PaaS) and Software as a Service (SaaS) clouds on a wide range of SPARC and x86 servers and Oracle engineered systems. Oracle Solaris Cluster 4.1 extends high availability and disaster recovery capabilities of Oracle Solaris and includes unique virtual cluster features supporting highly efficient application consolidation with best-in-class availability. Oracle Solaris 11 is already widely in production with thousands of customers with mission critical deployments across industries such as financial services, communications, healthcare, retail, public sector and media and entertainment. Read customer success stories about Oracle Solaris here. Oracle Solaris 11 is also gaining strong momentum among enterprise application vendors with hundreds of applications already qualified for Oracle Solaris Ready status through the Oracle PartnerNetwork (OPN). OPN members can develop, sell and implement their solutions on Oracle Solaris 11 and take advantage of specialized Oracle Solaris resources to expand their market reach. Customers and partners can quickly and safely upgrade to Oracle Solaris 11.1 using the built-in update tools and software repositories available with Oracle Solaris 11. Oracle will host a webcast on November 7, 2012 at 8 a.m. Pacific time on Oracle Solaris 11.1 and Oracle Solaris Cluster 4.1, featuring Markus Flierl, vice president, Oracle Solaris Engineering, Core Technology and Bill Nesheim, vice president, Oracle Solaris Engineering, Platform Software. Register here. This event will also include an interactive chat with core developers of Oracle Solaris and Oracle Solaris Cluster. New and Enhanced Features in Oracle Solaris 11.1 Oracle Solaris 11.1 increases the performance, availability and I/O throughput of the latest Oracle Database technology. A new, optimized shared memory interface between the Oracle Database and Oracle Solaris 11.1 provides 8x faster database startup and shutdown, as well as online resizing of the Oracle Database System Global Area (SGA). Oracle Solaris 11.1 introduces unique new capabilities for optimizing Oracle Database performance. Oracle Solaris 11.1 exposes Oracle Solaris DTrace I/O interfaces that allow an Oracle Database administrator to identify I/O outliers and subsequently isolate network or storage bottlenecks. A new Oracle Solaris DTrace plug-in for Oracle Java Mission Control to enable customers to profile Java applications on Oracle Solaris production systems. New cloud management features add to Oracle Solaris 11’s zero overhead built-in virtualization capabilities across system, network and storage resources, including expanded support for Software Defined Networks (SDN) with Edge Virtual Bridging enhancements, to maximize network resource utilization and manage bandwidth in cloud environments. New built-in memory predictor monitors application memory use and provides optimized memory page sizes and resource location to speed overall application performance. Support for an unprecedented 32 TB of RAM and thousands of CPUs unlocks the full potential of Oracle’s latest server systems. Oracle Solaris Cluster 4.1 Highlights New Oracle Solaris 10 Zone Clusters allow customers to consolidate mission critical Oracle Solaris 10 applications on Oracle Solaris 11 cloud environments. Expanded disaster recovery operations using Oracle’s Sun ZFS Storage Appliance services along with Oracle Solaris Cluster 4.1 to coordinate failover of applications and data to a remote disaster recovery site. Faster application recovery with improved storage failure detection and resource dependencies management. New labeled security capability in Oracle Solaris Zone Clusters provides military grade application separation in highly consolidated mission-critical deployments using Oracle Solaris 11 Trusted Extensions. Integrated Oracle Deployments and Support Oracle Enterprise Manager Ops Center provides comprehensive cloud management capabilities for Oracle Solaris 11, including self-service provisioning of Oracle Solaris 11 Zones. Ops Center’s integrated systems management delivers enterprise scale cloud performance. Oracle Enterprise Manager Ops Center is available to Oracle Solaris customers at no additional cost under the Ops Center Everywhere Program. Oracle Solaris Studio delivers the latest in compiler optimizations, multithread performance and powerful analysis tools for native development, and optimized application performance and reliability on Oracle Solaris 11.1 systems. Oracle Solaris 11 guarantees binary compatibility with previous Oracle Solaris versions through the Oracle Solaris Binary Application Guarantee Program, which provides customers a seamless upgrade path and the industry’s best investment protection. Oracle Solaris Legacy Containers allows older Oracle Solaris environments to be brought forward onto latest generation hardware to provide power, cooling and footprint consolidation savings. OPN members can find Oracle Solaris tools and resources in the Oracle Solaris Knowledge Zone, including Oracle Solaris Ready, Oracle Solaris 11 Specialization and Oracle Solaris Development Initiative. The Oracle Solaris Remote Lab now provides a secure cloud environment for OPN members to test and validate their applications with Oracle Solaris 11 in SPARC and x86 virtual environments. Supporting Quotes “Oracle recommends Oracle Solaris 11 for all UNIX®-based Oracle implementations. Oracle Solaris 11.1 delivers over 300 new performance and feature enhancements and is engineered together with Oracle Database, middleware, applications to increase performance, streamline management and automate support for Oracle deployments,” said John Fowler, executive vice president, Systems, Oracle. “The combination of the secure, highly available capabilities of Oracle Solaris Cluster 4.1 and the built-in virtualization of Oracle Solaris 11.1 helps customers bring their most mission-critical applications into a cost effective, agile cloud environment and delivers extreme availability for enterprise applications.” “Clients are looking for ways to reduce the complexity of systems management while enabling Platform as a Service (PaaS) & Software as a Service (SaaS) clouds,” says Lee Diamante, solutions architect, Systems Computing Solutions at Forsythe. “The value of Oracle Solaris 11 is that it maintains all the enterprise-class features expected with a mission-critical OS, while bringing in new, innovative technologies. Forsythe has a long and rich history of delivering customer solutions on Oracle Solaris systems. This is why we are excited about the Solaris 11.1 release.” “Oracle is making it much easier for partners like Informatica to gain access to their software with the new testing environments; shrinking the time to measurable results and value,” said Julie Lockner, vice president, ILM, Informatica. “With the release of Oracle Solaris 11.1 Informatica customers now have access to mission critical deployments across major industries, with an environment of high performance and high availability. With all the new feature enhancements, we look forward to making the Informatica Platform certified on the Oracle Solaris 11 product family.”

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值