Oracle edition based redefinition.. connecting from java

Hi all,
We hav implemented oracle edditions in our project.
Can anyone please tell us how we mention the eddition name in the jdbc connection string.
the host name is : storacle.com
port : 1521
user_name: st
password ts.

Hi;
Pelase review:
http://docs.oracle.com/cd/E11882_01/appdev.112/e10471/adfns_editions.htm
Also see:
Self-PacedTraining for Oracle Database 11g Release 2 [ID 1060197.1]
Those should answer your question
PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
Regard
Helios

Similar Messages

  • How to connect from java without using oracle client installation

    hi ,
    Please tell me how to connect from java without using oracle client
    Thanks & Regars

    http://www.orafaq.com/wiki/JDBC#Thin_driver

  • How to use Edition Based Redefinition in APEX?

    Hello,
    This might be my first question on this forum ;-)
    I am trying to get 11gR2 Edition Based Redefinition to work within APEX. But for testing purposes (before altering the database to use the new edition as the default) I have to set the edition at the session level. But as APEX shares sessions from the pool (I might get another session with every page refresh/call), I need to execute an ALTER SESSION command.
    I can't use EXECUTE IMMEDIATE, 'cause that results in:
    execute immediate 'alter session set edition=HR_RELEASE2';
    ORA-38815 : ALTER SESSION SET EDITION must be a top-level SQL statement
    So is there a way to just run a SQL command at the "start" of a page (request)?
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    Edited by: Roel on Feb 28, 2010 7:00 PM
    - Changed the subject of this post (for an easier search on the forum)

    Hello all,
    Patrick and John were on the right track...
    After contacting Bryn (the Oracle brain behind EBR), there appeared to be a DAD attribute called 'database-edition'. Using this you can change the Edition of a DAD (and via the DAD ... all the users that use that DAD):
    begin
    dbms_epg.set_dad_attribute('APEX', 'database-edition', 'HR_RELEASE2');
    end;The funny thing is that a user doesn't have to re-connect. With the next server roundtrip he will use the other edition!
    Remarkable fact: This setting doesn't effect the Session-Edition, but only the Current-Edition. Have to test how that'll work out when using CrossEdition Triggers...
    Another thing: There seems to be an equivalent for the Apache /HTTP Server.
    You have to add a line to your dads.conf setting for PlsqlDatabaseEdition.
    If I add that line (in my environment) the HTTP Server fails to start with:
    /home/oracle/OraHome_1/Apache/Apache/bin/apachectl start: execing httpd
    Syntax error on line 48 of /home/oracle/OraHome_1/Apache/modplsql/conf/dads.conf:
    Invalid command 'PlsqlDatabaseEdition', perhaps mis-spelled or defined by a module not included in the server configurationApart from that: You have to restart the HTTP Server to use the changed DAD. So that is in opposite of the whole goal of EBR (24 x 7 availability).
    Once I figured it all out I'll write a blog post about it. If somebody has anything to add to this thread, feel free! Especially the HTTP Server/Edition combination would be interesting!
    Greetings,
    Roel
    http://roelhartman.blogspot.com/

  • Editions based redefinitions to replace individual schema  objects concept

    Hello,
    Just wanted to get some opinion.
    Oracle db : 11.2.0.2
    Our company has only one schema where all objects reside in the design database and developers add code, modify objects etc within that same schema and invalidate other code and other developers sometimes spend a lot of hours around this.
    We personally thought to use editions based redefinitions to resolve this , that way, each developer could modify code in his own edition and other developers are unaware of the change and unaffected.
    Would this be ok and if we go this route, how does this affect the current tablespace and what other issues could we expect.
    Lets say we re talking 10 developers.
    Thanks.

    >
    The problem is even if we have private objects in our own schema, those would not be referenced since developers login to the app using the main schema bcos of object access restrictions and other thing is most of the code references objects using main schemaname.object (old code) and not much synonyms.
    >
    I understand that but edition-based redefinitioning is primarily to support 'code' updates, not DDL and object updates. And it is primarily used to support those updates in the higher-level environments even including production. For those environments it isn't really necessary to have editioned tables or the other currently non-supported objects; the goal is to get new code into place while the current code is running and then 'switch' to it as seamlessly as possible.
    The white paper I cited lists the limited objects that can be editioned.
    >
    editionable object types, editions-enabled users, and editioned objects
    • Views (and therefore editioning views), synonyms, and all the kinds of PL/SQL objects
    type13 (and therefore crossedition triggers) are editionable object types. There are no other
    editionable object types. For example, table is not an editionable object type; nor is
    java class14.
    >
    Unfortunately, for DEV environments those restrictions are generally too onerous when entirely new features are being added.
    A few of the larger environments I've worked in the developers essentially needed their own local version of the entire chain of browser, web server, app server and database. Functionality such as single-signon was global but that was about it.
    Because of the limitations and the relatively steep learning curve to properly architect and implement editioning you need to do adequate preparation and testing to make sure it is going to help you more than hurt you.

  • Is Edition Based Redefinition available in the Standard Edition of 11g?

    Thanks for all replies.

    Online index rebuild and Online table redefinition require EE version - http://download.oracle.com/docs/cd/E11882_01/license.112/e10594/editions.htm#CJACGHEB
    I believe other features of Edition based redefinition are available in all versions - http://download.oracle.com/docs/cd/E11882_01/appdev.112/e17125/adfns_editions.htm
    HTH
    Srini

  • Which databases like oracle  are available to connect to java in eclipseide

    which databases like oracle are available to connect to java in eclipse ide

    ANY DATABASE WHICH HAS A JDBC DRIVER CAN BE CONNECTED THROUGH YOUR CODE. ECLIPSE HAS NOTHING TO DO WITH CONNECTING DATABASES.

  • How to establish a connection from java to SAP Netwevare server

    Hi All,
    As per my requirement i need to create a connection from Java to SAP Netwevaer Server inorder to access the docs from KM. PLZ provide some sample code
    (I know how to connect from java to SAP R/3 syatem using JCo connector).
    Can anybody help me.
    ADV Thanks

    Look
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/6615ea90-0201-0010-be81-e7a300fdf212
    /people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis

  • I need an suitable InitialContextFactory to connect from java to OID

    Hi,
    I have a problem to connect from my application java to OID, I was using the following InitialContextFactory in my code in this way:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,           "com.evermind.server.ApplicationClientInitialContextFactory");
    env.put(Context.PROVIDER_URL, "ormi://192.168.3.112:3061/dn=fedco,dn=com");
    but it gives back the following error to me:
    Problem looking up : javax.naming.NamingException: META-INF/application-client.xml resource not found (see J2EE spec, application-client chapter for requirements and format of the file).
    I have been looking for about the xml files but I have found that they are necessary when one works with EJBs which is not my case, I need to know if I am using the appropriate InitialContextFactory or if another one is the appropriate for this case.
    Please, help me.
    Thanks.

    Hi,
    Have a look at my response to this thread :InitialContextFactory to connect from java to OID
    Let me know how you go.
    Cheers,
    Sepand

  • Problems in SQL Connection from Java program to Oracle 8.1.7

    Hi,
    I am java program that connects to Oracle 8.1.7 .
    Client: java code on Windows 2000
    Server: oracle 8.1.7 on Solaris
    Java code uses two types of Connection Pools. One Pool uses "thin" connections and other pool uses "OracleConnectionPoolDataSource" class.
    The methods which use "thin" pool work great however the methods which use "OracleConnectionPoolDataSource" fail after 5 to 10 calls.
    Given below is the exception that I see in my log file.
    February 26, 2002 10:17:38 AM UTC: Debug.INFO: searchByNameCommono.jsp Error : Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
    com.commerceone.msbtpdapi.util.DBConnException: Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
         at com.commerceone.msbtpdapi.api.Tpd2.openConnection(Tpd2.java:138)
         at com.commerceone.msbtpdapi.api.TpdDBApi.searchTpsByCompanynameAndStatus(TpdDBApi.java:1685)
    Windows java code uses JDK 1.3.1
    Oracle machine has java version 1.2.2.
    Do I need to check for any settings like LD_LIBRARY_PATH on oracle machine ?
    Thanks a lot.
    Regards
    Mandar

    Hi,
    I am java program that connects to Oracle 8.1.7 .
    Client: java code on Windows 2000
    Server: oracle 8.1.7 on Solaris
    Java code uses two types of Connection Pools. One Pool uses "thin" connections and other pool uses "OracleConnectionPoolDataSource" class.
    The methods which use "thin" pool work great however the methods which use "OracleConnectionPoolDataSource" fail after 5 to 10 calls.
    Given below is the exception that I see in my log file.
    February 26, 2002 10:17:38 AM UTC: Debug.INFO: searchByNameCommono.jsp Error : Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
    com.commerceone.msbtpdapi.util.DBConnException: Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
         at com.commerceone.msbtpdapi.api.Tpd2.openConnection(Tpd2.java:138)
         at com.commerceone.msbtpdapi.api.TpdDBApi.searchTpsByCompanynameAndStatus(TpdDBApi.java:1685)
    Windows java code uses JDK 1.3.1
    Oracle machine has java version 1.2.2.
    Do I need to check for any settings like LD_LIBRARY_PATH on oracle machine ?
    Thanks a lot.
    Regards
    Mandar

  • Calling JSON based RESTful endpoint from Java

    I have a scenario where I need to call a RESTful web service based on JSON response object from Java.
    And then make a web service for this Java program that I have made.
    Can any one please help me with this?
    Thanks

    If you would have typed 'Java RESTful' in Google the answer would have come to you in about 2 seconds.
    Read up about using the JAX-RS API.
    http://docs.oracle.com/javaee/6/tutorial/doc/giepu.html

  • Getting error while Creating a JDBC connection from Java Class

    Hi,
    I am getting the exception pasted below:
    Exception in thread "main" java.lang.AbstractMethodError
    at JvMakeVTable(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at JvPrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at JvWaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
    at oracle.jdbc.driver.OracleStatement.executeQuery(java.lang.String) (Unknown Source)
    at oracle.jdbc.dbaccess.DBAccess.setNlsParamsClient(oracle.jdbc.driver.OracleConnection) (Unknown Source)
    at oracle.jdbc.ttc7.TTC7Protocol.initNls(oracle.jdbc.driver.OracleConnection) (Unknown Source)
    at oracle.jdbc.driver.OracleConnection.OracleConnection(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties) (Unknown Source)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties) (Unknown Source)
    at oracle.jdbc.driver.OracleDriver.connect(java.lang.String, java.util.Properties) (Unknown Source)
    at java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties) (/usr/lib/libgcj.so.5.0.0)
    at java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    The code raising this error is :
    try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
              catch (Exception Exp)
                   System.out.println("Error while getting the class : "+Exp);
    try
                   String url = "jdbc:oracle:thin:@hostname:port:SID";
                   String user = "apps";
                   String password = "password";
                   con = DriverManager.getConnection(url,user,password);
    catch (Exception ex)
                   System.err.println("SQLException: " + ex.getMessage());
    Any help in this is appreciated.
    Regards
    Jujaar

    Why do you have the Class.forName() in a separate try-catch block than the DriverManager.getConnection()?
    Try placing everything in the same try-catch block to see if that resolves your problem.
    You may also want to try using an OracleDataSource.
    OracleDataSource ods = new OracleDataSource();
    String url = "jdbc:oracle:thin:@//hostname:port/SID",
    ods.setURL(url);
    ods.setUser("apps");
    ods.setPassword("password");
    Connection conn = ods.getConnection();
    Refer to http://st-doc.us.oracle.com/11/111/java.111/b31224/getsta.htm#i1008334 for details on how to connect to the database using a Data Source.

  • Run dial-up connection from Java Program?

    Is there a way to run dial-up connection from a Java Program? It needs to platform independent.
    Thanks.
    Virum

    I very much doubt it, at least not platform independent. I had a, oops, heck of a time doing that from Visual Basic, where it is much easier to work with operating-system stuff like that than it is in Java. I finally ended up buying a RAS component to call from my VB program.

  • InitialContextFactory to connect from java to OID

    Hi,
    I have a problem to connect from my application java to OID, I was using the following InitialContextFactory in my code in this way:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationClientInitialContextFactory");
    env.put(Context.PROVIDER_URL, "ormi://192.168.3.112:3061/dn=fedco,dn=com");
    but it gives back the following error to me:
    Problem looking up : javax.naming.NamingException: META-INF/application-client.xml resource not found (see J2EE spec, application-client chapter for requirements and format of the file).
    I have been looking for about the xml files but I have found that they are necessary when one works with EJBs which is not my case, I need to know if I am using the appropriate InitialContextFactory or if another one is the appropriate for this case.
    Please, help me.
    Thanks.

    Hi there,
    You are definately using the incorrect InitialContextFactory. The com.evermind.server.ApplicationClientInitialContextFactory is intended for Standalone Java clients that require access to remote EJBs AND have been configured with a client-application.xml file.
    Try the following:
    //Setup intial context for OID server
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, ldapURL);
    env.put(Context.SECURITY_AUTHENTICATION, "none");
    env.put(Context.SECURITY_PRINCIPAL, dn);
    // Anonymous bind to create the intial context
    try
    dirCtx = new InitialDirContext(env);
    log.debug("New LDAP context created " + dirCtx);
    catch (NamingException ne)
    log.error("Failed to create InitialContext for LDAP server:", ne);
    throw new RuntimeException("LDAP server is not available");
    Where ldapURL is "ldap://<host>:<port>" and dn is the OID content you are interested in e.g. "dc=site,dc=company,dc=com".
    Hope this helps.
    Cheers,
    Sepand

  • How to run the Oracle Triggers,Functions and Procedures from java

    Hi ,
    I want to execute the Oracle's Triggers, Functions and Procedures from java as like executing the SQL commands by using Execute statements.
    Or can we have some other option for doing this.
    Plz help me ...

    you can use CallableStatement interface of JDBC to execute any DBMS triger,stored procedure ....
    refer any of the JDBC book for extra help
    hope you got it
    Azeem Ahmed

  • Oracle edition for Cache connect

    hi,
    Is there a limitation for the Oracle edition to be used with cache connect.
    Can we use all of Oracle XE to Standard Edition One to Enterprise edition or just only
    Enterprise edition?
    Thanks.

    Cache Connect works with all editions: XE, SE, EE etc.
    Chris

