Schema/Application connection

Hi
I'm wondering whether it is possible to set the parsing schema at runtime, without manually editing the application attributes.
This would facilitate moving an application between a testing and production environment, amongst other things.
I have noted the set_schema procedure in the apex_application_install package, but I was thinking more along the lines of having a dropdown schema choice on the login page.
I appreciate that this would mean that different users might use the same application running against different schemas simultaneously, which might present problems for the apex engine. But it seems to me that if this is not possible then the alternative is a process involving copying an app, renaming/renumbering, editing attributes and so forth, whenever you make/test/release even a minor change, which provides much more opportunity for error than the change itself.
Any advice would be appreciated.
Regards
CS

Hi
I'm wondering whether it is possible to set the parsing schema at runtime, without manually editing the application attributes.
This would facilitate moving an application between a testing and production environment, amongst other things.
I have noted the set_schema procedure in the apex_application_install package, but I was thinking more along the lines of having a dropdown schema choice on the login page.
I appreciate that this would mean that different users might use the same application running against different schemas simultaneously, which might present problems for the apex engine. But it seems to me that if this is not possible then the alternative is a process involving copying an app, renaming/renumbering, editing attributes and so forth, whenever you make/test/release even a minor change, which provides much more opportunity for error than the change itself.
Any advice would be appreciated.
Regards
CS

