Multiple database handling through Forms4.5 D2K
Hi,
Is it possible to connect to multiple ORACLE servers from one form (application is on D2k forms 4.5 )at the same time without having a DB-LINK. If so then how ?
Hi Gerry,
Create a view by joining the three tables and have the base table
of the block as the view. This will allow you to show only the
necessary items.
Regards,
Anandh
CV (guest) wrote:
: Hi Gerry,
: Try moving the items of the link table to a different
: canvas and make all the items not navigable. You can then
: navigate to the address block straight from the customer block.
: Hope this helps.
: CV.
: Gerry Cameron (guest) wrote:
: : I am using Forms4.5, to develop a customer search screen,
which
: : brings back the address of the customer. However the database
: : itself returns this information, from three seperate tables.
: : i.e. customer_name table, link_table (this links cust_id to
: : address), address_table.
: : The problem I have, is that I do not want the link table to
be
: : visable on the form, however, if I leave it off, the form
will
: : not bring back the address, saying it doesn't recognise the
: join
: : condition. I have tried to hide the link_table information,
by
: : drawing a rectangle over the top of it, however this does not
: : hide the information.
: : Can anyone tell me how to solve this problem, either by using
: : multiple forms, or by, being able to put all the info on a
: : single form (preferable).
: : Thanks
null
Similar Messages
-
Handling multiple database with 10g CONSOLE
Hello list,
How do we handle multiple databases with 10g Enterprise Console?
We are running Oracle 10.1.0.2.0 on Windows 2003 server. I have one database setup but I need to install more databases and am having difficulty accessing and managing the second database. thanks for your input.may be you can try the following:
1) create a file named new_target.xml with the following:
<Target TYPE="oracle_database" NAME="DBAPV9.WORLD" DISPLAY_NAME="DBAPV9">
<Property NAME="OracleHome" VALUE="/opt/oracle/app/oraadm9i/product/9.2.0.4"/>
<Property NAME="UserName" VALUE="sys" ENCRYPTED="FALSE"/>
<Property NAME="password" VALUE="thepassword" ENCRYPTED="FALSE"/>
<Property NAME="Role" VALUE="sysdba"/>
<Property NAME="MachineName" VALUE="machine.domain"/>
<Property NAME="Port" VALUE="1521"/>
<Property NAME="SID" VALUE="DBAPV9"/>
</Target>
replace as appropriate
2) Execute emctl config agent addtarget new_target.xml
3) Execute emctl stop dbconsole
4) Execute emctl start dbconsole -
Database Connection through Event Handler
Hi,
i wanted oim database connection through post event handlers . Any idea how to achieve this.
Thanks In Advance
Swati PandeyGot the solution.
- Swati Pandey -
SELECT query from multiple databases
Hi,
Is it possible to run a SELECT query using multiple DBs' tables, like outer joining them. One of the DBs is Sybase.
Thanks in advanceA TopLink session can span multiple databases if they can be accessed through a single connection. A single select would require the database to handle the aggregation as mentioned in the other post.
Alternatively TopLink's session broker will support making a single session present persistent types from multiple independent databases. This approach will not support a single SELECT spanning the databases though.
Doug -
Multiple databases in one file: a small snafu
Hello everyone,
Opening multiple databases in a single file is an administrative convenience. It is well explained in the manual (see db/docs/ref/am/opensub.html). Normally, there is little difference between databases in their own physical files or grouped together in a single physical file. There is one small sentence in the manual that says the following:
(begin fragment)
However, since multiple databases in a file exist in a single physical file, opening two databases in the same file simultaneously requires locking be enabled unless all of the handles are read-only. As the locks for the two databases can only conflict during page allocation, this additional locking is unlikely to affect performance.
(end fragment).
I didn't pay attention to it, except the "unlikely to affect performance" part which told me that I wasn't to worry about it. The sun was shining. Life was good.
And I was wrong. It was one of those "epic bug quests" I had to embark on, only to realise that it may not be a BDB bug, but my carelessnes. Nevertheless, I'm left with an uneasy feeling which I would like to explain here.
Consider BDB configured as a concurrent data store.
There are 2 threads. The first thread has the following pseudocode:
cursor1 = db1->cursor(...)
while(cursor1->c_get(... DB_NEXT...))
// 1
cursor2 = db2->cursor(...)
while(cursor2->c_get(... DB_NEXT...))
The second thread does only the following:
db3->put(...)
db1, db2 and db3 are all distinct databases. All cursors are read-only (the cursor implicitly used in db3->put is of course a write cursor).
While the first thread is running, the second thread executes db3->put(...) at "//1".
Question: what happens?
Answer 1: if db1, db2 and db3 reside in different physical files, nothing special happens. Everything proceeds as it should.
Answer 2: if db1, db2 and db3 reside in the same physical file, both threads block "sometimes".
The "sometimes" used here means "when the put operation in thread 2 needs to allocate a new page".
Reading the BDB source code is extraordinarily difficult (which says more about my limitations than about the clarity of the code) but here is what happens, as far as I could determine:
(thread 1) cursor1 needs and acquires a read lock on db1
(thread 2) db3->put needs a write lock on db2 to allocate a new page. Since db2 is in the same physical file as db1 and thread 1 already has a read lock, thread 2 waits until the read lock is released. Thread 2 blocks.
(thread 1) cursor 2 needs a read lock on db3. For some reason, BDB detects that the another thread is waiting for a write lock on the physical file, and thread 1 blocks.
Both threads block waiting on each other to complete.
I suppose the system is the way it is to avoid starvation, but there you have it: be careful when you're lumping together multiple databases in one file!
Anyone who can clarify or confirm this is welcome.
VincentI had experienced a similar problem. I run multiple process. Each one of them starts a transaction that does db->put and db->pget to its own database (which also has a secondary index). When each database is in a separate physical file there is no problem but when I put all databases in a single file the processes start to dead-lock.
The following combination of options solved the deadlocking problem:
- use serializable isolation level instead of snapshot, i.e. do not pass DB_TXN_SNAPSHOT to txn_begin
- do not pass the DB_NO_WAIT option to txn_begin
- use Btree instead of a Hash
Hope that helps. -
Multiple Database Servers Question
Hi,
Please forgive this ignorant question, but can someone tell
me how one would go about using multiple database servers?
Just as there comes a time where one would need more than
one web server and would need to use a load balancing
solution, what happens when one would need more than one
Database Server?
How does one go about implementing that solution?
Is there some way to have two database servers carrying the
same information with some kind of load balancing solution
in front of it(?) or does one place some tables on one
Database
server, and other tables on the other database server?
(I have no clue as to how things would work.)
Thanks in advance,
JoeMicrosoft SQL allows for clustering of SQL databases, so for
instance two servers connected to a fileshare and a virtual address
shared across the two physical boxes. Database connections are made
to the virtual addres which will then be handled by the active
node. Becuase a database is ultimately a file(s) on a disk it can
only be attached to one node at a time so you end up with an
active/inactive cluster. -
Multiple database in the same ADF application
In my application I have to access a legacy database, in addition to the main database. How do I handle multiple database connections. Do I need to manage the JDBC connection to the legacy database myself.
PranabUse an AM for each dataconnection and then share the AMs so then can see each others datamodels.
Or you can use jdbc in your code to access the databases.
If would be nice if the adf had a way to connect to any data source set up in the configuration and app server on the fly. -
Multiple database updates vesus Tansaction
Hi,
I need some help from you great minds. Here us what I am trying to accomplish:
I have a message driven bean which does a multiple update calls to an Oracle database.
I want to commit all the db updates only at the end (after all update calls execute
okay) and if there occurs any problem in any of the update calls, I want to rollback
all the previously successful update calls I have already made. I am using container
managed transaction via a mdb.
I tried to use UserTransaciom.setRollbackOnly() call but that did not completely
help. This call rolled back the message altogether. All I wanted to do is, if
there occurs any error during a database update, rollback just the database changes
and just throw away the message. Is there a way I can just rollback the database
changes? Any suggestions?? please. Thanks
If I understand correctly what you want to do, is the purpose to do some task or run some script in multiple databases on the same server?
If so, this is done easily by listing the database (sids) in a file and reading the file in a loop statement.
In my case, I simply create a file on the server called localsids. I keep this in /var/opt/oracle directory.
Then, in my script, I set:
SIDFILE='/var/opt/oracle/localsids'
NEWPASS=`cat $HOME/.xlh/sys`
# This loop reads through the 'sidlist' and then looks for a password
# stored in a separate directory for each sid, but if individual
# directories do not exist, then it uses the standard system password.
# It then opens a sqlplus session for each sid (as it loops through the
# sidfile and executes some sql statement(s), or executes a sql script.
cat $SIDFILE | while read SID
do
ORACLE_SID=$SID
export ORACLE_SID
echo $SID # this is only for my own verbose purposes
sqlplus -s system/manager@$SID <<EOF > /tmp/chg_passwd_${SID}.sql
alter user system identified by $NEWPASS
alter user sys identified by $NEWPASS
EOF
done
exit
# In the above example, i am changing the sys and system passwords for all databases listed in the localsids file.
Hope this helps...
ji li
Message was edited by: ji li to simplify the example...
I have simplified the above example to hardcode the system password into this script, however, normally I would never do this in real practice. This is just as an example to simplify how to run a loop to run a common script or sql statement in each database. -
Using Single Datasource to Access Multiple Databases
Hi,
We would like to know the pros and cons of accessing multiple
databases through a single datasource, versus accessing each
database through its own datasource. Our environment includes
multiple web servers w/ the latest version of ColdFusion MX 7,
clustered through a load balancer. Each web server has 800+ dsns
pointing to different SQL databases on the same SQL server. We have
noticed that the ColdFusion administrator is taking a long time to
display or verify all datasources and sometimes it even times out.
Another problem is that sometimes the neo-query file gets corrupted
(for unknown reasons) which results in the deletion of one, or
more, or all datasources on the web server.
Because of the issues above we are researching the
possibility of removing most of the datasources, and then accessing
each database through a single bridge datasource. In that regard we
plan to change our queries by inserting the sql db name and user in
front of each table in the query such as:
<cfquery name="query" datasource="single_dsn_name">
select * from [#dbname#].dbo.tableName
</cfquery>
In the example above, obviously #dbname# would be a variable
that will hold the name of the requested database. The code above
would similarly apply to queries using, update, insert and join
words.
Are there any limitations or negatives from scalability,
performance, and reliability perspective in implementing the above
scenario versus having one datasource for each database.
Also, if there is a better way of accomplishing this, we
would love to hear about it.Here is my opinion, because I work with both schemas. The
main advantage to use one datasource for all DBs in a SQL Server is
the simplicity of administration.
But the main disadvantage is security, because you are using
a single user to access all DB in a server, you don't have
isolation, and a user that knows your schema can access data of
other DBs that he sould not be authorized.
Another issue is is a user must access 2 differents DB with
different permissions (a DB only read and the other read/write),
you'll have to create another datasource, user, etc for it.
But the decision depends in the enviroment. If you are a
hosting company, I would use 1 datasource for user or DB. If the
servers and DBs are of the same company, I could use one datasource
for each SQL server.
Best regards -
Outer joins across multiple databases
I'm trying to join three tables: 2 from data warehouse and 1 from Siebel database in OBIEE. I create the physical and logical joins (no errors or warnings). The model looks like this: Account Address (table 1) -> Account (table 2) -> Siebel Customer Data (table 3)
I create two queries in Answers:
(1) Account.Number and Siebel.Address (the query works)
(2) Account Address.Zip, Account.Number, and Siebel.Address (the query gets the following error):
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42019] Join condition, D901.c3 <> 0, contains predicates that are currently not supported for outer joins across multiple databases. (HY000)
Can someone help me understand why the join between the two databases works for the first query but when I add a second table it fails?
thanks...Either you can link the Oracle DB into Access (by using File/Get External Data/Link Tables)
or you have to simulate the join in Java by doing two separate queries and looping through the results. -
Can we join Multiple Databases tables in PRD File ?
Hi ,
I am working on POC project and trying to Join Multiple Databases to create one rpd file . Lets say I have complete SH schema from Oracle and I want couple of tables (Time and Products) tables from Sybase .
I want bring sybase TIME and Product tables into Oracle SH Schema and create joins in physical layer. When I try to do it, it is throughing an error .. Am I missing some thing here ?
Is it possible?
Thanks
ShivajiYou have not mentioned what is the error!!!
we can create join b/w the tables of different databases
You need to select the table from one database and aswell as other table in other database and
right click > physical join > selected tables only...
This is the way of creating physical joins... or else you select both the databases and select physical joins...
It's better that you mention what is the error you are getting..??
Thanks & Regards
Kishore Guggilla -
Auditing DML actions on multiple databases
I am using Oracle 10g Database on Solaris .
I need to audit the complete DML statement issued on a table which exists in multiple schemas(same name with different data from other schemas) in multiple databases ie Consider the table ito be audited is "TAB_A" . This table exists in multiple schemas "USER_A", "USER_B" but as said before only the name remains the same but data is different so they are two different tables. Also there are many databases "DB_A" , "DB_B" which have that table .
There is a master database which collects information from all these databases through database links . Now this database has a table which gets updated with a username, schema name and database name once a new user is created on the databases DB_A and DB_B . So is there any way I can use this info and automate the auditing so that the DBMS_FGA.ADD_POLICY procedure gets fired when a new user say USER_C is created ? This will not involve any manual involvement in running DBMS_FGA.ADD_POLICY procedure for USER_C.TAB_Aauditing will be enabled on a specific table which exists in some schemas eg : TAB_A . So the table name along with schema name would be USER_A.TAB_A and USER_B.TAB_A . think so now it is clear
now the master database contains information about the username , database name . so from this information I should create dbms_fga policy on each database . The table name is constant so it shouldn't be a problem . The point is if a new user is created in any of the databases the policy should be automatically created from the master database without any manual interruption.
This is what i am trying to do ... let me know if this is possible ? -
how to creation and monitoring multiple databases in one linux box
user12236725 wrote:
hi
thanks for the reply.
but i am not able to monitor multiple database,but one sid at a time.
i need to monitor multiple database at a time using OEM or through SQL
please help me out and let me know the procedureIdeally you would install and use Grid Control.
But you can also have multiple databases on one host, each with it's own configuration of dbcontrol. You have to make sure ORACLE_SID is properly set when you run emca to create the dbcontrol and when you run emctl to start the dbconsole. Each instance of dbconsole will run on a different port that you have to include in the url when you try to acess it through your browser. The correct url (with port) is reported at dbcontrol creation, and at dbconsole startup. -
Hi friends,
I am working for the HR dept of a big company and our
group will implement some enviornment to present HR reports for the leadership through web interface.
I have checked the Oracle 9iAS page and it seems it is
a pretty nice tool. The reports service is very impressive. We mainly use Java/JSP to do the project,so
this Oracle9i can fit our development team. One of
the problem is that we have multiple databases running
on different machines,including Oracle 7, Oracle 8i and
SQL Server 2000. So, one of the requirements is to query
multiple databases of different verdors.
So my question is:
can Oracle9i AS (especially the reports service) do this
multiple database query? I know with pl/sql, we can create
database link to do this query, but can we do it in
reports tools?Yes you can do Even in the reports.
-
Application that connects to multiple databases.
I am developing an application that performs many task, but one in particular is connecting to multiple databases and creating user accounts in each all with the push of a single button. I have tried putting connect statements in the trigger code but I don't get the desired results.
How would I get my application to switch database connections while in execution?
Please reply to the forum, or email me @ [email protected]
Thank you.
TravisHi
The only possible way which I could find for your requirement is that of DB Links. Establish DataBase Links among the multible databases, with which you want to work in one session. Peform all your actions through the DB Links.
Maybe you are looking for
-
I am trying to delete images from Ipod that are under albums. I have no problem deleting pictures from camera roll but the ipod albums as they do not show up when I open Itunes. I not even sure how they got on my ipod.
-
Im new to Firefox. Just found out the website Im maintaining does not display correctly with Firefox but OK with Win IE. Why is this? == This happened == Every time Firefox opened
-
Want to use current date in LSMW.
Hi all, I want to give a current date in lsmw when we use. How can I map field so I can use sy-datum.
-
Hi all, I new to this forum and I have somethings to ask :) 1/ I figured out that on a 64K color device, the bpp (bits per pixel) is 16 and on a 256K color device, the bpp is 18. Is that right? 2/ Could anyone please tell me how much memory does an i
-
When I had my PDA, I used a nifty prog called Pocket-DVD Studio to rip and encode full DVD's and encode them suitable to playback on my PDA. IIRC the output files were .avi format. Would these files play back on my N-95 8Gb phone? If not could someon