Solved

ORA-01010: Invalid OCI operation

Posted on 2006-10-28
5
2,198 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
ID: 17829217
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
ID: 17833719
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
ID: 17834262
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
ID: 20296170
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
query returning everything 11 87
Schema creation in Oracle12c 6 39
join 2 views with 5 conditions 3 43
Not able to add the URL for the   access control list - oracle plsql 10 48
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

914 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

21 Experts available now in Live!

Get 1:1 Help Now