mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-13 22:30:37 +08:00
Merge pull request #3387 from ictlyh/master
[Translated]sources/tech/20150923 How To Upgrade From Oracle 11g To O…
This commit is contained in:
commit
1caa2e87ec
@ -1,166 +0,0 @@
|
|||||||
ictlyh Translating
|
|
||||||
How To Upgrade From Oracle 11g To Oracle 12c
|
|
||||||
================================================================================
|
|
||||||
Hello all.
|
|
||||||
|
|
||||||
Today we will go through how to upgrade from oracle 11g to Oracle 12c. Let’s start then.
|
|
||||||
|
|
||||||
For this, I will use CentOS 7 64 bit Linux distribution.
|
|
||||||
|
|
||||||
I am assuming that you have already installed Oracle 11g on your system. Here I will show what I did when I installed Oracle 11g.
|
|
||||||
|
|
||||||
I select “Create and configure a database” for Oracle 11g just like below image.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage1.png)
|
|
||||||
|
|
||||||
Then I select “Desktop Class” for my Oracle 11g installation. For production you must select “Server Class”.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage2.png)
|
|
||||||
|
|
||||||
Then you must enter all the paths for the Oracle 11g and your password as well. Below is mine for my Oracle 11g installation. Make sure you meet the Oracle password methodology for placing your password.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage3.png)
|
|
||||||
|
|
||||||
Next, I set Inventory Directory path as below.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage4.png)
|
|
||||||
|
|
||||||
Till now, I showed you what I had done to install Oracle 11g as we are going to upgrade to 12c.
|
|
||||||
|
|
||||||
Let’s upgrade to Oracle 12c from Oracle 11g.
|
|
||||||
|
|
||||||
You must download the two (2) zip files from this [link][1]. Download and unzip both files to the same directory. Files names are **linuxamd64_12c_database_1of2.zip** & **linuxamd64_12c_database_2of2.zip** respectively. After extracting or unzipping, It will create a folder called database.
|
|
||||||
|
|
||||||
Note: Before upgrading to 12c, make sure you have all the necessary packages installed for your CentOS and all the path variable are OK and all other prerequisites are done before beginning.
|
|
||||||
|
|
||||||
These are the following packages must be installed with correct version
|
|
||||||
|
|
||||||
- binutils
|
|
||||||
- compat-libstdc++
|
|
||||||
- gcc
|
|
||||||
- glibc
|
|
||||||
- libaio
|
|
||||||
- libgcc
|
|
||||||
- libstdc++
|
|
||||||
- make
|
|
||||||
- sysstat
|
|
||||||
- unixodbc
|
|
||||||
|
|
||||||
Search for your correct rpm version on the internet.
|
|
||||||
|
|
||||||
You can also combine a query for multiple packages, and review the output for the correct versions. For example:
|
|
||||||
|
|
||||||
Type the following command to check in the terminal
|
|
||||||
|
|
||||||
rpm -q binutils compat-libstdc++ gcc glibc libaio libgcc libstdc++ make sysstat unixodbc
|
|
||||||
|
|
||||||
The following packages (or later or earlier versions) must be installed on your system
|
|
||||||
|
|
||||||
- binutils-2.23.52.0.1-12.el7.x86_64
|
|
||||||
- compat-libcap1-1.10-3.el7.x86_64
|
|
||||||
- gcc-4.8.2-3.el7.x86_64
|
|
||||||
- gcc-c++-4.8.2-3.el7.x86_64
|
|
||||||
- glibc-2.17-36.el7.i686
|
|
||||||
- glibc-2.17-36.el7.x86_64
|
|
||||||
- glibc-devel-2.17-36.el7.i686
|
|
||||||
- glibc-devel-2.17-36.el7.x86_64
|
|
||||||
- ksh
|
|
||||||
- libaio-0.3.109-9.el7.i686
|
|
||||||
- libaio-0.3.109-9.el7.x86_64
|
|
||||||
- libaio-devel-0.3.109-9.el7.i686
|
|
||||||
- libaio-devel-0.3.109-9.el7.x86_64
|
|
||||||
- libgcc-4.8.2-3.el7.i686
|
|
||||||
- libgcc-4.8.2-3.el7.x86_64
|
|
||||||
- libstdc++-4.8.2-3.el7.i686
|
|
||||||
- libstdc++-4.8.2-3.el7.x86_64
|
|
||||||
- libstdc++-devel-4.8.2-3.el7.i686
|
|
||||||
- libstdc++-devel-4.8.2-3.el7.x86_64
|
|
||||||
- libXi-1.7.2-1.el7.i686
|
|
||||||
- libXi-1.7.2-1.el7.x86_64
|
|
||||||
- libXtst-1.2.2-1.el7.i686
|
|
||||||
- libXtst-1.2.2-1.el7.x86_64
|
|
||||||
- make-3.82-19.el7.x86_64
|
|
||||||
- sysstat-10.1.5-1.el7.x86_64
|
|
||||||
|
|
||||||
You will also need unixODBC-2.3.1 or later driver.
|
|
||||||
|
|
||||||
I hope you already have a user on your CentOS 7 named oracle when you installed Oracle 11g.
|
|
||||||
|
|
||||||
Let’s login onto CentOS by using user oracle.
|
|
||||||
|
|
||||||
After login to your CentOS by user oracle, open a terminal on your CentOS.
|
|
||||||
|
|
||||||
Now change directory and navigate to your extracted directory where you extracted both the zip files by using terminal. Now type the following in the terminal to begin installation of 12c.
|
|
||||||
|
|
||||||
./runInstaller
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212image5.png)
|
|
||||||
|
|
||||||
If everything goes right then you will see something like below which will start the installation process of 12c.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage6.png)
|
|
||||||
|
|
||||||
Then you can skip the updates or you can download the latest update. It is recommended that you must update it for production server. Though I am skipping it.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage7.png)
|
|
||||||
|
|
||||||
Now, select upgrade an existing database.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage8.png)
|
|
||||||
|
|
||||||
For language, English is already there. Click next to continue or you can add according to your need.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage9.png)
|
|
||||||
|
|
||||||
Now, select Enterprise Edition. You can select upon your requirements.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage10.png)
|
|
||||||
|
|
||||||
Then select your path for Software location. This is pretty much self-explanatory.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage11.png)
|
|
||||||
|
|
||||||
For step 7, keep moving with the default options just like below.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage12.png)
|
|
||||||
|
|
||||||
In step 9, you will get a summary report like below image.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage13.png)
|
|
||||||
|
|
||||||
If everything is fine, you can start your installation by clicking install on step 9 and which will take you to step 10.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage14.png)
|
|
||||||
|
|
||||||
In the process you might encounter some errors and you need to Goggle it for fix those errors. There are a number of errors you may encounter and hence I am not covering those here.
|
|
||||||
|
|
||||||
Keep your patience and it will show Succeeded one by one for step 10. If not, search it on Google and do necessary steps to fix it. Again, as there are a number of errors you may encounter and I can’t provide all the details over here.
|
|
||||||
|
|
||||||
Now, configure the listener just simply following on screen instruction.
|
|
||||||
|
|
||||||
After finishing the process for listener, it will start the Database Upgrade Assistant. Select Upgrade Oracle Database.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/DUAimage15.png)
|
|
||||||
|
|
||||||
In step 2, you will find that it will show the 11g location path along with 12c location path. Also you will find that it is indicating Target Oracle Home Release 12 from Source Oracle Home Release 11. Click next step 2 and move to step 3.
|
|
||||||
|
|
||||||
![](http://www.unixmen.com/wp-content/uploads/2015/09/DUAimage16.png)
|
|
||||||
|
|
||||||
Follow the on screen instructions and finished it.
|
|
||||||
|
|
||||||
In the last step, you will get a success window where you will find that the update of oracle database was successful.
|
|
||||||
|
|
||||||
**A word of caution**: Before upgrading to 12c for your production server, please make sure you have done it some other workstation so that you can fix all the errors, which you will encounter on the way of upgrading. Never try upgrading a production server without knowing all the details.
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
via: http://www.unixmen.com/upgrade-from-oracle-11g-to-oracle-12c/
|
|
||||||
|
|
||||||
作者:[Mohammad Forhad Iftekher][a]
|
|
||||||
译者:[译者ID](https://github.com/译者ID)
|
|
||||||
校对:[校对者ID](https://github.com/校对者ID)
|
|
||||||
|
|
||||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
|
||||||
|
|
||||||
[a]:http://www.unixmen.com/author/forhad/
|
|
||||||
[1]:http://www.oracle.com/technetwork/database/enterprise-edition/downloads/database12c-linux-download-1959253.html
|
|
@ -0,0 +1,165 @@
|
|||||||
|
如何将 Oracle 11g 升级到 Orcale 12c
|
||||||
|
================================================================================
|
||||||
|
大家好。
|
||||||
|
|
||||||
|
今天我们来学习一下如何将 Oracle 11g 升级到 Oracle 12c。开始吧。
|
||||||
|
|
||||||
|
在此,我使用的是 CentOS 7 64 位 Linux 发行版。
|
||||||
|
|
||||||
|
我假设你已经在你的系统上安装了 Oracle 11g。这里我会展示一下安装 Oracle 11g 时我的操作步骤。
|
||||||
|
|
||||||
|
我在 Oracle 11g 上选择 “Create and configure a database”,如下图所示。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage1.png)
|
||||||
|
|
||||||
|
然后我选择安装 Oracle 11g “Decktop Class”。如果是生产环境,你必须选择 “Server Class”。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage2.png)
|
||||||
|
|
||||||
|
然后你输入安装 Oracle 11g 的所有路径以及密码。下面是我自己的 Oracle 11g 安装配置。确保你正确输入了 Oracle 的密码。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage3.png)
|
||||||
|
|
||||||
|
下一步,我按照如下设置 Inventory Directory。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage4.png)
|
||||||
|
|
||||||
|
到这里,我已经向你展示了我安装 Oracle 11g 所做的工作,因为我们开始想升级到 12c。
|
||||||
|
|
||||||
|
让我们将 Oracle 11g 升级到 Oracle 12c 吧。
|
||||||
|
|
||||||
|
你需要从该[链接][1]上下载两个 zip 文件。下载并解压两个文件到相同目录。文件名为 **linuxamd64_12c_database_1of2.zip** & **linuxamd64_12c_database_2of2.zip**。提取或解压完后,它会创建一个名为 database 的文件夹。
|
||||||
|
|
||||||
|
注意:升级到 12c 之前,请确保在你的 CentOS 上已经安装了所有必须的软件包并且 path 环境变量也已经正确配置,还有其它前提条件也已经满足。
|
||||||
|
|
||||||
|
下面是必须使用正确版本安装的一些软件包
|
||||||
|
|
||||||
|
- binutils
|
||||||
|
- compat-libstdc++
|
||||||
|
- gcc
|
||||||
|
- glibc
|
||||||
|
- libaio
|
||||||
|
- libgcc
|
||||||
|
- libstdc++
|
||||||
|
- make
|
||||||
|
- sysstat
|
||||||
|
- unixodbc
|
||||||
|
|
||||||
|
在因特网上搜索正确的 rpm 版本。
|
||||||
|
|
||||||
|
你也可以用一个查询处理多个软件包,然后在输出中查找正确版本。例如:
|
||||||
|
|
||||||
|
在终端中输入下面的命令
|
||||||
|
|
||||||
|
rpm -q binutils compat-libstdc++ gcc glibc libaio libgcc libstdc++ make sysstat unixodbc
|
||||||
|
|
||||||
|
你的系统中必须安装了以下软件包(版本可能较新会旧)
|
||||||
|
|
||||||
|
- binutils-2.23.52.0.1-12.el7.x86_64
|
||||||
|
- compat-libcap1-1.10-3.el7.x86_64
|
||||||
|
- gcc-4.8.2-3.el7.x86_64
|
||||||
|
- gcc-c++-4.8.2-3.el7.x86_64
|
||||||
|
- glibc-2.17-36.el7.i686
|
||||||
|
- glibc-2.17-36.el7.x86_64
|
||||||
|
- glibc-devel-2.17-36.el7.i686
|
||||||
|
- glibc-devel-2.17-36.el7.x86_64
|
||||||
|
- ksh
|
||||||
|
- libaio-0.3.109-9.el7.i686
|
||||||
|
- libaio-0.3.109-9.el7.x86_64
|
||||||
|
- libaio-devel-0.3.109-9.el7.i686
|
||||||
|
- libaio-devel-0.3.109-9.el7.x86_64
|
||||||
|
- libgcc-4.8.2-3.el7.i686
|
||||||
|
- libgcc-4.8.2-3.el7.x86_64
|
||||||
|
- libstdc++-4.8.2-3.el7.i686
|
||||||
|
- libstdc++-4.8.2-3.el7.x86_64
|
||||||
|
- libstdc++-devel-4.8.2-3.el7.i686
|
||||||
|
- libstdc++-devel-4.8.2-3.el7.x86_64
|
||||||
|
- libXi-1.7.2-1.el7.i686
|
||||||
|
- libXi-1.7.2-1.el7.x86_64
|
||||||
|
- libXtst-1.2.2-1.el7.i686
|
||||||
|
- libXtst-1.2.2-1.el7.x86_64
|
||||||
|
- make-3.82-19.el7.x86_64
|
||||||
|
- sysstat-10.1.5-1.el7.x86_64
|
||||||
|
|
||||||
|
你也需要 unixODBC-2.3.1 或更新版本的驱动。
|
||||||
|
|
||||||
|
我希望你安装 Oracle 11g 的时候已经在你的 CentOS 7 上创建了名为 oracle 的用户。
|
||||||
|
|
||||||
|
让我们以用户 oracle 登录 CentOS。
|
||||||
|
|
||||||
|
以用户 oracle 登录到 CentOS 之后,在你的 CentOS上打开一个终端。
|
||||||
|
|
||||||
|
使用终端更改工作目录并导航到你解压两个 zip 文件的目录。在终端中输入以下命令开始安装 12c。
|
||||||
|
|
||||||
|
./runInstaller
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212image5.png)
|
||||||
|
|
||||||
|
如果一切顺利,你会看到类似下面的截图,已经开始安装 12c。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage6.png)
|
||||||
|
|
||||||
|
然后你可以选择跳过更新或者下载最近更新。如果是生产服务器,建议你必须更新。我这里选择跳过。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage7.png)
|
||||||
|
|
||||||
|
现在,选择升级现有数据库。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage8.png)
|
||||||
|
|
||||||
|
对于语言,这里已经有 English。点击下一步继续,或者你可以根据你的需要添加语言。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage9.png)
|
||||||
|
|
||||||
|
现在,选择企业版。你可以根据你的需求选择。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage10.png)
|
||||||
|
|
||||||
|
然后选择软件位置路径,这些都是不言自明的。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage11.png)
|
||||||
|
|
||||||
|
第七步,像下面这样使用默认的选择继续下一步。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage12.png)
|
||||||
|
|
||||||
|
在第九步,你会看到一个类似下面这样的总结报告。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage13.png)
|
||||||
|
|
||||||
|
如果一切正常,你可以点击步骤九中的 install 开始安装,进入步骤十。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/11g212cimage14.png)
|
||||||
|
|
||||||
|
其中你可能会遇到一些错误,你需要通过谷歌找到这些错误的解决方法。你可能遇到的问题会有很多,因此我没有在这里详细介绍。
|
||||||
|
|
||||||
|
要有耐心,一步一步走下来最后它会告诉你成功了。否则,在谷歌上搜索做必要的操作解决问题。再一次说明,由于你可能会遇到的错误有很多,我无法在这里提供所有详细介绍。
|
||||||
|
|
||||||
|
现在,只需要按照下面屏幕指令配置监听器
|
||||||
|
|
||||||
|
配置完监听器之后,它会启动数据库升级助手(Database Upgrade Assistant)。选择 Upgrade Oracle Database。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/DUAimage15.png)
|
||||||
|
|
||||||
|
在第二步,你会发现它显示了 11g 的位置路径以及 12c 的位置路径。同时你也会发现它指示说从原来的 Oracle Home Release 11 安装 Oracle Home Release 12.点击下一步进入步骤三。
|
||||||
|
|
||||||
|
![](http://www.unixmen.com/wp-content/uploads/2015/09/DUAimage16.png)
|
||||||
|
|
||||||
|
按照屏幕上的说明完成安装。
|
||||||
|
|
||||||
|
在最后一步,你会看到一个成功窗口,其中你会看到成功升级了 oracle 数据库。
|
||||||
|
|
||||||
|
**一个忠告**:对于你的生产服务器,在升级到 12c 之前,请确保你已经在其它平台上测试过,以便你能修复升级过程中遇到的所有错误。永远不要尝试一无所知的时候就升级生产服务器。
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
via: http://www.unixmen.com/upgrade-from-oracle-11g-to-oracle-12c/
|
||||||
|
|
||||||
|
作者:[Mohammad Forhad Iftekher][a]
|
||||||
|
译者:[ictlyh](http://www.mutouxiaogui.cn/blog/)
|
||||||
|
校对:[校对者ID](https://github.com/校对者ID)
|
||||||
|
|
||||||
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||||
|
|
||||||
|
[a]:http://www.unixmen.com/author/forhad/
|
||||||
|
[1]:http://www.oracle.com/technetwork/database/enterprise-edition/downloads/database12c-linux-download-1959253.html
|
Loading…
Reference in New Issue
Block a user