Copy application to same workspace

I need to duplicate an application on a workspace, but I would like to use new tables.
How can I copy an application but have all of the tables now use a new prefix. such that every table table_name would now be prefix_table_name?

Hello,
Arie's suggestion is definitely the 'least pain' method, using Datapump makes it a breeze to clone the schema too, you could be up and running in minutes (depending on the size of your schema etc).
Another, much more painful route, would be to write some code which loops round user_tables and creates (using dynamic SQL) your new tables. After that you can export your application, load it up into a text editor (since the export file is just a text file containing SQL and PL/SQL code etc) and then do a search/replace to rename all your references to the old tables. Of course you'll also need to handle any triggers, sequences etc that you might use too in reference to the original tables. I'm not recommending this approach at all however, since it's pretty painful (depending how many tables you're talking about) and much more prone to error (imagine if you have 200 tables and you fail to rename one of them so that your DML applies against the original table...what's the chance of missing that until it's too late?).
I am using a host that does not allow me to have more than one Workspace Schema.Are you sure? As someone who provides hosting, I can't believe any other hosting companies would actually turn down extra business ;)
Hope this helps,
John.
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd

Similar Messages

  • Websheets: create link to APEX application in same workspace

    Hi all,
    I'm trying some things with websheets in APEX 4.0.2 and I'm getting quite satisfied about it.
    Let's assume I have this situation:
    app_id 110 : database application with alias MAIN
    app_id 120 : database application with alias SEC
    app_id 130 : websheet application
    They all use the same authentication function, which works fine.
    App 110 and 120 use the same authentication cookie and there are links between these two applications. No problem at all.
    Now, I want to include links to and from the websheet application.
    The link to the websheet is easy: ws?p=130:HOME:&SESSION. So far so good and no log-in required.
    A link from inside the websheet application to a database application is something else.
    I've already found how to use markup syntax to link to another page in the same websheet
    [[HOME | Home link]]and to an external website
    [[http://www.oracle.com | Oracle]]But I can't find the syntax to link to a database application in the same workspace as the websheet.
    I could use
    [[http://<myserver>.<mydomain>/apex/f?p=MAIN:HOME | Home application]]But this is not working flexible. I want to leave out everything before f?p
    If I would install these three applications on antother server, my link won't work anymore.
    Also, I can't find a way to include the session id. &SESSION. isn't working. So with the above syntax, I would have to re-login in my database application.
    Then I tried this
    [[f?p=MAIN:HOME | Home application]]But this isn't working at all. The websheet shows me the create page wizard and fills in the name of the page: f?p=MAIN.
    Can anyone help me out on this?
    Am I expecting to much from websheets at the moment, is this a missing feature or am I doing something wrong?
    Thanks in advance!
    Regards,
    Bart

    Hi,
    Sorry originally I thought you were linking to websheets not from, I don't think websheets have the same capability as a database application, so i don't think apex picks up on substitution strings. Im not sure how processing with websheets work, but I think its very minimal.
    Ive tried it myself, is there a reason you need the session? If I leave the session blank I can get back to the database application, I cant vouch if you're starting from your websheet but I imagine that apex will fill it in for you as its an apex url.
    Cheers
    Huia
    Edited by: Hoppy on 05-Jan-2012 14:48

  • Single log in for multiple apex application in same workspace

    hi forum.
    We created 5 applications based on same schema and all in one workspace now. Actually, initially they were created on different machines. now, we have to authenticate users from AD and depending on user type, have to allow or deny some modules. i have created one pager application which have 5 buttons and can control rendering of buttons according to user logged in but...the problem is, inside the applications, i have restrictions on some reports for some users...now one way was to do that is to create a log in for every application separately and thus every application would exactly know who is logged in. but that would be impractical as we need single-sign-on kind of functionality.
    please let me know how to have a single log in page work for all application inside the apex workspace so that every application would know name of the user currently logged in.
    for the 5 applications, i actually use No_Authentication authentication scheme. and i use following function initially for my one pager application to render the buttons to user or deny
    create or replace function getUserName return varchar2
    is
       userName varchar2(20);
       c owa_cookie.cookie;
    begin
        c := owa_cookie.get('LOGIN_USERNAME_COOKIE');
        userName := c.vals(1);
        return trim(userName);
    end;but i cannot user this function obviously in my 5 actual applications.
    help is requested please.
    bundle of thanks in advance.

    You can create one application that does the login authentication according to your authentication scheme. When authenticated, this login app sets a cookie. That's all the login app does (and maybe show a list of available apps to choose from).
    The other apps have an even simpler authentication scheme. The only thing they have to do is check the cookie and redirect to the login page (Session Not Valid URL) if there is no valid cookie.

  • Separate CSS files for Differenct Applications in the Same Workspace

    I am working in APEX 4.0, using Theme 4 (Topaz), primarily with the region template "Top Bar." The application I am working on has gotten so large that I decided to break it into two applications. So I copied the original application and then deleted the pages that I did not want in the second application. I then modified the authentication for a single login. One of the nice things about the Top Bar template is that you can color the background. I had a blue background in the first application and wanted to use a differenct color in the other. So I created a second CSS file and uploaded it to the Cascading Style Sheets area of the Shared Components file for the second application. Turns out that both it and the style sheet for the first application now show up in the CSS file area. The CSS file for the second application has no effect. Here is the CSS code:
    .rc-content-main
          background-color: #E5E5AA;
         }I also tried giving the region on each page in the second application a static id and then identifying them in the CSS file by the id. That didn't work either, at least not yet. Sometimes it takes the server a while to refresh.
    Question: For two applications in the same workspace, can there be separate CSS files? If so, how do I set them up so that each responds only to one of the applications?
    Edited by: Doug on Nov 14, 2012 4:54 AM
    Edited by: Doug on Nov 14, 2012 7:16 AM

    Hello,
    If you upload your file to Shared Components >> Cascading Style Sheetst then:
    edit your page template in the header section and just before +*</head>*+ tag  add :
    <link rel="stylesheet" src="#WORKSPACE_IMAGES#MY_FILE.css" type="text/css" />And that will be applied for all pages that have the same Page Template.
    You can edit a page and put this in the header section to be applied only for a that page:
    <style>
    <link rel="stylesheet" src="#WORKSPACE_IMAGES#MY_FILE.css" type="text/css" />
    <style>If the file is on your web server then replace #WORKSPACE_IMAGES# with #IMAGE_PREFIX#
    This should be helpful to you:
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_sub.htm
    Best Regards,
    Fateh
    If you believe that my answer is correct or helpful to you, then please mark it as helpful or correct...

  • Issue: Copying page from one appln to another appln in same workspace

    Hi All,
    I am using APEX 4.0.2 version.
    I tried to copy a page from one application (2001) to another application (1000) in same workspace using the option 'New Page as a Copy'. The page is copied correctly. But sometime I am getting some issues in copied page in application 1000 like button id (button id of the button used in 2001) is updated instead of button name in some processes which are using the condition as button name in 'When Button Pressed' option and Sometimes LOV's are also changed when we give copy in the wizard .But the copied page in application 1000 is working fine in that workspace. The same page exported and imported in application 1000 on different instance (consider it's a production instance). In production, The process is not working when the button is pressed.
    My questions are,
    1) Buttons are not sharable, Why the copied page in application 1000 working correctly and the process is called when the button is pressed??
    2) Why it’s not updating the button name in 'When Button Pressed' option?
    Is it a bug?? How can we resolve these type of issues??
    Thanks
    Lakshmi

    Hi Lakshmi,
    Given that your environment is running 4.0.2, would you mind carrying out a similar test on our hosted instance, apex.oracle.com, to verify whether the issue you hit has been resolved with our latest release?  If it hasn't been resolved, please outline the steps to reproduce the issue.
    Also just to address some comments made by Howard:
    "But for items and button names in processes, computations, conditions and ... this updating may NOT occur.  (I don't have a list of what gets updated and what not.)  APEX is not assuming that item PX_SAL in a CONDITION is to be update to PY_SAL on the new page.  You may know that's what you wanted but from what I've seen, APEX does not assume a 1-1 correspondence in these other cases."
    You are correct in stating that sometimes references to page item names are not renamed during the copy page process.  However, that is a bug.  The copy process should be renaming page item references, updating the name to reference the new page ID in place of the original page ID.  For example, when copying page 1 to a new page, 2, then any page items from page 1 should be renamed during the copy process to reference the new page number, i.e. P1_NAME should be renamed to P2_NAME, and references to that original item name should also be updated.  Only this morning, a customer raised a 4.2.2 bug (17054144) for an issue in the copy page process, where page items referenced in the "Conditional Display" settings of an Interactive Report column were not being renamed.  While verifying that issue, I also noticed a similar problem which impacts Classic Report columns, and Flash chart series queries.  These issues will be resolved in a future release, but please do update this thread if you have identified any other occurrences that you believe should be handled during the copy page process.
    Regards,
    Hilary

  • How can I share user in the same workspace but different applications

    I recently created a new application (new) in the same workspace as my old application (old).
    I have about 35 application express users. They are stored in uppercase.
    The new appl (old) , login page will only accept the DB user login and Not the application users. When I type it in uppercase, it revert it to lower case.
    I have no authentication schemes, uses all defaults. I created a DB user and 35 application users.
    It give me " Invalid Login Credentials'.
    I am due to upgrade tomorrow, but now have run into this problem!!
    Desperate

    Angela,
    That is not clear.
    I recently created a new application (new) in the same workspace as my old application (old).Now you have exactly two applications in that workspace.
    I have about 35 application express users. They are stored in uppercase.Okay.
    The new appl (old) , ...What?
    ...login page will only accept the DB user login and Not the application users.What DB user did you create and why did you create it? Your application must be using a different authentication scheme that the one you intended. Check the current authentication scheme and set it to the Application Express scheme (make it current) or whichever scheme matches that used by the working application.
    When I type it in uppercase, it revert it to lower case.I can't explain that unless you created a database user account using double quotes around the lower-case name.
    I have no authentication schemes, uses all defaults. I created a DB user and 35 application users.Again, why did you create a DB user?
    I am due to upgrade tomorrow, ...What is an upgrade?
    What is your current database version and Application Express version?
    Scott

  • Pass Username & Password to a Different Application in the Same Workspace

    Can I pass the username and password from a main menu to open a different application in the same workspace. I'm trying to prevent the user from having to logon again. My main menu has links to different applications within the same work space.
    Thank you

    Anonymous - One way to do it (if you are using HTML DB's built-in session management) is to edit each application's authentication scheme and type in the same cookie name in the cookie name field (use any name you like). Another way is to use Single Sign-On.
    Scott

  • 10.1.3 Same workspace migrates fine on one machine, not on another

    The same workspace (10.1.2) opens fine (and runs) on one workstation.
    On the second workstation, there is an error on the load (after the first "migration dialog"):
    Error Loading Business Component
    Exception: java.lang.NullPointerException
    java.lang.NullPointerException
         at oracle.jbo.dt.ui.main.DtuUtil.doFixUpVersion(DtuUtil.java:1615)
         at oracle.jbo.dt.ui.main.DtuUtil.fixUpVersion(DtuUtil.java:1655)
         at oracle.jbo.dt.jdevx.ui.JdxLoader.doOpenProject(JdxLoader.java:1541)
         at oracle.jbo.dt.jdevx.ui.JdxLoader.openProject(JdxLoader.java:1488)
         at oracle.jbo.dt.jdevx.ui.JdxLoader.update(JdxLoader.java:147)
         at oracle.ide.model.IdeSubject.notifyObservers(IdeSubject.java:94)
         at oracle.ide.model.Node.notifyObservers(Node.java:458)
         at oracle.ide.model.UpdateMessage.fireObjectOpened(UpdateMessage.java:681)
         at oracle.ide.model.Node$1$4.run(Node.java:1527)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:515)
         at java.awt.Dialog.show(Dialog.java:536)
         at java.awt.Component.show(Component.java:1300)
         at java.awt.Component.setVisible(Component.java:1253)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:293)
         at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:188)
         at oracle.ide.migration.NodeMigrator.doMigration(NodeMigrator.java:336)
         at oracle.ide.migration.NodeMigrator.migrate(NodeMigrator.java:141)
         at oracle.ide.migration.NodeMigrator.migrate(NodeMigrator.java:294)
         at oracle.ide.cmd.OpenCommand.checkWorkspaceOpen(OpenCommand.java:579)
         at oracle.ide.cmd.OpenCommand.open(OpenCommand.java:162)
         at oracle.ide.cmd.OpenCommand.doit(OpenCommand.java:85)
         at oracle.ide.IdeController.handleEvent(IdeController.java:476)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:525)
         at oracle.ide.controller.IdeAction$1.run(IdeAction.java:772)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:789)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:498)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)When the application runs for the first time, another error appears:
    500 Internal Server Error
    java.lang.NoSuchFieldError:  oracle.ord.im.OrdDocDomain.conn
       at oracle.ord.im.OrdDocDomain.create(OrdDocDomain.java:2108)
       at oracle.jdbc.driver.Accessor.getCustomDatum(Accessor.java:1402)
       at oracle.jdbc.driver.OracleResultSetImpl.getCustomDatum(OracleResultSetImpl.java:1347)
       at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1201)
       at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:1633)
       at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:2221)
       at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1064)
       at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2943)
       at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2842)
       at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2203)
       at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2088)
       at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1468)
       at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
       at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2818)
       at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2674)
       at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2634)
       at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1474)
       at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2827)
       at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:5699)
       at model.PDFViewImpl.setPDFViewWhere(PDFViewImpl.java:31)
       at view.MyPDF.doPost(MyPDF.java:73)
       at view.MyPDF.doGet(MyPDF.java:39)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
       at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
       at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
       at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
       at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
       at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
       at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
       at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
       at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
       at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
       at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
       at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
       at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
       at java.lang.Thread.run(Thread.java:595)What might cause this behavior? The one machine runs Windows 2000 (the one where it does not work), and the other runs Windows XP (if that matters).
    Thoughts?
    We're comparing the converted/migrated workspaces from each machine. the workspace only has one entity/one view/one app module, and a servlet with two user defined exceptions and an error page.

    For 1 of the 15 times I tried to open the workspace it opened and compiled ok.
    Then, I got the second error anyway. However, the second error was resolved by UNDOING a change that I did to the \jdev1013\ord\jlib folder. I don't understand why the files in that folder are so "dated":
    C:\Documents and Settings\egivler>dir C:\jdev1013\ord\jlib /on
    Volume in drive C is SYSTEM
    Volume Serial Number is 580E-B3EB
    Directory of C:\jdev1013\ord\jlib
    02/10/2006  10:44a      <DIR>          .
    02/10/2006  10:44a      <DIR>          ..
    12/29/2003  03:26p              68,320 customizer.jar
    12/29/2003  03:26p           1,944,842 jmf.jar
    12/29/2003  03:26p              36,180 mediaplayer.jar
    12/29/2003  03:26p              58,129 multiplayer.jar
    12/29/2003  03:26p              82,373 ordhttp.jar
    12/29/2003  03:26p              72,254 ordim.jar
    12/29/2003  03:26p              29,008 ordvir.zip
                   7 File(s)      2,291,106 bytes
                   2 Dir(s)  39,367,651,328 bytes free
    C:\Documents and Settings\egivler>dir C:\jdev10121\ord\jlib /on
    Volume in drive C is SYSTEM
    Volume Serial Number is 580E-B3EB
    Directory of C:\jdev10121\ord\jlib
    10/26/2005  09:45a      <DIR>          .
    10/26/2005  09:45a      <DIR>          ..
    07/21/2005  01:56p              68,320 customizer.jar
    07/21/2005  01:56p           1,912,751 jmf.jar
    07/21/2005  01:56p              36,180 mediaplayer.jar
    07/21/2005  01:56p              58,129 multiplayer.jar
    07/21/2005  01:56p              84,071 ordhttp.jar
    07/21/2005  01:56p             210,843 ordhttp11.jar
    07/21/2005  01:56p              87,301 ordim.jar
    07/21/2005  01:56p             185,758 ordim11.jar
                   8 File(s)      2,643,353 bytes
                   2 Dir(s)  39,367,634,944 bytes freeThe reason that I replaced them (with the 10.1.2.1 version) was that an interMedia servlet I wrote for 10.1.2.1 would not work in 10.1.3:
    Here was that code:
                  // worked in 10.1.2 with 10.1.2 JDBC drivers.
                  // Error(78,56): method getORADataFactory() not found in class oracle.ord.im.OrdDoc
                  // OrdDoc pdf = (OrdDoc) rset.getORAData(1, OrdDoc.getORADataFactory());      
                  // copied 10.1.2.1 ord jars into: C:\jdev1013\ord\jlib
                  // ok in 10.1.2 and if jars copied in
                  ORADataFactory ordDocFactory = null;
                  ordDocFactory = (ORADataFactory) OrdDoc.getORADataFactory();
                  // now what do I do in 10.1.3 for interMedia??

  • Creating or copying application express users from development environment

    Hello,
    Hope someone can answer my question soon.
    I am kind of new to the application express development and to Oracle database too ( about 8 month). I developed an application on development environment at my work. Now it's time to deploy this application to test and production environment. This application is secured so I had an ACL page were I setup 2 users that they can view and edit data, and I setup myself as an admin for this application.
    I succsessfully deployed the application on the test and production environment but I cannot login and not other users. How do I setup or to copy same users from Development to production environment.
    I am using apex 3.0.1 and database 10g.
    on Development I have workspace called development and the schema is DEV. For production I have a workspace called production and the schema called prod. So I am dealing with different 2 workspaces and 2 different schemas but one database instance.
    Thank you in advance for your assistance.
    Kind Regards,
    Sofia.
    Edited by: user633945 on Oct 15, 2008 3:36 PM

    Hello,
    APEX has a utility to export the workspace and the users. In the application, go to export/import --> export --> workspace users (this is not the default view, and you’ll need to choose it). This will generate a SQL script you can import into the source instance.
    In general, it’s best to keep the same environment in the development (test) and production instances – The same workspace ID, name, and application ID. These are pre-condition to be allowed to import single page/components between the instances. Otherwise you will have to import the entire application, each time you need to update the application.
    In case you can’t maintain the same environment in your instances, you’ll need to manually edit the exported script. If the workspace already exist, you need to delete the ‘Workspace’ section. Then you’ll need to edit the user details, setting the default schema correctly.
    Hope this helps,
    Arie.

  • How to combine two applications with different workspaces in APEX

    Hi,
    Can anyone help out in merging two applications with different workspaces in APEX 3.2 ?
    Thanks in advance,

    Hello Satya,
    >> I am Satya …
    Please take one more step to help us and update your forum handle to something friendlier than user123… Thanks.
    >> Can anyone help out in merging two applications with different workspaces in APEX 3.2 ?
    This is not a trivial task.
    You didn’t mentioned if both workspaces sharing the same APEX instance, or they are on two different instances (machines). I believe the latter is a pre-condition to a success.
    First you need to remember that importing an APEX component, like a single page, is possible only to the same application that it was exported from. This is still valid if you have the same workspace on two separate APEX instances – one is an import of the other (which makes it an identical copy). Still, the application ID must be the same, or you’ll get the following error: “This page was exported from a different application or from an application in different workspace. Page cannot be installed in this application.”
    You can’t simply manipulating the export file, if the two workspaces are sharing the same APEX instance, as all workspaces on the same instance shares the same APEX metadata files, and you’ll receive a “unique constraint violated” error messages. That means you can’t import one application into the workspace of the other, even if you are using a different application ID.
    As far as I can see, the only viable way of doing an application merge is to have two identical workspaces, on two separate APEX instances. The two applications should share the same application ID, although this parameter can be changed in the import file. You should export the page in one application – on the first instance – and import it into the other application – on the second instance.
    You should also make sure that the exported page ID doesn’t exist on the target application, otherwise it will be replaced by the new imported page. Also, if the imported page include references to shared components that are not defined on the second application, it might also pose a problem.
    As I said, this is not trivial. The benefits are mostly depend on the amount and complexity of the pages you want to merge. If they are not many, and simple, you should consider just re-creating them on the target application. If they are very complex, the merge might fail anyway.
    Regards,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • Error while installing an application to a workspace

    We have received the following error a few times out of 40+ installations:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-00001: unique constraint (FLOWS_010600.WWV_FLOWS_ALIAS_IDX) violated <pre>begin wwv_flow_api.create_flow( p_id =&gt;129, p_display_id=&gt;129, p_owner =&gt; 'MERLINDEV', p_name =&gt; 'Merlin 5.4', p_alias =&gt; 'MERLIN', p_page_view_logging =&gt; 'YES', p_default_page_template=&gt; 13755347070366358 + wwv_flow_api.g_id_offset, p_printer_friendly_template
    Background: We have developed a application that is used by multiple clients and as such requires that each client have their own version of the application. This is because each application is connected to the client's schema. Each application has the same application alias but is installed in a unique workspace which makes calling and starting the application via a URL easy, i.e.
    http://<host>:7777/pls/htmldb/f?p=<alias>:&c=<client_workspace>
    When installing the application into a workspace for the first time we allow HTML DB to Auto Assign the application ID.
    We have received the above error 3 times out of 40+ installations and when it occurs we simply repeat the install and all goes well. I was wondering if anyone has either seen this, knows what causes it and can suggest a remedy or things to watch out for.
    Thanks

    Thanks Scott. I've also been looking for a pattern of consistency that would point to the cause of the problem but have been unable to find one. I was hoping that others may have experienced the same error and could help to shed some light here.
    I dug around some and found that the wwv_flows_alias_idx constraint is a unique index on the alias and security_group_id columns of wwv_flows. My application has an alias that is the same for all installations so I thought that somehow a previously used value for security_group_id was being generated causing the unique constraint violation. Can you tell me how that value is generated during the install process? Is it some sort of hashing function?
    Thanks

  • Save password for several application in one workspace

    Hi, I have several applications in one workspace with custom authentication. How do I set the option to save password (which is same for all apps) , so I would not write password every time when switching from application to application. Thank you

    933913 wrote:
    Hi, I have several applications in one workspace with custom authentication. How do I set the option to save password (which is same for all apps) , so I would not write password every time when switching from application to application. Thank youIf you are using the same authentication for all your applications, then you can redirect to those applications just same as you redirect to the current app by just changing the app_id
    you can use a same session cookie name for all applications and make sure all apps use same authentication scheme
    Edit you application A > Shared Components > Authentication Scheme > edit your authentication > Session Cookie Attributes section
    set Cookie Name value to somestring
    for example: commonauthcookie
    Repeat the above step for all other applications and set the cookie name to the same as above

  • Is it possible to develop custom b2b and b2c application within same NWDS.

    is it possible to deploy b2b and b2c application within same NWDS.if not what all changes i have to make..?

    Hi,
    I am taking the original standard application SDA file format.extracting it.
    Create a Enterprise Application Project in Net Weaver Developer Studio (NWDS) and name it is as "ZLC_SERVICE" as the application name is ZLC_SERVICE.
    Create a Web Module Project in Net Weaver Developer Studio(NWDS) and name it is as "sap.comcrmisawebZLC_SERVICE"
    The NWDS will have two projects ZLC_SERVICE and sap.comcrmisawebZLC_SERVICE.
    Now Right Click on the EAR project and click "Add Modules". Select the Web Module Project and click ok
    1.Copy the war file  extracts into webContent folder of Web Module Project except WEB-INF and META-INF.
    2.Copy all the files of WEB-INF into WEB-INF folder of Web Module Project.
    3.Copy all files META-INF file which is out side the war file  into META-INF folder of EAR Application Project.
    4.Refresh the work space.
    Open application.xml file and replace the application tag with this.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'
      >
    <application>
      <display-name>crm~ZLC_SERVICE</display-name>
      <description>EAR description</description>
      <module>
        <web>
          <web-uri>sap.comcrmicsswebZLC_SERVICE.war</web-uri>
          <context-root>ZLC_SERVICE</context-root>
        </web>
      </module>
    </application>
    After building both web and enterprise application.I deploed Ear file in server.
    then it is throwing deployemtn aborted.
    Error Description:development component 'crm~ZLC_SERVICE'/'sap.com'/'localhost'/'2010.07.15.06.16.00'/'0':
    Caught exception during access of archive
    "/usr/sap/CD2/DVEBMGS02/SDM/root/origin/sap.com/crm~ZLC_SERVICE/localhost/0/2010.07.15.06.16.00/temp25686ZLC_SERVICE.ear":java.lang.RuntimeException:
    ERROR: Cannot initialize EARReader: Error while initializing Extended Ear Reader using file: /usr/sap/CD2/DVEBMGS02/SDM/root/origin/sap.com/crm~ZLC_SERVICE/localhost/0/2010.07.15.06.16.00/temp25686ZLC_SERVICE.ear.
    Reason: The following archives that aredescribed in the ear descriptor are not found in the ear:      sap.comcrmicsswebZLC_SERVICE.war,
    Please check the ear content.Exception is: (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).null)
    Thanks & Regards,
    Chinamaya

  • Multiple Applications Across Multiple workspaces

    Hello
    I have several apps that I intended on linking via one login app using custom authentication. These apps were originally setup on htmldb.oracle.com in the same workspace and the process worked fine.
    The server in my company has now been made available and I have set the applications up using seperate workspaces/schemas.
    When I now login and try to link to the databases via a report list, the session id is not transferring between the apps even thought I am using &SESSION_ID. in the URL, when I hover over the link the correct session Id looks as though it is going to be passed, however when the page is displayed a new session ID is created.
    Any ideas what the problem could be or am I trying to do something that is not possible?

    Ian - You can use a different schema for each application while keeping the applications in a common workspace. This would allow users to authenticate once and for the applications to share the same authenticated session. In doing this, however, a user has to be given links from one application to another, e.g., from a menu page, in order for the "session continuity" to remain unbroken (a requirement to prevent another login challenge). But since these may be unrelated applications that have no need to access one anothers' session state, it might be better to use Single Sign-On. With this method there is only one login required and a user can access each application which will maintain its own private session.
    Scott

  • How to copy page from different workspace?

    hi guys,
    can anybody tell me how to copy page frm different workspace..??
    thxs
    regards,
    Kumar

    Firstly sorry if my handle appears as User10390457, I've changed it but it takes a little time to update.
    Kumar,
    You should import the entire application from where you want to copy the page into the workspace where you want to copy the page to. You will have to change the workspace id (called 'p_security_group_id') to the workspace id that you're importing into, in the export file. You will also have to assign a different application id when you're doing the import. Thereafter you can copy the page using the normal copy function in Apex.
    I hope this is clear enough.
    Good luck.
    Vis Naidu

Maybe you are looking for