In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to install Oracle11gR2+ASM, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
Note: I wanted to release all the screenshots during the installation process, but it is a pity that it is not easy to paste pictures in the log here, so the screenshots during the installation process will be released in the form of packaging, please understand! Link address: http://space.itpub.net/25881373/viewspace-702460
(6) install grid software
Note: in this step, the operation must be logged in as the grid user and cannot be switched to grid from the su command of another user.
[grid@AS5 U02] $unzip linux_11gR2_grid.zip
[grid@AS5 U02] $cd grid/
[grid@AS5 grid] $export DISPLAY=172.24.0.1:0.0
[grid@AS5 grid] $. / runInstaller
Figures 1 to 10 (packaged in grid_setup.rar)
Http://space.itpub.net/25881373/viewspace-702460
[root@AS5 u02] # / u02/app/oraInventory/orainstRoot.sh
Changing permissions of / u02/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of / u02/app/oraInventory to oinstall.
The execution of the script. Is complete.
[root@AS5 u02] # / u02/app/grid/11.2.0/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= / u02/app/grid/11.2.0
Enter the full pathname of the local bin directory: [/ usr/local/bin]:
Copying dbhome to / usr/local/bin...
Copying oraenv to / usr/local/bin...
Copying coraenv to / usr/local/bin...
Creating / etc/oratab file...
Entries will be added to the / etc/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.
2011-07-15 11:56:31: Checking for super user privileges
2011-07-15 11:56:32: User has super user privileges
2011-07-15 11:56:32: Parsing the host name
Using configuration parameter file: / u02/app/grid/11.2.0/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp' oinstall'..
Operation successful.
CRS-4664: Node as5 successfully pinned.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
Ohasd is starting
As5 2011-07-15 11:57:46 / u02/app/grid/11.2.0/cdata/as5/backup_20110715_115746.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
Updating inventory properties for clusterware
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 2000 MB Passed
The inventory pointer is located at / etc/oraInst.loc
The inventory is located at / u02/app/oraInventory
'UpdateNodeList' was successful.
At this point, grid is installed.
[root@AS5 install] # ps-ef | grep ASM
Grid 30172 1 0 15:23? 00:00:00 asm_pmon_+ASM
Grid 30174 1 0 15:23? 00:00:00 asm_vktm_+ASM
Grid 30178 1 0 15:23? 00:00:00 asm_gen0_+ASM
Grid 30180 1 0 15:23? 00:00:00 asm_diag_+ASM
Grid 30182 1 0 15:23? 00:00:00 asm_psp0_+ASM
Grid 30184 1 0 15:23? 00:00:00 asm_dia0_+ASM
Grid 30186 1 0 15:23? 00:00:00 asm_mman_+ASM
Grid 30188 1 0 15:23? 00:00:00 asm_dbw0_+ASM
Grid 30190 1 0 15:23? 00:00:00 asm_lgwr_+ASM
Grid 30192 1 0 15:23? 00:00:00 asm_ckpt_+ASM
Grid 30194 1 0 15:23? 00:00:00 asm_smon_+ASM
Grid 30196 1 0 15:23? 00:00:00 asm_rbal_+ASM
Grid 30198 1 0 15:23? 00:00:00 asm_gmon_+ASM
Grid 30200 1 0 15:23? 00:00:00 asm_mmon_+ASM
Grid 30202 1 0 15:23? 00:00:00 asm_mmnl_+ASM
After the ASM instance is created, you need to use the grid user to:
[grid@AS5 utl] $crsctl modify resource "ora.cssd"-attr "AUTO_START=1"
[grid@AS5 utl] $crsctl modify resource "ora.diskmon"-attr "AUTO_START=1"
(7) create an ASM disk group
SQL > select name,state,type,total_mb,usable_file_mb from v$asm_diskgroup
NAME STATE TYPE TOTAL_MB USABLE_FILE_MB
--
DATA01 MOUNTED NORMAL 8610 4185
SQL > select name,header_status,mount_status,state,path from v$asm_disk
NAME HEADER_STATU MOUNT_S STATE PATH
--
PROVISIONED CLOSED NORMAL ORCL:VOL04
VOL01 MEMBER CACHED NORMAL ORCL:VOL01
VOL02 MEMBER CACHED NORMAL ORCL:VOL02
VOL03 MEMBER CACHED NORMAL ORCL:VOL03
SQL > create diskgroup flash_recover_area external redundancy disk 'ORCL:VOL04'
Diskgroup created.
SQL > select name,state,type,total_mb,usable_file_mb from v$asm_diskgroup
NAME STATE TYPE TOTAL_MB USABLE_FILE_MB
--
DATA01 MOUNTED NORMAL 8610 4185
FLASH_RECOVER_AREA MOUNTED EXTERN 1913 1863
3. Install oracle database software
(1) upload the oracle database software to the host, and then decompress it with oracle identity:
[oracle@AS5 U01] $ll
Total 3188280
Drwxrwxr-x 3 oracle oinstall 4096 Jul 14 18:30 app
-rwxrwxr-x 1 oracle oinstall 1285396902 Jul 14 18:49 linux_11gR2_database_1of2.zip
-rwxrwxr-x 1 oracle oinstall 995359177 Jul 14 18:46 linux_11gR2_database_2of2.zip
[oracle@AS5 U01] $unzip linux_11gR2_database_1of2.zip
[oracle@AS5 U01] $rm linux_11gR2_database_1of2.zip
[oracle@AS5 U01] $unzip linux_11gR2_database_2of2.zip
[oracle@AS5 U01] $rm linux_11gR2_database_2of2.zip
[oracle@AS5 U01] $chmod-R 775 database/
(2) install oracle
Note: in this step, the operation must be logged in as the oracle user and cannot be switched to oracle from the su command of another user.
[oracle@AS5 U01] $cd database/
[oracle@AS5 database] $pwd
/ u01/database
[oracle@AS5 database] $ll
Total 40
Drwxrwxr-x 12 oracle oinstall 4096 Aug 17 2009 doc
Drwxrwxr-x 4 oracle oinstall 4096 Aug 14 2009 install
Drwxrwxr-x 2 oracle oinstall 4096 Aug 14 2009 response
Drwxrwxr-x 2 oracle oinstall 4096 Aug 14 2009 rpm
-rwxrwxr-x 1 oracle oinstall 4352 Aug 14 2009 runInstaller
Drwxrwxr-x 2 oracle oinstall 4096 Aug 14 2009 sshsetup
Drwxrwxr-x 14 oracle oinstall 4096 Aug 14 2009 stage
-rwxrwxr-x 1 oracle oinstall 5400 Aug 18 2009 welcome.html
[oracle@AS5 database] $export DISPLAY=172.24.0.1:0.0
[oracle@AS5 database] $. / runInstaller
Screenshots 11 to 20 of the installation process (packaged in oracle_setup.rar)
Http://space.itpub.net/25881373/viewspace-702460
[root@AS5 install] # / u01/app/oracle/product/11.2.0/db_1/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= / u01/app/oracle/product/11.2.0/db_1
Enter the full pathname of the local bin directory: [/ usr/local/bin]:
The file "dbhome" already exists in / usr/local/bin. Overwrite it? (YBO)
[n]: y
Copying dbhome to / usr/local/bin...
The file "oraenv" already exists in / usr/local/bin. Overwrite it? (YBO)
[n]: y
Copying oraenv to / usr/local/bin...
The file "coraenv" already exists in / usr/local/bin. Overwrite it? (YBO)
[n]: y
Copying coraenv to / usr/local/bin...
Entries will be added to the / etc/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.
So far, the oracle database software has been installed.
4. Build a database
[oracle@AS5 database] $echo $ORACLE_SID
Ora10
[oracle@AS5 database] $export DISPLAY=172.24.0.1:0.0
[oracle@AS5 database] $dbca
Figures 21 to 32 (packaged in dbca.rar)
Http://space.itpub.net/25881373/viewspace-702460
After completing the above operation, the database is created.
SQL > select file_name from dba_data_files
FILE_NAME
+ DATA01/ora10/datafile/users.259.756577629
+ DATA01/ora10/datafile/undotbs1.258.756577629
+ DATA01/ora10/datafile/sysaux.257.756577629
+ DATA01/ora10/datafile/system.256.756577627
+ DATA01/ora10/datafile/example.265.756577983
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.