Run the DBCA command on a set of DB servers and report the following error:
[Oracle @ game_db ~] $ Dbca
Exception in thread "main"
[Oracle @ game_db ~] $
[Oracle @ game_db ~] $ ExportDISPLAY = 1921.68.3.189: 0.0
[Oracle @ game_db ~] $ Dbca
Exception in thread "main"
I haven't encountered this problem for a few years. I thought it was a problem with the DISPLAY variable at first and it won't work after the settings. I checked a DBCA log:
[Oracle @ game_db scripts] $Cd $ ORACLE_HOME/export toollogs/dbca
[Oracle @ game_db dbca] $ ls
Trace. log
[Oracle @ game_db dbca] $Tail-50 trace. log
Java. lang. UnsatisfiedLinkError:/home/oracle_app_10204/jdk/jre/lib/i386/libawt. so: libXp. so.6: cannot openshared object file: No such file or directory
At java. lang. ClassLoader $ NativeLibrary. load (Native Method)
At java. lang. ClassLoader. loadLibrary0 (ClassLoader. java: 1586)
At java. lang. ClassLoader. loadLibrary (ClassLoader. java: 1503)
At java. lang. Runtime. loadLibrary0 (Runtime. java: 788)
At java. lang. System. loadLibrary (System. java: 834)
At sun. security. action. LoadLibraryAction. run (LoadLibraryAction. java: 50)
At java. security. AccessController. doPrivileged (Native Method)
At sun. awt. NativeLibLoader. loadLibraries (NativeLibLoader. java: 38)
Atsun. awt. DebugHelper. <clinit> (DebugHelper. java: 29)
At java. awt. Component. <clinit> (Component. java: 506)
Atoracle. sysman. assistants. util. wizard. WizardObject. <init> (WizardObject. java: 64)
Atoracle. sysman. assistants. dbca. ui. DBCAWizard. <init> (DBCAWizard. java: 425)
At oracle. sysman. assistants. dbca. ui. UIHost. <init> (UIHost. java: 214)
Atoracle. sysman. assistants. dbca. ui. InteractiveHost. <init> (InteractiveHost. java: 54)
Atoracle. sysman. assistants. dbca. Dbca. getHost (Dbca. java: 160)
At oracle.sysman.assistants.dbca.Dbca.exe cute (Dbca. java: 94)
At oracle. sysman. assistants. dbca. Dbca. main (Dbca. java: 180)
The reason is obvious. There are fewer packages:
LibXp. so.6: cannot open shared object file: No such file or directory
Verify the package:
[Oracle @ game_db dbca] $ rpm-qa | grep libXp
LibXpm-devel-3.5.5-3
LibXpm-3.5.5-3
Add the libXp package:
[Root @ game_db Server] # ll
-RwxrwSrwx 1 root 22996 2007-07-26libXp-1.0.0-8.1.el5.i386.rpm
-RwxrwSrwx 1 root 15262 2007-07-26libXp-devel-1.0.0-8.1.el5.i386.rpm
[Root @ game_db Server] # rpm-ivh libXp *. rpm
Warning: libXp-1.0.0-8.1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ######################################## ### [100%]
1: libXp ####################################### #### [50%]
2: libXp-devel ##################################### ###### [100%]
[Root @ game_db Server] # rpm-qa | grep libXp
LibXpm-devel-3.5.5-3
LibXp-1.0.0-8.1.el5
LibXpm-3.5.5-3
LibXp-devel-1.0.0-8.1.el5
DBCA success:
[Root @ game_db ~] # Xhost +
Access control disabled, clients canconnect from any host
[Root @ game_db ~] # Su-oracle
[Oracle @ game_db ~] $ ExportDISPLAY = 192.168.3.189: 0.0
[Oracle @ game_db ~] $ Dbca
This system was installed by a previous colleague. The entire installation directory does not comply with the OFA architecture, so the related directory structure looks awkward.