Tnsnames.ora  is not working

Hello,
In my UAT envirnment we have 3 database on IBM AIX powerPC (64-bit) all are on 10.2.0.5.0
My listener.ora and tnsnames.ora is at default location $ORACLE_HOME/network/admin/
my listener is up
$ lsnrctl status
LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production on 04-MAR-2011 11:56:08
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production
Start Date 16-FEB-2011 18:51:16
Uptime 15 days 17 hr. 4 min. 52 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0.1/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0.1/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.8.17)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "preprod" has 1 instance(s).
Instance "preprod", status UNKNOWN, has 1 handler(s) for this service...
Service "uat" has 2 instance(s).
Instance "uat", status UNKNOWN, has 1 handler(s) for this service...
Instance "uat", status READY, has 1 handler(s) for this service...
Service "uat_XPT" has 1 instance(s).
Instance "uat", status READY, has 1 handler(s) for this service...
Service "uattest" has 2 instance(s).
Instance "uattest", status UNKNOWN, has 1 handler(s) for this service...
Instance "uattest", status READY, has 1 handler(s) for this service...
Service "uattest_XPT" has 1 instance(s).
Instance "uattest", status READY, has 1 handler(s) for this service...
The command completed successfully
i can remotely connected to database but on the same server tnsping is showing following error
$ tnsping UATTEST
TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production on 04-MAR-2011 11:59:09
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/10.2.0.1/db_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = uat)))
TNS-12535: TNS:operation timed out
or some time
ORA-12547: TNS: lost contact
remotely all the users are connected to listener but on the same server the operation is failed
I cant connect to other database using this tnsnames.ora file
can any one help me
regards
Bhushan
Edited by: user9176407 on Mar 3, 2011 10:38 PM

