Solved

ORA-01010: Invalid OCI operation

Posted on 2006-10-28
5
2,181 Views
Last Modified: 2008-02-26
Hello:

I am trying to copy a dump (binary) file to oracle 9.2.0.1.0 from 10.2.0.1.0 Oracle database, under Windows XP operating system.

I have created a directory "Source_Id" on local (10.2.0.1.0) machine and "Dest_Id" on target machine (9.2.0.1.0).
I have created a db link "Oracle90" on local machine.
I have tested the connection from source (10.2.0.1.0) as follows:

SQL> select * from blf2vkr.jobs@oracle90 where rownum < 2;

JOB_ID     JOB_TITLE                           MIN_SALARY MAX_SALARY
---------- ----------------------------------- ---------- ----------
AD_PRES    President                                20000      40000

I then used the following codes to transfer the binary file from local to target as follows and got the errors:

SQL> Begin
  2     DBMS_FILE_TRANSFER.PUT_FILE(
  3     SOURCE_DIRECTORY_OBJECT         => 'SOURCE_DIR',
  4     SOURCE_FILE_NAME                => 'DUMPX.DMP',
  5     DESTINATION_DIRECTORY_OBJECT    => 'DEST_DIR',
  6     DESTINATION_FILE_NAME           => 'DEMPZ.DMP',
  7     DESTINATION_DATABASE            => 'ORACLE90');
  8  END;
  9  /
Begin
*
ERROR at line 1:
ORA-01010: invalid OCI operation
ORA-02063: preceding line from ORACLE90
ORA-06512: at "SYS.DBMS_FILE_TRANSFER", line 60
ORA-06512: at "SYS.DBMS_FILE_TRANSFER", line 168
ORA-06512: at line 2


Please find a resolution? What am I doing wrong?

Thanks,

blf2vkr

0
Comment
Question by:blf2vkr
  • 2
5 Comments
 
LVL 10

Accepted Solution

by:
ravindran_eee earned 100 total points
Comment Utility
Please check the value set for the environmental variable "DBLINK_ENCRYPT_LOGIN".. If it set to True, then change it to False and try the operation again..
0
 
LVL 34

Expert Comment

by:johnsone
Comment Utility
DBMS_FILE_TRANSFER does not exist in 9 that I can find.  My guess is that you cannot do it from 10 to 9.
0
 
LVL 10

Expert Comment

by:ravindran_eee
Comment Utility
Can u check in ur Oracle 10g DataBase? To my knowledge this should be solving problem
Also it is possible to do it from 10 to 9
0
 
LVL 1

Expert Comment

by:Computer101
Comment Utility
Forced accept.

Computer101
EE Admin
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now