Linux – Database creation on Linux with dbca: “command not found”

linuxoracleoracle-10g

I have installed an Oracle on my machine. When I open a session with VNCServer and type dbca, either as root or as oracle, I get these errors:

  1. -bash : -dbca : Command Not found
  2. Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified

What do I need to do to fix this?

Best Answer

Regarding your first error ('dbca: command not found'):

  • ensure ORACLE_HOME is set correctly
  • ensure $ORACLE_HOME/bin is in your path
  • run the command as oracle user

If the error persists, check the contents and permissions of $ORACLE_HOME/bin.