Databse access

at the time of installation i created databse with wty wty as password.
now after instaaaltion i have created once again different database with xyz and xyz as password.now to create table in this data base
i just set the oracle sid as set ORACLE_SID=xyz
and after that i tried to login as xyz and xyz to create table in xyz sid .but unable to connect.
so how to create table in newly created database
thanxs in advance

Hello Sahi,
Think you are totally confused.
Suppose you have three databases
db1 with user User1 and password User1
db2 with user User2 and password User2
db3 with user User3 and password User3
You can connect from the command prompt as follows if your database is up and runing
set ORACLE_SID=db1
sqlplus User1/User1
set ORACLE_SID=db2
sqlplus User2/User2
set ORACLE_SID=db3
sqlplus User3/User3
Else connect as sysdba and startup the database.
Please do show the errors when posting. Setting the ORACLE_SID tells Oracle
which database to use.
TNSnames.ora is a file in $ORACLE_HOME/network/admin. It is used for connection
from client and also connecting to your Enterprise Manager.
Thanks,
Sanju

Similar Messages

  • Transaction Context Propagation

    Can transaction context be propagated from one WebLogic Server to another? If yes, what is then the relationship between the two Transaction Managers in each server?
              

    Zhenxin,
              Transaction can be propagated between multiple instances of the server.
              In releases 5.1 and below, all databse access in this case was delegated to 1 jdbc connection in 1 pool on 1 server, and the database transaction manager was used.
              In 6.0 and above, the transaction is co-ordinated by the TM in one instance of the server, which calls on the remote instances during the pre-commit and commit phases.
              I believe that currently the 1st server to be invoked in the transaction is the one who gets the commit responsibility, but this is an implementation detail that may
              change in future.
              I hope that helps.
              Regards,
              Peter.
              Got a Question? Ask BEA at http://askbea.bea.com
              The views expressed in this posting are solely those of the author, and BEA
              Systems, Inc. does not endorse any of these views.
              BEA Systems, Inc. is not responsible for the accuracy or completeness of the
              information provided
              and assumes no duty to correct, expand upon, delete or update any of the
              information contained in this posting.
              Zhenxin Wang wrote:
              > Can transaction context be propagated from one WebLogic Server to another? If yes, what is then the relationship between the two Transaction Managers in each server?
              

  • Dacf; gridcontrol cell; put edits

    To put all those discussion into a practical example and question...
    I have a dacf grid control. The user can edit a part number ( 1 of 350,000 possible.. no list boxes ) that is one of the columns. I want to make sure that part number is valid via a lookup in the database..immediately on entry into the cell and pressing tab and return... if bad, I want to blank the cell and leave him/her in it.. and put an error message (NOT a error dialog) at the bottom of the screen in the status line.
    How does one go about this?
    Some options I see:
    1. If I were a Java pro.. probably do something with a custom cell editor attached to the underlying tablemodel?
    2. If I were a beginning BC4J person.. maybe put it in the EO setr with a exception event handler that somehow does the work. ( HOW? Where? I'm missing the conceptual links to accomplish this task... or comprehensive yet simple code examples)
    3. If I were a little more involved with BC4J.. set up a DOMAIN with the the validation, set up the EO attribute on the domain... and follow through with 2 above???
    4. If I were a traditional Oracle developer with little Java experience. Uh. Well, I'm fairly lost until I've had about 6 months of experience, 5 training classes.. read through several Java manuals, read more class docs than I cared to... and disjoint Help pages ( making the linkages myself ).
    This is a very simple, common and necessary task in any UI... validating the entered value in a dacf gridcontrol cell at time of entry.
    What is the BEST way to approach this? Does anyone have code examples?

    Thanks for the code fragment Sathish... as always you have a practical direct solution.
    I will try to implement a domain, an EO attribute on the domain, and your rowsetInfo (?) attributeInfo validationListener to see if I can make it hang together and work.
    grin We're getting to the crux of a lot of the issues I have!
    I suppose I missed this concept completely in the classes ( I heard and can find the pieces, but not how to use them to create a total end to end solution )... AND missed it completely in the documentation as an end to end solution? ( Show a person a clutch, a brake pad, a piston rod and a gallon of gas... it doesn't mean they know how to build a car from scratch! )
    But my belief is that just about everyone outside of Oracle and those having direct contact with Oracle, or discovering this through this board... well... they are just floundering when they need the solution.
    And really, I'd want most of my validation back at the DOMAIN level ( since it something like an SSN format check, or a valid part number check... is related to the DOMAIN..and global to everything, even supra-application module? I.E. Rule 1: protect database data integrity. ) to be picked up by the EO, and used by the the component, right? And all of this will happen at data entry, not commit, of course ( unless as Steve says, there are cross-attribute within the same row or rowset constraints )
    Confusion ( on my part? ) is that if I put a ValidationListener on the attributeInfo that is it at the "wrong level" ( way, way up the food chain ), again? Or will this cleanly trap rules placed in the EOImpl setr.. and the Domain rules, as well, at time of entry?
    Yet you are correct in that if I don't want some generic ERROR dialog box to pop up... I'd need something like the ValidationListener to "take control" and do what I want... is that correct?
    Also, the validation Listener fires even when I'm setting the value programmatically directly from another table's value... even if I know for sure that the value is valid?
    ( Remember that I may be checking in a before insert trigger anyway since I'm protecting data integrity no matter what the source ).
    One of the interesting effects I'm encountering in building the App is items like this... that EventListeners Fire seem to fire indiscriminatly... and I have to code the critter REAL careful to put in global flags or prechecks to tell it "NO, don't do it" so as to keep up the response time... and also that the Listener would need special code and custom properties on the UI component set up ( like "allow wildcard" ) that will affect the listener validation code.... uh... which in a generic listener requires more and more specialized exception code.
    I.E. generic is starting to == slow and cumbersome and hard to set up, specialized == fast and efficient and easy to code and debug. This would not matter ( generic and slow is MSFT's design approach in most cases ) if not for the fact that actual user response time is a reality, and the JVM running on a <800mhz cpu with lots of databse access really does start to bog down.
    Thanks
    null

  • How Jserv disable on Oracle Application Server9i?

    Dear All,
    Any one know how Jserv disable on Oracle Application Server? Is HTTP is required to start for Databse Access ? Because When HTTP is started jserv bydefault started.
    Regards
    Vipul Patel

    Dear Avi,
    Actually I have problem with OC4J which I am giving details are as under. Many pepole in forums on net said that in type of our problem your first disable jserv. that's why ...
    Below problem and one more thing that in our oracle9ias OC4J DEMOS AND OC4J HOME ARE NOT ALSO WORKING PROPERLY....
    I have installed Oracle9iAS on RedHat Linux Advance Server
    on IBM Server. The applications on the HTTP Server are working
    fine through the URL http://202.202.202.11:7779/ for html and
    jsp pages, and for .jpg and .txt files.
    But, when I use the OC4J Service, the server allows me to see
    only html and .txt files only. I am not able to execute JSPs
    using this service.
    I try to access the 'webapp' and other demo examples supplied
    and installed by Oracle installation. The URLs I have used
    are listed below:
    Following is the location of the 'webapp':
    /oas1/OHOAS1/j2ee/home/applications/BC4J/webapp
    and I am accessing it from the URL:
    http://202.202.202.11:7779/webapp
    Following are the results from this url:
    [1]http://202.202.202.11:7779/webapp/
    Result:I got the message: 'Directory browsing not allowed',
    So, it is ok I want that.
    [2]http://202.202.202.11:7779/webapp/ordPlayMedia.jsp
    Result:I got the error message:
    JSP Error:
    Request URI:/webapp/ordPlayMedia.jsp
    Exception:
    java.io.FileNotFoundException:
    /oas1/OHOAS1/Apache/Apache/htdocs/webapp/ordPlayMedia.jsp
    (No such file or directory)
    [3]http://202.202.202.11:7779/webapp/jsp/
    Result:I got the message: 'Directory browsing not allowed',
    So, it is ok I want that.
    [4]http://202.202.202.11:7779/webapp/jsp/lov.jsp
    Result:I got the error message:
    JSP Error:
    Request URI:/webapp/jsp/lov.jsp
    Exception:
    java.io.FileNotFoundException:
    /oas1/OHOAS1/Apache/Apache/htdocs/webapp/jsp/lov.jsp
    (No such file or directory)
    [5]http://202.202.202.11:7779/webapp/wm/bc4j.jsp
    Result:I got the error message:
    JSP Error:
    Request URI:/webapp/wm/bc4j.jsp
    Exception:
    java.io.FileNotFoundException:
    /oas1/OHOAS1/Apache/Apache/htdocs/webapp/wm/bc4j.jsp
    (No such file or directory)
    have installed Oracle9iAS on RedHat Linux Advance Server
    on IBM Server. The applications on the HTTP Server are working
    fine through the URL http://202.202.202.11:7779/ for html and
    jsp pages, and for .jpg and .txt files.
    But, when I use the OC4J Service, the server allows me to see
    only html and .txt files only. I am not able to execute JSPs
    using this service.
    I try to access the 'webapp' and other demo examples supplied
    and installed by Oracle installation. The URLs I have used
    are listed below:
    Following is the location of the 'webapp':
    /oas1/OHOAS1/j2ee/home/applications/BC4J/webapp
    and I am accessing it from the URL:
    http://202.202.202.11:7779/webapp
    Following are the results from this url:
    [1]http://202.202.202.11:7779/webapp/
    Result:I got the message: 'Directory browsing not allowed',
    So, it is ok I want that.
    [2]http://202.202.202.11:7779/webapp/ordPlayMedia.jsp
    Result:I got the error message:
    JSP Error:
    Request URI:/webapp/ordPlayMedia.jsp
    Exception:
    java.io.FileNotFoundException:
    /oas1/OHOAS1/Apache/Apache/htdocs/webapp/ordPlayMedia.jsp
    (No such file or directory)
    [3]http://202.202.202.11:7779/webapp/jsp/
    Result:I got the message: 'Directory browsing not allowed',
    So, it is ok I want that.
    [4]http://202.202.202.11:7779/webapp/jsp/lov.jsp
    Result:I got the error message:
    JSP Error:
    Request URI:/webapp/jsp/lov.jsp
    Exception:
    java.io.FileNotFoundException:
    /oas1/OHOAS1/Apache/Apache/htdocs/webapp/jsp/lov.jsp
    (No such file or directory)
    [5]http://202.202.202.11:7779/webapp/wm/bc4j.jsp
    Result:I got the error message:
    JSP Error:
    Request URI:/webapp/wm/bc4j.jsp
    Exception: have installed Oracle9iAS on RedHat Linux Advance Server
    on IBM Server. The applications on the HTTP Server are working
    fine through the URL http://202.202.202.11:7779/ for html and
    jsp pages, and for .jpg and .txt files.
    But, when I use the OC4J Service, the server allows me to see
    only html and .txt files only. I am not able to execute JSPs
    using this service.
    I try to access the 'webapp' and other demo examples supplied
    and installed by Oracle installation. The URLs I have used
    are listed below:
    Following is the location of the 'webapp':
    /oas1/OHOAS1/j2ee/home/applications/BC4J/webapp
    and I am accessing it from the URL:
    http://202.202.202.11:7779/webapp
    Following are the results from this url:
    [1]http://202.202.202.11:7779/webapp/
    Result:I got the message: 'Directory browsing not allowed',
    So, it is ok I want that.
    [2]http://202.202.202.11:7779/webapp/ordPlayMedia.jsp
    Result:I got the error message:
    JSP Error: have installed Oracle9iAS on RedHat Linux Advance Server
    on IBM Server. The applications on the HTTP Server are working
    fine through the URL http://202.202.202.11:7779/ for html and
    jsp pages, and for .jpg and .txt files.
    But, when I use the OC4J Service, the server allows me to see
    only html and .txt files only. I am not able to execute JSPs
    using this service.
    I try to access the 'webapp' and other demo examples supplied
    and installed by Oracle installation. The URLs I have used
    are listed below:
    Following is the location of the 'webapp':
    /oas1/OHOAS1/j2ee/home/applications/BC4J/webapp
    and I am accessing it from the URL:
    http://202.202.202.11:7779/webapp
    Following are the results from this url:
    [1]http://202.202.202.11:7779/webapp/
    Result:I got the message: 'Directory browsing not allowed',
    So, it is ok I want that.
    [2]http://202.202.202.11:7779/webapp/ordPlayMedia.jsp
    Result:I got the error message:
    JSP Error:
    Request URI:/webapp/ordPlayMedia.jsp
    Exception:
    java.io.FileNotFoundException:
    /oas1/OHOAS1/Apache/Apache/htdocs/webapp/ordPlayMedia.jsp
    (No such file or directory)
    [3]http://202.202.202.11:7779/webapp/jsp/
    Result:I got the message: 'Directory browsing not allowed',
    So, it is ok I want that.
    [4]http://202.202.202.11:7779/webapp/jsp/lov.jsp
    Result:I got the error message:
    JSP Error:
    Request URI:/webapp/jsp/lov.jsp
    Exception:
    java.io.FileNotFoundException:
    /oas1/OHOAS1/Apache/Apache/htdocs/webapp/jsp/lov.jsp
    (No such file or directory)
    [5]http://202.202.202.11:7779/webapp/wm/bc4j.jsp
    Result:I got the error message:
    JSP Error:
    Request URI:/webapp/wm/bc4j.jsp
    Exception:
    java.io.FileNotFoundException:
    /oas1/OHOAS1/Apache/Apache/htdocs/webapp/wm/bc4j.jsp
    (No such file or directory)
    [6]http://202.202.202.11:7779/webapp/wm/images/trafficGray.gif
    Result:I got the image of trafic-light,
    So, it is ok and working fine.
    [7]http://202.202.202.11:7779/webapp/admin/bc4jadmin.htm
    Result:I got the message: 'Oracle JDeveloper BC4J Admin Utility
    The location of the BC4J Admin Utility has changed.
    Click here to go to the new location.',
    So, it is ok.
    Is anybody knows how to use OC4J service on Oracle9iAS ? Please
    help me.
    Thank you.
    Request URI:/webapp/ordPlayMedia.jsp
    Exception:
    java.io.FileNotFoundException:
    /oas1/OHOAS1/Apache/Apache/htdocs/webapp/ordPlayMedia.jsp
    (No such file or directory)
    [3]http://202.202.202.11:7779/webapp/jsp/
    Result:I got the message: 'Directory browsing not allowed',
    So, it is ok I want that.
    [4]http://202.202.202.11:7779/webapp/jsp/lov.jsp
    Result:I got the error message:
    JSP Error:
    Request URI:/webapp/jsp/lov.jsp
    Exception:
    java.io.FileNotFoundException:
    /oas1/OHOAS1/Apache/Apache/htdocs/webapp/jsp/lov.jsp
    (No such file or directory)
    [5]http://202.202.202.11:7779/webapp/wm/bc4j.jsp
    Result:I got the error message:
    JSP Error:
    Request URI:/webapp/wm/bc4j.jsp
    Exception:
    java.io.FileNotFoundException:
    /oas1/OHOAS1/Apache/Apache/htdocs/webapp/wm/bc4j.jsp
    (No such file or directory)
    [6]http://202.202.202.11:7779/webapp/wm/images/trafficGray.gif
    Result:I got the image of trafic-light,
    So, it is ok and working fine.
    [7]http://202.202.202.11:7779/webapp/admin/bc4jadmin.htm
    Result:I got the message: 'Oracle JDeveloper BC4J Admin Utility
    The location of the BC4J Admin Utility has changed.
    Click here to go to the new location.',
    So, it is ok.
    Is anybody knows how to use OC4J service on Oracle9iAS ? Please
    help me.
    Thank you.
    java.io.FileNotFoundException:
    /oas1/OHOAS1/Apache/Apache/htdocs/webapp/wm/bc4j.jsp
    (No such file or directory)
    [6]http://202.202.202.11:7779/webapp/wm/images/trafficGray.gif
    Result:I got the image of trafic-light,
    So, it is ok and working fine.
    [7]http://202.202.202.11:7779/webapp/admin/bc4jadmin.htm
    Result:I got the message: 'Oracle JDeveloper BC4J Admin Utility
    The location of the BC4J Admin Utility has changed.
    Click here to go to the new location.',
    So, it is ok.
    Is anybody knows how to use OC4J service on Oracle9iAS ? Please
    help me.
    Thank you.
    [6]http://202.202.202.11:7779/webapp/wm/images/trafficGray.gif
    Result:I got the image of trafic-light,
    So, it is ok and working fine.
    [7]http://202.202.202.11:7779/webapp/admin/bc4jadmin.htm
    Result:I got the message: 'Oracle JDeveloper BC4J Admin Utility
    The location of the BC4J Admin Utility has changed.
    Click here to go to the new location.',
    So, it is ok.
    Is anybody knows how to use OC4J service on Oracle9iAS ? Please
    help me.
    Thank you.

  • Cocobase --- Toplink conversion.

    I'm investigating if it's possible to convert a databse access layer application implemented with Cocobase to an implementation with Toplink.
    The project is using EJB architecture, there are Bean Managed Persistent EJB's (persistency is handled by cocobase) and session bean(s) controling user requests.
    Since code generation is done using templates in Cocobase, it looked powerful to me in this way. Is this supported by Toplink?.
    or has anybody done such a conversion before???
    regards.
    Erdem.

    Why are you thinking of switching from cocobase? The technical services team has a lot of experience migrating from homegrown and various O/R mappers to the TopLink persistence framework. You can send me an email if you'd like me to hook you up with them. BTW, there is typically no costs for this kind of help. TopLink supports BMP and does not require the use of templates -- you use your favorite modeling tool or IDE to build your BMP in a completely independent manner.
    I'm investigating if it's possible to convert a databse access layer application implemented with Cocobase to an implementation with Toplink.
    The project is using EJB architecture, there are Bean Managed Persistent EJB's (persistency is handled by cocobase) and session bean(s) controling user requests.
    Since code generation is done using templates in Cocobase, it looked powerful to me in this way. Is this supported by Toplink?.
    or has anybody done such a conversion before???
    regards.
    Erdem.

  • JavaFX 2.0 WebView hangs if the Application is signed

    I am using WebView to provide a set of Help pages in my application.
    The help pages are included in a resource directory called html.
    I get the first URL with the following lines of code:
    URL index = NgpConfiguratorApp.class.getResource("/html/index.html");
    String url = "file://" + index.getPath();
    I then open the URL with WebView and it works perfectly.
    I am able to browse my help pages perfectly.
    However if I sign the Jar (From within NetBeans using the 6 month valid signature) and then run the program everything works perfectly (XML import/export databse access etc) until I try to access the Help pages through WebView at which pointh the program completely hangs up.
    Is this a bug in WebView or am I missing something. I have included the complete class listing below.
    COMPLETE LISTING
    ============
    public class HelpBrowser extends Stage {
    public HelpBrowser() {
    super();
    init();
    private void init() {
    Stage primaryStage = new Stage();
    primaryStage.setTitle("AviatorCalc Help Pages");
    URL index = NgpConfiguratorApp.class.getResource("/html/index.html");
    String url = "file://" + index.getPath();
    Group root = new Group();
    primaryStage.setScene(new Scene(root));
    WebView view = new WebView();
    view.setMinSize(1024, 768);
    view.setPrefSize(1024, 768);
    final WebEngine eng = view.getEngine();
    eng.load(url);
    final TextField locationField = new TextField(url);
    locationField.setMaxHeight(Double.MAX_VALUE);
    Button goButton = new Button("Go");
    Button backButton = new Button("Back");
    goButton.setDefaultButton(true);
    goButton.setId("browserbutton");
    EventHandler<ActionEvent> goAction = new EventHandler<ActionEvent>() {
    @Override
    public void handle(ActionEvent event) {
    eng.load(locationField.getText().startsWith("") ? locationField.getText()
    : "" + locationField.getText());
    goButton.setOnAction(goAction);
    locationField.setOnAction(goAction);
    eng.locationProperty().addListener(new ChangeListener<String>() {
    @Override
    public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
    locationField.setText(newValue);
    GridPane grid = new GridPane();
    grid.setVgap(5);
    grid.setHgap(5);
    GridPane.setConstraints(locationField, 0, 0, 1, 1, HPos.CENTER, VPos.CENTER, Priority.ALWAYS, Priority.SOMETIMES);
    GridPane.setConstraints(goButton, 1, 0);
    GridPane.setConstraints(goButton, 2, 0);
    GridPane.setConstraints(view, 0, 1, 2, 1, HPos.LEFT, VPos.CENTER, Priority.ALWAYS, Priority.ALWAYS);
    grid.getColumnConstraints().addAll(
    new ColumnConstraints(500, 100, Double.MAX_VALUE, Priority.ALWAYS, HPos.CENTER, true),
    new ColumnConstraints(40, 40, 40, Priority.NEVER, HPos.CENTER, true));
    grid.getChildren().addAll(locationField, goButton, view);
    //grid.getChildren().addAll( view);
    root.getChildren().add(grid);
    primaryStage.show();
    }

    Many thanks for your prompt replies.
    Peterz as per your suggestion I changed the two incorrect lines to:
    String url = getClass().getResource("/html/index.html").toExternalForm();
    engi.load(url);
    It now works perfectly either running as a signed jar or from within the netbeans development system.
    The URL that the above creates now looks like this:
    "jar:file:/E:/Development/Wireless/netbeans/NgpConfigurator/dist/NgpConfigurator.jar!/html/index.html"
    (My development system is on drive E: and my project is called NgpConfigurator).
    I am extremely grateful for your help and I hope to contribute to this forum as my experience with JavaFX grows.
    Bob Rathbone

  • Column Not found error while trying to access databse through JSP+Java Bean

    I am trying to acees MS Access 2003 db through JSP using Tomcat 5.0.28.The code for accessing the databse is incorporated in the bean.The jsp only calls the particular method of the bean .
    Code for Java Bean:
    package ActiveViewer;
    import java.sql.*;
    import java.util.*;
    public class CompanyBean
    Connection con;
    ResultSet rs=null;
    Statement st;
         public CompanyBean(){}
         public void connect()
         try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("Here4");
    con=DriverManager.getConnection("jdbc:odbc:activeviewer","","");
         System.out.println("Here1");
         catch (ClassNotFoundException e)
         System.out.println("Could not locate driver.");
    catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
         e.printStackTrace();
         catch (Exception e)
    System.out.println("An unknown Exception has occured :: "+e);
         e.printStackTrace();
    public void disconnect()
         try
         if (con!=null)
    con.close();
         catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
         e.printStackTrace();
    public ResultSet select(String username)
    if(con!=null)
         try
    st=con.createStatement();
         rs=st.executeQuery("select * from company where username='" + username + "'");
    catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
         e.printStackTrace();
    catch (Exception e)
    System.out.println("An Exception has occured while retrieving :: "+e);
    e.printStackTrace();
    else
    System.out.println("Connection to database was lost.");
    return rs;
    The code for JSP that uses the above bean is:
    <%@ page language="java" import="java.sql.*,ActiveViewer.* " contentType="text/html"%>
    <jsp:useBean id="conn" scope="session" class="ActiveViewer.CompanyBean" />
    <html>
    <body>
    <% String username=request.getParameter("username");
    String password=request.getParameter("password");
    System.out.println("username:"+username);
    System.out.println("password:"+password);
    conn.connect();
    ResultSet rs=conn.select(username);
    System.out.println("Below select ");
    while (rs.next())
    String dbusername=rs.getString("username");
         String dbpassword=rs.getString("password");
         if(dbusername.equals(username) && dbpassword.equals (password))
    { %> out.println("OK");
              <% }
    else { %>Invalid Username and / or Password.
    <br>Clickhere to go back to Login Page.
    <% }
    } %>
    </body>
    </html>
    I get the following error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Column not found
    though the database is not int he same folder as the jsp, the DSN is set correctly to pint to the db location.The jsp does print in stdout file:
    Here4 (from connect method above)
    Here 1 (from connect method above)
    Below Select (from jsp)
    This means that the jsp does connect to db but it gives the above error.Also the field name also matches that in the database and data is present in the db too.
    All other things like creating package for bean,incorporating the packakage are done.
    Can someone please help me with their precious advice?

    U're getting this error because there is no field called 'password' in ur database, the field in ur database is named 'cpassword' and not 'password'. So change the statement rs.getString("password"); to rs.getString("cpassword");

  • XI cannot access oracle databse

    A IDOC to JDBC scenario is created in the XI. The database is SQL Server 2000. The adapters are IDOC and JDBC. The scenario is working fine.
    Next, the existing database (tables+data) in SQL Server  2000 is transferred to an Oracle Database. The JDBC communication channel is changed to access the corresponding table in the Oracle databse. i.e. driver, url, userid, password etc and classes12.jar is imported for the scenario.
    The scenario can create connection to the database successfully but cannot recognize the table attributes. i.e. delete from tableName is working fine but insert into tablename(col1, col2 ..)values(val1, val2) is not  working. The error generated is a given below,
    Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. <tableName> (structure 'STATEMENTNAME'): java.sql.SQLException: FATAL ERROR: Column <columnName> does not exist in table <tableName>
    The table attributes in the Oracle database are in CAPITAL letter while the corresponding dataType node is in SMALL letter. i.e. EMPNO in database and empno in dataType. Surprisingly, If I change the dataType node to CAPITAL letter then it works.
    The SQL should not be case sensitive.
    Some advice on why it is happening and the remedy is urgently needed.
    thanks and regards,
    Rana Brata De

    Hi
    This happens. its recommended to use capital letters in XML SQL
    See SAP Note 831162.
    Thanks
    Gaurav

  • Connecting Access Databse to BI Publisher

    Hi,
    Please anyone tell me, how to connect MS Access database to BI Publisher.
    There is no explicitly drivers defined in JDBC Connection, so what should I use in this case as DriverType & Connection String.
    Hoping for quick reply.
    Thanks in Advance.

    Hi Vestrini,
    Thanks for your reply, but only connection string is not enough, what about Driver type, Database Driver Class, username and password.
    Please, provide some detail step to connect access database to BI Publisher.
    Thanks.

  • Problem accessing oracle databse with JSP

    hI
    i'M TRYING TO ACCESS A ORACLE 8I DATABASE VIA A JSP. THE DATABASE IS LOCATED REMOTELY ON THE NETWORK AND I' USING JDEVELOPER 9i VERSION 9.0.3.1
    wHEN I RUN MY JSP, I WANT IT TO DISPLAY THE RESULT OF A QUERY ON MY JSP PAGE but instead i get this error on my error page : java.lang.NullPointerException
    what do u think is wrong with my code
    here it is :
    <%@ page language="java" %>
    <%@ page import = "java.sql.*" %>
    <%@ page import = "java.io.*" %>
    <%@ page errorPage="errorpage.jsp" %>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%
    String uname= request.getParameter("username");
    String pword= request.getParameter("password") ;
    String driverName = "oracle.jdbc.driver.OracleDriver" ;
    String dbUrl = "jdbc:oracle:thin:136.150.11.3:1521:orcl" ;
    /*String user = "hr8" ;
    String pass = "password" ; */
    Connection con= null ;
    Statement stmt = null;
         ResultSet rs = null;
    try
    { //loading driver
    Class.forName(driverName);
    catch (ClassNotFoundException e) {
    out.println("Unable to load driver class");
    try // connecting to the database
    con = DriverManager.getConnection(dbUrl,uname,pword);
    catch(SQLException ex){
    out.println("Error while connecting to the Database :" +
    ""+ ex.toString() );
    // create query
    stmt = con.createStatement();
    rs = stmt.executeQuery("select COUNTRY_NAME ,REGION_ID " +
    "from COUNTRIES where REGION_ID in (1,3,5,7,9);");
    while (rs.next())
    out.println(rs.getString(1));
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>
    LOGIN UNITRANSFER
    </title>
    </head>
    <body>
    <h2>
    I got it
    <%
    out.println(uname);
    %>
    </h2>
    <p>
    </body>
    </html>

    The dbUrl should be of the format:
    "jdbc:oracle:thin@" + serverName + ":" + serverPort
    + ":" + dataBaseSID;
    String dbUrl = "jdbc:oracle:thin:@136.150.11.3:1521:orcl";

  • How to set path of MS-Access databse file dynamically in crystal report

    i have windows application and crystal reports and access database.when i connect crystal report to database through followingpath like
    \\machinename\FolederName\AccessDBFile.mdb..here machine name is my machine name(i.e:PCNAMe).but when i will deploy this application on cliet machine then how i can set the path to crystal report with his machine name dynamically..or is
    there any other provision to do this so that i can set it dynamically.
    one more thing i want to tell you is that i wwant to share database on multiple machines so how can i do that.

    Hello,
    Crystal reports is for a long time not anymore supported by Microsoft. 
    Moreover for sure not in this forum for api's components and classes for the user interface Windows Forms
    Try direct the SAP community for Crystal reports for .Net
    http://scn.sap.com/community/crystal-reports
    Success
    Cor

  • How to determine which user has an Access 2013 databse open

    How can I tell which user / PC has opened a Backend Access database?

    If the file is stored on a server and you have access to it, you could check in Computer Management, then go into System Tools, Shared Folders, Open Files, and you should find the file listed there along with which user has it open currently.

  • Servlet not inserting into Access Databse. help please

    I have the following code which is inserting three fields into a database. The database name is contacts.mdb, and the table is contacts. I have setup the ODBC connection on the server, of which I have both IIS and Tomcat running. The form.html that I am accessing is on the tomcat server root and that code is below as well. After hitting the submit button on the form I get forwarded to the servlet, and the page is blank. However, when I open the database, no updates have occured. Please help. I hope I have provided enough detail. Thanks so much.
    -------- servlet code start --------------
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class WebServlet
    extends HttpServlet {
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,
    IOException {
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String sourceURL = "jdbc:odbc:terry_web_contacts";
    Connection databaseConnection = DriverManager.getConnection(sourceURL);
    Statement stmt = databaseConnection.createStatement();
    String jname = request.getParameter("Name");
    String jemail = request.getParameter("Email");
    String jcomments = request.getParameter("Comments");
    String sqlInsertString ="INSERT INTO contacts (name, email, comments) VALUES ('" + jname +"', '" jemail "', '" + jcomments + "')";
    stmt.executeUpdate(sqlInsertString);
    databaseConnection.close();
    catch(ClassNotFoundException cnfe)
    System.err.println("Error loading Driver");
    catch (SQLException sqle){
    System.err.println("SQL Error");
    ---------- servlet code end ---------------------
    ---------- html form code start ------------------
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY BGCOLOR="WHITE">
    <TABLE BORDER="2" CELLPADDING="2">
    <TR><TD WIDTH="275">
    <H2>I'm a Simple Form</H2>
    <FORM METHOD="POST" ACTION="/servlet/WebServlet">
    <p>
    <INPUT NAME="Name" TYPE="TEXT" id="Name" SIZE=30>
    </p>
    <p>
    <INPUT NAME="Email" TYPE="TEXT" id="Email" SIZE=30>
    </p>
    <p>
    <textarea name="Comments" id="Comments"></textarea>
    </p>
    <P>
    <INPUT TYPE="SUBMIT" VALUE="Click Me">
    <INPUT TYPE="RESET">
    </FORM>
    </TD></TR>
    </TABLE>
    </BODY>
    </HTML>
    ------------- html code end ------------------

    Okay, here is my modified code. However, I catch a sql error. It prints out "sql error". If I try to isolate the different lines of code with try catch blocks, the compiler says it does not recognize the symbols for example stmt, or databaseConnection. Arggh, what can I do? Help please.
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class WebServlet
        extends HttpServlet {
      public void doPost(HttpServletRequest request, HttpServletResponse response)
         throws ServletException,IOException
         PrintWriter out = response.getWriter();
         String jname = (String) request.getParameter("Name");
         String jemail = (String) request.getParameter("Email");
         String jcomments = (String) request.getParameter("Comments");
    try
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    catch(ClassNotFoundException e)
         out.println("class error");
    try
         Connection databaseConnection = DriverManager.getConnection("jdbc:odbc:terrycontacts");
         Statement stmt = databaseConnection.createStatement();
         String sqlInsertString ="INSERT INTO contacts(name,email,comments) VALUES('"+jname+"','"+jemail+"','"+jcomments+"')";
         stmt.executeQuery(sqlInsertString);
         databaseConnection.commit();
         databaseConnection.close();
    catch(SQLException e)
         out.println("sql error");
         out.close();
    }

  • Code to access db2e databse from java  ?

    i am woking on MAM application of SAP MI

    Hai,
    how do you want to access the database.
    u want code for JDBC.
    Different 4 types of drivers r there.
    give more info.
    for MYSQL
       Class.forName("org.gjt.mm.mysql.Driver").newInstance();
                catch (Exception exc) {
            System.err.println("Exception in init(): Unable to load JDBC driver");
                     exc.printStackTrace();
                try {
                     conn = DriverManager.getConnection("jdbc:mysql://localhost/" + DBNAME);
    FOR ORACLE
    // Connection conn = new oracle.jdbc.driver.OracleDriver().
             //                     defaultConnection ();
          Connection  conn = DriverManager.getConnection(connStr,
                                               "scott", "tiger");
          Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("SELECT  DIVISION, COMPLAINT, " +
                               " CPU_CODE ,COMP_DT FROM scott.Bug ");
    come back for more info.good luck

  • Accessing partitioned table thru remote databse link

    Dear All
    I want to use create table command in my database .I want access partitioned table of remote datbase thru database link.Pl let me know the scripts.
    Thanks
    Parth
    NB : I was using the foll but actually the data given is wrong.
    select * from Data@prod "partition(part_feb03)";

    Don't able use partition table with the database link, sorry
    Regards
    Hector

Maybe you are looking for

  • How to stop my Time Machine external hard drive preventing iMac from sleeping?

    I have a late 2012 iMac, and have discovered that sometimes (I haven't noticed a pattern of when it doesn/doesn't happen) the computer will immediately wake up after I set it to Sleep (Apple Menu>Sleep). Through elimination I have found that it is th

  • Phantom text in Bar Area

    I'm having a strange occurence of some text showing up in the "Bar Area" of my schedule. The text happens to be a Youtube web address that someone sent in an email. It only shows up on the KHT header...................I've tried everything I know to

  • How do i schedule a one to one for iWork's?

    I'm trying to make a reservation for one to one at my apple store, and when I'm trying to make a one to one reservation for iworks and there's no option to make one for iworks??

  • Edit this script so .log replaces .jpg

    Here's portion of script I'm editing: As it is it results in .log is appending to filename. Thus I end up with filename.jpg.log. How do I get it change filename to filename.log? (Filetype is of no concern here). This needs to be unattended. tell appl

  • Purchased Audiobooks and the Cloud - Syncing?

    Why don't my audiobooks that I bought from iTunes show up in my Purchases and why can't I sync them to the Cloud? I was trying to get the purchased audiobooks on my Air while away from home, and noticed they didn't show up on my Cloud or in my Purcha