Linking database

I wish to link my Spatial database to a web page which will be used to search from the database.
What the best(and easiest) language to use to link the two?
Does anyone know where I can find some sample scripts to achieve this?

Simon,
It really depends on exactly how you intend to use the Oracle Spatial features with your web page. There are a number of possible solutions, can you provide more details of your requirements?

Similar Messages

  • Database link create but not fatch data from link database give me this err

    Sir I create database link with this command system create link
    but when I user query then system give me this error you see in blow
    SQL> create database link xyz connect to mfatest identified by mfa786 using 'aamir';
    Database link created.
    SQL> select * from accbal@xyz;
    select * from accbal@xyz
    ERROR at line 1:
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-02068: following severe error from XYZ
    ORA-03113: end-of-file on communication channel
    this is same database but diffrent user
    scott user
    mfatest user
    please give me idea how i fatch data from link database/link other user
    thank
    aamir

    On the machine where you get that error does this work ?
    SQL> connect mfatest/mfa786@aamir
    SQL> select count(*) from accbal;
    If it doesn't, please post tnsnames.ora and sqlnet.ora from local machine, and the result, on remote machine, of
    C:\> lsnrctl services

  • Using the Service Link Database adapter

    I had a question regarding the use of the Service Link database adapter.  We've configured an adapter that will write rows to a certain table in an oracle database.  The rows are written into the table correctly.  I've also configure the inbound portion of the database adapter to retrieve records but there are 2 problems.
    1.  When creating the SQL that is used to poll the database table, I'm not able to use the channel id namespace.  According to the manuals and training materials that I have reviewed, it looks like you should be able to call #channelid# in your query and the system should automatically translate that.  I've tried #channelid#, #channel-id#, and #ChannelID# but if doesn't seem to covert the value to the actual channel ID.  Can you use namespaces in the polling query?
    2.  If I setup the queries without namespaces, I can get into the next step where it excutes the sucessful or failed sql query.  I setup a simple transformation that automatically closes the assocaited task when the query is run.  I then setup a SQL statement to delete all rows in the table (I only did this because I could not target a row without the channelid namepsace working).  The problem is that when I submit a task that uses the agent, the agent polls the database and finds the task.  The agent then closes the asscaited task, per my transformation, but when it goes to delete all rows in the table, the rows are not removed.  If I execute the same SQL using the same account in a SQLPlus window, the rows are deleted so I think that my SQL is good.  I'm not sure why it does not work and the only message in the log is:
    2010-07-08 15:52:23,677 DEBUG [com.newscale.is.adapter.db] [ AgentId-5 ]  Fetched 1 new records
    2010-07-08 15:52:23,804 ERROR [com.newscale.is.adapter.db] Outbound Message Failed to deliever
    This is my SQL:  delete from rcowner.rcapprovals where STATUS_code='Registered'
    Any help or advice is apprecaited.
    Tim

    Hi Tim -
    The namespace that you can use comes from the SELECT SQL statement.  So you need to write out the Channel ID into a field in the db table (you need it around anyway for the transformation).  Then the inbound SQL needs to include the channel ID field in the select statement.  Then the success/failure SQL statements can reference the channel ID field from the inbound SQL.
    Inbound example: SELECT CHANNEL_ID FROM MYTABLE WHERE STATUS = 2
    success example: UPDATE MYTABLE SET STATUS=3 WHERE CHANNEL_ID=#channel_id#
    (Note that it seems to convert field names to all lower case.  And the #channel_id# is just referencing the field from the other query -- it isn't a namespace or anything.)
    Your delete statement probably isn't working because the db connection is still using the records from the inbound query.  Its looping through each record from the inbound query and performing the transformation, then running the success/failrue sql before going onto the next record.

  • Collaboration linked database alias is incorrect...

    but it is not.
    Anyone run into this? My log shows this, note the failed message and subsequent connection is working lines.:
    2010-01-04 10:08:58,845 INFO - Finished Loading Databases
    2010-01-04 10:08:58,860 INFO - Setting Transaction Isolation Level
    2010-01-04 10:08:58,860 INFO - Isolation level is read uncommitted
    2010-01-04 10:08:58,860 INFO - Finished Setting Transaction Isolation Level
    2010-01-04 10:08:58,860 INFO - Testing Database Connections
    2010-01-04 10:08:58,891 INFO - JDBC Driver Version:SQLServer 3.40.6 (012712.007203.008710)
    2010-01-04 10:08:58,891 INFO - Connected to database:collaboration
    2010-01-04 10:08:58,954 INFO - plumdbname.plumdbusername. linked database alias failed failed retrying linked database alias
    2010-01-04 10:08:58,970 INFO - Adding plumdbname.. as linked datbase alias
    2010-01-04 10:08:58,970 INFO - Connection to linked database is working
    2010-01-04 10:08:58,970 INFO - Finished Testing Database Connections
    2010-01-04 10:08:58,970 ERROR - Linked Database Alias is incorrect check database.xml
    2010-01-04 10:08:58,970 ERROR - Collaboration Server failed to start.

    This might be a role grant problem. Is the databasename.dbo set correctly for the collab product?
    If you can repro in a test environment...you could also try these steps below to see if they help. Technical support has also had some experience working on this problem, so you can consider opening a case with them.
    Ryan
    1/ Grant the portal database user Read access to the tables in the Collaboration database by executing the following script against the collaboration database using the collaboration database user:
    install_dir\ptcollab\<version>\sql\<dbtype>\collaboration-server-portal-role-grant.sql script.
    2/ Examine the collaboration views in the Portal database, and verify the table owner. To accomplish this, expand portal database, views, and then look for the <username> in the views:
    <USERNAME>.CSVPORTALGATEWAYDATA
    <USERNAME>.CSVPREFERENCE
    <USERNAME>.CSROLEMEMBERSHIP
    If it is something other than the portal database user (for example DBO instead of the portal db user), then follow these steps:
    * Open the following script: install_dir\ptcollab\<version>\sql\<dbtype>\portal-collaboration-server-data.sql script
    * Search for "collabdbuser" and change this to the user that owns the above views (ie. change to dbo).
    * Run this script against your portal database using the portal database user.
    3/ Run the following script against the portal database using the portal database user:
    install_dir\ptcollab\<version>\sql\<dbtype>\portal-server-portal-role-grant.sql script.
    Note: Some of the above scripts may fail to run with a message that the data already exists. This is okay.

  • Help Needed - Linking databases together

    We are currently developing a new system for a client that uses oracle text to search through a number of columns and uploaded documents (as clobs). We expect that the client will require a high level search that not only goes through columns in this database but a previous database that also includes documents. There is also a chance they might implement oracle drive, therefore documents in here will also be searched through.
    Does anybody have any ideas on what the best solution for this is. I have considered using database links but im unsure if this will be affected by multiple users. Are materialised views an option worth considering.
    Any help regarding this matter will be greatly appreciated.
    Regards
    Kevin Mann

    I really need some help regarding this issue. If anybody has any ideas please post a message.
    Regards
    Kevin Mann

  • Linking database query to datagrid?

    Hi,
    I am trying to to do a query from database and display the
    result to the datagrid. I've heard people is doing it but how does
    it work? Any reference?

    i use java servlets.. the most challenging thing to me when
    starting down this route was figuring out how to dynamically
    configure the grid based on the data. almost every example i came
    across required you to know the columns before receiving the data.
    to create your own columns, you do something like:
    var columNames:Array = [ "id", "name", "address" ];
    var gridCols:Array = [];
    var totalWidth:int = myGrid.width;
    for each( var n:String in columnNames )
    var column = new DataGridColumn();
    column.dataField = n;
    column.width = totalWidth / columnNames.length;
    // set other properties like width, headerText, itemRenderer
    etc
    gridCols.push( column );
    // set the grid columns which forces the redraw
    myGrid.columns = gridCols;
    ./paul

  • Find webtemplate - query link database table

    Hi,
    I need to make an overview of al querys and the webtemplates they are used in. Does anyone know in wich DB table i can find this association?
    Thanks.

    Hi,
    Check the following tables.
    RSRREPDIR for Queries
    RSZWTEMPLATE for Web Templates
    Roy

  • DATABASE LINK from 92060 to 102030 issue

    Hi All,
    Question on Database link:
    Database A -- 10.2.0.3.0
    Database B -- 9.2.0.6.0
    Created database link from 10g to 9i and it works fine as expected.
    I tried from BOTH server and also a CLIENT (SQLPLUS from my PC).
    Created databas elink from 9i to 10g and it works fine on server
    for example:
    SQL> select sysdate from dual ;
    SYSDATE
    10-APR-07
    SQL> select sysdate from dual@<<DBLINKNAME>> ;
    SYSDATE
    10-APR-07
    However, I'm unable to connect using SQLPLUS.
    for example:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    SQL> select sysdate from dual ;
    SYSDATE
    10-APR-07
    SQL> select sysdate from dual@daspnprd ;
    select sysdate from dual@daspnprd
    ERROR at line 1:
    ORA-12154: TNS:could not resolve service name
    Note;
    =====
    NO change in tnsnames.ora or LDAP.. ALL are identical
    Any known issues???
    Please help!!

    Make sure you are resolving with LDAP, (check the sqlnet.ora contents) and not the local tnsnames. Verify the entry at the OID and verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier.

  • ORA-03113 using Database Link

    Asking help Urgently..
    We need to create a DB link from 7.3 to 10g. After initial problems, the DB link is finally established and we can query and do DML on the 10g DB from 7.3. using SQLPLUS.
    Now the problem: We want to create triggers on tables in 7.3 DB to insert the same rows in 10g DB using the DB Link. The moment we create the trigger the connection is dropped with the error: ORA-03113: end-of-file on communication channel. We tried to write the insert statement inside a procedure/function but still the same problem.
    Please help as we are desperate to find a solution for the said problem. The objective is to be able to insert a row in 10g (DB Linked) Database based on a trigger fired in 7.3 Database (Reference DB). Any help will be appreciated.
    Thanks and regards.
    Rajeev.

    I know that 7.x to 10g is not supported officially and should not be used in production environment.
    But in our case, we need it for a short duration (duration of Parallel run) and my query is that, if I am able to do inserts from the SQLPLUS using the said DB Link, then why this cannot be done thru a procedure or a trigger.
    if anyone has an explanation or workaround, it will be great.
    Rajeev.

  • Reference a function in a different schema over a database link?

    I have a database link, DBL, that connects with user GENE/***. I want to select columns from table BOOKS in schema JOE using function UNIFIX, which is defined in schema BRAD. Can I do it?
    I can select without the function:
    SELECT TITLE
    FROM JOE.BOOKS@DBL;
    I tried this syntax:
    SELECT BRAD.UNIFIX(TITLE)
    FROM JOE.BOOKS@DBL;
    But Oracle gives me a ORA-00904. Is there any syntax that will allow me to reference the function in the linked database? Or do I need to define a view in the remote DB that includes the function?

    SELECT brad.unfix@dbl( title )
      FROM joe.books@dblshould work. Assuming, of course, that the Gene user on the remote system has access both the the BOOKS table in the JOE schema and to the UNFIX function in the BRAD schema.
    Justin

  • How to use database link to create table in other database?

    e.g., java jdbc is connected to the database A.
    i want to create one table (Table1)in database B, and then insert data into Table1 select ....from Table2 which is in database A.
    i used the create database link (database name) connect to (database) indentified by .....
    but ...i got the sqlException as i wrote before.
    Thanks again.

    http://forum.java.sun.com/thread.jspa?threadID=656868&messageID=3860293#3860293

  • Database Link makes manipulation slow

    i have oracle 8.5 with developer 6i.
    my application uses two database server and there is a database link between both server.
    when user make a transaction and commit the manipulation procedures post the transaction on local server and on other server through database link.
    but some time it freezes when user press save button and resume after about 5 seconds. and even some time it hangs up for long time.
    is there any solution to get rid of this problem?
    i m working in a client server environment with LAN.
    regards
    adeel

    how much time does it take if you do the same amount of data transaction on sqlplus with the two linked databases?
    The solutions depend on the details of your task.
    e.g.,if data are huge, using the database night cronjob to make the tansactions to the linked one.

  • Linking 2 database in toad

    Hi Pals,
    How to link database 1 to database 2 in toad.
    Thanks in advance

    user633962 wrote:
    Hi Pals,
    How to link database 1 to database 2 in toad.
    Thanks in advanceAs it's mentioned above, you have to create a database link to link two databases. Please read the documentation:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_admin.htm#i1007820
    Kamran Agayev A.
    Oracle ACE
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • Database Link down crashing server

    I have a problem with my server getting a JRun error and
    stopping Coldfusion entirely if a linked database becomes
    unavailable. My database will still be available and as long as
    nothing in the application hits the linked database, my system is
    fine. After several hits to the linked database, the Coldfusion
    server dies and never logs any error. All of the queries are in
    cftry/cfcatch blocks. I am assuming that the database connection is
    timing out because of the linked database being unavailable.
    Is there any other way to catch these errors so I can error
    out without dropping the whole system?
    Web Server:
    CF MX 6.1 updater 2 with database update patches
    Windows Server 2003
    IIS 6.0
    Database Server:
    Oracle 9.4.0.4
    Windows Server 2003
    Thanks

    No solutions, only some thoughts, sorry...
    (are you sure you have the _latest_ database updates? really
    is pretty essential -
    http://www.bpurcell.org/blog/index.cfm?mode=entry&entry=988...
    but anyway...)
    Assuming that you mean that the linked database is done
    within Oracle, so I would see this as a Network/Oracle problem
    really.
    Best bet would be to set up a two simple databases, link to
    one, set datasource to one that contains the link and carry out
    some simple tests.
    Try what paross1 said in a simple controlled environment and
    then if it still breaks, then break it and take a stack dump of
    what is going on in the coldfusion server at the time
    http://www.adobe.com/go/tn_18339
    Bring back what you can and then it might be possible for the
    community to help.

  • The database link contains invalid connection information

    I am working on owb10.1, oracle db 10g release 2
    As i try to create a new module through the New Module Wizard, everything is fine until setting the connection information step. Since this is the first time to create a module, I pick the option "Oracle Data Dictionary" and also create a new database link successfully. After choosing the new database link, when i click the next button, an error occurs
    *"API4006: The database link contains invalid connection information.*
    *API2414: Cannot determine version information for the specified database link.*
    *Check the database link and try again."*
    I could create and test the new database link successfully. but here why I can't choose this db link to do the next step?
    Any thoughts?
    please help me out.
    Thanks

    database link name works well now. i changed the global_name parameter.
    after that i try to create a new db link, but still can't go to the next step and the same error occurs.
    The details of the database link:
    Database Link:    Test
    Owner:     GINO_OWNER
    User Name:     SCOTT
    Connect String:  127.0.0.1:1521:orcl
    Schema:      SCOTT
    any thought?
    Edited by: gino2009 on Nov 20, 2009 6:31 AM

Maybe you are looking for

  • ASA 5510 traffic from inside to outside

    Hello, I'm working on a basic configuration of a 5510 ASA. inside network of 192.168.23.0 /24 outside network 141.0.x.0 /24 config is as follows: interface Ethernet0/0  nameif OUTSIDE  security-level 0  ip address 141.0.x.0 255.255.255.0 interface Et

  • Acro Reader No Longer Opens Media on Internet

    I have a website, www.vincentasl.info, long in operation, that provides access to PDFs containing embedded audio and video clips. It has worked successfully for years, but after a delay during which I did not confirm it operation, I recently noticed

  • Sound Audigy 2.....Microphone option is not showing up in Surround Mixer!!!!

    I just updated the Sound Card Driver and when I finished with it and restarted my computer. It reset all my settings in Surround Mixer. I got them back to where i had them but not I can't get my microphone option back. I can only get What U Hear. The

  • Organizing songs in ZEN just as

    Hi there, hopefully someone can help me I have a Zen Sleek, and the problem is organizing the songs the way they are viewed in windows media player: Whenever I select an artist, albums by that artist appears. I can then choose the album and the next

  • Trouble Pre-ording

    Hi, I'm currently trying to pre-order the album EndGame by Rise Against, but every time I try to it pops up with three different messages. Note I have already purchased their single "Architects". The three messages are as follows: 1) *Are you sure yo