Problem porting webapp to Linux from Windows

Hello,
I'm porting a Tomcat web app from a Windows dev environment to a Linux production environment. For i/o, file references were made "portable" using, for example, this sort of declaration:
File file = System.getProperty("user.dir")+File.separator+"..[string].."+File.separator....etc.
I made this work on Windows, but it breaks on Linux because "user.dir" is not the same on the two OS's under circumstances that are otherwise the same.
It appears that on Windows, based on the default Tomcat startup script, user.dir is fixed to the directory where the app (Catalina) was started. The Windows default startup command hardwires this to the path where Tomcat is installed, while in Linux user.dir move to the directory of the class file containing the reference to the file I want.
Many people must have dealt with this in the past, but darned if I can find a solution on line. What's the cleanest way to reconcile this, work with the startup scripts or the source code?
I feel stupid. Thanks for your help.
Steve

There is only 1 problem I think I read about using
this approach. When you make a war of your webapp, the
getRealPath("/") can return null on some webservers,
but since I dont use war's I have no problem with thatIt's early days for me, so I expanded the WAR on the production server for now, but I probably always will because the webapp writes files into a sub-directory under WEB-INF (files I want only my servlets to get at). As I understand it, you can either use a WAR or have a full expanded directory structure, but not both.
On another point, I hadn't mentioned that I have a bean in session scope that accesses a properties file. In fact, that's where I first discovered the problem. So using your approach, I'm changing some JSP and the bean to be able to pass the ServletContext to it.

