Specify tablespace within JDBC connect string...

In MySQL, I can specify a database name within a JDBC connect string. Can one specify an Oracle tablespace within a JDBC connect string? The goal is to have one account to access multiple tablespaces.
Please advise,
R

R,
I think perhaps you misunderstand what a tablespace is in Oracle.
If you haven't already done so, I suggest reading Oracle Database Concepts and Oracle Database Administrator's Guide which are part of the Oracle documentation and available from:
http://www.oracle.com/technology/documentation/index.html
Good Luck,
Avi.

Similar Messages

  • Adworker using wrong JDBC connect string during upgrade to 12.1.3

    Our env
    APPS - 12.1.2 - running on SLES 11
    DB 11.2.0.3 - running on IMB System z
    We cloned PROD to a new host (instance was previously on DB host - debsdb01 and app host debsap03)
    The clone was made to debsdb04 - and app was reconfigured on debsap03
    I got the app to start up and run before taking it down to apply the 12.1.3 patch.
    However, in the process of the 12.1.3 patch, I see the following entry in the ADworker log files.
    JDBC connect string from AD_APPS_JDBC_URL is
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=hostname1.companyname.com)(PORT=1549)))(CONNECT_DATA=(SID=DEV3)))
    where as it should be
    JDBC connect string from AD_APPS_JDBC_URL is
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=hostname4.companyname.com)(PORT=1535)))(CONNECT_DATA=(SID=DEV3)))
    If I do an echo $AD_APPS_JDBC_URL on debspap03, it returns
    JDBC connect string from AD_APPS_JDBC_URL is
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=hostname4.companyname.com)(PORT=1535)))(CONNECT_DATA=(SID=DEV3)))
    Where are the ADWORKERS getting the old value of the DB host name?
    Any help would be appreciated.
    Thanks
    Edited by: 864641 on Sep 16, 2012 7:32 AM

    I believe figured out what the issue was.
    I was (am) running the patch session from a VNC session that was established during the previous version of this instance - so the previous connect string was being used.
    Once I killed the old VNC session and established a new one, I was able to retrieve the correct value for $AD_APPS_JDBC_URL from the command prompt.
    Yes - the value of the $AD_APPS_JDBC_URL was showing the old value in the old VNC session.
    Thanks for all of your input esp on a Saturday - when I thought I would have to wait until Monday to get this figured out.

  • JDBC connection string to an MS Access DB

    Hello,
    I was searching for a package that will allow me to do
    a JDBC connection to an MS Access DB. I found out about RMIJDBC, but I am not sure what I need to specify as my connection string. In SQL Server you usually give a url as well, but how about MS Access?
    How do you do a connection??
    Thank you for your help!
    -Lia-

    Why not using the Jdbc/Odbc driver with the Odbc connection of MS Access ? The driver name is "sun.jdbc.odbc.JdbcOdbcDriver" and the URL is something like "jdbc:odbc:myAccessOdbcName".
    Of course, this is not the fastest driver, but it is provided in standard with the JDK.
    Matthieu

  • Server name problem-jdbc connection string

    hi..
    my server name is SERKANPROX\LOCALHOST .. i couldn't connect to this server with this server name . how can i write the server name in connection string?. this is the part my code:
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://serkanprox//localhost:1 433;DatabaseName=NorthWind","serkan","serkan");
    the exception is : [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
    i can connect to the server which name is "serkan" . but when there is a '\' character ,i couldn't..
    how can i can change the connection string for connecting to this server ..
    thanksss

    hi..
    my server name is SERKANPROX\LOCALHOST No it isn't. Get the right server name. This problem has nothing to do with your username and password and such.

  • Jdbc, connection string to a rack

    hello,
    can i connect on jdbc receiver side to a rack ( logical instance instead of a physical instance) or to 2 ipaddresss instead of one in case one node gets down?
    i currently have a connection string as : jdbc:oracle:thin:@ipaddress:port:Databasename
    Please suggest.
    Thanks

    Closing thread.

  • Jdbc connection string

    Hi All,
    I am trying to connect to sysbase tables with
    Connection String: <b>jdbc:sybase:TDS5:DB110:3400:falud002</b>
    JDBC Driver: <b>com.sybase.jdbc3.jdbc.SybDriver</b>
    But it gives me error in RWB as:
    <b>Error during database connection to the database URL 'jdbc:sybase:TDS:DB110:3400:falud002' using the JDBC driver 'com.sybase.jdbc3.jdbc.SybDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sybase:TDS:DB110:3400:falud002': SQLException: JZ0D5: Error loading protocol com.sybase.jdbc3.tds.TDS.'</b>
    Please advice....
    Xier

    Hey
    i know you might have done it but just want to make sure whether u have installed the proper drivers for Sybase or not?
    Thanx
    Aamir

  • JDBC Connection String for MS Sql Server 2000 with Instance Name

    Hi All,
    I am having problems connecting to a MS Sql Server 2000 database using MSSqlServer4
    driver when the database server has an Instance Name. If the database server has
    no instance name then I am able to connect using the connection string
    connection=jdbc:weblogic:mssqlserver4:hansa:1433
    But when I have the MS Sql Server DB with an instance name such as "TestInstance",
    then I am unable to connect with any of the connection strings given below
    connection=jdbc:weblogic:mssqlserver4:hansa\TestInstance:1433 or
    connection=jdbc:weblogic:mssqlserver4:hansa\\TestInstance:1433 or
    connection=jdbc:weblogic:mssqlserver4:hansa:TestInstance:1433 or
    connection=jdbc:weblogic:mssqlserver4:hansa:1433:TestInstance
    Can anybody help me in resolving this issue. Appreciate your help.
    Thanks in advance.
    Vikram

    Vikram wrote:
    Hi All,
    I am having problems connecting to a MS Sql Server 2000 database using MSSqlServer4
    driver when the database server has an Instance Name. If the database server has
    no instance name then I am able to connect using the connection string
    connection=jdbc:weblogic:mssqlserver4:hansa:1433
    But when I have the MS Sql Server DB with an instance name such as "TestInstance",
    then I am unable to connect with any of the connection strings given below
    connection=jdbc:weblogic:mssqlserver4:hansa\TestInstance:1433 or
    connection=jdbc:weblogic:mssqlserver4:hansa\\TestInstance:1433 or
    connection=jdbc:weblogic:mssqlserver4:hansa:TestInstance:1433 or
    connection=jdbc:weblogic:mssqlserver4:hansa:1433:TestInstance
    Can anybody help me in resolving this issue. Appreciate your help.Hi. No type-4 jdbc driver is going to be able to use a name for a DBMS instance.
    Let's assume you have two DBMS instances running on the machine hansa. One
    of them may be listening for tcp connections on port 1433, but the other must not.
    The other most be listening on some other port number you have chosen.
    Therefore, to choose which DBMS instance you want to connect to, use the
    working URL you have, and switch the port number as desired.
    Joe Weinstein
    >
    >
    Thanks in advance.
    Vikram

  • JDBC connection strings

    We're having a problem connecting to one of our databases using JDBC thin. There seem to be two formats for the connection strings:
    jdbc:oracle:thin:@opctest.deq.state.ms.us:1522:TEST8131
    jdbc:oracle:thin:@//opctest.deq.state.ms.us:1522/TEST8131
    From a java app, the first throws an "Io exception: Invalid connection string format, a valid format is: "//host:port/service_name" " error; the second throws a TNS-12514: TNS:listener does not currently know of service requested in connect descriptor error.
    What confuses me more is that if I test this string from a JSP page:
    jdbc:oracle:thin:@opctest.deq.state.ms.us:1522:test8131
    it connects fine.
    The environment is Oracle9i on Red Hat, running MTS. Java app is running on WinXP. Anyone have an idea what's going on?
    Thanks,
    Harry

    I can see a couple of issues in your connect string:
    1. I see you are using the sid in uppercase, TEST8131 instead of test8131. If you are working on a unix environment this makes a difference, so use the lower case instead.
    2. You are using the 1522 port, check with your database administrator if the instance is registered against the 1522 port, otherwise the error TNS-12514 will show up. I will assume it currently works fine since you have declared the jsp using the same address works fine with this port.
    3. Ensure the hostname can be solved just exactly the way you have declared it (fully qualified domain) from the perspective where the jdbc program is running.
    4. the format described here: opctest.deq.state.ms.us:1522/TEST8131 is known as the EZConnect, and it is a 10g feature.
    ~ Madrid

  • Load balance not working right with jdbc connection string?

    For months we've used the following connection string to get Tomcat to open connections to our Oracle 10g RAC:
    jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST
    = db1vip) (PORT = 1521)) (ADDRESS = (PROTOCOL = TCP) (HOST = db2vip)
    (PORT = 1521)) (LOAD_BALANCE = yes) (CONNECT_DATA = (SERVER = DEDICATED)
    (SERVICE_NAME = orcl) (PREFER_LEAST_LOADED_NODE_ORCL = OFF) ) )
    Today, db2 became inaccessible during prime time, and the web app completely hung--when you tried to type in a username and password to log into the site, it would just hang indefinitely, and the Tomcat log files were complaining about being unable to open a connection to the database because of a network adapter error.
    I would have expected the JDBC driver Tomcat was using to just switch to the other database server, but none of our Tomcat machines did that, and I'm wondering why (they all just hung trying to connect to db2). Our guess is that the difference this time is not that Oracle was down on db2, but that db2 was down entirely. Maybe that connection string works only if the server is up when the database is down, and not when the server is unreachable (we couldn't SSH to the box, and when we tried to get to it locally using a remote access card, a lot of options were grayed out and we couldn't see a shell, so all we could do was reset the box).

    Hi,
    Please refer to the link below:
    SCOM 2012 – Monitoring Oracle Database OLE DB Management Pack Template
    http://stefanroth.net/2012/12/05/scom-2012-monitoring-oracle-database-ole-db-management-pack-template/
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • JDBC connection string from POJOs

    I have created a new connection named ConnDB. It was added in Application Resources/Descriptions in file connections.xml.
    I want to access this connection string in my POJOs. How do I grab my connection?

    example :
            DCIteratorBinding dciterb =(DCIteratorBinding)dcbind.get("ParcelsView1Iterator");
            dciterb.executeQuery();
            DCDataControl dc = dciterb.getDataControl();
            ApplicationModule am = (ApplicationModule)dc.getDataProvider();
            Statement st = am.getDBTransaction().createStatement(0);rg Thomas

  • Constructing a correct jdbc connection string

    I am not particularly fluent in JDBC URL construction and though I have come up with many variations, I have so far failed to come up with the single variation that will work for my database :-)
    I am running Oracle 10 and I have a connection to the target database in SqlDeveloper. Opening the properties of my existing connection, I observe that the type is TNS. Looking up the network alias specified in my tnsnames.ora I was then able to get the hostname, the service name, and the port (1521), and I observed that it said "Server=DEDICATED" though I don't appreciate the significance of that last item.
    So I tried IBM's jdbctest tool (among others) with a JDBC URL of:
    jdbc:oracle:thin:<username>/<pwd>@<hostname>:1521:<servicename>
    and with the ojdbc14.jar driver, received this error:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    I also tried "telnet <hostname> <port>" because jdbctest suggested it, and I received "Connect failed". jdbctest notes that a refused connection means the port is wrong but says nothing about a failed connection. I saw one reference that said the last component of the string should be <dbname> rather than <servicename>. So where do I check the dbname? And what else am I missing?

    jdbc:oracle:thin:<username>/<pwd>@<hostname>:1521:<servicename><servicename> is SID of databsae running on server and not your tnsname alias.
    Telnet can fail if telnet service is not running.
    Did you tried tnsping
    c:\>tnsping <tnsnames.ora service alias>
    Server=DEDICATED indicates that you want to have dedicated oracle process for your applicaiton unlike shared server process where many users share the same proecss. Shared server connection is typically used for large number of db users conencting concurrently.

  • Specifying Schema in JDBC Connection

    Hi Guys,
    MaxDB provides the possibility to logically unite several database objects (e.g. Tables, Views, Indexes, ...) in so called "Schemas".
    However, I couldn't find any documentation about how to connect to a certain schema via JDBC. How should the JDBC URL look like? Assuming I have this kind of URL jdbc:sapdb://localhost:7200/MAXDB. Is there a way to connect to the schema "DEMO"?
    Thanks for the help.
    Cheers,
    Gerardo

    Hi Gerardo,
    yes, it's rather simple to change the currently active default schema.
    The command for this is called SET CURRENT_SCHEMA = <SCHEMA_NAME>.
    Using the HelloMaxDB example from the documenation this can be used like this.
    import java.sql.*;
    public class HelloMaxDB
         public static void main(String[] args)
         throws ClassNotFoundException, SQLException
              String username = "MONA";
              String password = "RED";
              String host = "";
              String dbname = "DB77";
       * Load JDBC Driver
              Class.forName ("com.sap.dbtech.jdbc.DriverSapDB");
       * Define Connection URL
              String url = "jdbc:sapdb://" + host + "/" + dbname;
       * Connect to the Database
              Connection connection = DriverManager.getConnection (url, username, password);
       * Execute SQL Statements
              Statement stmt = connection.createStatement ();
              ResultSet resultSet = stmt.executeQuery ("SELECT * FROM HOTEL.CUSTOMER");
              resultSet.next ();
              String hello = resultSet.getString (1);
            System.out.println ("SELECTED with schema name:");
              System.out.println (hello);
         * Change the default schema
            stmt.execute ( "SET CURRENT_SCHEMA=HOTEL");
              resultSet = stmt.executeQuery ("SELECT * FROM CUSTOMER");
              resultSet.next ();
              hello = resultSet.getString (1);
              System.out.println ("SELECTED without schema name:");
            System.out.println (hello);
              * close all objects
              resultSet.close ();
              stmt.close();
              connection.close ();
    Actuallyl easy cheesy, isn't it?
    Cheers,
    Lars

  • Cannot figure jdbc connection string using LDAP to lookup db

    I found only one example of this
    "jdbc:oracle:thin:@ldap://ldap.acme.com:7777/sales,cn=OracleContext,dc=com"
    My ldap.ora file has this in it:
    DEFAULT_ADMIN_CONTEXT = "dc=ba,dc=ssa,dc=gov"
    DIRECTORY_SERVERS= (s07a29b.ba.ssa.gov:389:636,s1pta34.ba.ssa.gov:389:636,r24300a.ba.ssa.gov:389:636)
    My db is ismarts1
    I've tried all variations I can think of and cannot get it to work. Most obvious would be this:
    jdbc:oracle:thin:@ldap://s078a9b.ba.ssa.gov:389:636/ismarts1,dc=ba,dc=ssa,dc=gov
    but it is not working...
    I don't get the 2 port numbers (if that's what they are) in the ldap.ora list of servers.

    You've confirmed that it works in sql*plus?
    The typical format of the url is
    jdbc:oracle:thin:@ldap://[host]:[port]/[database],cn=OracleContext,[dc=...,dc=...]In your case, you might try
    jdbc:oracle:thin:@ldap://s078a9b.ba.ssa.gov:389/ismarts1,cn=OracleContext,dc=ba,dc=ssa,dc=govSince you do have multiple ldap servers configured, you can also specify more than one in the url separated by a space.
    jdbc:oracle:thin:@ldap://s078a9b.ba.ssa.gov:389/ismarts1,cn=OracleContext,dc=ba,dc=ssa,dc=gov ldap://s1pta34.ba.ssa.gov:389/ismarts1,cn=OracleContext,dc=ba,dc=ssa,dc=govThe 2 port numbers specify the ports ldap listens on, the first being non-ssl and the second being ssl.

  • Configuring RAC-aware JDBC connection in Oracle SQL Developer?

    How can Oracle SQL Developer be configured to properly connect to an [Oracle RAC|http://en.wikipedia.org/wiki/Oracle_RAC] environment, I.E., not just setup to always connect to one of the individual nodes?
    [http://programmersjournal.blogspot.com/2008/08/jdbc-connection-string-for-oracle-rac.html] has an example of a classic and the equivalent RAC-aware version of a JDBC connection string. I've already been using a RAC connection string of the same format from within custom Java applications without issue. I thought the same should be configurable in Oracle SQL Developer by setting the "Connection Type" drop-down to "Advanced", then entering the RAC-aware JDBC connection string as the "Custom JDBC URL". However, upon testing the connection, the following error is displayed at the bottom of the dialog:
    Status : Failure -Test failed: Io exception: NL Exception was generated
    There is no additional information shown on the "Logging Page" view. Using Oracle SQL Developer 1.5.5.
    Thanks!

    Thanks, Barry. Just F.Y.I., it is working for me now that I upgraded to the 2.1 EA as -K- suggested. I had marked his reply as "Correct", but probably should have left a response indicating my success as well.
    Now, if there's anything you could do regarding the [issues around the display performance of CLOBs, etc., in the Query Result view|http://forums.oracle.com/forums/message.jspa?messageID=3906571] , it'd be very appreciated!

  • JDBC connection over IPv6

    Hi
    I have an MS SQL Server 2005 Database Server and a Client computer on two different subnets.
    There is also a DNS Server, which contains both an IPv4 (A) and IPv6 (AAAA) DNS record for the Database Server.
    I've disabled IPv4 routing between the two subnets so that the Database Server is only accessible by IPv6 from the Client computer.
    I am then unable to connect to the Database Server from the Client using JDBC.
    I have tried increasing the loginTimeout in the JDBC connection string, but this doesn't appear to make any difference.
    I get a java.net.ConnectException in about 20 seconds.
    If I remove the IPv4 (A) record of the Database Server from the DNS Server, the JDBC connection then succeeds.
    Does JDBC iterate over all the possible addresses of the Database Server?
    Is the loginTimeout the correct parameter to try to increase, to allow it to iterate over the possible addresses?
    There is a similar problem with MS SQL Client - see http://msdn.microsoft.com/en-us/library/ms378428(SQL.90).aspx
    But increasing the connection timeout allows a successful connection.
    Thanks
    Alain

    jschell wrote:
    ahkal01 wrote:
    Alain: A machine may have multiple IPv6 addresses, as well as an IPv4 address.
    You may not be able to get to the machine via all the addresses, depending on the network route.
    If a driver gives up on the first DNS lookup (which probably will be the IPv4 address), it'll never try the IPv6 addresses. However that is NOT what you are testing.
    As described in your first post there is a route. Routing works if the final location is found. After that a refused connection is a refused connection.
    Alain: In my test, IPv4 routing is disabled between the two subnets. So there is no IPv4 routing between the two machines, only IPv6.
    >
    But even so, to me it is still two different IP addresses. Just as if you try to create your own replication by having two database servers on different IPv4 addresses. If the client is supposed to be using one address then the DNS should be set up that way.
    Or use the address. Because the point is not the IP address, the point is the DNS look up.
    Alain: With IPv6, it is common for computers to be assigned more than one address for routing under different hierarchies.
    If you're saying that the DNS lookup should be set up to return only one IP address to client computers trying to connect to the DB Server, DNS will need to be set up differently depending on where the client computer is.
    >
    Again looking at it from the point of someone developing a driver the only option I would allow is that one might be able to specify a configuration value that says to try a IPv6 address first. That would be in the driver, not JDBC. So you can look to your driver for that.
    There is a similar problem with MS SQL Client - see http://msdn.microsoft.com/en-us/library/ms378428(SQL.90).aspx
    But increasing the connection timeout allows a successful connection.
    I do not see anywhere in that link that it claims that the setup you are using would work Alain: apologies. It was the wrong url link.
    I meant, http://blogs.msdn.com/sql_protocols/archive/2005/10/12/480192.aspx.The scenario there is SQL Server is configured to listen only on IPv6 addresses and disable all IPv4 addresses so that only IPv6 connection can be accepted. The workaround is to specify the IPv6 address of the target machine explicitly to force SNI to use IPv6 connection directly or to use longer timeout value. I don't see that in that blog.
    It says that if you have addresses that some different behavior might result. It specifically refers to using an IPv4 address (not DNS) and failing on that and then attempting to use a IPv6 address (again not a DNS) and even in that case it might fail.
    Alain: The blog is talking about a hostname resolving into multiple addresses. I quote from the blog, with bold for emphasis,
    "In most cases, the connection string does not need to be modified if the <servername> is specified using server hostname or FQDN (Full Qualified Domain Name). If the server machine has dual-stack, *its hostname or FQDN will be resolved into multiple IP addresses*, including at lease one IPv4 address and multiple IPv6 addresses. *And SNI will attempt to establish connections using these IP addresses in order and use the first connection that succeeds*. IPv4 addresses are attempted first if both IPv4 and IPv6 addresses are present. This logic is transparent to the users of ODBC, OLEDB or ADO.NET.
    And it doesn't say anything about that some clients already do this but merely that they can.
    Alain: SNI does, from the quote above. A test also shows that it does try all the addresses that DNS returns, with the caveat that the connection timeout has to be increased.
    Unfortunately it looks like the MS JDBC driver doesn't do likewise.
    Myself I don't really consider that a valid option for most use cases for drivers. If I have a data center then I am not normally going to be using both types of addresses. And if I am both will work. And if there are variation in subnets then I would expect that if DNS is in use then it would be set up to correctly represent that.Thanks for your input on this thread. Much appreciated.

Maybe you are looking for

  • How do you listen to music that was on your iphone and ended up in the cloud, and is no longer on the phone

    daughters iphone 4 had an update, in the process of the update all of her music and apps went into the icloud. How do we get these back on her phone and out of the cloud.

  • Receiver File Adapter - Tab delimited Text file

    I am using receiver file adapter to convert message created by ABAP PROXY to convert tab delimited text file format. XML message is in following format. - <DT_R3_ROLES_OUTBOUND_REC>   <LIST_CATEGORY>SAP_HR</LIST_CATEGORY>   <USRID>MRUDULAP</USRID>  

  • Custom fields in Shopping cart at item level

    Dear Experts, We have a requirement to create the fields in the shopping cart. Through customizing we have defined the fields and configured them. Now we could able to see the custom fields in the Shopping cart at item level. The values to custom fie

  • File Channel Problem

    I have written a small method, that converts file content to CharSequence. For some reason it maintains a lock on the file. After calling CharSequenceFromFile method I cannot delete the file. Obviously there is something that I don't understand somet

  • Small Screen for monitor spanning

    I have been using a second monitor for spanning at work for the last month and it has been a great experience. I am more productive. I am using a regular large monitor, but I would prefer to use a small LCD, even as small as the 12PB screen in order