user9176407 wrote:
Thanks for the reply
In My server 3 database are there there a database by service name uat also present there
I check all the configuration the entries in my tnsnames.ora is as below
PREPROD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = preprod)
UAT =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = uat)
UATTEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = uattest)
conf_uat =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = 172.16.8.17)
(PORT = 1521)
(CONNECT_DATA =
(SERVICE_NAME = uat)
(SID = uat)
also my listner file entries are
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = uat)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
(SID_DESC =
(SID_NAME = uattest)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
(SID_DESC =
(SID_NAME = preprod)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
Ok, for your listener.ora file, above you have the SID_LIST and the LISTENER sections. But what is this that follows, below?
>
uat =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1528))
SID_LIST_uat =
(SID_LIST =
(SID_DESC =
(SID_NAME = configdb)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
which is working file
but i have an problem in my tnsname.ora file

Similar Messages

  • Error handler for ORA-29283 - not working

    I am running Oracle 9.2.0.4 on HP-UX.
    I have a stored procedure which reads a text file. I have set up an execption for error code ORA-29283 (invalid file operation). When I test my procedure (by not having the file to read) my exception handler is bypassed for a general exception error and my procedure terminates.
    here's parts of my code:
    Declare
    file_not_found EXCEPTION;
    PRAGMA EXCEPTION_INIT (file_not_found, -29283);
    BEGIN
    nochourly_file := UTIL_FILE.fopen('/mydirectory','myfile.txt','R');
    Loop
    begin
    UTL_FILE.get_line(nochourly_file, sbuffer);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    GOTO end_of_file;
    WHEN file_not_found
    THEN
    DBMS_OUTPUT.put_line ('Invalid File Operation - file not found');
    skip_last_hour_processed;
    GOTO end_of_file;
    WHEN OTHERS
    THEN
    err_num := SQLCODE;
    err_msg := SUBSTR (SQLERRM, 1, 100);
    DBMS_OUTPUT.put_line ('Error ' || TO_CHAR (err_num));
    DBMS_OUTPUT.put_line (err_msg);
    DBMS_OUTPUT.put_line (sbuffer);
    RAISE;
    EXIT;
    END;
    ===============
    When this fails I expect to see the message
    "Invalid file operation - file not found"
    which indicates my exception handler was processed.
    Instead I see:
    SQL> @$HOME/newhourly_dly
    Begin processing at 20060627154321
    nlasthourprocessed:20060627100000
    Last Hour Processed is 20060627100000
    BEGIN noc_hourly_daily_load; END;
    ERROR at line 1:
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 449
    ORA-29283: invalid file operation
    ORA-06512: at "HNS.NOC_HOURLY_DAILY_LOAD", line 374
    ORA-06512: at line 1
    Elapsed: 00:00:00.05
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    Can you explain:
    1) what generated the error message since
    a. it wasn't my exception handler and
    b. it wasn't the "WHEN OTHERS"
    2) Why isn't my error handler working?
    Please advise.
    Thank you

    Hello
    Not sure why your exception is being ignored but usually, to be able to handle the UTL_FILE exceptions, you need to explicitly code for each exception declared in the UTL_FILE package i.e.
    EXCEPTION
          WHEN utl_file.invalid_path THEN
                 --Do something
          WHEN utl_file.invalid_mode THEN
                 --Do something
          WHEN utl_file.invalid_filehandle THEN
                 --Do something
          WHEN utl_file.invalid_operation THEN
                 --Do something
          WHEN utl_file.read_error THEN
                 --Do something
          WHEN utl_file.write_error THEN
                 --Do something
          WHEN utl_file.internal_error THEN
                 --Do something
    END;HTH
    David

  • Clarification regarding tnsnames.ora

    Hi all
    I have following tnsnames.ora and is working fine
    PROD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 152.144.XXX.XXX)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = PROD.haunting.com)
    now i want to change the service name to
    PROD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 152.144.XXX.XXX)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = DEV.haunting.com) // changet to DEV from PROD
    but i am not able to connect to oracle as hr/hr@PROD
    i have set
    alter system set service_names='DEV.haunting.com scope' scope=both;
    alter system register;
    restarted the listener and database. but still cannot connect to database as a normal user.
    Please clarify

    SQL> show parameter service_names;
    NAME TYPE VALUE
    service_names string DEV.haunting.com
    LSNRCTL > services
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "DEV.haunting.com" has 1 instance(s).
    Instance "PROD", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "PROD" has 1 instance(s).
    Instance "PROD", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "PROD.haunting.com" has 1 instance(s).
    Instance "PROD", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "PRODXDB.haunting.com" has 1 instance(s).
    Instance "PROD", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: dhcp-152-144-120-214, pid: 7092>
    (ADDRESS=(PROTOCOL=tcp)(HOST=dhcp-152-144-120-214.ct.pb.com)(PORT=33473))
    Service "PROD_XPT.haunting.com" has 1 instance(s).
    Instance "PROD", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully

  • Missing alias of tnsnames.ora

    today i discovered a problem with my tnsnames.ora file.
    With my free old Toad, there is no way to define the "name" of the connection. I only have the network alias and the user. So i used alias names like customer-project(PRODUCTION) and customer-project(DEVELOPMENT) for old oracle 8i connections, where i can not use SQLDeveloper. What a bad idea...
    Tnsping and SQL*Plus work fine, Toad works fine, but SQLDeveloper has a problem. Many (random?) network aliases are missing.
    In the future i will avoid special characters in my network aliases, but its intersting to know that the common way to use tnsping to test tnsnames.ora will not be significant in combination with SQLDeveloper.

    So the problem with SQL Developer is that it stops reading the tnsadmin.ora file when it gets to one of these tns aliases with ()s.
    I was able to confirm this with 3.0EA1, trying both TEST(1) and "TEST(1)", and probably most significantly in being able to identify this, no error is reported in the UI, the console or the Loggnig Pane (even with logging set to finest).
    However, I was unable to use either form of tns alias with ()s with either tnsping or sql*plus, which is what I thought you were saying worked for you. Unlike SQL Developer, though, I was able to use tnsping and sql*plus with tns aliases defined after the tns alias with ()s.
    Your workaround of moving the tns aliases with ()s to the bottom of the file would avoid the problem in SQL Developer, but I would think it would be best if SQL Developer actually reported a warning/error in some way when it finds a tns alias it cannot interpret.
    theFurryOne

  • Developing without  Full client / tnsnames.ora

    I am trying to develop an OCI application using Borland C++ Builder. I want to deploy and develop using Instant Client 10G without tnsnames.ora file. I have 2 PCs - NT4 & XP.
    On the NT4 PC I had installed the full Oracle Client and was using the tnsnames.ora file and things were working fine. I've since uninstalled the full client and am now getting the "ORA-12154: TNS:could not resolve the connect identifier specified" error (using Instant Client)
    The XP box has never had the full client installed, does not have a tnsnames.ora file but works fine using the same code.
    I've been looking through this forum and note Justin Cave's comments that you can deploy but not develop using Instant Client but this seems to work fine on my XP box. (I am an Oracle novice so I could be missing something here).
    I have also checked the FAQ on connection strings and think I have got that correct (same code works on 1 PC and not the other) and don't think I've set the enviroment variables TNS_ADMIN or ORACLE_HOME on either machine.

    Hrm, interesting. It always used to be DBQ but it seems it might have changed to SERVER at some point.
    Anyway, I tried this and it worked fine for me (using 10204)
    TESTFILE.DSN
    ================
    [ODBC]
    DRIVER=Oracle in OraDb10g_home1
    server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=gdarling-pc2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))
    TEST.VBS
    ==========
    set con = createobject("adodb.connection")
    con.open "filedsn=testfile;uid=scott;pwd=tiger;"
    set rs = createobject("adodb.recordset")
    rs.open "select user from dual",con
    msgbox rs.fields(0).value
    Note also that unless you really want to create a file dsn, you could also just use a dsnless connection string and pass that directly too:
    set con = createobject("adodb.connection")
    con.open "driver={Oracle in OraDb10g_home1};uid=scott;pwd=tiger;server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=gdarling-pc2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))"
    set rs = createobject("adodb.recordset")
    rs.open "select user from dual",con
    msgbox rs.fields(0).value
    Hope it helps,
    Greg

  • Using tnsnames.ora

    Where can I ask a questio about OCI?
    I want to make a connection using tnsname.ora except using a dblink and username and password whit oci. I used this code up to know :
    OCIInitialize((ub4)mode, (dvoid *)0,
    (dvoid*(*)(dvoid *ctxp, size_t size))0,
    (dvoid*(*)(dvoid ctxp, dvoid memptr, size_t newsize))0,
    (dvoid (*)(dvoid ctxp, dvoid memptr))0);
    OCIEnvInit(&envhp, (ub4)OCI_DEFAULT, (size_t)0, (void**)0);
    OCIHandleAlloc((dvoid*)envhp, (dvoid**)&errhp, (ub4)OCI_HTYPE_ERROR,
    (size_t)0, (dvoid**)0),"");
    OCIHandleAlloc((dvoid*)envhp, (dvoid**)&srvhp, (ub4)OCI_HTYPE_SERVER,
    (size_t)0, (dvoid**)0);
    OCIServerAttach(srvhp, errhp, (text*)dblink, (sb4)strlen(dblink), (ub4)OCI_DEFAULT);
    OCIHandleAlloc((dvoid*)envhp, (dvoid**)&svchp, (ub4)OCI_HTYPE_SVCCTX,
    (size_t)0, (dvoid**)0);
    OCIAttrSet((dvoid*)svchp, (ub4)OCI_HTYPE_SVCCTX, (dvoid*)srvhp, (ub4)0,
    (ub4)OCI_ATTR_SERVER, errhp);
    OCIHandleAlloc((dvoid*)envhp, (dvoid**)&usrhp, (ub4)OCI_HTYPE_SESSION,
    (size_t)0, (dvoid**)0);
    OCIAttrSet((dvoid*)usrhp, (ub4)OCI_HTYPE_SESSION, (dvoid*)username,
    (ub4)strlen(username), (ub4)OCI_ATTR_USERNAME, errhp);
    OCIAttrSet((dvoid*)usrhp, (ub4)OCI_HTYPE_SESSION, (dvoid*)password,
    (ub4)strlen(password), (ub4)OCI_ATTR_PASSWORD, errhp);
    OCISessionBegin(svchp, errhp, usrhp, OCI_CRED_RDBMS,
    OCI_DEFAULT);
    But I want to change it in a way that I can use tnsnames.ora.

    Do not pass the dblink parameter in your program, pass an empty string over there and if you are on a UNIX/LINUX set TWO_TASK to the tns alias, in your case if dblink was a valid tnx alias set TWO_TASK to dblink and run the program

  • Tnsnames.ora file does not seem to load in SQL Developer

    I've really tried my best to figure this out on my own ... through the Help, this forum, and Internet in general. I apoligize in advance for having to ask this, since I'm sure this is a common issue. This particular form entry was really close:
    Database Connections will not load tnsnames.ora
    But, I just can seem to figure out why, or where entries from my tnsnames.ora file are loading into SQL Developer.
    - I have the TNS_ADMIN system environment variable defined to the directory where tnsnames.ora is stored - C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN.
    - I do not see a TNS tab as the forum entry above indicates anywhere in SQL Developer - This may be my problem.
    It seems that this issue could be cleared up with better directions on how to import tnsnames.ora entries into SQL Developer. Is there any specific direction on how to get your tnsnames.ora file setup correctly with SQL Developer running on Windows XP - Besides the Help which mentions the setup of TNS_ADMIN, but doesn't really tell you what the expected result is, or where the entries will be, or how to verify this is working?
    Any help would be most appreciated.
    Thanks,
    Dave
    Below is the export from the About box in SQL Developer:
    About
    Oracle SQL Developer 1.5.1
    Version 1.5.1
    Build MAIN-5440
    Copyright © 2005,2008 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.0.22.49.42
    Product ID: oracle.sqldeveloper
    Product Version: 11.1.1.54.40
    Version
    Component Version
    ========= =======
    CVS Version Internal to Oracle SQL Developer (client-only)
    Java(TM) Platform 1.6.0_07
    Oracle IDE 1.5.1.54.40
    Versioning Support 1.5.1.54.40
    Properties
    Name Value
    ==== =====
    apple.laf.useScreenMenuBar true
    awt.toolkit sun.awt.windows.WToolkit
    class.load.environment oracle.ide.boot.IdeClassLoadEnvironment
    class.load.log.level CONFIG
    class.transfer delegate
    com.apple.macos.smallTabs true
    com.apple.mrj.application.apple.menu.about.name "SQL_Developer"
    com.apple.mrj.application.growbox.intrudes false
    file.encoding Cp1252
    file.encoding.pkg sun.io
    file.separator \
    http.agent Mozilla/5.0 (Java 1.6.0_07; Windows XP 5.1 x86; en_US) ICEbrowser/v6_1_3
    ice.browser.forcegc false
    ice.pilots.html4.ignoreNonGenericFonts true
    ice.pilots.html4.tileOptThreshold 0
    ide.AssertTracingDisabled true
    ide.bootstrap.start 1628689279134099
    ide.build MAIN-5440
    ide.conf C:\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.config_pathname C:\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.debugbuild false
    ide.devbuild false
    ide.extension.search.path sqldeveloper/extensions:jdev/extensions:ide/extensions
    ide.firstrun true
    ide.java.minversion 1.5.0
    ide.launcherProcessId 5580
    ide.main.class oracle.ide.boot.IdeLauncher
    ide.patches.dir ide/lib/patches
    ide.pref.dir C:\Documents and Settings\X626730\Application Data\SQL Developer
    ide.pref.dir.base C:\Documents and Settings\X626730\Application Data
    ide.product oracle.sqldeveloper
    ide.shell.enableFileTypeAssociation C:\sqldeveloper\sqldeveloper.exe
    ide.splash.screen splash.gif
    ide.startingArg0 C:\sqldeveloper\sqldeveloper.exe
    ide.startingcwd C:\sqldeveloper\sqldeveloper\bin
    ide.user.dir C:\Documents and Settings\X626730\Application Data\SQL Developer
    ide.user.dir.var IDE_USER_DIR
    ide.work.dir C:\Documents and Settings\X626730\My Documents\SQL Developer
    ide.work.dir.base C:\Documents and Settings\X626730\My Documents
    java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob sun.awt.windows.WPrinterJob
    java.class.path ..\..\ide\lib\ide-boot.jar
    java.class.version 50.0
    java.endorsed.dirs C:\Program Files\Java\jdk1.6.0_07\jre\lib\endorsed
    java.ext.dirs C:\Program Files\Java\jdk1.6.0_07\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
    java.home C:\Program Files\Java\jdk1.6.0_07\jre
    java.io.tmpdir C:\DOCUME~1\X626730\LOCALS~1\Temp\
    java.library.path C:\sqldeveloper;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\PROGRA~1\IBM\WEBSPH~2\BIN\DB2;C:\PROGRA~1\IBM\WEBSPH~2\BIN\MQClient;C:\PROGRA~1\IBM\WEBSPH~2\BIN;C:\IBM\WebSphere MQ Client\Java\lib;C:\Program Files\CA\SharedComponents\PEC\bin;C:\oracle\product\10.2.0\client_1\bin;C:\oracle\ora92\bin;C:\oracle\product\10.2.0\client_2\bin;C:\Perl\bin\;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\CA\PEC\bin;C:\Reuters\Plus;C:\Reuters\Plus\COMLOGIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Compuware\Common;C:\Program Files\Common Files\Compuware;C:\Program Files\CA\AllFusion Harvest Change Manager;C:\Program Files\SecureCRT\;C:\PROGRA~1\F-Secure\Ssh;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;c:\Program files\1E\SMSNomad\;C:\j2sdk1.4.2_06\jre\bin;C:\Program Files\IDM Computer Solutions\UltraEdit-32;C:\Program Files\IBM\Installation Manager\eclipse\lib;C:\Program Files\CA\Cryptography\;C:\Program Files\CA\R71\AllFusion Harvest Change Manager;C:\IBM\WebSphere MQ Client\bin;C:\IBM\WebSphere MQ Client\tools\c\samples\bin;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL
    java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
    java.runtime.name Java(TM) SE Runtime Environment
    java.runtime.version 1.6.0_07-b06
    java.specification.name Java Platform API Specification
    java.specification.vendor Sun Microsystems Inc.
    java.specification.version 1.6
    java.util.logging.config.file logging.conf
    java.vendor Sun Microsystems Inc.
    java.vendor.url http://java.sun.com/
    java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
    java.version 1.6.0_07
    java.vm.info mixed mode
    java.vm.name Java HotSpot(TM) Client VM
    java.vm.specification.name Java Virtual Machine Specification
    java.vm.specification.vendor Sun Microsystems Inc.
    java.vm.specification.version 1.0
    java.vm.vendor Sun Microsystems Inc.
    java.vm.version 10.0-b23
    jdbc.driver.home /C:/oracle/product/10.2.0/client_1/
    jdbc.library /C:/oracle/product/10.2.0/client_1/jdbc/lib/ojdbc14.jar
    line.separator \r\n
    oracle.home C:\sqldeveloper
    oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG true
    oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
    oracle.xdkjava.compatibility.version 9.0.4
    orai18n.library /C:/oracle/product/10.2.0/client_1/jlib/orai18n.jar
    os.arch x86
    os.name Windows XP
    os.version 5.1
    path.separator ;
    reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
    sun.arch.data.model 32
    sun.boot.class.path C:\Program Files\Java\jdk1.6.0_07\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_07\jre\classes
    sun.boot.library.path C:\Program Files\Java\jdk1.6.0_07\jre\bin
    sun.cpu.endian little
    sun.cpu.isalist
    sun.desktop windows
    sun.io.unicode.encoding UnicodeLittle
    sun.java2d.ddoffscreen false
    sun.jnu.encoding Cp1252
    sun.management.compiler HotSpot Client Compiler
    sun.os.patch.level Service Pack 2
    user.country US
    user.dir C:\sqldeveloper\sqldeveloper\bin
    user.home C:\Documents and Settings\X626730
    user.language en
    user.name a641421
    user.timezone America/New_York
    user.variant
    windows.shell.font.languages
    Extensions
    Name Identifier Version Status
    ==== ========== ======= ======
    Check For Updates oracle.ide.webupdate 11.1.1.0.22.49.42 Loaded
    Code Editor oracle.ide.ceditor 11.1.1.0.22.49.42 Loaded
    Database Connection Support oracle.jdeveloper.db.connection 11.1.1.0.22.49.42 Loaded
    Database Object Explorers oracle.ide.db.explorer 11.1.1.0.22.49.42 Loaded
    Database UI oracle.ide.db 11.1.1.0.22.49.42 Loaded
    Diff/Merge oracle.ide.diffmerge 11.1.1.0.22.49.42 Loaded
    Extended IDE Platform oracle.javacore 11.1.1.0.22.49.42 Loaded
    External Tools oracle.ide.externaltools 11.1.1.0.22.49.42 Loaded
    Feedback oracle.ide.feedback 11.1.1.0.22.49.42 Loaded
    File Support oracle.ide.files 11.1.1.0.22.49.42 Loaded
    File System Navigator oracle.sqldeveloper.filenavigator 11.1.1.54.40 Loaded
    Help System oracle.ide.help 11.1.1.0.22.49.42 Loaded
    History Support oracle.jdeveloper.history 11.1.1.0.22.49.42 Loaded
    Import/Export Support oracle.ide.importexport 11.1.1.0.22.49.42 Loaded
    Log Window oracle.ide.log 11.1.1.0.22.49.42 Loaded
    Mac OS X Adapter oracle.ideimpl.apple 11.1.1.0.22.49.42 Loaded
    Navigator oracle.ide.navigator 11.1.1.0.22.49.42 Loaded
    Object Gallery oracle.ide.gallery 11.1.1.0.22.49.42 Loaded
    Object Viewer oracle.sqldeveloper.oviewer 11.1.1.54.40 Loaded
    Oracle IDE oracle.ide 11.1.1.0.22.49.42 Loaded
    Oracle Microsoft Access Browser oracle.sqldeveloper.thirdparty.access 11.1.1.54.40 Loaded
    Oracle Migration Workbench oracle.sqldeveloper.migration 11.1.1.54.40 Loaded
    Oracle Migration Workbench - MS Access oracle.sqldeveloper.migration.msaccess 11.1.1.54.40 Loaded
    Oracle Migration Workbench - MySQL oracle.sqldeveloper.migration.mysql5 11.1.1.54.40 Loaded
    Oracle Migration Workbench - SQLServer oracle.sqldeveloper.migration.sqlserver2005 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation Core oracle.sqldeveloper.migration.translation.core 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation MS Access oracle.sqldeveloper.migration.translation.msaccess 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation MS SQL Server oracle.sqldeveloper.migration.translation.sqlserver 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation MySQL oracle.sqldeveloper.migration.translation.mysql 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation Sybase oracle.sqldeveloper.migration.translation.sybase 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation UI oracle.sqldeveloper.migration.translation.gui 11.1.1.54.40 Loaded
    Oracle MySQL Browser oracle.sqldeveloper.thirdparty.mysql 11.1.1.54.40 Loaded
    Oracle SQL Developer oracle.sqldeveloper 11.1.1.54.40 Loaded
    Oracle SQL Developer Extras oracle.sqldeveloper.extras 11.1.1.54.40 Loaded
    Oracle SQL Developer Reports oracle.sqldeveloper.report 11.1.1.54.40 Loaded
    Oracle SQL Developer SearchBar oracle.sqldeveloper.searchbar 11.1.1.54.40 Loaded
    Oracle SQL Developer TimesTen oracle.sqldeveloper.timesten 1.5.1.1.2 Loaded
    Oracle SQL Server Browser oracle.sqldeveloper.thirdparty.sqlserver 11.1.1.54.40 Loaded
    Oracle Sybase Browser oracle.sqldeveloper.thirdparty.sybase 1.2.1.54.40 Loaded
    Oracle XML Schema Support oracle.sqldeveloper.xmlschema 11.1.1.54.40 Loaded
    PROBE Debugger oracle.jdeveloper.db.debug.probe 11.1.1.0.22.49.42 Loaded
    Peek oracle.ide.peek 1.0 Loaded
    Replace With oracle.ide.replace 11.1.1.0.22.49.42 Loaded
    Runner oracle.ide.runner 11.1.1.0.22.49.42 Loaded
    SQL Worksheet Window oracle.sqldeveloper.sqlworksheet 11.1.1.54.40 Loaded
    Search Bar oracle.ide.searchbar 11.1.1.0.0 Loaded
    Snippet Window oracle.sqldeveloper.snippet 11.1.1.54.40 Loaded
    Sybase 12 oracle.sqldeveloper.migration.sybase12 11.1.1.54.40 Loaded
    Sybase 15 oracle.sqldeveloper.migration.sybase15 11.1.1.54.40 Loaded
    Tuning oracle.sqldeveloper.tuning 11.1.1.54.40 Loaded
    VHV oracle.ide.vhv 11.1.1.0.22.49.42 Loaded
    Versioning Support oracle.jdeveloper.vcs 11.1.1.0.22.49.42 Loaded
    Versioning Support for CVS oracle.jdeveloper.cvs 11.1.1.0.22.49.42 Loaded
    Versioning Support for Subversion oracle.jdeveloper.subversion 11.1.1.0.22.49.42 Loaded
    Web Browser and Proxy oracle.ide.webbrowser 11.1.1.0.22.49.42 Loaded
    oracle.ide.dependency oracle.ide.dependency 11.1.1.0.22.49.42 Loaded
    oracle.ide.indexing oracle.ide.indexing 11.1.1.0.22.49.42 Loaded

    Using Windows XP/Vista...
    After testing in our environment, it appears that SQL Developer 1.5.1 (5440) does in fact ignore the TNS_ADMIN environment variable and ONLY looks in the Oracle Home directory (network/admin). We define a central network location for our tnsnames file and have the tns_admin setup to point there instead of locally for our users.
    When selecting to add a new connection (in 1.5.1, it works in previously releases... meaning 1.2.something) and selecting TNS, the drop-down remains empty. However, if I exit SQL Developer and then copy the tnsnames file to the local network/admin directory I can then re-launch SQL Developer and the drop-down is populated. Exiting SQL Developer again, deleting the local copy of tnsnames, and then launching SQL Developer yet again results in the drop-down being empty.
    All other Oracle-related applications function as expected (as they have for years) using the TNS_ADMIN environment variable.
    Any suggestions/ideas?

  • Connection to db works with ezconnect but fails with tnsnames.ora

    Hi,
    When I try to connect to remote datbase using 10g ezconnect, it works fine. But when I tried to connect to same database using tnsnames.ora, it fails:
    sqlnet.ora on client side:
    ================
    ###SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH=(tnsnames, onames, hostname, ezconnect)
    tnsnames.ora on client side
    =================
    MRAP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = moody)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = MRAP.ALBILAD.COM)
    Listener On DB Server:
    ===============
    $ lsnrctl status
    LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production on 04-APR-2010 16:29:16
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=moody)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production
    Start Date 04-APR-2010 16:28:59
    Uptime 0 days 0 hr. 0 min. 16 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP ON
    Listener Parameter File /u01/app/oracle/product/10.2.0/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=moody)(PORT=1521)))
    Services Summary...
    Service "mrap.albilad.com" has 1 instance(s).
    Instance "mrap", status READY, has 1 handler(s) for this service...
    Service "mrapXDB.albilad.com" has 1 instance(s).
    Instance "mrap", status READY, has 1 handler(s) for this service...
    Service "mrap_XPT.albilad.com" has 1 instance(s).
    Instance "mrap", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Now, on client, when I connect with each of methods written above, following is output:
    C:\Documents and Settings\c900796>sqlplus ingrian/[email protected]:1521/mrap.albilad.com
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 4 16:57:18 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> show user;
    USER is "INGRIAN"
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64
    bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    C:\Documents and Settings\c900796>sqlplus ingrian/ingrian@mrap
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 4 16:57:25 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Enter user-name:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    C:\Documents and Settings\c900796>
    What do you suspect could be the issue?
    Br,
    Anjum

    C:\Documents and Settings\c900796>sqlplus ingrian/ingrian@mrap
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 4 16:57:25 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specifiedstates, in no uncertain terms, that the system can not find the @mrap in the TNS translation methods. Usually that indicates a problem in finding the correct entry in the correct tnsnames.ora file. Some related thoughts:
    1) The LIST of methods allowed is found in SQLNET.ORA on the client. If multiple methods are in the list, the client will step through the methods.
    It is possible that you do not have method calling the TNSNAMES.ORA file in the list. (You appear to have that.)
    2) The mrap must be one of the entries on the left hand side of te equals sign of a stanza.
    MRAP = (DESCRIPTION (appears to provide that)
    3) The SQLNET.ORA could provide a 'default domain' to append on the end of the lookup value in TNSNAMES.ORA
    Not sure whether your post of the sqlnet.ora selectred only a few lines or the entire file.
    4) Variable issues can exist.
    - The TNS_ADMIN variable may be used to force the use of a specific directory instead of %ORACLE_HOME%\network\admin .
    - ORACLE_HOME can be adjusted by a variety of methods, and may be in both teh registry and the system environment

  • Connecting to a database that's not in tnsnames.ora

    Hi there,
    I'm using Oracle 8.1.6/Apache/PHP & would like to be able to connect to a database that's not listed in the local tnsnames.ora (by local, i mean the machine that's serving the web pages).
    Is this possible?
    Thanks!

    I'm not sure that you can use this in PHP/Apache, but when I used Oracle Enterprise Manager (which isn't ported to Linux so I had to use a different machine (NT/Solaris)) I used the format ipaddress:port:SID (ex.: 192.168.0.5:1521:cddata), where ipaddress is the address of your machine, port is the port number of the listener on the database (defulat is 1521) and SID is the SID of the database you want to access.
    I hope this helps.

  • SQL Developer is not able to identify the Tnsnames.ora file

    Hi,
    I have installed the following in the laptop having Win XP:
    1) Oracle 10gR2 Client software in the D: drive of laptop. Tnsnames.ora is located in this clients Network\Admin path. This client is used to access the databases on the other servers.
    2) Oracle 10gR2 Database software in the E: drive of laptop. Right now there is not Tnsnames.ora file in this softwares Network\Admin path. This db software has been installed to create local databases in the laptop.
    3) Oracle SQL Developer Version 2.1.1.64 is also installed in C: drive of laptop.
    The problem which now I'm facing is that the SQL Developer is not able to identify the Tnsnames.ora file mentioned in the above point-1 which contains entries of databases on the different servers. Could you please help me out in solving this problem?
    Thanks in advance.
    MAK

    I forget what version I was using at the time, but when I had an ORACLE_HOME defined for the environment and TNSNAMES file defined in SQL Developer (different one than was in ORACLE_HOME), that I would see results from both tns files. I don't know if that is still the case. I have since dropped my ORACLE_HOME environmental variable.

  • ASM instance not shown in tnsnames.ora

    Hi,
    Currently I have an Oracle 11g database on linux with ASM installed, or at least that's what I can tell from querying v$logfile and v$datafile views. But in my tnsnames.ora and listner.ora I only see the db instance with no ASM instance. If I goto $ORACLE_BASE/admin, I see ASM and orcl. But under $ORACLE_BASE/admin/+ASM/pfile, I see no files.
    This is a vm image by the way. The database is running fine as far as i can tell. My question is why there is no ASM entries in the above files?
    Thanks for the help.

    ASM instance is not used by applications users. It is used by Oracle which can see it, so you do not need any entry in tnsnames.ora for ASM instance. Also ASM instance usage init.ora file from $ORACLE_HOME/dbs directory, so you do not see any file in admin/pfile directory.
    Regards

  • Toad with Oracle Instant Client 10.2.0.1.0(not able to locate tnsnames.ora

    Hi,
    I have both Oracle Client 9.2 and Instant Client 10.2.0.1.0 on my laptop. How to make Toad 8.5.1 locate tnsnames.ora file for instant client.
    When I open Toad, and selects "Instant Client 10.2.0.1.0" as installed client, it shows the error message "tnsnames.ora not found!"
    Below is the setting:
    Instant Client - 10.2.0.1.0
    ORACLE_HOME_NAME: C:\Program Files\PHP\
    ORACLE_HOME: C:\Program Files\PHP\
    ORACLE_SID:
    NLS_LANG:
    SQLPATH:
    LOCAL:
    C:\Program Files\PHP\ exists.
    C:\Program Files\PHP\ is in PATH.
    Client DLL: C:\Program Files\PHP\oci.dll
    Client Version: 10.2.0.1.0
    Home is valid.
    Thanks
    Ashutosh

    Sal, your comment is pretty irrelevant to the question :^)
    user570251, since you are restricted to using Windows, it will not be easy for you to use two different Oracle clients on the same machine.
    Basically, you'll have to change TNS_ADMIN whenever you want to change between clients.
    Why do you need two client versions on your computer?
    Yours,
    Laurenz Albe

  • Tnsnames.ora, sqlnet.ora & listener.ora files are not exit

    DB version: 10.2
    Hello All,
    I just joined the project and notice tnsnames.ora, sqlnet.ora & listener.ora files are not exit under $ORACLE_HOME/network/admin.
    But still we can connect to the database,
    From command prompt or via enterprise manager studio from client site.
    Any idea?
    OR
    what is the best way to create above files in the existing database?
    DN

    tnsnames.ora and sqlnet.ora are client side files, listener.ora and sqlnet.ora are server side files.
    Listener.ora need not exist if using defaults and dynamic registration of services. It may be possible to cope without all those files, depending on the environment.
    Is the database on the local or remote computer and how are you connecting (from sqlplus)?
    Maybe you have a tnsnames.ora somwhere else? (Try using find command) Maybe TNS_ADMIN is set?

  • Ora:contains() does not work

    Hi All,
    Can not see why the following query yelds no result:
    SQL> select e.extract('/experimentDocument/data/rawData/fileDscr/notes/HTML/
    2 BODY/P/text()') from EXPDOC e where
    3 existsNode(value(e),'/experimentDocument/data/rawData/fileDscr/notes/HTML/
    4 BODY/P[ora:contains(.,"note")]','xmlns:ora="http://xmlns.oracle.com/xdb"')
    5 =1;
    no rows selected
    The similar query works:
    SQL> select e.extract('/experimentDocument/data/rawData/fileDscr/notes/HTML/
    2 BODY/P/text()') from EXPDOC e where
    3 existsNode(value(e),'/experimentDocument/data/rawData/fileDscr/notes/HTML/
    4 BODY/P[contains(.,"note")]','xmlns:ora="http://xmlns.oracle.com/xdb"')
    5 =1;
    E.EXTRACT('/EXPERIMENTDOCUMENT/DATA/RAWDATA/FILEDSCR/NOTES/HTML/BODY/P/TEXT()')
    There is "note" space available for each file description.
    May be it's a privilege problem, because I can not see
    DEFAULT_POLICY_ORACONTAINS policy. How to check whether this policy is accesseble?
    Any help will be appreciated,
    Boris

    You use ora:contains with score.
    Try 'ora:contains(text(),"note")>0' instead of
    'ora:contains(.,"note")'.
    Shogo

  • ORA-27101 and htmldb not working

    I'v downloaded and installed ODB 10c Express Edition, bu can't get running nothing
    Can't connect with sqlplus and htmldb also not working.
    Windows XP Proffessional SP2
    SQL> connect "SYS"/"&&sysPassword" as SYSDBA
    ERROR:
    ORA-12705: Cannot access NLS data files or invalid environment specified
    SQL> set echo on
    SQL> //create or replace directory DB_BACKUPS as 'C:\oraclexe\app\oracle\flash_recovery_area';
    SP2-0640: Not connected
    SQL> begin
    2      dbms_xdb.sethttpport('8080');
    3      dbms_xdb.setftpport('0');
    4 end;
    5 /
    SP2-0640: Not connected
    SQL> create spfile='C:\oraclexe\app\oracle\product\10.2.0\server\dbs/spfileXE.ora' FROM pfile='C:\oraclexe\app\oracle\product\10.2.0\server\config\scripts\init.ora';
    SP2-0640: Not connected
    SQL> shutdown immediate;
    ORA-01012: not logged on
    SQL> connect "SYS"/"&&sysPassword" as SYSDBA
    ERROR:
    ORA-12705: Cannot access NLS data files or invalid environment specified
    SQL> startup ;
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file 'C:\oraclexe\app\oracle\product\10.2.0\server\dbs/spfileXE.ora'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    SQL> select 'utl_recomp_begin: ' || to_char(sysdate, 'HH:MI:SS') from dual;
    SP2-0640: Not connected
    SQL> execute utl_recomp.recomp_serial();
    SP2-0640: Not connected
    SP2-0641: "EXECUTE" requires connection to server
    SQL> select 'utl_recomp_end: ' || to_char(sysdate, 'HH:MI:SS') from dual;
    SP2-0640: Not connected
    SQL> alter user hr password expire account lock;
    SP2-0640: Not connected
    SQL> alter user ctxsys password expire account lock;
    SP2-0640: Not connected
    SQL> alter user outln password expire account lock;
    SP2-0640: Not connected
    SQL> spool off;

    We have checked, this is a known bug.Bug 4657820 - NLS:XENT10201-050913:FAIL TO INSTALL WINDOWS XE UNDER RUSSIAN LOCALE.
    The simptom is that installation fails without error messages when the installation is performed under the following locale.
    - Russian
    - Estonian
    - English - South Africa
    - Spanish - Dominican Republic
    The workaround is to change the user locale to something else before the XE installation.

Maybe you are looking for

  • Wf or Screen Variant for ME11

    Hello Friends, Greetings!!!!!!!! I am in need to make the Purchse Order Fully automated. I.e. When the Purchase person enter Vendor, PO Herder Data(Pur. Org, Pur. Group,, Company code), and make the PR Read to PO it should read all the data from PR +

  • Field-symbols as pgae attributes?

    Hi all, i have the problem of including a page fragment two times in the same page. In this fragment i declare a field symbol. And when i try to compile the code it crashes. I need to declare it somewhere, so that just one declaration have to take pl

  • Cross company stock transp - billing

    Dear All, I've created: 1. PO 2. Delivery with reference to PO 3. picking and PGI for the Delivery 4. GR for Delivery Now, I would like to do billing, and I get the Delivery in VF04. The problem is that I receive error message and checking the log SA

  • I need applescript to change all files in a folder and its subfolders ending in .xlsx changed to .xlsb

    I need applescript to change all files in a folder and its subfolders ending in .xlsx changed to .xlsb

  • Missing 4638 of my tracks after swap from Mac to PC!!

    Hi guys, Im having a massive issue of the dreaded ! showing in my itunes library 4638 songs this has happened with. All i did was swap from my imac which has all my songs on there, to my laptop. As i have no room for my imac anymore, so transferring