How can i use diffrent database for same file in same project?

I want to use two database. First normal environment, second for budget. Second copy from first environment. For example 1. database name = "MRP" , 2. database name = "MRPBUDGET".When program is start, users can select database. My question how can i use which selected database name in program.
Thanks a lot for your help,

Hi giri,
I test it. When i change
cocukRowSet.setDataSourceName("java:comp/env/jdbc/mysql_dogum");
cocukRowSet.setDataSourceName("java:comp/env/jdbc/mysql_dogum1");
in SessionBean1.java
i run it. But this page of project is open explorer it didn't change sun-web.xml and web.xml in projetct directory(line
<resource-ref>
<res-ref-name>jdbc/mysql_dogum</res-ref-name>
<jndi-name>jdbc/mysql_dogum</jndi-name>
</resource-ref>
When i close this page of project from explorer , i clean and build project and then find in project "dogum1", i saw true value in sun-web.xml and web.xml. Project is running true.
How can i change xml file when project running. Can i use drop down list for database name(which change run time)
Thanks,

Similar Messages

  • How can i use a database for practice in DOS

    i have some problems in the sqlplus.
    My OS is windows2000 server,when i intalled the Oracle 8i
    i type a command 'cmd' go to DOS.and type "sqlplus username/password@database"
    but always the system say that my database name can't be deal with.
    and i want to get a sample database for training SQL statements.How can i get it.
    is Oracle 8i have the sample database.

    It sounds like your database hasn't been started yet so do this:
    Try typing svrmgrl at the c:> -- if it doesn't work you might either have to go to the proper directory or type sqlplus to get an sql:> prompt (I don't remember it's been a while) but the rest I am pretty sure about---
    When you get the svrmgr prompt:
    use (i think) "connect internal"
    and "oracle or Oracle" as password
    once you do this
    it should say connected
    then use: svrmgr:>shutdown -- shutsdown DB
    then use: svrmgr:>startup -- starts DB
    hopefully then you can access your database through SQL Plus

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

  • How can I use two database in Dataset in SSRS?

    Hi,
    I am using one query to generate my SSRS report. In that query I am using subquery. Now I am pulling data from multiple tales.
    DB used in sub query is different than the rest of the tables DB.(So total I am using 2 DB(Database))
    So I see that in SSRS, I can connect query(In DataSet Properties) to one DATA_SOURCE only, how can I use other database which is I used in sub-query?
    I have to move this SSRS into PROD and I can't hard code that sub-query's DB name in my query.
    Please give me suggestion. Thanks!!
    Vicky

    In SSRS 2008 R2 you can use the Lookup function (http://technet.microsoft.com/en-us/library/ee210531.aspx ) and LookupSet function (http://technet.microsoft.com/en-us/library/ee240819.aspx
    Depending on your security set up, you can reference a table in a second database on the same server using a three part name:  database.schema.table.  This is more likely to work for you if you wrap your SQL command in a stored procedure.
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • How can I use jbo:InputSelect for a char type filed?

    How can I use <jbo:InputSelect for a char type filed?
    I have two tables. One is room (primary key is room(type is char)), another table is responsibility (foreign ker is room(type is char)). Both tables have same length for room column.
    There is a problem:
    If I use (in the "DataEditComponent.jsp" file)
    <jbo:InputSelect multiple="false" datasource="dsEdit" displaydatasource="roomData" displaydataitem="ROOM" displayvaluedataitem="ROOM" ></jbo:InputSelect>
    to get the room input for responsibility from combobox(Datasource roomData is from room table). In the form the room field cannot bind the data in combobox, alway select the first item. And if I select one item and click the update button.There is an error message:
    Error Message: JBO-27010: Attribute set with value H409 for Room in Responsibility has invalid precision/scale
    I found If I changed the field type from char to varchar2 in database also change the entity objects, it works well. I wonder if there are any diffrence using <jbo:InputSelect tag in char and varchar2 type. How can I use <jbo:InputSelect for a char type filed as i don't want to change my datatype in database at this stage.
    I try this in JDeveloper 9.03, 9.034, 9.04. The result is the same.

    If I were in your shoes, here's how I would do it:
    <%-- Assuming you have dsRoom and dsResponsibility --%>
    <%-- Select is an HTML tag --%>
    <select name="ROOM" size="1">
    <% char roomID =""; // Init your character var
    // Open a rowsetIterator to get the records and add them to the LOV
    <jbo:RowsetIterate datasource="dsResponsibility" changecurrentrow="true" >
    <% roomID = (char)dsResponsibility.getRowSet().getCurrentRow().getAttribute("ROOM"); // Grab the char value
    // add the value to the LOV
    %>
    <option value="<%=roomID%>"><%=roomID%></option>
    </jbo:RowsetIterate>
    </select>
    If you are using this as part of an edit page you may want to utilize the "selected" option of the <option> tag. In one instance I am doing this on an edit page because the use may open an existing record. If I don't account for it, then it will change the DB to contain the first value from the list! You can do a simple check like:
    //Set the current record's char
    char curRecord = (char)rowEdit.getAttribute("ROOM");
    // inside the iterate:
    if (curRecord == roomID) {
    <option value="<%=roomID%>" selected><%=roomID%></option>
    } else {
    <option value="<%=roomID%>" ><%=roomID%></option>
    Hope that helps!

  • HT3354 how can i use one table for reference to another

    how can i use a table for a referance to another eg when i type a word in a cell, i will like it to match the word with another table then return the information in the cell i am using

    you can use vlookup() (or any of the lookup family of functions) to locate an item based on a key value:
    Here is an example of something you can do with two tables:
    The table on the right is title "Data" and stores a list of names with age and favorite color.
    The table on the left uses the value in the first column to lookup up information in the table Data
    in the table on the left:
    B2=IFERROR(A2&" is " & VLOOKUP(A2, Data :: A:D, 2, 0)&" years old and likes the color "& VLOOKUP(A2, Data :: A:D, 3, 0), "NOT FOUND")
    I know this look complicated.  so I'll break it up into smalled pieces:
    first the "&" is called the concatenate operator and joins two strings.  like this:
    a string is a set of characters between double quotes.
    so "string 1" & "string 2" becomes "string 1string2"  or "Sam " & "Jones" becomes "Sam Jones"
    you can use cell references instead of strings directly in which case the concatenation is performed on the contents of the cells.
    so if cell A1 contains "Hi " and the cell A2 contains "There"  then A1 & A2 will result in "Hi There"
    so you could add the formula
    A3=A1 & A2
    this is short hand for select cell A3 then type everything including the A3 so that A3 contains "=A1 & A2" (omit the double quote)
    OK.  So the formula I provided concatenates several items together:
    it concatenates A2, then the string " is " then a formula, then the string " years old and likes the color " then a formula
    the two formulas (highlighted in blue) perform a lookup of the value in cell A2 in columns A thru D of the table named "Data".  If if finds the value in cell A2 in the first column of the lookup range in the table Data (column A) then it returns the value from the same row but in the second or third column.
    all that is in a function calld iserror() to trap the condition where the calue you enter in A2 does not exist in the table Data:
    You will find the Numbers users guide and function reference helpful.  You can download then from Apple here:
    http://support.apple.com/manuals/#productivitysoftware

  • How can i use Unix database in java?

    How can i use Unix database in Java?
    Message was edited by:
    JPro

    I have not a clue about FoxPro, but the db then is FoxPro and not Unix. The better question would be "How do I connect to FoxPro DB running on Unix with JDBC?".
    My answer to that would be, search the Internet for a JDBC driver.

  • HT204053 Hello, I have two iphones but one Apple ID. How can I use localization apps for a dedicated device? Tx

    Hello, I have two iphones but one Apple ID. How can I use localization apps for a dedicated device? Tx

    On the iPad open Settings/iCloud and delete the account using the button at the bottom. Once deleted log in using the other account. For iTunes Stores use Settings/iTunes & Apps Stores, tapp on the Apple ID at the top then sign out. Once done sign in using the other account. Once you are happy with the changes plug your iPad into your computer to update the backup.

  • TS3988 It seams that i have another Apple ID, how can i use only one for everything?

    It seams that i have another Apple ID, how can i use only one for everything?

    http://support.apple.com/kb/HT5622?viewlocale=en_US
    -The specific point:
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
    If you are wondering how using multiple Apple IDs relate to iCloud, see Apple IDs and iCloud.

  • How can I using functions implicit in dll file in java code ?

    How can I using functions implicit in dll file in java code ?
    I'm developing a program that interfacing with fingerprint hardware.
    I have the finger print already, and I have to the SDK that have all functions for managing this fingerprint.
    These SDK functions are represented in dll files.
    I want to know how can I use these functions in java code .
    I looked on this link of sun forums :
    http://forum.java.sun.com/thread.jspa?threadID=305171&messageID=1215613
    but I don't Understand the meaning of native code.
    Thanks for help.

    please please please please please please please please help me:
    After reading a lot of articles, tutorials, and overviews about JNI (Java Native Interface)
    I found that these steps
    1.     Develop the Java code
    2.     Compile the Java code to a class file
    3.     Generate the header file
    4.     Implement the native method
    5.     Create the shared library or DLL
    6.     Run the Java program
    Is the common steps in JNI development
    The most powerful link was
    http://java.sun.com/docs/books/jni/html/start.html
    and
    http://www.netbeans.org/kb/55/beginning-jni-part2.html
    and the pdf oh this link
    http://www.ibm.com/developerworks/edu/j-dw-javajni-i.html requiring IBM registration to download it.
    But I have already the DLL, and want to the stright forward way to use its functions by java code only.
    I don not to write any C++ code .
    Is this possible???????????????????????????????
    The name of these dll is �zkemsdk.dll�
    It developed by ZKSOFTWARE company for managing a finger print �NP1500A�of
    http://www.napcogulfsecurity.com/finger_print.asp
    thanks for help

  • How can I use Applescript to copy a file's icon to the clipboard?

    Hello,
    How can I use Applescript to copy a file's icon to the clipboard?
    Thanks.
    Lennox

    there is no way to do that that I know of. but you can extract an icon of a file to another file using command line tool [osxutils|http://sourceforge.net/projects/osxutils]. you can then call the relevant command from apple script using "do shell script".

  • How can I use phonetic fonts for cursors name

    Hi all!
    I need to use phonetic characters in cursors names. Does somebody know wich font I have to use for this ?
    One other problem is that I need to use Vietnamese characters at the same time. Is it possible to change the font of the cursors names run-time (in the diagram)?
    Last quetion: Does LabVIEW support unicode? If yes,how can I use it?
    Thank you for your help!
    Nico

    > Effectively, dual-byte encodind is allright to support Vietnamese and
    > Western languages. But how did I get the phonetics characters? With
    > shortcut key ?
    > As I need the user to change the cursor name run-time without using
    > the frontpannel cursor legend, I'm using property node and a subVI
    > asking for this name. (The user will enter the name in a string
    > control).
    > Moreover I would like the user to have the possibility to choose a
    > character in a pannel (something similar to the menu 'insert symbol'
    > in MS Word). Is it possible to do this ? With Active X maybe, but I
    > don't know which activeX objet I can use....(I am not very familiar
    > with ActiveX).
    Unfortunately, I don't know what the phonetic characters look like, so I
    can't
    tell you what to type to enter them. If you find them in Word,
    you should be able to copy them to the clipboard, they will be in
    Unicode, and paste them into LV -- where they will be converted to dual
    byte. If it doesn't work, try to find out if they are exist in the
    locale of your machine, or more importantly, the target machine.
    If you can display them, you can build a simple ring with short strings
    containing the phonetic characters. When the user picks something from
    the ring, use the strings property and value to index out the string and
    replace/append to the string the user is editing. You will want to pay
    attention to the string's selection if this is supposed to act like a
    character palette and either do an insert or replace.
    If you want a more compact grid menu, you will need to convert the
    strings to images and paste them in a pict menu. That value can be used
    to index a constant array that matches the order in the pict ring.
    Greg McKaskle

  • How can I use flash builder for php?

    Hello! I saw a flash banner maker website http://ideal-banners.com/. My question that how can I use a flash builder for php?

    Hi Michael,
    Thanks for your two helpful replies.  The article by V. Brossier looks very useful, and I managed to use SDK 3.3 with FB.  But I had misdiagnosed my problem.  The problem was that the compiler was targetting Flash Player 9 instead of 10.  I've managed to fix that.
    Thanks again,
    Francisco

  • HT4009 I would like to make an in app purchase using my $20.00 credit that I have on I tunes. I am using my  i phone5. It does not give me the choice of using the credit that I have, only a credit card. How can I use the credit for the purchase??

    I would like to make an in app purchase using the $20.00 credit that I have on itunes. I am using my i phone5. It does not give me the option of using the credit that I already have, only of using a credit card. How can I use the credt that I already have instead of a credit card?

    Is Settings > General > Restrictions > In-App Purchases: ON (green)?
    Some In-App Purchases works only with credit card.

  • Why can't use thunderbolt drive for Cloud files folder?

    why can't I use thunderbolt drive for Cloud files folder?  It's too big for my limited laptop storage.
    Thanks

    Because sync requires to use persistent storage locations. This is out of Adobe's control. It is entirely up to the hardware vendor how he anchors the drive/ volume and integrates it into the file and folder structure.
    Mylenium

Maybe you are looking for

  • How to specify special permissions in Oracle BI EE 11g

    Hi everybody, I am trying to create a new role in Oracle BI EE 11g which users and groups by this role can access only to create report(preferably within particular folders) and not be able to change settings such as creating new connections in Oracl

  • How to pass variable to data tab which replace text in Word attachment

    Dear ABAP folks, I use METHOD cl_gui_frontend_services=>gui_upload to upload my word doc in BINARY and sucessful sent this word doc as attachment with Thomas Jung's FUNCTION 'Z_E_KEG_SEND_SIMPLE_EMAIL'. However, inside the word file, i need insert va

  • Why is my ipod screen blank?

    I am having trouble with my ipad. When i try to switch it on, only a backlight comes on for a couple of seconds then turns blank again. I have restored my settings to the default settings, and updated the software. Does anyone have any info or feedba

  • Call function in an applet

    Hello, I novice in Java and Iwould like to know why the configuration function is not is started when the "configuration button" is press : import java.awt.*; import java.applet.*; import java.net.*; import java.io.*; import java.lang.*; import java.

  • Outline agrement PR is deleting even when a contract is existing??

    Hi, in our ECC 6.0 implementation, it is possible to delete an Outline agreement PR even when there is a valid Contract exist (referred to said PR). I want to restrict that. How can i restrict user by deleting the PR when a contract is there???? Pls