Problem connecting to database within an application

We are running an application that utilizes SQL Server 2008 Standard, and has client software running on Windows 7 64-bit systems. Users access the database via the client software. There have been reported problems connecting to the database. Users can
launch the client application, but when they go to a part of the application that connects to the database, they encounter the following error:
Could not connect to configured database.
Datasource name: ClinicDB
Database: RayStationClinicDB_25189T
Connection string: Data
Source: 172.17.154.23\RAYTEST1,53326;Initial
Catalog=RayStationClinicDB_25189T;Integrated
Security=True;Persist Security Info=False;Network
Library=dbmssocn
Reason: Cannot open database "RayStationClinicDB_25189T"
requested by the login. The login failed.
Login failed for user '<DOMAIN>\<username>'.
I have connected to the server via remote desktop, and have been able to access the database via the SQL Studio. The connection that I made is to the mghrostortest\RAYTEST1 database, and I have logged in via the sa account.   I have stopped and
restarted the Database and the SQL Agent on the mghrostortest server.
Does anyone have any ideas as to what further steps I should take here?

Hello,
To create a login using Windows Authentication, please refer to the following article:
-- Create a login for SQL Server by specifying a server name and a Windows domain account name.
CREATE LOGIN [<domainName>\<loginName>] FROM WINDOWS;
GO
For detail information, please see:
http://technet.microsoft.com/en-us/library/aa337562.aspx
Regards,
If you have any feedback on our support, please click
here.
Elvis Long
TechNet Community Support

