Database general concepts

if more than one listner is configured,all the listners will activate after starting database to serve client requests?

Hi Kishor,
You can follow the simple steps below:
1) Create a DataSource in the Visual Admin tool
http://help.sap.com/saphelp_nw04/helpdata/en/b0/6e62f30cbe9e44977c78dbdc7a6b27/frameset.htm
2) Create an EJB project, write a simple session bean and declare a resource reference to the DataSource
http://help.sap.com/saphelp_nw04/helpdata/en/b5/3f533e5ff4d064e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/64/8590109a86f145958fb22dab86d58d/frameset.htm
3) Create a simple JSP that accesses the session bean
http://help.sap.com/saphelp_nw04/helpdata/en/7d/cf0c8abcc34594ba9d3bbd5dd22155/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/85/496adae9bf40b09653239e9c58f9b0/frameset.htm
4) Build the archives, deploy and run the application
http://help.sap.com/saphelp_nw04/helpdata/en/7f/5c93acbd1343d4be7d79dc298faa7b/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/5c/a3400ed0c6411bbaa5506cce1dbfc9/frameset.htm
The code in the session bean that accesses the DB should look like:
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("java:comp/env/<res-ref-name>");
Connection conn = null;
try {
    conn = ds.getConnection();
    //do some work thru conn
} finally {
    conn.close();
If you have a more complex scenario with DB access, you may consider developing CMP entity beans, O/R mapping, relationships, using EJB QL queries, and so on... You can find exhaustive help starting from <a href="http://help.sap.com/saphelp_nw04/helpdata/en/f6/6a9266482d114f9b3e312768578c94/frameset.htm">here</a>.
Hope that helps,
Vladimir

Similar Messages

  • Failed to mount database "General Users". Error: An Active Manager operation failed

    Failed to mount database "General Users". Error: An Active Manager operation failed. Error: The database action failed. Error: Database 'General Users' on server 'EX02' cannot be mounted due to a previous error: At '12/3/2014
    3:52:17 PM' the Exchange store database 'General Users' copy on this server appears to be inconsistent with the active database copy or is corrupted. For more details about the failure, consult the Event log on the server for other storage and "ExchangeStoreDb"
    events. A successful failover restored service. If you have addressed the underlying problem, or if you have decided to attempt to mount the database despite this error, the mount operation may be attempted by using the '-Force' parameter of the Mount-Database
    cmdlet. [Database: General Users, Server: EX02.domain.com]
    Md. Ramin Hossain

    Hi,
    From your description, it is recommended to suspend the failed database copy at first using the cmdlet below.
    Suspend-MailboxDatabaseCopy -Identity "xxx"
    And then reseed the database with a new copy using Update-MailboxDatabaseCopy -Identity "xxx" -DeleteExistingFiles cmdlet.
    What's more, here is a helpful thread for your reference.
    Update-MailboxDatabaseCopy
    http://technet.microsoft.com/en-us/library/dd335201(v=exchg.150).aspx
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Forms-launched Reports - General Concept Question

    With client/server forms and reports in 6i I launched reports by selecting them directly off a menu (mmx). This brought up the report's (attached) parameter and then the user ran the report.
    I'm re-engineering the application in 10gR2 and the documentation I've looked at describes how you need to create a reports object under the report node within an Oracle form. I'm missing a piece of the general concept here. I've got 120 reports that currently each appear as menu items and when selected that launches the report (as described above). Should I be replacing each of those menu item calls to a report with a call to a form that is now the 'jump off' point for each report? i.e.- Do I have to create a form for each of my reports?

    Hi,
    I have done the similar migaration of reports...
    2 Ways for this....One - You can create forms and then call the reports........I hope you can do the changes...
    Two - You can add report object to the form in which the menu is attached and add few parameters ( i added five parameters bu these may be different in your case ) to the reports so that you can display the reports parameter form in the browser itsef before running the reports from menus......you can use RP2RRO library for this.

  • Why a "Database - General" category?

    After my previous wish list - for more effective forums > during posting new questions can this be done?
    This time I want to ask do we really need a "General" category after all these categories, I think this category decreases the efficiency of the posts.
    Like "SQL and PL/SQL" or "Installation" there could be a "Database - Backup&Recovery" and "Database - Performance Tuning" categories but not a "General" one please, lots of people are tired of warning others for the appropriate forum category to post.
    Best regards.

    Interesting question. I do agree with the idea behind the question.
    But I do not see it happening - when the typical forum user has a question, they want an answer but they do not want to spend a lot of time looking for the right place to find the answer .... or they would be checking the docs or asking where to find the answer in the docs.
    People can not even be bothered to enter the database - general questions in the 'Database; group of forums. Instead we are seeing database questions dumping in the Feedback forum ... probably because it's the first one.
    Part of the problem is there are too many sub-categories.
    Part of the problem is there are too few people answering in the sub-catgories.
    Databases - Installation was a fairly slow forum. I started answering there exclusively for a while. I note that the number of discussions has increased dramatically since I started responding. (I do not take credit for this, but I think perhaps having one more knowledgeable respondent helped.)
    We may be dealing with the "MacDonald's syndrome" in which "popular and advertised" attracts attention. After all, the popular forums are advertised (show up more often) on OTN and Google.
    So perhaps the answer is simple - start answering in a specific forum and people will be attracted to that forum. Then maybe the 'Database - General' will only attract newbies who get no answers becuase all the seriouus users are elsewhere.
    The other side of the same coin isL when you are a DBA, how much time do you really spend with each of the specialty topics? How many real experts do we have in those? (I know only 1 Workflow specialist outside of Oracle for the Workflow forum, only a smnall handful in the Spatial forum, very few who are truly adept at AQ or Streams ...)

  • Databases general optimizations

    First of all let me give you a warm hello to all of you guys.
    Coming to my subject, it is relevant to Oracle databases management in general for very large companies (e.g. TLC operators).
    The usually face this kind of problems:
    - licences number proliferation, usually it gets out of control
    - several different Oracle databases that ask for consolidation
    - opportunity of "storage tiering", meaning moving less valuable database data on less expensive storage means
    - data classification, meaning how can I assess (automatically? manually?) which data are valuable and which are less ?
    - other opportunities you only might be aware of
    Do you guys have experience in facing that kind of problems? Any suggestion regarding hw/sw solutions for that purpose?
    Thanks in advance.
    Marco

    Hi osgood
    A good well designed cms system would also include a limited number of previous 'page' edits, (I normally save the last 5) or put another way the last 5 versions.
    Also the database should be backed-up by your host at least every 24hrs, (if not change host). Unfortunately 'hacking' of databases through cms's is the favourite pastime of hackers, but it is a developers job to try and prevent this. This is why you should try and include a 'maintenance' contract as part of the package, this not only gives you a regular income but enables you to apply any know improvements required to your cms.
    I am not a great fan of 'open-source' databases, mainly because they are the favourite type of site to hack, the code is freely available, and the location of the cms is well known.
    Some time later the host has a major problem and loses all the database
    updated information and consequently the site doesn't function correctly
    anymore or at least loses the updated information (if that's possible?)
    This is more often than not a consequence of the client altering something, (or someone they know well saying - "I can do improve that for you"), this is why I say use a maintenance contract that way you can check the date the pages where uploaded.
    PZ

  • Java application- database related concept question

    hi Friends,
    I have 2 concept related questions,can someone please help me on how to implement them.I am making a java-based VOTING application.First thing,I am making a generic application,so I
    don't know how many contestants would be there in each contest.
    So,how can I design my database table??Should I try to create a database table on the fly,depending upon how many contestant are there to participitate??
    Secondly,if somebody sends a vote like "contest_name contestant_name",I want to increment the counter of that particular person by one.So,should i have a separate database table,with the
    name of all the contestant and their repective counters.What if somebody sends a wrong contestant name,do i need to query the database for that too,or i can store beforehand all the contestant names in the session or somewhere else.........please help
    Thanks

    Layer 4.

  • SQL Loader - Also posted in Database-General forum

    Hi All,
    I am using Oracle 9i and am new to it. I created a new user and I am not very sure if I assigned all the priveleges and roles correctly.
    Problem is that I cannot log into SQL Plus and neither can I use SQL Loader. Am working in Windows XP environment. I can connect to SQLPLUS and SQL LOADER with the usual scott/tiger userid/passwd. Why cant I connect with the username/password that I created?
    I can use the Enterprise Manager Console provided by Oracle with scott/tiger as well as with the new username/password that I created. But why cant I connect to SQL Loader and SQL Plus?
    Regards,
    Mahesh.

    The error says:
    ORA-01017: invalid username/password; logon denied
    Which seems to indicate that you are not using correct
    password that you assigned when CREATE USER command was
    executed.
    Possibly, when you connect using enterprise manager, you
    might be connecting as SYSDBA which allows you to login
    since your NT userid might be part of the DBA group.
    try conncting to the database using the AS SYSDBA syntax
    when using SQL*Plus:
    click on START -> RUN
    and type "SQLPLUS.EXE /nolog" (without double-quotes) and click ok.
    At the SQL prompt, type connect <username> AS SYSDBA
    and see if you can connect.
    If you can, this means that when you created this new
    user you gave it SYSDBA privs. and at that point,
    password (or the username for that matter) is ignored.
    See the following session. here I do NOT have any user created by the name "XYZ" still when I connect AS SYSDBA,
    it allows me to connect:
    =======================================================
    SQL> connect xyz as sysdba
    Enter password:
    Connected.
    SQL>
    =======================================================

  • Exception handling - general concepts

    ok, well i skipped the chapter on exception handling :=)
    Correct me if im wrong, but lets say im writing some code and im not sure how to handle some of the exceptions that might get thrown or what exceptions will get thrown for that matter. How does one go about handling every possible exception that is "required".
    I guess what im trying to ask is that if a certain block of code is calling methods that throw specific exceptions, then you will need to handle those exceptions. So that means you need to be aware of, or know to go lookup the possible exceptions that those methods can throw.
    Im skipping around in Beginning Java 2, from wronx press jdk 1.4 edition

    This is quite a hard one to be specific on as I think most of us learned this with a bit of trial and error.
    1. IO always requires the method to be thrown ie
    public void writeContents() throws IOException {
    // methods
    2. The compiler will tell you when you need a try /catch block
    3. I often code this with;-
    try {
    // my methods here;
    catch (Exception ignore) {}
    and have empty braces with a general catch all Exception on the first run
    4. Then if there are problems such as the code won't work I fill in the blanks ie;-
    catch (Exception e) {System.out.println(e);}
    // or e.getMessage() );
    // or printStackTrace();
    depending on what the first message is
    5. Correct the exception now that you know what it is. Really this is a form of 'divide and conquer' as you eliminate the problems as they occur through javas exception handling abilities.
    6. With a bit more practice you will implement things like finally and know when to put the handler back to 'catch (Exception ignore) {}' and when to leave it in.
    7. Exception handling can also be used to instruct the client in useful ways too eg;-
    try {
    myTextfield.setText("Enter Your Age");
    myInt = parse ...(myTextfield.getText(etc ...
    catch (NumberFormatException nfe) {
    myTextfield.setText("Enter Number Values Only");
    // or something like
    catch (NullPointerException nfe) {
    myTextfield.setText("Oops you forgot to enter a value");
    This has been my experience anyway + I trust I have assisted

  • Database - General

    Hi,
    How can I create a (new) local database in my machine which is in a network/domain.
    thanx in advance,
    kumar.

    The same way u used to create the other one !?
    export ORACLE_SID=NEW_BD
    CREATE DATABASE NEW_DB...
    Fred

  • Posted back to database general section

    posted to general
    Edited by: user12218412 on Aug 22, 2010 9:16 AM

    Try {forum:id=61} where you may or may not get more sense than in a forum that in entitled: Community Feedback and Suggestions (Do Not Post Product-Related Questions Here)

  • Database mirroring concept.

    Hi Guys
    I have One scenario to develop. I have two diffrent servers one is in  Local LAN and the other server is WEB base server. SAP B1 transactions are there on Local LAN server.
    My requirement is Whenever a transaction happens in Local Lan, I want to update the same on WEB Base server.
    Is there exists any process to update a diffrent database which are  not on same server ?
    Is there any way to update a database in small increment basis?
    Can any one suggest a way to solve this process..
    Regards,
    Ranjith
    Edited by: Cool Guy on Feb 23, 2010 9:41 AM

    You have created two identical threads.  Please refer to the other and close this one:
    Database Mirroing for back up
    Thanks,
    Gordon

  • Database upgrade concepts

    Hello,
    Please help me understand the complete scenario on database upgrade, here is what I know:
    - We have Oracle 9i database installed
    - We install new Oracle 10g Database on same machine with different SID
    - We upgrade Oracle 9i database using DBUA of Oracle 10g
    - The Oracle 9i database is upgraded to Oracle 10g Database and we dont need to move our data from old database to any new place
    1. What happens to the new Oracle 10g installation ? Should we remove the installation ?
    2. Will the SID of old home be changed or will it be the same?
    I read many docs, all of them explain the method to upgrade, but not the complete scenario.
    Thanks in advance :)

    - We have Oracle 9i database installedOK
    - We install new Oracle 10g Database on same machine
    with different SIDNo. A SID is associated with a database. if you're going to use the DBUA, you'd just want to install the 10g software into a separate Oracle Home. You would not want to create a new database.
    - We upgrade Oracle 9i database using DBUA of Oracle
    10gOK
    - The Oracle 9i database is upgraded to Oracle 10g
    Database and we dont need to move our data from old
    database to any new placeCorrect
    1. What happens to the new Oracle 10g installation ?
    Should we remove the installation ?No. The 10g Oracle Home you just created is the new Oracle Home for your database.
    2. Will the SID of old home be changed or will it be
    the same?I'm not sure what you're asking here, but I suspect the question is moot based on the corrections above.
    Of course, I assume that you'll be upgrading your dev & test databases long before you try to upgrade prod so you'll have plenty of practice and plenty of time to make sure that everything is working after the upgrade as you'd expect...
    Justin

  • I need one good ebook for normalization in Database, generally

    Hello,
    This is my first time on Oracles forums. I am starting my first project with Oracle8i and I need some advise on a good ebook on normalization in generally(or Windows).
    if anyone know of a good book that talks mainly about normalizing relational data (i.e. 1NF, 2NF, 3NF, BCNF, 4NF). please send to me or give the link to me please.
    Thanks,
    with regards,
    Thirunavukarasu Prasanna

    Hi Thirunavukarasu Prasanna
    try the links below
    http://www.orafaq.com/faq.htm
    http://www.informit.com
    http://www.orakle.com
    Mohammed Al-shake

  • Databases general query

    Ok so I have some free time on my hands at the moment and am once again looking into building more 'flexible' solutions where the client can update some parts of their websites themselves via a CMS.
    A couple of queries:
    1) A CMS requires a database to be efficient and effective? (I know some simple stuff can be changed via javascript but that's not what is required)
    2) If so this is where I'm a bit concerned.
    Lets take a simple example whereby I design a site (with an option of the client updating some sections). All is approved and uploaded to the remote server/database.
    From that point on I have zero control over what the client changes in the CMS updatable sections of the website.
    Some time later the host has a major problem and loses all the database updated information and concequently the site doesn't function correctly anymore or at least loses the updated information (if that's possible?)
    That sounds a bit of a potential risk to me. Anyone else had a problem with lost database infromation once a site is live or see it as a risk?
    Cheers
    Os (Snowbound in Rochester UK)

    Hi osgood
    A good well designed cms system would also include a limited number of previous 'page' edits, (I normally save the last 5) or put another way the last 5 versions.
    Also the database should be backed-up by your host at least every 24hrs, (if not change host). Unfortunately 'hacking' of databases through cms's is the favourite pastime of hackers, but it is a developers job to try and prevent this. This is why you should try and include a 'maintenance' contract as part of the package, this not only gives you a regular income but enables you to apply any know improvements required to your cms.
    I am not a great fan of 'open-source' databases, mainly because they are the favourite type of site to hack, the code is freely available, and the location of the cms is well known.
    Some time later the host has a major problem and loses all the database
    updated information and consequently the site doesn't function correctly
    anymore or at least loses the updated information (if that's possible?)
    This is more often than not a consequence of the client altering something, (or someone they know well saying - "I can do improve that for you"), this is why I say use a maintenance contract that way you can check the date the pages where uploaded.
    PZ

  • Database listner concepts

    i am in learning stage of dba
    plz clarify my doubt
    what is the exact differnce between network session and user session?

    session
    Specific connection of a user to an Oracle instance through a user process. A session lasts from the time the user connects until the time the user disconnects or exits the database application
    Joel Pérez
    http://www.oracle.com/technology/experts

Maybe you are looking for

  • I have forgotten my pass code how can I unlock my iPhone 4 without using iTunes as my iTunes does not recognise my phone

    My iPhone 4 has not been working for the last 4months....I have just recently decided to give it another go and it seems to be working but I forgot my password. I would use iTunes to reset but my iTunes does not recognise my iPhone.... Is there anyth

  • (-50) Error message in itunes?

    Hi there I recently had to restore my ipod. Then when it tries to sync it gets an error message (-50). It seems to happen on certain songs only? It gets to a song during syncing and then just hangs there and eventually displays the message? I then re

  • MIGO Cost-center

    Hi,        In MIGO, cost-center field, under account assignments is not editable. Can we make it editable using some customization setting? Are there any User-exits or BADI's to change the cost-center. Thanks in advance, Vishnu  Priya

  • Aggregating a constant value

    I have a pretty simple model. I have two tables. An Asset table and an Asset Software table. These tables give me a list of Devices on our network and the software that is installed on them. The join between the two tables is Asset ID. I need to be a

  • Adobe customer service is a joke

    I purchased a membership for the first time and I have to say that although Adobe products are great, customer service is not doing a really good job. I wanted to ask a question about my subscription and I have been trying to contact them for the pas