Copying database access with App copy

I have few applications that I need to copy (COPYAPP) including the security like user access to the databases but this is not getting done when I use COPYAPP esscmd.Any help/suggestion will be appreciated.Mohammad G

I have tried Copying database from source A to destination B but still the users who has access to database A don't have access to database B.Anyone else???MG.

Similar Messages

  • How to handle and Manage Multi DataBase access with LCDS in runtime ?

    Hello there
    I got several customer working with the same application and I wonder how,  with LCDS,  to manage  in a runtime a multi dataBase access; without creating a configuration "mxl" file in
    the folder catalina for each database.
    Indeed, each customer have their own dataBase, and so far, I did not find out how to avoid creating a config xml file in catalina for every single database; which force me to create as well for each customer a  folder application, since the name of the config file in catalina require a folder application to be ran under tomcat....
    Thus, my question is :
    Is there anyway to create only one configuration mxl file in catalina (in the server side) and then from the client side (application) let the user select its environment (meaning its database) to run the application.... this technic can be also used for multi database environment such as : Dev / Test / Prod   environment (or database) where the same application can access to.
    Please if any one have an idea or already delt with; just let me know, because I'm entering in a bootle neck and the situation is getting serioulsy critical....
    Regards

    Hello Ulrich,
    with compact and repair I mean the MSAccess function "Compact and Repair".
    Please follow the link below for more details:
    http://office.microsoft.com/en-us/access-help/compact-and-repair-an-access-file-HP005187449.aspx
    Normally you can execute this function directly in Access or with the Windows ODBC Data Sources Administrator  => "Control Panel" => "Administrative Tools" => "Data Sources (ODBC)"...
     I want to execute this function via cvi code and not by hand ;-).
    Thank you for your support.
    Frank

  • Database access with JSP custom tags

    i have created one file in which i am making the connection with mysql data base with con.mysql.jdbc.Driver.and usking J connector and that i'm doing with custom tag.this is the error which i'm getting in tomcat.
    and the tag handler class and TLD file and jsp file is below
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: javax.servlet.jsp.JspException: null
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl .java:841)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.j ava:778)
    org.apache.jsp.DbTry_jsp._jspService(org.apache.jsp.DbTry_jsp:72)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
    Try.Connect.<init>(Connect.java:26)
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    java.lang.reflect.Constructor.newInstance(Unknown Source)
    java.lang.Class.newInstance0(Unknown Source)
    java.lang.Class.newInstance(Unknown Source)
    org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:116)
    org.apache.jsp.DbTry_jsp._jspx_meth_db_connect_0(org.apache.jsp.DbTry_jsp:84)
    org.apache.jsp.DbTry_jsp._jspService(org.apache.jsp.DbTry_jsp:62)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.4 logs.
    Apache Tomcat/5.5.4
    Tag handler class
    package Try;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.JspWriter;
    import javax.servlet.jsp.PageContext;
    import javax.servlet.jsp.tagext.TagSupport;
    import java.sql.*;
    public class Connect extends TagSupport {
    private String driver = "com.mysql.jdbc.Driver";
    private String dbtype = "mysql";
    private String host = "localhost";
    private String username = "root";
    private String password = "203131";
    private String database = "compose";
    private String scope = "page";
    private String id = "";
    JspWriter out = pageContext.getOut();
    public void setDriver(String str) {
    driver = str;
    public void setDbtype(String str) {
    dbtype = str;
    public void setHost(String str) {
    host = str;
    public void setUsername(String str) {
    username = str;
    public void setPassword(String str) {
    password = str;
    public void setDatabase(String str) {
    database = str;
    public void setScope(String str) {
    scope = str;
    public void setId(String str) {
    id = str;
    public int doStartTag() throws JspException {
    try {
    Class.forName("com.mysql.jdbc.Driver");
    String url= "jdbc:" + dbtype + "://" + host + "/" + database;
    Connection connection = DriverManager.getConnection(url,username,password);
    out.println("right ;;one");
    catch (SQLException e1) {
    System.out.println("Error in HeadingTagv: " + e1);
    catch (Exception e) {
    System.out.println("Error in HeadingTag: " + e);
    return SKIP_BODY;
    TLD is lib.tld
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>db</short-name>
    <display-name>Database Tags</display-name>
    <description>
    A set of tags for working with SQL database access
    </description>
    <tag>
    <name>connect</name>
    <tag-class>Try.Connect</tag-class>
    <body-content>empty</body-content>
    <description>
    </description>
    <attribute>
    <name>driver</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <description>
    </description>
    </attribute>
    <attribute>
    <name>dbtype</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <description>
    </description>
    </attribute>
    <attribute>
    <name>host</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <description>
    Can be given by a run-time expression.
    Host name of the computer where database is located.
    Default is "localhost".
    </description>
    </attribute>
    <attribute>
    <name>username</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <description>
    Can be given by a run-time expression.
    Username for logging onto the database.
    Default is "root".
    </description>
    </attribute>
    <attribute>
    <name>password</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <description>
    Can be given by a run-time expression.
    Password for logging onto the database.
    Default is the empty string.
    </description>
    </attribute>
    <attribute>
    <name>database</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <description>
    Can be given by a run-time expression.
    The name of the database that will be used for
    the SQL commands. Default is no database specified.
    </description>
    </attribute>
    <attribute>
    <name>id</name>
    <required>false</required>
    <description>
    </description>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <description>
    </description>
    </attribute>
    </tag>
    </taglib>
    JSP file is
    <%@ taglib uri="/WEB-INF/lib.tld" prefix="db" %>
    <html>
    <body>
    <db:connect username="root" password="203131" database="compose" />
    </body>
    </html>

    Answered in your other post:
    http://forum.java.sun.com/thread.jspa?threadID=608780&tstart=0

  • Database access with Jave Web Start

    Can a java application, that has been deployed by using Java Web Start, access information from a database that's located on the web server from where the application was deployed?

    Yes, if you use the type 4 (ie, thin) driver and include the driver's jar file as part of the app.
    Technically you can do it with a thick driver but then you have first install the driver on the client machine and I assume this isn't what you are looking for,

  • Database access with xslt document

    Hello,
    I have a big problem. I have a database with three tables and more than hundred records. From the records of these three tables a xml document should be generated. I already have a xslt file which gets the data from the database and brings in a xml form. Is there in BPEL a possibility with the help of a xslt file to access a table? And if so like this is done? Can one give the xslt file in the data bank adaptor? The xslt file has the following appearance:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <xsl:apply-templates select="RESULTSETS/SELECT[@NAME='idoc_element']">
    <xsl:with-param name="parent_id" select="'0'"/>
    </xsl:apply-templates>
    </xsl:template>
    <xsl:template match="RESULTSETS/SELECT[@NAME='idoc_element']">
    <xsl:param name="parent_id"/>
    <xsl:for-each select="ROW[(parent_id=$parent_id)]">
    <xsl:variable name="element_name" select="name"/>
    <xsl:variable name="element_id" select="id"/>
    <xsl:variable name="position" select="position"/>
    <xsl:variable name="child" select="/RESULTSETS/SELECT[@NAME='idoc_element']/ROW[(parent_id=$element_id)]"/>
    <xsl:element name="{$element_name}">
    <xsl:for-each select="/RESULTSETS/SELECT[@NAME='idoc_attribute']/ROW[(element_id=$element_id)]">
    <xsl:variable name="attr_name" select="name"/>
    <xsl:attribute name="{$attr_name}"><xsl:value-of select="value"/></xsl:attribute>
    </xsl:for-each>
    <xsl:choose>
    <xsl:when test="$child">
    <xsl:apply-templates select="/RESULTSETS/SELECT[@NAME='idoc_element']">
    <xsl:with-param name="parent_id" select="$element_id"/>
    </xsl:apply-templates>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="value"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:element>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    This xslt forms a loop about the suitable data and joins them to a xml file.
    It would be really great if somebody could help me there.
    Thanks
    Greeting Cathleen

    Hello,
    I know that I can define the relations between the tables in the DB Adapter.
    But how do I say to him which data he from the tables should get and how should these be joined?
    Since my tables are built up as follows:
    Table 1 contains the head of the xml document.
    Table 2 contains the attributes.
    And table 3 contains the real elements of the xml document.
    This is, for example, table 3:
    Element | Name | Value
    /root/E1 | E1     
    /root/E1/E2 | E2
    /root/E1/E2/E21 | E21 | 7777
    /root/E1/E2/E22 | E22 | Germany
    /root/E1/E3 | E3 | UTIL
    And this structure should have afterwards the following construction:
    <root>
    <E1>
    <E2>
    <E21>7777</E21>
    <E22>Germany</E22>
    </E2>
    <E3> UTIL </E3>
    </E1>
    </root>
    Besides, subdivide themselves Element2 and Element3 and there is of it more than 100. It is very big xml document at the end.
    So a xml file should originate only from the records of the table and I know not at all like I should do this with the DB Adapter. OR as I give in the DB Adapter or where I give it.
    It would be really very nice and helpful ones if somebody can help me there. This is since very important for my work.
    Thanks
    Greeting Cathleen

  • Database access with JSP

    Hello,
    i have a Java Server Page where i fill in some data in a formular. I want to put these data (only two strings) in a database. I already use a servlet to give this data to a (already existing) stateless session bean. I also created and deployed an sda, so that the table exists in the database.
    But i do not understand, what to do next - how to use an entity bean to fill the table.
    Can anyone give me some hints?
    Thanks,
    André

    Hi Andre,
    you need to retrieve the Home Object of your entity bean and use it to create, the same way you create your session bean.
    Example:
    InitialContext initialContext = new InitialContext();
    EjbObject myEjb = null;
    try {
      java.lang.Object objRef = initialContext.lookup(EjbHome.JNDI_NAME);
    EjbHome home = (EjbHome)PortableRemoteObject.narrow(objRef, EjbHome.class);
             myEjb = home.create();
    } catch (Exception) {
             initialContext.close();
    The lookup to the home object can vary, you might also have helper classes for that, it depends on your application server, API and architecture.
    But however the call or whichever the server, you basically need to retrieve the home object of your entity bean and use the method create() - with any required parameters. Pretty much the same way you create a session bean.
    Hope this helps.
    regards,
    Dionisios

  • Database Access with JspDynpage

    Hi,
    I want to know if it ist possible to access the WAS Database over JspDynpage.
    If yes, can someone post me a tutorial or the way how to do that?
    Thanks and Regards,
    Dennis

    Hi Dennis,
       U can create a connection and do datasource lookup and access the database.
    InitialContext contx = new InitialContext();
    DataSource datasource = (DataSource)contx.lookup("jdbc/SAP<SID>DB");
    Connection connection = datasource.getConnection();
    Statement stmt = connection.createStatement();
    ResultSet rs = stmt.executeQuery("Select * from table");
    Also refer to this link for another example.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fe/68e343cc68414da4426258d3e896ae/content.htm
    Regards,
    Harini S

  • Server side database access with Applets?

    Does anyone know how to do this without any JDBC or any other expensive, server heavy and special requirements?
    Who could be interested in this?
    Am i the only one?
    Most internet hosts, rented i mean, do not give many possibilities you have PHP and not much more to access a MySql or other database engine.
    If you want to build an aplication, a decent one, you must use java Applet because server side Java is not very interesting and is very expensive.

    Personally, I think server-side Java is very interesting and would disagree that a decent web application necessarily requires applets.
    I use Supplehost for their reliable and inexpensive Java hosting service.
    Many sites and applications make use of cross-browser DHTML and Java server technologies (JSP and servlets) are ideal for building and delivering data-driven DHTML pages.
    Of course applets have their advantages but, without a server providing access to data in a database, they're effectively working just as a static web page.
    There are other interfaces to databases: for example, Microsoft SQL Server provides the means to interrogate SQL databases through the underlying web server and to have the results returned in XML format.
    For me, J2EE provides the best tools for developing data-driven applications and the question over which client should do the presenting is more often one of how best to cater for the intended audience: cross-browser DHTML is best in some circumstances, applets in others, Macromedia Flash in others.
    Check out Supplehost's site: you get SSH and secure FTP access to a shared server, can install and run servlets and JSP applications and upload, configure and restart your applications very easily:
    http://www.supplehost.com
    Chris.

  • How to use taglibs in JSP for Database access

    Hi
    Could any one please tell me how to use taglibs in JSP for Database access
    with regrds
    Jojo

    This is a sample how to connect to a MySQL database with JSTL 1.0:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>JSTL MySQL</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <c:catch var="e">
    <sql:setDataSource var="datasource" url="jdbc:mysql://Your_Server_Name_Here/You_Schema_Here"
                           user="Your_Username_Here" password="Your_Password_Here"
                           driver="com.mysql.jdbc.Driver"/>
    <c:out value="datasource= ${datasource},  Class = ${driver.class}"/>
    <br />
    <br />
    <sql:query var="deejays" dataSource="${datasource}">SELECT * FROM Your_Table_Name_Here</sql:query>
    <table>
    <%-- Get the column names for the header of the table --%>
    <c:forEach var="columnName" items="${deejays.columnNames}"><th><c:out value="${columnName}"/></th></c:forEach>
    <tbody>
    <%-- Get the value of each column while iterating over rows --%>
    <c:forEach var="row" items="${deejays.rows}">
      <tr><c:forEach var="column" items="${row}">
            <td><c:out value="${column.value}"/></td>
          </c:forEach>
      </tr>
    </c:forEach>
    </tbody>
    </table>
    </c:catch>
    <br />
    <br />
    <c:if test="${e!=null}"><span class="error">Error</span>�
      <c:out value="${e}" />
    </c:if>
    </body>
    </html>And this thread might help you:
    http://forum.java.sun.com/thread.jspa?threadID=639471&tstart=44

  • Copying database table with data

    Dear Team,
    I want to copy a database table with all entries of that table. example: if i am copying MARA table as ZMARA i want all the entries of MARA should also exist in ZMARA.
    Is it possible to do this without writing any piece of code.
    Regards,
    N.Jain

    Hi,
    It is not possible to do the same without coding.
    Regards,
    Sriram
    Edited by: Srirama Murthy Maddirala on Jun 4, 2008 11:14 AM

  • How to build database driven mobile apps with dreamweaver and phonegap?

    Hi all,
    I'm searching the easiest way to implement a simple database in my app.
    I can build application with php/mysql in seconds with dreamweaver.
    But how can I do something similar with dreamweaver cs5.5 and phonegap for mobile apps?
    I would like to create a little app that pulls data from a mysql database on my webserver.
    But it seems that dreamweaver/phonegap/jquery mobile work only with HTML files.
    I searched the whole web for a day now but I haven't found anything easy to recreate.
    Is there a tutorial that explains the basic of database for mobile in dreamweaver?
    It seems a bit limitating to use dreamweaver to build only static/useless apps....
    What about forms and data validation?
    TIA for any help.
    tony

    @idesdema: Have a look at this tutorial: http://www.codeforest.net/jquery-mobile-advanced-tutorial-rss-reader-app
    It includes a demo as well as a download link to the source files.
    Also, if you want to take it a step further, you can create & manage a 'local database' without having to access anything remotely - basically handling everything at the client's end.
    There's a tutorial for that here: http://the-jquerymobile-tutorial.org/jquery-mobile-tutorial-CH22.php
    Good luck.

  • Accessing an SQL Server Database created by MS Access Web App

    1.I have tried to use MS Access Web App which has created an SQL Server Database. I would like to access the database using SQL Management Studio Express 2014.  In access I can see the server name on windows.net and the database name but I do not know
    how to connect to this using SSMS Express 2014. Can you please help?                                                                         
    2.I also want to view our emails on MS Exchange in real-time. In MS Access Jet I can do this by linking the folders as tables. Is there a way of doing this in SQL Server? If not can I have a separate MS Access Jet with linked tables which I can then link into
    my SQL Server as an OLEDB Linked server?                                                                                                                         
    3. If going for the Linked Table in Jet solution where can I store it so that my MS Access Web App will have access to it?

    Hi gkounis,
    I don't think it support link MS Access Jet with linked tables in SQL Server.
    Can you share some info about your MS Access Web App?
    Regards,
    Black

  • Developers access to apps database user(Best Practice)?

    Hello all,
    I'm trying to understand a developers need to have access to the "apps" database user. The arguent can be made that the need is there for all development efforts, but is that really the case? Should all updates/changes by the "apps" user be executed by the apps dba even in the development environment? I'm trying to get a better understanding of how other organizations are set up. Our shop currently allow developers free raign to the apps user, but there are known security risks in doing so with "apps" being such a powerful user of the database environment.
    Thanks in advance and any recommendations(Best Practices) will be greatly appreciated.

    Hi,
    We usually give developers access to APPS schema on the development instances. The access to this schema (and other schemas) is revoked on the UAT/PROD (and other instances where the data is not sanitized). When giving such access we are not much worried about the data as much as we are about the objects, but this is not a big issue as we can recover those objects from other instances. Some organizations do not provide their developers with access to APPS schema on the development instances and all the tasks are done by the Apps DBA team. Another approach would be creating a read only APPS schema (search the forum for details) to allow developers to view the objects/data without bugging the DBAs with such routine tasks.
    Thanks,
    Hussein

  • I am not able to access the App Store on my Iphone 3GS with IOS 6.01, however i can access the same on my laptop when i connect my phone to my PC. Any suggestions on this.

    I am not able to access the App Store on my Iphone 3GS with IOS 6.01, however i can access the same on my laptop when i connect my phone to my PC. Any suggestions on this.

    varunsharmaapplefan
    http://support.apple.com/kb/ht5209 might help you.  An iPhone 4 can airplay content from apps that support airplay and iTunes but it cannot mirror.  If your game does not have airplay in the app you cannot mirror it to the apple TV so I don't know if you can play just the music.  You should have no problem playing your iTunes over airplay though.
    This may also help http://support.apple.com/kb/HT4437
    Regards
    Jules 

  • How to handle and manage a multi Database access in runtime with LCDS?

    Hello there
    I got several customer working with the same application and I wonder how,  with LCDS,  to manage  in a runtime a multi dataBase access; without creating a configuration "mxl" file in
    the folder catalina for each database.
    Indeed, each customer have their own dataBase, and so far, I did not find out how to avoid creating a config xml file in catalina for every single database; which force me to create as well for each customer a  folder application, since the name of the config file in catalina require a folder application to be ran under tomcat....
    Thus, my question is :
    Is there anyway to create only one configuration mxl file in catalina (in the server side) and then from the client side (application) let the user select its environment (meaning its database) to run the application.... this technic can be also used for multi database environment such as : Dev / Test / Prod   environment (or database) where the same application can access to.
    Please if any one have an idea or already delt with; just let me know, because I'm entering in a bootle neck and the situation is getting serioulsy critical....
    Regards

    Hello Ulrich,
    with compact and repair I mean the MSAccess function "Compact and Repair".
    Please follow the link below for more details:
    http://office.microsoft.com/en-us/access-help/compact-and-repair-an-access-file-HP005187449.aspx
    Normally you can execute this function directly in Access or with the Windows ODBC Data Sources Administrator  => "Control Panel" => "Administrative Tools" => "Data Sources (ODBC)"...
     I want to execute this function via cvi code and not by hand ;-).
    Thank you for your support.
    Frank

Maybe you are looking for