- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: export with query
Operating System - HP-UX
1753872
Members
7387
Online
108809
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2002 08:49 PM
тАО06-10-2002 08:49 PM
Hi All!
I need to insert into database in specific schema, some data from other instance with the same schema name. Can anyone help me with script? Like:
Insert into SCHEMAPROD.PFUNFPTO@produc
select *
from SCHEMAPROD.PFUNFPTO@devel
Where fnd = '000000000002009';
It is correct? I can use dblink?
Thanx.
I need to insert into database in specific schema, some data from other instance with the same schema name. Can anyone help me with script? Like:
Insert into SCHEMAPROD.PFUNFPTO@produc
select *
from SCHEMAPROD.PFUNFPTO@devel
Where fnd = '000000000002009';
It is correct? I can use dblink?
Thanx.
We are spirits in the material world
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2002 04:17 AM
тАО06-11-2002 04:17 AM
Re: export with query
Hi,
What you have should do the trick, if the tables already exist in both databases. DBlink is fine if you want to do this for a couple of tables. If you plan on doing this for a lot of tables, then export/import may be the way forward.
Rgds,
Kawah
What you have should do the trick, if the tables already exist in both databases. DBlink is fine if you want to do this for a couple of tables. If you plan on doing this for a lot of tables, then export/import may be the way forward.
Rgds,
Kawah
If in doubt, ask!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2002 05:32 AM
тАО06-11-2002 05:32 AM
Solution
Just to note, you do not need the @database for the table on the database you are actually connected to.
For example if you are logged into schema@proddb and want to get data from schema@devldb then you can:
insert into schema.table
select * from schema.table@devldb
where field = value;
For example if you are logged into schema@proddb and want to get data from schema@devldb then you can:
insert into schema.table
select * from schema.table@devldb
where field = value;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2002 05:40 AM
тАО06-11-2002 05:40 AM
Re: export with query
Hi,
On the PRODUC database:
create public database link
connect to identified by "" using ''
/
Connect to the SCHEMAPROD schema on the PRODUC database. Use the following if the tables already exist:
Insert into PFUNFPTO
select * from PFUNFPTO@devel
Where fnd = '000000000002009'
/
If the database link is created correctly, that is all that is required.
Rgds,
Kawah
On the PRODUC database:
create public database link
connect to
/
Connect to the SCHEMAPROD schema on the PRODUC database. Use the following if the tables already exist:
Insert into PFUNFPTO
select * from PFUNFPTO@devel
Where fnd = '000000000002009'
/
If the database link is created correctly, that is all that is required.
Rgds,
Kawah
If in doubt, ask!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP