Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
4
votes
1
answers
2406
views
su cannot open session error when starting Oracle XE database
I have a RHEL 7.2 server with Oracle 11g Express Edition (11.2.0) installed. The installation of Oracle created a file named "oracle-xe" in /etc/init.d This is a bash script that can be used to start and stop the listener and database manually. When I'm logged on to the server, I can run the followi...
I have a RHEL 7.2 server with Oracle 11g Express Edition (11.2.0) installed. The installation of Oracle created a file named "oracle-xe" in /etc/init.d This is a bash script that can be used to start and stop the listener and database manually. When I'm logged on to the server, I can run the following:
dzdo /etc/init.d/oracle-xe start
and the Oracle listener + database are started without issue. I can log on using sqlplus and execute commands. I'm trying to use chkconfig to make it so that oracle-xe is executed automatically on system start, so that I do not have to manually start the listener and database every time the server is rebooted. The oracle-xe script itself is lengthy, but the meat of it contains the following:
#!/bin/bash
# chkconfig: 2345 80 05
# Source fuction library
if [ -f /lib/lsb/init-functions ]
then
. /lib/lsb/init-functions
elif [ -f /etc/init.d/functions ]
then
. /etc/init.d/functions
fi
SU=/bin/su
ORACLE_OWNER=oracle
$ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
LSNR=$ORACLE_HOME/bin/lsnrctl
SQLPLUS=$ORACLE_HOME/bin/sqlplus
$STARTUP_LOG=/home/tsm/log/oracle-xe.log
echo $(date) >> $STARTUP_LOG
$SU -s /bin/bash $ORACLE_OWNER -c "$LSNR start" >> $STARTUP_LOG 2>&1
$SU -s /bin/bash $ORACLE_OWNER -c "$SQLPLUS -s /nolog @$ORACLE_HOME/config/scripts/startdb.sql" >> $STARTUP_LOG 2>&1
I added the $STARTUP_LOG code and the >> redirect of output so that I could sort out what was happening. I added the script to chckconfig with the following:
cd /etc/init.d
dzdo chmod 750 oracle-xe
dzdo chkconfig --add oracle-xe
dzdo chkconfig oracle-xe on
The following command yields the given (shortened) output:
dzdo chkconfig --list
oracle-xe 0:off 1:off 2:on 3:on 4:on 5:on 6:off
I reboot the server, and it generates a log file at /home/tsm/log/oracle-xe.log with the following output:
Fri Jan 13 15:03:58 CST 2017
su: cannot open session: Permission denied
su: cannot open session: Permission denied
and as you might guess, as a result of this su failure, neither the listener nor the database engine have started. Since I see the reboot date/time in the log file, I know for sure that the script is being executed upon boot. It seems to me to be a permissions issue, that whatever account is being used to execute init scripts at startup for some reason cannot su as $ORACLE_OWNER, yet me as a lowly admin can do this just fine from the command prompt. It was my understanding that the init code is executed as root, and therefore this su command should run without a problem. I've been searching and trying various things for the better part of a day trying to sort this out, and have pulled out what little remains of my hair.
The server itself is using DirectAuthorize to grant access permissions, which is why I end up using dzdo instead of sudo. Could this have something to do with it?
tsm
(41 rep)
Jan 13, 2017, 09:57 PM
• Last activity: May 27, 2025, 03:03 AM
0
votes
1
answers
2008
views
Error in PREIN scriptlet in rpm package
I'm stuck with a problem when I try to install a local `.rpm` packages. Error message: ``` Total size: 124 M Installed size: 124 M Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction error: Couldn't create temp...
I'm stuck with a problem when I try to install a local
.rpm
packages.
Error message:
Total size: 124 M
Installed size: 124 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
error: Couldn't create temporary file for %pre(PACKAGE): Success
Error in PREIN scriptlet in rpm package PACKAGE
Verifying : PACKAGE 1/1
Failed:
PACKAGE
I'm completely lost, since I'm pretty new with linux.
I'm testing on a:
OS: "Oracle Linux Server 7.9"
Kernel release: 5.4.17-2136.309.4.el7uek.x86_64
N. J
(177 rep)
Nov 21, 2022, 09:28 PM
• Last activity: Apr 30, 2025, 08:06 AM
0
votes
1
answers
4108
views
Error installing oracle 19c database pre-install on oracle linux server 7.6
I'm tryin to install oracle 19c on oracle linux 7.6, I'm required to install oracle 19c preinstall , knowing that this is a fresh install I don't understand why i'm getting these errors : yum -y localinstall http://yum1.stanford.edu/mrepo/ol8-x86 64/RPMS.appstream/oracle-database-preinstall-19c-1.0-...
I'm tryin to install oracle 19c on oracle linux 7.6, I'm required to install oracle 19c preinstall , knowing that this is a fresh install I don't understand why i'm getting these errors :
yum -y localinstall http://yum1.stanford.edu/mrepo/ol8-x86 64/RPMS.appstream/oracle-database-preinstall-19c-1.0-2.el8.x86 64.rpm
Loaded plugins: langpacks, ulninfo
Repository ol7_latest is listed more than once in the configuration
Repository ol7_u0_base is listed more than once in the configuration
Repository ol7_u1_base is listed more than once in the configuration
Repository ol7_u2_base is listed more than once in the configuration
Repository ol7_u3_base is listed more than once in the configuration
Repository ol7_u4_base is listed more than once in the configuration
Repository ol7_u5_base is listed more than once in the configuration
Repository ol7_u6_base is listed more than once in the configuration
Repository ol7_security_validation is listed more than once in the configuration
Repository ol7_optional_latest is listed more than once in the configuration
Repository ol7_addons is listed more than once in the configuration
Repository ol7_MODRHCK is listed more than once in the configuration
Repository ol7_latest_archive is listed more than once in the configuration
Repository ol7_optional_archive is listed more than once in the configuration
Repository ol7_UEKR5 is listed more than once in the configuration
Repository ol7_UEKR4 is listed more than once in the configuration
Repository ol7_UEKR3 is listed more than once in the configuration
Repository ol7_UEKR3_OFED20 is listed more than once in the configuration
Repository ol7_UEKR5_RDMA is listed more than once in the configuration
Repository ol7_UEKR4_OFED is listed more than once in the configuration
Repository ol7_UEKR4_archive is listed more than once in the configuration
Repository ol7_UEKR5_archive is listed more than once in the configuration
Repository ol7_kvm_utils is listed more than once in the configuration
Skipping: http://yum1.stanford.edu/mrepo/ol8-x86 , filename does not end in .rpm.
Skipping: 64/RPMS.appstream/oracle-database-preinstall-19c-1.0-2.el8.x86, filename does not end in .rpm.
Cannot open: 64.rpm. Skipping.
Nothing to do
Mohamed Douzi
(1 rep)
Aug 9, 2022, 02:47 PM
• Last activity: Apr 3, 2025, 08:11 PM
0
votes
0
answers
90
views
qcow2 with only grub2 BIOS installed not loading in public cloud, works in qemu though
I am trying to create a simple 200 M new qcow2 with just the grub2 BIOS mode installed in it. My objective is to get to the grub prompt or grub rescue prompt when i load the said qcow2 image in public cloud like OCI or AWS. The following are my steps 1. Compiling GRUB2 in BIOS mode from source code...
I am trying to create a simple 200 M new qcow2 with just the grub2 BIOS mode installed in it. My objective is to get to the grub prompt or grub rescue prompt when i load the said qcow2 image in public cloud like OCI or AWS.
The following are my steps
1. Compiling GRUB2 in BIOS mode from source code
- mkdir grub2
- cd grub2
- wget https://ftp.gnu.org/gnu/grub/grub-2.06.tar.gz
- tar -xvf grub-2.06.tar.gz
- cd grub-2.06
- ./configure --target=x86_64 --with-platform=pc --disable-efiemu
- make
- grub-mkimage -v -O i386-pc -d ./grub-core -p\(hd0,msdos1\)/boot/grub -o core.img biosdisk part_msdos fat ntfs exfat part_gpt ext2
- cp core.img i386-pc
After these steps i have boot.img, core.img and .mod files inside the i386-pc folder.
2. Create fresh qcow2 image and create partition table using gdisk
- qemu-img create -f qcow2 cloud_grub2bios.img 200M
- sudo qemu-nbd -c /dev/nbd4 cloud_grub2bios.img
- sudo gdisk /dev/nbd4
- Then I set the disk to gpt using o command, and then create 2 partitions, first is 4MiB BIOS boot partition, and second is Linux filesystem for the remaining space in the image. The gdisk p command output after the said operations is presented below. I also run the
sudo mkfs.ext4 /dev/nbd4p2
after i create the partitions.
GPT fdisk (gdisk) version 1.0.8
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/nbd5: 409600 sectors, 200.0 MiB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 4AF5DA38-30C9-4094-949A-60663B89B865
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 409566
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 10239 4.0 MiB EF02 BIOS boot partition
2 10240 409566 195.0 MiB 8300 Linux filesystem
3. Install grub2 BIOS into the qcow2 image using grub-install present in the grub2.06 folder.
- sudo mount /dev/nbd4p2 /mnt
- sudo ./grub-install --target=i386-pc --boot-directory=/mnt/boot --directory=./grub-core/ /dev/nbd4
- Once the grub-install command is run, i get the following output
- Installing for i386-pc platform.
../grub/grub-2.06/grub-install: warning: cannot open directory `/usr/local/share/locale': No such file or directory.
Installation finished. No error reported.
4. Once the qcow2 image is ready,I convert it into raw image using qemu-img command then run the raw image using the following command
qemu-system-x86_64 -m 4096 -cpu max -drive file=cloud_grub2bios.raw,if=virtio,format=raw -display none -nographic
Here i am able to see the grub2 prompt correctly.
5. But i upload this qcow2 image to OCI or AWS, configure the image to run using BIOS firmware and check the serial console, then i get nothing. It is completely blank.
**Note**
1. I downloaded the Jammy Cloud Image from https://cloud-images.ubuntu.com/jammy/20240912/jammy-server-cloudimg-amd64.img and uploaded it back to OCI. Then in my uploaded image, i set the firmware to only BIOS by unticking the UEFI option. I had to manually upload and do instead of using the ubuntu image already published in OCI cause by default the ubuntu published in OCI supports both BIOS and UEFI and preferred is UEFI and when i launch an instance it always comes up with UEFI firmware. The jammy cloud image i uploaded in OCI which i am forcing to run with BIOS firmware, comes up successfully in OCI.
2. I tried using the boot.img, core.img and .mod files from the jammy cloud image which is running in OCI while creating my qcow2. Even with this, my image didnt get to grub or grub rescue prompt, and continued to give me blank screen.
3. I have tried extensive googling, and using AI tools like Chatgpt, Gemini etc but didnt find any working solution. The closest I found to generating a fresh cloud image is https://github.com/mvallim/cloud-image-ubuntu-from-scratch but this is using grub2 in UEFI mode and they arent building grub2 from scratch like i am doing.
Goutham P
(1 rep)
Dec 26, 2024, 08:37 AM
0
votes
0
answers
144
views
Is it at all possible to use less than 50 GB for an instance boot volume?
I want to create an Oracle Cloud Compute Instance that uses less than 50 GB of space. I only need about 10 GB. Most information I'm finding on the Internet states that the boot volume on OCI can not be less than 50 GB. However, https://discuss.hashicorp.com/t/oracle-cloud-block-storage-size-question...
I want to create an Oracle Cloud Compute Instance that uses less than 50 GB of space. I only need about 10 GB.
Most information I'm finding on the Internet states that the boot volume on OCI can not be less than 50 GB.
However, https://discuss.hashicorp.com/t/oracle-cloud-block-storage-size-question/9614/7
says:
> In OCI, the boot volume size is goverend by the source image you use. If you use an Oracle-provided image, they are all smaller than 50 GB for historical reasons (until a recent OCI update, boot columes could not exceed 50 GB in size.
I checked the Debian image I'm using and from what I understand, it says it needs at least 2 GB only:
# wget https://cdimage.debian.org/cdimage/cloud/bookworm/latest/debian-12-generic-arm64.qcow2
# qemu-img info debian-12-generic-arm64.qcow2
image: debian-12-generic-arm64.qcow2
file format: qcow2
virtual size: 2.0G (2147483648 bytes)
disk size: 409M
cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: false
refcount bits: 16
corrupt: false
Still, OCI creates 50 GB boot volumes. Is there any way to instruct the system to create a 10 GB boot volume?
(As a side note, my own instances are 47 GB if I don't change the devault volume size suggested when I create them. So it is possible to have a boot volume less than 50 GB?)
ᴍᴇʜᴏᴠ
(818 rep)
Oct 26, 2024, 06:51 AM
0
votes
0
answers
447
views
yum not updating packages, process times out
I have an Oracle Linux server that was originally installed at OEL7. Recently, it was upgraded to OEL 8. The repos are hosted on a Red Hat Satellite server. Other OEL hosts are not presenting this error - even ones have also been upgraded from OEL 7 to OEL 8. It's now presenting the following issue:...
I have an Oracle Linux server that was originally installed at OEL7. Recently, it was upgraded to OEL 8. The repos are hosted on a Red Hat Satellite server. Other OEL hosts are not presenting this error - even ones have also been upgraded from OEL 7 to OEL 8.
It's now presenting the following issue:
When I run
yum update --downloadonly
it gets a list of packages to update but then, after I enter "y" to get the downloads to start, it reports:
[MIRROR] kernel-4.18.0-553.8.1.el8_10.x86_64.rpm: Curl error (28): Timeout was reached for https://satellite_host/repos/Org_Default/Library/custom/Oracle_Linux_8/Oracle_Linux_8_x86_64_BaseOS_Latest/Packages/k/kernel-4.18.0-553.8.1.el8_10.x86_64.rpm [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]
And then it repeats three times and then report [FAILED]
What I've done so far:
* yum clean all
* Had netnwork assist in packet tracing. Result was that communications were happening and the channel was closed with a FIN ACK.
* Red Hat wasn't much help other than to say it looked like a network issue (They don't support the OEL clients)
* Reboots
* Play with configuration around the timout setting
* Increased log level and tried again. Logs only show initialization routines. Compared to a host that is working, which had a lot more information.
What I may try tomorrow is to mount the ISO for OEL 8 and try an update that way.
Question - Have any of you seen this type of behavior? It seems to be pointing at yum and associated bits as the culprit. Any suggestions for resolving this?
Appreciate any help. I'm running out of hair to pull...
Michael Luevane
(1 rep)
Jul 17, 2024, 05:06 AM
6
votes
1
answers
997
views
How to specify dynamic "Environment" variables in a systemd unit file?
This `$(ls -d...)` does not work in a systemd unit file: [Service] Type=forking Environment="ORACLE_HOME=$(ls -d /usr/lib/oracle/*/client64 | sort -rV | head -n1)" Environment="TNS_ADMIN=$(ls -d /usr/lib/oracle/*/client64/lib/network/admin | sort -rV | head -n1)" I want to avoid hard-coding the Orac...
This
$(ls -d...)
does not work in a systemd unit file:
[Service]
Type=forking
Environment="ORACLE_HOME=$(ls -d /usr/lib/oracle/*/client64 | sort -rV | head -n1)"
Environment="TNS_ADMIN=$(ls -d /usr/lib/oracle/*/client64/lib/network/admin | sort -rV | head -n1)"
I want to avoid hard-coding the Oracle client version (at the moment 19.19), to simplify updates. When I install a new Oracle client, I don't want to have to modify the systemd unit file.
How can I achieve that? I use RHEL9 if that matters.
Sybil
(1983 rep)
Mar 6, 2024, 08:28 AM
• Last activity: Mar 6, 2024, 06:57 PM
1
votes
0
answers
91
views
Error while trying to install Solaris in VirtualBox
Hello i tried to install Solaris on virtualbox but after i choose instalation method in grub it is stuck at this [![The error im speaking of][1]][1] [1]: https://i.sstatic.net/mOtBE.png I dont know how to fix it. Can someone help me? Thanks
Hello i tried to install Solaris on virtualbox but after i choose instalation method in grub it is stuck at this
I dont know how to fix it. Can someone help me?
Thanks

Crazegi Contact
(31 rep)
Jan 13, 2024, 08:41 PM
0
votes
1
answers
58
views
Rescue data on Oracle Cloud after "chmod 700 -r /"
I'll preceed by saying I'm a novice in unix, I use Oracle Always Free for small personal projects. Also this is me trying to save the data specifically on Oracle Cloud. I accidentally ran `sudo chmod 700 -R /` on an Oracle Always Free instance, when trying to run it on `./` Now I think I'm locked ou...
I'll preceed by saying I'm a novice in unix, I use Oracle Always Free for small personal projects. Also this is me trying to save the data specifically on Oracle Cloud.
I accidentally ran
sudo chmod 700 -R /
on an Oracle Always Free instance, when trying to run it on ./
Now I think I'm locked out of the instance, I no longer can connect to the instance through ssh. Is there anyway to secure specific directories before blasting the instance and starting over?
Victor Lundgren
(3 rep)
Nov 13, 2023, 07:01 PM
• Last activity: Nov 15, 2023, 06:46 AM
0
votes
1
answers
202
views
Cannot use SSH via internal IP address but can ping it easily
I have this setup in Oracle Cloud Infrastructure ... I have two networks .. **Network 1**: internal cidr: 192.168.1.0/24 public IP: 10.0.0.1 **Network 2**: internal cidr: 192.168.2.0/24 public IP: 10.0.0.2 connected via OCI tool -> "Local Peering Gateway" (without this, I couldn't even ping) ... bot...
I have this setup in Oracle Cloud Infrastructure ...
I have two networks ..
**Network 1**:
internal cidr: 192.168.1.0/24
public IP: 10.0.0.1
**Network 2**:
internal cidr: 192.168.2.0/24
public IP: 10.0.0.2
connected via OCI tool -> "Local Peering Gateway" (without this, I couldn't even ping) ...
both are running SSHD and are accessible/connectable via SSH by their PUBLIC IP addresses ..
This all works fine ...
However, when I want to connect from the Network 1 to Network two via internal IP address, I cannot ... even tho it pings fine
admin@network1:$ ping 192.168.2.10
PING 192.168.2.10 (192.168.2.10) 56(84) bytes of data.
64 bytes from 192.168.2.10: icmp_seq=1 ttl=54 time=154 ms
64 bytes from 192.168.2.10: icmp_seq=2 ttl=54 time=152 ms
from tho other network, I cannot ping tho
admin@network2:$ ping 192.168.1.10
PING 192.168.1.10 (192.168.1.10) 56(84) bytes of data.
--- 155.0.10.38 ping statistics ---
347 packets transmitted, 0 received, 100% packet loss, time 354309ms
The traceroute shows a lot of asterisks on the way .. and nmap from both machines does not show any open ports ... which is weird because publicly they are opened and I cannot via the public IP using ssh without a problem...
Any idea what could it be? I am kinda helpless .... especially because of OCI does not really provide support on this matter and many services do not provide logs :(
PS: Pls do not advice to change the provider/cloud .. I cannot - that's clients request ..
----------- EDIT:
wireshark ping log
admin@network1$ sudo tshark -i ens3 | grep 192.168.2.10
Running as user "root" and group "root". This could be dangerous.
Capturing on 'ens3'
281 273 13.491209915 192.168.1.10 → 192.168.2.10 ICMP 98 Echo (ping) request id=0x000f, seq=1/256, ttl=64
300 279 13.644608152 192.168.2.10 → 192.168.1.10 ICMP 98 Echo (ping) reply id=0x000f, seq=1/256, ttl=54 (request in 273)
313 295 14.492540119 192.168.1.10 → 192.168.2.10 ICMP 98 Echo (ping) request id=0x000f, seq=2/512, ttl=64
298 14.645324623 192.168.2.10 → 192.168.1.10 ICMP 98 Echo (ping) reply id=0x000f, seq=2/512, ttl=54 (request in 295)
wireshark for ssh connection:
643 628 37.001410195 192.168.1.10 → 192.168.2.10 TCP 74 [TCP Retransmission] 36306 → 22 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1327517210 TSecr=0 WS=128
855 854 53.226989006 192.168.1.10 → 192.168.2.10 TCP 74 45260 → 22 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1327533435 TSecr=0 WS=128
945 912 54.281406442 192.168.1.10 → 192.168.2.10 TCP 74 [TCP Retransmission] 45260 → 22 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1327534490 TSecr=0 WS=128
963 948 56.329410437 192.168.1.10 → 192.168.2.10 TCP 74 [TCP Retransmission] 45260 → 22 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1327536538 TSecr=0 WS=128
1004 991 60.361413567 192.168.1.10 → 192.168.2.10 TCP 74 [TCP Retransmission] 45260 → 22 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1327540570 TSecr=0 WS=128
Mr.P
(101 rep)
Aug 25, 2023, 01:02 PM
• Last activity: Aug 25, 2023, 01:27 PM
0
votes
1
answers
719
views
Container - Id is shown as 2000
I installed Oracle Container using the image: oracleinanutshell/oracle-xe-11g:latest - on a Linux machine. While doing, I copied one .sql file into /docker-entrypoint-initdb.d using "volumes" as shown below: volumes: - ./sql:/docker-entrypoint-initdb.d After the container was created, when logged in...
I installed Oracle Container using the image: oracleinanutshell/oracle-xe-11g:latest - on a Linux machine.
While doing, I copied one .sql file into /docker-entrypoint-initdb.d using "volumes" as shown below:
volumes:
- ./sql:/docker-entrypoint-initdb.d
After the container was created, when logged into container, the Owner for the folder "docker-entrypoint-initdb.d" is shown as "2000".
When verified for user with the ID, nothing is shown.
Any suggestion about who is the user with ID as 2000?
And what is the reason for this - Thanks for the help!

user3055964
(3 rep)
Jul 23, 2023, 04:44 AM
• Last activity: Jul 25, 2023, 04:58 AM
0
votes
1
answers
253
views
Boot broken on an Oracle VPS with msg "Gave up waiting for root file system device" & empty fstab
I'm using a free-tier Oracle VPS running Ubuntu and it seems like booting no longer works. I don't have physical access to the machine so I can't really try out solutions that ask for a reboot while holding down some key. ```shell Gave up waiting for root file system device. Common problems: - Boot...
I'm using a free-tier Oracle VPS running Ubuntu and it seems like booting no longer works. I don't have physical access to the machine so I can't really try out solutions that ask for a reboot while holding down some key.
Gave up waiting for root file system device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! UUID=8ea5e871-d077-4bfc-9a3a-35f020798df1 does not exist. Dropping to a shell!
BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.4) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs)
I ran some additional commands for more info on the situation:
(initramfs) cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.15.0-1036-oracle root=UUID=8ea5e871-d077-4bfc-9a3a-35f020798df1 ro console=tty1 console=ttyS0 nvme.shutdown_timeout=10 libiscsi.debug_libiscsi_eh=1 crash_kexec_post_notifiers
(initramfs) blkid
(initramfs) ls /dev
vga_arbiter tty21 tty60 ttyS31
rfkill tty22 tty61 ttyprintk
mem tty23 tty62 hpet
null tty24 tty63 hwrng
port tty25 snapshot loop-control
zero tty26 ecryptfs loop0
full tty27 fuse loop1
random tty28 ptmx loop2
urandom tty29 ttyS0 loop3
kmsg tty30 ttyS1 loop4
tty tty31 ttyS2 loop5
console tty32 ttyS3 loop6
tty0 tty33 ttyS4 loop7
vcs tty34 ttyS5 dma_heap
vcsu tty35 ttyS6 udmabuf
vcsa tty36 ttyS7 net
vcs1 tty37 ttyS8 ppp
vcsu1 tty38 ttyS9 vfio
vcsa1 tty39 ttyS10 bus
tty1 tty40 ttyS11 input
tty2 tty41 ttyS12 psaux
tty3 tty42 ttyS13 uinput
tty4 tty43 ttyS14 rtc0
tty5 tty44 ttyS15 mapper
tty6 tty45 ttyS16 fb0
tty7 tty46 ttyS17 mcelog
tty8 tty47 ttyS18 cpu_dma_latency
tty9 tty48 ttyS19 pts
tty10 tty49 ttyS20 core
tty11 tty50 ttyS21 fd
tty12 tty51 ttyS22 stdin
tty13 tty52 ttyS23 stdout
tty14 tty53 ttyS24 stderr
tty15 tty54 ttyS25 char
tty16 tty55 ttyS26 rtc
tty17 tty56 ttyS27 block
tty18 tty57 ttyS28
tty19 tty58 ttyS29
tty20 tty59 ttyS30
(initramfs) cat /etc/fstab
(initramfs)
Do I just need to fill out the fstab? Is it that my server can't see the boot volume at all? How can I get a successful boot?
Ishan Goel
(3 rep)
Jun 21, 2023, 11:11 PM
• Last activity: Jun 22, 2023, 01:39 AM
0
votes
1
answers
188
views
What determines UMASK for Oracle Job using UTL_FILE?
A PL/SQL job **foobar622** writes files to UNIX/LINUX server using the following Oracle file I/O commands: `UTL_FILE.FILE_OPEN` `UTL_FILE.PUT_LINE` `UTL_FILE.FILE_CLOSE` In the past the files had these permissions: -rw-r--r-- 1 User_foobar_101 UnixGroup_101 563343 Apr 25 00:22 foobar622_fz.sql -rw-r...
A PL/SQL job **foobar622** writes files to UNIX/LINUX server using the following Oracle file I/O commands:
UTL_FILE.FILE_OPEN
UTL_FILE.PUT_LINE
UTL_FILE.FILE_CLOSE
In the past the files had these permissions:
-rw-r--r-- 1 User_foobar_101 UnixGroup_101 563343 Apr 25 00:22 foobar622_fz.sql
-rw-r--r-- 1 User_foobar_101 UnixGroup_101 563343 Apr 25 00:22 foobar622_fa.sql
-rw-r--r-- 1 User_foobar_101 UnixGroup_101 563343 Apr 25 00:22 foobar622_fb.sql
-rw-r--r-- 1 User_foobar_101 UnixGroup_101 563343 Apr 25 00:22 foobar622_fc.sql
-rw-r--r-- 1 User_foobar_101 UnixGroup_101 563343 Apr 25 00:22 foobar622_fd.sql
Now **foobar622** writes with these permissions:
And I get a permission denied
error when I try to open file in my editor.
-rw-r----- 1 Unknown+User Unknown+Group 563343 May 22 00:22 foobar622_fa.sql
-rw-r----- 1 Unknown+User Unknown+Group 563347 May 25 00:22 foobar622_fb.sql
-rw-r----- 1 Unknown+User Unknown+Group 563333 May 25 00:22 foobar622_fc.sql
-rw-r----- 1 Unknown+User Unknown+Group 563923 May 25 00:22 foobar622_fd.sql
How do I go about restoring first default permissions? Is this an Oracle setting or a UMASK setting, or what?
zundarz
(393 rep)
May 26, 2023, 02:17 PM
• Last activity: May 26, 2023, 03:39 PM
0
votes
0
answers
1094
views
/etc/named.conf error with command systemctl status named.service
I am using Rocky Linux 8.7 on 64-bit I am configuring and trying to start a BIND domain as follows: [root@dbwr1 ~]# ls -l /var/named/localdomain.zone -rw-r-----. 1 root named 506 May 14 19:29 /var/named/localdomain.zone [root@dbwr1 ~]# cat /var/named/localdomain.zone $TTL 86400 @ IN SOA dbwr1.locald...
I am using Rocky Linux 8.7 on 64-bit
I am configuring and trying to start a BIND domain as follows:
[root@dbwr1 ~]# ls -l /var/named/localdomain.zone
-rw-r-----. 1 root named 506 May 14 19:29 /var/named/localdomain.zone
[root@dbwr1 ~]# cat /var/named/localdomain.zone
$TTL 86400
@ IN SOA dbwr1.localdomain.com. root.localdomain.com. (
2014051001 ; serial
3600 ; refresh
1800 ; retry
604800 ; expire
86400 ; minimum
)
;Name Server Information
@ IN NS dbwr1.localdomain.
;IP address of Name Server
localhost IN A 127.0.0.1
dbwr1 IN A 192.168.24.1
dbwr2 IN A 192.168.24.2
dbwr1-priv IN A 192.168.10.1
dbwr2-priv IN A 192.168.10.1
dbwr1-vip IN A 192.168.24.31
dbwr2-vip IN A 192.168.24.32
dbwr-scan IN A 192.168.24.41
dbwr-scan IN A 192.168.24.42
dbwr-scan IN A 192.168.24.43
-----------------------------------------------
[root@dbwr1 ~]# ls -l /var/named/24.168.192.in-addr.arpa
-rw-r-----. 1 root named 440 May 14 19:27 /var/named/24.168.192.in-addr.arpa
[root@dbwr1 ~]# cat /var/named/24.168.192.in-addr.arpa
$TTL 86400
@ IN SOA dbwr1.localdomain.com. root.localdomain.com. (
2
3H
1H
1W
1H )
;Name Server Information
@ IN NS dbwr1.localdomain.com.
@ IN PTR localdomain.com.
;Reverse lookup for Name Server
dbwr1 IN A 192.168.24.1
dbwr-scan IN A 192.168.24.41
dbwr-scan IN A 192.168.24.42
dbwr-scan IN A 192.168.24.43
1 IN PTR dbwr1.localdomain.com.
41 IN PTR dbwr-scan.localdomain.
42 IN PTR dbwr-scan.localdomain.
43 IN PTR dbwr-scan.localdomain.
-----------------------------------------------
[root@dbwr1 ~]# ls -l /etc/named.conf
-rwxrwxr-x. 1 root root 2018 May 14 19:31 /etc/named.conf
[root@dbwr1 ~]# cat /etc/named.conf
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// See the BIND Administrator’s Reference Manual (ARM) for details about the
// configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html
options {
listen-on port 53 { 127.0.0.1; 192.168.24.1; };
listen-on-v6 port 53 { ::1; };
directory “/var/named”;
dump-file “/var/named/data/cache_dump.db”;
statistics-file “/var/named/data/named_stats.txt”;
memstatistics-file “/var/named/data/named_mem_stats.txt”;
recursing-file “/var/named/data/named.recursing”;
secroots-file “/var/named/data/named.secroots”;
allow-query { localhost; 192.168.24.0/24; };
/*
– If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
– If you are building a RECURSIVE (caching) DNS server, you need to enable
recursion.
– If your recursive DNS server has a public IP address, you MUST enable access
control to limit queries to your legitimate users. Failing to do so will
cause your server to become part of large scale DNS amplification
attacks. Implementing BCP38 within your network would greatly
reduce such attack surface
*/
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
/* Path to ISC DLV key */
bindkeys-file “/etc/named.root.key”;
managed-keys-directory “/var/named/dynamic”;
pid-file “/run/named/named.pid”;
session-keyfile “/run/named/session.key”;
};
logging {
channel default_debug {
file “data/named.run”;
severity dynamic;
};
};
zone “.” IN {
type hint;
file “named.ca”;
};
zone “localdomain.com” IN {
type master;
file “localdomain.zone”;
allow-update { none; };
};
zone “24.168.192.in-addr.arpa.” IN {
type master;
file “24.168.192.in-addr.arpa”;
allow-update { none; };
};
include “/etc/named.rfc1912.zones”;
include “/etc/named.root.key”;
-----------------------------------------------
And I get this output when running
[root@dbwr1 ~]# systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2023-05-15 18:30:13 MDT; 14s ago
Process: 6749 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exi>
May 15 18:30:13 dbwr1.localdomain systemd: Starting Berkeley Internet Name Domain (DNS)...
May 15 18:30:13 dbwr1.localdomain bash: /etc/named.conf:14: expected quoted string near '“'
May 15 18:30:13 dbwr1.localdomain systemd: named.service: Control process exited, code=exited status=1
May 15 18:30:13 dbwr1.localdomain systemd: named.service: Failed with result 'exit-code'.
May 15 18:30:13 dbwr1.localdomain systemd: Failed to start Berkeley Internet Name Domain (DNS).
-----------------------------------------------
Can anyone help me to debug this? I appreciate any help
I am configuring and trying to start a BIND domain as follows:
[root@dbwr1 ~]# ls -l /var/named/localdomain.zone
-rw-r-----. 1 root named 506 May 14 19:29 /var/named/localdomain.zone
[root@dbwr1 ~]# cat /var/named/localdomain.zone
$TTL 86400
@ IN SOA dbwr1.localdomain.com. root.localdomain.com. (
2014051001 ; serial
3600 ; refresh
1800 ; retry
604800 ; expire
86400 ; minimum
)
;Name Server Information
@ IN NS dbwr1.localdomain.
;IP address of Name Server
localhost IN A 127.0.0.1
dbwr1 IN A 192.168.24.1
dbwr2 IN A 192.168.24.2
dbwr1-priv IN A 192.168.10.1
dbwr2-priv IN A 192.168.10.1
dbwr1-vip IN A 192.168.24.31
dbwr2-vip IN A 192.168.24.32
dbwr-scan IN A 192.168.24.41
dbwr-scan IN A 192.168.24.42
dbwr-scan IN A 192.168.24.43
-----------------------------------------------
[root@dbwr1 ~]# ls -l /var/named/24.168.192.in-addr.arpa
-rw-r-----. 1 root named 440 May 14 19:27 /var/named/24.168.192.in-addr.arpa
[root@dbwr1 ~]# cat /var/named/24.168.192.in-addr.arpa
$TTL 86400
@ IN SOA dbwr1.localdomain.com. root.localdomain.com. (
2
3H
1H
1W
1H )
;Name Server Information
@ IN NS dbwr1.localdomain.com.
@ IN PTR localdomain.com.
;Reverse lookup for Name Server
dbwr1 IN A 192.168.24.1
dbwr-scan IN A 192.168.24.41
dbwr-scan IN A 192.168.24.42
dbwr-scan IN A 192.168.24.43
1 IN PTR dbwr1.localdomain.com.
41 IN PTR dbwr-scan.localdomain.
42 IN PTR dbwr-scan.localdomain.
43 IN PTR dbwr-scan.localdomain.
-----------------------------------------------
[root@dbwr1 ~]# ls -l /etc/named.conf
-rwxrwxr-x. 1 root root 2018 May 14 19:31 /etc/named.conf
[root@dbwr1 ~]# cat /etc/named.conf
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// See the BIND Administrator’s Reference Manual (ARM) for details about the
// configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html
options {
listen-on port 53 { 127.0.0.1; 192.168.24.1; };
listen-on-v6 port 53 { ::1; };
directory “/var/named”;
dump-file “/var/named/data/cache_dump.db”;
statistics-file “/var/named/data/named_stats.txt”;
memstatistics-file “/var/named/data/named_mem_stats.txt”;
recursing-file “/var/named/data/named.recursing”;
secroots-file “/var/named/data/named.secroots”;
allow-query { localhost; 192.168.24.0/24; };
/*
– If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
– If you are building a RECURSIVE (caching) DNS server, you need to enable
recursion.
– If your recursive DNS server has a public IP address, you MUST enable access
control to limit queries to your legitimate users. Failing to do so will
cause your server to become part of large scale DNS amplification
attacks. Implementing BCP38 within your network would greatly
reduce such attack surface
*/
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
/* Path to ISC DLV key */
bindkeys-file “/etc/named.root.key”;
managed-keys-directory “/var/named/dynamic”;
pid-file “/run/named/named.pid”;
session-keyfile “/run/named/session.key”;
};
logging {
channel default_debug {
file “data/named.run”;
severity dynamic;
};
};
zone “.” IN {
type hint;
file “named.ca”;
};
zone “localdomain.com” IN {
type master;
file “localdomain.zone”;
allow-update { none; };
};
zone “24.168.192.in-addr.arpa.” IN {
type master;
file “24.168.192.in-addr.arpa”;
allow-update { none; };
};
include “/etc/named.rfc1912.zones”;
include “/etc/named.root.key”;
-----------------------------------------------
And I get this output when running
[root@dbwr1 ~]# systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2023-05-15 18:30:13 MDT; 14s ago
Process: 6749 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exi>
May 15 18:30:13 dbwr1.localdomain systemd: Starting Berkeley Internet Name Domain (DNS)...
May 15 18:30:13 dbwr1.localdomain bash: /etc/named.conf:14: expected quoted string near '“'
May 15 18:30:13 dbwr1.localdomain systemd: named.service: Control process exited, code=exited status=1
May 15 18:30:13 dbwr1.localdomain systemd: named.service: Failed with result 'exit-code'.
May 15 18:30:13 dbwr1.localdomain systemd: Failed to start Berkeley Internet Name Domain (DNS).
-----------------------------------------------
Can anyone help me to debug this? I appreciate any help
Rich007
(1 rep)
May 16, 2023, 01:21 AM
0
votes
0
answers
370
views
Oracle Linux 8.x - Performance Test (Stress / Load / IO / Network Usage / Memory Usage)
I want to do performance test on Oracle Linux 8 KVM guest server (It will be used as Application server (WLS 14c) and/or Oracle DB server). What are the best tools I can provide this with? I saw an RPM called stress. Does it help in completing necessary tests for network, CPU, memory and I/O? Or how...
I want to do performance test on Oracle Linux 8 KVM guest server (It will be used as Application server (WLS 14c) and/or Oracle DB server).
What are the best tools I can provide this with? I saw an RPM called stress. Does it help in completing necessary tests for network, CPU, memory and I/O? Or how can I do them all individually in the most consistent way?
What are the most successful RPMs or system commands? (dd for example I/O)
Note: the servers are not used instantly, I want to create a virtual (contrived) load.
Thanks in advance and best regards.
rndm_acct1
(11 rep)
Apr 9, 2023, 03:38 AM
• Last activity: Apr 9, 2023, 03:46 AM
1
votes
1
answers
155
views
Help with Folder permission problem with Oracle DB 7 and Solaris 7
I was wondering if anyone else has come across this issue with Solaris 7 and Oracle Database 7, I set the permissions of the folder as such chown -R oracle:dba /opt/oracle but when trying to install the database I keep getting permission denied even no I set it and I checked and it all had read/writ...
I was wondering if anyone else has come across this issue with Solaris 7 and Oracle Database 7, I set the permissions of the folder as such chown -R oracle:dba /opt/oracle
but when trying to install the database I keep getting permission denied even no I set it and I checked and it all had read/write/execute but soon as I goto installer and get to ocommon section it resets the permissions back so that the gorup dba no longer has write permission, anyone got any ideas ?
Thanks, yours Simon

