ivaneeo's blog

          自由的力量,自由的生活。

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks

          Install Oracle 64Bit On Ubuntu

          Creating A Listener For the New DB

          It's not a requirement to create a Listener before you create a database, but it's a good idea to do so. A Listener is a process which listens on a well-known port for requests from remote users seeking to connect to the Oracle database. Without one, therefore, you'd only ever be able to connect to the database whilst directly logged onto the server itself, which is obviously a bit of a show-stopper!

          To create a Listener, we use the Network Configuration Assistant. To invoke the Assistant, just issue the command netca (should be in path) as the oracle user in a new terminal session. Press "Next" to accept the defaults. After a bit you will get to "Finish" which is where you want to finish.

          netca

          Creating a Database

          First, find out the id of the oinstall group. You can find this from looking in System -> Admin -> Users and Groups -> Manage Groups. Alternatively, use:

          cat /etc/group | grep oinstall

          NB: The oinstall Group Id should be 1002 or similar. If the User/Group Applet is giving "0" then try double checking the Properties of the group. I've noticed that the Users/Groups Applet can be unreliable...

          Then, as root, perform the following command. (NB: This can't be performed by sudo, you must be root)

          echo "<dba_group_gid>" > /proc/sys/vm/hugetlb_shm_group

          This allows the oinstall group access to hugetlbpages. Without this you will get error "ORA-27125: unable to create shared memory segment" when setting up the database.

          Run the Database Configuration Assistant, or DBCA for short. You will need to be the Oracle user you set up earlier.

          dbca

          This is not a difficult thing to do: mostly, in our case, it involves clicking "Next" to walk through the wizard, accepting all defaults. You will be prompted when you actually need to enter something.

          Just be sure to specify the correct database name (it should match what is set as your ORACLE_SID, but with a proper domain extension. By default the ORACLE_SID is orcl10, and can be found out by running the oraenv command in the oracle bin directory...

          Use the password "oracle" for the password and write down the values it spits out at the end...!

          NB: If you get a "ORA-12547- Lost Contact" error, make sure you have libaio1installed (sudo apt-get install libaio1)...
          Well Done...!

          If it all went well you now have an Oracle Db on your machine. Pat yourself on the back for getting this far and sticking with it. You still have a way to go before its all installed but go and have some tea to celebrate...! And then go on to Part 2...
          Last Updated on Saturday, 16 January 2010 12:09

          posted on 2011-01-13 16:51 ivaneeo 閱讀(474) 評論(0)  編輯  收藏 所屬分類: oralce-為什么這么強(qiáng)大
          主站蜘蛛池模板: 炉霍县| 松原市| 漳州市| 宁化县| 霍邱县| 兴化市| 峨山| 湛江市| 安达市| 苏州市| 马边| 漳浦县| 遂平县| 凌云县| 西宁市| 安塞县| 潞城市| 永安市| 五莲县| 绥中县| 普洱| 淳化县| 德令哈市| 星子县| 望江县| 奉贤区| 诸暨市| 定兴县| 武功县| 济宁市| 扬州市| 罗甸县| 德阳市| 鱼台县| 绥江县| 准格尔旗| 自贡市| 桓台县| 乌什县| 河南省| 梁河县|