首页 Solaris 10 x86下安装 oracle12c

Solaris 10 x86下安装 oracle12c

举报
开通vip

Solaris 10 x86下安装 oracle12cSolaris 10下安装Oracle 12c Oracle_awen 2013-08-20 官方安装文档 在edelivery上下载Solaris 10 x86和Oracle12c forSolaris  x86的介质 也可在官网下载相应的介质 用virtualbox新建一个虚拟机,内存设置为1800m(不然会报page_unlock的错误) 把光盘加载上去,根据提示一步一步安装Solaris。 配置root用户ssh vi /etc/ssh/sshd_config PermitRootLogin no ...

Solaris 10 x86下安装 oracle12c
Solaris 10下安装Oracle 12c Oracle_awen 2013-08-20 官方安装文档 在edelivery上下载Solaris 10 x86和Oracle12c forSolaris  x86的介质 也可在官网下载相应的介质 用virtualbox新建一个虚拟机,内存设置为1800m(不然会报page_unlock的错误) 把光盘加载上去,根据提示一步一步安装Solaris。 配置root用户ssh vi /etc/ssh/sshd_config PermitRootLogin no 改为: PermitRootLogin yes 重启ssh svcadm restart ssh ssh 远程连接服务器 ssh root@192.168.3.101 检查系统信息 # id uid=0(root) gid=0(root) # uname -a SunOS unknown 5.10 Generic_147148-26 i86pc i386 i86pc # /bin/isainfo -kv 64-bit amd64 kernel modules # cat /etc/release Oracle Solaris 10 1/13 s10x_u11wos_24a X86 Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved. Assembled 17 January 2013 # /usr/sbin/prtconf | grep "Memory size" Memory size: 1800 Megabytes # df -h Filesystem             size   used  avail capacity  Mounted on /dev/dsk/c0t0d0s0      8.1G   3.9G   4.1G    49%    / /devices                 0K     0K     0K     0%    /devices ctfs                     0K     0K     0K     0%    /system/contract proc                     0K     0K     0K     0%    /proc mnttab                   0K     0K     0K     0%    /etc/mnttab swap                   1.6G   524K   1.6G     1%    /etc/svc/volatile objfs                    0K     0K     0K     0%    /system/object sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab /usr/lib/libc/libc_hwcap1.so.1 8.1G   3.9G   4.1G    49%    /lib/libc.so.1 fd                       0K     0K     0K     0%    /dev/fd swap                   1.6G  1008K   1.6G     1%    /tmp swap                   1.6G    32K   1.6G     1%    /var/run /dev/dsk/c0t0d0s7       11G    11M    11G     1%    /export/home 检查必须的包 # pkginfo -i SUNWarc SUNWbtool SUNWcsl SUNWdtrc SUNWeu8os SUNWhea SUNWi1cs  SUNWi15cs SUNWi1of SUNWlibC SUNWlibm SUNWlibms SUNWsprot SUNWtoo SUNWxwfnt system      SUNWarc   Lint Libraries (usr) system      SUNWbtool CCS tools bundled with SunOS system      SUNWcsl   Core Solaris, (Shared Libs) system      SUNWdtrc  DTrace Clients 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 ERROR: information for "SUNWeu8os" was not found ERROR: information for "SUNWi1cs" was not found ERROR: information for "SUNWi15cs" was not found 安装未安装的包 # pwd /cdrom/sol_10_113_x86/Solaris_10/Product # pkgadd -d . SUNWeu8os SUNWi1cs SUNWi15cs Processing package instance from American English/UTF-8 L10N For OS Environment User Files(i386) 1.5,REV=2004.11.24.10.12 Copyright 2004 Sun Microsystems, Inc.  All rights reserved. Use is subject to license terms. Using as the package base directory. ## Processing package information. ## Processing system information. 4 package pathnames are already properly installed. ## Verifying package dependencies. WARNING: The package "UTF-8 L10N For Language Environment User Files" is a prerequisite package and should be installed. Do you want to continue with the installation of [y,n,?] y ## Verifying disk space requirements. ## Checking for conflicts with packages already installed. ## Checking for setuid/setgid programs. This package contains scripts which will be executed with super-user permission during the process of installing this package. Do you want to continue with the installation of [y,n,?] y Installing American English/UTF-8 L10N For OS Environment User Files as ## Installing part 1 of 1. 8766 blocks Installation of was successful. Processing package instance from X11 ISO8859-1 Codeset Support(i386) 2.0,REV=2004.10.17.15.04 Copyright 2004 Sun Microsystems, Inc.  All rights reserved. Use is subject to license terms. Using as the package base directory. ## Processing package information. ## Processing system information. 8 package pathnames are already properly installed. ## Verifying package dependencies. ## Verifying disk space requirements. ## Checking for conflicts with packages already installed. ## Checking for setuid/setgid programs. This package contains scripts which will be executed with super-user permission during the process of installing this package. Do you want to continue with the installation of [y,n,?] y Installing X11 ISO8859-1 Codeset Support as ## Installing part 1 of 1. 232 blocks Installation of was successful. Processing package instance from X11 ISO8859-15 Codeset Support(i386) 2.0,REV=2004.10.17.15.04 Copyright 2004 Sun Microsystems, Inc.  All rights reserved. Use is subject to license terms. Using as the package base directory. ## Processing package information. ## Processing system information. 6 package pathnames are already properly installed. ## Verifying package dependencies. ## Verifying disk space requirements. ## Checking for conflicts with packages already installed. ## Checking for setuid/setgid programs. This package contains scripts which will be executed with super-user permission during the process of installing this package. Do you want to continue with the installation of [y,n,?] y Installing X11 ISO8859-15 Codeset Support as ## Installing part 1 of 1. 1460 blocks Installation of was successful. 创建用户组及目录 # groupadd oinstall # groupadd dba # useradd -g oinstall -G dba -d /export/home/Oracle -m Oracle # passwd Oracle # pwd /export/home/Oracle # mkdir app # chown Oracle:oinstall app # cd app # mkdir  db12 # mkdir  oradata # chown oracle:oinstall db12 # chown oracle:oinstall oradata # chmod -R 775 * # ls -l total 4 drwxrwxr-x   2 oracle   oinstall     512 Aug 20 13:03 db12 drwxrwxr-x   2 oracle   oinstall     512 Aug 20 13:04 oradata 设置环境变量 # pwd /export/home/oracle # cat .proFile PATH=/usr/bin:/usr/ucb:/etc:. ORACLE_BASE=/export/home/oracle/app ORACLE_HOME=/export/home/oracle/app/db12 ORACLE_SID=orcl12c LD_LIBRARY_PATH=$ORACLE_HOME/lib PATH=$PATH:/usr/local/bin:/usr/ccs/bin:$ORACLE_HOME/bin TMP=/tmp TMPDIR=/tmp export PATH ORACLE_BASE ORACLE_HOME  ORACLE_SID  LD_LIBRARY_PATH TMP TMPDIR #  . ./.proFile 上传oracle安装介质 sftp> cd /export/home/oracle/app sftp> put -r "/Users/steven/Documents/Enmo/ETL/informatica/Solaris.x64_12cR1_database_1of2.zip" "/Users/steven/Documents/Enmo/ETL/informatica/Solaris.x64_12cR1_database_2of2.zip" Uploading Solaris.x64_12cR1_database_1of2.zip to /export/home/Oracle/app/Solaris.x64_12cR1_database_1of2.zip 100% 1333557KB  12463KB/s 00:01:47 /Users/steven/Documents/Enmo/ETL/informatica/Solaris.x64_12cR1_database_1of2.zip: 1365562445 bytes transferred in 107 seconds (12463 KB/s) Uploading solaris.x64_12cR1_database_2of2.zip to /export/home/Oracle/app/solaris.x64_12cR1_database_2of2.zip 100% 1109093KB  11798KB/s 00:01:34 /Users/steven/Documents/Enmo/ETL/informatica/solaris.x64_12cR1_database_2of2.zip: 1135711417 bytes transferred in 94 seconds (11798 KB/s) 解压 unzip solaris.x64_12cR1_database_2of2.zip unzip solaris.x64_12cR1_database_1of2.zip # cd database # ./runInstall 取消MOS帐号接收更新 ,next 跳过更新,next 创建并初始化数据库,next 选择 Server clasee,next 选择单实例,next 典型安装,next 填写安装选项: 下一步 检查环境,根据情况忽略,next install root身份运行如下脚本 # pwd /export/home/Oracle/oraInventory # ./orainstRoot.sh Changing permissions of /export/home/Oracle/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /export/home/Oracle/oraInventory to oinstall. The execution of the script is complete. # cd /export/home/oracle/app/db12 # ./root.sh Performing root user operation for Oracle 12c The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME=  /export/home/oracle/app/db12 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 script. Now product-specific root actions will be performed. 创建数据库(在这之前会自动创建监听) 要求剩余空间大于8g,如果小于4g会直接报错。 忽略之后,开始创建数据库 安装完成 SQLplus 登录到数据库 在这里要注意Oracle_SID的大小写问题。 $ SQLplus / as sysdba SQL*Plus: Release 12.1.0.1.0 Production on Tue Aug 20 15:26:17 2013 Copyright (c) 1982, 2013, Oracle.  All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL> select instance_name from v$instance; INSTANCE_NAME ---------------- orcl12c SQL> select BANNER from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production PL/SQL Release 12.1.0.1.0 - Production CORE    12.1.0.1.0      Production TNS for Solaris: Version 12.1.0.1.0 - Production NLSRTL Version 12.1.0.1.0 - Production SQL> show con_name CON_NAME ------------------------------ CDB$ROOT SQL> ALTER SESSION SET CONTAINER = pdb1; Session altered. SQL> show con_name; CON_NAME ------------------------------ PDB1 SQL> olaris加载ISO虚拟光驱文件 2012-12-03 10:37:06     我来说两句       作者:song_0521 收藏    我要投稿 Solaris加载ISO虚拟光驱文件 加载ISO虚拟光驱文件  www.2cto.com   1、增加一个设备文件 # lofiadm -a /.../XXX.iso /dev/lofi/1 #lofiadm Block Device File  /dev/lofi/1 /.../XXX.iso 2、mount该设备 #mount -F hsfs /dev/lofi/1 /mnt 卸载ISO文件 1、#umount /mnt 注:将文档系统先卸载掉 2、lofiadm -d /dev/lofi/1 注:删除lofiadm创建的设备 查看lofiadm设备信息: #lofiadm  出现如下信息则说明设备删除成功 Block Device File solaris 下压缩和解压缩 2010-07-16 15:09 725人阅读 评论(0) 收藏 举报 solarispath 在很多时候 大家会遇到 一些奇怪的压缩文件后缀名 不知道用什么命令来解压 。 今天 就给大家奉献一篇关于压缩和解压 的文章 .tar 解 包: tar xvf FileName.tar 打包:tar cvf FileName.tar DirName (注:tar是打包, 不是压缩!) --------------------------------------------- .gz 解压 1:gunzip FileName.gz 解压2:gzip -d FileName.gz 压缩:gzip FileName .tar.gz 解 压:tar zxvf FileName.tar.gz 压缩:tar zcvf FileName.tar.gz DirName --------------------------------------------- .bz2 解 压1:bzip2 -d FileName.bz2 解压2:bunzip2 FileName.bz2 压缩: bzip2 -z FileName .tar.bz2 解压:tar jxvf FileName.tar.bz2 压缩:tar jcvf FileName.tar.bz2 DirName --------------------------------------------- .bz 解 压1:bzip2 -d FileName.bz 解压2:bunzip2 FileName.bz 压缩:未知 .tar.bz 解 压:tar jxvf FileName.tar.bz 压缩:未知 --------------------------------------------- .Z 解 压:uncompress FileName.Z 压缩:compress FileName .tar.Z 解压:tar Zxvf FileName.tar.Z 压缩:tar Zcvf FileName.tar.Z DirName --------------------------------------------- .tgz 解 压:tar zxvf FileName.tgz 压缩:未知 .tar.tgz 解压:tar zxvf FileName.tar.tgz 压缩:tar zcvf FileName.tar.tgz FileName --------------------------------------------- .zip 解 压:unzip FileName.zip 压缩:zip FileName.zip DirName --------------------------------------------- .rar 解 压:rar a FileName.rar 压缩:r ar e FileName.rar rar请到: 下载! 解压后请将rar_static拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以): [root@www2 tmp]# cp rar_static /usr/bin/rar --------------------------------------------- .lha 解 压:lha -e FileName.lha 压缩:lha -a FileName.lha FileName lha请到: 下 载! >解压后请将lha拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以): [root@www2 tmp]# cp lha /usr/bin/ --------------------------------------------- .rpm 解 包:rpm2cpio FileName.rpm | cpio -div --------------------------------------------- .tar .tgz .tar.gz .tar.Z .tar.bz .tar.bz2 .zip .cpio .rpm .deb .slp .arj .rar .ace .lha .lzh .lzx .lzs .arc .sda .sfx .lnx .zoo .cab .kar .cpt .pit .sit .sea 解压:sEx x FileName.* 压缩:sEx a FileName.* FileName sEx只是调用相关程序,本身并无压缩、解压功能,请注意! sEx请到: 下 载! 解压后请将sEx拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以): [root@www2 tmp]# cp sEx /usr/bin/ Solaris 10 配置双网卡双网关出口 2010-07-14 10:28 507人阅读 评论(0) 收藏 举报 Solarisinternet互联网network脚本File 目录(?)[+] 1. 一环境描述 2. 二Solaris 10 双网卡配置 来源地址: 经常有一些朋友问如何在Solaris 10配置双网,并设置两个网关出口,下面我就把Solaris 10 双网卡双网关的配置帖出来给大家参考一下。 一、环境描述 +-----------+          +-------------+ |      |          | Rourer1  | |      | CE0:172.16.0.8→ | 172.16.0.1 | ------>172.16.0.0/16 |      |          +-------------+ | Solsris | |      |          +-------------+ |       | CE1:192.168.0.8→| Rourer1  | |      |          | 192.168.0.1 |------->互联网(0) +-----+-----+          +-------------+ 如上图所示,Solaris 10机器有CE0和CE1两张网卡,分配给CE0的IP地址为172.16.0.8/24 网关172.16.0.1访问172.16.0.0 255.255.0.0的网段;分配给CE1的ip地址为192.168.0.8/24 网关为192.168.0.1 访问互联网的资源。 二、Solaris 10 双网卡配置 2.1双网卡的IP地址配置 ############修改/etc/hosts文 件##################### # Internet host table # 127.0.0.1       localhost       172.16.0.8  intranet intranet.net     loghost 192.168.0.8 internet internet.net     loghost # intranet计算机名对应IP为172.16.0.8 # internet计算机名对应IP为192.168.0.8 #/etc/hosts和/etc/inet/ipnodes文件相同 ################################################## ##############修改/etc/inet/ipnodes文 件################## # Internet host table # 127.0.0.1       localhost       172.16.0.8  intranet intranet.net     loghost 192.168.0.8 internet internet.net     loghost # intranet计算机名对应IP为172.16.0.8 # internet计算机名对应IP为192.168.0.8 #/etc/hosts和/etc/inet/ipnodes文件相同 ################################################## ###########修改/etc/hostname.ce0文 件################### intranet #在/etc/hostname.ce0填入计算机名:intranet,标 识ce0网卡配置172.16.0.8的IP地址 ################################################## #############修改/etc/hostname.ce1文 件#################### internet #在/etc/hostname.ce1填入计算机名internet标识 ce1网卡配置192.168.0.8的IP地址 ################################################## #########/etc/netmasks################################ # # The netmasks File associates Internet Protocol (IP) address # masks with IP network numbers. # #       network-number  netmask # # The term network-number refers to a number obtained from the Internet Network # Information Center. # # Both the network-number and the netmasks are specified in # "decimal dot" notation, e.g: # #               128.32.0.0 255.255.255.0 # 172.16.0.0 255.255.255.0 192.168.0.0 255.255.255.0 #配置IP地址的掩码 ################################################## 2.2双网卡出口路由配置 A、默认路由配置 #######/etc/defaultrouter############################## 192.168.0.8 # 配置默认路由为192.168.0.8 ################################################## 由于Solaris只能配置一个默认路由,因此必须按照如下方法设置静态路由。 B、配置静态路由 route add net 172.16.0.0 -netmask 255.255.0.0 172.16.0.8 想要让静态路由命令重新启动后有效,有多种方法,我这边介绍两种方法 方法一:在route后面加上-p参数,即: route -p add net 172.16.0.0 -netmask 255.255.0.0 172.16.0.8 方法二:做一个自动启动脚本: ########/etc/init.d/routeadd############################## #!/bin/sh route add net 172.16.0.0 -netmask 255.255.0.0 172.16.0.8 ################################################## 在/etc/rc2.d创建一个连接 ln -s /etc/init.d/routeadd /etc/rc2.d/S99routeadd
本文档为【Solaris 10 x86下安装 oracle12c】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_337177
暂无简介~
格式:doc
大小:70KB
软件:Word
页数:0
分类:互联网
上传时间:2019-07-31
浏览量:23