You are not logged in.

#1 2021-04-29 12:41:15

Dono
Member
Registered: 2021-04-09
Posts: 3

Oracle 19c installation

Hi,

I would like some help installing Oracle 19c on Arch Linux.
Please note that I have tried to follow the Linux installation guide:
https://docs.oracle.com/en/database/ora … index.html

Let me show what I have done so far.
Steps #1-28 are basic Arch installation.
May skip to #29 for Oracle installation.

1. Partition disk:
    cgdisk /dev/sda
    gdisk /dev/sda
2. Create EFI boot partition:
    n (New)
    Partition number: (default)
    First sector: default (2048)
    Size in sectors: 600M
    File system type: ef00
3. Create swap partition:
    n (New)
    Partition number: (default)
    First sector: default
    Size in sectors: 4G
    File system type: 8200
    Name: swap
4. Create main partition:
    n (New)
    Partition number: (default)
    First sector: default
    Size in sectors: default
    File system type: default
5. Complete partitions:
    w (Write)
    y (yes)
    Quit
6. Format boot partition:
    mkfs -t fat -F 32 /dev/sda1
7. Prepare swap partition:
    mkswap /dev/sda2
    swapon /dev/sda2
8. Format main partition:
    mkfs -t ext4 /dev/sda3
9. Mount system partition:
    mount /dev/sda3 /mnt
10. Mount boot partition:
    mkdir -p /mnt/boot/efi
    mount /dev/sda1 /mnt/boot/efi
11. Install:
    pacstrap /mnt base linux linux-firmware base-devel networkmanager vim nano
12. Generate file system file:
    genfstab -U /mnt >> /mnt/etc/fstab
13. Switch to installed system:
    arch-chroot /mnt
14. Set date and time:
    timedatectl set-timezone Asia/Tokyo
    timedatectl set-ntp true
15. Set locale:
    vim /etc/locale.gen
    Uncomment "en_US.UTF-8 UTF-8"
    locale-gen
    echo "LANG=en_US.UTF-8" > /etc/locale.conf
16. Set hostname:
    vim /etc/hostname
17. Set root password:
    passwd
18. Create local user account:
    useradd -g users -G wheel,storage,power -m <user>
    passwd <user>
19. Set boot loader:
    pacman -S grub efibootmgr efivar intel-ucode
    grub-install /dev/sda
    grub-mkconfig -o /boot/grub/grub.cfg
20. Install Hyper-V integration services and OpenSSH:
    pacman -S hyperv openssh
21. Enable services:
    systemctl enable hv_fcopy_daemon
    systemctl enable hv_kvp_daemon
    systemctl enable NetworkManager
    systemctl enable sshd
22. Uncomment PermitRootLogin and change to "yes":
    vim /etc/ssh/sshd_config
23. Exit chroot:
    exit
24. Unmount partitions:
    umount /mnt/boot/efi
    umount /mnt
25. Reboot:
    reboot
26. Allow users to sudo:
    export EDITOR=nano
    visudo
    Uncomment #%wheel ALL=(ALL) ALL line
    Save
27. Install Xorg:
    pacman -S xorg xf86-video-fbdev gnome gdm
    systemctl enable gdm
28. Reboot:
    reboot
29. Create groups:
    groupadd oinstall
30. Create user:
    useradd -m -g oinstall oracle
    passwd oracle
31. Enable SUDO for oracle user:
    su - root
    export EDITOR=nano
    visudo
    oracle ALL=(ALL) ALL
32. Switch to oracle user:
    su - oracle
33. Create folders:
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_SID=oradb
    export ORACLE_HOME=$ORACLE_BASE/product/19.0.0.0
    sudo mkdir -p $ORACLE_HOME
    sudo mkdir -p /u01/app/oraInventory
    sudo chown -R oracle:oinstall $ORACLE_BASE
    sudo chown -R oracle:oinstall /u01/app/oraInventory
