I want to connect Visual foxpro database through forms6i.

Hi ,
I want to connect Visual foxpro database through forms6i.
actually i want to access Visual foxpro database in forms6i and retrive and update data from forms6i.
please help me urgently how can i do this in forms6i.
Thanks,
Md.Muniruzzaman Khan
Email : [email protected]

do the following steps for hetrogenous service
Step 1
Create ODBC named Access1.
Step 2
Go to urs inithsodbc.ora file which reside at
ORACLE_HOME\hs\admin\inithsodbc.ora
and overrite by
# This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
# HS init parameters
HS_FDS_CONNECT_INFO = Access1
HS_FDS_TRACE_LEVEL = off
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
Step 3
Add the following entry to the tnsnames.ora file:
ACCESS1.WORLD =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=ACCESS1))
(HS=OK)
Step 4
Add the following entry into the listener.ora file:
(SID_DESC=
(SID_NAME=ACCESS1)
(ORACLE_HOME=D:\Oracle)
---Define urs oracle home path in mine case it is at D:\Oracle--
(PROGRAM=hsodbc)
Step 5
Reload the listener from contol panel services yours listener service
Step 6
Create a database link using:
CREATE DATABASE LINK access1.world CONNECT TO "MyUser" IDENTIFIED BY "MyPassword" USING 'ACCESS1.WORLD';
Step 7
Connect to scott/tiger
Query the table using:
SELECT *
FROM [email protected];
Step 8
Same you can connect to urs forms and write above sql in cursor
Acknowledge me.
Khurram Siddiqui

Similar Messages

  • Unable to connect to the database through OEM

    Hi,
    ORACLE VERSION: 10.2.0.1.0
    OPERATING SYSTEM:LINUX
    I was unable to connect to my database through OEM.It is showing error like this in my OEM .
    Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
    The below is the list of errors written in the trace file .
    2009-07-13 14:55:18,351 [EMUI_14_55_18_/console/aboutApplication] ERROR em.console doGet.311 - java.lang.IllegalStateException: Response has already been committed
    java.lang.IllegalStateException: Response has already been committed
         at com.evermind.server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1901)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
         at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:773)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:396)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
         at oracle.sysman.eml.app.Console.doGet(Console.java:135)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:123)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    2009-07-13 14:55:20,893 [HttpRequestHandler-25640626] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,925 [HttpRequestHandler-25640626] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,926 [HttpRequestHandler-25640626] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:20,959 [HttpRequestHandler-23946437] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,990 [HttpRequestHandler-23946437] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,991 [HttpRequestHandler-23946437] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:42,047 [OmsServiceDriver thread] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,030 [HttpRequestHandler-12767107] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,062 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,063 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:51,096 [HttpRequestHandler-28346522] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,127 [HttpRequestHandler-28346522] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,127 [HttpRequestHandler-28346522] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:56:21,162 [HttpRequestHandler-32110028] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,193 [HttpRequestHandler-32110028] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,194 [HttpRequestHandler-32110028] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:56:21,227 [HttpRequestHandler-12767107] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,258 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,259 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)

    Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    Don't say password is correct, if password is correct then tell us what last changes you did. did you change SYSMAN password throught alter user ...identified ... ?
    Regards,
    Taj

  • Can i connect to the database through the internet

    hi all
    i installed a database oracle 8i enterprise edition on a pc that exists in a town far from me . i wonder can i connect to this database through the internet from my house
    please i need a answer
    thanks in advance

    You can connect from an Oracle client to any Oracle database in the world that meets certain requirements.
    First you need an open network connection between the two points so either no firewall exists between the two stations or the firewall(s) have been configured to allow Oranet traffic. This means both databases must have access to the Internet and certain ports are open.
    Second you will need the IP address and port for the remote listener, which in turn must be up and running on the target server.
    Then you must have the Service Name or SID and a valid username/password combination for the target database. Plus the username must have create session privilege.
    That should be about it.
    HTH -- Mark D Powell --

  • I want to connect to remote databases which can be specified by URL

    Hi,
    i'm tinu
    I want to connect to remote databases which can be specified by URL
    the database is ORACLE 9i
    pls help me, how to connect to it
    i have the ip address,port address,sid,username and password of the database
    is there any difference in the actual code of database connection
    plss help

    Hi,
    There is a particular example with MS SQL 2000 in thread http://forum.java.sun.com/thread.jspa?threadID=608314
    In the given example you just need to change the database URL and the JDBC driver. Just examine the code a little bit.
    Also you may wish to visit the SUN's JDBC tutorial on http://java.sun.com/docs/books/tutorial/jdbc/
    Ferad Zyulkyarov

  • Crytsal Reports 11 cannot connect to Visual Foxpro Database table

    I hope someone can help me here. I have read through the other posts here, but can't seem to fiind the answer I need.
    We use Crystal Reports to pull information from our Sage databases to create and distribute reports. Currently this is working fine on the original server. However, we decided to move the installation of Crystal Reports from one server to another.
    In setting up the new server, I keep getting the message "The database table (table name) cannot be found. Proceed to remove this table from the report?" It displays this message for all the different tables in which data is trying to be accessed. Once I click No to all of these notifications, the correct info is poplulated in the report just fine. I need to get this corrected. It does not do this on the original installation.
    Also if I open Database Expert and single click too expand the "Current Connections" folder, I get a message that pops up saying "Database Connector Error: 'HY010:[Microsoft][ODBC Visual Foxpro Driver] Function sequence error'". When I click OK to that, I get another similar error that reads "Database Connector Error: 'IM001:[Microsoft][ODBC Driver Manager] Driver does not support this function'"
    Please let me know of any ideas that you may have as to what may be causing this issue. I have tried reinstalling the ODBC drivers, Runtime files, and Crystal. I appreciate any help.

    I tried what you mentioned but it did not work. I believe it has to do with a "SQLNumResultCols" in SQL. The reason I say this is because I did a trace on both the server that is working and the server that is not and this is the first key that displayed an error in the SQL.LOG file. Here is this section of the SQL.LOG file for the server that isnt working...
    dde             2e94-28b0     EXIT  SQLNumResultCols  with return code -1 (SQL_ERROR)
              HSTMT               03442998
              SWORD *             0x0012F3F4
              DIAG [HY010] [Microsoft][ODBC Visual FoxPro Driver]Function sequence error (0)
    And here is this section of the SQL.LOG file for the server that is working...
    dde             eb8-c94     EXIT  SQLNumResultCols  with return code 0 (SQL_SUCCESS)
              HSTMT               03542508
              SWORD *             0x0012F3F4 (5)
    I believe if I can figure out what is causing this, I will be able to resolve this issue, but I am not a programmer and I am having a very hard time with this. Any help is appreciated.

  • Can oracle PLSQL program communicate to VFP (Visual Foxpro) Database.

    Hello All,
    I am using dataabse 9i in windows 2003 - 32 bit server.
    I have couple of application in forms and Visual Foxpro(VFP). The VFP program can commucate to the oracle database.
    when I am inserting/updating/deleting some data to the oracle database it should insert/update/delete the record in VFP database.
    For this I have created triggers in the oracle tables so that when DML oreration are happening in the database it can triggered and same time the VFP tables can be updated by the oracle triggers. But my problem is I am not able to connect to the VFP table from the Oracle.
    Any body have any idea on it, Please suggest.
    Thanks,
    SUN

    Oracle has a facility called Heterogeneous Services. It uses odbc or ole to communicate to third party databases.
    You need a Foxpro ODBC driver, and you need to set up several Net related files.
    Please refer to http://download.oracle.com/docs/cd/B10501_01/server.920/a96544/gencon.htm#1656
    Sybrand Bakker
    Senior Oracle DBA

  • JSP and Microsoft Visual FoxPro Database

    Hi!
    I am developing a website in JSP, this is placed on a linux server. I want to connect to the FoxPro databasefiles(*.dbf) on another server.
    How can i do this?
    I've tried this connectionstring, but it only works on my local machine that runs on Windows XP:
    Connection c = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Visual FoxPro Driver};UID=;PWD=;SourceDB=" + db + ";SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;");
    This connection string is not usable on the server where the JSP-page runs.

    Hi!
    I am developing a website in JSP, this is placed on a
    linux server. I want to connect to the FoxPro
    databasefiles(*.dbf) on another server.
    How can i do this?
    I've tried this connectionstring, but it only works
    on my local machine that runs on Windows XP:
    Connection c =
    DriverManager.getConnection("jdbc:odbc:Driver={Microso
    ft Visual FoxPro Driver};UID=;PWD=;SourceDB=" + db +
    ";SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Coll
    ate=Machine;Null=Yes;Deleted=Yes;");The above is a JDBC related question it belongs to the JDBC forum.
    List of forums: http://forum.java.sun.com/index.jspa?tab=java
    This connection string is not usable on the server
    where the JSP-page runs.JDBC connection has nothing to do with the presence of JSPs, it will work just fine whether JSPs exist or not.
    I encourage you to read this http://www.catb.org/~esr/faqs/smart-questions.html#forum at your leisure.

  • Connecting to a database through the Proxy using JDBC

    Hi,
    I am working on core java.
    I want to established connection to remote database(I am working on local network behind the proxy)
    how can i do this using core java
    thanks in advance
    regards
    Man479

    The only issue I see here is configuring the proxy to allow the client program to connect to a certain port on the server. And that issue would normally be dealt with by asking the person who manages the proxy to set it up that way.

  • Connecting to a database through Business View Manager

    Hi,
    I am connecting to various application databases (Oracle) using the Business View Manager. When does the connection between my Business View Manager Data Connection and my application database gets "released"? If I have scheduled, say a report to run every 0800 hrs, does the connection cease after the report run has completed?

    I can't tell from your post if you're concerned about db connections being left open too long or if you want them to remain open for use by other documents.  But there is a setting on the CRProcessingServer called "Allow Report Jobs to Stay Connected to the Database until the Report Job is Closed" which helps control this.  Default is unchecked.  However, I believe a report job when scheduled closes the db connection at the end as part of its closing steps.  It's possible you are seeing a connection left open until the jobtimeout triggers (which is another setting in the CMC on the same CRprocserver page). 
    You may want to monitor the database while scheduling a new report to see the session open.  And then watch it after the scheduled job finishes to see how long it takes to close out.

  • How to create a Connection to UDB Database through OIM APIs.?

    Hi,
    In our OIM (9.1.0.2) implementation, there is a need to connect to a UDB database to execute some select queries and get the data. Is there any way in which I can do this?
    I tried creating an ITResource to have all static database related information, but I was not able to use that ITResource and create an actual database connection in the java code.
    As far as possible, I don't want to use any JDBC code to create the connection but want to know if there are any inbuilt OIM APIs which can help me in creating a database connection to point to the UDB database.
    (We don't have the DBUM connector deployed.)
    Please get back with your views/info on this.
    Thanks,
    Kulesh...

    Here is a constructor code for connecting to a database:
         public DatabaseConnection(String hostname, String port, String driver, String sid, String admin, String password) throws ClassNotFoundException, SQLException{
              log.info(CLASS_NAME + " -----> inputs=hostname[" + hostname +
                        "]port[" + port +
                        "]driver[" + driver +
                        "]sid[" + sid +
                        "]admin[" + admin +
                        "]password[********]");
              Properties connectionProps=new Properties();
         connectionProps.setProperty("user", admin);
         connectionProps.setProperty("password", password);     
         String url = "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=" + hostname +
              ")(PORT=" + port +
              "))(CONNECT_DATA=(SID=" + sid + ")))";
         Class.forName(driver);
              con = null;     
         con = DriverManager.getConnection(url, connectionProps);
    If you want to use SSL, you will want to configure tcps for jdbc connection to the database, or any other form of connection and update your URL string for it.
    -Kevin

  • Unable to connect to SQL database through ODBC calls

    I have been looking around for an answer to this, but haven't found the exact issue I'm seeing.
    I have several Excel spreadsheets which have been working until recently, which use an ODBC call to a remote SQL database. The database is running, remote connections are allowed. The SQL server is in a domain which has no external trusts. Users with accounts
    in this domain can remotely access the SQl databases through ODBC just fine. Users who do not have domain accounts in this domain are being denied access by their domain account, and the SQL authentication is not passed through, even though remote access is
    set to allow "everyone", and the database is set to Windows authentication and SQL authentication. This worked until early this week (the spreadsheet was created in 2010), and I have been looking fruitlessly for a fix ever since. As far as I know,
    no changes were made to group policy on this domain, and no changes were made to the server or database recently, except Microsoft patches. None of the patches this month looked like they would affect this.

    It works locally on the server and remotely for users in the same domain. I am trying to use the SQL account and password to connect to the database, but users from outside this domain fail to reach the SQL database for authentication. It looks like Windows
    authentication is not passing the SQL credentials on if the windows authentication fails. I don't know how to resolve this. The only options in SQL are "Windows authentication and SQL authentication" or "Windows authentication only". The database is already
    set to the first option. Somehow, I need to set the server to allow the SQL authentication even if the Windows authentication fails.
    Hi pkuti01,
    SQL Server mixed mode is "Windows Authentication and SQL Server Authentication", we have to restart SQL Server service after change the authentication to mixed mode.
    In your case, have you got any error message/information if you faild connect to SQL Server via ODBC? If so, please post them to us for further investigation. Furthermore, here is an article regarding steps to troubleshooting SQL connectivity issues for
    your reference. Please see:
    http://blogs.msdn.com/b/sql_protocols/archive/2008/04/30/steps-to-troubleshoot-connectivity-issues.aspx
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • Connecting to a database through a SCA11000

    How does the SCA 11000 handle the web server querying a database through it? Is this an issue? Our Web server queries databases that are on the other side of a firewall.

    This should be transparent to the SCA 11000.

  • Error connecting to Sybase database through WSAD

    In my jsp page I am trying to connect to Sybase database within WSAD.
    Here is my code:
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/AimDB");
    Connection con = ds.getConnection();
    It is giving an error message:
    Error 500: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object.
    On console below error message is coming:
    E SRVE0026E: [Servlet Error]-[Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object.]: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.Exception: Failed security check. Client is not permitted to create connection factory jdbc/AimDB
         at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.createMCFandPM(ConnectionFactoryBuilderImpl.java:1566)
         at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFactoryBuilderImpl.java:1188)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
         at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:884)
         at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1762)
         at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1615)
         at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1525)
         at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1225)
         at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
         at javax.naming.InitialContext.lookup(InitialContext.java:359)
         at org.apache.jsp._Test1._jspService(_Test1.java:89)
    Thanks,
    Vineet

    Hi ,
    Any body have this solution ??? I am using wsad -5.1.2 .When I try to access datasource from test server I got this same problems....
    I tried whatever instructs in above link.But after that I got same problem ....
    Sorry,for bad english
    advance thanks

  • Dial-Up Connection to remote Database through a Form

    Dear Friends,
    I want to call a Dial-up(Windows 95/98)connection through a form.
    Hove can I do it.
    If you have any idea please send me [email protected]
    Thanks and best Regds.
    Thusitha

    Is the SQLPlus that you use on your client machine or on your middle tier. Make sure to try it from the client machine on which JDeveloper is installed.
    If you still find the problem only in JDev it might be a bug, use http://metalink.oracle.com to report it.

  • Connection visual to database

    why my new data base and visual studio connect . its saying my name in correct ,am new at this please help

    Hi Norma,
    If you've already created your database, 
    1) Modify the firewalls rules to enable your VS client to connect (Step 3)
    2) The connection string for your database can be found in the portal.  Click on the "DB" icon, the database you're attempting to connect to, then click "Dashboard" on the ribbon on the top of the screen.  From here click "Show
    connection strings" on the right-hand corner of the screen.
    3) Here is a
    Getting Started VS project that you can use with the connection string information in 2)

Maybe you are looking for