Maybe you are looking for

  • N8 Update Problem

    Hello, I have recently updated my N8 and since then i am having two problems,  1- The gallery is not showing me any new photos that i take, or videos that i record. 2- The top part of main screen gets stuck sometimes, like from the signal strength ba

  • Problem loading

    Hi All, when i am loading some data package keeps in yellow, i tried to execute them for problem of RFC but the load failed, in my last client, when i was loading and some data package keeps in yellow, i use to wait until the job end, then i activate

  • Tcodes & Roles for SAP GRC AC 5.3 SPM in R/3

    Hello, After installing part of the SAP GRC AC 5.3 SPM in the Tcode SAINT (R/3). I want to know what Tcodes do I need to use the Tcode /VIRSA/VFAT. Or what type of roles do I need. Is there some. I have read the PDF "SAP Governance, Risk & Compliance

  • BPEL Toplink Adapter not releasing table lock

    We have a bpel process that attempts to do a merge on an Oracle table through the database adapter. If the merge operation is unsuccessful for any reason the process retries for a set number of times. We have found that a lock is generated on the tab

  • Gradient Banding in Motion

    I have a gradient issue with a square I created in Motion 3.0.1. I enlarged the shape to 260% and blurred it to get a really soft gradient with an opacity at 18% or so in 3D space. My problem is that it's got banding around it really bad. I generally