Similar Messages

  • Changed to linux from windows and lost all my touchscreen and sound

    changed to linux from windows and lost all my touchscreen and sound

    dina6370 wrote:
    changed to linux from windows and lost all my touchscreen and sound
    Hi,
    You need some sorts of driver, please try the following forum:
       http://www.linuxquestions.org/
    Good luck
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Installing linux from windows

    Is there any project like wubi that install linux from windows directly in a partition?

    hack.augusto wrote:
    yeah, 15 minutes to download the core, it takes about 2.5 hours to download all the other stuff (read other stuff as kde )
    thanks for the suggestion of ubuntu, but arch is so better (i tryed ubuntu before, and actually i have some trouble with ubuntu and my laptop).
    maybe i could install linux in a virtual machine and then copy it to the partition (i just don't want get locked at the command line again, i don't care if it takes more effort to install)
    You have one option here - don't use KDE but something lightweight, which doesn't pull 100s of MBs od dependencies, like *box, tiling manager...
    And that stuff with the command line - I see it as a necessary purgatory after using win-do$

  • Problems using RMI between linux and windows.

    I have problems using RMI between linux and windows.
    This is my scenario:
    - Server running on linux pc
    - Clients running on linux and windows PCs
    When a linux client disconnect, first time that server try to call a method of this client, a rmi.ConnectException is generated so server can catch it, mark the client as disconnected and won't communicate with it anymore.
    When a windows client (tested on XP and Vista) disconnect, no exceptions are generated (I tryed to catch all the rmi exception), so server cannot know that client is disconnected and hangs trying to communicate with the windows client.
    Any ideas?
    Thanks in advance.
    cambieri

    Thanks for your reply.
    Yes, we are implementing a sort of callback using Publisher (remote Observable) and Subscribers (remote Observer). The pattern and relative code is very well described at this link: http://www2.sys-con.com/ITSG/virtualcd/java/archives/0210/schwell/index.html (look at the notifySubscribers(Object pub, Object code) function).
    Everything works great, the only problem is this: when a Publisher that reside on a Linux server try to notify something to a "dead" Subscriber that reside on a Windows PC it does't receive the usual ConnectException and so tends to hang.
    As a workaround we have solved now starting a new Thread for each update (notification), so only that Thread is blocked (until the timeout i guess) and not the entire "notifySubscribers" function (that contact all the Subscribers).
    Beside this, using the Thread seem to give us better performance.
    Is that missed ConnectException a bug? Or we are just making some mistake?
    We are using java 6 and when both client and server are Linux or Windows the ConnectException always happen and we don't have any problem.
    I hope that now this information are enough.
    Thanks again and greetings.
    O.C.

  • Cannot connect properly to Oracle on Linux from Windows

    Good day all,
    I’ve got 2 virtual machines running on my Mac:
    -     Centos 5.4 with Oracle 11gR2
    -     Windows 2003 server with Oracle 10gR2
    From Linux box I have access to Oracle database on Windows box (both directly and via a database link), however from Windows I have problems accessing the oracle database on the Linux box.
    From Windows, if I try to set up a connection using Oracle’s SQL Developer using connection type “Basic”, I get “IO Error: The Network Adapter could not establish the connection”. When I use “TNS”, then it works.
    From the linux box it all works fine as the “oracle” user, but when I log on as another user (in this case “informatica”) it doesn’t work properly any more.
    To sketch what both environments look like.
    Windows:
    -     Machine name WS2003Ora10g
    -     Etc/hosts
    o     127.0.0.1 localhost
    o     #loopback adapter
    o     192.168.12.100     localhost
    o     #network adapter
    o     192.168.12.10     WS2003Ora10g
    o     # external machine
    o     192.168.12.110     ilmserver
    -     system variables
    o     TNS_ADMIN, set to network/admin path in Oracle home dir
    listener
    C:\Documents and Settings\Administrator>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 24-AUG-2011 17:38:06
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Start Date 24-AUG-2011 16:29:33
    Uptime 0 days 1 hr. 8 min. 33 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
    Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WS2003Ora10g)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "ora10gr2" has 1 instance(s).
    Instance "ora10gr2", status READY, has 1 handler(s) for this service...
    Service "ora10gr2XDB" has 1 instance(s).
    Instance "ora10gr2", status READY, has 1 handler(s) for this service...
    Service "ora10gr2_XPT" has 1 instance(s).
    Instance "ora10gr2", status READY, has 1 handler(s) for this service...
    The command completed successfully
    C:\Documents and Settings\Administrator>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 24-AUG-2011 17:40:43
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "ora10gr2" has 1 instance(s).
    Instance "ora10gr2", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:25 refused:0 state:ready
    LOCAL SERVER
    Service "ora10gr2XDB" has 1 instance(s).
    Instance "ora10gr2", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1002 state:ready
    DISPATCHER <machine: WS2003ORA10G, pid: 2852>
    (ADDRESS=(PROTOCOL=tcp)(HOST=WS2003Ora10g)(PORT=1031))
    Service "ora10gr2_XPT" has 1 instance(s).
    Instance "ora10gr2", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:25 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    Linux
    -     Machine name ilmserver
    -     Etc/hosts
    o     127.0.0.1          localhost.localdomain localhost
    o     ::1          localhost6.localdomain6 localhost6
    o     192.168.12.1     routerip     rtrip
    o     192.168.12.110     ilmserver     ilmsvr
    o     192.168.12.10     WS2003Ora10g     winora
    system variables (in bashprofile)_
    o     export PATH=$PATH:/usr/java/jdk1.7.0/bin
    o     export PATH=$PATH:/usr/sbin
    o     export PATH=$PATH:/sbin
    o     export JAVA_HOME=/usr/java/jdk1.7.0
    o     PATH=$PATH:$HOME/bin
    o     export PATH
    o     export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
    o     export ORACLE_BASE=/home/oracle/app/oracle
    o     export ORACLE_SID=orcl
    o     export TNS_ADMIN=$ORACLE_HOME/network/admin
    o     export ORACLE_HOSTNAME=ilmserver
    o     export PATH=$PATH:$ORACLE_HOME/bin
    Both the "oracle" and the "informatica" user have these environment variables.
    listener
    Logged in as “oracle” user:*
    [oracle@ilmserver ~]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 24-AUG-2011 19:12:35
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 24-AUG-2011 17:30:39
    Uptime 0 days 1 hr. 41 min. 55 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /home/oracle/app/oracle/diag/tnslsnr/ilmserver/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@ilmserver ~]$ lsnrctl services
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 24-AUG-2011 19:13:28
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    Services Summary...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:19 refused:0 state:ready
    LOCAL SERVER
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: ilmserver, pid: 9648>
    (ADDRESS=(PROTOCOL=tcp)(HOST=ilmserver)(PORT=52395))
    The command completed successfully
    But logged in as “informatica” user I get following:
    [informatica@ilmserver ~]$ lsnrctl status
    bash: lsnrctl: command not found
    [informatica@ilmserver ~]$ lsnrctl services
    bash: lsnrctl: command not found
    even though the oracle bin directory sits in PATH.
    Pinging from windows:
    C:\Documents and Settings\Administrator>ping ilmserver
    Pinging ilmserver [192.168.12.110] with 32 bytes of data:
    Reply from 192.168.12.110: bytes=32 time=1ms TTL=64
    Reply from 192.168.12.110: bytes=32 time<1ms TTL=64
    Reply from 192.168.12.110: bytes=32 time<1ms TTL=64
    Reply from 192.168.12.110: bytes=32 time<1ms TTL=64
    Ping statistics for 192.168.12.110:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 1ms, Average = 0ms
    That works fine.
    Telnet from Windows:
    C:\Documents and Settings\Administrator>telnet 192.168.12.110 1521
    Connecting To 192.168.12.110...Could not open connection to the host, on port 1521: Connect failed
    This result is the same for either just having port 1521 open, or turning the Linux firewall off altogether. Also same when using IP address.
    Just to be complete, here are the results from the Linux box.
    *[oracle@ilmserver informatica]$ ping WS2003Ora10g*
    PING WS2003Ora10g (192.168.12.10) 56(84) bytes of data.
    64 bytes from WS2003Ora10g (192.168.12.10): icmp_seq=1 ttl=128 time=1.63 ms
    64 bytes from WS2003Ora10g (192.168.12.10): icmp_seq=2 ttl=128 time=0.222 ms
    64 bytes from WS2003Ora10g (192.168.12.10): icmp_seq=3 ttl=128 time=0.255 ms
    64 bytes from WS2003Ora10g (192.168.12.10): icmp_seq=4 ttl=128 time=0.258 ms
    --- WS2003Ora10g ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3000ms
    rtt min/avg/max/mdev = 0.222/0.593/1.639/0.604 ms
    *[oracle@ilmserver ~]$ telnet WS2003Ora10g 1521*
    Trying 192.168.12.10...
    Connected to WS2003Ora10g (192.168.12.10).
    Escape character is '^]'.
    ... works for all users.
    Checking out the port situation on Linux:
    [informatica@ilmserver ~]$ netstat -an | grep 1521
    tcp 0 0 127.0.0.1:1521 0.0.0.0:* LISTEN
    tcp 0 0 127.0.0.1:1521 127.0.0.1:43782 ESTABLISHED
    tcp 0 0 127.0.0.1:1521 127.0.0.1:44290 ESTABLISHED
    tcp 0 0 127.0.0.1:58289 127.0.0.1:1521 TIME_WAIT
    tcp 0 0 127.0.0.1:58287 127.0.0.1:1521 TIME_WAIT
    tcp 0 0 127.0.0.1:1521 127.0.0.1:43792 ESTABLISHED
    tcp 0 0 127.0.0.1:54116 127.0.0.1:1521 ESTABLISHED
    tcp 0 0 127.0.0.1:1521 127.0.0.1:44283 ESTABLISHED
    tcp 0 0 ::ffff:127.0.0.1:54123 ::ffff:127.0.0.1:1521 ESTABLISHED
    tcp 0 0 ::ffff:127.0.0.1:30135 ::ffff:127.0.0.1:1521 ESTABLISHED
    unix 2 [ ACC ] STREAM LISTENING 129262 /var/tmp/.oracle/sEXTPROC1521
    [ the sequence of dots means I took out a whole lot or lines with virtually the same information, only different port(s) ]
    What’s noticeable is that port 1521 seems solely assigned to the localhost IP-address, 127.0.0.1.
    Another thing I noticed is that from a different user in Linux, so not “oracle”, using SQL Developer I cannot access the local Oracle database via TNS. When choosing TNS the dropdown box for “Network Alias” – which normally is populated with entries from TNSNAMES.ORA – is completely empty. On a “users and groups” level I basically assigned all the groups the oracle user is member of, to the other user (called informatica).
    And to make it even more interesting, at first it worked using “Basic” (in SQL Developer), but since implementing the TNS_ADMIN environment variable, it doesn’t work at all !!!
    Trying it via SQLPLUS as the “informatica” doesn’t work either:
    [informatica@ilmserver ~]$ sqlplus system
    bash: sqlplus: command not found
    I’ve assigned the “dba” group to “informatica”, or rather, I have assigned all groups to the “informatica” user as the “oracle” user has.
    Needless to say I am no Linux expert, rather a quite inexperienced Linux-user.
    So bottom line, the situation I’d like to be able to create is the following:
    •     Linux Oracle DB accessible from “informatica” (or any other) user on Linux, via both TNS and java-based
    •     Linux Oracle DB accessible from remote machine (running Windows 2003 server) via both TNS and java-based
    •     And for Informatica to work properly, it says it needs the TNS_ADMIN environment variable, so the “informatica” user must have full Oracle connectivity with TNS_ADMIN in place.
    Any help is greatly appreciated.
    Thanks, Patrick

    Hi Billy,
    Thanks for your elaborate answer.
    Not sure whether I can use it though, since the application using the oracle database (i.e. Informatica ILM 5.3.2) appears to have a specific need for TNS.
    I thought I had a solution (not the prettiest for sure) by just copying TNSNAMES.ORA to an accessible location, change ownership to "informatica" user, have TNS_ADMIN point to it, and Bob should be my uncle. Well... he isn't!
    In SQL Developer when I choose TNS as connection type, the drop down box is STILL empty.....aaaaahhhh!!!!!
    I was advised to play around with primary groups, so I tried oinstall and dba as primary groups for informatica user, all to no avail.
    And I can't even test it with SQLPLUS because I don't have access to it as "informatica".
    Who knows what the exact reason for that is... I know I'm a far cry from an experienced linux user, but I assumed that having the Oracle Home bin directory in PATH, and assigning the oinstall group to informatica user, would ensure access to to any executable in there. Well... NOT!!!
    +[informatica@ilmserver ~]$ sqlplus system@orcl+
    bash: sqlplus: command not found
    This is driving me nuts. Thought that finding a solution for this wouldn't be this hard, but essentially I've been digging for 3 days now.
    To provide more background, here are the env.variables:
    [informatica@ilmserver ~]$ env
    SSH_AGENT_PID=21054
    HOSTNAME=ilmserver
    DESKTOP_STARTUP_ID=
    TERM=xterm
    SHELL=/bin/bash
    HISTSIZE=1000
    GTK_RC_FILES=/etc/gtk/gtkrc:/home/informatica/.gtkrc-1.2-gnome2
    WINDOWID=262nnnnn
    USER=informatica
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    ORACLE_SID=orcl
    GNOME_KEYRING_SOCKET=/tmp/keyring-LXptz1/socket
    ORACLE_HOSTNAME=ilmserver
    ORACLE_BASE=/home/oracle/app/oracle
    SSH_AUTH_SOCK=/tmp/ssh-CFDat21018/agent.21018
    SESSION_MANAGER=local/ilmserver:/tmp/.ICE-unix/21018
    USERNAME=informatica
    TNS_ADMIN=/var/temp
    MAIL=/var/spool/mail/informatica
    PATH=/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/informatica/bin:/usr/java/jdk1.7.0/bin:/usr/sbin:/sbin:/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin
    DESKTOP_SESSION=default
    GDM_XSERVER_LOCATION=local
    INPUTRC=/etc/inputrc
    PWD=/home/informatica
    JAVA_HOME=/usr/java/jdk1.7.0
    XMODIFIERS=@im=none
    LANG=en_US.UTF-8
    GDMSESSION=default
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SHLVL=2
    HOME=/home/informatica
    GNOME_DESKTOP_SESSION_ID=Default
    LOGNAME=informatica
    CVS_RSH=ssh
    DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-axxxxxxxxo,guid=xxxxxxxxxxxxxxxxxxxxxxx
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    DISPLAY=:0.0
    ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
    G_BROKEN_FILENAMES=1
    COLORTERM=gnome-terminal
    XAUTHORITY=/tmp/.gdmKEYS0V
    Thanks, Patrick

  • Tnsping doesnt work. cant connect to oracle on linux from windows client

    Installed Oracle 11g on Linux VM. Tried connecting from Tora/SqlDeveloper from Windows machine, but fails. TNSPING fails. PING works fine. Any idea how to resolve below issue?
    Below is the info and checks made :
    [oracle@oraclelinux6 admin]$ more *.ora
    listener.ora
    # listener.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = /apps/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME = orcl)
    LISTENERLX =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = /apps/app/oracle
    sqlnet.ora
    # sqlnet.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    ADR_BASE = /apps/app/oracle
    SQLNET.EXPIRE_TIME=10
    SQLNET.INBOUND_CONNECT_TIMEOUT=240
    tnsnames.ora
    # tnsnames.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
    [oracle@oraclelinux6 admin]$
    [oracle@oraclelinux6 admin]$ ifconfig
    eth1      Link encap:Ethernet  HWaddr 08:00:27:CA:B7:5D
              inet addr:192.168.1.121  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::a00:27ff:feca:b75d/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:243465 errors:0 dropped:0 overruns:0 frame:0
              TX packets:143708 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:347575845 (331.4 MiB)  TX bytes:9778008 (9.3 MiB)
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:36859 errors:0 dropped:0 overruns:0 frame:0
              TX packets:36859 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:2400424 (2.2 MiB)  TX bytes:2400424 (2.2 MiB)
    virbr0    Link encap:Ethernet  HWaddr 52:54:00:8D:63:05
              inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
    [oracle@oraclelinux6 admin]$ hostname
    oraclelinux6.localdomain
    [oracle@oraclelinux6 admin]$ more /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    10.0.2.15       oraclelinux6.localdomain
    [oracle@oraclelinux6 admin]$
    [oracle@oraclelinux6 admin]$ sqlplus system@orcl
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 2 08:19:59 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Enter user-name: system
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> set head off
    SQL> select * from v$instance;
                  1 orcl
    oraclelinux6.localdomain
    11.2.0.1.0        01-DEC-13 OPEN         NO           1 STOPPED
    ALLOWED    NO  ACTIVE            PRIMARY_INSTANCE   NORMAL    NO
    SQL> select * from v$database;
    1360274593 ORCL      26-NOV-13            945184 26-NOV-13
                          1 15-AUG-09 NOARCHIVELOG            1071075
            1033565 CURRENT 26-NOV-13                  1283             1094699
    02-DEC-13 NOT ALLOWED 26-NOV-13 READ WRITE           MAXIMUM PERFORMANCE
    UNPROTECTED          ENABLED   1360252065  1360252065 PRIMARY
                945184 DISABLED NOT ALLOWED          DISABLED NONE    NO       NO
    NO  NO           13
    Linux x86 64-bit
                               2                      2     1094771
    NO                 NO  NO  orcl
                             0 DISABLED
                        0
    NO                                 NO
    LSNRCTL> show inbound_connect_timeout
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    TNS-12535: TNS:operation timed out
    TNS-12560: TNS:protocol adapter error
      TNS-00505: Operation timed out
    LSNRCTL>
    [oracle@oraclelinux6 admin]$ tnsping orcl
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:11:34
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = orcl)))
    OK (0 msec)
    <msg time='2013-12-02T08:11:55.728-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2013-12-02T08:13:23.444-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:13:23 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=sqlplus)(HOST=oraclelinux6.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=60806)) * establish * orcl * 12514
    </txt>
    </msg>
    <msg time='2013-12-02T08:13:23.444-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2013-12-02T08:19:54.141-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:19:54 * service_update * orcl * 0
    </txt>
    </msg>
    <msg time='2013-12-02T08:20:00.146-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:20:00 * service_update * orcl * 0
    </txt>
    </msg>
    <msg time='2013-12-02T08:20:03.639-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:20:03 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=sqlplus)(HOST=oraclelinux6.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=60970)) * establish * orcl * 12514
    </txt>
    </msg>
    <msg time='2013-12-02T08:20:03.639-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    [oracle@oraclelinux6 admin]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:25:38
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    TNS-12535: TNS:operation timed out
    TNS-12560: TNS:protocol adapter error
      TNS-00505: Operation timed out
    [oracle@oraclelinux6 admin]$
    [oracle@oraclelinux6 admin]$ lsnrctl status LISTENERLX
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:29:23
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENERLX
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                02-DEC-2013 07:55:29
    Uptime                    0 days 0 hr. 33 min. 54 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /apps/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/oraclelinux6/listenerlx/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "orcl.localdomain" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.localdomain" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@oraclelinux6 admin]$
    CLIENT SIDE :
    C:\Windows\system32>ping 192.168.1.121
    Pinging 192.168.1.121 with 32 bytes of data:
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Ping statistics for 192.168.1.121:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 0ms, Maximum = 0ms, Average = 0ms
    C:\Windows\system32>tnsping ORACLELINUX6
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 03-DEC-2013 01:30:13
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    D:\app\Laasya\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.121)(PORT = 1521)) (C
    ONNECT_DATA = (SERVICE_NAME = orcl)))
    TNS-12535: TNS:operation timed out
    # tnsnames.ora Network Configuration File: D:\app\Laasya\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = Laasya-PC)(PORT = 1522))
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = Laasya-PC)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    ORACLELINUX6 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.121)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)

    f0c7e0f7-dab5-4b63-a36c-04b7e8eb552d wrote:
    Installed Oracle 11g on Linux VM. Tried connecting from Tora/SqlDeveloper from Windows machine, but fails. TNSPING fails. PING works fine. Any idea how to resolve below issue?
    Below is the info and checks made :
    [oracle@oraclelinux6 admin]$ more *.ora
    listener.ora
    # listener.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = /apps/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME = orcl)
    LISTENERLX =
    It is pointless, and just adds to the confusion, to name your listener anything other than the default name of LISTENER
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    Client requests to 'localhost' (or its ip address of 127.0.0.1) never leave the client machine.  Hence, any listener configured for that address will never receive a request from any other machine.
    ADR_BASE_LISTENER = /apps/app/oracle
    sqlnet.ora
    # sqlnet.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    ADR_BASE = /apps/app/oracle
    SQLNET.EXPIRE_TIME=10
    SQLNET.INBOUND_CONNECT_TIMEOUT=240
    tnsnames.ora
    # tnsnames.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    See comment above regarding 'localhost'.
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
    [oracle@oraclelinux6 admin]$
    [oracle@oraclelinux6 admin]$ ifconfig
    eth1      Link encap:Ethernet  HWaddr 08:00:27:CA:B7:5D
              inet addr:192.168.1.121  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::a00:27ff:feca:b75d/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:243465 errors:0 dropped:0 overruns:0 frame:0
              TX packets:143708 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:347575845 (331.4 MiB)  TX bytes:9778008 (9.3 MiB)
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:36859 errors:0 dropped:0 overruns:0 frame:0
              TX packets:36859 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:2400424 (2.2 MiB)  TX bytes:2400424 (2.2 MiB)
    virbr0    Link encap:Ethernet  HWaddr 52:54:00:8D:63:05
              inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
    [oracle@oraclelinux6 admin]$ hostname
    oraclelinux6.localdomain
    [oracle@oraclelinux6 admin]$ more /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    10.0.2.15       oraclelinux6.localdomain
    where did that 10.0.2.15 address come from?  You don't have any network adapters configured for that address
    [oracle@oraclelinux6 admin]$
    [oracle@oraclelinux6 admin]$ sqlplus system@orcl
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 2 08:19:59 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    A well-documented error.
    see: http://edstevensdba.wordpress.com/2011/03/19/ora-12514/  (ora-12514  Listener does not know of requested service )
    Enter user-name: system
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Since you did not use a tns service name ('@orcl') this was a bequeth connection to a local database.
    SQL> set head off
    SQL> select * from v$instance;
                  1 orcl
    oraclelinux6.localdomain
    11.2.0.1.0        01-DEC-13 OPEN         NO           1 STOPPED
    ALLOWED    NO  ACTIVE            PRIMARY_INSTANCE   NORMAL    NO
    SQL> select * from v$database;
    1360274593 ORCL      26-NOV-13            945184 26-NOV-13
                          1 15-AUG-09 NOARCHIVELOG            1071075
            1033565 CURRENT 26-NOV-13                  1283             1094699
    02-DEC-13 NOT ALLOWED 26-NOV-13 READ WRITE           MAXIMUM PERFORMANCE
    UNPROTECTED          ENABLED   1360252065  1360252065 PRIMARY
                945184 DISABLED NOT ALLOWED          DISABLED NONE    NO       NO
    NO  NO           13
    Linux x86 64-bit
                               2                      2     1094771
    NO                 NO  NO  orcl
                             0 DISABLED
                        0
    NO                                 NO
    LSNRCTL> show inbound_connect_timeout
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    TNS-12535: TNS:operation timed out
    TNS-12560: TNS:protocol adapter error
      TNS-00505: Operation timed out
    LSNRCTL>
    [oracle@oraclelinux6 admin]$ tnsping orcl
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:11:34
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = orcl)))
    OK (0 msec)
    <msg time='2013-12-02T08:11:55.728-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2013-12-02T08:13:23.444-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:13:23 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=sqlplus)(HOST=oraclelinux6.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=60806)) * establish * orcl * 12514
    </txt>
    </msg>
    <msg time='2013-12-02T08:13:23.444-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2013-12-02T08:19:54.141-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:19:54 * service_update * orcl * 0
    </txt>
    </msg>
    <msg time='2013-12-02T08:20:00.146-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:20:00 * service_update * orcl * 0
    </txt>
    </msg>
    <msg time='2013-12-02T08:20:03.639-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:20:03 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=sqlplus)(HOST=oraclelinux6.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=60970)) * establish * orcl * 12514
    </txt>
    </msg>
    <msg time='2013-12-02T08:20:03.639-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    [oracle@oraclelinux6 admin]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:25:38
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    TNS-12535: TNS:operation timed out
    TNS-12560: TNS:protocol adapter error
      TNS-00505: Operation timed out
    [oracle@oraclelinux6 admin]$
    [oracle@oraclelinux6 admin]$ lsnrctl status LISTENERLX
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:29:23
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENERLX
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                02-DEC-2013 07:55:29
    Uptime                    0 days 0 hr. 33 min. 54 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /apps/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/oraclelinux6/listenerlx/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    See previous comments regarding localhost and 127.0.0.1
    Services Summary...
    Service "orcl.localdomain" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.localdomain" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@oraclelinux6 admin]$
    CLIENT SIDE :
    C:\Windows\system32>ping 192.168.1.121
    Pinging 192.168.1.121 with 32 bytes of data:
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Ping statistics for 192.168.1.121:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 0ms, Maximum = 0ms, Average = 0ms
    C:\Windows\system32>tnsping ORACLELINUX6
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 03-DEC-2013 01:30:13
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    D:\app\Laasya\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.121)(PORT = 1521)) (C
    ONNECT_DATA = (SERVICE_NAME = orcl)))
    TNS-12535: TNS:operation timed out
    # tnsnames.ora Network Configuration File: D:\app\Laasya\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = Laasya-PC)(PORT = 1522))
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = Laasya-PC)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    ORACLELINUX6 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.121)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
    You've thrown out a huge amount of detailed data, but showing a variety of errors, and combinations.  Overall, I get the impression you are confusing remote vs. local connections.  Please read the following, then come back and let's focus on one error at a time.
    see: http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/  (Help! I can’t connect to my database  )
    see: http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/  ( Help! I can’t connect to my database (part duex) )

  • Problem Starting WLS 5.1 from windows 2000 program group

    Hi
    I couldn't able to start Weblogic server 5.1 from windows 2000 program
    group(start > Programs > Weblogic 5.10 > Weblogic Server). I can start WLS
    without any problem from the console . I've check every configuration and
    environment setting, the problem still come out. Whenever I start WLS from
    program group , a window dialog with error messages will come out , here's
    the error messages :
    wlserver.exe - Application Error
    The instruction at "0x04d5d0d6" referenced memory at
    "0x00000000". The memory could not be "written".
    Click on OK to terminate the program
    Click on CANCEL to debug the program
    Any suggestions/solution will be appreciated .
    Thanks
    Chew Leong
    [email protected]

    look for weblogic.system.password property in your weblogic.properties
    file and see what's in there.
    Shailesh Mungikar wrote:
    I am trying to install WLS 5.1 SP12 on my Windows 2000 machine.
    I have WLS 6.1 already installed my PC.
    When I try to install, at the very end when
    "System" password required
    dialog pops up, I get another dialog box saying
    WLPASS~1.exe Application Error
    The exception Floating point division by zero (0xc000008e) occured in
    the application at location 0x50147c14
    When I press OK, it kill the "System password" dialog.
    The installation seems to be complete.
    If I go ahead and try to start weblogic, I get Exceptio
    java.security.AccessControlException: access denied
    (java.lang.RuntimePermission createSecurityManager)
    Any solution/workaround?
    thanks,
    _shailesh

  • Rman of database under Linux from Windows server

    Dear colleagues! I need some help.
    I have Oracle database 10.2.0.1, which works under Linux CentOS. I've just set up rman, to backup this database to local linux partition. Now, i want to adjust rman, so it starts from Windows 2003 ( i've already install Oracle 10.2.0.1 client for Wondows 32-bit) server to backup this database to local Windows folder.Could you please answer, is it possible at all?
    When i try to perform rman from Windows manually i got this errors:
    channel t1: starting piece 1 at 29-APR-10
    released channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on t1 channel at 04/29/2010 03:07:32
    ORA-19504: failed to create file "/u02/app/oracle/product/10.2.0/db_1/dbs/c:123
    bak"
    ORA-27038: created file already exists
    Additional information: 1

    1. You can run the backup from windows server 2003 which take the RMAN backup of your linux server. But this backup can only stored into your linux server.
    2. You can't store the backup set of linux server into windows server.
    Regards
    Asif Kabir
    -- mark your helpful post as correct/helpful.

  • Migrating to linux from window 2003

    Winodws 2003
    Db 9.2.0.7
    EBS 11.5.10.2
    HRMS application.
    I would like to migrate everything from windows to linux(centOS).
    Right now we have everything in Single node.
    I would ike to split into 2 nodes application and database.
    Please give me direction/document.
    Thanks.

    Hi,
    CentOS is not Certified by Oracle, correct?Oracle Apps 11i/R12 is not certfied on CentOS.
    VMWare on this not certified , correct?You can install VMWare on CentOS, then install a supported OS which is certified with Oracle Apps 11i/R12.
    Regards,
    Hussein

  • Accessing OSB intalled in Linux from Windows

    Hi All,
    I am new to OSB. I have a Linux server with me in which i have installed Oracle SOA Suite 11g . The architecture is a Admin server and 3 managed server. The managed servers are soa_server,bam_server and osb_server. Now after installation of OSB i need to access the samples and the console from windows (my working machine). How to do that. I have downloaded OEPE helios installer from oracle site, but have no idea how to connect to server through eclipse. Could some one help me. Please.

    if you don't need the osb plugin and just want connect the server from your eclipse you need to get the ip-address from the linux box (and edit your hostfile so you can use the hostname of it
    ip-address of your vm depends on the network settings of your vm (bridged, nat, etc)Hi Eric,
    Thanks for your reply. could you please elaborate on the second part of your answer which i have quoted above. I have connectivity to the linux machine. Please let me know if there is any tutorials for the same.

  • Porting a labview application from windows to linux

    Hello,
    I need to compile a labview application that has been created for windows under linux. It depends on calls to functions NBFifoCreate and NBFifoWrite. These are part of the nbfifo.dll library under windows. Could anyone point me in the right direction how to replace this dependency?
    Also I am trialing LabView Professional Linux. As I am reading along I gather that I might need LabView RT Module. Is that correct and does it come included with the Professional version.
    Thank you in advance.

    Hello Damien1979,
    It sounds like you have an application developed under the Windows OS which used features of the LabVIEW Real-time Module.  Now, however, you are trying to open the same VI or Project under Linux.  Is that correct? 
    What distribution of Linux are you using?
    Which version of LabVIEW are you using?
    The LabVIEW development system is supported under Linux, however, not all modules and toolkits are available for installation.  This link below contains the supported modules.
    Developing Linux Applications with NI LabVIEW or LabWindows/CVI
    I believe the NBFIFO.dll related files are associated with the LabVIEW Real-time module, but I haven not confirmed that yet.  The LabVIEW Real-time module is not featured in the link above.
    Regards,
    George T.
    Applications Engineering Specialist
    National Instruments UK and Ireland

  • Problem with Generating SNMP traps from Windows Events

    Hi Supporter, 
    I configured some events to be translated to traps using evntwin for Service Control Manager and Local Session Manager events. But I just got traps from Service Control Manager event. There is no Local Session Manager events are generated. I checked
    with Event Viewer that events are created. Do you have any idea to fix my problem?
    Thank you!
    Here is my config file from evntwin:
    #pragma add "System" "Microsoft-Windows-TerminalServices-LocalSessionManager" 2952790037 1 0
    #pragma add "System" "Microsoft-Windows-TerminalServices-LocalSessionManager" 2952790039 1 0
    #pragma add "System" "Microsoft-Windows-TerminalServices-LocalSessionManager" 2952790040 1 0
    #pragma add "System" "Microsoft-Windows-TerminalServices-LocalSessionManager" 2952790041 1 0
    #pragma add "System" "Service Control Manager" 1073748864 1 0

    #pragma ADD<EventLogFile> <EventSource> <EventID> [<Count> [<Period>]]
    The parameter EventSource specifies the application that generates the event.
    those maybe helpful...
    http://www.questiondriven.com/2012/03/08/windows-server-20032008-event-log-snmp-traps/
    http://www.networkcircus.com/articles/20050715.html
    Best,
    Howtodo

  • Problem in connecting to sqlplus from windows batch file (DOS)

    Hi All,
    We have a new 10g Oracle database installed on windows server. I am trying to write a windows batch file to
    1) Connect to SQLPLUS
    2) Execute a script
    3) Disconnect from SQLPLUS.
    Example File Name:- execsql.bat
    SET ORACLE_SID=CAUT
    SET SCHEMA_IN=%1
    SET PASS=DEV
    SET script=%2
    sqlplus %SCHEMA_IN%/%PASS%@%ORACLE_SID% @%script%
    if %errorlevel% NEQ 0 echo ERROR: %ERRORLEVEL% else echo OK
    Now if i run this bat file like :- execsql.bat DEV script1.sql
    DEV= schema name,
    script1.sql = this file contains select * from dual;
    The code runs fine, but if i change dual to dual1 the sql error's out but not able to catch the error in the batch file.
    Reason why i would like to catch the error is this batch file would be scheduled through Autosys job scheduler and for autosys any exit code >0 is an error. Please help me in rewriting this batch script.
    Thanks
    Sam.

    Hello,
    What if you run this in SQL*Plus before you run the SELECT:
    whenever sqlerror exit failure

  • Problems Logging in to Domain from Windows XP

    So, I just set up a Mac server as PDC, and I've bound a couple of Windows XP Pro machines. I've set up a couple of user accounts. When I try to log-in from any user other than diradmin (my one admin account), I get a screen that says the domain controller is down or unavailable, but its not. What should I do?

    So, I just set up a Mac server as PDC, and I've bound a couple of Windows XP Pro machines. I've set up a couple of user accounts. When I try to log-in from any user other than diradmin (my one admin account), I get a screen that says the domain controller is down or unavailable, but its not. What should I do?

  • Problem to see PDF properties from windows explorer

    When we do right click on a pdf then properties then we click on the PDF tab, windows explorer in hanging for a few minutes and then no information is displayed (see print screen).
    We have Adobe Acrobat 10 and Windows Server 2003
    Any idea about this problem ?

    To be precise, we have this problem with Adobe Acrobat Reader 10 (and not Abode Acrobat 10).

