sqlplus not responding after enter password - oracle12c

SQLPLUS is not responding after entering the user name and password.
[root#ns3369978 ~]# su oracle
bash-4.1$ sqlplus
SQL*Plus: Release 12.2.0.1.0 Production on Fri Dec 27 07:52:53 2019
Copyright (c) 1982, 2016, Oracle. All rights reserved.
Enter user-name: xxxx
Enter password:
After entering the password, it is neither connecting nor showing any error. Even I am not able to come out of this. OS is CentOS release 6.9 (Final) on my server. How to find and resolve the issue?

I have searched and found one solution. By using the below command I am able to connect oracle.
sqlplus -prelim "system/123lkls as sysdba"

Related

How to install tun on Ubuntu 16.04

I try to install tun on Ubuntu 16.04, it generates the tun.ko, but it still doesn't work.
1
Uname -a Linux host-name 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon
Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
2
apt-get install linux-source-4.10.0
3
cd /usr/src/linux-source-4.10.0 menuconfig->Device Drivers->Network
Device Support->Universal TUN/TAP device driver support
Then save it as tun.config.
4
make modules, it generate tun.ko under /drivers/net/ without err, then
copy it to lib/modules/4.10.0-42-generic/kernel/net/tun.ko.
And it still doesn't work. The command "modinfo tun" doesn't output anything.
Any advice about the install tun on Ubuntu 16.04?
You're probably on a VPS so you'll need to change this on your host settings.
Login to your VPS control panel using your username and password.
Click the ‘Manage’ button to the right of the VPS in which you want
to enable tun/tap
Under Controls -> Settings tab, click on ‘Enable TUN/TAP’
A dialog box appears asking for confirmation, hit yes
Source: https://www.copahost.com/blog/openvpn-in-ubuntu-tun-tap/
I had this problem myself and just fixed it by doing exactly this.

Azure Ubuntu 15.04 virtual machine can't change date/time

I'm ruining an Ubuntu 15.04 OS on Azure Virtual Machine. I can't manually change the date of the system by using the "date" command. Here's a sample run:
~# date
Tue Jul 7 00:24:58 HKT 2015
~# date -s "2014-07-04 10:53:59"
Fri Jul 4 10:53:59 HKT 2014
~# date
Tue Jul 7 00:25:01 HKT 2015
I have uninstalled ntpdate but it doesn't make a difference. Has anyone experienced this before?
Thanks!
Generally speaking you can't change the time of a VM which is hosted by an external provider, because the cost of providing an emulated clock is too high and thus it tends to pick up the clock time of the host machine instead.

could not connect to server with postgresql is the server running locally and PGSQL.5432

I´ve read many similar forum discussions about this but I have not been able to solve the problem. I installed postgresql 9.1 on ubuntu 12.04 (not really a server machine, but virtualized in VirtualBox). Yesterday I was able to restart (and start) postgresql server but not today after many trials.
In postgresql.conf i have listen_addresses='*' and port=5432 and unix_socket_directory = 'var/run/postgresql'
I´ve looked into that directory but it seems to be empty.
I´ve tried: locate PGSQL.5432 but there´s no results
My server ip is set like 192.168.1.211 and ping -c 4 192.168.1.211 seems to be ok.
Tried many solutions (like chmod 777 /var/run/postgresql) and nothing seems to fix it.
It´s maybe and stupid issue and I´m not being able to solve it as i don´t have a high level of knowledge on those systems.
Full error messages: after sudo service postgresql restart -- > The postgresql server failed to start. Please check the log output. After sudo psql -- > could not connect to server: the file or directory does´nt exist. Is the server running locally and accepting connections on Unix domain socke "var/run/postgresql/.s.PGSQL.5432?
Postgresql version: 9.1
Just after starting ubuntu, this is the log that i get with tail /var/log/postgresql/postgresql-9.1-main.log:
CET LOG: could not open temporary statistics file "pg_stat_tmp/pgstat.tmp": permission denied.
CET LOG: received smart shutdown request
CET LOG: autovacuum launcher shutting down.
CET LOG: shutting down
CET PANIC: could not open control file "global/pg_control": permission denied
CET LOG: background writer process (PID 7151) was terminated by signal 6: Aborted
CET LOG: terminating any other active server processes
CET LOG: could not open temporary statistics file "pg_stat_tmp/pgstat.tmp": permission denied.
CET LOG: abnormal database systema shutdown.
Any idea about what to try?
Here the solution I´ve found, hope could help other users with similar issue:
I´ve just made:
sudo chown -R postgres:postgres /var/lib/postgresql
And now postgresql is starting fine. So wrong permissions, maybe modified by myself, I´m not sure.
Kind regards.
I faced the same issue, this was solved after making the changes in the postgresql.conf i.e.
listen_addresses='*'
And restarted the device it was solved,for more detail use the below given link, Restart the device after making changes in the config file it solves most of the firewall issues.
Help
This error generally means that the server is not running. Based on dpkg -l output and the thread of comments, it was due to the postgresql-9.5 main package being somehow uninstalled. Since the uninstall hasn't been called with the --purge option to dpkg, the data and configuration files are still there, so apt-get install postgresql-9.5 can fix the problem.

error occured installing mongo db

D:\mongodb-win32-x86_64-2008plus-2.4.9\bin>m
ongod.exe --dbpath=D:\mongodb --logpath=D:\mongodb\log.txt --install
Mon Feb 24 13:08:02.680 Trying to install Windows service 'MongoDB'
Mon Feb 24 13:08:02.681 Error connecting to the Service Control Manager: Access
is denied. (5)
The access denied does indicate that you lack the permissions to install a windows service. Try to run as administrator (right mouse-> run as administrator).
If you are running from a shell, start an admin shell by clicking right on the shell in the startmenu and then start as administrator

Got "Access is denied" when I tried to install 64-bit mongodb in Windows server 2008

All I did is to run below script:
D:\Tools\MongoDb\bin\mongod.exe --dbpath D:\MongoDb\data\
Then I got exception:
Error connecting to the service Control Manager: Access is denied. (5)
I was using administrator account to operate this, I already created folders related to the script.
And I didn't experience issue like this when I installed 32-bit mongodb in 32-bit Windows Server 2003.
I appreciate any help about this!
You need to install it from the command prompt that you have opened with the Run as Administrator option
From Admin command prompt execute:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>cd C:\Program Files\MongoDB\Server\3.6\bin
C:\Program Files\MongoDB\Server\3.6\bin>mongod.exe -config "c:\data\mongod.cfg" -install
2018-03-20T08:55:00.541+0530 I CONTROL [main] log file "c:\data\log\mongod.log"
exists; moved to "c:\data\log\mongod.log.2018-03-20T03-25-00".
C:\Program Files\MongoDB\Server\3.6\bin>net start MongoDB
The MongoDB service is starting..
The MongoDB service was started successfully.