Running Oracle NETCA/NETGMGR/DBCA on Docker for Windows - 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?

Related

Docker fails to start on Windows 11 with WSL

I searched on SO for similar questions already, and none of the answers helped.
I installed and uninstalled docker many times and restarted every time. I set the env variable, and I can run docker, and see that it's installed in terminal, but the GUI won't startup.
This is the error I get when trying to run a hello world command.
docker: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create": open //./pipe/docker_engine: The system cannot find the file specified.
I am running it on a Windows 11 Home version.
Any help is appreciated.
Seems like and issue with the new Docker release. After I downgraded I was able to get it too work. Docker version 4.4.4.
Make sure you allow virtualization too, by running the following command in powershell as Admin: bcdedit /set hypervisorlaunchtype auto

Command not found: psql

After following the installation guide here: https://postgresapp.com/, I ran the command in step 3 to configure my path and was presented with this:
/Applications/Postgres.app/Contents/Versions/latest/bin
However, after then typing which psql I get psql not found, and when trying to start my local database get command not found: psql.
I am able to start up the PostgreSQL app and initialize, but can't seem to run any commands in the terminal associated with psql.

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 !

Unable to start oracle install

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

Resources