Copying CLOB data from remote database to local database
How can i copy a CLOB data from a remote datbase table to a local database table ?
i have a database link created from my local database to remote database, but looks like i cannot select a clob locator or clob data residing on a remote database through this link ?
is there any way to do this ? anyone has a readily available code for doing this ? i need this very urgently, your help is greatly appreciated!
thanks,
SC.
Is there a local to your pc database ???? Which is the db version of your pc(if there is)....and your server's database?????
Simon
Similar Messages
-
How to copy the data from one database to another database without DB link
Good Day,
I want to copy the data from one database to another database with out DB link but the structure is same in both.
Thanks
NiharYou could use SQL*Plus' COPY command
http://technology.amis.nl/blog/432/little-gold-nugget-sqlplus-copy-command
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/apb.htm#sthref3702
Edited by: Alex Nuijten on Sep 16, 2009 8:13 AM -
Copy all tables and data from remote schema to local schema
Hi,
I am using Oracle 10g Enterprise edition as a database and Windows 7 as the operating system.
My Requirement is to copy all the tables and data from remote machine database to my local machine.
I created a DB link between my location schema and remote machine schema. Database link created successful. Error what i am getting when i am trying to import all the tables from the remote data is as mentioned below
I created a directory gave all the privilege to do read and write on the directory.
Directory name : DUMP
Local Schema name / PASSWORD : PRODUCTION / PRODUCTION
Remote Schema name / Password : portal / m3892!2
When i run this scrip from command prompt
impdp PRODUCTION/PRODUCTION DIRECTORY=DUMP LOGFILE=LOCALPROD_MERUPROD.log network_link=MERU_DEV_LOCAL_PROD schemas=portal remap_schema=portal:PRODUCTION TABLE_EXISTS_ACTION=REPLACE
It is giving me following error please suggest me what is the mistake i couldn't trace
ORA-31631: privileges are required
ORA-39149: cannot link privileged user to non-privileged user
Thanks
SudhirThanks I gave the grant permission for the "portal" remote user. I didn't not get the error. Issue am facing now is I need to copy the entire schema of production to my local system production.
I am currently using the below script to copy. it not working. what might be the reason there is no error message coming but still i don't see any tables in my local system after executing this script
impdp PRODUCTION/PRODUCTION DIRECTORY=DUMP LOGFILE=LOCALPROD_MERUPROD.log network_link=MERU_DEV_LOCAL_PROD schemas=portal remap_schema=portal:PRODUCTION TABLE_EXISTS_ACTION=REPLACE
Or suggest me some other script to copy all the tables and procedure function from remote database to my local database using impdp script
Thanks
Sudhir -
HY000 error retrieving CLOB-data from oracle database via ODBC
Hello,
I get error HY000 [Oracle][ODBC][ORA] ORA-00932: inconsistent datatype when I want to show a CLOB column in my crystal report. The type of the field in the report is memo - in the database it is CLOB.
How to retrieve CLOB-data from an Oracle 11GR2 database via ODBC in Crystal Report Version 12.3.0.601?
Thanks in advance for any help.
kind regards
Monika AnnaHello,
Who's ODBC driver are you using?
Try our DataDirect drivers - https://smpdl.sap-ag.de/~sapidp/012002523100008666562008E/cr_datadirect53_win32.zip
Thank you
Don -
How to Centalize the data from remote database
we have 300-400 databases across remote server.
we want to collect the centralized inforamtion from remote server into centralized oracle database.
1.exporting the centralized data at remote server and
through FTP transfering it to central server and
importing the dump in central database
2.Creating database links and collecting data through
Snapshot
Which is best or Give any suggestion pls
if possible give detail informationHi,
Use Proxies For Your Sender SAP System side and Use the Appropriate Adapter at Receuver side according to the Requirement
Now scenario willl be Proxy-Xi---
Logic:
1) Write the Logic inside the Proxy report to pick the records from the tables
2) And send it to Xi, Xi will routew the data to the third party System based on the adapter you selected
ABAP Proxies Pre-requisites
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
ABAP Client Proxies
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
Regards
Seshagiri -
Extract CLOB data from my database.
Hello, I am in the process of moving our production database to a new Unix Sun Solaris server. I am trying to use exp/imp but one of the tables has a CLOB data field in it and it is taking a very long time to load the data. Can anyone suggest a fast way to import the CLOB data into the new database? I don't think that we will be able to use transportable tablespaces to to os version differences. Thank you.
DavidBy cloning, do you mean at the OS level? Is there any way to extract the data into a flat file? Should transportable tablespaces work?
This is what I have:
Old Server:
SunOS pine 5.9 Generic_118558-09 sun4u sparc SUNW,Sun-Fire-V240
BANNER
Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production
PL/SQL Release 9.2.0.1.0 - Production
CORE 9.2.0.1.0 Production
TNS for Solaris: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - Production
New Server:
SunOS s261924nj2su11 5.9 Generic_122300-07 sun4u sparc SUNW,Sun-Fire-V245
BANNER
Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production
PL/SQL Release 9.2.0.1.0 - Production
CORE 9.2.0.1.0 Production
TNS for Solaris: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - ProductionThank you for your input.
David -
How to copy the Data From Oracle Table To SAP Table
Hi Friends,
We need to copy the data from Oracle Database Table to SAP Table. The data should be updated simultaneously in both tables . Should I write a program that contains the native sql statement like EXEC SQL PERFORMING WRITE,....
I appreciate any suggestions regarding this.
Regards
CSM ReddyHi,
since you posted this question in the DB2 forum I assume that you are using a DB2 database for your SAP system.
To access a table from a legacy ORACLE database you may use the DBSL multiconnect feature. I.e. you open a secondary connecction in the SAP system to your ORALE database. You can then ready the data from the ORACLE database into an ABAP internal table and insert it afterwards into the DB2 table on the main connection.
Another way to access an ORACLE table from a DB2 database is to use the DB2 federated database feature. This requires a little bit more DB2 skill. With this feature you can make the ORACLE table visible within the DB2 database. To copy data you can then simply use a "INSERT ... SELECT" statement.
Regards
Frank -
How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.
If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
This page is a good starting point for learning about Flex and PHP communication:
http://www.adobe.com/devnet/flex/flex_php.html
Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/ -
Getting LONG RAW from remote database
Hi,
I have a table in my local database that has a LONG RAW column . I have another table of similar structure in a remote database (so it has LONG RAW as well). I would like to transfer data including LONG RAW data from the remote database into the local database table using PL/SQL. I know it is not possible to copy LONG RAW over dblink directly. Can anyone suggest an approach to accomplish this?
The local table cannot be changed to BLOB, but I have the flexibility to change the remote table to use BLOB. So, can anyone tell me if the following solution would work. If so, can you shed some light on what PL/SQL libraries to use or can you provide me with some sample code to implement steps 3 and 4 below?:
1. Change the remote table to use BLOB
2. Create a new temporary table with BLOB in the local database.
3. Copy data using PL/SQL from remote BLOB to local temporary table BLOB.
4. Copy data using PL/SQL from BLOB to LONG RAW within the local database from temporary table (w/ BLOB) to the actual target table (w/ LONG RAW).
I think step 3 can be a direct Insert-Select from remote table (I'll try this myself), but not sure how to go about step 4.
Thanks for your help.There is a chapter in the Oracle Application Developer's Guide on calling external procedures
I don't know enough about VB and the available VB APIs to know for sure. I would assume that VB could be configured to generate a DLL with a C call specification. I would also assume that there was a VB API that would allow you to manipulate LONG RAW and BLOB data. Unfortunately, though, I don't know which VB API's have that functionality.
Justin -
JDBC Thin driver doesn't support writing data into remote database via database link
Dear Oracle Guru:
Please confirm: Oracle JDBC thin driver does not support writing data to remote database via database link.
The following errors occur when trying to write data into a remote database via database link through jdbc thin driver:
ORA-03106: fatal two-task communication protocol error
ORA-02063: preceding line from FDBE.PAPDSRAS1
ORA-02063: preceding 2 lines from PA
SQL statement is a prepared statement using a SQL like: insert into mytable@pa (col1,col2) values (?,?).
Thanks.
nullThanks, Dan.
I still think it is a driver problem, because I can do similar things in a stored procedure or in PL/SQL Developer to copy records from a local database table to a remote database table via database link (insert into mytable@pa select * from mytable). The value for distributed_transactions of our database is 10. -
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
aamirOn 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 -
What is te best way to copy a table from a database to another?
Hello friends:
I have two databases: an Access database and an Oracle database. I must copy the data from al tables from the Access database to the oracle database. The tables in the both databases are equal (number of columns, type, etc).
I read an resultset from acces (select * from table1) and I insert every row in the Oracle database with an while loop (while (r.next)...). It works fine when there are a few rows, but I have a table with over 200000 rows, and when I'm copying the row number 30.000, the system goes very slow...
How can I copy tables from a database to another more quickly?
Thanks!CASE #1
The most efficient method would be to copy all the rows from Microsoft Access and write them to a text file using Access's native interface (not JDBC), then use Oracle's SQL Loader utility (not JDBC) to insert the data.
You can insert 200,000 rows of 80 bytes each in 30 seconds or less even on a modest Oracle system using SQL Loader. The extract from Access is very dependent on the size of the CPU and the available memory.
Hint 1: Avoid explicit or implict network traffic.
Hint 2: Extract and load from local drives rather than networked or shared drives on other services
Please note that this is done for efficiency of load, but has issues related to error checking, and operational scripting.
Anything else you do or use will be slower than the method (above).
CASE #2
If you want to integrate this into a single JDBC program which will provide better operational management of the process, then you can simply connect to both databases in your Java program, then read the rows one at a time from Access, insert them using the Batch mechanism of JDBC to Oracle. You will also want to set the FetchSize in Oracle to a larger value then the default (i.e set it to 100 vs 10).
Hint #3 You may want to look into alternative JDBC drivers for accessing MS Access, rather than the JDBC-ODBC bridge which is not optimized for MS Access. You may also want to consider using the OCI8 driver from Oracle rather than the thin driver. Both provide Type 4 functionality but I have heard (not experienced) that the OCI8 driver is better for managing batch style of processing like yours
Good luck!
Joel -
Help needed to insert data from different database
Hi ,
I have a requirement where i need to fetch data from different database through database link .Depending on user request , the dblink needs to change and data from respective table from mentioned datbase has to be fetched and populated .Could i use execute immediate for this, would dblink work within execute immediate .If not , could pls let me know any other approach .What does "the dblink needs to change" mean?
Are you trying to dynamically create database links at run-time? Or to point a query at one of a set of pre-established database links at run-time?
Are you sure that you really need to get the data from the remote database in real time? Could you use materialized views/ Streams/ etc to move the data from the remote databases to the local database? That tends to be far more robust.
Justin -
Copying Table Info From One Database to Another
I am trying to copy data from a database instance on one server to an identical database instance on another server. I have a BC4J application module that I would like to use on both servers. I am relatively new in the BC4J area and would appreciate help from those of you who have done this type of thing before. How do I set up the connections in my client code to accomplish copying the data?
Table may be copied with the
expdp and impdp utilities.
http://www.oracle.com/technology/products/database/utilities/index.html -
How to copy a file from application server to local system
Guys,
Need to copy a file from application server to local system.Is there an FM for the same.
Tried searching for it but couldn't find anything useful.
Code snippets will be highly appreciated.
Warm Regards,
P.
Moderator message: very frequently asked and answered question, obviously you did not search thoroughly, all points removed.
Edited by: Thomas Zloch on Dec 3, 2010 4:48 PMhi,
You can use the transactions CG3Y or through program u can do like this..
DATA: BEGIN OF IT_FILE OCCURS 0,
LINE TYPE STRING,
END OF IT_FILE.
OPEN DATASET <file_name> FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC IS INITIAL.
DO.
READ DATASET<file_name> INTO IT_FILE-LINE.
IF SY-SUBRC = 0.
APPEND IT_FILE.
CLEAR IT_FILE.
ELSE.
EXIT.
ENDIF.
ENDDO.
ENDIF.
CLOSE DATASET <file_name>.
Download it to local system using FM - GUI_DOWNLOAD
Maybe you are looking for
-
We have set up SAML 2.0 to enable sso into peoplesoft (idp is adfs 2.0). On a simple sample web application SAML is working correctly. However when we tried to enable this for one of our Peoplesoft systems we ran into the issue that after the final r
-
Portal favorites open in same window after upgrade
Dear Experts, After upgrade Portal from EP 7.0.1 SP3 TO SP8 KMC Patch 1, we are facing some issues, the issue is, clicking on the favorites link opens the page in the same window. But in the page properties we have mentioned to open in a new window
-
Error while uploading master data attributes thru flat file
while uploading master data attributes thru flat file i am facing the below errow. can nyone let me know plz. Error 8 when compiling the upload program: row 227, message: Data type /BIC/CCDEIO_MAT5_ATTR was found in a new
-
My ipod repeats the same song over and over - how do I get it to play the next song?
My ipod rears the same song over and over - how do I get it to go to the next song on the playlist?
-
Planning calender: Delivery 2 times per per week
Hello, we got an arrangement with one of our vendors. When we order on Monday, Tuesday they will deliver on Friday the same week. Wenn we order on Wednesday, Thursday and Friday the will deliver on the next Tuesday. I tried to solve this by using a p