Maybe you are looking for

  • How to print page no in standard sap report..

    Hi All, I am taking print out of standard reports but page no. is not showing. How to set page no. ? Which transaction ? Through SPAD we can set page no. ? Yusuf

  • Big increase in backup size after upgrade

    Hello I've upgraded my database from 10.2.0.4 SE on win2003-SP2 to 11.2.0.1.0 SE on win2008-R2-SP1 64-bit, by doing exp/imp The databasefiles size sums up to about 150gb on each server But when I do a normal RMAN database backup of the datafiles on t

  • Insert into - problem

    I have a problem while executing an insert-statement from an ASP-script. The problem is, that a statement like : Insert into test(test1,test2) values('testing','testagain') inserts 2 identical records instead of just 1 I'm working with Oracle 8i on w

  • How to call a procedure designed in Report Builder?

    Hi everyone, The Problem? I set up a procedure and would like to call this procedure in reports builder 6.0. I need to know how to call a procedure in reports builder. Thanks Tom Gilmore

  • VPN Tunnel w/ 802.1X port authentication against remote RADIUS server

    I have a Cisco 892 setup as a VPN client connecting to an ASA 5515-X.  The tunnel works fine and comes up if theirs correct traffic.  I have two RADIUS servers I want to use certificate based authentication to, that are located behind the ASA 5515-X.