Today as any Database administrator i wake up on new task , they want import some tables from Developer environment to Production , So I used Copy Command .
its usual used for copy tables from database to Another , but you have to know this way is very useful specially if you have long Data type in your tables , i will explain it , and Define Two Database in your TNS.
create table osama as select * from long_table ;
You will Get this error :
ERROR at line 1:
ORA-00997: illegal use of LONG datatype
copy from user1/password@orcl to user2/password@orcl2 create
The Output :
Array fetch/bind size is 30. (arraysize is 30)
Will commit when done. (copycommit is 0)
Maximum long size is 40. (long is 40)
Table osama created.
Simple !!!
Useful Link :
1-Oracle Document .
2-Examples.
Thank you
Osama Mustafa
Like this:
Like Loading...
Related
Published by Osama Mustafa
Osama considered as one of the leaders in Cloud technology, DevOps and database in the Middle-East. I have more than ten years of experience within the industry. moreover, certfied 4x AWS , 4x Azure and 6x OCI, have also obtained database certifications for multiple providers.
In addition to having experience with Oracle database and Oracle products, such as middle-ware, OID, OAM and OIM, I have gained substantial knowledge with different databases.
Currently, I am architecting and implementing Cloud and DevOps. On top of that, I'm providing solutions for companies that allow them to implement the solutions and to follow the best practices.
View all posts by Osama Mustafa