Run silent netca

I get this message:
-bash-3.00$ netca -silent
****DISPLAY environment variable not set!
    Oracle Net Configuration Assistant is a GUI tool
    which requires that DISPLAY specify a location
    where GUI tools can display.
    Set and export DISPLAY, then re-run.
-bash-3.00$
when i run netca -silent -responseFile netca.rsp
If I set DISPLAY=localhost:0.0 java exceptions happen.
xoxomosAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
actonwangConnect With a Mentor Commented:
i c .. so silent mode works but sill needs X. it is sort of strange Oracle does that under silent mode, isn't it :)
0
 
xoxomosAuthor Commented:
-bash-3.00$ netca -silent
Exception in thread "main" java.lang.UnsatisfiedLinkError: /ucsuh/oracle/10.2.0/db_1/jdk/jre/lib/sparc/motif21/libmawt.so: ld.so.1: java: fatal: libXm.so.4: open failed: 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:1482)
        at java.lang.Runtime.load0(Runtime.java:737)
        at java.lang.System.load(System.java:811)
        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)
        at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
        at java.awt.Component.<clinit>(Component.java:506)
0
 
xoxomosAuthor Commented:
This is run on Solaris 10.  The Oracle people gave me a list of packages to install which all had something to do with X, but i thought the -silent was supposed to run with no X??
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
actonwangCommented:
Are you running jdk1.4? IT is a known problem, the workaround is:


Make a symblic link
ln -s motif21 ..../j2se/jre/lib/sparc/motif12
and from a Solaris 8 server copy the library
/usr/dt/lib/libXm.so.4

Refer to this link:
http://forum.java.sun.com/thread.jspa?forumID=32&threadID=326048
0
 
xoxomosAuthor Commented:
Forgot to mention this is on Solaris 10
0
 
xoxomosAuthor Commented:
But it is 1.4 version running.
0
 
xoxomosAuthor Commented:
I don't have a SOlaris 8. What about a Solaris 9?
0
 
actonwangCommented:
under jre directory, could you find  /lib/sparc/motif12 direcotry?
make a symbol link to it and also copy libXm.so.4 to this directory.
0
 
xoxomosAuthor Commented:
THe Solaris 10 was set up without any of the X libraries.  The intent is to eliminate X on the servers here.  My understanding of the -silent parameter on Oracles config tools was the -silent eliminates the need for those X libs.
0
 
actonwangCommented:
try:

netca /silent /responsefile netca.rsp
0
 
actonwangCommented:
you may need to try this:

netca /silent /responsefile /local_dir/netca.rsp


here local_dir is the full path of the directory where you copied the netca.rsp response file template


-silent seems an option for dbca not netca ...
0
 
xoxomosAuthor Commented:
Same results with / instead of -.

A.5 Running NetCA Using a Response File
You can run NetCA in silent mode to configure and start an Oracle Net listener on the system, configure naming methods, and configure Oracle Net service names. To run NetCA in silent mode, you must copy and edit a response file template. Oracle provides a response file template named netca.resp in the response directory in the db/response directory on the DVD.

0
 
xoxomosAuthor Commented:
Enter a command similar to the following to run NetCA in silent mode:

$ $ORACLE_HOME/bin/netca /silent /responsefile /local_dir/netca.rsp

-bash-3.00$ /u01/app/oracle/product/10.2.0/db_1/bin/netca /silent /responsefile /udata/10g_R_2/response/netca.rsp
Exception in thread "main" java.lang.UnsatisfiedLinkError: /ucsuh/oracle/10.2.0/db_1/jdk/jre/lib/sparc/motif21/libmawt.so: ld.so.1: java: fatal: libXm.so.4: open failed: 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:1482)
        at java.lang.Runtime.load0(Runtime.java:737)
        at java.lang.System.load(System.java:811)
        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)
        at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
        at java.awt.Component.<clinit>(Component.java:506)
-bash-3.00$
0
 
actonwangCommented:
I just checked installation document for solaris os. It doesn't say anything about quite mode for netca.
but there are quite mode mentioned in other installation guide for hp-ux,linux,windows.

maybe it is not enabled in solaris? It looks like /slient or -silent doesn't work for netca. I would think so.

Please verify this.


bTW: you can still install oracle itself in silent mode.
0
 
xoxomosAuthor Commented:
I just tried it on a Solaris 9 that does have X installed.  There I was able to run it using the GUI or -silent with no GUI.
0
 
xoxomosAuthor Commented:
It kinda looks that way.
0
 
radja7Commented:
May be like that?

export DIPSLAY=0.0.0.0:0.0
netca -silent
0
 
xoxomosAuthor Commented:
Actually the Oracle people are telling me you must have X software to use netca even in silent mode.
However, looking inside the netca script, about 10 or 12 lines down, there is a comment dated about 2 years ago:
 hying       08/13/04 - Add OraInstaller.jar and xmlparsserv2.jar
#    dkapoor     09/15/03 - add jewt
#    npamnani    07/24/03 - silent mode doesnot need DISPLAY
#    hasriniv    07/02/03 - Fix for bug 2605995
#    jtellez     04/24/03 - add RAC Support environ Vars

that says silent does not need DISPLAY
0
 
arkzoydCommented:
try netca /silent instead of -silent
0
All Courses

From novice to tech pro — start learning today.