Wpgn
(13 rep)
Feb 16, 2023, 05:43 PM
• Last activity: Feb 16, 2023, 07:15 PM
0
votes
2
answers
11031
views
How to write a shell script to run a sql query and send the query results in table format in email?
I need to run a SQL query using SHELL script in PUTTY and send the results in email body in table format with headers along with a message line on top. I have written this so far but I am not able to get results in table format. ``` #! /bin/ksh sqlplus -s user/pass @sid > /dev/null << EOF whenever s...
I need to run a SQL query using SHELL script in PUTTY and send the results in email body in table format with headers along with a message line on top.
I have written this so far but I am not able to get results in table format.
There are no errors. But no headers in CSVFILE even after putting SET HEAD ON. I have also tried the 'mail -a (content type)' solution but '-a' gives error.
#! /bin/ksh
sqlplus -s user/pass @sid > /dev/null << EOF
whenever sqlerror exit 4;
set newpage 0
set space 0
set feedback off
set head off
set echo off
set pagesize 0
set serverout on
set trimspool on
set linesize 3000
spool $CSVFILE
select * from table;
spool off;
exit 0;
EOF
mailx -s "Subject Line" myname@email.com < $CSVFILE
exit 0
The SQL is running fine and data is being saved in CSVFILE. The result I want should be in table format sent to the email address in email body and also involve a message line above table, something like so:

UserGoogle
(1 rep)
Dec 2, 2022, 11:52 PM
• Last activity: Dec 4, 2022, 05:07 AM
2
votes
1
answers
5244
views
Always Free: NO NETWORK after Upgrade from Ubuntu 20.04 LTS ARM to Ubuntu 22.04 LTS ARM
**Scenario is the following:** I upgraded from Ubuntu 20.04 LTS to Ubuntu 22.04 LTS. However, after upgrading I lost total connection to the host and I'm only able to access it through Cloud Shell Console. **Observed behavior:** - SSH is no accesible through Public IP. Only Cloud Shell through Seria...
**Scenario is the following:**
I upgraded from Ubuntu 20.04 LTS to Ubuntu 22.04 LTS. However, after upgrading I lost total connection to the host and I'm only able to access it through Cloud Shell Console.
**Observed behavior:**
- SSH is no accesible through Public IP. Only Cloud Shell through Serial Console. Tested if key exchange RSA was the issue since now its recommended ECDSA, but this doesn't seem to be the issue.
- Unable to reach any source while doing
I'm running out of ideas and any help is GREATLY appreciated. I have other instances running on the same tenant sharing same VCN and have no problems whatsoever....so I'm inclined to think this is a OS issue.
sudo apt update
- nslookup google.es
won't give any output (unreachable)
- ip addr
IP Interfaces are up:
1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens3: mtu 9000 qdisc mq state UP group default qlen 1000
link/ether 02:00:17:00:95:86 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.62/24 metric 100 brd 10.0.0.255 scope global dynamic ens3
valid_lft 62767sec preferred_lft 62767sec
inet6 fe80::17ff:fe00:9586/64 scope link
valid_lft forever preferred_lft forever
- ip route
output:
default via 10.0.0.1 dev ens3 proto dhcp src 10.0.0.62 metric 100
10.0.0.0/24 dev ens3 proto kernel scope link src 10.0.0.62 metric 100
10.0.0.1 dev ens3 proto dhcp scope link src 10.0.0.62 metric 100
169.254.169.254 via 10.0.0.1 dev ens3 proto dhcp src 10.0.0.62 metric 100
- iptables -L
output:
Chain INPUT (policy DROP)
target prot opt source destination
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
- The output for iptables-save -c
out is as follows:
:INPUT DROP [71948:4580785]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT[59782:3909997] COMMIT
# Completed on Tue Aug 16 08:10:43 2022
- Netplan has only 1 configuration filed called 50-cloud-init.yaml
which contains the following:
ethernets:
ens3:
dhcp4: true
match:
macaddress: 02:00:17:00:95:86
set-name: ens3
version: 2
- /etc/resolv.conf
output:
nameserver 127.0.0.53
options edns0 trust-ad
search vcn09040100.oraclevcn.com
- Im not sure if this an Oracle Cloud configuration issue, although I havent touched anything and it was working before and hosting a website. VCN vcn-20210904-0043
is assigned with a subnet of 10.0.0.0/24 and the following Ingress Security List

kiraitachi
(23 rep)
Aug 15, 2022, 05:19 PM
• Last activity: Aug 16, 2022, 11:16 AM
2
votes
1
answers
989
views
How to start a bash script on Oracle Linux
What is the right way to start a bash script on **Oracle Linux**? on a normal Linux server I use ./script.sh But here is what I got when I do the same on Oracle Linux --- [user@server ~]$ ./script.sh bash: ./script.sh: Permission denied --- The permissions are correct --- [user@server ~]$ ll script....
What is the right way to start a bash script on **Oracle Linux**?
on a normal Linux server I use ./script.sh
But here is what I got when I do the same on Oracle Linux
---
[user@server ~]$ ./script.sh
bash: ./script.sh: Permission denied
---
The permissions are correct
---
[user@server ~]$ ll script.sh
-rwxr-x--x 1 user oraexpl 317 Jul 4 15:42 script.sh
---
It works ok if I omit the "/" character
---
[user@server ~]$ . script.sh
It works
---
It works ok if I execute it with bash
---
[user@server ~]$ bash script.sh
It works
---
In my script, I do have the Shebang /bin/bash
**Is this behavior normal?**
Thanks for your feedback
Angel115
(223 rep)
Jul 4, 2022, 02:16 PM
• Last activity: Jul 4, 2022, 07:00 PM
0
votes
0
answers
260
views
Exception in thread "main" java.lang.UnsatisfiedLinkError
**Context:** Trying to install Oracle WebLogic Infrastructure 12.2.1.4.0 on Oracle Linux 8.5. JDK 7 & JDK 8 are installed. **Issue:** [![Error in the console when trying to run the .jar][1]][1] [1]: https://i.sstatic.net/bFuFD.png
**Context:**
Trying to install Oracle WebLogic Infrastructure 12.2.1.4.0 on Oracle Linux 8.5. JDK 7 & JDK 8 are installed.
**Issue:**

Axel
(1 rep)
Apr 27, 2022, 01:14 PM
Showing page 1 of 20 total questions