How to query a distant database without using db link in pl/sql

Hi
I have two different distantly located databases say d1,d2
There is a table dept which had deptno (primary key),department name as columns .
I need to query database d2 on the basis of the deptno present in database d1.
In database d2 , there are some tables which have columns as deptno.
I cannot use DB link .
Is there any other method that I can use from Pl/sql ?
Is it possible thru XML ?
PLs let me know in details .
regards
SHUBH

You need to have an Oracle Apache Server installed. It can be on any platform that has connectivity to the Oracle Server. Preferably on the same server as Oracle itself.
The Apache Server is installed in its ORACLE_HOME/Apache/Apache. It should have been configured by the installer. All you need to do is to create a DaD (Database Access Descriptor) for MOD_PLSQL. This is a custom Apache Module that provides direct access to PL/SQL via OCI. DaDs are defined in the ORACLE_HOME/Apache/modplsql/conf directory. There are README files, sample files and a dads.conf file in which you need to define a URL to assign as the service for your database, the Oracle username and password to use to logon, and the database connection details (e.g. TNS alias).
The Apache Server needs to be restarted for the changes to take effect (using either opmnctl or apachectl).
Let's say the URL path defined is /mydatabase. When Apache receives a URL that starts with /mydatabase, it passes it to MOD_PLSQL. MOD_PLSQL looks in the dads.conf for the database to connect to. The rest of the URL contains the PL/SQL package or function to call, e.g.
/mydocuments/scott.p123.procABC&emp_id=123
Where procedure procABC is called in packahe p123 in the Scott Schema. The variable EMP_ID is passed with value 123. Thus the procABC definition will look as follows in the package:
procedure procABC( emp_id number ) is
begin
  .. code..
