Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Database \ Linux non-graphical interface to install Oracle Database     - Delete specific files using bash directory under Linux (Linux)

- Use nice, cpulimit and cgroups limit cpu usage (Linux)

- Android in the coordinate system and a method to obtain the coordinates (Programming)

- Linux Desktop allows exceptionally different launch applications (Linux)

- Linux environment variable settings methods and differences (Linux)

- N1QL bring SQL-like query NoSQL database experience (Database)

- Default permissions Linux file and directory permissions and hide - umask, chattr, lsattr, SUID, SGID, SBIT, file (Linux)

- MySQL event table to achieve timing build a small note (Database)

- C / C ++ language usage summary of const (Programming)

- Extended VMware Ubuntu root partition size (Linux)

- Linux operating system Study Notes (Linux)

- To install Ganglia (Linux)

- Improve the Ubuntu SSH login authentication approach speed (Linux)

- Learning the Linux powerful network management capabilities (Linux)

- MySQL in order by inaccurate results in problems and solutions (Database)

- Difference Redhat5 and 6 YUM source configuration (Linux)

- Seven kinds of NIC binding mode Detail (Linux)

- C # DateTime structure common method (Programming)

- Production environment Linux bonding method standby mode slave card switch (Server)

- Docker deployment practices in Ubuntu (Server)

  Linux non-graphical interface to install Oracle Database
  Add Date : 2018-11-21      

A graphical interface is not open Linux OS, how to install Oracle software and databases, as is a large step 2

Cloning software
Building a database manually
First, cloning software

1, the basic configuration

1.1) system package installation

yum -y install binutils compat-libstdc ++ - 33 compat-libstdc ++ - 33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c ++ glibc glibc.i686 glibc-common glibc-devel glibc-devel.i686 glibc-headers ksh libaio libaio .i686 libaio-devel libaio-devel.i686 libgcc libgcc.i686 libstdc ++ libstdc ++ i686 libstdc ++ -. devel make sysstat unixODBC unixODBC-devel

1.2) user-created

groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
1.3) configuration file

    1.3.1) environment variables

              vi ~ oracle / .bash_profile

              export ORACLE_BASE = / data / app / oracle

              export ORACLE_HOME = $ ORACLE_BASE / product / / db_1

              export ORACLE_SID = test # up to 8 characters; link oracle operating system and the associated instance; ORACLE_HOME + ORACLE_SID ==> hash ==> shared memory segment

              export PATH = $ PATH: $ HOME / bin: $ ORACLE_HOME / bin # the command after the installation of oracle appended to the execution search path

              export LD_LIBRARY_PATH = $ ORACLE_HOME / lib: / lib: / usr / lib # dynamic library location

      export nls_lang = "SIMPLIFIED CHINESE_CHINA.ZHS16GBK" # client character set

              # Load a configuration: oracle user logs off or log back on source .bash_profile

    1.3.2) Host

          echo " Database-backup" >> / etc / hosts # error ORA-00000 while avoiding being given startup noumount: normal, successful completion

    1.3.3) software directory

          mkdir -p /data/app/oracle/product/

            chown -R oracle: oinstall / data / app

      1.3.4) resource constraints

            1.3.4,1) vim /etc/sysctl.conf added to the file at the bottom of

                    kernel.shmall = 2097152

                    #Total Amount of shared memory available (bytes or pages); number of pages; 2097152 * 4096/1024/1024/1024 = 8G; if memory than 8G, this parameter must be modified

                    kernel.shmmax = 2147483648

                    # To> = half Maximum size of physical memory of shared memory segment (bytes); recommendations> = sga_max_size (oracle application memory size);

                    # Single program memory segment maximum number; 4G, then divided into two mem_seg1 mem_seg2, affecting the efficiency;

                    kernel.shmmni = 4096

                    # Maximum number of shared memory segments system-wide; page size;

                  kernel.sem = SEMMSL SEMMNS SEMOPM SEMMNI

                                          The maximum signal of the target object sets each signal number; SEMMSL Maximum number of semaphores per set

                                          SEMMNS Maximum number of semaphores system-wide; the maximum number of objects in the system-wide signal; SEMMNS = SEMMSL * SEMMNI

                                          The maximum number of operations of each signal object supports SEMOPM

                                          SEMMNI Maximum number of semaphore identifiers; set system-wide maximum number of semaphore object

                  fs.file-max # system allowed the maximum number of file handles

                  IPv4 port range net.ipv4.ip_local_port_range # application that can be used

                  net.core.rmem_default # socket receive buffer size defaults

                  net.core.rmem_max # maximum socket receive buffer size

                  net.core.wmem_default # socket send buffer size defaults

                  Net.core.wmem_max # maximum socket send buffer size

                  # Note: OS32bit, oracle application up to 1.7G; should be installed 64bitOS

                  # Sysctl -p parameter to load

1.3.4, 2) /etc/security/limits.conf oracle on linux operating limit

                        [Root @ dba ~] # grep -v '^ #' /etc/security/limits.conf

                      oracle soft nproc 2047 #oracle open proc amount on linux

                      oracle hard nproc 16384

                      oracle soft nofile 1024 #oracle number of open file on linux

                      oracle hard nofile 65536

                      [Root @ dba ~] # grep 'limit' /etc/pam.d/system-auth

                      session required pam_limits.so

            1.3.4,3) turn off the firewall, SELINUX

                        iptables -F

                        Change / etc / selinux / config file -> SELINUX = disabled