Similar Messages

  • Problem in Restoring database througn online application

    Can I restore database stored in SQL-Server 2000 using an online
    application.
    When I tried it is giving an error that -- "exclusive access to the database
    cannot be obtained. Database may be in use."
    Probably this is happening as I am using a connection pool to optimize my
    application.
    Suggest me how this problem can be solved.
    Thanks in advance.
    Regards

    you should attach that part of code for further information

  • Why I cannot connect to database after deploying application to OAS?

    Hello experts...i have a new problem and here are the facts:
    I`m using on Windows Xp:
    Oracle Database 10.2.0
    Oracle Application Server 10.1.3
    Oracle Jdeveloper 10.1.3.3
    I`m creating a new application using jdeveloper and i`m using 2 connection classes:
    a) First connection class using:
    InitialContext ctx=new InitialContext();
    DataSource ds=ctx.lookup("jdbc/connDS");
    Connection conn=ds.getConnection();
    b) Second connection class using:
    Connection conn = DriverManager.getConnection("jdbc:and the entire link goes here");
    So far so good, but when I create a ear file using the First connection class and after i deploy it to OAS my application will not connect anymore to database!
    If I will use the Second connection class, and create an ear file then deploy it to OAS, my application works fine, it connects to database but i have a problem. In my application users can upload and download the files they uploaded. The files are saved in DB as blob. The problem appears when users are downloading the files because for example file "example.doc" is uploaded on the server database and when a user try to download it the name of the file is like "example_doc" and my pc open it like an html in which is a server 500 error. Someone told me that happens because of my connection class... and I want to find out you`re opinion.
    Why i cann`t connect to DB after deploy the application on OAS using the FIRST connection class?
    - on Jdeveloper i can connect to DB using both of the connect classes (one at a time)
    - I`m creating a war file from jdeveloper and deploy the ear file on the OAS
    - on OAS i`ve created the connection pool and the data source and "The connection was establish succesfully"
    Why the uploaded files are downloaded in this way? it`s the connection the problem?
    - I want to tell you that when i`m extracting data from the DB table i`m not using a temp file, the conversion is made in the java class and the program throws me the file to download.
    - as i told you in Jdeveloper both of the connection classes work!!! and when i`m using the FIRST connection class and try to download, the files ARE DOWNLOADED PERFECTLY CORRECT!
    - if i`m using the SECOND connection class in jdeveloper, running the application on the built in oc4j instance and trying to download the same files, the files are DOWNLOADED BAD like I told you: the name of the file is like "example_doc" and my pc open it like an html in which is a server 500 error. with the pdf format is the same problem but my pc cannot open it telling something with "bad conversion...." error.
    There are someone who had the same problem?
    Theoretically i had to make the application to connect to the database after deploy it to OAS with the FIRST connection class and this way my files will be downloaded corectly... what to do?

    no one knows nothing about this issue? :(... i`m dissapointed...

  • Problems Connecting to Database in Forms Developer

    Please can someone help me, I installed Oracle9i personal edition on my PC (OS XP PRO) about 4 months ago. But I've only just started using the forms developer. When I try to run the form in the browser window I can't connect to the database. The application freezes and won't respond. Occasionally I get the error message
    ORA-12514 saying TNS listener cannot resolve the service name. My tnsnames.ora file seems to be correct but I'm not sure if it is in the right directory?
    Can someone please give me some advice.
    Thankyou.

    Guys,
    I have been doing this for years - on solaris, linux and windows. You have 2 Oracle homes - one for the database and one for the forms. 6i - or iDS does not matter - 2 Oracle Homes. Same on Linux/Solaris/Windows - ok.
    Define the TNS_ADMIN environment variable (applies to all 3 OS above). Set it to a directory of your choice - better yet create one. On solaris and linux /var/opt/oracle is a good choice. On windows create a directory of your choice. Also define the TWO_TASK and ORACLE_SID environment variables to match your database server settings.
    Ftp the database server's tnsnames.ora and sqlnet.ora files to the directory you created (TNS_ADMIN points to).
    To be certain that you are not using the Forms' Home/network/admin/tnsnames.ora and sqlnet.ora files - rename them. You will not use them and you won't need them (unless you want to edit them to include the tnsnames.ora and sqlnet.ora entries from your Database server's /network/admin/tnsnames.ora and sqlnet.ora files.
    That is it - next time you connect from the forms you should be able to connect. If you want provide the connect string (3rd field in the connection window) to ensure you pointing to the right db server.
    You don't need to configure your Forms' network services again - all you do is use the Oracle database server's network configuration files.
    Hope this proves useful.

  • Ora-12154 when trying to connect to database from fortran application

    I am trying to connect to database and run an simple select query to a table(without any where clause) using pro*fortran code.
    the connect strng is like
    exec sql connect :uidpwd
    where uidpwd = username/password@SID
    SID and tnsnames connect string are the same.
    The fortran (profortran) code is placed in the database server and there are no errors when make is run.
    Tnsping is working fine, also i am able to conect using sql*plus and run the same query.
    Please help
    Thanks and Regards
    Nitin

    Hi Nitin
    Thanks for the helpful! With your point I'm now Pro! Great thanks.
    By the way have your seen that?
    Files such as LISTENER.ORA, TNSNAMES.ORA, SQLNET.ORA, if configured manually, or copied and edited from earlier releases of Oracle Database may have record attributes that are incompatible with Oracle Database 10g release 2. The software cannot read such files. The required record format is stream_lf and the record attributes are carriage_control and carriage_return.
    This may result in:
    Inability to start the listener
    Services not registered with the listener
    Inability to connect to other databases
    ORA-12154: TNS:could not resolve service name
    Run the following command on each file affected:
    $ DIR/FULL filename
    An output similar to the following may be displayed:
    Record format: Variable length, maximum 255 bytes
    Record attributes: Carriage return carriage control
    If the output includes the preceding entries, then run the following command:
    $ CONVERT/FDL=SYS$INPUT filename filename
    RECORD
    CARRIAGE_CONTROL CARRIAGE_RETURN
    FORMAT STREAM_LF
    ^Z
    Otherwise herewith an interesting metalink note. Doc ID:      Note:437597.1
    Subject:      Ora-12154 When Executing Pro*Fortran Code Compiled With Oracle 10g.
    Hope this will also help you...
    Cheers
    Hubert

  • Problem connecting to database

    When I run the belwo code, though it gives me the message "Connected", when later in the program I try to use db_conn for praparing a statement, it gives me null pointer exception.
    public Connection getConnection()
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    String url = "jdbc:mysql:///" + "UNIVERSITY";
    String user = "root";
    String pass = "welcome123";
    db_conn = DriverManager.getConnection(url,user,pass);
    if((db_conn != null)&&(!db_conn.isClosed())) {
    System.out.println("Connected..."); }
    return db_conn;
    catch(Exception e) {
    System.out.println("Error in connecting to database " + e);     
    System.exit(1); }
    return null;
    I've very little knowledge of JDBC and can't fiure out what's wrong in there. Any help is really appreciated.
    Thanks

    Don't crosspost:
    http://forum.java.sun.com/thread.jspa?threadID=790394&messageID=4491427#4491427

  • Problem connection to database when opening Crystal Report in VB6 app

    Hi all, first post, so be gentle!
    I've developed a simple app and database using VB6 and SQL Server 2005 and is seems to be working well when i test it.
    Problem i have is after i installed the app on another PC. When the user tries to open the report they get an error when the report tries to connect to the database. It appears the report is trying to connect to the SQL Server using the user's AD account details, yet i set the report up with a trusted connection. I created a replica ODBC connection (as used by me when designing the report) on the users PC to see if that was what was missing. THis was set up to use the generic SQL Server logon details. Unfortubately the report is still trying to connect with the user's AD details.
    I had a bash at creating the VB commands to set the connection settings, but i couldn't get this to work.
    If anyone can help point me in the right direction or show me the correct code/steps to get th connection details correct, i'd be very grateful.
    Here is the code i have in my app:
    (Form1)
    Dim crxApplication As New CRAXDRT.Application
    Public Report As CRAXDRT.Report
    Private Sub cmdRunReport_Click()
    ReportPath = App.Path & "\" & File1.FileName
    If (File1.FileName = "SKU MTM Report - ADR.rpt" Or File1.FileName = "SKU MTM Report - BS100.rpt") Then
        Set Report = crxApplication.OpenReport(ReportPath, 1)
        Report.ParameterFields.Item(1).AddCurrentValue (Trim(DataCombo1.Text))
        Report.ParameterFields.Item(2).AddCurrentValue (Trim(DataCombo2.Text))
        Report.ParameterFields.Item(3).AddCurrentValue (Trim(DataCombo3.Text))
    End If
    frmreports2.Show
    End Sub
    (Form2 with Crystal ActiveX Viewer component)
    Private Sub Form_Load()
    CrystalActiveXReportViewer1.ReportSource = frmReports.Report
    CrystalActiveXReportViewer1.ViewReport
    End Sub
    Thanks in advance for any advice!
    Edited by: James McCaig on Feb 5, 2009 12:39 PM

    Here is an article on how to distribute the runtime using msm files. I think the articles was written in CR 9, but all applies, save the names of the msm files:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/901c0761-cf1d-2b10-dea4-8e83937a9337
    Note that you have to use a utility such as Wise, InstallShield, MS Visual Installer, etc., to create your deployment.
    I have also created a short wiki that describes the msm downloads for each version of CR:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsReportDesignerComponentRuntimeDistribution-Versionspre8.0.xto12.0
    Ludek

  • Problems connecting to database in DW with Vista OS

    I am having trouble connecting to an Access db when I use
    Vista as OS.
    On my laptop (Win XP) everything works OK, but when I am
    trying to connect
    to an Access db I use the wizard, find the database and test
    it .
    When I try to test the connection string I get an error
    saying 'unspecified
    error'.
    Could there be a dll or something that is not properly
    registered?
    reidarT

    Thanks, but I get the same problem.
    I test the connection and it works OK, but when I try to look
    at tables and
    views in the Application, databases
    there are no tables and views.
    And when I do the same on my laptop with Win XP it works OK.
    I have given myself all rights in your suggested folder.
    reidarT
    "Ed Stewart"
    <[email protected]> skrev i
    melding
    news:fjhm98$s0r$[email protected]..
    > >I am having trouble connecting to an Access db when
    I use Vista as OS.
    >> On my laptop (Win XP) everything works OK, but when
    I am trying to
    >> connect
    >> to an Access db I use the wizard, find the database
    and test it .
    >> When I try to test the connection string I get an
    error saying
    >> 'unspecified error'.
    >> Could there be a dll or something that is not
    properly registered?
    >> reidarT
    >
    >
    > Vista uses a temp folder to open Access databases, so
    you must give that
    > folder 'write' permissions.
    >
    > C:\Windows\ServiceProfiles\NetworkService\AppData\Local

  • Problems connecting with database from java API

    I've benn using XSQLRequest and I found a problem with
    connections, because it can't connect from Java to database, but
    if I access to a .xsql it works.
    And also if I link to a .xsql first and after that I try to
    access to Database form my servlet it works. So I think my
    problem is to initialize the XSQLConfig.xml file in OC4J server.
    Thanks in advance

    Would you provide the way you deploy your XSQL app to OC4J and
    how you get JDBC connection using JAVA? I execute the next code more or less:
    miXSQLRequest = new XSQLRequest(XSQLQuery.getDOM
    (),null);
    miXSQLRequest.process(htParamsIn, pWriter, pErrors);
    but and it's probabily my mistake I don't get any conecction
    from the session or something similar because I thought that
    it's made by XSQLRequest, and the XSQLRequest class takes the
    default values of the connection pool from the file
    XSQLConfig.xml (I put this file inside the lib directory of
    OC4J) as the XSQLServlet.
    Thanks for your help

  • Problem connecting oracle database to jsp pages using Apache Tomcat server 8.0

    Well...I tried too many things..googled so many times..but still could not find solution to my problem.
    I use windows 8 Enterprise Edition(if this has to do something with the problem)
    Oracle 11.2.0
    Apache Tomcat server 8.0
    JDK 1.7
    My oracle is installed in the D: drive and tomcat in c:. i copied the ojdbc6.jar file from oracle to lib directory of tomcat server.
    Then i set  CLASSPATH in environment variables as "C:\Program Files\Apache Software Foundation\Tomcat 8.0\lib\ojdbc6.jar" in system variables
    My path variable is set as "C:\Program Files\Java\jdk1.7.0_02\bin".
    My program is as follows in notepad:
    <%@ page import="java.sql.*" %>
    <html>
    <body>
    <%
    Connection conn;
    Statement st;
    ResultSet rs;
    try{
    new oracle.jdbc.driver.OracleDriver();
    String dbURL="jdbc:odbc:oracle:thin:@localhost:1521:XE";
    String userId="system";
    String pwd="moon";
    conn=DriverManager.getConnection(dbURL,userId,pwd);
    st=conn.createStatement();
    rs= st.executeQuery("SELECT * FROM login");
    while(rs.next())
    System.out.println(rs.getString(1)+""+rs.getString(2));
    catch(Exception e){}
    %>
    </body>
    </html>
    I get too many errors then
    eroors
    org.apache.jasper.JasperException: An exception occurred processing JSP page /page2.jsp at line 14
    11: String userId="system";
    12: String pwd="moon";
    13:
    14: conn=DriverManager.getConnection(dbURL,userId,pwd);
    15: st=conn.createStatement();
    16:
    17: rs= st.executeQuery("SELECT * FROM login");
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    root cause
    javax.servlet.ServletException: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:905)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:834)
         org.apache.jsp.page2_jsp._jspService(page2_jsp.java:102)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
         org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    Nothing solved this problem.

    >> Nothing solved this problem.
    Can't fix a problem 'till an actual problem is identified.
    >> ODBC Driver Manager ... Data source name not found
    That appears to be ODBC drivers looking for a DSN (Data Set Name). If it wants a DSN, the DSN has to be specified in the code, and the DSN has to be configured in the windows host ODBC applet. So that is at least two squirrels to get in the right tree before moving forward. A ...host:...[port:]SID|service name are some of the bits needed in a jdbc connect string, and that is in no way related to DSNs. A Whole Different Animal. If it wants a DSN that might be what needs to go in the URL bit.
    And ODBC setups can be confusing, especially if an x64 OS is in the mix- if that is the case there are two different ODBC configuration applets, one for x64 the other for x86, and if one gets as far as talking to an actual database it might toss an architecture error. Only way to fix that "problem" is *delete* the ODBC DSN and then run the correct (maybe the x86) ODBC config utility, and set up the DSN. Again.

  • Problem connecting the database

    Hi ,
    Iam developing a webapplication with websphere application server and db2 database.
    In the webspehre application server i have created a datasource and the JNDI name is
    jdbc/myds and tested the connection, it is fine. now i want to use this datasounce in my javaprogram. i use this statement
    InitialContext ctx = new InitialContext();
    dataSource = (DataSource) ctx.lookup("jdbc/myds");
    but i get the error message name: jdbc/myds: First component in name jdbc/myds not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
    can any one please tell me how to do the connection ???
    please help

    duffymo wrote:
    DigitalDreamer wrote:
    Weblogic admin console did not spit out web application deployment descriptors last time I checked (v8). Are you saying that when you make a change in the admin console it doesn't show up in the config.xml? News to me.No, by deployment descriptor I mean a file like ejb-jar.xml or web.xml
    My point is that adding java:comp/env/ to the jndi name is probably not going to help since it requires more configuration:
    add a <resource-ref> element to web.xml to define the resource.If it's part of the web tier, yes. What if it's in a service layer or EJB?ejb-jar.xml + weblogic-ejb-jar.xml or whatever
    add an element to the vendor specific deployment descriptor (weblogic.xml or whatever) to map the resource to the actual jndi name.Nope.
    "java:comp/env/whatever" is not the "full context name" it is a special context available to Java EE components that must be configured, Not sure what this means. I add the JNDI name to my connection pool, put the JNDI name in my Spring config, and voila - I have a data connection. Either you are creating your your datasource JNDI name with a java:comp/env/ prefix (which would be a bit strange) or you have an entry in web.xml + weblogic.xml. This is how java:comp/env is (was) supposed to be used.
    Sure in your spring app it is a completely pointless abstraction but back in the day you were supposed to put all your configuration in web.xml etc ;-). The whole concept of java:comp/env is pretty much deprecated anyway: in Java EE 5 you have resource injection.

  • Error in connecting Oracle Database from JAVA application!!!

    Hi,
    I am trying to connect to the Oracle11g database server from the client machine using JAVA eclipse. I have installed the oracle client in the client machine. Once i try to execute the below code it was throwing below error:
    public class Dbconnect {
    public static void main (String[] args)throws Exception {
    try {
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    String connectString = "jdbc:oracle:thin:@<IP Address>:1521:orcl";
    OracleDriver drivers = new OracleDriver();
    System.out.println(drivers);
    Connection connection = null;
    connection = (OracleConnection)DriverManager.getConnection(connectString,"ADMIN", "admin");
    System.out.println(connection);
    System.out.println("Connected to the database");
    Error:
    java.sql.SQLException: The Network Adapter could not establish the connection
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at DBConnect.main(DBConnect.java:15)
    Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:359)
         at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422)
         at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:672)
         at oracle.net.ns.NSProtocol.connect(NSProtocol.java:237)
         at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
         ... 7 more
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:141)
         at oracle.net.nt.ConnOption.connect(ConnOption.java:123)
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:337)
         ... 12 more
    I am unable to connect using sqlplus as well ORA-12560: TNS:protocol adapter error
    Please advise me on how to resolve this issue..
    Thanks

    Prabhu wrote:
    We are not able to connect from SQLplus as we.. If i issue this command in Sqlplus from client machine 'sqlplus admin/admin@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<Ip Adddress>)(PORT=1521)))(CONNECT_DATA=(SID=orcl)))'' it was throwing the below error.
    Error: ORA-12541: TNS:no listener
    Do i need add get any config details in the client machine..
    Could please tell me what is the general procedure to access the DB server from client machine..on DB Server issue following OS commands
    lsnrctl start
    lsnrctl status
    lsnrctl service
    COPT commands & results, then PASTE all back here

  • Problem connecting with database when Flex Builder closed

    Hello,
    I developed a web page that connects to a database, reads some data and shows it on the screen. I use HTTPService to connect to a php server that takes the data from MySQL. Everything is OK when I run the web page from the Flex Builder, but when I run the page doing double click on the released .html file the connection fails and the program throws this error:
    [RPC Fault faultString="Error #2028: Local-with-filesystem SWF file file:///Q:/2009-08-05-1330FinalFrontEnd/bin-release/FrontEnd.swf cannot access Internet URL http://localhost/Test2/Test2.php." faultCode="InvokeFailed" faultDetail="null"]
        at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke()
        at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::invoke()
        at mx.rpc.http::HTTPService/send()
        at mx.rpc.http.mxml::HTTPService/send()
        at FrontEnd/submitLabelsQuery()
        at FrontEnd/updateLabels()
        at FrontEnd/___FrontEnd_SetEventHandler5_handler()
    Does anyone know how can I run the web page without using Flex Builder?
    More info:
    I'm using Flex Builder 3 for developing the web page and WampServer 2.0 for the connection with the database.
    Thank you,
    Onditz

    You need to add a crossdomain.xml  file at the root directory of your php server.
    Thanks,
    Nith
    See the piece of information copied from the flex documentation:
    To make a data service or asset available to SWF files in different domains or on different computers, use a crossdomain policy file on the server that hosts the data service or asset.
    A crossdomain policy file is an XML file that provides a way for the server to indicate that its data services and assets are available to SWF files served from certain domains, or from all domains.
    Any SWF file that is served from a domain specified by the server's policy file is permitted to access a data service or asset from that server.
    By default, place the crossdomain.xml at the root directory of the server that is serving the data.

  • Connection with Database via Middleware  Application on a Web Server

    Hello friends
             I dont have much knowledge of Authorware. I want to read some values from my JSP Applicaiton using Authorware and need to display those values in Authorware file. If any one know please inform me. its urgent!..
    Thanks and Regards
    Dagadu Akambe
    Pune, india

    I dont have much knowledge of Authorware. I want to read some values from my JSP Applicaiton using Authorware and need to display those values in Authorware file. If any one know please inform me. its urgent!..
    Look at ReadURL and PostURL. These work similar to HTML form Get and Post.
    Steve

  • Problem in connecting to database from webdynpro for java

    Hi
    I have a problem in connecting to database from webdynpro application
    I am using oracle 10 express edition as database and was able to connect to database from a java application.But  was unable to connect from a webdynpro for java.
    <b>I guess webdynpro for java uses open sql instead of vendor sql(I looked in the visual admin ,DB is using open sql) so unable to connect to database.Am i right.?</b>
    Do i need to make any settings in the visual admin to make it work?
    How to solve this problem.Please give me pointers
    Thanks
    Bala

    Hi,
    For connecting to Oracle, either you can use the normal JDBC connectivty code directly which is given below :
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle_server_ip:Oracle port:SID of the Database","user_name","password");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("your query");
    In case you want to fetch data through ejbs, these are the steps to be followed :
    1) Open the J2EE perspective
    2) Create an EJB Module project
    3) Right click on ejbModule, create a new EJB (select your EJB type)
    4) While creating the ejb itself, you can add business methods by clicking ‘Next’ in the UI. Another option is after creating the ejb, write the method in the bean, then select the method from ejb-jar.xml -> <bean name> ->method. Right click and select ‘propogate to local & remote’.
    5) Double click on ejb-j2ee-engine.xml. select your bean and specify a Jndi name for eg: “MyJndi”.
    6) Right click on the EJB project and add ‘classes12.zip’ file (provided by Oracle) to it’s build path. (under libraries tab). Also check the same file under ‘Order & Export’.
    7) Create an Enterprise Application project.
    8) Right click on the EJB module project and select add to EAR project, then select the created EAR project.
    9) Right click on the EJB project, select ‘Build EJB Archive’
    10) Right click on the EAR project, select ‘Build Application Archive’
    11) Open the WebDynpro perspective, open a new project, right click on the project ->properties. Do the following configurations :-
    • Java Build path - select the EJB project from ‘projects’ , check the selected project under ‘Order & Export’
    • Project references – select the EAR project
    • WebDynpro references – select ‘sharing references’ tab, click add & make an entry as : <vendor>/<EAR project name without .ear extension>
    You can find the vendor name under ‘application-j2ee-engine.xml’ file of the EAR project. By default it is ‘sap.com’. So if my EAR project’s name is ABC, my entry would look like ‘sap.com/ABC’
    12) Now the configurations are over and the EJB can be invoked by writing the client code inside the webdynpro component. Like:
    InitialContext context = new InitialContext();
    Object obj = context.lookup("MyJndi");
    MyEJBHome home = MyEJBHome)PortableRemoteObject.narrow(obj,MyEJBHome.class);
    MyEJB mybean = home.create();
    int a = 0;
    a= mybean.add(10,15);
    wdContext.currentContextElement().setSum(a);
    where ‘MyEJB’ is my EJB name and ‘MyJndi’ is my JNDI name
    To connect to Oracle , you can write the usual Java code (given below) as a business methos of the ejb (similar to add() method in the example). And access it like mybean.<businessMethodName>().
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle_server_ip:Oracle port:SID of the Database","user_name","password");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("your query");
    Extracted from Re: Webdynpro and Oracle
    http://help.sap.com/saphelp_webas630/helpdata/en/b0/6e62f30cbe9e44977c78dbdc7a6b27/frameset.htm
    May be of use to understand the VA Conf /people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
    Regards
    Ayyapparaj

Maybe you are looking for

  • Logon Error while importing data

    Hello, I have "Countries" flat table in my repository containing 2 fields Name & ISO Code. I wanted to import data i.e. Name & ISO Code in this flat table via Import Manager. I have excel file containing Name & ISO Code data. While importing data, I

  • Centralize internet access in MPLS VPN

    Can i implement Centralize internet access (the Hub CE Router to performs NAT) in cisco MPLS VPN solution? If so, is there any example about that? i can't find it at CCO~ Thanks a lot~

  • New movie not showing up in iCloud

    New movie "X-Men:Days of Future Past" not showing up in iCloud. Thanks

  • Use of Spl GL in document parking

    We have a defined Spl GL for Salary Advance as "S". Advances are paid as down payments and the recovery happens through the monthly payroll processing. This is not through SAP and we only pass a JV through F-02. This JV contains line items with Spl G

  • FM for Planned Total values of a WBS

    Hi All, Looking for an FM which can give me Planned Total values of a WBS element (that means, of that particular WBS element and all the objects below that WBS, including WBS, activities, etc.) just like this figure is calculated in CJ40 "Planned To