end.;This proc can write HTML data - i.e. dynamically create a HTML response page. Or it can create an image or any other Mime type that the browser can handle.
Oracle provides a bunch of PL/SQL packages for that. E.g. HTP and OWA packages.
This in a nutshell is how MOD_PLSQL is used to allow a web browser URL to be passed directly to a PL/SQL procedure.
The details are under Oracle Application Server PL/SQL (http://download-west.oracle.com/docs/cd/B14099_12/web.htm). Two manuals are applicable:
* mod_plsql User's Guide
* Web Toolkit Reference
It is not complex to use. In fact, the easiest to get all this going is to install HTMLDB 2. Download the Oracle 10G Companion CD for your platform (even if you're running 9.2). Install HTMLDB (this will be in a seperate ORACLE_HOME and will not touch your existing Oracle installation). This will install the latest Apache and MOD_PLSQL software from Oracle. Also HTMLDB is built entirely on MOD_PLSQL and with PL/SQL procedures - and serves as Microsof Access type web interface for developing and deploying web applications on Oracle using PL/SQL. Very powerful and flexible and very easy to use.

Similar Messages

  • Connecting to remote database without using db links

    Referred Thread:
    Re: Remote DB connection without DB link
    In reference to the thread above, my question goes like this:
    Let's say I want to run a query from a database and use data from another database. I have the user, password, SID and port number of the other database but do not want to create a separate connection using sqlplus or connect commands.
    Something like this:
    SQL> show user
    USER is "A"
    SQL> select a.col1, b.col2 from tab1 a, tab2@????? where <some condition>;
    Can this connection be done on the fly ?? I agree that a DB link will do the trick, but let's say I am not supposed to create objects on the other database.

    You need two sets of privs on the remote database to view data in that database schema:
    - create session (the schema must allow client connections to create schema sessions)
    - select on other schema tables whose contents to view
    You need a single priv on the local database, to connect to that remote schema on the other database:
    - create database link
    You also need the following in order to create the db link:
    - the remote schema name and password
    - IP address or hostname of the remote db server
    - the remote Listener's tcp endpoint port
    - the name of the remote database (SID, instance or service name)
    If you do not have these privs, you cannot use/access the remote database from the local database session via a database link.
    Other alternative methods needs additional privileges and objects on both the remote and local database sides - and are more complex (e.g. using web services, using web-enabled procedures, etc).

  • How to create logical standby database without using Oracle Grid Control

    Hi All,
    I want to create Logical standby database on 11gr2 on RHEL 5 without using oracle Grid Control.
    I already have a primary database as well as physical standby database.
    What i want to create a logical standby database as well on the same machine where physical standby database is running.
    So anyone of you help me out to do that
    Thanks in advance

    Hi,
    Creating a Logical Standby Database
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#SBYDB00300
    Regards,
    Tom

  • How to call a specific page without using a link

    Hi there ,
    I am using Jdeveloper Studio Edition Version 11.1.1.1.0 , ADF BC.
    Here is the question: I’d like to find a way to call a page using a text input as an alternative way to use the menu hierarchy.
    That is, On the main page I have a text Input; assuming that each page is assigned to a specific code the following would be the scenario:
    The user enters the code in the text Input and after form submission, the prospective page would be appeared.
    Best Regards,
    Yasaman Parandian
    P.S: Regarding security issues; I am so looking for a solution in which JHS_ tables are used.

    Yasaman,
    Your question is not related to JHeadstart but requires general ADF Faces and ADF Taskflow skills.
    Please use the JDeveloper forum for your question. Once, you got it to work by manually changing a generated page, this forum can help you with using custom templates to keep your page generatable.
    Steven Davelaar,
    JHeadstart team.

  • How to delete/drop all the tables from SQL Server Database without using Enterprise Manager?

    How to delete/drop all the tables from SQL Server Database without using Enterprise Manager?
    I tried using DROP Tables, Truncate Database, Delete and many more but it is not working.  I want to delete all tables using Query Analyzer, i.e. through SQL Query.
    Please help me out in this concern.
    Nishith Shah

    Informative thread indeed. Wish I saw it early enough. Managed to come up with the code below before I saw this thread.
    declare @TTName Table
    (TableSchemaTableName
    varchar
    (500),
    [status] int
    default 0);
    with AvailableTables
    (TableSchemaTableName)
    as
    (select
    QUOTENAME(TABLE_SCHEMA)
    +
    +
    QUOTENAME(TABLE_NAME)
    from
    INFORMATION_SCHEMA.TABLES)
    insert into @TTName
    (TableSchemaTableName)
    select *
    from AvailableTables
    declare @TableSchemaTableName varchar
    (500)
    declare @sqlstatement nvarchar
    (1000)
    while 1=1
    begin
    set @sqlstatement
    =
    'DROP TABLE '
    + @TableSchemaTableName
    exec
    sp_executeSQL
    @sqlstatement
    print
    'Dropped Table : '
    + @TableSchemaTableName
    update @TTName
    set [status]
    = 1
    where TableSchemaTableName
    = @TableSchemaTableName
    if
    (select
    count([Status])
    from @TTName
    where [Status]
    = 0)
    = 0
    break
    end

  • Elements 11 vs 13: how can I add a new place tag to my PSE13 database without using the wretched and totally inadequate map technology  that Elements 13 wants to impose.

    HI,
    I have recently installed Elements 13 having used Elements 11.0 successfully to build a database of 30,000 plus images indexed by place, people, and photo date. Elements 11 allowed me to add new places which are meaningful to me but which are a complete mystery to the mapping technology of Elements 13. For example some years ago I lived in London in a road called Argyle Road. In elements 11 I could enter the place tag as Argyle Road. In Elements 13 I am required to locate Argyle Road on the map, but the map presupposes that the Argyle Road I am referring to is in Ealing in West London. It is not!
      I now live in a place called Broadsands but the Elements 13 Map places this 0.5 miles away from what I would describe as Broadsands.
      So the question: how can I add a new place tag to my database without using the wretched and totally inadequate map technology  that Elements 13 wants to impose.

    Thank you for your quick response, BalusC. I really appreciate your answer.
    Yes, you are right. If I manually code the same amount of those components in the JSF pages instead of generating them dynamically, the server will still run out of memory. That is to say, JSF pages might not accommodate a great deal of concurrent visiting. If I upgrade the server to just allow 1,000 teachers making their own test papers at the same time, but when over 2,000 students take the same questionnaire simultaneously, the server will need another upgrading. So I have to do what you have told me, using JS+DOM instead of upgrading the server endlessly.
    Best Regards, Ailsa

  • How to create physical standby database without dataguard

    Hi,
    Can anyone please help me how to create Physical Standby Database without dataguard. As i am using Oracle 10.2.0.1 Standard Edition for production databases.
    Please find the specifications of my server :
    Database : Oracle 10.2.0.1(Standard Edition)
    Server : Linux 4.0(32 bit machine)
    As we know that Dataguard cannot be created in Standard Edition as we dont have that option in this edition. So please help me how to create the physical standby database.
    Thanks in advance.
    Regards,
    Farooq

    Hello,
    I hope this link helps you out...
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rcmbackp.htm
    http://www.dbasupport.com/oracle/ora10g/manual_standby.shtml
    Thanks & Regards
    Pratik Lakhpatwala
    Jr Oracle DBA
    Edited by: Pratik.L on Dec 31, 2009 12:03 PM

  • How can I know the database is using Cost Based or Rule Based?

    Hi all expertise,
    How can I know the database is using Cost Based or Rule Based?
    If cost based it is using, what methods are need to use to minimize the cost when database is running? And which tables I can see the performance of the database?
    Thanks
    Amy

    how to see database setting ?
    use this
    SQL> sho parameter optimizer
    NAME TYPE VALUE
    optimizer_dynamic_sampling integer 1
    optimizer_features_enable string 9.2.0
    optimizer_index_caching integer 0
    optimizer_index_cost_adj integer 100
    optimizer_max_permutations integer 2000
    optimizer_mode string CHOOSE
    choose means if table statistics is available then it will use cost
    else
    use rule based optimizer
    for seeing performnace of table use
    set autotrace on
    and run your query
    if it doen't show cost.it means it use rule based
    for using cost based
    u will calculate table statistics
    9i
    dbms_stats.gather_table_stats('owner','table');
    8i
    analyze table <table_name> compute statistics;
    hope it will help you
    kuljeet pal singh

  • I want to download an audiobook, but my daughter has a giftcard credit on the account. How can I download my audiobook without using the money from her giftcard?

    I want to download an audiobook, but my daughter has a gift card on the account.  How can I download my audiobook without using the money from her gift card?

    go directly to your ibook app. and you're going to find it. it's only with ibooks app.
    best
    Olivier
    <Edited by Host>

  • How can I track my iPod without using an app ?

    Hey I lost my iPod touch in school and I think one of my classmates took it how do I track it down without using an app ?

    The only way to track it at all is to first have enabled an iCloud account on it before it was lost, with the find my iPod setting in that account's setting panel set to "ON".
    If that was done, you can log in to your iCloud account in a web browser and you can try to track it.  It must be on, and it must have an active wifi data connection to be trackable.
    Without an iCloud account already on it though, there is no way to track it.

  • I have an apple emac powerpc G4 which is running 10.3.9 software. I downloaded the 10.5 leopard software. Does anyone know how to install the 10.5 without using the dvd installer? In dummy terms please?

    If any one could help me with this. i'd be enternally grateful as i'm getting nowhere on my own!
    I have an apple emac powerpc G4 which is running 10.3.9 software. I downloaded the 10.5 leopard software. Does anyone know how to install the 10.5 without using the dvd installer? In dummy terms please

    The only way to get 10.5 is to purchase it on CD. Such as http://www.amazon.com/Mac-OS-Leopard-10-5-10-51/dp/B0012RAVRC where is being sold for $179.99.
    If your optical drive is broken, you will either need to replace it or get an external. There is no other way.
    Why do wish to upgrade? As you can see it is going to be expensive, probably more the Mac is worth.
    Allan

  • How to create an apple id without using credit card

    how to create an apple id without using credit card.. i have recently purchased apple iphone 3gs bt unable to get apps because of giving credit card info which i dnt hav.. so plz tel me some way to process..

    To get the none option, sign out of anything apple you're signed into. Go to the app store and try to download a free app, any free app. Instead of signing in, take the option to to make a new apple ID. Then go through the steps to make the ID and you'll see the 'none' option.

  • How can I start windows 8 without useing my password

    how can I start windows 8 without useing my password

    Hi,
    Review the information posted in this thread.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • How do I restart a process without using a loop?

    Hi,
    How can I restart a process without using the While action from the palette?
    The Wait action from the palette doesn't seem to do that.
    I simply want to restart a process after testing a condition in the Switch action.
    Thanks,
    Alexandru

    Hi,
    You can use the replay feature. Look at the BPEL references under the samples directory.
    hth,
    ~ronen

  • How to Start process in ProcessChain Without using Repeat option?

    How to Start process in ProcessChain Without using Repeat option?

    Se16 -- table:RSPCPROCESSLOG - click on display entries.
    Entet the variant, instance start date (this info you can get from the "display message" of PC.
    Now execute to display the table entries of RSPCPROCESSLOG.
    Next goto SE37 transaction --enter RSPC_PROCESS_FINISH
    Take the entries from the above table to set the input parameters of the FM.
    I_logid = log_id(from above table)
    I_type = type(from above table)
    i_variant = varaint (from above table)
    i_instance = (from above table)
    Click on F8(EXECUTE)
    now the actual process is set to gree and the process chain will be triggered (rest of the PC with out repeating the step from where is was red).

Maybe you are looking for

  • Monitor no longer sleeping after 10.8.2 & Mac Mini EFI update

    Hopefully someone can help out here, my new 2012 Mac Mini was running fine without any problems, then when I installed the 10.8.2 update (not the original update that got pulled from the Apple site but the newer version) with the EFI Mac Mini firmwar

  • Cannot select text on a self-made pdf from scan

    I have Reader 9.5.2 on a Mac G4 with OS 10.4.11. I scanned a page of a C18 German book printed in the old Gothic script and converted the scan to pdf. So this is not a case of permissions in a pdf document received from someone else. I want to conver

  • Pages vs Word

    I bought word when I got my MacBoook and when I get my iPad I am looking to get office on it. But I see pages is available on it. Is pages worth the price for both? What will I gain over word or what would I loose over word?

  • Imap mail sent from my iphone does not show up in the sent folder on my desktop

    imap mail sent from my iphone or ipad does not show up in the sent folder on my desktop

  • Excise for Non-Po items (Samples)

    Hi all, Our client wants to map the following scenario in SAP: The client receives the Samples for R&D purpose from the Vendor for which no Purchase Order is created. In SAP this is done as Non-PO purchase against the Cost center as there is no Mater