2 cloned ORACLE_HOME

        2.1) Copy

        scp db_1 oracle@ /data/app/oracle/product/

      2.2) Executive clone.pl clone script to change the configuration parameters (ORACLE_SID, ORACLE_HOME)

      $ Cd /data/app/oracle/product/

              $ Ls
                  clone.pl prepare_clone.pl
              $ Perl clone.pl ORACLE_SID = test ORACLE_BASE = / data / app / oracle ORACLE_HOME = / data / app / oracle / product / / db_1 / ORACLE_HOME_NAME = OraDb11g_home1

                    ....... Finally following message said cloning success ...

                    The following configuration scripts need to be executed as the "root" user.


                    To execute the configuration scripts:

                    1. Open a terminal window

                    2. Log in as "root"

                    3. Run the scripts

                              The cloning of OraDb11g_home1 was successful.

 Second, building a database manually

1, the configuration parameter file (a simple test environment parameters, if demand can be added)

        [Oracle @ Database-backup dbs] $ cat inittest.ora
        db_name = test
        db_files = 80
        db_file_multiblock_read_count = 8
        log_checkpoint_interval = 10000
        processes = 50
        parallel_max_servers = 5
        log_buffer = 32768
        max_dump_file_size = 10240 # limit trace file size to 5 Meg each
        global_names = TRUE
        #control_files = (ora_control1, ora_control2)
        sga_max_size = 300M
        sga_target = 300M
        * .local_listener = '(ADDRESS_LIST = (Address = (Protocol = tcp) (Host = (Port = 1521)))' # avoid starting a database error (ORA-00119ORA-00130 local_listener configuration is invalid)
        [Oracle @ Database-backup dbs] $

2, start the database to nomount

        SQL> startup nomount
          ORACLE instance started.

          Total System Global Area 313159680 bytes
          Fixed Size 2252824 bytes
          Variable Size 104861672 bytes
          Database Buffers 201326592 bytes
          Redo Buffers 4718592 bytes

3, create a database, to the open state
      USER SYS IDENTIFIED BY change_on_install


      LOGFILE GROUP 1 ( '/data/app/dbf/redo01.log') SIZE 100M,

              GROUP 2 ( '/data/app/dbf/redo02.log') SIZE 100 M,

              GROUP 3 ( '/data/app/dbf/redo03.log') SIZE 100 M








      DATAFILE '/data/app/dbf/system01.dbf' SIZE 325M REUSE


      SYSAUX DATAFILE '/data/app/dbf/sysaux01.dbf' SIZE 325 M REUSE

      DEFAULT TABLESPACE users datafile '/data/app/dbf/users.dbf' size 50m


          TEMPFILE '/data/app/dbf/temp01.dbf'

          SIZE 20 M REUSE

      UNDO TABLESPACE undotbs

          DATAFILE '/data/app/dbf/undotbs01.dbf'


        Database created.


4. Verify that the database state

        SQL> select status from v $ instance;



5, the DBF settings automatically extended later to avoid the execution of the script to load the data dictionary table / pack / user space shortage when scott

          alter database datafile 1 autoextend on;
          alter database datafile 2 autoextend on;
          alter database datafile 3 autoextend on;
          alter database datafile 4 autoextend on;

6. Create a data dictionary / pack / scott user

          Data dictionary views: @ / rdbms / admin / catalog.sql?

          System package / stored procedure:? @ / Rdbms / admin / catproc.sql

          Users PROFILE table:? @ / Rdbms / admin / pupbld.sql

          Test user scott: @ / rdbms / admin / scott.sql?

Above has been completed and the software installed oracle database.

Organize and improve the problem

1, ***** sqlplus / as sysdba prompted not libclntsh.so.11.1 files found

          [Oracle @ Database-backup ~] $ sqlplus / as sysdba
          sqlplus: error while loading shared libraries: libclntsh.so.11.1: can not open shared object file: No such file or directory

          [Oracle @ Database-backup lib] $ ls libclntsh.so *
          libclntsh.so libclntsh.so.10.1 -> Only 10.1 cp -rp complete copy of the joint property, may be normal if libclntsh.so.11.1 file permissions problem.
          [Oracle @ Database-backup lib] $ cp -rp libclntsh.so.10.1 libclntsh.so.11.1
          [Oracle @ Database-backup lib] $ sqlplus / as sysdba

          ... Normal.

2, for the sys password

          orapwd file = orapwtest password = test

 3, ORA-00904: "wm_concat": invalid identifier
        Create a user script execution WMSYS
        SQL> @? / Rdbms / admin / owmctab.plb
        SQL> @? / Rdbms / admin / owmaggrs.plb
        SQL> @? / Rdbms / admin / owmaggrb.plb
- The Rabbitmq installation under CentOS 6.4 (Linux)
- Construction LVM-based raw device Oracle10g Database on Oracle Linux 5.11 (Database)
- HTTP and HTTPS request response process difference (Linux)
- The top command under Linux (Linux)
- Protect your files, modify the Linux value Umask (Linux)
- Stucts2 values on the page and how the attribute values corresponding to the Action (Programming)
- Single list summarizes the basic operation (Programming)
- Guide: Trickle restrict application bandwidth usage (Linux)
- MySQL / MariaDB database master-slave replication (Database)
- Use Vagrant build cross-platform development environment for Python (Server)
- Create Your Own Docker base image in two ways (Linux)
- Plasma 5.4 How to install on Kubuntu 15.04 (Linux)
- About Git (Linux)
- Nginx load balancing configuration (http proxy) (Server)
- Linux, grep, sed usage (Linux)
- CentOS yum install LAMP (Server)
- Reset CentOS / RHEL root account password 7 (Linux)
- Ubuntu system grub repair method (Linux)
- Install Gnome Flashback Classic Desktop on Ubuntu 14.10 / Mint 7 (Linux)
- DRBD-based installation and configuration of CentOS 6.5 (Server)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.