error in installing PostgreSQL? - windows

I have a error message during install PostgreSQL : "Failed to load sql modules into the database cluster" but no error message "Error running post install step. Installation may not complete correctly. Error reading C:/Program Files/PostgreSQL/9.5/postgresql.conf".
I have tried to do the following steps but still appear an above error:
Uninstall the PostgreSQL and delete the data directory in the installation folder.
Create a new Windows user named postgres and add it to the Administrators group.
Restart your computer.
Open cmd (command prompt) as the postgres command using the following command: runas /user:postgres cmd.exe
A new window appears, you need to run the installer file from this window.
Help me , thanks !

Related

nvm use giving Execution of the Windows Script Host Failed error

I have got two node version installed using nvm.
When I am trying to switch to other I am getting below error
Looking at some solution, I added "Enabled" to the registry location
HKEY_CURRENT_USER\Software\Microsoft\Windows Script Host\Settings\Enabled
but it did not fix it.
Also I tried running this in Administration access cmd window.

How can I resolve a package installation error in Julia on Windows?

I have just started using Julia on a Windows 10 machine, and I have been trying to install some very basic packages. When I use the Pkg.add() command, however, the command window returns the following error:
ERROR: SystemError: opening file C:\Users\username\.julia\environments\v1.0\Project.toml: Permission denied
The error message pops up even when using the Administrator mode. Any advice or tips would be appreciated! Thanks!
Delete .julia folder or set a new location for the JULIA_DEPOT_PATH.
Once done use a non-administrator account (the one you normally work with) to reinstall packages.

Could not get PostgreSQL 11.2 to start. Tried deleting everything, and now PostgreSQL 11.2 Refuses to install with an error

I tried installing PostgreSQL 11.2 on Windows through this link: https://www.openscg.com/bigsql/postgresql/installers.jsp/
but the program would not start no matter what I tried. A quick black window would appear for a tenth of a second, disappear, and then absolutely nothing would happen.
Thus, I uninstalled it and deleted the directory and tried to install PostgreSQL 11.2 on Windows through this link:
https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
It installed properly, but when I opened my file explorer to C: where the directory should have been installed I was given an error "PostgreSQL could not be found". I thought my previous installation was causing issues, so I did a 'Search Local C:' in file explorer and found over 9,000 files involving PostgreSQL. I 'Ctrl+A' deleted all of them and skipped the exceptions saying 'You need permission to delete this file', 'This file is in use', 'Unable to locate file', etc.
I then tried to reinstall PostgreSQL 11.2 via this link (same as second link):
https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
However, after saying yes to 'permission to make changes on this computer', I immediately get the error box "There has been an error. Error reading file C;/Program Files/PostgreSQL/11/data/postgresql.conf", and I can no longer install PostgreSQL.
How do I fix this?
Thank you to Mike from the comments. Here is what I did:
1) I found all the old PostgreSQL stuff, including the program files directory tree, and deleted all of it using the uninstall function when I could.
2) Next, I reset my postgresql system environment variables and restarted my computer.
3) I deleted all top level directories for PostgreSQL and downloaded the PostgreSQL distributed by postgresql.org. I was finally able to install PostgreSQL again.
4) PGAdmin4 works, and if I use the command line type 'cmd.exe /c chcp 1252' and then type something like 'psql -U postgres postgres" and enter your password.

Running Oracle NETCA/NETGMGR/DBCA on Docker for Windows

I am trying to run dbca/netca commands on docker.
I already have Oracle 12c installed on docker, but I keep running into a issue.
When I run the dbca command, I get the error:
DBCA cannot be run as root.
When I run the netca command, I get the error:
Oracle Net Configuration Assistant cannot be run as root.
When I run the netmgr command, I get the error:
Could not find the main class: oracle.net.mgr.container.NetApplication. Program will exit.
-netca/netmgr/dbca are all GUI tools managed by Oracle.
When I sudo su - oracle user, and I run the above commands, the docker/ system no longer even recognizes those commands.
See below:
oracle#6cc1eee63141:~$ dbca
-su: dbca: command not found
oracle#6cc1eee63141:~$ netca
-su: netca: command not found
oracle#6cc1eee63141:~$ netmgr
-su: netmgr: command not found
oracle#6cc1eee63141:~$ NETMGR
I have already exported my display to my computer IP address.
What am I doing wrong and how can I fix it?

Unable to execute cr9idata.pl

Oracle Database Home patches installed successfully
Executing cr9idata.pl
Executing: perl /u01/db/VIS/12.1.0/nls/data/old/cr9idata.pl
Unable to execute cr9idata.pl
RW-50010: Error: - script has returned an error: 2
RW-50004: Error code received when running external process. Check log file for details.
Running Database Install Driver for VIS instance
I executed command in terminal with root account:
[root#ntcs ~]# perl /u01/db/VIS/12.1.0/nls/data/old/cr9idata.pl
Directory /u01/db/VIS/12.1.0/nls/data/9idata already exist. Overwriting...
Copying files to /u01/db/VIS/12.1.0/nls/data/9idata...
Copy finished.
Please reset environment variable ORA_NLS10 to /u01/db/VIS/12.1.0/nls/data/9idata!
Thanks advanced for helping !
After serveral day debugging. I found the reason is my oracle user error.
I installed perl into /home/oracle/perl5...then make oracle user error.
I cannot su oracle from root user.
when i install perl for oracle user then .bashrc of oracle user auto add two routine line:
eval perl -I ~/perl5/lib/perl5 -Mlocal::lib
export MANPATH=$HOME/perl5/man:$MANPATH
I just remove above two lines above then i can su oracle from root user.
Conclusion:
When you install Oracle EBS 12.2.0 on CentOS 7.3. rapidwiz tool will su to oracle user automatically to install DB. But our oracle error cannot be su to so make error. But it show the symtom very strange so it is difficult to debug.
Now i install Oracle EBS 12.2 sucessfully !
I am very happy to share this to anyone meet this error.
I am installing EBS 12 at the moment.
Looking a bit deeper into the logs for the cr9idata.pl script, I saw that this error is caused by a missing Perl module. The Perl version that is installed with Oracle includes this library, so setting the path manually works in that case.
If you (like me) have installed Perl from YUM, install this module: perl-File-CheckTree

Resources