34. Download Oracle 19c ZIP. Copy from share:
    mkdir /mnt/nas
    mount -t cifs -o username=<user> //<path>/Media /mnt/nas
    cp /mnt/nas/Software/Oracle/19c/Linux/LINUX.X64_193000_db_home.zip ~
35. Unzip to ORACLE_HOME:
    unzip ~/LINUX.X64_193000_db_home.zip -d $ORACLE_HOME
36. Run installer
    cd $ORACLE_HOME
    ./runInstaller

Strangely, it does not recognize the root password.
Error 01

Nor does it recognize the oracle user password.
Error 02

I suppose I can run these scripts manually after installation.
So I try I continue, only to find the next error:
Error 03

In the installation log file, I see the following:
<quote>INFO:
make[2]: Entering directory '/u01/app/oracle/product/19.0.0.0/rdbms/lib'

INFO:
/u01/app/oracle/product/19.0.0.0/bin/orald -o /u01/app/oracle/product/19.0.0.0/lib/libasmperl19.so -shared -z noexecstack -Wl,--disable-new-dtags -L/tmp/bootstraplib/ -L/u01/app/oracle/product/19.0.0.0/lib/ -L/u01/app/oracle/product/19.0.0.0/rdbms/lib/ -L/u01/app/oracle/product/19.0.0.0/lib/stubs/ -Wl,--version-script=/u01/app/oracle/product/19.0.0.0/rdbms/admin/libasmperl19.def -Wl,--whole-archive /u01/app/oracle/product/19.0.0.0/lib/libasmperl19.a -Wl,--no-whole-archive -lclntsh -lclntshcore -lasmclntsh19
INFO:
-lhasgen19 -lskgxp19 -locr19 -lcell19    -lirc

INFO:
make[2]: Leaving directory '/u01/app/oracle/product/19.0.0.0/rdbms/lib'

INFO:
make[1]: Leaving directory '/u01/app/oracle/product/19.0.0.0/rdbms/lib'

INFO:
/u01/app/oracle/product/19.0.0.0/bin/genclntsh

INFO:
/usr/bin/ld: cannot find /usr/lib64/libpthread_nonshared.a

INFO:
genclntsh: Failed to link libclntshcore.so.19.1

INFO:
make: *** [/u01/app/oracle/product/19.0.0.0/rdbms/lib/ins_rdbms.mk:56: client_sharedlib] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'libasmclntsh19.ohso libasmperl19.ohso client_sharedlib' of makefile '/u01/app/oracle/product/19.0.0.0/rdbms/lib/ins_rdbms.mk'. See '/tmp/InstallActions2021-04-29_12-03-56PM/installActions2021-04-29_12-03-56PM.log' for details.
Exception Severity: 1</quote>

It appears to have trouble finding /usr/lib64/libpthread_nonshared.a when linking. How can I get this file?
I found this link, but I was not able to build the package:
https://www.programmersought.com/article/2023933161/
Are there any easier ways to obtain this file?
I would appreciate some help in resolving this.

Thank you.

Last edited by Dono (2021-04-29 12:44:18)

Offline

#2 2021-04-29 16:20:55

philo
Member
Registered: 2015-01-26
Posts: 251

Re: Oracle 19c installation

The Arch Linux wiki articles concerning Oracle are not of any help?

Last edited by philo (2021-04-29 16:26:09)

Offline

#3 2021-04-29 16:38:11

Dono
Member
Registered: 2021-04-09
Posts: 3

Re: Oracle 19c installation

I should have mentioned that. The Arch Wiki is for version 11g and is marked "out of date". I went through it, but most of it does not seem relevant to newer versions.

Offline

#4 2021-04-30 09:21:52

philo
Member
Registered: 2015-01-26
Posts: 251

Re: Oracle 19c installation

There is nothing in AUR that meets your needs?

Offline

#5 2021-05-02 10:39:39

philo
Member
Registered: 2015-01-26
Posts: 251

Re: Oracle 19c installation

Offline

Board footer

Powered by FluxBB