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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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
actonwangCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.