Unable to start oracle install - oracle

I have uninstalled 11g oracle of unix system, then trying to reinstall it. Following is error I am Trying to solve
http://4.bp.blogspot.com/-SgnJajm8nss/U1zsrwnsCyI/AAAAAAAAD_I/CIHz9aIYhY0/s1600/1.png
For that i did following steps
cat /etc/oraInst. loc
2 CD oraInventory path>/oraInventory/ContextXML
VI inventory.xml
Remove the line that contains the new ORACLE Home. I think I did something wrong here
Exit and re-run the installer.
Error:INS-10012 setup driver intialization failed
java.lang.nullpointer exception

Related

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?

Error while loading shared libraries while running sqlplus

I am trying to install and run sqlplus in my ubuntu machine. I get the above error
error while loading shared libraries: libclntsh.so.12.1: cannot open shared object file: No such file or directory
when I run
sudo sqlplus64 <user>/<pass>#//<ip>:<port>/db
despite following the steps mentioned in the oracle install client document https://help.ubuntu.com/community/Oracle%20Instant%20Client
I have correctly set ORACLE_HOME and LD_LIBRARY_PATH
My strace sqlplus /nolog output shows below error
write(2, "SP2-0667: Message file sp1<lang>"..., 47SP2-0667: Message file sp1<lang>.msb not found
) = 47
write(2, "SP2-0750: You may need to set OR"..., 76SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
) = 76
I can also attach complete strace if needed. Can someone help me fix the issue ?
Here is a shortened version of the process I use when installing the Oracle instant client on my machines:
1 - Get alien sudo apt-get install alien
2 - Download the Oracle Instant Client (Download basic, devel, and sqlplus)
3 - Use Alien to install the .rpm packages
sudo alien -i oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
sudo alien -i oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
sudo alien -i oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm
4 - Navigate to the installation directory for sqlplus $ cd /usr/lib/oracle/12.X/client64/bin/
5 - Run sqlplus $ ./sqlplus and see if you get an error regarding libaio1
6 - You may need to install libaio1 ($ sudo apt-get install libaio1)
7 - If you are still getting module errors, try running ldd $ ldd sqlplus. Install what you need.
8 - Set the following environment variables
export ORACLE_HOME=/usr/lib/oracle/12.1/client64/
export PATH=$PATH:/usr/lib/oracle/12.1/client64/bin/
export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib/
You can set this for all users in /etc/bash.bashrc. A discussion of setting environment variables for one or many users for different types of shells is outside the realm of this question.
Good luck!
It looks variables are not set properly or there is no oracle client in folder where variables are set or it has no rights to execute.
Please do in terminal you're going to run sqlplus:
echo $ORACLE_HOME
echo $LD_LIBRARY_PATH
If they don't show correct values it means you haven't set variables properly (either export them before runing sqlplus or set them for each terminal session). If they show correct value please go to folder check if there are Oracle client files. If yes please check execution rights for files there (ls -la). If files have no grants to be open and execute pleaswe add it (chmod). If all three are ok client should work.
Alternatively Downloaded and installed sql developer from oracle from the link http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html

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

error in installing PostgreSQL?

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 !

Resources