Step for installing oracle11g in tar mode, taroracle11g
Install oracle11g using tar
In the dual-host database cluster built by veritas, the configuration and installed software and hardware environments of the two servers are the same. After an oracle database is installed, you can use tar to quickly install oracle11g on another server. After installation, make appropriate adjustments to ensure normal use.
First check the Software Package
Binutils-2.17.50.0.6-2.el5
Compat-libstdc ++-33-3.2.3-61
Elfutils-libelf-0.125-3.el5
Elfutils-libelf-devel-0.125
Gcc-4.1.1-52
Gcc-c ++-4.1.1-52
Glibc-2.5-12
Glibc-common-2.5-12
Glibc-devel-2.5-12
Glibc-headers-2.5-12
Libaio-0.3.106
Libaio-devel-0.3.106
Libgcc-4.1.1-52
Libstdc ++-4.1.1
Libstdc +-devel-4.1.1-52.e15
Make-3.81-1.1
Sysstat-7.0.0
UnixODBC-2.2.11
UnixODBC-devel-2.2.11
Perform the following steps:
1. Add users and groups to another server
Useradd oracle
Passwd oracle
Groupadd oinstall
Groupadd dba
Groupuser-g oinstall-G dba oracle-m
2. Add related directories to the new server
Mkdir-p/opt/oracle/product/10.2/db_1
3. Set core parameters
Vi/etc/sysctl. conf, add
Kernel. shmall = 2097152
Kernel. shmmax = 8589934592
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
Make the settings take effect:
Sysctl-p
4. Modify the environment variables of oracle users
Su-oracle
Vi. bash_profile Add:
Export ORACLE_SID = orcl
Export ORACLE_BASE =/opt/oracle
Export ORACLE_HOME =/opt/oracle/product/10.2
Export PATH = $ ORACLE_HOME/bin: $ PATH
Export NLS_LANG = "SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
5. Package programs on the original server
Package and compress the items under $ ORACLE_HOME:
Cd $ ORACLE_BASE/product
Tar-cvf oracle.tar 10.2
6. Transfer to the new server and decompress the package
Sftp or through scp .....
Cd $ ORACLE_BASE/product
Tar-xvf oracle.tar
7. Modify the decompressed file owner
[Root @ yans2 oracle] # chown-R oracle: oinstall/opt
Chown: changing ownership of '/opt/oracle/product/10.2/rdbms/filemap': No such file or directory
An error is prompted, indicating that the file does not exist. Check that this is a soft link:
[Root @ yans2 oracle] # ls-l/opt/oracle/product/10.2/rdbms/filemap
Lrwxrwxrwx 1 root 22 Jan 10/opt/oracle/product/10.2/rdbms/filemap->/opt/ORCLfmap/prot1_64
After checking, the current system does not have the/opt/ORCLfmap directory. In fact,/opt/ORCLfmap is generated by root. sh. Delete this soft link first:
Rm-f/opt/oracle/product/10.2/rdbms/filemap
Run root. sh again:
[Root @ yans2 opt] #/opt/oracle/product/10.2/root. sh
Running Oracle10 root. sh script...
The following environment variables are set:
ORACLE_OWNER = oracle
ORACLE_HOME =/opt/oracle/product/10.2
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
Database Configuration Assistant when a database is created
Finished running generic part of root. sh script.
Now product-specific root actions will be saved med.
The soft connection and directory already exist:
[Root @ yans2 opt] # ls/opt/oracle/product/10.2/rdbms/filemap
Bin etc log
[Root @ yans2 opt] # ls-l/opt/oracle/product/10.2/rdbms/filemap
Lrwxrwxrwx 1 root 22 Jan 10/opt/oracle/product/10.2/rdbms/filemap->/opt/ORCLfmap/prot1_64
8. Create a database
Run dbca and set it step by step.
9. Create a listener and run netca
10. Clear files related to the original network and original application files.
11. Use sqlplus/nolog
Conn/as sysdba
Startup
To start the database.