48 character limit on TNS Service Name

In the Oracle ODBC Driver Configuration Dialogue Box there is a 48 character limit in the TNS Service name file. In my case, I need 56 characters if I use the //HOST:PORT/service_name format. The service_name is the format SID.host. The full TNS service name can get quite long since the host is repeated twice.
For me a workable workarounds is to use the IP address in the HOST field (but not the service_name). I didn't test, but another workaround I presume is to use a TNS_NAMES.ora file, but that adds complexity to a tool that's supposed to be simple.
Better yet, Oracle developers need to make the TNS service name field a bit longer (96 chars?).
Now that it is working I am happy with the concept and usability of the Instant Client.
Trenton

Hi!
I found the error:
TNS_ADMIN=C:\Oracle\instantclient_10_2\network\admin\tnsnames.oraThat's wrong. The environment variable TNS_ADMIN has to point to the directory containing the tnsnames.ora file; it must not contain the complete path to the tnsnames.ora file.
After changing TNS_ADMIN to C:\Oracle\instantclient_10_2\network\admin, all is fine.
Thanks,
Alexander

Similar Messages

  • TNS Service Names

    I am unable to get the ODBC Driver version 8.1.6.4.0 to get a list of TNS Service names from a shared TNSNAMES.ORA file. If I type in the service name and test the connection the test is successfull so I know that the shared file is being used. Is there a way to get the TNS services from a shared tnsnames.ora file to be listed in the pulldown?

    Can future versions of the ODBC driver get the location of the TNS names file from the registry if the TNS_ADMIN value exists for the ORACLE HOME corresponding to the ODBC driver you are using?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Justin Cave ([email protected]):
    If I remember correctly, when I implemented the TNS name dropdown, I blindly grab the tnsnames.ora file in the local Oracle home. If the shared file isn't there, I wouldn't expect this to work.
    Justin<HR></BLOCKQUOTE>
    null

  • Resolving a Server Name from a TNS Service Name

    A computer client has an Oracle ODBC connection that is attached to a TNS Service Name "X". The TNS Service Name is running in Server "Y".
    Does anybody know a quick way to resolve the Server Name "Y" from the TNS Service Name "X" ???
    Our current solution is based on opening the file tnsnames.ora, which is normally located in $ORAHOME\network\ADMIN\TNSNAMES.ORA, and by parsing the file resolve the server name. However, we were wondering if there would be a more reliable way to do this. Is there an Oracle API that we can execute? Something like "GetHostName(TNSServiceName)"?
    Many Thanks

    tring TNSPING <service>
    the outputline contents the HOSTname

  • Resolving the Server Name from a TNS Service name

    A computer client has an Oracle ODBC connection that is attached to a TNS Service Name "X". The TNS Service Name is running in Server "Y".
    Does anybody know a quick way to resolve the Server Name "Y" from the TNS Service Name "X" ???
    Our current solution is based on opening the file tnsnames.ora, which is normally located in $ORAHOME\network\ADMIN\TNSNAMES.ORA, and by parsing the file resolve the server name. However, we were wondering if there would be a more reliable way to do this. Is there an Oracle API that we can execute? Something like "GetHostName(TNSServiceName)"?
    Many Thanks

    Not that I'm aware of.
    If you were using an Oracle Names server to resolve tnsnames, rather than a tnsnames.ora file, this would be a lot easier. You'd just update the Oracle Names server and all the clients would start pointing at the right machine.
    Justin

  • Oracle8i Start problem - TNS:Service Name Incorrect

    Hi Folks
    My installation of Oracle8i was working fine. I installed webDB today and that was worked fine too.
    But before shutting down the machine I forgot to shutdown the database.
    When I reboot and try to start the database as root thus: ./oracle8i start, I get the following error -
    ORA-12162 TNS:Service name is incorrectly specified.
    Looks like something is wrong with SID or TNSNAMES.
    Could somebody suggest a solution please.
    Thanks.

    For information sake, if someone else comes across the same situation, here is the cause and solution:
    When webDB2.2 is installed it seems to make an entry in the /etc/oratab file for the service name that is provided during installation. Cosequently my 'oratab' file went from:
    ora8i:/../oracle/product/8.1.6:Y
    To:
    *:/../oracle/product/8.1.6:Y
    ora8i:/../oracle/product/webdb22:N
    Hence the problem when 'oratab' is invoked.
    I don't know if webDB is supposed to make this kind of a change.
    I replaced the '*' with 'ora8i' and everything works fine including webDB

  • TNS Service Name

    While I am configuring DNS for Oracle 10g at that time i come to the TNS Service Name
    but as i dnt know what TNS Service means ?? I wanted to know what does it stand for ?
    And also I am seeing three options to select named as below
    EXTPROC_CONNECTION_DATA
    ORACLR_CONNECTION_DATA
    XE
    I also wanted to know the purpose of each above attributes. So please Guide me..!! and know me what it means ?? Thanks in advance

    You can refer this http://www.ispirer.com/wiki/sqlways/users-guide/setting-up-database-connection/oracle/tns-service-name
    TNS service name is used to connect to a database remotely.
    PROD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <HOSTNAME>)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = prim)
    In the above example, PROD is the NET ORACLE SERVICE NAME(alias name). This is used while connecting to the database from the remote server.
    Host is the hostname where the database resides.
    SERVICE_NAME is the db_unique_name of the database that you are connecting.
    So when connecting to the database remotely, you use
    sqlplus username/<password>@<connection string>
    sqlplus username/<password>@<prod>

  • TNS service name gives preference to connect instance which is in a mount

    OS:HPUX
    Oracle version: 11.1.0.7
    why TNS service name give preference to connect instance which is in a mount mode and dsiaply 'ORA-01033' as mentioned below.
    I wanted to connect only instance which are OPEN(not MOUNT) using connect string and want to know status of all instances using SQL query "select instance_name,status from gv$instance". How can I achive this?
    I have four node rac cluster and four instance, one instance on each node and status of instances are as shown below
    SQL> select instance_name,status from gv$instance;
    INSTANCE_NAME STATUS
    dtrac1 OPEN
    dtrac4 STARTED
    dtrac3 OPEN
    dtrac2 MOUNTED
    I have tried to connect using "dtrac" service name ( details of tnsnames gives below) from any node it gives priority to instance which is mount and shows following error messages
    SQL> conn system/vcs@dtrac
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress Process ID: 0 Session ID: 834 Serial number: 139
    Warning: You are no longer connected to ORACLE.
    SQL> conn system/vcs@dtrac
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress Process ID: 0 Session ID: 834 Serial number: 139
    SQL> conn system/vcs@dtrac
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress Process ID: 0 Session ID: 834 Serial number: 139
    SQL>
    when I changes dtrac2 instance to either NOMOUNT or OPEN state then connection properly goes to instances which are OPEN state.
    tnsname.ora file:
    ==================
    # tnsnames.ora Network Configuration File: /oracle/db11g/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    DTRAC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal05-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal06-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal07-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal08-vip)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dtrac)
    DTRAC4 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal08-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dtrac)
    (INSTANCE_NAME = dtrac4)
    DTRAC3 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal07-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dtrac)
    (INSTANCE_NAME = dtrac3)
    DTRAC2 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal06-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dtrac)
    (INSTANCE_NAME = dtrac2)
    DTRAC1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal05-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dtrac)
    (INSTANCE_NAME = dtrac1)
    LISTENERS_DTRAC =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal05-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal06-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal07-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal08-vip)(PORT = 1521))
    LISTENER_DTRAC4 =
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal08-vip)(PORT = 1521))
    LISTENER_DTRAC3 =
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal07-vip)(PORT = 1521))
    LISTENER_DTRAC2 =
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal06-vip)(PORT = 1521))
    LISTENER_DTRAC1 =
    (ADDRESS = (PROTOCOL = TCP)(HOST = slpal05-vip)(PORT = 1521))

    Hi Bjoern
    Thanks again for your input.
    I have some commnet on your input.
    I have started instance in mount mode using sqlplus. But it doesn't make diffrence if I stated using srvctl since service get ready as we started instance either OPEN/MOUNT mode using srvctl or sqlplus.
    As you are saying diffrent way of configuration of service by mentioning preferred and available attributes for instances but its not useful to know instances which are open. Its useful for segregate work to specific nodes by creating diffrent services for diffrent application.
    'crs_stat -t' shows resources online even instance is either nomount/mount/open state. I want to exact state of instance so its not useful for me.
    Below example showing service get READY status even I start instanc with mount option using SRVCTL
    (oracle@slpal06)[~/db11g/network/admin] srvctl stop instance -d dtrac -i dtrac2
    (oracle@slpal06)[~/db11g/network/admin] lsnrctl stat
    LSNRCTL for HPUX: Version 11.1.0.7.0 - Production on 17-JUN-2009 18:10:03
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER_SLPAL06
    Version TNSLSNR for HPUX: Version 11.1.0.7.0 - Production
    Start Date 03-JUN-2009 20:38:19
    Uptime 13 days 21 hr. 31 min. 45 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /oracle/db11g/network/admin/listener.ora
    Listener Log File /oracle/db11g/diag/tnslsnr/slpal06/listener_slpal06/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.209.138.26)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.209.137.145)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
    Services Summary...
    Service "dtrac" has 3 instance(s).
    Instance "dtrac1", status READY, has 1 handler(s) for this service...
    Instance "dtrac3", status READY, has 1 handler(s) for this service...
    Instance "dtrac4", status READY, has 1 handler(s) for this service...
    Service "dtracXDB" has 3 instance(s).
    Instance "dtrac1", status READY, has 1 handler(s) for this service...
    Instance "dtrac3", status READY, has 1 handler(s) for this service...
    Instance "dtrac4", status READY, has 1 handler(s) for this service...
    Service "dtrac_XPT" has 3 instance(s).
    Instance "dtrac1", status READY, has 1 handler(s) for this service...
    Instance "dtrac3", status READY, has 1 handler(s) for this service...
    Instance "dtrac4", status READY, has 1 handler(s) for this service...
    The command completed successfully
    (oracle@slpal06)[~/db11g/network/admin] srvctl start instance -d dtrac -i dtrac2 -o mount (oracle@slpal06)[~/db11g/network/admin] lsnrctl stat
    LSNRCTL for HPUX: Version 11.1.0.7.0 - Production on 17-JUN-2009 18:11:19
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER_SLPAL06
    Version TNSLSNR for HPUX: Version 11.1.0.7.0 - Production
    Start Date 03-JUN-2009 20:38:19
    Uptime 13 days 21 hr. 33 min. 2 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /oracle/db11g/network/admin/listener.ora
    Listener Log File /oracle/db11g/diag/tnslsnr/slpal06/listener_slpal06/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.209.138.26)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.209.137.145)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
    Services Summary...
    Service "dtrac" has 4 instance(s).
    Instance "dtrac1", status READY, has 1 handler(s) for this service...
    Instance "dtrac2", status READY, has 2 handler(s) for this service...
    Instance "dtrac3", status READY, has 1 handler(s) for this service...
    Instance "dtrac4", status READY, has 1 handler(s) for this service...
    Service "dtracXDB" has 3 instance(s).
    Instance "dtrac1", status READY, has 1 handler(s) for this service...
    Instance "dtrac3", status READY, has 1 handler(s) for this service...
    Instance "dtrac4", status READY, has 1 handler(s) for this service...
    Service "dtrac_XPT" has 4 instance(s).
    Instance "dtrac1", status READY, has 1 handler(s) for this service...
    Instance "dtrac2", status READY, has 2 handler(s) for this service...
    Instance "dtrac3", status READY, has 1 handler(s) for this service...
    Instance "dtrac4", status READY, has 1 handler(s) for this service...
    The command completed successfully
    (oracle@slpal06)[~/db11g/network/admin]

  • TNS Service Name selector for ODBC config on W2k shows trash w/ IC 10g

    Hello!
    I'm having some problems with the Instant Client 10g on a Windows 2000 Server SP4 machine. On this machine, I'm trying to setup a ODBC connection and fail, as the "TNS Service Name" list only contains "junk". Please see the screenshot at
    http://server3.pictiger.com/img/613385/computer-games-and-screenshots/w2k-oracle-odbc-tns-service-name-trash.php
    To get so far, I downloaded and unzipped the following files to C:\Oracle\instantclient_10_2:
    * instantclient-basic-win32-10.2.0.2-20060508.zip
    * instantclient-odbc-win32-10.2.0.2-20060508.zip
    * instantclient-sqlplus-win32-10.2.0.2-20060508.zip
    Next, I added some System environment variables:
    * ORACLE_HOME=C:\Oracle\instantclient_10_2
    * TNS_ADMIN=C:\Oracle\instantclient_10_2\network\admin\tnsnames.ora
    To PATH, I added (at the end): C:\Oracle\instantclient_10_2. After having done so, I created the file C:\Oracle\instantclient_10_2\network\admin\tnsnames.ora, which contains exactly this (see http://vz6tml.pastebin.ca/211376):
    ORABDE.EUROPE.DELPHIAUTO.NET =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.233.30.8)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = orabde.delphi)
        )That's the only file with "tnsname" in its name on the local harddrives of this server.
    After having done all of this, I ran odbc_install and had the server rebooted later in the night.
    This morning, ie. after reboot, I logged on to the system and started the "Data Sources (ODBC)" configuration of Windows 2000. I clicked on "Add" and selected "Oracle in instantclient10-2". Then I expanded the list of the available TNS Service Name entries and see only junk. On a different W2k server, I am able to setup a ODBC connection using the Oracle Instant Client 10g.
    What am I doing wrong, and how do I do it correctly?
    Thanks a lot,
    Alexander

    Hi!
    I found the error:
    TNS_ADMIN=C:\Oracle\instantclient_10_2\network\admin\tnsnames.oraThat's wrong. The environment variable TNS_ADMIN has to point to the directory containing the tnsnames.ora file; it must not contain the complete path to the tnsnames.ora file.
    After changing TNS_ADMIN to C:\Oracle\instantclient_10_2\network\admin, all is fine.
    Thanks,
    Alexander

  • TNS Service Name is : OracleORACLE_HOMETNSListener and is failing to start

    I think one of my guys has been messing with the configuration of my Oracle 10g server and not being an expert in this I am somewhat bermused !!
    Can anyone tell me where the TNS Service is picking up its name from....as you can see it contains ORACLE_HOME instead of the name of the oracle instance.
    Please help me if you can
    Many Thanks in advance,
    Andy

    I have copied just some of the lines from the entries from yesterday (no entries for today) I hope this will give you enough information :
    24-NOV-2010 09:00:02 * (CONNECT_DATA=(SID=BOBJCMS)(CID=(PROGRAM=C:\oracle\product\10g\perl\5.8.3\bin\MSWin32-x64-multi-thread\perl.exe)(HOST=QCI)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.223)(PORT=62821)) * establish * BOBJCMS * 0
    24-NOV-2010 09:00:06 * service_update * bobjcms * 0
    24-NOV-2010 09:00:43 * ping * 0
    24-NOV-2010 09:00:43 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=QCI.euroking.com)(PORT=1521)))(VERSION=169870336)) * status * 0
    24-NOV-2010 09:00:52 * (CONNECT_DATA=(SID=BOBJCMS)(CID=(PROGRAM=C:\oracle\product\10g\perl\5.8.3\bin\MSWin32-x64-multi-thread\perl.exe)(HOST=QCI)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.223)(PORT=62908)) * establish * BOBJCMS * 0
    24-NOV-2010 09:02:19 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=services)(ARGUMENTS=64)(SERVICE=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=QCI.euroking.com)(PORT=1521))))(VERSION=169870336)) * services * 0
    24-NOV-2010 09:02:20 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=QCI.euroking.com)(PORT=1521)))(VERSION=169870336)) * status * 0
    24-NOV-2010 09:04:43 * service_update * qci * 0
    24-NOV-2010 09:04:46 * service_update * bobjcms * 0
    24-NOV-2010 09:04:58 * service_update * qci * 0
    24-NOV-2010 09:05:20 * service_update * bobjcms * 0
    24-NOV-2010 09:05:31 * service_update * qci * 0
    24-NOV-2010 09:05:43 * ping * 0
    24-NOV-2010 09:05:43 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=QCI.euroking.com)(PORT=1521)))(VERSION=169870336)) * status * 0
    24-NOV-2010 09:05:52 * (CONNECT_DATA=(SID=BOBJCMS)(CID=(PROGRAM=C:\oracle\product\10g\perl\5.8.3\bin\MSWin32-x64-multi-thread\perl.exe)(HOST=QCI)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.223)(PORT=63355)) * establish * BOBJCMS * 0
    24-NOV-2010 09:05:59 * service_update * bobjcms * 0
    24-NOV-2010 09:06:01 * service_died * bobjcms * 12547
    TNS-12547: TNS:lost contact
    24-NOV-2010 09:06:01 * service_died * qci * 12547
    TNS-12547: TNS:lost contact
    24-NOV-2010 09:06:03 * (CONNECT_DATA=(SID=BOBJCMS)(CID=(PROGRAM=C:\oracle\product\10g\bin\emagent.exe)(HOST=QCI)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.223)(PORT=63673)) * establish * BOBJCMS * 12505
    TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
    and these are from the sqlnet.log :
    Fatal NI connect error 12541, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=qci.euroking.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=BOBJ_CMS)(SERVER=DEDICATED)(CID=(PROGRAM=C:\oracle\product\10g\jdk\jre\bin\java.exe)(HOST=QCI)(USER=Administrator))))
    VERSION INFORMATION:
         TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 10.2.0.4.0 - Production
    Time: 25-NOV-2010 10:09:24
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12541
    TNS-12541: TNS:no listener
    ns secondary err code: 12560
    nt main err code: 511
    TNS-00511: No listener
    nt secondary err code: 61
    nt OS err code: 0

  • TNS service name error

    Hi. I faced some problems when I try to create a linkage between 2 DB on 2 different machine. Initially there is a linkage between these DBs, which connect DB A to DB B.
    I can get DB B's data when I logon to DB A.
    Then I want to create another linkage which connect DB B to DB A but failed.
    The sql statement I used to create the linkage is:
    create public database link L_TEST
    connect to DB_B_USER
    using 'DB_B';
    but this error occured:
    ORA-12154: TNS:could not resolve service name
    Please advise. Thank you

    It could be a db_domain problem. Ensure that it is defined the same on both machines. If it is not (and you can't change it) change you db link to include the db_domain in the connect string i.e 'DB_B.world' vice 'DB_B'.

  • Can I override Pro*Fortran's limit on Fortran variable name lengths?

    The Fortran standards put a 31-character limit on the variable names in Fortran code. Some compilers allow you to exceed this as a compiler extension, and, unfortunately, our code has places where we actually do... The present software compiles and runs under with the Ingres 9.2 RDBMS, but we're starting the process of porting the code over to Oracle 11g.
    The Pro*Fortran (we have release 1.8.79.0.0) precompiler only accepts the first 31 characters of a long var name (yes I found that limitation stated in the Pro*Fortran Precompilers guide). What I am wondering is if there is any way to override that and allow a longer name to be used. The Sun studio compiler accepts it, just not the precompiler. Searched the docs and found nothing about overriding things like this.
    If necessary, yes I can shorten the variable names. I'm just trying to minimize the amount of code changes required.
    Jim

    You are correct.
    5 lines below the QUERY DATA SOURCE NAME block property line
    is the ‘where clause’ line
    It already had FAC_ID = :FACILITIES.ID
    I found that if I added my :Blk_name.Pass_cd_num
    I could see it my new bind variable in a system.last_query display.
    I found the QUERY DATA SOURCE NAME below the ‘from query clause’ truely
    is the from clause and it will not except any :Blk_name.item_name
    (Because is is just for tables)
    But the ‘where clause’ property line will except bind_variables
    :Blk_name.item_name is successful in the where clause.
    (where Capturing_devices table being the block’s base table)
    -- **FROM**
    SET_BLOCK_PROPERTY('EMISSION_POINTS',QUERY_DATA_SOURCE_NAME,
    'EMISSION_POINTS A,
    EP_MODES B,
    CAPTURING_DEVICES,
    CONTROL_DEVICES CD');
    -- **WHERE**
    SET_BLOCK_PROPERTY('EMISSION_POINTS', DEFAULT_WHERE,
    'A.ID = B.EP_ID AND
    B.ID = CAPTURING_DEVICES.PARENT_MODE_ID AND F
    CAPTURING_DEVICES.CD_ID = CD.ID AND
    CAPTURING_DEVICES.CD_ID IS NOT NULL AND
    CAPTURING_DEVICES.PARENT_MODE_ID IS NOT NULL AND
    CAPTURING_DEVICES.STACK_ID IS NULL and
    B.FAC_ID = :FACILITIES.ID and CD.NUM = :emission_points.cd_id_num');
    --**ORDER BY**
    SET_BLOCK_PROPERTY('EMISSION_POINTS',ORDER_BY,
    '(A.NUM, C.PARENT_MODE_ID, C.CD_ID)');
    EXECUTE_QUERY;
    I still get a FRM-40505: Oracle error: ‘unable to perform query’
    (I know its because of the way it is coded),
    But I did learn bind variables can work in the where clause.
    Also I tried using the hidden field like you suggested.
    If you put char character field in a where clause it will come out in quotes
    So I assigned it to a block.hidden_item (number) like you suggested
    that did strip off the quotes.
    That left me with passing the value of 31, I need to pass 0031
    I tried to do a LPAD to the value left pad it with zeroes
    But that did not work.
    I went back to my effort in using a cursor loop to populate the block
    Thanks

  • ODBC TNS Service drop down filled with garbage records.

    We have Oracle installed on our network. I am trying to install the Oracle ODBC drivers onto my Windows XP machine to create a connection to use in Crystal Reports XI.
    I do not have any oracle products installed on my machine so I downloaded the basic client and the client odbc zip files and installed them into a local directory and then ran the install odbc exe and added the windows PATH which installed the odbc source. When I add a new Windows ODBC Data Source on the configuration screen the list of TNS Service names is filled with dozens of garbage records. I would guess this is not correct so how do I resolve this? I assume this is suppose to be a list of connections to oracle databases read from a tnsnames.ora file but I could be wrong. I find no tnsnames.ora file on my computer but I assume there is this file in the oracle directories on the server somewhere. I am not sure where to go from here. Can anyone advise on how to get the connections I need and clean up the garbage? Thanks.
    Rick

    Hi,
    I am having the same issue, did you ever resolve this issue ?
    I do have a reg setting and enviroment variable for this setting that both point to the same place and I can actually use odbc to create connections but when I use the drop down list I just get garbage.
    Simular setup to your , xp sp3 , instant client , odbc client , sql client.
    I also have an nls_lang as well as adding the path of the isntall to the path var.

  • TNS: could not resolve service name

    ERROR: ORA-12154: TNS: could not resolve service name
    does any1 know what this means...and how to overcome this problem
    username : scott
    passwd: tiger
    host string: myora
    i have personal oracle8i in d:\oracle
    and d2k in d:\d2k
    it connects with the SQLPlus
    however with d2k when i try to connect it gives the above error
    message.
    does any 1 know a solution to the problem...

    Hello,
    First of all, If you are using PO8i and D2k as a front end
    on single machine,no need of specifying Connect String. You can
    connect using scott,tiger. If still it is giving problem,try
    this one.
    Open TNSNAMES.ORA file from folder NET80/Admin in your PC
    using NOTEPAD. Look there entry for myora. If it is there,Check
    SID,IPAddress or remove word "World" from there. See E.g
    ora816 = -- Your connect string
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = 10.0.0.3) -- IP address
    (Port = 1521)
    (CONNECT_DATA = (SID = ora816) -- Database SID
    Hope it will work...
    Adi

  • JKM DB2 400 column and table name 10 character limit

    I am trying to set up CDC on an iSeries. I have successfully loaded data with the LKM SQL to Oracle, and now I want to set up CDC for the table and am trying to use "JKM DB2 400" . I get invalid token errors when I try to start journalizing, and it appears to be the table and column names, used to set up CDC, which are more than the 10 character limit. Tables like SNP_JRN_SUBSCRIBER seem to come from the getJrnInfo function and other table and column names are hard coded. I want to copy the JKM and reduce all of the names to less than 10 characters.
    Where else are these names used? How does the interface know which table names to use when set to use only journalized data and how can I change it to use the new shorter names? Is there a better solution?

    Thanks to all for assistance. It turns out that the 10 character limit, about which the server people warned me, isn't an issue with my ODBC connection. The invalid token error was being caused by some missing qualifiers in the generated sql which caused appearances of ".tablename" rather than "tablename" and other similar. I was able to modify the knowledge module to eliminate this issue and the CDC worked correctly on my first test.

  • ORA-12154: TNS:could not resolve service name

    Hi Guru's
    i applied Maintainacepack 3480000 patch on my application for upgrading 11.5.7 to11.5.10.2, after completion of patch, I run the autoconfig it has given bellow error, please anybody can help me, i need to finish my task immediately, please provide me the solution.
    autoConfig Profile Phase
    Running Profile Process 1 of 1 for CLN_TOP
    Executing script in InstantiateFile:
    /sgmtemp/prodcomn/admin/install/MSBEP004_dcpsr006osm/clnadmprf.sh
    script returned:
    clnadmprf.sh started at Sun Feb 17 06:24:13 WST 2008
    The environment settings are as follows ...
    ORACLE_HOME : /sgmtemp/prodora/8.0.6
    ORACLE_SID :
    TWO_TASK : msbep004
    PATH : /sgmtemp/prodora/iAS/Apache/perl/bin:/sgmtemp/prodora/8.0.6/bin:/sgmtemp/prodappl/fnd/11.5.0/bin:/sgmtemp/prodappl/ad/11.5.0/bin:/sgmtemp/prodcomn/util/jre/1.1.8/bin:/sgmtemp/prodcomn/util/unzip/unzip::/sgmtemp/prodora/8.0.6/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/sgmtemp/prodora/iAS/Apache/perl/bin:/sgmtemp/prodora/iAS/Apache/perl/bin:/sgmtemp/prodora/8.0.6/bin:/sgmtemp/prodcomn/util/jre/1.1.8/bin:/sgmtemp/prodcomn/util/unzip/unzip:/sgmtemp/prodora/8.0.6/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/usr/java14/jre/bin:/usr/java14/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/sgmtemp/prodappl/bin:/usr/bin/X11:/sbin:/usr/lpp/pd/bin:.
    LD_LIBRARY_PATH : /sgmtemp/prodora/8.0.6/network/jre11/lib/aix/native_threads:/sgmtemp/prodappl/cz/11.5.0/bin:/sgmtemp/prodora/8.0.6/lib:/usr/dt/lib:/usr/openwin/lib
    Executable : /sgmtemp/prodora/8.0.6/bin/sqlplus
    SQL*Plus: Release 8.0.6.0.0 - Production on Sun Feb 17 06:24:13 2008
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve service name
    clnadmprf.sh exiting with status 1
    ERRORCODE = 1 ERRORCODE_END
    .end std out.
    thanks

    Please Apply "Patch 5985992 - TXK AUTOCONFIG ROLLUP PATCH Q (JUL/AUG 2007)", run AutoConfig, and check then.

Maybe you are looking for