Similar Messages

  • Same Application connecting to different schemas

    I currently have a single version of my application that is tied to a workspace/schema. My client is now requesting to have the same application connect to additonal test and training schema so they can play (without changing live data).
    What is the best approach for setting this up. Do I create a new workspace for each schema they want and import my application into it? Do I need to change the application ID when I import so the URL is different for each connection?

    Hello:
    You probably want to create a workspace for each schema. I don't think you can re-use application ids in your situation where the workspaces are all in a single APEX installation.
    You could specify an appropriate alias for your application in each workspace and address the application using the alias
    http://apexhost:7777/f?p=TEST
    http://apexhost:7777/f?p=TRAIN
    etc
    Varad

  • Default Schema in connection URL

    I'd like to set default database schema in Connection URL
    jdbc:oracle:thin:@<server>:<port1521>:<sid>
    I need to query database without schema prefix
    *select monkey_name from animals.monkey*
    ie. When I run
    select monkey_name from monkey
    it will use animals schema by default.
    Anyone with solution?
    Thanks

    Hi,
    aftre reading the response of tarpaw and castorp I build a simple test case that demonstrates the DBCP feature:
    package org.jpadbf.jdbc;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    import java.util.List;
    import javax.sql.DataSource;
    import org.apache.commons.dbcp.BasicDataSource;
    public class TestDBCPConnection {
         private static final String THIN_DRIVER="jdbc:oracle:thin:@";
         private static String databaseUrl="localhost:1521:ORCL";
         private static String username="test1";
         private static String password="test1";     
    create table TEST_INSERT(ID NUMBER not null, DESCRIPTION VARCHAR2(100));
    grant select on test_insert to test1;
         * @param args
         * @throws SQLException
         public static void main(String[] args) throws SQLException {
              DataSource dataSource = getDBCPDataSource(databaseUrl, username, password,1,20);
              Connection conn=dataSource.getConnection();
              try {
                   testQuery(conn);
              } finally {
                   conn.close();
         public static void testQuery(Connection conn) throws SQLException {
              Statement statement =conn.createStatement();
              try {
                   ResultSet resultSet=statement.executeQuery("select 1 from test_insert");
                   try {
                        if (resultSet.next()) {
                             if (resultSet.getInt(1)!=1) {
                                  throw new RuntimeException ("Invalid query result");
                   } finally {
                        resultSet.close();
              } finally {
                   statement.close();
         public static DataSource getDBCPDataSource(String jdbcUrl, String username, String password, int minConncetions, int maxConnections) throws SQLException {
              BasicDataSource dataSource= new BasicDataSource();
              dataSource.setDriverClassName("oracle.jdbc.driver.OracleDriver");
              dataSource.setUrl(THIN_DRIVER + jdbcUrl);
              dataSource.setUsername(username);
              dataSource.setPassword(password);
              dataSource.setInitialSize(minConncetions);
              dataSource.setMaxActive(maxConnections);
              dataSource.setMaxWait(1000);
              List<String> sqls=new ArrayList<String>();
              sqls.add("ALTER SESSION SET CURRENT_SCHEMA = TEST");
              dataSource.setConnectionInitSqls(sqls);
              return dataSource;
    And it seems work nicely.
    the initSQLS property is added in version 1.3 (On my pc, before running this test case I had version 1.2).
    Runnign the test case showed that I give you a wrong sql the correct is:
    ALTER SESSION SET CURRENT_SCHEMA = ANIMALS
    note the _ before CURRENT and SCHEMA
    ciao,
    Giovanni

  • Application connection with DBs

    Just want to clear my concepts , how applications connect to DBs, normally we setup oracle DB network like listener.ora, tnanames.ora & sqlnet.ora and forward the tnsname entry to developers....i am wondering how they connect the DBs ....do they use ODBC, JDBC etc / what are the most popular connection method after we hand over tnsname to developer.....

    Ask the developers what they do. Noone here can tell you what your clients are doing.
    http://www.ask.com/web?q=how+do+I+connect+to+an+oracle+database&search=&qsrc=0&o=0&l=dir
    Message was edited by:
    dbtoo

  • PDA Application Connect to Database

    Hi,
    I want to develop application sit on PDA(like iPAQ) eg.Contact Manager (to keep personal contact). this require a database to keep all these information in the PDA so that can be retrieve.
    Its there any Micro-Database that can be installed into PDA (free?).
    Please show me the link to get this Installaler, JDBC and documentation.
    Please show me also the way to create database and table in PDA. and step to install this micro-db into the PDA.
    It would be more helpful, if someone can give me some simple example of a PDA Application connect to Database.
    Thanks in advance, Regards

    Open source one is :
    http://sourceforge.net/projects/hsqldb
    This one is not absolute free but the price is quite compelling.$995 for unlimited install.
    http://www.quadcap.com/home.html
    http://www.quadcap.com/purchase/index.html
    4. The rights granted pursuant to this Agreement are contingent upon Licensee's payment of the license fees for the QED Software. The License Fee for this Commercial Redistribution License is USD $995.
    Even SQL CE from MS is free, as long as you not use it connected to backend system. so if u could work out other sync implementation or u dont need data sync at all, this might be a choice too. The issue is no official JDBC driver for SQL CE though there is for SQL server.
    However, I have no hand on experience on those 3. We are evaluating Pointbase Micro, thought not free.l

  • Java Application connectivity to Coherence cluster

    I am looking around the options for Java application connecting to Coherence cluster..
    These are the options I seem to have
    1. Coherence Extend -
    2. Make Java application as a cluster member with no storage
    what are the pros/cons?
    Thanks

    Hi,
    Here are my thought off the top of my head
    *1. Use Extend if...*
    <li> Your application is short lived - i.e. does not run for very long (minutes)
    <li> Your application is not located close (in network terms) to the rest of the cluster
    <li> Your client uses a different version of Coherence to the cluster (there are caveats around this)
    <li> The client application is being developed by another team and its release cycle is not under your control
    Pros:
    Good for short lived applications
    Good for remotely located clients
    Can be written in other languages than Java
    Cons:
    Extend will perform slower than a cluster member as every request goes via the proxy server and then to the rest of the cluster.
    If using an invocation service where you want to run invocables across the cluster it needs a two step process.
    A badly written Extend client can perform requests which could take out the proxy server
    *2. Use a cluster member if...*
    <li> Your application runs for a long time - i.e. it is something like a web or application server
    <li> Your application is well behaved - i.e. does not have big GC pauses. A very badly behaved cluster member can destabilize the rest of the cluster
    <li> Your application is located close (in network terms) to the rest of the cluster
    Pros:
    Faster than an Extend client
    Cons:
    Needs to be stable
    Needs to be located close to the rest of the cluster
    Hope that helps as a start
    JK

  • How to change username and password in application connection?

    Hi all!
    when i create a application connection(10gAS), i must enter ias_admin and password, and EJB connection i must enter one user. but i don't know which user.
    can you tell me user and password of that user?
    and if i want change username and password then how must i do ?
    thanks!

    you may change the userID/ passwd from menu or create conn segment for each of the userID/ passwd combination .

  • Host column in the dba_db_links changing once application connects

    Hi,
    The host(net service name used to connect to the remote database) in the dba_db_links is changing to pindb.corp.youtele.com
    after database link creatoin the host is -> pindb
    once application connects is it changing to -> pindb.corp.youtele.com
    please can anybody shed some light on this

    HI,
    we created the private db link as below
    CREATE DATABASE LINK "PINDB_LINK" CONNECT TO PIN IDENTIFIED by PIN USING 'PINDB';
    select db_link,host, created from dba_db_links;
    DB_LINK                                         HOST                                               CREATED
    PINDB_LINK                                     PINDB                                             11-JAN-13
    but once the application connects the database the host column is changing in dba_db_links
    select db_link,host, created from dba_db_links;
    DB_LINK                                         HOST                                               CREATED
    PINDB_LINK                                     pindb.corp.youtele.com                             11-JAN-13
    as host is changing users are facing the issue
    in sqlnet.ora file we have commneted
    #NAMES.DEFAULT_DOMAIN = corp.youtele.com and show parameter db_domain shows
    NAME                                 TYPE        VALUE
    db_domain                            string
    please can you help on this why it is changing and how we can troubleshoot

  • How does PeopleSoft ( web application)  connect to DB ?

    Hi,
    How does PeopleSoft ( web application) connect to its Oracle database, does it use JDBC or OCI or else ?
    Thank you.

    The webserver is connecting to the application server through the Jolt port, and the application server is connecting to the database within a database client installation (runtime).
    Nicolas.

  • Can Air application connect behind a proxy server

    Can Air application connect behind a proxy server using HTTP
    or SOCKS.
    thanks

    I tried it but its not working. I am using XMLSocket
    var socket:XMLSocket = new XMLSocket();
    socket.connect( server, 5000 );
    It returns "no response from server", It works fine if i
    directly connected to internet.
    My browser is able to connect to internet means all
    configurations are fine.

  • How sap application connect oracle database

    The gurus,
    I just to known how sap application connect to oracle database. Where or what the configuration files at SAP level and oracle level.
    Thank you
    Edited by: Muzaidi Marjuki on Apr 28, 2011 8:58 AM

    existing database to other database that also running on oracle ( right now we testing for recovery server) in case the existing server going down or have a problem that cannot been restore
    Its similar to DR setup, then why don't you install application at time of initial installation of DR?
    *Explain in  detial with a clear query
    Regards,
    Nick Loy

  • CDA XML Schema Data Connection

    I have been experimenting in Adobe Designer 7.0 and want to create an CDA XML schema data connection. I used the directions in the help screen and was almost finished, but I got a pop up box that said that my XML schema file was too big. What are the size limits for XML schema files?
    Linda

    usually you can make the binding global and all same named fields will end up with the same value. You may not be able to do that if you have bound your field to a data node in your XML. If that is the case then you will have to do it programatically. Lets assume you have Order_Number on Page 1 and Order_Number2 on Page 2. You would code on the calculate event of the 1st Order_Number field (the one where the number is calculated) - form1.Page2.Order_Number2.rawValue = form1.Page1.Order_Number.rawValue;
    You can add multiple statements to equate that value to other instances of the field as you see fit. Now when any one of those values changes all of the others will be updated auto-magically!

  • Pinging an Application connection in SMP Cloud fails

    Hello Experts,
    I got one OData URL https://sapes1.sapdevcenter.com/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT and i can access it in a browser using my NW demo system username and password.
    in SMP cloud edition, i am trying to create one application connection:
    And when i ping this newly created application id, i get two errors saying
    Backend system cannot be reached
    Security system cannot be reached
    Did i miss something in between?
    Rgrds,
    Jitendra

    Midhun VPMayur DharukiyaMidhun VP
    Yes, correct. I am able to ping for HTTP but issue is with https.
    Daniel,
    Can you please share the steps how exactly i have to configure for https based odata url?
    Rgrds,
    JK

  • SCC Security Configuration (Application Connection)

    Hi,
    while creating a new application connection, one has to choose which kind of security configuration you should take. Per default you can choose "basic" and "admin". Is there any "best practice" for security settings on production systems? The only information I found is not to use "basic" on production systems...
    How to configure the security setting for application connections?
    Thanks, Chris

    You should not use the default security profiles in production environment. Given below is the available built in securities you can configure for your app.
    http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01703.0213/doc/html/aba1253113891962.html
    Midhun VP

  • How Does an Application connect to the DB after authentication

    We working on a prototype to implement the OID
    and achieve Single Sign On.
    We have an OID installed,
    The wallet manager installed.
    The Wallet Client Installed.
    We have an DN entry created into the OID.
    We then login into the Wallet client.
    How do we connect to the database..?
    Or how will an application connect into the database.
    We have the users created into the database as:
    "create user <username> identified globally as <Complete DN for the user>;"
    Is it through Net8 LDAP Native Naming Adapter.
    Where can I find some more info on this LDAP Native Naming Adapter.
    Regards,
    Puneet

    Hello Puneet:
    Are you trying to acheive Enterprise user authentication useing OID? If so you should visit our Advanced Security web page
    located at:
    http://otn.oracle.com/deploy/security/aso/content.html
    There are a few technical whitepapers you should read there. Namely "Enterprise user security" and
    "Oracle Advanced Security: Security and Directory Integration"
    Let me knwo if this helps
    Jay

Maybe you are looking for

  • SBO_SP_TransactionNotification, check status of open items with other sales

    Good morning, need help with a SQL to SBO_Transaction. I need to check the database (Table ORDR and RDR1) if there are items on other sales documents with the open status and must be for the same business partner of the document being entered. The sc

  • Unable to access files on Windows 7 computer from Windows 8.1 computer

    I have a Windows 7 desktop and a Windows 8.1 laptop.  Both connect wirelessly to the internet via my Home Hub.  Because the desktop is my main repository of documents / pictures etc. I want to be able to access them from the laptop, but despite spend

  • Regarding touch pad left right click button

    Hi All, I am observing some problem in my touch pad right and left click, it needs too much pressing. Its not working as smooth as working in other hp laptops. Can you please help us on this. Or send some technician to check at my home

  • How do I get a plain list w/o thumbnails?

    I am a photographer and I'm spending hours, literally, waiting for the little thumbnails to build when I go to open a file. How do I get rid of them? I use several extrnal hard drives to store and organize my images.  That doesn't seem to be the prob

  • Group Condition at Header on Scale basis

    Hi, I want to know, how system assign the corresponding condition amount of header to individual item . in our system e.g in our system we have condition ZD22 for packainf and forwading charges as fixed amount and scale is qty i have add Rs 300 at he