RAC and SCAN and TNS

Hi
suppose that I have got a RAC (Oracle 11gR2) environment and my SCAN IPs are
172.21.28.115
172.21.28.116
172.21.28.117
I can define TNS name like this
RAC=(DESCRIPTION =
            (ADDRESS=(PROTOCOL=TCP)(HOST=scan)(PORT=1521))
             (CONNECT_DATA=
                (SERVICE=DEDICATED)
                (SERVICE_NAME=rac.com)
)Consider that I don't want use DNS in client side ,_But my RAC servers have a DNS for SCAN_
for example my application server can't use DNS
Now can I substitute the IPs with scan like follow example ?
RAC=(DESCRIPTION =
            (LOAD_BALANCE=YES)
            (ADDRESS=(PROTOCOL=TCP)(HOST=172.21.28.115)(PORT=1521))
             (ADDRESS=(PROTOCOL=TCP)(HOST=172.21.28.116)(PORT=1521))
             (ADDRESS=(PROTOCOL=TCP)(HOST=172.21.28.117)(PORT=1521))
             (CONNECT_DATA=
                (SERVICE=DEDICATED)
                (SERVICE_NAME=rac.com)
)Do I miss any thing if I don't use DNS in Clients?
thanks

Consider that I don't want use DNS in client side ,But my RAC servers have a DNS for SCANyou can still use VIP to make connectivity even you've configured SCAN.
entry would be same as we were using in 10g.
DB =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = tcp)(HOST = ****)(PORT = 1521))
      (ADDRESS = (PROTOCOL = tcp)(HOST = ****)(PORT = 1521))
      (LOAD_BALANCE = yes)
    (CONNECT_DATA =
      (SERVICE_NAME = DB)
      (FAILOVER_MODE =
        (TYPE = select)
        (METHOD = basic)
        (RETRIES = 20)
        (DELAY = 3)
  )

Similar Messages

  • TNS-12520 when connecting via TCPS on 11gR2 RAC with SCAN Listener

    I am struck trying to implement TCPS on our Oracle RAC SCAN Listener.  I have added to our Oracle 12c systems, but not on a RAC with SCAN.
    I created a wallet and certificate on one of the nodes, and copied it to the node and created auto login on each node.  I exported the trust.jks and identity.jks, and loaded them in my test java program as the trust store and key stores.  I have added the wallet location to the listener tns and sql  ora files.
    When attempting a TCPS connection, the ssl handshake succeed, but the client reports error:
    ORA-12520, TNS:listener could not find available handler for requested type of server
    The nodes scan listener log reports the TNS error, listener_scan1/alert/log.xml, when the connection is using TCPS on port 2484:
    <msg time='2015-04-29T14:06:20.629-04:00' org_id='oracle' comp_id='tnslsnr'  type='UNKNOWN' level='16' host_id='dublr059vm.dub.usoh.ibm.com'  host_addr='9.55.59.45'>
    <txt>29-APR-2015 14:06:20 * (CONNECT_DATA=(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=tcarlson))
    (SERVER=DEDICATED)(SERVICE_NAME=DUB11RAC)) * (ADDRESS=(PROTOCOL=tcps)(HOST=9.55.61.122)(PORT=46635)) *
    establish * DUB11RAC * 12520
    </txt>
    </msg>
    <msg time='2015-04-29T14:06:20.629-04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='dublr059vm.dub.usoh.ibm.com'
    host_addr='9.55.59.45'>
    <txt>TNS-12520: TNS:listener could not find available handler for requested type of server
    </txt>
    </msg>
    A connection using TCP completes without error:
    <msg time='2015-04-29T14:42:02.588-04:00' org_id='oracle' comp_id='tnslsnr' type='UNKNOWN' level='16' host_id='dublr059vm.dub.usoh.ibm.com'  host_addr='9.55.59.45'>
    <txt>29-APR-2015 14:42:02 * (CONNECT_DATA=(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=tcarlson))
    (SERVER=DEDICATED)(SERVICE_NAME=DUB11RAC)) * (ADDRESS=(PROTOCOL=tcp)(HOST=9.55.61.122)(PORT=41950)) *
    establish * DUB11RAC * 0
    </txt>
    </msg>
    The scan listener is configured for TCP on 1521 and TCPS on 2484
    [oracle@dublr059vm ~]$ srvctl status scan_listener
    SCAN Listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node dublr060vm
    [oracle@dublr059vm ~]$ srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521/TCPS:2484
    The service, dub11rac is ready on both instances.
    [oracle@dublr060vm ~]$ lsnrctl stat LISTENER_SCAN1
    LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 30-APR-2015 11:45:18
    Copyright (c) 1991, 2013, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
    STATUS of the LISTENER
    Alias                     LISTENER_SCAN1
    Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
    Start Date                30-APR-2015 11:43:24
    Uptime                    0 days 0 hr. 1 min. 53 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/11.2.0/grid/network/admin/listener.ora
    Listener Log File         /u01/app/11.2.0/grid/log/diag/tnslsnr/dublr060vm/listener_scan1/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=9.55.59.47)(PORT=2484)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=9.55.59.47)(PORT=1521)))
    Services Summary...
    Service "dub11rac" has 2 instance(s).
      Instance "dub11rac1", status READY, has 1 handler(s) for this service...
      Instance "dub11rac2", status READY, has 1 handler(s) for this service...
    Service "dub11racXDB" has 2 instance(s).
      Instance "dub11rac1", status READY, has 1 handler(s) for this service...
      Instance "dub11rac2", status READY, has 1 handler(s) for this service...
    The command completed successfully

    Hi hitgon,
    Thanks first.
    The commands output are as the following:
    Command: srvctl status listener
    Output:
    # Listener LISTENER is enabled
    # Listener LISTENER is running on node(s): rac1,rac2
    Command: srvctl status scan_listener
    Output:
    # SCAN Listener LISTENER_SCAN1 is enabled
    # SCAN listener LISTENER_SCAN1 is running on node rac2
    # TNSNAMES.ORA
    RAC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rac.localdomain)
    Command: sqlplus username/passwd@rac-scan:1521/rac.localdomain
    Output:
    # ERROR:
    # ORA-12520: TNS:listener could not find available handler for requested type of server
    # Enter user-name:
    By the way, rac-scan is the host where the SCAN listener is running and rac.localdomain is the service name. I've also tried the following commands
    with the same error output:
    sqlplus username/passwd@RAC
    At last, i think the output of "lsnrctl status LISTENER_SCAN1" might help:
    Service "rac.localdomain" has 2 instance(s).
    Instance "rac1", status READY, has 1 handler(s) for this service...
    Instance "rac2", status READY, has 1 handler(s) for this service...
    Service "racXDB.localdomain" has 2 instance(s).
    Instance "rac1", status READY, has 1 handler(s) for this service...
    Instance "rac2", status READY, has 1 handler(s) for this service...

  • Tnsnames configuration for RAC and dataguard

    Hi everyone,
    I have an environment with RAC and dataguard (production is RAC, standby is single instance) and I was wondering what is the best way to configure the clients (since I have quite a few and I don't want to change their tnsnames if I need to failover to the standby database).
    Now, I need to have both RAC nodes of course, the question is what I should do with the standby...
    The problems are:
    1. If I add the standby as another address, 1/3 of the connections will get to it and I don't think it's a good idea
    2. I can disable the load_balance, but then all connections will go to the first node's listener
    3. After a failover, if the RAC nodes are down, it will take a long time to connect (the servers will not respond and the client will wait for timeout if it tries to connect to the RAC nodes first, only after the timeout it will try the standby and succeed)
    Any ideas and suggestions will be appreciated.
    Thanks,
    Liron

    Hi Robert,
    I agree that the standby should be up, but you have to admit that if it is down it should not delay connections to the primary...
    About the DNS, it's not that I don't trust the SA, but this is an environment for a customer so it should be as independent as it can be. So the failover process will be easy and fast. I don't know if I can get DNS permissions, but that's a good idea...
    A question that can be derived from this:
    assuming that I use observer to have an automatic failover, how should I configure my TNS? If the standby will become the primary automatically, I have to configure the clients to connect to the activated standby automatically. With no DNS changes or anything manual.
    I guess in this case, my best option will be with LOAD_BALANCE=off, some of the clients will have RAC-NODE1 as first address and some will have RAC-NODE2, the standby will be the last address and we'll suffer the timeout if the primary will be down when connecting to the activated standby.
    If anyone has other ideas, it would be great.
    Thanks,
    Liron

  • HT3702 There's been a few transactions under the name cool race, and I haven't done it.

    There's been 3 transactions under the name of cool race, and I haven't approved them.

    Hi there,
    Try downloading and running the print and scan doctor located here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03275041&cc=us&dlc=en&lc=en
    It can fix a lot on its own and if not give a better idea of what is going on.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • VS2010, Entity Framework, and TNS Less connection strings

    I am playing around with the Oracle 11g ODP.NET stuff and the Visual Studio 2010 integration. I am trying to create and entity data model, but I am connecting to a RAC cluster with a TNS Less connection string (Example at bottom). Previously I've had to use Oracle's OLE DB drivers to connect, however I would love to be able to leverage the Entity Framework in my next project. When I go to create a new connection in my VS project, the Connection Properties dialog pops up with option to choose the Data Source. I choose Oracle, but then I don't see a way to connect in the way that I have to. Any help would be appreciated. Thank you.
    Connection String Example:
    Data Source=(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = someHost.prod.someDomain.net)(PORT = 9991)) (ADDRESS = (PROTOCOL = TCP)(HOST = someHost2.prod.someDomain.net)(PORT = 9991)) (ADDRESS = (PROTOCOL = TCP)(HOST = someHost3.prod.someDomain.net)(PORT = 9991)) (ADDRESS = (PROTOCOL = TCP)(HOST = someHost4.prod.someDomain.net)(PORT = 9991)) (LOAD_BALANCE = yes) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = myService.myDomain.com)));User Id=myUser;Password=myPassword;

    Hello cshay, you're right, I had the wrong version installed. I'm sure I selected the beta first, but I suppose I downloaded the stable version after creating my Oracle account.
    Thanks cshay, and sorry to bother you all with such a question!

  • Difference between RAC and MySQL Cluster !

    Difference between RAC and MySQL Cluster
    Please write me in well explanation , with examples , needed useful link and all other stuffs.
    (1)Italian dealers/distributors for MySQL
    (2)Difference between RAC and MySQL Cluster
    (3)Pricing about MySQL and PostgreSQL
    (4)How and which type / Way to deliver support by MySQL
    (5)Security features about MySQL Vs Oracle
    (6)Management Console
    MySQL Vs Oracle
    Thanks in advance !
    MySQL Cluster

    Ha ha, most amusing.
    I suggest you try googling for answers to these things. This is a site dedicated to the Oracle database, the questions are answered by volunteers (not Oracle employees) and we are primarily geeks rather than marketing droids. If you have a specific Oracle question please feel free to post anytime.
    Thank you for your interest.
    Arrivederci, APC

  • Problems with RAC and XA: Fallback

    Hello,
    we are seing problems with RAC and XA (Tuxedo 11, DB 11.2), specifically encountering "ORA-24798: cannot resume the distributed transaction branch on another instance".
    The first scenario relates to fallback after a RAC node failure. There are two servers, S1 and S2. S1 makes an ATMI call to S2. Both servers are in the same Tuxedo group, using TMS_ORA. RAC is set up for failover (BASIC), no load balancing.
    The sequence is:
    - S1 and S2 are connected to the same RAC node n1. All is well.
    - RAC node n1 fails. S1, S2 and the TMS_ORA all fail over to RAC node n2. After the failover has happened, all is well.
    - RAC node n1 recovers. All is still well (as there is no automatic fallback).
    - S1 (or S2) is restarted (either intentionally or because of a crash). Since n1 is up again, S1 connects to n1. Now we get ORA-24798. Permanently.
    S1 is connected to n1 and S2 is connected to n2. Since both are in the same group, both use the same XA transaction branch. When called, S2 attempts to JOIN the transaction branch that S1 started. But the DB (11.2) does not allow the same branch to span more than one node. Hence the ORA-24798.
    This seems to be a severe limitation in the combination of Tuxedo, XA and RAC. It basically means we still have to use DTP services, even with Tuxedo 11 and DB 11.2. Or are we missing something?
    We could put S1 and S2 into different groups, but that seems to be inefficient, and not practical for a real application (10s of servers).
    I am extrapolating from this that RAC load balancing would also not work, as S1 and S2 could be connected to different RAC nodes.
    Roger

    Roger,
    When using an external transaction manager such as Tuxedo you should still declare Oracle services as DTP services when using Oracle Database 11g. The Tuxedo documentation is not clear about this. The relevant 11gR2 RAC documentation is at http://download.oracle.com/docs/cd/E11882_01/rac.112/e16795/hafeats.htm and states
    "An XA transaction can span Oracle RAC instances by default, allowing any application that uses the Oracle XA library to take full advantage of the Oracle RAC environment to enhance the availability and scalability of the application.
    "GTXn background processes support global (XA) transactions in an Oracle RAC environment. The GLOBAL_TXN_PROCESSES initialization parameter, which is set to 1 by default, specifies the initial number of GTXn background processes for each Oracle RAC instance. Use the default value for this parameter clusterwide to allow distributed transactions to span multiple Oracle RAC instances. Using the default value allows the units of work performed across these Oracle RAC instances to share resources and act as a single transaction (that is, the units of work are tightly coupled). It also allows 2PC requests to be sent to any node in the cluster.
    "Before Release 11.1, the way to achieve tight coupling in Oracle RAC was to use Distributed Transaction Processing (DTP) services, that is, services whose cardinality (one) ensured that all tightly-coupled branches landed on the same instance—regardless of whether load balancing was enabled. Tightly coupled XA transactions no longer require the special type of singleton services to be deployed on Oracle RAC databases if the XA application does not join or resume XA transaction branches. XA transactions are transparently supported on Oracle RAC databases with any type of service configuration.
    A"n external transaction manager, such as Oracle Services for Microsoft Transaction Server (OraMTS), coordinates DTP/XA transactions. However, an internal Oracle transaction manager coordinates distributed SQL transactions. Both DTP/XA and distributed SQL transactions must use the DTP service in Oracle RAC."
    This issue came up earlier this year in another newsgroup thread at https://forums.oracle.com/forums/thread.jspa?threadID=2165803
    Regards,
    Ed

  • RMAN support of OPS/RAC and ISD's

    Can some one point me in the right direction for any white papers, or documentation, on RMAN and its current support of OPS/RAC and/or Intelligent Storage Devices (ISD). I'm trying to do a comparison of RMAN against other third party backup and recovery software and need to find out as much as I can of RMAN support of these architectures. Thanks!

    The closest documention I have of RMAN and OPS/RAC is the Oracle Documentation. Take a look in the RAC ADMIN doc. And I talked a little bit about it in an OpenWorld paper from last year. You can find the paper @
    http://otn.oracle.com/deploy/availability/pdf/BR_OOW01_213WP.pdf
    Bottom line, RMAN supports the clustered environments the same as single instance databases. The rub is the archive log destinations. This is discussed in the RAC documentation.
    Thanks, Tammy

  • Solaris 10 and Hitachi LUN mapping with Oracle 10g RAC and ASM?

    Hi all,
    I am working on an Oracle 10g RAC and ASM installation with Sun E6900 servers attached to a Hitachi SAN for shared storage with Sun Solaris 10 as the server OS. We are using Oracle 10g Release 2 (10.2.0.3) RAC clusterware
    for the clustering software and raw devices for shared storage and Veritas VxFs 4.1 filesystem.
    My question is this:
    How do I map the raw devices and LUNs on the Hitachi SAN to Solaris 10 OS and Oracle 10g RAC ASM?
    I am aware that with an Oracle 10g RAC and ASM instance, one needs to configure the ASM instance initialization parameter file to set the asm_diskstring setting to recognize the LUNs that are presented to the host.
    I know that Sun Solaris 10 uses /dev/rdsk/CwTxDySz naming convention at the OS level for disks. However, how would I map this to Oracle 10g ASM settings?
    I cannot find this critical piece of information ANYWHERE!!!!
    Thanks for your help!

    You don't seem to state categorically that you are using Solaris Cluster, so I'll assume it since this is mainly a forum about Solaris Cluster (and IMHO, Solaris Cluster with Clusterware is better than Clusterware on its own).
    Clusterware has to see the same device names from all cluster nodes. This is why Solaris Cluster (SC) is a positive benefit over Clusterware because SC provides an automatically managed, consistent name space. Clusterware on its own forces you to manage either the symbolic links (or worse mknods) to create a consistent namespace!
    So, given the SC consistent namespace you simple add the raw devices into the ASM configuration, i.e. /dev/did/rdsk/dXsY. If you are using Solaris Volume Manager, you would use /dev/md/<setname>/rdsk/dXXX and if you were using CVM/VxVM you would use /dev/vx/rdsk/<dg_name>/<dev_name>.
    Of course, if you genuinely are using Clusterware on its own, then you have somewhat of a management issue! ... time to think about installing SC?
    Tim
    ---

  • Oracle SQL*Net and TNS Protocol

    I need to get technical documents on Oracle SQL*Net and TNS Proticol, down to the bit-level definition. I have talked to serveral people in Oracle Documentation, Sales and Tech Support, but no one could give me any clue so far. Any one can help me on this?

    SQL*Net is installed by default with SQL*Plus and any of the clients (OEM uses the JDBC OCI driver and some native connectivity).
    It is likely that the version of the client you have installed is not one that TOAD can work with or it can't find the client (is the Oracle home/bin directory in the path?)

  • Difference between oracle 9i Rac and 10g Rac

    Friends -
    Could you please list out what are the main differences between oracle 9i Rac and oracle 10g Rac
    Appreciate your support on this
    Regards
    satish

    hi
    check the new features document of 10g RAC
    http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/whatsnew.htm#sthref6
    HTH

  • Database replication between Oracle RAC and Oracle Standalone DB

    Hi,
    We have currently 4 node RAC environment and Oracle RAC implementation with 4 Oracle instances. We want to move the one instance and make it Standalone with Oracle database due to availability issue. Thus we will remain with 3 nodes on the RAC database and one Standalone database. We want to implement Oracle replication on this solution, where partial database of RAC environment needs to be replicated to Standalone node.
    We will have Oracle 9i database server for both RAC and Standalone machine.
    The partial data that we are looking for replication are of size 25GB. Some of questions we have:
    1. Is there any other replication mechanism apart from Materilzed view for this solution?
    2. Is it feasible to sychronize around 25GB data between servers?
    3. What can be estimated time for refresh or Synchronization?
    Thanks in advance for help.

    The methods that we are evaluating currently for this replication are:
    1. Multi Master replication
    2. Oracle 9i Datagaurd.
    Please let me know if we need to look for some other methods of replication also.

  • Database replication between Oracle RAC and Oracle Standalone DB in 9i

    Hi,
    We have currently 4 node RAC environment and Oracle RAC implementation with 4 Oracle instances. We want to move the one instance and make it Standalone with Oracle database due to availability issue. Thus we will remain with 3 nodes on the RAC database and one Standalone database. We want to implement Oracle replication on this solution, where partial database of RAC environment needs to be replicated to Standalone node.
    We will have Oracle 9i database server for both RAC and Standalone machine.
    The partial data that we are looking for replication are of size 25GB. Some of questions we have:
    1. Is there any other replication mechanism apart from Materilzed view for this solution?
    2. Is it feasible to sychronize around 25GB data between servers?
    3. What can be estimated time for refresh or Synchronization?
    The methods that we are evaluating currently for this replication are:
    1. Multi Master replication
    2. Oracle 9i Datagaurd.
    Please let me know if we need to look for some other methods of replication also.
    Thanks in advance for help.

    ManojMac wrote:
    The partial data that we are looking for replication are of size 25GB. Some of questions we have:
    1. Is there any other replication mechanism apart from Materilzed view for this solution?Streams is another option
    2. Is it feasible to sychronize around 25GB data between servers?Sure. Depending on the rate of change, your latency requirements, whether the standalone database has the horsepower to apply all the changes generated by to other three nodes, etc.
    3. What can be estimated time for refresh or Synchronization?Depends on the architecture, the network connection, whether you are doing incremental refreshes, etc. And it depends on what time you're measuring-- you might be measuring the latency between the RAC cluster and the standalone database, you might be measuring the time it takes to incrementally refresh a single materailized view when there have been no changes, you might be measuring the time it takes to do a complete refresh of an entire refresh group, pulling 25 GB of data over the network.
    The methods that we are evaluating currently for this replication are:
    1. Multi Master replication
    2. Oracle 9i Datagaurd.DataGuard is not an option if you only want to replicate a subset of the data. The two realistic options are materialized views and Streams. Are you anticipating that you will be making changes on both nodes? If not, you can use simple materialized views rather than multi-master replication.
    Since 9.2 is not longer covered by Premier Support, are you planning to upgrade to a supported version in the near future? In particular, Streams works a lot better in later versions of the database.
    Justin

  • Database migration from non rac and non asm to RAC database with ASM

    HI,
    i have requirement to import one database ( db1) which running one node with out ASM and with out RAC , now i want to import that database with rman backup to another database ( db2) which running on different server with 3 node RAC and ASM ( disk group +DATA ) , can you please provide me the steps how i can migrate.? ( i have created db2 with dbca with RAC).
    regards,
    sri

    Sri,
    This could be done multiple ways. Simplest for you is to use DBCA:
    http://download.oracle.com/docs/cd/B28359_01/install.111/b28264/cvrt2rac.htm

  • Infotype 77 changes to reflect new race and ethnicity categories

    To incorporate the new race and ethnicity categories SAP note 435204 needs us to implement support pack SAPKE47063 (Release 470). However we are currently on SAP KE47060 Human Resources and NOT ready to apply SAPKE47063, is there any way we could implement the new race and ethnicity categories by applying some other oss notes.
    Thanking you in advance.

    Thank you for your feedback.
    The new Federal Changes have come up with a new field called Ethnicity in addition to field call Ethnic Origin. The config allows us only to update the Ethnic Origin. In the OSS note 435204 they talk about updating this Federal requirement using the support pack SAPKE47063 but we are currently on SAP KE47060.
    Thanks
    Pratap

  • OracleXML and TNS errors

    I have a very annoying issue. I'm attempting to use the
    OracleXML front-end client and I keep getting "oracle not
    available" and "tns: couldn't resolve name" messages. I use JDBC
    on this machine all the time so I doubt it is my environment.
    Oracle has been installed on this machine for sometime,JDBC
    developing has be working for sometime, now OracleXML breaks.
    What is the deal?
    null

    Hi Chris,
    Here are some excerpts from various replies that I had posted
    in this forum regarding connection problems,
    The OracleXML front-end currently assumes the oci8 jdbc protocol
    and connects using the
    string "jdbc:oracle:oci8:"+username_password_string+"@"
    We will update the front-end in the next version so that we can
    take in the JDBC connect string as well in the argument list.
    One thing for you to try out would be to write a small java
    program against the OracleXMLQuery class to see if that works.
    I have attached a very simple program below:-
    import java.sql.*;
    import java.math.*;
    import oracle.xml.sql.query.*;
    import oracle.jdbc.*;
    import oracle.jdbc.driver.*;
    public class testXML{
    public static void main(String args[]) throws SQLException
    DriverManager.registerDriver
    (new oracle.jdbc.driver.OracleDriver());
    Connection conn = (Connection)
    DriverManager.getConnection("jdbc:oracle:oci8:scott/tiger@");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select * from emp");
    OracleXMLQuery qry = new OracleXMLQuery(conn,rset);
    String xmlString = qry.getXMLString();
    System.out.println(" OUPUT IS "+xmlString);
    This code does a select from emp table available in scott/tiger
    schema. U can change the login and the table names
    appropriately. Setup all the environment variables etc.. (see
    release notes), save this as testXML.java, run javac to get the
    class and execute it using "java testXML". If this doesnt work,
    try changing the getConnection line to use the thin jdbc, such
    as,
    DriverManager.getConnection
    ("jdbc:oracle:thin:@","scott","tiger");
    You can check out the JDBC documentation for how to specify
    your connection for your particular setup (such as specifying
    the port number etc.. if needed).
    Lemme know if it works,
    I think the problem in your case must be the JDBC connect
    string. Please check that and also make sure that the ORACLE_SID
    etc.. is set correctly.
    Thanks
    Murali
    ================================================================
    Chris Madison (guest) wrote:
    : I have a very annoying issue. I'm attempting to use the
    : OracleXML front-end client and I keep getting "oracle not
    : available" and "tns: couldn't resolve name" messages. I use
    JDBC
    : on this machine all the time so I doubt it is my environment.
    : Oracle has been installed on this machine for sometime,JDBC
    : developing has be working for sometime, now OracleXML breaks.
    : What is the deal?
    null

Maybe you are looking for